/* ═══════════════════════════════════════════════════════════
   SITE CHROME — header + footer partagés
   ───────────────────────────────────────────────────────────
   Source de vérité unique pour <site-header> + <site-footer>.
   Chargé sur TOUTES les pages (landing, tunnel, légales,
   simulateur, blog) → garantit un rendu strictement identique.
   Ne dépend que des variables CSS définies dans :root local.
   ═══════════════════════════════════════════════════════════ */

/* === FONTES BRANDING ===
   Self-hosted, indispensables au rendu du logo SVG inline.
   Sans ces déclarations, le simulateur (qui n'inclut pas style.css)
   tombait sur Georgia → métrique différente → Sylvain/OGB superposés. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-300-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback tokens locaux : appliqués si la feuille principale
   (style.css / simulateur.css) n'a pas encore initialisé :root.
   Si elle l'a fait, ces déclarations sont écrasées sans effet. */
:where(:root) {
  --chrome-accent-dark: #5C6E52;
  --chrome-ivory: #F7F5F0;
  --chrome-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* === SITE HEADER === */
site-header { display: block; }
.site-header {
  background: var(--accent-dark, var(--chrome-accent-dark));
  color: rgba(247,245,240,0.92);
  border-bottom: 0.5px solid var(--accent-dark, var(--chrome-accent-dark));
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.site-header__row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  line-height: 1;
}
.site-header__left { min-width: 0; line-height: 0; }
.site-header__right { display: flex; align-items: center; gap: 20px; justify-self: end; line-height: 1; }

.site-header .site-header__brand,
a.site-header__brand {
  display: inline-flex;
  align-items: center;
  color: rgba(247,245,240,0.95);
  text-decoration: none;
  line-height: 0;
}
.site-header .site-header__brand:hover,
a.site-header__brand:hover { color: #fff; }
.site-header__brand-svg {
  height: 40px;
  width: auto;
  display: block;
}

.site-header__nav { display: flex; gap: 24px; }
.site-header .site-header__nav a,
a.site-header__nav a {
  font-family: var(--sans, var(--chrome-sans));
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.85);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header .site-header__nav a:hover,
.site-header .site-header__nav a.is-current { color: #fff; }
.site-header .site-header__nav a.is-cta {
  color: #fff;
  border-bottom: 1px solid rgba(247,245,240,0.55);
  padding-bottom: 2px;
}
.site-header .site-header__nav a.is-cta:hover { border-color: #fff; }

.site-header .site-header__back,
.site-header .site-header__right-link,
a.site-header__back,
a.site-header__right-link {
  font-family: var(--sans, var(--chrome-sans));
  font-size: 13px;
  font-weight: 400;
  color: rgba(247,245,240,0.85);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header .site-header__back:hover,
.site-header .site-header__right-link:hover { color: #fff; }

.site-header__step,
.site-header__status {
  font-family: var(--sans, var(--chrome-sans));
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.78);
}

.site-header__subbar {
  border-top: 0.5px solid rgba(247,245,240,0.18);
  padding: 8px 20px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__progress {
  flex: 1;
  height: 3px;
  background: rgba(247,245,240,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.site-header__progress-fill {
  height: 100%;
  background: rgba(247,245,240,0.92);
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header__progress-label {
  font-family: var(--sans, var(--chrome-sans));
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(247,245,240,0.78);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .site-header__row { padding: 12px 16px; gap: 12px; }
  .site-header__brand-svg { height: 28px; }
  .site-header__nav { gap: 16px; }
  .site-header__nav a,
  .site-header__back,
  .site-header__right-link { font-size: 12px; }
  .site-header__step { font-size: 10px; }
  .site-header__subbar { padding: 6px 16px; }
}

/* === SITE FOOTER === */
site-footer { display: block; }
.site-footer {
  background: var(--accent-dark, var(--chrome-accent-dark));
  color: rgba(247,245,240,0.85);
  padding: 48px 24px 32px;
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.site-footer__stack { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.site-footer .site-footer__mark,
a.site-footer__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,245,240,0.95);
  text-decoration: none;
  line-height: 0;
  width: 40vw;
  min-width: 240px;
  max-width: 560px;
}
.site-footer .site-footer__mark:hover,
a.site-footer__mark:hover { color: #fff; }
.site-footer__mark-svg {
  width: 100%;
  height: auto;
  display: block;
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--sans, var(--chrome-sans));
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-content: center;
}
.site-footer .site-footer__links a,
.site-footer .site-footer__link-btn,
a.site-footer__links,
.site-footer__links > li > a {
  color: rgba(247,245,240,0.85);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.15s;
}
.site-footer .site-footer__links a:hover,
.site-footer .site-footer__link-btn:hover { color: #fff; }
.site-footer .site-footer__links a.is-cta {
  color: #fff;
  border-bottom: 1px solid rgba(247,245,240,0.55);
  padding-bottom: 2px;
}
.site-footer .site-footer__links a.is-cta:hover { border-color: #fff; }
.site-footer__copy {
  font-family: var(--sans, var(--chrome-sans));
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(247,245,240,0.75);
  text-align: center;
}

@media (max-width: 480px) {
  .site-footer { padding: 32px 16px 24px; }
  .site-footer__links { gap: 12px 16px; font-size: 11px; }
}

/* === LIENS — surlignement global au survol ===
   S'applique à tous les <a> du contenu (hors chrome et boutons stylés).
   Affecte uniquement text-decoration → ne perturbe pas la couleur des CTAs. */
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* Exclusions : chrome (header/footer ont déjà leur propre hover via color/border-bottom)
   et boutons stylés (ne doivent jamais se souligner). */
.site-header a:hover,
a[class*="btn"]:hover,
a[class*="sog-btn"]:hover,
a.site-header__brand:hover,
a.site-footer__mark:hover,
a.is-cta:hover {
  text-decoration: none;
}
