/*
  La Liasse · feuille de style commune
  Billet de banque + affiche électorale, en verre liquide.
  Fond vert « encre de billet », rosace guillochée qui tourne lentement,
  titres Anton, texte Bitter, un seul accent rose.
  Tout le mouvement s'arrête si le visiteur demande moins d'animations.
*/

@font-face { font-family: "Anton"; src: url("fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("fonts/bitter.woff") format("woff"); font-weight: 100 900; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  --green: #0E4A3C;
  --green-2: #135A49;
  --paper: #F1F4F2;
  --white: #FFFFFF;
  --ink: #13201B;
  --muted: #4A5852;
  --line: #CFD8D3;
  --pink: #F4B3C2;
  --pink-soft: #FBE4EA;
  --pink-ink: #8A1C3E;
  --mint: #D7E6DF;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --text: "Bitter", Georgia, serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--text); overflow-x: clip; }
img, svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.on-green :focus-visible, .bar :focus-visible { outline-color: var(--pink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Verre liquide : la matière ---------- */
.lg {
  position: relative; isolation: isolate;
  --tx: 0px; --ty: 0px; --rx: 0deg; --ry: 0deg; --s: 1;
  transform: translate(var(--tx), var(--ty)) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transition: transform .55s var(--spring), box-shadow .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .2s;
  -webkit-backdrop-filter: blur(20px) saturate(175%); backdrop-filter: blur(20px) saturate(175%);
}
/* reflet fixe en haut, comme une goutte */
.lg::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%);
  opacity: .55;
}
/* reflet qui suit la souris */
.lg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%);
  opacity: 0; transition: opacity .3s var(--ease); mix-blend-mode: soft-light;
}
.lg:hover::after { opacity: 1; }
.grow:hover { --s: 1.035; }
.grow:active { --s: .97; transition-duration: .15s; }

