/* En-tête et pied de page communs (markup : src/site-chrome/chrome.mjs).
   Chargé par toutes les pages : layout React racine et public/*.html.
   Tout est préfixé .sc- et redéfini explicitement pour résister aux styles
   des différents gabarits (règles header/footer/a des landing pages, Tailwind).
   Le préfixe :is(#sc-header, #sc-footer) doublé donne une spécificité (2,x,x) :
   le reset global de l'app (:not(#\#):not(#\#), spécificité 2,0,0) écraserait
   sinon marges et paddings. */

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-header, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-footer {
  --sc-bg: #05070d;
  --sc-line: rgba(118, 166, 209, 0.16);
  --sc-text: #eef2f8;
  --sc-muted: #9aa8bb;
  --sc-accent: #76a6d1;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--sc-text);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-header *, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-footer * { box-sizing: border-box; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-header a, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-footer a { color: inherit; text-decoration: none; }

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- En-tête ---------- */
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-header {
  top: 0; left: 0; right: 0; z-index: 1000;
  margin: 0; padding: 0;
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sc-line);
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-header--fixed { position: fixed; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-header--sticky { position: sticky; }

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (min-width: 640px) { :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-bar { height: 80px; } }

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-brand img { display: block; height: 30px; width: auto; }
@media (min-width: 640px) { :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-brand img { height: 34px; } }

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-nav { display: flex; align-items: center; gap: 4px; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-top {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; white-space: nowrap; color: var(--sc-text);
  transition: color 0.2s, background 0.2s;
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-top:hover, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-top:focus-visible { color: var(--sc-accent); }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-has-drop::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-item { position: relative; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-drop {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  padding: 8px; margin-top: 4px;
  background: #0b1220; border: 1px solid var(--sc-line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none; flex-direction: column;
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-item:hover .sc-drop, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-item:focus-within .sc-drop { display: flex; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-item:hover .sc-has-drop::after { transform: rotate(225deg); margin-top: 3px; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-drop a { padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--sc-muted); }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-drop a:hover, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-drop a:focus-visible { background: rgba(118, 166, 209, 0.1); color: #fff; }

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-cta {
  margin-left: 10px; padding: 10px 18px; border-radius: 999px;
  background: var(--sc-accent); color: #05070d !important;
  font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  transition: background 0.2s;
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-cta:hover { background: #8fb9de; }

:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger { display: none; }

@media (max-width: 1099px) {
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--sc-line);
  }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger span, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger span::before, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger span::after {
    display: block; width: 18px; height: 1.5px; background: var(--sc-text); position: relative; content: '';
    transition: transform 0.2s, background 0.2s;
  }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger span::before { position: absolute; top: -6px; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-burger span::after { position: absolute; top: 6px; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-menu-toggle:focus-visible + .sc-burger { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-menu-toggle:checked + .sc-burger span { background: transparent; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-menu-toggle:checked + .sc-burger span::before { transform: translateY(6px) rotate(45deg); }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-menu-toggle:checked + .sc-burger span::after { transform: translateY(-6px) rotate(-45deg); }

  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 64px); overflow-y: auto;
    padding: 12px 16px 24px; background: var(--sc-bg); border-bottom: 1px solid var(--sc-line);
  }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-menu-toggle:checked ~ .sc-nav { display: flex; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-top { display: flex; padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--sc-line); border-radius: 0; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-has-drop::after { display: none; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-drop {
    position: static; display: flex; min-width: 0; margin: 0; padding: 4px 0 8px 12px;
    background: none; border: 0; box-shadow: none;
  }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-drop a { padding: 8px 4px; }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-cta { margin: 16px 0 0; text-align: center; justify-content: center; padding: 14px 18px; }
}

/* ---------- Pied de page ---------- */
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer).sc-footer {
  position: relative; z-index: 1;
  margin: 0; padding: 56px 0 28px;
  background: var(--sc-bg); border-top: 1px solid var(--sc-line);
  font-size: 0.9rem; line-height: 1.6;
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbrand p { margin: 16px 0; color: var(--sc-muted); max-width: 300px; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbrand address { font-style: normal; color: var(--sc-muted); }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbrand address a { color: var(--sc-text); }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbrand address a:hover { color: var(--sc-accent); }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fcol { display: flex; flex-direction: column; gap: 8px; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-ftitle {
  margin: 0 0 6px; color: var(--sc-accent);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fcol a { color: var(--sc-muted); transition: color 0.2s; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fcol a:hover, :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fcol a:focus-visible { color: #fff; }
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--sc-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.8rem; color: var(--sc-muted);
}
:is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbottom a:hover { color: #fff; }

@media (max-width: 1023px) {
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fgrid { grid-template-columns: repeat(2, 1fr); }
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fbrand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  :is(#sc-header, #sc-footer):is(#sc-header, #sc-footer) .sc-fgrid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------------------------------------------------------
   Formulaires de rappel des landing pages statiques (public/site-tracking.js).
   Hors header/footer : ces classes ne servent que dans public/*.html, où le
   reset à forte spécificité des pages React ne s'applique pas.
   --------------------------------------------------------------------------- */
.lead-form button.btn { font-family: inherit; }
.lead-form button.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 9px; font-size: .9rem; line-height: 1.5; }
.lead-status a { color: inherit; text-decoration: underline; }
.lead-status--ok { background: rgba(0, 255, 163, .1); border: 1px solid rgba(0, 255, 163, .35); color: #b8ffe4; }
.lead-status--err { background: rgba(237, 125, 49, .12); border: 1px solid rgba(237, 125, 49, .45); color: #ffd2b0; }
