/* ============================================================
   À sec, à flot — les fondations, extraites de site.css le 02/09/2026.
   site.css est la feuille de VigieFeux ; asecaflot la chargeait par
   héritage. Mesure faite : 321 règles, 92 utilisées ici.
   Se charge AVANT le <style> de chaque page — la position de site.css,
   pour que les styles de page continuent de gagner sur les fondations.
   ============================================================ */



:root {
  /* Fondations (charte §02) */
  --nuit: #10151C; --surface: #1A212B; --ligne: #2B3542;
  --texte: #EAEDF1; --secondaire: #98A3B0; --sourdine: #5C6673; --papier: #F7F5F1;
  /* Accent Braise */
  --braise: #FF5A2D; --braise-foncee: #D9431C; --braise-nuit: #3D1A10; --braise-claire: #FF8A66;
  /* Statuts — jamais détournés */
  --ambre: #F2A93B; --vert: #43A868; --bleu: #4A83F0;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--nuit); color: var(--texte);
  font-family: "IBM Plex Sans", system-ui, sans-serif; /* la charte impose la sienne juste apres */ font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

a { color: var(--braise); text-decoration: none; }

a:hover { color: var(--braise-claire); }

.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; color: var(--braise); text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -.01em; text-wrap: balance; }

h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }

h2 { font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; }

h3 { font-size: 17px; font-weight: 700; }

p { margin: 0; }

strong { color: var(--texte); }

.sourd { color: var(--secondaire); }

.mesure { max-width: 660px; }

header, main, footer { position: relative; z-index: 1; }


/* ── En-tête ──────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 21, 28, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}

.tete { display: flex; align-items: center; gap: 8px 28px; min-height: 64px; flex-wrap: wrap; }

.marque {
  font-size: 21px; font-weight: 700; color: var(--texte); letter-spacing: -.01em;
  display: flex; align-items: center; gap: 9px;
}

.marque em { font-style: italic; font-weight: 800; color: var(--braise); }

.nav-site { display: flex; gap: 22px; flex: 1; font-size: 14px; font-weight: 500; align-items: center; }

.nav-site a { color: var(--secondaire); padding: 20px 0; white-space: nowrap; }

.nav-site a:hover { color: var(--texte); }

/* --braise appartient a VigieFeux et n’existe dans aucune feuille d’asecaflot :
   la declaration etait invalide, et la page courante ne se soulignait pas. */
.nav-site a.actif { color: var(--encre); border-bottom: 2px solid var(--crue-vive); padding-bottom: 18px; }

.nav-site a.essentiel { font-family: var(--mono); font-size: 12px; }

.btn-carte {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1px solid var(--ligne); border-radius: 8px; color: var(--texte);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}

.btn-carte:hover { background: var(--surface); border-color: #3A4656; color: var(--texte); }

@media (max-width: 900px) {
  .tete { padding-block: 10px; }
  .nav-site { order: 3; width: 100%; flex: none; overflow-x: auto; gap: 18px; }
  .nav-site a { padding: 6px 0 10px; }
  .nav-site a.actif { padding-bottom: 8px; }
  .btn-carte { margin-left: auto; }
}


/* ── Sections & héros ─────────────────────────────────── */
section.bloc { padding: 96px 0 0; }

.page-tete { padding: 72px 0 0; }

.page-tete .kicker { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 8px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}

.btn.plein { background: var(--braise); color: var(--nuit); }

.btn.plein:hover { background: var(--braise-foncee); color: var(--nuit); }

.btn.contour { border: 1px solid var(--ligne); color: var(--texte); font-weight: 600; }

.btn.contour:hover { background: var(--surface); color: var(--texte); }

.stat { background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px; padding: 20px; }

.stat .valeur { font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

.stat .valeur small { font-size: 15px; color: var(--secondaire); font-weight: 500; }

.stat .libelle { font-size: 13px; color: var(--secondaire); margin-top: 8px; line-height: 1.5; }

.stat .maj { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--sourdine); margin-top: 8px; }


/* ── Grilles de cartes ────────────────────────────────── */
.grille { display: grid; gap: 14px; }

.carte {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}

.carte.sobre { background: none; padding: 24px 26px; }

.carte p { font-size: 14px; line-height: 1.65; color: var(--secondaire); }


/* ── Frise 4 temps (timeline / parcours) ──────────────── */
.frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }

.frise::before {
  content: ""; position: absolute; top: 11px; left: 12.5%; right: 12.5%;
  height: 1px; background: var(--ligne);
}

@media (max-width: 900px) {
  .frise { grid-template-columns: 1fr; gap: 28px; }
  .frise::before { top: 0; bottom: 0; left: 11px; right: auto; width: 1px; height: auto; }
  .frise-etape { text-align: left; padding: 0 0 0 44px; }
  .frise-pt { position: absolute; left: 0; margin: 0; }
}


.duo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }

@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 28px; } }


.panneau {
  background: var(--surface); border: 1px solid var(--ligne);
  border-radius: 14px; padding: 44px 48px;
}

@media (max-width: 900px) { .panneau { padding: 28px 24px; } }