.g-dark {
  background: linear-gradient(180deg, rgba(22, 96, 77, .86), rgba(10, 60, 48, .82));
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 40px -18px rgba(0, 20, 14, .65);
}
.g-clear {
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
  color: var(--white);
}
.g-clear:hover { border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 36px -18px rgba(0, 20, 14, .7); }
.g-frost {
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .72));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 #fff, 0 26px 60px -30px rgba(0, 28, 20, .5);
  color: var(--ink);
}
.g-frost:hover { box-shadow: inset 0 1px 0 #fff, 0 34px 70px -30px rgba(0, 28, 20, .6); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 26px; cursor: pointer; text-decoration: none;
  font: 700 16px/1 var(--text); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 216, 226, .97), rgba(244, 168, 187, .92));
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -3px 8px rgba(190, 80, 110, .18), 0 10px 24px -12px rgba(120, 20, 50, .55);
}
.btn:hover { color: var(--ink); --s: 1.05; box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(190, 80, 110, .2), 0 16px 30px -12px rgba(120, 20, 50, .6); }
.btn:active { --s: .95; transition-duration: .12s; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.dark {
  color: var(--white);
  background: linear-gradient(180deg, rgba(30, 120, 96, .97), rgba(14, 74, 60, .97));
  border-color: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px -12px rgba(0, 30, 22, .65);
}
.btn.dark:hover { color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Barre de navigation flottante ---------- */
.bar { position: sticky; top: 12px; z-index: 50; margin-bottom: -76px; padding: 0 clamp(10px, 3vw, 32px); view-transition-name: bar; }
.bar-in { max-width: 1160px; margin: 0 auto; min-height: 64px; padding: 8px 10px 8px 22px; border-radius: 32px; display: flex; align-items: center; gap: 14px; }
.logo { font: 400 28px/1 var(--display); color: var(--white); text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.logo:hover { color: var(--pink); }
.tabs { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 24px; }
.tabs a {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px;
  font: 600 15px/1 var(--text); color: #E4F0EA; text-decoration: none; white-space: nowrap; transition: color .25s;
}
.tabs a.pill-on { color: var(--ink); }
.tab-pill {
  position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .8));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -10px rgba(0, 20, 14, .6);
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .2s;
  opacity: 0;
}
.no-js .tabs a[aria-current="page"] { background: rgba(255, 255, 255, .92); color: var(--ink); }

/* ---------- Ouvertures sur fond vert ---------- */
.hero { position: relative; overflow: hidden; background: var(--green); color: var(--white); padding-top: 96px; }
.hero::before {
  content: ""; position: absolute; z-index: 0; width: min(1150px, 125vw); aspect-ratio: 1; right: -300px; top: -200px;
  background: url("guilloche.svg") center / contain no-repeat;
  animation: spin 260s linear infinite;
}
.hero::after {
  content: ""; position: absolute; z-index: 0; inset: -15%;
  background:
    radial-gradient(28% 34% at 78% 30%, rgba(110, 224, 186, .42), transparent 70%),
    radial-gradient(26% 32% at 14% 82%, rgba(38, 150, 168, .45), transparent 70%),
    radial-gradient(18% 22% at 60% 96%, rgba(255, 150, 178, .4), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero > .wrap { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translate3d(-2%, 1%, 0) scale(1); } to { transform: translate3d(3%, -3%, 0) scale(1.08); } }

.hero h1 { font: 400 clamp(46px, 6.4vw, 92px)/1.02 var(--display); max-width: 15ch; margin-top: clamp(20px, 4vw, 48px); }
.hero .intro { max-width: 36em; margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--mint); }
.hero.inner { padding-bottom: clamp(48px, 7vw, 88px); }
.hero.inner h1 { font-size: clamp(42px, 5.6vw, 80px); max-width: 18ch; }
.meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta span { font: 600 14px/1 var(--text); padding: 9px 14px; border-radius: 20px; }

/* Mots du titre qui montent un par un */
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(1.5deg); filter: blur(10px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* Apparitions au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Outil de l'accueil ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
.tool h2 { font: 700 16px/1.4 var(--text); color: var(--mint); margin-bottom: 14px; }
.toggles { display: grid; gap: 10px; }
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  min-height: 58px; padding: 0 20px; text-align: left; border-radius: 30px; cursor: pointer;
  font: 600 18px/1.2 var(--text);
}
.toggle .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #9CC3B6; flex: none; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.toggle[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8)); border-color: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 14px 30px -16px rgba(0, 24, 17, .65); }
.toggle[aria-pressed="true"] .tick { background: var(--green); border-color: var(--green); }
.toggle[aria-pressed="true"] .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.toggle.jelly { animation: jelly .6s var(--ease); }
@keyframes jelly { 0% { scale: 1 1; } 30% { scale: 1.06 .92; } 55% { scale: .97 1.04; } 75% { scale: 1.02 .99; } 100% { scale: 1 1; } }
.count { display: none; }

.panel { border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(19, 32, 27, .12); }
.panel-head h2 { font: 400 30px/1.05 var(--display); color: var(--ink); margin: 0; }
.panel-head p { font-size: 14px; color: var(--muted); }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 20px 0; border-bottom: 1px solid rgba(19, 32, 27, .1); }
.results li[hidden] { display: none; }
.results li.in { animation: slidein .55s var(--spring); }
@keyframes slidein { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.results h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 700 20px/1.25 var(--text); }
.results p { margin-top: 8px; }
.results .watch { font-size: 15px; color: var(--muted); }
.results .watch b { color: var(--ink); }
.empty { padding: 28px 0; color: var(--muted); }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; }
.panel-foot p { font-size: 14px; color: var(--muted); max-width: 26em; }
.status { font: 600 13px/1 var(--text); padding: 6px 11px; border-radius: 20px; white-space: nowrap; }
.status.same { background: rgba(19, 32, 27, .07); color: #36443E; }
.status.prop { background: rgba(244, 179, 194, .5); color: var(--pink-ink); }
.status.done { background: rgba(14, 74, 60, .12); color: var(--green); }

/* ---------- Sections claires ---------- */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band.soft {
  background:
    radial-gradient(40% 50% at 6% 18%, rgba(120, 214, 180, .32), transparent 70%),
    radial-gradient(36% 46% at 94% 86%, rgba(244, 179, 194, .42), transparent 70%),
    var(--paper);
}
.h-poster { font: 400 clamp(36px, 5vw, 60px)/1.08 var(--display); max-width: 18ch; }
.lead { max-width: 40em; margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Cartes-liens vers les autres onglets */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 36px; }
.card-link { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: 28px; text-decoration: none; min-height: 260px; }
.card-link:hover { color: var(--ink); }
.card-link .tagline { font: 600 14px/1 var(--text); color: var(--green); }
.card-link h3 { font: 400 clamp(30px, 3.2vw, 42px)/1.05 var(--display); }
.card-link p { color: var(--muted); max-width: 30em; }
.card-link .go { margin-top: auto; font: 700 15px/1 var(--text); color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(26px, 4vw, 44px); border-radius: 32px; }
.cta-band h2 { font: 400 clamp(30px, 3.6vw, 46px)/1.05 var(--display); max-width: 18ch; }
.cta-band p { margin-top: 10px; color: var(--mint); max-width: 32em; }

/* ---------- Article ---------- */
.progress { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 4px; background: var(--pink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(244, 179, 194, .9); }
.article-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; padding: 20px 14px 18px; border-radius: 24px; }
.toc h2 { font: 700 14px/1.3 var(--text); color: var(--muted); padding: 0 10px 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 10px; border-radius: 12px; font: 500 15px/1.3 var(--text); color: var(--ink); text-decoration: none; transition: background .25s, color .25s, transform .4s var(--spring); }
.toc a:hover { background: rgba(14, 74, 60, .07); transform: translateX(3px); }
.toc a.on { background: var(--green); color: var(--white); }
.toc details summary { display: none; }

.prose { max-width: 70ch; }
.prose > section { padding-top: 12px; }
.prose > section + section { margin-top: 56px; }
.prose h2 { font: 400 clamp(32px, 3.6vw, 46px)/1.08 var(--display); margin-bottom: 18px; }
.prose h3 { font: 700 21px/1.35 var(--text); margin: 30px 0 10px; }
.prose p { font-size: 18px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { font-size: 18px; line-height: 1.7; padding-left: 1.2em; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose .src { font-size: 14px; color: var(--muted); margin-top: 14px; }
.essentiel { padding: clamp(22px, 3vw, 32px); border-radius: 26px; margin-bottom: 48px; }
.essentiel h2 { font: 400 30px/1.1 var(--display); margin-bottom: 14px; }
.essentiel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.essentiel li { padding-left: 26px; position: relative; font-size: 17px; line-height: 1.6; }
.essentiel li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(244, 179, 194, .35); }
.callout { margin: 22px 0 0; padding: 18px 22px; border-radius: 20px; font-size: 16px; line-height: 1.6; }
.callout b { color: var(--green); }
.tbl { margin-top: 18px; border-radius: 20px; overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid rgba(19, 32, 27, .1); }
.tbl th { font-weight: 700; background: rgba(14, 74, 60, .06); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sources { font-size: 15px; }
.sources li { word-break: break-word; }

/* ---------- Calendrier ---------- */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: start; }
.dot { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 400 18px/1 var(--display); color: var(--white); background: var(--green); border: 4px solid var(--paper); }
.timeline li.now .dot { background: var(--pink); color: var(--ink); animation: pulse 2.4s ease-in-out infinite; }
.timeline li.next .dot { background: var(--white); color: var(--muted); border-color: var(--line); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 179, 194, .7); } 50% { box-shadow: 0 0 0 12px rgba(244, 179, 194, 0); } }
.tcard { padding: 18px 22px; border-radius: 22px; }
.tcard .when { font: 600 14px/1.3 var(--text); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tcard h3 { font: 700 20px/1.3 var(--text); margin: 6px 0 6px; }
.tcard p { color: #2C3A34; }
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); margin-top: 32px; }
.box { padding: clamp(22px, 3vw, 32px); border-radius: 26px; }
.box h3 { font: 400 28px/1.1 var(--display); margin-bottom: 12px; }
.box p + p { margin-top: 10px; }

