/* ═══════════════════════════════════════════════════════════════════
   MOXXA v5 — DESIGN SYSTEM
   Thème par défaut : clair, premium (style Stripe / Linear)
   Palette   : Slate / Electric Blue / Mint Teal
   Typo      : Outfit (display, 700-900) + DM Sans (corps, 400-600)
   Icônes    : sprite SVG (assets/icons.svg) — plus aucun emoji en UI
   ═══════════════════════════════════════════════════════════════════ */

/* FIX (perf) : la police était chargée deux fois — une fois via le <link>
   présent dans le <head> de chaque page (qui bénéficie déjà du <link
   rel="preconnect">), une fois ici via @import. @import bloque en plus le
   rendu : le navigateur doit télécharger ET parser cette 2e feuille de
   style avant de pouvoir appliquer la moindre règle de design.css.
   Les polices sont maintenant servies par le site : voir assets/css/fonts.css,
   chargé par le <head> de chaque page. */

/* ─── TOKENS — THÈME CLAIR (par défaut) ─────────────────────────── */
:root {
  /* ── Backgrounds */
  --bg-0:  #FFFFFF;
  --bg-1:  #F8F9FD;
  --bg-2:  #FFFFFF;
  --bg-3:  #F1F3F9;
  --bg-4:  #E7EAF3;
  --bg-5:  #DCE0EE;
  --bg-6:  #CBD0E4;

  /* ── Electric Blue */
  /* FIX: --blue-l est utilisé comme couleur de TEXTE (liens, accents) sur
     fond clair à ~40 endroits du site — sa valeur héritée du thème sombre
     (#5C84F0) n'offre qu'un contraste ~3.5:1 sur blanc (sous le seuil AA de
     4.5:1 pour du texte normal). Valeur resserrée pour rester lisible. */
  --blue:    #3667E8;
  --blue-l:  #2F5FD4;
  --blue-d:  #2750C4;
  --blue-bg: rgba(54,103,232,.07);
  --blue-b:  rgba(54,103,232,.18);
  --blue-b2: rgba(54,103,232,.32);

  /* ── Mint Teal ── */
  /* FIX: comme --blue-l plus haut, --mint/--mint-l/--amber/--rose/--purple
     sont aussi utilisées comme couleur de TEXTE directement sur fond blanc
     (valeurs KPI, titres, badges) à des dizaines d'endroits. Resserrées pour
     un contraste ≥4.5:1 (AA texte normal) tout en gardant la teinte. */
  --mint:    #008067;
  --mint-l:  #00B894;
  --mint-d:  #00684F;
  --mint-bg: rgba(0,184,148,.08);
  --mint-b:  rgba(0,184,148,.24);

  /* ── Amber */
  --amber:   #A2660A;
  --amber-bg:rgba(220,138,14,.09);
  --amber-b: rgba(220,138,14,.26);

  /* ── Rose / error */
  --rose:    #DC2D56;
  --rose-bg: rgba(224,71,107,.08);
  --rose-b:  rgba(224,71,107,.24);

  /* ── Purple accent */
  --purple:    #7452FC;
  --purple-bg: rgba(124,92,252,.08);

  /* ── Text */
  --text:   #12152B;
  --text-2: #565B7E;
  --text-3: #5F658C;
  --text-4: #B3B7CE;

  /* ── Borders */
  --b0: rgba(20,30,90,.05);
  --b1: rgba(20,30,90,.09);
  --b2: rgba(20,30,90,.15);
  --b3: rgba(20,30,90,.26);

  /* ── Radius */
  --r1:  6px;
  --r2:  10px;
  --r3:  14px;
  --r4:  18px;
  --r5:  22px;
  --r6:  28px;
  --r7:  36px;
  --pill:100px;

  /* ── Shadows (douces, papier) */
  --sh-xs: 0 1px 2px rgba(20,30,90,.05);
  --sh-sm: 0 2px 8px rgba(20,30,90,.06);
  --sh:    0 6px 20px rgba(20,30,90,.08);
  --sh-lg: 0 16px 40px rgba(20,30,90,.12);
  --sh-xl: 0 28px 70px rgba(20,30,90,.16);
  --glow:  0 0 0 4px var(--blue-bg);
  --glow-m:0 0 0 4px var(--mint-bg);
  --glow-l:0 12px 32px rgba(54,103,232,.22);

  /* ── Typography */
  --f-display: 'Outfit', system-ui, sans-serif;
  --f-body:    'DM Sans', system-ui, sans-serif;
  --f-mono:    'DM Mono', 'Fira Code', monospace;

  /* ── Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px;  --s8: 48px;

  /* ── Transitions */
  --t0: all .12s ease;
  --t1: all .18s cubic-bezier(.4,0,.2,1);
  --t2: all .28s cubic-bezier(.4,0,.2,1);
  --t3: all .42s cubic-bezier(.4,0,.2,1);
}

