/* LLJ FINANCE — feuille de style dérivée de DESIGN.md (univers affiche / brut) */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-serif-latin-700-normal.woff2") format("woff2");
}

:root {
  --fond: #295e70;
  --surface: #316d81;
  --texte: #fcfdfd;
  --primaire: #f0c1cd;
  --accent: #eebd2b;
  --filet: #647e87;
  --titres: "IBM Plex Mono", monospace;
  --corps: "IBM Plex Serif", serif;
  --pad-bloc: 160px;
  --pad-cote: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 24px; padding-left: 24px; }

strong { font-weight: 700; }

.conteneur {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-cote);
}

/* ---------- en-tête ---------- */

.entete {
  background: var(--primaire);
  color: var(--fond);
  border-bottom: 6px double var(--fond);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--fond);
  text-decoration: none;
  white-space: nowrap;
}
.logo img { width: 36px; height: 36px; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 15px;
  color: var(--fond);
  text-decoration: none;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav a.nav-cta {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.menu-bouton {
  display: none;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 15px;
  color: var(--fond);
  background: none;
  border: 2px solid var(--fond);
  border-radius: 0;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

/* ---------- blocs empilés ---------- */

main { display: block; }

.bloc {
  margin: 0;
  padding: var(--pad-bloc) 0;
}
.bloc--fond {
  background: var(--fond) repeating-linear-gradient(to bottom, var(--filet) 0 1px, transparent 1px 40px);
}
.bloc--surface { background: var(--surface); }
.bloc--primaire { background: var(--primaire); color: var(--fond); }

/* hero */
.hero {
  background: var(--primaire);
  color: var(--fond);
  padding: 128px 0;
  text-align: right;
}
.hero h1 {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.08;
  margin: 24px 0 32px;
  color: var(--fond);
}
.hero p {
  font-size: 22px;
  max-width: 720px;
  margin-left: auto;
}
.hero .btn { margin-top: 40px; }

/* titres */
h2 {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  color: var(--accent);
  text-align: right;
  display: block;
  width: 100%;
  margin: 0 0 48px;
  padding-bottom: 16px;
  border-bottom: 6px double var(--filet);
}
.bloc--primaire h2 { color: var(--fond); border-color: var(--fond); }
h3 {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: inherit;
}

/* signature : étiquette inclinée */
.etiquette {
  display: inline-block;
  background: var(--accent);
  color: var(--fond);
  font-family: var(--titres);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 10px 18px;
  line-height: 1.3;
  max-width: 100%;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--primaire);
  text-decoration: none;
}
.hero .etiquette, .bloc--primaire .etiquette, .cookies .etiquette { box-shadow: 4px 4px 0 var(--fond); }

/* boutons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--fond);
  font-family: var(--titres);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 18px 32px;
  border: 0;
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--primaire);
  text-decoration: none;
  cursor: pointer;
}
.hero .btn, .bloc--primaire .btn { box-shadow: 8px 8px 0 var(--fond); }
.btn:hover, .btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 5px 5px 0 var(--primaire);
}
.hero .btn:hover, .hero .btn:focus-visible, .bloc--primaire .btn:hover, .bloc--primaire .btn:focus-visible {
  box-shadow: 5px 5px 0 var(--fond);
}

/* 1. mots-clés */
.mots-cles {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--titres);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.mots-cles a { text-decoration-thickness: 4px; text-underline-offset: 8px; }
.bloc--primaire .mots-cles { color: var(--fond); }
.mots-cles + p, .mots-cles + .suite {
  margin-top: 56px;
  font-size: 22px;
  max-width: 720px;
  margin-left: auto;
  text-align: right;
}
.suite p { font-size: 22px; }

/* 2. questions / réponses */
.qr { margin: 0; padding: 0; list-style: none; }
.qr > li, .qr > div {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 6px double var(--filet);
}
.qr > li:last-child, .qr > div:last-child { border-bottom: 6px double var(--filet); }
.qr h3 { margin: 0; }
.qr dt { font-family: var(--titres); font-weight: 700; font-size: 22px; line-height: 1.3; }
.qr dd { margin: 0; }
.bloc--primaire .qr > li, .bloc--primaire .qr > div { border-color: var(--fond); }

/* 3. texte + note de marge */
.note-marge {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 64px;
  align-items: start;
}
.note-marge aside {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  color: var(--primaire);
  border-top: 6px double var(--primaire);
  padding-top: 16px;
}
.note-marge aside p { margin-bottom: 16px; }
.bloc--primaire .note-marge aside { color: var(--fond); border-color: var(--fond); }

/* 4. liste de définitions */
.definitions { margin: 0; }
.definitions > div {
  display: grid;
  grid-template-columns: 56px 4fr 7fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 6px double var(--filet);
}
.definitions > div:last-child { border-bottom: 6px double var(--filet); }
.definitions dt {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}
.definitions dd { margin: 0; }
.pastille {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--fond);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pastille svg { width: 32px; height: 32px; fill: currentColor; }
.definitions--sans-picto > div { grid-template-columns: 4fr 7fr; }

/* 5. citation */
.citation {
  margin: 0;
  padding: 48px 0;
  border-top: 6px double var(--accent);
  border-bottom: 6px double var(--accent);
  font-family: var(--titres);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  text-align: right;
}
.citation p { margin: 0; }
.bloc--primaire .citation { border-color: var(--fond); }

/* 6. grand texte */
.grand-texte p {
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.4;
  margin-bottom: 32px;
}

/* 7. image pleine largeur */
.image-pleine { margin: 0; width: 100%; }
.image-pleine img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}
.image-pleine figcaption {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 13px;
  color: var(--primaire);
  padding: 12px var(--pad-cote);
  text-align: right;
}
.bloc--image { padding: 0; }
.bloc--image .conteneur { padding-top: var(--pad-bloc); }

/* ---------- formulaires ---------- */

.formulaire { max-width: 720px; }
.champ { margin-bottom: 24px; }
.champ label, .champ > span {
  display: block;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ textarea {
  width: 100%;
  background: var(--texte);
  color: var(--fond);
  border: 2px solid var(--filet);
  border-radius: 0;
  padding: 12px 16px;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.4;
  min-height: 52px;
}
.champ textarea { min-height: 180px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.consentement {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
}
.consentement input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.consentement a { text-decoration-thickness: 2px; }
.facultatif { font-weight: 400; font-family: var(--corps); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.etat {
  padding: 16px 20px;
  border: 6px double var(--accent);
  margin-bottom: 32px;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 15px;
}
.etat[hidden] { display: none; }
.bloc--primaire .etat { border-color: var(--fond); }

/* landing : formulaire dans le hero */
.hero--landing { text-align: left; padding: 64px 0 96px; }
.hero--landing .conteneur {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.hero--landing h1 { font-size: 52px; text-align: right; }
.hero--landing .accroche { text-align: right; }
.hero--landing .accroche p { margin-left: auto; }
.encart-formulaire {
  background: var(--fond);
  color: var(--texte);
  padding: 32px;
  box-shadow: 12px 12px 0 var(--accent);
}
.encart-formulaire h2 {
  font-size: 26px;
  color: var(--accent);
  text-align: left;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-color: var(--filet);
}
.encart-formulaire .champ { margin-bottom: 16px; }
.encart-formulaire .btn { box-shadow: 8px 8px 0 var(--primaire); margin-top: 8px; }
.encart-formulaire .btn:hover, .encart-formulaire .btn:focus-visible { box-shadow: 5px 5px 0 var(--primaire); }
.encart-formulaire .etat { border-color: var(--accent); }

/* carte */
.carte-zone { margin-top: 32px; }
.carte-zone iframe {
  width: 100%;
  height: 360px;
  border: 2px solid var(--filet);
  display: block;
  margin-top: 24px;
}

/* adresse */
address { font-style: normal; }

/* ---------- pied de page ---------- */

.pied {
  background: var(--surface);
  border-top: 6px double var(--filet);
  padding: 28px var(--pad-cote);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 14px;
  color: var(--texte);
}
.pied .logo { font-size: 14px; color: var(--texte); }
.pied .logo img { width: 24px; height: 24px; }
.pied a, .pied button {
  color: var(--texte);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- bandeau cookies ---------- */

.cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--primaire);
  color: var(--fond);
  border-top: 6px double var(--fond);
  padding: 20px var(--pad-cote);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}
.cookies[hidden] { display: none; }
.cookies p { font-size: 15px; line-height: 1.5; max-width: 640px; margin: 0; flex: 1 1 320px; }
.cookies-boutons { display: flex; gap: 16px; }
.cookies-boutons button {
  min-width: 150px;
  background: var(--fond);
  color: var(--primaire);
  font-family: var(--titres);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--accent);
  cursor: pointer;
}
.cookies-boutons button:hover, .cookies-boutons button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent); }
.cookies a { font-family: var(--titres); font-weight: 700; font-size: 14px; text-decoration-thickness: 2px; }

/* ---------- 404 / merci ---------- */
.hero--seul { padding: 160px 0; }

/* ---------- accessibilité ---------- */
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus-visible, .cookies-boutons button:hover { transform: none; }
}

