/* Hippocampe Academy — feuille de style unique */
@font-face{font-family:"Bricolage Grotesque";src:url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"Caveat";src:url("fonts/caveat-latin-wght-normal.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Figtree";src:url("fonts/figtree-latin-wght-normal.woff2") format("woff2");font-weight:300 900;font-display:swap}

:root{
  --ink:#12154F;
  --muted:#4B5078;
  --lagoon:#23297A;
  --lagoon-deep:#0D1040;
  --mist:#ECEEF8;
  --paper:#FAFAFD;
  --line:#D3D6E8;
  --curcuma:#F26B1D;
  --curcuma-deep:#D95A10;
  --white:#fff;
  --display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --text:"Figtree","Segoe UI",system-ui,sans-serif;
  --gutter:clamp(1rem,4vw,2rem);
  --max:70rem;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--text);font-size:1.0625rem;line-height:1.6;text-rendering:optimizeLegibility}
img,svg{max-width:100%;display:block}
a{color:var(--lagoon);text-underline-offset:.18em}
a:hover{color:var(--lagoon-deep)}
:focus-visible{outline:3px solid var(--curcuma);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--display);line-height:1.1;letter-spacing:-.02em;margin:0 0 .6em;font-weight:700}
h1{font-size:clamp(2.4rem,5.6vw,4.3rem);font-weight:800;letter-spacing:-.03em;line-height:1.02}
h2{font-size:clamp(1.8rem,3.2vw,2.5rem)}
h3{font-size:1.25rem;letter-spacing:-.01em}
p{margin:0 0 1em}
.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--gutter)}
.lead{font-size:1.2rem;line-height:1.55;color:var(--muted);max-width:40rem}
.measure{max-width:38rem}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:100}
.skip:focus{left:0}