/* ─── THÈME SOMBRE (.dark, via le sélecteur de thème) ───────────── */
.dark {
  --bg-0:  #03060F;
  --bg-1:  #0B0F1F;
  --bg-2:  #10142B;
  --bg-3:  #161B36;
  --bg-4:  #1C2240;
  --bg-5:  #232A4E;
  --bg-6:  #2B335E;

  --blue-bg: rgba(92,132,240,.1);
  --blue-b:  rgba(92,132,240,.24);
  --blue-b2: rgba(92,132,240,.4);
  --blue-l:  #7FA0FF;

  --mint:    #00E5B4;
  --mint-l:  #33EDCA;
  --mint-d:  #00E5B4;
  --mint-bg: rgba(0,229,180,.09);
  --mint-b:  rgba(0,229,180,.26);

  --amber:   #F5A623;
  --amber-bg:rgba(245,166,35,.1);
  --amber-b: rgba(245,166,35,.28);

  --rose:    #F25B7B;
  --rose-bg: rgba(242,91,123,.1);
  --rose-b:  rgba(242,91,123,.3);

  --purple: #A78BFA;

  --text:   #EDEEF5;
  --text-2: #A0A4C0;
  --text-3: #6B6F90;
  --text-4: #454A70;

  --b0: rgba(120,150,255,.07);
  --b1: rgba(120,150,255,.14);
  --b2: rgba(120,150,255,.24);
  --b3: rgba(120,150,255,.4);

  --sh-xs: 0 1px 4px rgba(0,0,0,.5);
  --sh-sm: 0 2px 10px rgba(0,0,0,.55);
  --sh:    0 4px 24px rgba(0,0,0,.6);
  --sh-lg: 0 12px 48px rgba(0,0,0,.7);
  --sh-xl: 0 24px 80px rgba(0,0,0,.78);
  --glow:  0 0 40px rgba(92,132,240,.18);
  --glow-m:0 0 32px rgba(0,229,180,.16);
  --glow-l:0 0 60px rgba(92,132,240,.28);
}
/* Compat : ancien nom de classe utilisé par initTheme() avant la bascule par défaut */
.light { }

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg-1);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--blue); text-decoration: none; transition: var(--t1); }
a:hover { color: var(--blue-d); }
.dark a { color: var(--blue-l); }
.dark a:hover { color: var(--blue); }
img, svg { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--f-body); }

/* ─── ICON SYSTEM ────────────────────────────────────────────────── */
/* Sprite SVG (assets/icons.svg) référencé via <svg class="icon"><use href="/assets/icons.svg#name"/></svg> */
.icon {
  width: 1.15em; height: 1.15em;
  display: inline-block; flex-shrink: 0;
  vertical-align: -.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }
.icon-sm { width: .95em; height: .95em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2.4em; height: 2.4em; stroke-width: 1.5; }

/* ─── GRID BACKGROUND ────────────────────────────────────────────── */
.dot-bg { position: relative; }
.dot-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(54,103,232,.16) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 80%);
}
.dark .dot-bg::before { background-image: radial-gradient(circle, rgba(92,132,240,.25) 1px, transparent 1px); }