/* ── FAQ ──────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }

.faq details { background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px; padding: 0 22px; }

.faq details[open] { border-color: color-mix(in srgb, var(--braise) 45%, var(--ligne)); }

.faq summary {
  cursor: pointer; font-size: 15.5px; font-weight: 700; padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: var(--braise); font-size: 20px; font-weight: 600; transition: transform .2s; }

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { font-size: 14.5px; line-height: 1.7; color: var(--secondaire); padding-bottom: 18px; }


/* Sommaire ancré (chips) */
.sommaire { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.sommaire a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid var(--ligne); border-radius: 999px;
  color: var(--secondaire); font-size: 13.5px; font-weight: 600;
}

.sommaire a:hover { border-color: var(--braise); color: var(--texte); }


/* Chaînage de fin de page */
.chaine {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px;
  padding: 40px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.chaine .titre { font-size: 20px; font-weight: 800; margin-bottom: 6px; }

.chaine .sous { font-size: 15px; color: var(--secondaire); }

@media (max-width: 900px) { .chaine { padding: 26px 24px; } }

.refus {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px;
  padding: 24px 28px; display: flex; gap: 20px; scroll-margin-top: 90px;
}

.refus .numero { font-family: var(--mono); font-size: 13px; color: var(--braise); font-weight: 600; min-width: 76px; padding-top: 2px; }

.refus .titre { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }

.refus p { font-size: 14.5px; line-height: 1.7; color: var(--secondaire); }

@media (max-width: 640px) { .refus { flex-direction: column; gap: 8px; } }


/* ── Pied de page ─────────────────────────────────────── */
footer.site { border-top: 1px solid var(--ligne); margin-top: 96px; }

.pied { padding: 48px 0; display: flex; flex-direction: column; gap: 24px; }

.pied-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }

.pied-nav a { color: var(--secondaire); }

.pied-nav a:hover { color: var(--texte); }

.pied-sources { font-size: 12.5px; line-height: 1.7; color: var(--sourdine); max-width: 860px; }

.pied-sources span { color: var(--secondaire); }

.pied-bas {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--ligne); padding-top: 20px;
}

.pied-bas .urgence { font-family: var(--mono); font-size: 12px; color: var(--secondaire); }

.pied-bas .urgence a { color: var(--braise); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; transform: none; transition: none; }
  .balayage, .foyer-o, .pt-pouls, .crise-pulse { animation: none; }
  html { scroll-behavior: auto; }
}


/* ── Mobile site : hamburger, héros, flanc (un élément par bord) ── */
.burger { display: none; }

@media (max-width: 760px) {
  .nav-site { display: none; }
  .flanc-entraide { display: none; }
  /* Héros : un chip par coin — l'observation vit déjà dans les stats dessous */
  .radar-obs { display: none; }
  .tete { flex-wrap: nowrap; gap: 10px; }
  .tete .btn-carte { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; margin-left: 0; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-left: auto;
    background: none; border: 1px solid var(--ligne); border-radius: 10px; cursor: pointer;
  }
  .burger span { display: block; height: 2px; border-radius: 2px; background: var(--texte); }

  .menu-voile {
    display: flex; position: fixed; inset: 0; z-index: 90;
    background: rgba(16, 21, 28, .55); justify-content: flex-end;
  }
  .menu-voile[hidden] { display: none; }
  .menu-panneau {
    width: min(320px, 88%); height: 100%; overflow-y: auto;
    background: var(--surface); border-left: 1px solid var(--ligne);
    display: flex; flex-direction: column; padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .menu-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .menu-fermer {
    width: 40px; height: 40px; background: none; border: 1px solid var(--ligne);
    border-radius: 10px; color: var(--secondaire); font-size: 15px; cursor: pointer;
  }
  .menu-panneau nav { display: flex; flex-direction: column; }
  .menu-panneau nav a {
    padding: 14px 4px; font-size: 16.5px; font-weight: 600; color: var(--texte);
    border-bottom: 1px solid rgba(152, 163, 176, .12); text-decoration: none;
  }
  .menu-panneau nav a.actif { color: var(--braise); }
  .menu-panneau nav a.essentiel { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
  .menu-carte { margin-top: 18px; text-align: center; }
  .menu-urgence {
    margin-top: auto; padding-top: 18px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--secondaire);
  }
  .menu-urgence a { font-size: 14px; font-weight: 700; }
}


/* Images d'article : sans height:auto, l'attribut HTML height="768" s'applique
   en pixels alors que le CSS impose width:100% — l'image est etiree en hauteur.
   Regle globale : vaut pour tous les articles, presents et futurs. */
.prose img, .conteneur img {
  max-width: 100%;
  height: auto;
}



/* ── Blocs editoriaux du blog (charte de redaction, 25/08/2026) ────────── */
.fil-ariane { font: 500 11px "IBM Plex Mono", monospace; letter-spacing: .05em;
  color: var(--muet, #8A8FA3); margin: 0 0 10px; }

.fil-ariane a { color: inherit; text-decoration: none; }

.fil-ariane a:hover { color: var(--braise, #FF5A2D); }

.schema-art { background: var(--surface, #14181F); border: 1px solid var(--ligne, #262B36);
  border-radius: 12px; padding: 18px; margin: 22px 0; overflow-x: auto; }

.schema-art svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