/* ---------- 1024 px et moins ---------- */
@media (max-width: 1023px) {
  :root { --pad-bloc: 96px; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  .note-marge { grid-template-columns: 1fr; gap: 32px; }
  .hero--landing .conteneur { grid-template-columns: 1fr; gap: 40px; }
  .hero--landing h1 { font-size: 40px; }
  .encart-formulaire { box-shadow: 8px 8px 0 var(--accent); }
}

/* ---------- 767 px et moins ---------- */
@media (max-width: 767px) {
  :root { --pad-cote: 20px; }
  body { font-size: 17px; }
  .entete .conteneur { min-height: 64px; flex-wrap: wrap; }
  .logo { font-size: 18px; }
  .logo img { width: 32px; height: 32px; }
  .menu-bouton { display: inline-block; }
  .nav { display: none; width: 100%; padding-bottom: 8px; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-top: 1px solid var(--fond); }
  .nav a { display: block; font-size: 22px; padding: 14px 0; }
  .nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"], .nav a.nav-cta { text-underline-offset: 4px; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .hero p { font-size: 18px; }
  .hero--landing { padding: 40px 0 72px; }
  .hero--landing h1 { font-size: 32px; }
  h2 { font-size: 30px; margin-bottom: 32px; }
  h3 { font-size: 19px; }
  .mots-cles { flex-direction: column; align-items: flex-end; white-space: normal; font-size: 11vw; gap: 12px; }
  .etiquette { font-size: 14px; padding: 8px 14px; }
  .mots-cles + p, .mots-cles + .suite { margin-top: 40px; font-size: 18px; }
  .suite p { font-size: 18px; }
  .qr > li, .qr > div { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .qr dt, .qr h3 { font-size: 19px; }
  .definitions > div { grid-template-columns: 56px 1fr; gap: 16px 20px; padding: 28px 0; }
  .definitions dd { grid-column: 1 / -1; }
  .definitions--sans-picto > div { grid-template-columns: 1fr; }
  .definitions dt { font-size: 19px; }
  .citation { padding: 32px 0; }
  .encart-formulaire { padding: 24px 20px; box-shadow: 6px 6px 0 var(--accent); }
  .btn { padding: 16px 24px; font-size: 16px; }
  .pied { padding: 24px 20px; gap: 10px 20px; font-size: 13px; }
  .cookies { padding: 16px 20px; gap: 12px; }
  .cookies p { flex-basis: 100%; font-size: 14px; }
  .cookies-boutons { width: 100%; gap: 12px; }
  .cookies-boutons button { flex: 1 1 50%; min-width: 0; padding: 12px 10px; }
  .carte-zone iframe { height: 280px; }
}