/* ─── MESH GRADIENT ──────────────────────────────────────────────── */
.mesh-bg { position: relative; overflow: hidden; }
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54,103,232,.1) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none; z-index: 0;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 540px;  margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 880px;  margin: 0 auto; padding: 0 28px; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 14px;
  padding: 11px 24px; border-radius: var(--r3); border: none;
  cursor: pointer; transition: var(--t2); text-decoration: none !important;
  white-space: nowrap; position: relative; overflow: hidden; letter-spacing: .1px;
}
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255,255,255,0); transition: background .18s;
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(54,103,232,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover {
  background: var(--blue-d);
  box-shadow: 0 8px 24px rgba(54,103,232,.36);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-mint {
  background: var(--mint);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,184,148,.26), inset 0 1px 0 rgba(255,255,255,.15);
  font-weight: 700;
}
.btn-mint:hover {
  background: var(--mint-d);
  box-shadow: 0 8px 24px rgba(0,184,148,.34);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text-2) !important;
  border: 1px solid var(--b2);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover {
  border-color: var(--b3);
  color: var(--text) !important;
  background: var(--blue-bg);
}

.btn-glass {
  background: rgba(54,103,232,.06);
  color: var(--blue) !important;
  border: 1px solid var(--b2);
  backdrop-filter: blur(12px);
}
.dark .btn-glass { color: var(--blue-l) !important; }
.btn-glass:hover {
  background: rgba(54,103,232,.12);
  color: var(--blue-d) !important;
  border-color: var(--b3);
}

.btn-lg { font-size: 16px; padding: 14px 34px; border-radius: var(--r4); font-weight: 700; }
.btn-sm { font-size: 13px; padding: 7px 16px;  border-radius: var(--r2); }
.btn-xs { font-size: 11px; padding: 5px 12px;  border-radius: var(--r1); }
/* Très petits écrans : un .btn-lg en nowrap (« Créer mon compte gratuit » ≈ 292 px)
   dépassait sa colonne et faisait défiler la page horizontalement. */
@media (max-width: 380px) {
  .btn-lg { padding: 14px 20px; white-space: normal; text-align: center; }
}

/* ─── FORMS ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-2); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .8px;
}
/* tel et number inclus : sans eux, les champs « téléphone » du formulaire clé en
   main et de la fiche NAP s'affichaient comme des champs bruts du navigateur. */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=url], input[type=search], input[type=date], textarea, select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--b2);
  border-radius: var(--r3);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--f-body); font-size: 14px;
  transition: var(--t1);
  outline: none;
  line-height: 1.5;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
  background: var(--bg-2);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }

.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-bg); }
.error-msg { display: none; font-size: 12px; color: var(--rose); margin-top: 5px; }
.form-group.has-error .error-msg { display: block; }

/* Achats ouverts ou non (voir « ACHATS » dans app.js). Tant que le site ne
   sait pas, il ne montre ni l'un ni l'autre : rien n'apparaît pour disparaître. */
html:not(.sales-open) [data-sale] { display: none !important; }
html:not(.sales-closed) [data-no-sale] { display: none !important; }

/* Alert bar */
.alert {
  border-radius: var(--r3); padding: 12px 16px;
  font-size: 13px; margin-bottom: 16px; display: none;
  align-items: flex-start; gap: 10px; line-height: 1.5;
}
.alert.show { display: flex; }
.alert.error   { background: var(--rose-bg); border: 1px solid var(--rose-b); color: var(--rose); }
.alert.success { background: var(--mint-bg); border: 1px solid var(--mint-b); color: var(--mint-d); }
.alert.warning { background: var(--amber-bg); border: 1px solid var(--amber-b); color: var(--amber); }
.alert.info    { background: var(--blue-bg); border: 1px solid var(--b2); color: var(--blue); }

/* ─── BADGES ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: var(--pill); letter-spacing: .5px;
  text-transform: uppercase; white-space: nowrap;
}
.badge-blue   { background: var(--blue-bg);   color: var(--blue-d);   border: 1px solid var(--b1); }
.badge-mint   { background: var(--mint-bg);   color: var(--mint-d); border: 1px solid var(--mint-b); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-b); }
.badge-rose   { background: var(--rose-bg);   color: var(--rose);   border: 1px solid var(--rose-b); }
.badge-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid rgba(124,92,252,.22); }
.badge-fr     { background: var(--mint-bg);   color: var(--mint-d); border: 1px solid var(--mint-b); }
.badge-int    { background: var(--blue-bg);   color: var(--blue-d);   border: 1px solid var(--b1); }
.badge-local  { background: var(--amber-bg);  color: #865407;          border: 1px solid var(--amber-b); }
.badge-ok     { background: var(--mint-bg);   color: var(--mint-d); border: 1px solid var(--mint-b); }
.badge-warn   { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-b); }
.badge-err    { background: var(--rose-bg);   color: var(--rose);   border: 1px solid var(--rose-b); }

/* Pill label (section eyebrow) */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-d);
  padding: 5px 14px; border-radius: var(--pill);
  background: var(--blue-bg); border: 1px solid var(--b1);
  margin-bottom: 16px;
}

