/* ============================================================
   site-chrome.css — barre de navigation + pied de page communs
   à toutes les pages de saasimple.fr (sauf /quiz et /signer).
   Classes préfixées sc- (R157) : aucune collision avec les styles
   propres des pages (vitrine-style.css, styles intégrés).
   Balisage : identique sur chaque page, cf. site-chrome.js.
   ============================================================ */
:root {
  --sc-bg: #05050f;
  --sc-bg-soft: #0d0d20;
  --sc-border: rgba(255, 255, 255, 0.08);
  --sc-text: #e8e8f2;
  --sc-muted: #a3a3bd;
  --sc-purple: #7c5cfc;
  --sc-purple-dark: #6a4ae0;
  --sc-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ── Barre de navigation ─────────────────────────────────── */
.sc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 5, 15, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--sc-border);
  font-family: var(--sc-font);
  transition: background 0.25s ease;
}
.sc-header.sc-scrolled { background: rgba(5, 5, 15, 0.99); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.sc-bar {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 20px;
}
.sc-logo { display: flex; align-items: center; flex-shrink: 0; }
.sc-logo img { height: 28px; width: auto; display: block; }

.sc-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.sc-menu > li { position: relative; }
.sc-link, .sc-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 10px; border-radius: 8px;
  font: 500 0.86rem/1 var(--sc-font); color: var(--sc-muted);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  white-space: nowrap; transition: color 0.2s ease, background 0.2s ease;
}
.sc-link:hover, .sc-drop-btn:hover, .sc-link[aria-current="page"] { color: #fff; }
.sc-link[aria-current="page"] { background: rgba(124, 92, 252, 0.14); }
.sc-drop-btn svg { transition: transform 0.2s ease; }
.sc-drop.sc-open .sc-drop-btn svg { transform: rotate(180deg); }

.sc-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--sc-bg-soft); border: 1px solid var(--sc-border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.sc-drop.sc-open .sc-drop-menu { opacity: 1; visibility: visible; transform: none; }
.sc-drop-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font: 500 0.86rem/1.2 var(--sc-font); color: var(--sc-text); text-decoration: none;
}
.sc-drop-menu a:hover, .sc-drop-menu a[aria-current="page"] { background: rgba(124, 92, 252, 0.16); color: #fff; }
.sc-drop-sep { height: 1px; margin: 6px 8px; background: var(--sc-border); }
.sc-drop-label { padding: 6px 12px 2px; font: 700 0.68rem/1 var(--sc-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-muted); }

/* Boutons : Démos + Faire le quiz (même pastille), Souscrire (mis en avant) */
.sc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sc-btn, .sc-btn-main {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  font: 600 0.84rem/1 var(--sc-font); color: #fff; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-btn { background: var(--sc-purple); }
.sc-btn:hover { background: var(--sc-purple-dark); transform: translateY(-1px); }
.sc-btn-main {
  font-weight: 700;
  background: linear-gradient(135deg, #9b7dff 0%, #6a4ae0 55%, #4c2fc4 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 6px 20px rgba(124, 92, 252, 0.45);
}
.sc-btn-main:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 8px 26px rgba(124, 92, 252, 0.6); }
.sc-btn[aria-current="page"], .sc-btn-main[aria-current="page"] { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }

.sc-social { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.sc-social a { display: flex; transition: transform 0.2s ease; }
.sc-social a:hover { transform: translateY(-2px); }
.sc-tile { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.sc-tile svg { width: 15px; height: 15px; display: block; fill: #fff; }
.sc-tile.sc-ig { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.sc-tile.sc-tt { background: #010101; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sc-tile.sc-sc { background: #FFFC00; }
.sc-tile.sc-sc svg { fill: #000; }

.sc-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 10px;
  background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.sc-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--sc-text); transition: transform 0.25s ease, opacity 0.25s ease; }
.sc-header.sc-menu-open .sc-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sc-header.sc-menu-open .sc-toggle span:nth-child(2) { opacity: 0; }
.sc-header.sc-menu-open .sc-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panneau mobile */
@media (max-width: 1300px) {
  .sc-toggle { display: flex; }
  /* absolute (et non fixed) : le backdrop-filter de .sc-header ferait de la
     barre le repère d'un enfant fixed, le panneau serait écrasé à 64 px. */
  .sc-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    height: calc(100vh - 64px); height: calc(100dvh - 64px);
    background: var(--sc-bg); overflow-y: auto; padding: 16px 20px 32px;
    display: none; flex-direction: column; gap: 18px;
  }
  .sc-header.sc-menu-open .sc-nav { display: flex; }
  .sc-menu { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .sc-link, .sc-drop-btn { width: 100%; padding: 12px 8px; font-size: 1rem; justify-content: space-between; }
  .sc-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 2px 0 6px; }
  .sc-drop.sc-open .sc-drop-menu { display: block; }
  .sc-actions { flex-direction: column; align-items: stretch; }
  .sc-btn, .sc-btn-main { padding: 13px 18px; font-size: 0.95rem; }
  .sc-social { border-left: 0; padding-left: 0; justify-content: center; gap: 16px; }
  .sc-tile { width: 36px; height: 36px; border-radius: 9px; }
  .sc-tile svg { width: 20px; height: 20px; }
  body.sc-lock { overflow: hidden; }
}
@media (min-width: 1301px) {
  .sc-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
}

/* ── Pied de page ────────────────────────────────────────── */
.sc-footer {
  background: var(--sc-bg); color: var(--sc-muted);
  border-top: 1px solid var(--sc-border); font-family: var(--sc-font);
  padding: 48px 0 28px;
}
.sc-footer-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sc-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.sc-col h2 {
  margin: 0 0 14px; font: 700 0.74rem/1 var(--sc-font);
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
}
.sc-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-col a { font: 400 0.88rem/1.3 var(--sc-font); color: var(--sc-muted); text-decoration: none; transition: color 0.2s ease; }
.sc-col a:hover, .sc-col a[aria-current="page"] { color: #fff; }
.sc-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--sc-border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sc-bottom-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sc-bottom img { height: 24px; width: auto; display: block; }
.sc-copy { margin: 0; font: 400 0.8rem/1.4 var(--sc-font); color: var(--sc-muted); }
.sc-footer .sc-social { border-left: 0; padding-left: 0; }

@media (max-width: 860px) { .sc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (max-width: 420px) { .sc-col a { font-size: 0.85rem; } }

/* ── Variante claire de la barre (pages à fond clair), 29/09/2026 ──
   Balisage : <header class="sc-header sc-light"> + logo « couleur-fond-clair ».
   Le pied de page reste sombre sur toutes les pages. */
.sc-header.sc-light { background: rgba(255, 255, 255, 0.96); border-bottom-color: #e8e8f0; }
.sc-header.sc-light.sc-scrolled { background: rgba(255, 255, 255, 0.99); box-shadow: 0 6px 20px rgba(26, 26, 46, 0.08); }
.sc-light .sc-link, .sc-light .sc-drop-btn { color: #4a4a63; }
.sc-light .sc-link:hover, .sc-light .sc-drop-btn:hover, .sc-light .sc-link[aria-current="page"] { color: #1a1a2e; }
.sc-light .sc-link[aria-current="page"] { background: rgba(104, 69, 224, 0.1); }
.sc-light .sc-drop-menu { background: #ffffff; border-color: #e8e8f0; box-shadow: 0 16px 40px rgba(26, 26, 46, 0.12); }
.sc-light .sc-drop-menu a { color: #1a1a2e; }
.sc-light .sc-drop-menu a:hover, .sc-light .sc-drop-menu a[aria-current="page"] { background: rgba(104, 69, 224, 0.08); color: #1a1a2e; }
.sc-light .sc-drop-sep { background: #e8e8f0; }
.sc-light .sc-drop-label { color: #6b6b82; }
.sc-light .sc-btn-main { box-shadow: 0 6px 18px rgba(104, 69, 224, 0.35); }
.sc-light .sc-btn-main:hover { box-shadow: 0 8px 24px rgba(104, 69, 224, 0.45); }
.sc-light .sc-btn[aria-current="page"], .sc-light .sc-btn-main[aria-current="page"] { outline-color: rgba(104, 69, 224, 0.55); }
.sc-light .sc-social { border-left-color: #e8e8f0; }
.sc-light .sc-toggle span { background: #1a1a2e; }
@media (max-width: 1300px) {
  .sc-light .sc-nav { background: #ffffff; }
}

/* WhatsApp (barre du haut), 29/09/2026 */
.sc-tile.sc-wa { background: #25D366; }