/* En-tête */
.site-header{position:sticky;top:0;z-index:50;background:rgba(250,250,253,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ink);font-family:var(--display);font-weight:700;font-size:1.15rem;letter-spacing:-.01em}
.brand img{width:2.4rem;height:2.4rem;object-fit:contain}
.nav{display:flex;align-items:center;gap:.25rem}
.nav a{padding:.5rem .8rem;border-radius:.4rem;text-decoration:none;color:var(--ink);font-weight:500;font-size:.98rem}
.nav a:hover{background:var(--mist)}
.nav a[aria-current="page"]{color:var(--lagoon);font-weight:700;box-shadow:inset 0 -2px 0 var(--lagoon);border-radius:0}
.nav .nav-cta{background:var(--ink);color:#fff;margin-left:.5rem;font-weight:600}
.nav .nav-cta:hover{background:var(--lagoon-deep);color:#fff}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:.4rem;padding:.5rem .8rem;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
@media (max-width:62rem){
  .js .nav-toggle{display:block}
  .js .nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;background:var(--paper);border-bottom:1px solid var(--line);padding:.5rem var(--gutter) 1rem}
  .js .nav.open{display:flex}
  .nav{flex-wrap:wrap;justify-content:flex-end}
  .nav a{padding:.8rem .5rem}
  .nav .nav-cta{margin:.5rem 0 0;text-align:center}
  .nav a[aria-current="page"]{box-shadow:none}
}

/* Boutons */
.btn{display:inline-block;font-family:var(--text);font-weight:700;font-size:1rem;text-decoration:none;padding:.85rem 1.4rem;border-radius:.5rem;border:2px solid transparent;cursor:pointer;line-height:1.2}
.btn-primary{background:var(--curcuma);color:var(--ink)}
.btn-primary:hover{background:var(--curcuma-deep);color:var(--ink)}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

/* Sections */
section{padding-block:clamp(3rem,7vw,5.5rem)}
.band{background:var(--mist)}
.dark{background:var(--lagoon-deep);color:#EEF0FB}
.dark h2,.dark h3{color:#fff}
.dark a{color:var(--curcuma)}
.section-head{max-width:44rem;margin-bottom:2.5rem}
.section-head p{color:var(--muted);font-size:1.1rem}
.dark .section-head p{color:#BFC3E6}

/* Accueil : héros */
.hero{padding-block:clamp(2.5rem,6vw,5rem)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hero h1{max-width:12ch}
.hero .lead{margin-top:1.25rem}
.curve{background:var(--lagoon-deep);border-radius:1rem;padding:1.25rem 1.25rem 1rem;color:#E3E5F6}
.curve svg{width:100%;height:auto}
.curve figcaption{font-size:.95rem;line-height:1.5;color:#BFC3E6;padding:.5rem .25rem 0}
.curve .axis{stroke:#4A50A0;stroke-width:1}
.curve .grid{stroke:#1F2370;stroke-width:1}
.curve .lbl{fill:#A9AEDB;font:500 14px var(--text)}
.curve .lbl-strong{fill:#fff;font:700 15px var(--text)}
.curve .no-review{fill:none;stroke:#9096D0;stroke-width:2;stroke-dasharray:5 6}
.curve .with-review{fill:none;stroke:var(--curcuma);stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0}
.curve .dot{fill:var(--curcuma);stroke:var(--lagoon-deep);stroke-width:3}
@media (prefers-reduced-motion:no-preference){
  .curve .with-review{animation:draw 2.4s cubic-bezier(.4,.1,.2,1) .3s both}
  .curve .dot{animation:pop .4s ease-out both}
  @keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
  @keyframes pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
}
@media (max-width:56rem){.hero .wrap{grid-template-columns:1fr}.hero h1{max-width:none}}

/* Parcours : lignes cliquables */
.paths{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.paths a{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) 13.5rem;gap:1rem 2rem;align-items:baseline;padding:1.6rem .5rem;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.paths a:hover{background:var(--mist)}
.paths .who{color:var(--muted);font-size:.98rem}
.paths .what{font-family:var(--display);font-size:clamp(1.4rem,2.6vw,1.9rem);font-weight:700;letter-spacing:-.02em;line-height:1.15}
.paths .what small{display:block;font-family:var(--text);font-weight:400;font-size:1rem;letter-spacing:0;color:var(--muted);margin-top:.35rem;line-height:1.5}
.paths .go{font-weight:700;color:var(--lagoon);text-align:right}
@media (max-width:48rem){.paths a{grid-template-columns:1fr}.paths .go{text-align:left}}

/* Principes */
.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem}
.principles h3{border-top:3px solid var(--curcuma);padding-top:1rem}
.principles p{color:var(--muted)}
.dark .principles p{color:#BFC3E6}
@media (max-width:48rem){.principles{grid-template-columns:1fr;gap:1.75rem}}

/* Pages intérieures */
.page-hero{padding-block:clamp(2.5rem,6vw,4.5rem) clamp(2rem,4vw,3rem);border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(2.1rem,4.6vw,3.5rem);max-width:20ch}
.facts{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:1.5rem 0 0;padding:0}
.facts li{border:1px solid var(--lagoon);color:var(--lagoon-deep);border-radius:2rem;padding:.3rem .9rem;font-weight:600;font-size:.95rem;background:var(--white)}

.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem)}
@media (max-width:52rem){.split{grid-template-columns:1fr}}

/* Étapes (vraie séquence) */
.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.steps li{counter-increment:s;border-left:3px solid var(--lagoon);padding-left:1rem}
.steps li::before{content:counter(s);font-family:var(--display);font-weight:800;font-size:2rem;color:var(--lagoon);display:block;line-height:1;margin-bottom:.4rem}
.steps h3{font-size:1.1rem;margin-bottom:.35rem}
.steps p{color:var(--muted);font-size:.98rem;margin:0}
@media (max-width:60rem){.steps{grid-template-columns:1fr 1fr}}
@media (max-width:36rem){.steps{grid-template-columns:1fr}}

/* Tableaux */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:.6rem;background:var(--white)}
table{width:100%;border-collapse:collapse;font-size:1rem}
caption{text-align:left;padding:.9rem 1rem;color:var(--muted);font-size:.95rem}
th,td{padding:.75rem 1rem;text-align:left;border-top:1px solid var(--line);vertical-align:baseline}
thead th{border-top:0;background:var(--mist);font-size:.92rem;color:var(--lagoon-deep)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
tbody tr:hover{background:#F4F5FB}
tr.featured td{background:var(--ink);color:#fff;font-weight:700}
tr.featured td .save{color:var(--curcuma)}
.save{color:var(--lagoon);font-weight:600}
.price{font-family:var(--display);font-weight:700;font-size:1.15rem}
.note{color:var(--muted);font-size:.97rem;margin-top:1.25rem;max-width:46rem}

/* Heures (barres proportionnelles) */
.hours{list-style:none;margin:1rem 0 0;padding:0}
.hours li{display:grid;grid-template-columns:1fr auto;gap:.15rem 1rem;padding:.65rem 0;border-top:1px solid var(--line);align-items:baseline}
.hours .h{font-weight:700;font-variant-numeric:tabular-nums;color:var(--lagoon-deep)}
.hours .bar{grid-column:1/-1;height:6px;border-radius:3px;background:var(--mist);position:relative;overflow:hidden}
.hours .bar i{position:absolute;inset:0 auto 0 0;background:var(--lagoon);border-radius:3px}
.course-total{font-family:var(--display);font-size:3.4rem;font-weight:800;line-height:1;color:var(--lagoon);letter-spacing:-.03em}
.course-total small{font-size:1.1rem;font-weight:600;letter-spacing:0;color:var(--muted);margin-left:.3rem}

/* Listes à coches */
.checks{list-style:none;margin:0;padding:0}
.checks li{position:relative;padding:.55rem 0 .55rem 1.9rem;border-top:1px solid var(--line)}
.checks li::before{content:"";position:absolute;left:.15rem;top:1.05rem;width:.9rem;height:.5rem;border-left:3px solid var(--lagoon);border-bottom:3px solid var(--lagoon);transform:rotate(-45deg) translateY(-.2rem)}

/* Définitions */
.info{margin:0;border-top:2px solid var(--ink)}
.info div{display:grid;grid-template-columns:11rem 1fr;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--line)}
.info dt{color:var(--muted)}
.info dd{margin:0;font-weight:600}
@media (max-width:36rem){.info div{grid-template-columns:1fr;gap:.1rem}}

/* FAQ */
.faq{max-width:46rem}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;padding:1.1rem 2.5rem 1.1rem 0;font-family:var(--display);font-weight:700;font-size:1.15rem;letter-spacing:-.01em;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:.25rem;top:.9rem;font-size:1.6rem;line-height:1;color:var(--lagoon);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--muted);padding-right:2.5rem}

/* Parcours comptabilité : programme déroulant */
.program{border-top:2px solid var(--ink);padding-top:1.25rem}
.program h3{margin-bottom:.2rem}
.program .dur{font-family:var(--display);font-weight:800;color:var(--lagoon);font-size:1.1rem}
.program details{border-top:1px solid var(--line);margin-top:1rem}
.program summary{cursor:pointer;padding:.8rem 0;font-weight:700}
.program summary span{color:var(--muted);font-weight:500;margin-left:.4rem}
.program ul{margin:0 0 1rem;padding-left:1.2rem;color:var(--muted)}
.program li{margin:.3rem 0}

/* Formulaire */
.form{display:grid;gap:1.1rem;max-width:36rem}
.field label{display:block;font-weight:700;margin-bottom:.3rem}
.field input,.field select,.field textarea{width:100%;font:inherit;color:inherit;padding:.75rem .85rem;border:1.5px solid #8A8FB8;border-radius:.45rem;background:var(--white)}
.field textarea{min-height:9rem;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--curcuma);outline-offset:1px;border-color:var(--ink)}
.field .hint{font-size:.92rem;color:var(--muted);margin-top:.3rem}
.two{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
@media (max-width:36rem){.two{grid-template-columns:1fr}}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.contact-aside .info{margin-top:1rem}

/* Appel final */
.cta-final{background:var(--ink);color:#fff;text-align:left}
.cta-final h2{color:#fff;max-width:22ch}
.cta-final p{color:#BFC3E6;max-width:36rem}
.cta-final .btn-ghost{border-color:#fff;color:#fff}
.cta-final .btn-ghost:hover{background:#fff;color:var(--ink)}

/* Pied de page */
.site-footer{background:var(--lagoon-deep);color:#C9CCEA;padding-block:2.5rem;font-size:.97rem}
.site-footer a{color:#fff}
.site-footer .wrap{display:grid;gap:1.25rem}
.foot-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem}
.foot-links{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;list-style:none;margin:0;padding:0}
.foot-note{font-size:.9rem;color:#A9AEDB;max-width:48rem}

/* Bandeau cookies */
.cookie{position:fixed;left:var(--gutter);right:var(--gutter);bottom:1rem;z-index:60;max-width:40rem;margin-inline:auto;background:var(--ink);color:#EEF0FB;border-radius:.7rem;padding:1rem 1.2rem;display:flex;gap:1rem;align-items:center;flex-wrap:wrap;font-size:.93rem;box-shadow:0 8px 30px rgba(13,16,64,.35)}
.cookie[hidden]{display:none}
.cookie p{margin:0;flex:1 1 16rem}
.cookie a{color:var(--curcuma)}
.cookie button{font:inherit;font-weight:700;background:var(--curcuma);color:var(--ink);border:0;border-radius:.4rem;padding:.55rem 1rem;cursor:pointer}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
@media print{.site-header,.cookie,.cta-final,.site-footer .foot-links{display:none}}

/* Pages légales */
.legal{max-width:46rem}
.legal h2{font-size:1.35rem;margin:2.2rem 0 .6rem}
.legal h2:first-child{margin-top:0}
.legal p,.legal li{color:var(--ink)}
.legal ul{padding-left:1.2rem}

.principles.four{grid-template-columns:repeat(4,1fr);gap:1.75rem}
@media (max-width:62rem){.principles.four{grid-template-columns:1fr 1fr}}
@media (max-width:36rem){.principles.four{grid-template-columns:1fr}}

/* ===== Direction artistique : le cahier de révisions ===== */
:root{--pen:#C2500C;--hand:"Caveat","Segoe Print",cursive}
.hand{font-family:var(--hand);font-weight:700;font-size:1.4rem;line-height:1.15;color:var(--pen)}

/* Papier quadrillé (carreaux) en haut des pages, qui s'estompe vers le bas */
.hero,.page-hero{position:relative;isolation:isolate;background:var(--paper)}
.hero::before,.page-hero::before{content:"";position:absolute;inset:0;z-index:-1;
  background-image:linear-gradient(#DADFF2 1px,transparent 1px),linear-gradient(90deg,#DADFF2 1px,transparent 1px);
  background-size:1.75rem 1.75rem;background-position:-1px -1px;
  -webkit-mask-image:linear-gradient(#000 35%,transparent 100%);mask-image:linear-gradient(#000 35%,transparent 100%)}
.page-hero{border-bottom:0}

/* Photos : tirage collé au scotch sur la page */
.photo{margin:0;position:relative;transform:rotate(var(--tilt,-1.4deg));max-width:30rem;justify-self:center;width:100%}
.photo.alt{--tilt:1.3deg}
.photo .frame{background:#fff;padding:.65rem;box-shadow:0 1px 0 rgba(18,21,79,.1),0 18px 34px -18px rgba(18,21,79,.45)}
.photo .in{position:relative;aspect-ratio:var(--r,4/3);background:var(--mist);overflow:hidden}
.photo .ph{position:absolute;inset:0;display:grid;place-content:center;gap:.4rem;text-align:center;padding:1rem;color:var(--muted);font-size:.95rem;
  background:repeating-linear-gradient(135deg,#E6E9F6 0 12px,#EFF1FA 12px 24px)}
.photo .ph small{font-size:.78rem;opacity:.8;word-break:break-all}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo img[hidden]{display:none}
.photo::before,.photo::after{content:"";position:absolute;z-index:2;width:5.2rem;height:1.5rem;background:rgba(242,107,29,.62);box-shadow:0 1px 2px rgba(18,21,79,.15)}
.photo::before{top:-.55rem;left:1.2rem;transform:rotate(-7deg)}
.photo::after{top:-.45rem;right:1.2rem;transform:rotate(6deg)}
.photo figcaption{margin-top:.9rem;text-align:center}
.photo.duo img{filter:grayscale(1) contrast(1.08);mix-blend-mode:multiply}
.photo.duo .in{background:linear-gradient(160deg,#F7A36E,#F26B1D)}

/* Bandeau large (paysage) */
.strip{padding-block:0 clamp(2.5rem,6vw,4.5rem)}
.strip .photo{max-width:none;transform:rotate(-.5deg)}
.strip .photo::before,.strip .photo::after{display:none}
.strip .in{aspect-ratio:16/5}
@media (max-width:40rem){.strip .in{aspect-ratio:16/9}}

/* Hero accueil avec photo */
.hero .wrap{grid-template-columns:1.1fr .9fr}
.hero .photo{--r:4/5;max-width:26rem}
.hero .hero-note{position:absolute;left:-.4rem;bottom:2.2rem;transform:rotate(-4deg);background:var(--paper);padding:.1rem .6rem;z-index:3}

/* Pages offres : photo à droite */
.has-photo{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.has-photo .photo{--r:4/3}
@media (max-width:52rem){.has-photo{grid-template-columns:1fr}.has-photo .photo{max-width:24rem;justify-self:start}}

/* Feuille de cahier pour la courbe */
.sheet{position:relative;background:#fff;border:1px solid var(--line);border-radius:.25rem;padding:1.25rem 1.25rem 1rem;transform:rotate(.6deg);
  background-image:linear-gradient(#E4E7F5 1px,transparent 1px),linear-gradient(90deg,#E4E7F5 1px,transparent 1px);background-size:1.75rem 1.75rem;
  box-shadow:0 18px 34px -20px rgba(18,21,79,.4)}
.sheet svg{width:100%;height:auto;background:rgba(255,255,255,.55)}
.sheet figcaption{color:var(--muted);font-size:.97rem;line-height:1.5;padding:.7rem .25rem 0}
.sheet .axis{stroke:var(--ink);stroke-width:1.5}
.sheet .grid{stroke:#D3D7EC;stroke-width:1}
.sheet .lbl{fill:var(--muted);font:500 13px var(--text)}
.sheet .hnd{font-family:var(--hand);font-weight:700;font-size:21px;fill:var(--pen)}
.sheet .hnd.ink{fill:var(--ink)}
.sheet .no-review{fill:none;stroke:#6F74A3;stroke-width:2.2;stroke-dasharray:5 6}
.sheet .with-review{fill:none;stroke:var(--curcuma);stroke-width:4;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0}
.sheet .dot{fill:var(--ink);stroke:#fff;stroke-width:3}
@media (prefers-reduced-motion:no-preference){
  .sheet .with-review{animation:draw 2.4s cubic-bezier(.4,.1,.2,1) .3s both}
  .sheet .dot{animation:pop .4s ease-out both}
}
.method .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
@media (max-width:56rem){.method .wrap{grid-template-columns:1fr}}

/* Numéros d'étapes entourés au stylo */
.steps li{border-left:0;padding-left:0}
.steps li::before{display:grid;place-items:center;width:2.8rem;height:2.8rem;margin-bottom:.7rem;font-size:1.35rem;font-weight:800;color:var(--ink);
  border:2.5px solid var(--curcuma);border-radius:52% 48% 56% 44%/47% 56% 44% 53%;transform:rotate(-4deg)}

.level{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:.6rem 2rem;padding:1.5rem .5rem;border-bottom:1px solid var(--line)}
@media (max-width:40rem){.level{grid-template-columns:1fr}}

.has-photo .photo[style*="4/5"]{max-width:21rem}

/* Corrections mobiles */
@media (max-width:56rem){
  .hero .wrap{grid-template-columns:1fr}
  .hero .photo{max-width:22rem;justify-self:start}
}
@media (max-width:40rem){
  th,td{padding:.6rem .55rem;font-size:.92rem}
  .price{font-size:1.02rem}
  thead th{font-size:.82rem}
}

@media (max-width:40rem){.ue th,.ue td{padding:.55rem .3rem;font-size:.82rem}.ue th:first-child,.ue td:first-child{padding-left:.6rem}.ue td:last-child,.ue th:last-child{padding-right:.6rem}}

/* CGV */
.cgv{display:grid;grid-template-columns:16rem minmax(0,1fr);gap:clamp(2rem,5vw,4rem);align-items:start}
.cgv .legal{max-width:none}
.toc{position:sticky;top:5.5rem;font-size:.95rem;max-height:calc(100vh - 7rem);overflow:auto;padding-right:.5rem}
.toc h2{font-size:1.1rem;margin-bottom:.6rem}
.toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.toc a{display:block;padding:.3rem .8rem;text-decoration:none;color:var(--muted)}
.toc a:hover{color:var(--ink);background:var(--mist)}
@media (max-width:60rem){.cgv{grid-template-columns:1fr}.toc{position:static;max-height:none}.toc ol{columns:1}}
.legal .part{font-size:1.9rem;margin:3rem 0 .4rem;padding-top:1.2rem;border-top:3px solid var(--ink)}
.legal h2[id^="article"]{scroll-margin-top:5.5rem;font-size:1.3rem;margin-top:2.2rem}
.legal h2#annexe{scroll-margin-top:5.5rem}
.legal ol{padding-left:1.3rem}
.legal li{margin:.35rem 0}
.summary{background:var(--mist);border-left:4px solid var(--curcuma);padding:1.2rem 1.4rem;border-radius:.3rem;margin-bottom:1rem}
.summary h2{font-size:1.25rem;margin:0 0 .6rem}
.summary ul{margin:0;padding-left:1.1rem}
.todo{background:#FFE9B8;color:var(--ink);padding:.05rem .35rem;border-radius:.2rem}
.form-retract{border:1.5px dashed var(--muted);border-radius:.4rem;padding:1.2rem 1.4rem;max-width:42rem}
.fill{display:inline-block;min-width:12rem;border-bottom:1px dotted var(--ink);height:1.2em;vertical-align:bottom;width:min(100%,24rem)}
.fill.short{min-width:8rem;width:10rem}
@media print{.toc{display:none}.cgv{display:block}.summary{break-inside:avoid}}

/* Texte justifié (pages légales et paragraphes longs) */
.legal p,.legal li,.measure p,.measure{text-align:justify;hyphens:auto;-webkit-hyphens:auto;text-justify:inter-word}
.legal h2,.legal h3{text-align:left;hyphens:manual}
.legal .summary li,.legal .summary p{text-align:left}
.legal td,.legal th{text-align:left;hyphens:manual}.legal td.num{text-align:right}

/* Pied de page aligné */
.site-footer{padding-block:3rem 1.75rem}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2rem 2.5rem;align-items:start}
.foot-grid h2{font-family:var(--text);font-size:.95rem;font-weight:700;letter-spacing:0;color:#fff;margin:0 0 .8rem}
.foot-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.foot-grid a{text-decoration:none}
.foot-grid a:hover{text-decoration:underline}
.foot-brand .brand{color:#fff;margin-bottom:.8rem}
.foot-brand p{margin:0;max-width:20rem;color:#C9CCEA}
.foot-bottom{display:flex;flex-wrap:wrap;gap:.6rem 2rem;justify-content:space-between;align-items:baseline;border-top:1px solid #2A2F7A;margin-top:2rem;padding-top:1.25rem;font-size:.9rem}
.foot-bottom .foot-note{flex:1 1 28rem;max-width:44rem;text-align:right}
@media (max-width:60rem){.foot-grid{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}.foot-bottom .foot-note{text-align:left}}
@media (max-width:30rem){.foot-grid{grid-template-columns:1fr}}
.foot-grid a[href^="mailto"]{overflow-wrap:anywhere}@media (min-width:60.01rem){.foot-grid{grid-template-columns:1.4fr .9fr 1fr 1.3fr}}

/* En-tête à 6 liens : jamais de retour à la ligne dans la navigation */
.nav a,.brand span{white-space:nowrap}
.nav a{padding:.5rem .6rem;font-size:.95rem}
.nav .nav-cta{padding:.5rem .8rem}
@media (min-width:56.01rem) and (max-width:75rem){.brand span{font-size:1rem}.nav a{padding:.5rem .45rem;font-size:.9rem}.nav .nav-cta{margin-left:.25rem}}