/* ─── TOAST ──────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-2); border: 1px solid var(--b2);
  border-radius: var(--r3); padding: 12px 20px;
  font-size: 14px; font-weight: 500; box-shadow: var(--sh-lg);
  transform: translateY(20px) scale(.96); opacity: 0;
  transition: all .32s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
}
#toast.show { transform: translateY(0) scale(1); opacity: 1; }
#toast.success { border-color: var(--mint-b); color: var(--mint-d); background: var(--mint-bg); }
#toast.error   { border-color: var(--rose-b); color: var(--rose); background: var(--rose-bg); }
#toast.info    { border-color: var(--b2); color: var(--blue); }

/* ─── SPINNER ────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(54,103,232,.18);
  border-top-color: currentColor;
  animation: spin .65s linear infinite;
  display: inline-block; flex-shrink: 0;
}
.spinner.dark { border: 2px solid rgba(0,0,0,.15); border-top-color: var(--bg-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SCROLL ANIMATION ───────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }

/* ─── GLASS CARD ─────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--b1);
  border-radius: var(--r5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sh-lg);
}
.dark .glass-card { background: rgba(16,20,43,.72); }
.glass-card-bright {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--b2);
  border-radius: var(--r5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(54,103,232,.04) inset;
}
.dark .glass-card-bright { background: rgba(22,27,54,.86); }

/* ─── DIVIDERS ───────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--b1); margin: 24px 0; }
.divider-gradient { height: 1px; background: linear-gradient(90deg, transparent, var(--b2), transparent); margin: 32px 0; }

/* ─── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Lien d’évitement : visible seulement au clavier */
.skip-link{position:absolute;left:8px;top:-60px;z-index:1200;background:var(--blue);color:#fff;padding:10px 16px;border-radius:8px;font-weight:700;text-decoration:none}
.skip-link:focus{top:8px}

/* ─── PARTENAIRES SPONSORISÉS (assets/js/sponsors.js) — pages publiques et espace membre ─────────── */
.sponsors-box { margin: 20px 0; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--b1); border-radius: var(--r4); }
.sponsors-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.sponsors-tag { font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--b2); }
.sponsor { display: block; padding: 10px 0; border-top: 1px solid var(--b1); color: var(--text); text-decoration: none; min-height: 44px; }
.sponsor:first-of-type { border-top: none; }
.sponsor:hover strong { text-decoration: underline; }
.sponsor strong { font-size: 13px; }
.sponsor em { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: 8px; }
.sponsor span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   EN-TÊTE ET PIED COMMUNS DES PAGES PUBLIQUES
   Le balisage vient de scripts/site-chrome.js (seule source) ;
   tests/chrome.test.js impose qu'il soit identique partout.
   ═══════════════════════════════════════════════════════════ */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--b1); }
