/* Juri'France - site public. Même grammaire visuelle que la landing Aventa
   (barre flottante en pilule, héros à deux colonnes, chiffres, étapes 01-03,
   sections alternées, trio, FAQ, panneau de fin sombre), aux couleurs et aux
   polices de l'application (app/lib/core/theme/app_colors.dart). Aucun script :
   la FAQ repose sur <details>, les animations sont en CSS et coupées sous
   prefers-reduced-motion. */

@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/SourceSerif4-Semibold.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2"); }

:root {
  /* Surfaces (app : surface, surfaceContainerLow/-/High) */
  --paper:   #FBFAF7;
  --paper-2: #F5F3EE;
  --paper-3: #EFECE6;
  --line:    #E1DED6;
  /* Encre (app : onSurface, onSurfaceVariant) */
  --ink-900: #1B1F24;   /* 15,9:1 sur --paper */
  --ink-600: #4A5058;   /* 7,9:1 sur --paper, 7,4:1 sur --paper-2 */
  --ink-400: #5B6169;   /* légendes : 6,2:1 sur --paper, 5,8:1 sur --paper-2 */
  /* Marque (app : primary et dérivés) */
  --brand:      #1F4E79;   /* 8,5:1 sur --paper, texte blanc 8,9:1 */
  --brand-ink:  #173D60;   /* survol */
  --brand-soft: #DCE8F4;   /* primaryContainer */
  --on-brand:   #FFFFFF;
  --night:      #0E2A45;   /* onPrimaryContainer : panneau de fin */
  --on-night-muted: #B9CBDD;
  /* Accents (app : secondary, tertiary, avertissement) */
  --success:  #2E6B5A;
  --success-soft: #D5EDE4;
  --warn-bg:  #FCE9C7;
  --warn-fg:  #3D2800;
  --danger:   #B3261E;

  --glass-bg: rgba(251, 250, 247, .88);
  --shadow-float: 0 10px 28px rgba(14, 42, 69, .14), 0 1px 2px rgba(14, 42, 69, .10);
  --shadow-card:  0 1px 2px rgba(14, 42, 69, .05), 0 8px 22px rgba(14, 42, 69, .07);

  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-full: 999px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.33, 1, .68, 1);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-600);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-soft); color: var(--ink-900); }
