/* Charte « Nuit » des pages intérieures (guides, pages légales) — 11/2026.
   En-tête et pied bleu nuit, appel final quadrillé, boutons, et un peu de mouvement.
   Chargée après les styles de chaque page : à poids égal, ces règles l'emportent. */
:root{ --ch-nuit:#0A2254; --ch-profond:#071B45; --ch-ciel:#6FB6FF; --ch-voile:#D3DFF5; --ch-saphir:#1A47CC; --ch-filet:#C3D2EA; --ch-doux:cubic-bezier(.2,.8,.2,1); }
.ch-quadrille{ position:absolute; top:-80px; right:-80px; bottom:-80px; left:-80px; pointer-events:none; background-image:linear-gradient(rgba(255,255,255,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.10) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size:80px 80px,80px 80px,16px 16px,16px 16px; }

/* ---------- en-tête ---------- */
.ch-tete{ position:sticky; top:0; z-index:50; overflow:hidden; background:var(--ch-nuit); color:#fff; font-family:'Hanken Grotesk',system-ui,sans-serif; transition:box-shadow .3s ease; }
.ch-tete.colle{ box-shadow:0 10px 30px -14px rgba(4,14,40,.75); }
.ch-dedans{ position:relative; box-sizing:border-box; max-width:1280px; margin:0 auto; padding:0 20px; height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
@media (min-width:900px){ .ch-dedans{ padding:0 40px; } }
.ch-logo{ min-height:44px; display:flex; align-items:center; gap:10px; font-size:21px; font-weight:800; letter-spacing:-.02em; color:#fff; text-decoration:none; }
.ch-logo svg{ color:var(--ch-ciel); }
.ch-tete nav{ display:none; gap:34px; }
.ch-tete nav a{ min-height:44px; display:flex; align-items:center; font-size:15px; font-weight:600; color:var(--ch-voile); text-decoration:none; }
.ch-tete nav a:hover, .ch-lien:hover{ color:#fff; text-decoration:underline; text-underline-offset:5px; }
.ch-tete nav a[aria-current="page"]{ color:#fff; }
.ch-actions{ display:flex; align-items:center; gap:18px; }
.ch-lien{ min-height:44px; display:flex; align-items:center; font-size:15px; font-weight:700; color:#fff; text-decoration:none; }
.ch-actions .ch-btn{ display:none; }
@media (min-width:900px){ .ch-tete nav, .ch-actions .ch-btn{ display:flex; } }

/* ---------- boutons ---------- */
.ch-btn{ box-sizing:border-box; min-height:56px; padding:0 26px; border-radius:13px; display:inline-flex; align-items:center; justify-content:center; gap:10px; font-family:'Hanken Grotesk',system-ui,sans-serif; font-size:17px; line-height:1; font-weight:600; letter-spacing:.012em; text-decoration:none; white-space:nowrap; }
.ch-btn.petit{ min-height:44px; padding:0 18px; font-size:15px; }
.ch-btn.blanc{ background:#fff; color:var(--ch-nuit); box-shadow:0 2px 4px rgba(0,0,0,.25),0 14px 28px -10px rgba(0,0,0,.55); }
.ch-btn.contour{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.75); }
.ch-tete a:focus-visible, .ch-fin a:focus-visible, .ch-pied a:focus-visible{ outline:3px solid var(--ch-ciel); outline-offset:3px; border-radius:6px; }

/* ---------- appel final ---------- */
.ch-fin{ position:relative; overflow:hidden; margin-top:40px; padding:clamp(56px,8vw,96px) 20px; background:var(--ch-nuit); color:#fff; font-family:'Hanken Grotesk',system-ui,sans-serif; box-shadow:inset 0 -160px 140px -80px rgba(3,12,36,.85); }
.ch-fin-in{ position:relative; max-width:760px; margin:0 auto; display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px; }
.ch-fin h2{ margin:0; font-size:clamp(28px,4.2vw,48px); line-height:1.06; font-weight:800; letter-spacing:-.03em; color:#fff; text-wrap:balance; }
.ch-fin p{ margin:0; font-size:18px; line-height:1.5; color:var(--ch-voile); }
.ch-duo{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; width:100%; margin-top:6px; }
@media (max-width:520px){ .ch-duo .ch-btn{ flex:1 1 100%; } }
.ch-brille{ position:relative; overflow:hidden; }
.ch-brille::before{ content:""; position:absolute; top:0; bottom:0; left:0; width:34%; background:linear-gradient(90deg,rgba(26,71,204,0),rgba(26,71,204,.16),rgba(26,71,204,0)); transform:translateX(-140%) skewX(-20deg); pointer-events:none; }

/* ---------- pied de page ---------- */
.ch-pied{ background:var(--ch-profond); color:#E6EEFB; font-family:'Hanken Grotesk',system-ui,sans-serif; }
.ch-pied-in{ box-sizing:border-box; max-width:1280px; margin:0 auto; padding:56px 20px 40px; }
@media (min-width:900px){ .ch-pied-in{ padding-left:40px; padding-right:40px; } }
.ch-pied-haut{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:36px 48px; }
.ch-pied-haut > div:first-child{ max-width:340px; }
.ch-pied-haut p{ margin:14px 0 0; font-size:15.5px; line-height:1.5; color:#C9D6EE; }
.ch-cols{ display:flex; flex-wrap:wrap; gap:28px 72px; }
.ch-cols div{ display:flex; flex-direction:column; }
.ch-cols b{ font-family:'B612 Mono',ui-monospace,'SF Mono',Menlo,monospace; font-size:13px; letter-spacing:.06em; color:#9FB6E0; margin-bottom:6px; }
.ch-cols a{ min-height:44px; display:flex; align-items:center; font-size:15.5px; color:#E6EEFB; text-decoration:none; }
.ch-cols a:hover{ text-decoration:underline; text-underline-offset:4px; }
.ch-bas{ margin-top:40px; padding-top:22px; border-top:1px solid rgba(255,255,255,.16); display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; font-size:14px; color:#C9D6EE; }

/* ---------- pages de guides : cartes en relief, étiquette en ligne de cote ---------- */
.gcard{ border:1px solid var(--ch-filet); background:linear-gradient(180deg,#fff 0%,#FAFCFF 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(11,34,64,.08),0 14px 28px -10px rgba(11,34,64,.28); }
.eyebrow{ display:flex; align-items:center; gap:12px; }
.eyebrow::after{ content:""; flex:0 0 72px; height:9px; border-right:1.5px solid currentColor; background:linear-gradient(currentColor,currentColor) left center / 100% 1.5px no-repeat; transform-origin:0 50%; }

/* ---------- mouvement (coupé si l'appareil le demande) ---------- */
@keyframes ch-derive{ to{ transform:translate3d(80px,80px,0); } }
@keyframes ch-trace{ from{ transform:scaleX(0); } to{ transform:none; } }
@keyframes ch-titre{ from{ transform:translateY(14px); } to{ transform:none; } }
@keyframes ch-brille{ 0%,72%{ transform:translateX(-140%) skewX(-20deg); } 100%{ transform:translateX(420%) skewX(-20deg); } }
@media (prefers-reduced-motion:no-preference){
  .ch-quadrille{ animation:ch-derive 40s linear infinite; will-change:transform; }
  .ch-btn{ transition:transform .18s var(--ch-doux), box-shadow .18s ease, background-color .18s ease; }
  .ch-btn svg{ transition:transform .2s var(--ch-doux); }
  .ch-btn:active{ transform:translateY(1px) scale(.98); transition-duration:.06s; }
  .ch-brille::before{ animation:ch-brille 5.5s ease-in-out 1.5s infinite; }
  .eyebrow::after{ animation:ch-trace .9s cubic-bezier(.65,0,.35,1) .25s both; }
  main h1{ animation:ch-titre .7s var(--ch-doux) both; }
  .gcard{ transition:transform .25s var(--ch-doux), box-shadow .25s ease, border-color .25s ease; }
  .ch-anim .ch-rev{ opacity:.12; transform:translateY(30px); transition:opacity .7s ease, transform .8s var(--ch-doux); }
  .ch-anim .ch-rev.vu{ opacity:1; transform:none; }
}
@media (hover:hover){ .ch-btn.blanc:hover{ box-shadow:0 4px 8px rgba(0,0,0,.3),0 22px 36px -12px rgba(0,0,0,.65); } .ch-btn.contour:hover{ background:rgba(255,255,255,.10); } }
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .ch-btn:hover{ transform:translateY(-2px); } .ch-btn:hover svg{ transform:translateX(3px); }
  .gcard:hover{ transform:translateY(-5px); border-color:#9DB6E6; box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 4px rgba(11,34,64,.10),0 24px 40px -14px rgba(11,34,64,.38); }
}