.dark .site-nav { background: rgba(5,8,15,.92); }
.site-nav .sn-i { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 8px; }
.sn-logo { font-family: var(--f-display); font-size: 16px; font-weight: 800; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.2px; }
.sn-logo-m { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--mint)); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sn-logo-m svg { width: 16px; height: 16px; }
.sn-links { display: flex; align-items: center; gap: 2px; margin-left: 20px; flex: 1; }
.sn-link { padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.sn-link:hover { background: var(--bg-3); color: var(--text); }
.sn-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav .btn { white-space: nowrap; }
.sn-more { display: none; position: relative; }
.sn-burger { list-style: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--b1); border-radius: 11px; background: var(--bg-3); color: var(--text); cursor: pointer; }
.sn-burger::-webkit-details-marker { display: none; }
.sn-burger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sn-more[open] .sn-burger { background: var(--bg-4); }
.sn-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; background: var(--bg-2); border: 1px solid var(--b1); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,30,90,.16); display: flex; flex-direction: column; }
.sn-panel a { padding: 12px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.sn-panel a:hover { background: var(--bg-3); }
@media (max-width: 900px) {
  .sn-links, .sn-login { display: none; }
  .sn-more { display: block; }
  .site-nav .sn-i { padding: 0 16px; }
}

footer:has(> .sf) { margin-top: 56px; padding: 0; text-align: left; background: var(--bg-1); border-top: 1px solid var(--b1); font-size: inherit; color: inherit; }
.sf { max-width: 1140px; margin: 0 auto; padding: 44px 24px 28px; }
.sf-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.sf .sn-logo { margin: 0; }
.sf-brand p { margin: 12px 0 0; max-width: 270px; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.sf-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); }
.sf .sf-col a { display: block; margin: 0; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--text-2); text-decoration: none; }
.sf .sf-col a:hover { color: var(--blue-l); text-decoration: underline; }
.sf-copy { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--b1); font-size: 12.5px; color: var(--text-3); }
@media (max-width: 960px) { .sf-grid { grid-template-columns: repeat(2, 1fr); } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf { padding: 36px 16px 24px; } .sf .sf-col a { padding: 10px 0; } }

/* Liens dans une ligne de texte (fil d'Ariane, notes) : soulignés, car la couleur seule ne les distingue pas du texte voisin. */
.m-crumb a, .l-crumb a, .d-crumb a, .d-note a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Recherche sur le site (assets/js/search.js) : le bouton n'apparaît que si le script est chargé ── */
.sn-search { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--b1); border-radius: 11px; background: var(--bg-3); color: var(--text); cursor: pointer; }
html.search-ready .sn-search { display: inline-flex; }
.sn-search:hover { background: var(--bg-4); }
.sn-search:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sx-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(15,20,50,.45); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.sx-overlay[hidden] { display: none; }
.sx-box { width: 100%; max-width: 620px; max-height: 76vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--b1); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,20,60,.3); overflow: hidden; }
.sx-input { width: 100%; padding: 18px 20px; font: 500 17px var(--f-body, inherit); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--b1); outline: none; }
.sx-list { overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.sx-item a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.sx-item a:hover, .sx-item.on a { background: var(--bg-3); }
.sx-kind { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--blue); background: rgba(54,103,232,.1); }
.sx-title { font-weight: 700; font-size: 15px; }
.sx-desc { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.sx-empty, .sx-hint { padding: 16px 20px; font-size: 13px; color: var(--text-3); }
.sx-hint { border-top: 1px solid var(--b1); display: flex; justify-content: space-between; gap: 12px; }
.sx-head { padding: 10px 14px 4px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }

/* ── Formulaire d'abonnement à la lettre (blog.html, lettre.html) ── */
.nl-box { background: var(--bg-2); border: 1px solid var(--b1); border-radius: var(--r4, 18px); padding: 24px; margin: 28px 0; }
.nl-box h2, .nl-box h3 { font-family: var(--f-display); font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.4px; }
.nl-box p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input[type="email"] { flex: 1; min-width: 220px; padding: 12px 14px; border: 1px solid var(--b1); border-radius: 10px; background: var(--bg-3); color: var(--text); font: inherit; }
.nl-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.nl-consent input { margin-top: 3px; }
.nl-msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.nl-msg.ok { color: #0b7a6b; } .nl-msg.ko { color: #b91c1c; }
.nl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bandeau d'annonce (réglé dans le panel, posé par app.js sur les pages publiques) */
.site-announce { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 44px 8px 16px; position: relative; background: var(--blue-bg); border-bottom: 1px solid var(--blue-b); color: var(--text); font-size: 13.5px; line-height: 1.5; text-align: center; }
.site-announce p { margin: 0; }
.site-announce a { color: var(--blue-l); font-weight: 700; text-decoration: underline; }
.site-announce-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.site-announce-x:hover { background: rgba(0,0,0,.06); }
.site-announce-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