h1, h2, h3 { color: var(--ink-900); margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
p { margin: 0; }

.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-md); }
.evitement:focus { left: 16px; }
.conteneur { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Barre de navigation flottante ---------- */
.nav-wrap { position: sticky; top: 12px; z-index: 50; padding-inline: var(--gutter); margin-top: 12px; }
.nav {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { margin-left: auto; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav ul a { display: inline-block; padding: 8px 12px; border-radius: var(--radius-full); color: var(--ink-600); text-decoration: none; font-size: .975rem; }
.nav ul a:hover { color: var(--ink-900); background: var(--paper-3); }
.nav .bouton { min-height: 44px; padding: 10px 18px; }
@media (min-width: 900px) {
  .nav ul { display: flex; }
  .nav .bouton { margin-left: 8px; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.bouton-principal { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(31, 78, 121, .25); }
.bouton-principal:hover { background: var(--brand-ink); color: var(--on-brand); transform: translateY(-1px); }
.bouton-secondaire { background: var(--paper-2); color: var(--ink-900); border: 1px solid var(--line); }
.bouton-secondaire:hover { background: var(--paper-3); color: var(--ink-900); }

/* ---------- Héros ---------- */
.hero { display: grid; gap: 56px; padding-top: 56px; padding-bottom: 72px; align-items: center; }
.pastille { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--paper-2); color: var(--ink-600); font-size: .875rem; }
.pastille .point { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 { margin-top: 24px; font-size: clamp(2.4rem, 5.6vw, 3.75rem); }
.chapo { margin-top: 24px; font-size: clamp(1.125rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--ink-600); max-width: 36em; }
.factuel { margin-top: 16px; font-size: .95rem; color: var(--ink-400); max-width: 40em; }
.coches { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.coches li { position: relative; padding-left: 34px; color: var(--ink-900); }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mentions-hero { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--ink-400); }
.mentions-hero li::before { content: "·"; margin-right: 8px; color: var(--ink-400); }

.hero-visuel, .carte-telephone { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.telephone {
  position: relative; width: min(300px, 78vw);
  padding: 10px; border-radius: 44px;
  background: var(--ink-900);
  box-shadow: 0 30px 60px rgba(14, 42, 69, .22), 0 2px 6px rgba(14, 42, 69, .18);
}
.telephone img { width: 100%; height: auto; border-radius: 34px; background: var(--paper); }
.hero-visuel::before, .carte-telephone::before {
  content: ""; position: absolute; inset: 8% 6% 0; border-radius: 48px;
  background: var(--brand-soft); transform: rotate(4deg); z-index: -1;
}
.vignette {
  position: absolute; max-width: 250px;
  padding: 12px 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px; box-shadow: var(--shadow-float);
  font-size: .875rem; line-height: 1.4;
}
.vignette-titre { font-family: var(--font-display); font-weight: 600; color: var(--ink-900); font-size: 1rem; }
.vignette-texte { color: var(--ink-600); margin-top: 2px; }
.vignette-texte strong { display: block; color: var(--ink-900); }
.vignette-haut { top: 10%; left: 0; }
.vignette-bas { bottom: 12%; right: 0; }
.vignette-cote { bottom: 14%; left: 0; }
.etiquette { display: inline-flex; margin-top: 8px; padding: 3px 8px; border-radius: var(--radius-xs); font-size: .8rem; font-weight: 600; }
.etiquette-verifiee { background: var(--success-soft); color: var(--success); }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; gap: 28px; padding-bottom: 32px; }
.chiffres > div { border-top: 1px solid var(--line); padding-top: 18px; }
.chiffre { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1; color: var(--ink-900); margin-bottom: 8px; }
.chiffres p:not(.chiffre) { font-size: .9rem; color: var(--ink-400); max-width: 26em; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }
.section-alt { background: var(--paper-2); }
.surtitre { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 18px; }
.surtitre::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.intro { margin-top: 20px; font-size: 1.125rem; max-width: 34em; }

.etapes { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 40px; }
.etapes li { border-top: 1px solid var(--line); padding-top: 22px; }
.numero { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--ink-400); margin-bottom: 16px; }
.etapes li:first-child .numero { color: var(--brand); }
.etapes h3 { margin-bottom: 8px; }
.etapes p:not(.numero) { font-size: .975rem; }

.deux-colonnes { display: grid; gap: 56px; align-items: center; }

.themes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.theme { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; }
.theme strong { display: block; font-size: 1.05rem; }
.theme span:last-child { font-size: .95rem; }
.theme-icone svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-logement     { background: #E3EEF9; color: #163A5F; }
.theme-travail      { background: #E6F2EA; color: #1D4A33; }
.theme-consommation { background: #F6ECE1; color: #5A3712; }
.theme-famille      { background: #F1E8F4; color: #4A2459; }
.theme-argent       { background: #EEF0E0; color: #424A14; }

.points { margin: 32px 0 0; display: grid; gap: 22px; }
.points dt { font-weight: 700; color: var(--ink-900); }
.points dd { margin: 4px 0 0; font-size: .975rem; }

.trio { display: grid; gap: 32px; margin-top: 48px; }
.trio > div { border-top: 1px solid var(--line); padding-top: 22px; }
.trio-icone { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--brand); margin-bottom: 16px; }
.trio-icone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trio h3 { margin-bottom: 8px; }
.trio p { font-size: .975rem; }

.avertissement-bloc { background: var(--warn-bg); color: var(--warn-fg); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 14px; }
.avertissement-bloc h2 { color: var(--warn-fg); font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 6px; }
.avertissement-bloc p { max-width: 50em; }
.avertissement-bloc a { color: var(--warn-fg); font-weight: 700; }
.urgence { padding-top: 14px; border-top: 1px solid rgba(61, 40, 0, .18); }

.faq { margin-top: 40px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--ink-400); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; max-width: 46em; }

.panneau-fin { background: var(--night); color: var(--on-night-muted); border-radius: 28px; padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.panneau-fin h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.panneau-fin p { max-width: 34em; }
.panneau-fin a { color: #fff; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 12px 0 4px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px 10px 18px; border-radius: var(--radius-md); background: #fff; color: var(--night); text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.15; text-align: left; }
.store small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-600); }
.store svg { width: 24px; height: 24px; fill: var(--night); }
a.store:hover { background: var(--brand-soft); color: var(--night); }
.store-bientot { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.store-bientot small { color: var(--on-night-muted); }
.store-bientot svg { fill: none; stroke: #fff; stroke-width: 1.8; }
.panneau-contact { font-size: .9rem; }

/* ---------- Pages légales ---------- */
.page { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.page > h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 32px; }
.page h2 { font-size: 1.6rem; margin: 48px 0 14px; }
.page h3 { margin: 28px 0 8px; }
.page h4 { margin: 20px 0 6px; color: var(--ink-900); }
.page p, .page ul, .page ol, .page blockquote, .page .tableau { margin: 0 0 16px; }
.page ul, .page ol { padding-left: 1.4em; }
.page li { margin-bottom: 6px; }
.page blockquote { margin-left: 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: #F1F5FA; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.page code { font-size: .9em; background: var(--paper-3); padding: 1px 5px; border-radius: 4px; }
.page .avertissement { background: var(--warn-bg); color: var(--warn-fg); padding: 14px 18px; border-radius: var(--radius-md); }
.tableau { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.tableau table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tableau thead th { background: var(--paper-2); color: var(--ink-900); }
.tableau tbody th { color: var(--ink-900); font-weight: 600; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: 0; }
mark.a-completer { background: var(--warn-bg); color: var(--warn-fg); padding: 0 3px; border-radius: 3px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 40px; display: grid; gap: 18px; font-size: .9rem; color: var(--ink-400); }
.pied .logo { font-size: 1.05rem; }
.pied .logo img { width: 24px; height: 24px; border-radius: 6px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { color: var(--ink-600); }
.pied a:hover { color: var(--ink-900); }
.pied-note { max-width: 46em; }

/* ---------- Grands écrans ---------- */
@media (min-width: 720px) {
  .chiffres { grid-template-columns: repeat(3, 1fr); }
  .etapes, .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .themes { grid-template-columns: 1fr 1fr; }
  .theme-argent { grid-column: span 2; }
  .pied { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 88px; padding-bottom: 96px; }
  .deux-colonnes { grid-template-columns: 1.05fr .95fr; gap: 80px; }
  .deux-colonnes-inverse { grid-template-columns: .95fr 1.05fr; }
  .vignette-haut { left: -6%; }
  .vignette-bas { right: -4%; }
  .vignette-cote { left: -4%; }
}
@media (max-width: 520px) {
  .vignette { position: static; max-width: none; margin-top: 12px; }
  .hero-visuel, .carte-telephone { flex-direction: column; align-items: center; }
  .hero-visuel .vignette, .carte-telephone .vignette { width: min(300px, 78vw); }
}

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-texte > *, .hero-visuel { animation: monte .7s var(--ease-out) both; }
  .hero-texte > :nth-child(2) { animation-delay: .06s; }
  .hero-texte > :nth-child(3) { animation-delay: .12s; }
  .hero-texte > :nth-child(4) { animation-delay: .18s; }
  .hero-texte > :nth-child(n+5) { animation-delay: .24s; }
  .hero-visuel { animation-delay: .2s; }
  .vignette-haut { animation: flotte 6s ease-in-out 1s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flotte { 50% { transform: translateY(-6px); } }