/* ---------- Alertes ---------- */
.sheet { border-radius: 26px; padding: clamp(22px, 3vw, 32px); max-width: 620px; }
.sheet-ref { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid rgba(19, 32, 27, .12); }
.sheet h3 { font: 700 23px/1.25 var(--text); margin: 16px 0 12px; }
.sheet dl { margin: 14px 0 0; display: grid; gap: 12px; }
.sheet dt { font-weight: 700; font-size: 15px; }
.sheet dd { margin: 2px 0 0; font-size: 16px; color: #2C3A34; }
.sheet .foot-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(19, 32, 27, .12); font-size: 13px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: s; }
.steps li { padding: 24px; border-radius: 24px; counter-increment: s; }
.steps li::marker { content: none; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font: 400 20px/1 var(--display); margin-bottom: 14px; }
.steps h3 { font: 700 19px/1.3 var(--text); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }
.alert-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

/* Formulaire */
.signup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.signup .say { margin-top: 18px; max-width: 26em; }
.signup .say + .say { margin-top: 12px; }
form.sub { display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, legend { font: 700 16px/1.35 var(--text); }
.field label span, legend span { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email] {
  width: 100%; min-height: 54px; padding: 0 18px; font: 400 17px/1 var(--text); color: var(--ink);
  background: rgba(255, 255, 255, .75); border: 1.5px solid rgba(19, 32, 27, .14); border-radius: 16px;
  transition: border-color .2s, box-shadow .3s var(--ease), background .2s;
}
input[type=text]:focus, input[type=email]:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 5px rgba(14, 74, 60, .12); }
.field.bad input { border-color: var(--pink-ink); box-shadow: 0 0 0 5px rgba(138, 28, 62, .1); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; cursor: pointer; user-select: none;
  font: 500 15px/1 var(--text); background: rgba(255, 255, 255, .65); border: 1.5px solid rgba(19, 32, 27, .1);
  transition: transform .45s var(--spring), background .2s, color .2s, box-shadow .3s;
}
.choice label:hover { transform: scale(1.06); box-shadow: 0 8px 18px -10px rgba(0, 28, 20, .45); }
.choice input:checked + label { background: linear-gradient(180deg, #1C7860, #0E4A3C); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.choice input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.form-note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.form-msg { display: none; font-size: 15px; padding: 12px 16px; border-radius: 14px; }
.form-msg.show { display: block; animation: slidein .45s var(--spring); }
.form-msg.warn { background: #FFF3D6; color: #5E4300; }
.form-msg.err { background: var(--pink-soft); color: var(--pink-ink); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
form.sub .btn { justify-self: start; }

/* Questions */
.faq { max-width: 820px; display: grid; gap: 10px; margin-top: 28px; }
.faq details { border-radius: 20px; padding: 0 22px; }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 700 18px/1.35 var(--text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--text); color: var(--green); transition: transform .45s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 0 22px; max-width: 42em; }
.faq details[open] p { animation: slidein .45s var(--ease); }
.todo { background: #FFF0B8; padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* Pages simples */
.page .wrap { max-width: 820px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.page h1 { font: 400 clamp(40px, 6vw, 68px)/1.04 var(--display); margin: 16px 0 22px; }
.page h2 { font: 700 21px/1.3 var(--text); margin: 36px 0 10px; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 10px 0 0; }
.page li + li { margin-top: 6px; }
.stamp { display: inline-block; font: 600 14px/1 var(--text); padding: 7px 13px; border-radius: 20px; background: var(--pink-soft); color: var(--pink-ink); }
.updated { font-size: 14px; color: var(--muted); }
.hero.mini { padding-bottom: 28px; }

/* ---------- Pied de page ---------- */
.foot { background: var(--green); color: #CFE0D8; font-size: 15px; }
.foot .wrap { padding-top: 52px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot .logo { font-size: 34px; }
.foot p { margin-top: 10px; max-width: 26em; }
.foot h2 { font: 700 15px/1.4 var(--text); color: var(--white); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--white); }
.foot a:hover { color: var(--pink); }
.foot .fine { grid-column: 1 / -1; max-width: none; padding-top: 20px; border-top: 1px solid #2D6A59; font-size: 14px; color: #A9C7BB; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1020px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc details summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 10px; font: 700 16px/1 var(--text); cursor: pointer; list-style: none; }
  .toc details summary::-webkit-details-marker { display: none; }
  .toc details summary::after { content: "+"; font-size: 24px; color: var(--green); }
  .toc details[open] summary::after { content: "–"; }
  .toc h2 { display: none; }
  .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .tool, .signup, .alert-grid { grid-template-columns: minmax(0, 1fr); }
  .toggles { display: flex; flex-wrap: wrap; gap: 8px; }
  .toggle { width: auto; min-height: 44px; padding: 0 14px 0 16px; font-size: 15px; gap: 10px; }
  .toggle .tick { width: 18px; height: 18px; }
  .count { display: block; margin-top: 14px; font: 600 15px/1.4 var(--text); color: var(--mint); }
  .count a { color: #fff; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .bar { margin-bottom: -124px; }
  .bar-in { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 18px; row-gap: 6px; }
  .bar-in .btn { margin-left: auto; }
  .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 0 11px; font-size: 14px; }
  .hero { padding-top: 140px; }
  .links, .split2 { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 21px; }
  .timeline li { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .dot { width: 46px; height: 46px; font-size: 15px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .row, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .prose p, .prose ul, .prose ol { font-size: 17px; }
  .card-link { min-height: 0; }
}

/* ---------- Repli ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .g-dark { background: rgba(10, 60, 48, .97); }
  .g-frost { background: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  .g-dark { background: #0E4A3C; } .g-frost { background: #fff; } .g-clear { background: rgba(255, 255, 255, .12); }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .lg, .grow:hover, .btn:hover { --s: 1; --tx: 0px; --ty: 0px; --rx: 0deg; --ry: 0deg; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.99); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.01); filter: blur(6px); } }

/* Le titre reste caché le temps d'être découpé en mots */
.js [data-split]:not(.split-done) { opacity: 0; }
