/* ==========================================================================
   NWZ — Feuille de style principale
   Variables CSS pour le thème clair / sombre + mise en page responsive.
   ========================================================================== */

/* --- Police des titres : Space Grotesk (hébergée localement) --------------
   Utilisée uniquement pour les titres/éléments à forte personnalité ;
   le texte courant garde la police système existante. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}

/* --- Réinitialisation simple ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- Icônes SVG (remplacent les émojis) ------------------------------------
   Dimensionnées en 1em : elles héritent naturellement de la taille de police
   déjà définie sur leur conteneur, comme le faisaient les émojis avant elles. */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* --- Focus clavier accessible --------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Variables : thème clair (par défaut) ------------------------------ */
:root {
  --bg: #fbfcfe;
  --bg-alt: #eef1f9;
  --bg-card: #ffffff;
  --text: #1a1f2b;
  --text-muted: #5b6472;
  --heading: #0f1420;
  --border: #dde3f0;
  --shadow: 0 4px 20px rgba(23, 43, 99, 0.08);

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #e6edff;

  --accent: #16a34a;
  --accent-hover: #128038;
  --accent-soft: #e2f5e9;

  --input-bg: #ffffff;
  --input-border: #cad2e3;
  --input-focus: var(--primary);

  --header-bg: rgba(250, 251, 255, 0.88);
  --footer-bg: #0f1420;
  --footer-text: #cbd2df;
  --footer-heading: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;

  --font-heading: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --primary-rgb: 37, 99, 235;
  --accent-rgb: 22, 163, 74;
  --glow-opacity: 0.05;
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-surface: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg-card) 100%);
  --gradient-surface-highlight: linear-gradient(160deg, var(--bg-card) 0%, var(--primary-soft) 145%);
  --gradient-icon: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);

  --warning: #d97706;
  --warning-soft: #fdf1e0;
  --info: #7c3aed;
  --info-soft: #f1e9fe;
  --danger: #d92d20;
  --danger-soft: #fdecea;

  /* Variantes "glow" : un peu plus vives/saturées que --primary/--accent,
     réservées aux halos et ombres colorées au survol. */
  --primary-glow-rgb: 59, 130, 246;
  --accent-glow-rgb: 34, 197, 94;
  --glow-soft: 0 0 26px rgba(var(--primary-glow-rgb), 0.28);
  --glow-primary: 0 0 22px rgba(var(--primary-glow-rgb), 0.32), 0 4px 14px rgba(var(--primary-glow-rgb), 0.2);
  --glow-accent: 0 0 22px rgba(var(--accent-glow-rgb), 0.32), 0 4px 14px rgba(var(--accent-glow-rgb), 0.2);
}

/* --- Variables : thème sombre ------------------------------------------ */
[data-theme="dark"] {
  --bg: #0e1015;
  --bg-alt: #161922;
  --bg-card: #1a1e28;
  --text: #e4e8f0;
  --text-muted: #9aa4b5;
  --heading: #f5f7fb;
  --border: #2a2f3b;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

  --primary: #4b83f0;
  --primary-hover: #6d9bf5;
  --primary-soft: #1b2740;

  --accent: #22c55e;
  --accent-hover: #3fdb73;
  --accent-soft: #123320;

  --input-bg: #12151d;
  --input-border: #333a49;
  --input-focus: var(--primary);

  --header-bg: rgba(14, 16, 21, 0.92);
  --footer-bg: #0a0c10;
  --footer-text: #b7bfcd;
  --footer-heading: #ffffff;

  --primary-rgb: 75, 131, 240;
  --accent-rgb: 34, 197, 94;
  --glow-opacity: 0.14;

  --warning: #f59e0b;
  --warning-soft: #3a2a12;
  --info: #a78bfa;
  --info-soft: #241b3d;
  --danger: #ff8a80;
  --danger-soft: #3a1512;

  --primary-glow-rgb: 110, 168, 254;
  --accent-glow-rgb: 74, 222, 128;
}

/* --- Base --------------------------------------------------------------- */
html { scroll-behavior: smooth; }
/* overflow-x uniquement sur html : le mettre aussi sur body transforme
   implicitement son overflow-y en "auto" (règle CSS des valeurs calculées),
   ce qui casse le position:sticky de l'en-tête. */
html { overflow-x: hidden; }
body.modal-open { overflow: hidden; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Neutralise toutes les animations/transitions pour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; font-weight: 700; font-family: var(--font-heading); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); line-height: 1.18; letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }
p { color: var(--text); }
.text-muted { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; }
.section-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 2px;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(var(--primary-glow-rgb), 0.4);
}
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  box-shadow: 0 0 14px rgba(var(--primary-glow-rgb), 0.16);
  transition: box-shadow 0.25s ease;
}

.bg-alt { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }

/* --- Boutons -------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.36), var(--glow-accent);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: var(--glow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 18px rgba(var(--primary-glow-rgb), 0.22);
}

.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- En-tête / navigation ------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Fond flou + légèrement teinté : invisible en haut de page, apparaît en
   fondu dès qu'on commence à défiler (classe .is-scrolled ajoutée en JS). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(var(--primary-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0.14) 100%),
    var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(var(--primary-rgb), 0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease, filter 0.2s ease;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .logo {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
a.logo:hover { text-shadow: 0 0 16px rgba(var(--primary-glow-rgb), 0.4); filter: brightness(1.12); }
.logo-img { display: block; height: 30px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}
/* Les liens se centrent dans l'espace disponible entre le logo et le bouton
   "Devis Gratuit" : deux marges automatiques se partagent l'espace libre à
   parts égales, sans déplacer le bouton (resté ancré à droite comme avant). */
.main-nav .nav-link:first-child { margin-left: auto; }
.main-nav .nav-cta { margin-left: auto; }
.nav-link {
  position: relative;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(var(--primary-glow-rgb), 0.6);
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--primary); text-shadow: 0 0 12px rgba(var(--primary-glow-rgb), 0.3); }
.nav-link:hover::after { width: 100%; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}
.nav-phone:hover { color: var(--primary); transform: translateY(-1px); text-shadow: 0 0 14px rgba(var(--primary-glow-rgb), 0.35); }
.nav-cta { padding: 10px 20px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--gradient-surface);
  transition: border-color 0.2s ease, transform 0.4s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { border-color: var(--primary); transform: scale(1.06); box-shadow: 0 0 16px rgba(var(--primary-glow-rgb), 0.3); }
.theme-toggle.is-spinning { transform: rotate(180deg); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: inline; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.menu-toggle:hover { border-color: var(--primary); box-shadow: 0 0 16px rgba(var(--primary-glow-rgb), 0.3); }
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------------------------- */
.hero {
  padding: 100px 0 90px;
  background:
    radial-gradient(circle at 10% 15%, rgba(var(--primary-rgb), var(--glow-opacity)), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(var(--accent-rgb), var(--glow-opacity)), transparent 50%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
/* Photo de fond discrète (espace de travail développeur), voile bleu/vert
   assorti au thème sombre pour garder le contraste du texte blanc. */
[data-theme="dark"] .hero {
  background:
    linear-gradient(180deg, transparent 55%, var(--bg) 100%),
    linear-gradient(135deg, rgba(9, 13, 24, 0.68) 0%, rgba(12, 30, 27, 0.6) 100%),
    radial-gradient(circle at 90% 10%, rgba(var(--accent-rgb), 0.12), transparent 50%),
    url('../img/hero-bg.jpg');
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center 30%;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  /* Sur mobile, la photo est très recadrée par le "cover" : on décale le
     cadrage vers la zone la moins chargée (lumières floues) pour ne pas
     placer le code de l'écran directement derrière le texte. */
  [data-theme="dark"] .hero {
    background-position: center, center, center, 8% top;
  }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-stat strong {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero-stat span { color: var(--text-muted); font-size: 0.9rem; }

.hero-visual {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 40px rgba(var(--primary-glow-rgb), 0.1);
  padding: 32px;
}
.hero-visual-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-visual-row:last-child { border-bottom: none; }
.hero-visual-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(var(--primary-glow-rgb), 0.25);
}
.hero-visual-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Cartes génériques (problèmes / prestations) ----------------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12), var(--glow-soft);
  border-color: var(--primary-soft);
}
[data-theme="dark"] .card:hover { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), var(--glow-soft); }
.card-photo {
  margin: -32px -32px 20px;
  height: 160px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card:hover .card-photo img { transform: scale(1.06); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); }

/* --- Méthode / étapes numérotées ---------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative;
  padding: 32px;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--glow-soft); }
.step-photo {
  margin: -32px -32px 20px;
  height: 150px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.step:hover .step-photo img { transform: scale(1.06); }
.step-number {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .step-number {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); }

/* --- Offres / accompagnement ----------------------------------------------*/
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.offer-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12), var(--glow-soft); }
[data-theme="dark"] .offer-card:hover { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), var(--glow-soft); }
.offer-card.is-highlight {
  background: var(--gradient-surface-highlight);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18), 0 0 30px rgba(var(--primary-glow-rgb), 0.14);
}
.offer-card.is-highlight:hover { box-shadow: 0 18px 36px rgba(37, 99, 235, 0.26), var(--glow-primary); }
.offer-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(var(--primary-glow-rgb), 0.35);
}
.offer-card .card-photo { margin-top: -36px; margin-bottom: 14px; }
.offer-card h3 { margin-bottom: 4px; }
.offer-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 12px 0 16px;
  width: fit-content;
}
.offer-profile { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 22px; }
.offer-profile strong { color: var(--heading); font-weight: 600; }
.offer-features { margin: 0 0 28px; flex: 1; }
.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.offer-features li:last-child { border-bottom: none; }
.offer-features li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* --- Bandeau de réassurance sous les offres --------------------------------*/
.offers-reassurance {
  text-align: center;
  max-width: 620px;
  margin: 48px auto 0;
}
.offers-reassurance p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.02rem; }

/* --- Bandeau CTA ---------------------------------------------------------*/
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #ffffff; }
.cta-band p { opacity: 0.92; margin-top: 6px; }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-band .btn-cta { background: #ffffff; color: var(--primary); box-shadow: none; }
.cta-band .btn-cta:hover { background: #f0f3ff; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: #ffffff; }
.cta-band .btn-outline:hover { border-color: #ffffff; color: #ffffff; background: rgba(255,255,255,0.14); box-shadow: 0 0 18px rgba(255,255,255,0.35); }

/* --- Pied de page --------------------------------------------------------*/
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h3 { color: var(--footer-heading); font-size: 1rem; margin-bottom: 16px; }
.footer-col p { color: var(--footer-text); margin-top: 10px; }
.footer-logo { color: var(--footer-heading); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #ffffff; text-shadow: 0 0 12px rgba(var(--primary-glow-rgb), 0.6); }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: var(--footer-text); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--footer-text);
}

/* --- Bouton d'appel flottant (mobile) -------------------------------------*/
.mobile-call-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-call-button:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(22, 163, 74, 0.5), var(--glow-accent); }
.mobile-call-button:active { transform: scale(0.95); }

/* --- Formulaires ----------------------------------------------------------*/
.form-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 0 16px rgba(var(--primary-glow-rgb), 0.22);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.field-error { color: #d92d20; font-size: 0.85rem; display: none; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #d92d20; }
.form-group.has-error .field-error { display: block; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.checkbox-group input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-group label { font-size: 0.92rem; color: var(--text-muted); font-weight: 400; }
.checkbox-group a { color: var(--primary); font-weight: 600; transition: text-shadow 0.2s ease; }
.checkbox-group a:hover { text-shadow: 0 0 10px rgba(var(--primary-glow-rgb), 0.4); }

.alert {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  font-weight: 600;
}
.alert-success { background: var(--accent-soft); color: var(--accent-hover); border: 1px solid var(--accent); }
.alert-error { background: #fdecea; color: #a4160a; border: 1px solid #d92d20; }
[data-theme="dark"] .alert-error { background: #3a1512; color: #ff8a80; }

/* --- Fenêtre modale (ex. rappel téléphonique) -------------------------------*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28), var(--glow-primary);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  animation: modal-pop 0.25s ease;
}
[data-theme="dark"] .modal-box { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--glow-primary); }

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.modal-close:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 14px rgba(var(--primary-glow-rgb), 0.3); }

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.modal-box h2 { font-size: 1.25rem; margin: 0 0 16px; padding-right: 20px; }

.modal-phone-number { margin: 0 0 24px; }
.modal-phone-number a {
  font-size: 1.9rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  transition: text-shadow 0.2s ease;
}
.modal-phone-number a:hover { text-shadow: 0 0 16px rgba(var(--primary-glow-rgb), 0.4); }

.modal-actions { display: flex; flex-direction: column; gap: 12px; }

.contact-card { text-align: center; }
.contact-details { margin: 4px 0 28px; }
.contact-details p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .modal-box { padding: 34px 22px 26px; }
  .modal-phone-number a { font-size: 1.6rem; }
}

/* --- Page confirmation / légale -------------------------------------------*/
.simple-page { padding: 90px 0; }
.simple-page .container { max-width: 800px; }
.simple-page h2 { margin: 32px 0 12px; }
.simple-page p, .simple-page li { color: var(--text-muted); margin-bottom: 12px; }

/* --- Liste d'informations récapitulatives (partagée admin + pages publiques) */
.ticket-info-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.ticket-info-list li:last-child { border-bottom: none; }
.ticket-info-list .label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* --- Prise de rendez-vous : indicateur d'étapes ---------------------------*/
.rdv-steps-indicator {
  display: flex;
  justify-content: center;
  gap: 4px;
  max-width: 640px;
  margin: 0 auto 36px;
  padding: 0;
  list-style: none;
}
.rdv-steps-indicator li {
  flex: 1;
  text-align: center;
  padding-top: 34px;
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.rdv-steps-indicator li span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.rdv-steps-indicator li.is-active { color: var(--heading); }
.rdv-steps-indicator li.is-active span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--glow-primary); }
.rdv-steps-indicator li.is-done span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* --- Prise de rendez-vous : calendrier -------------------------------------*/
.rdv-wizard { max-width: 700px; margin: 0 auto; }
.rdv-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.rdv-calendar-head h2 { font-size: 1.1rem; }
.rdv-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rdv-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rdv-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.rdv-day:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 14px rgba(var(--primary-glow-rgb), 0.25); }
.rdv-day:disabled { opacity: 0.35; cursor: not-allowed; background: var(--bg-alt); }
.rdv-day.is-today { border-color: var(--primary); font-weight: 800; }
.rdv-day.is-selected { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--glow-primary); }
.rdv-day-vide { visibility: hidden; }
.rdv-legende { margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }

/* --- Prise de rendez-vous : navigation entre étapes et créneaux -----------*/
.rdv-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  padding: 0;
  transition: color 0.2s ease;
}
.rdv-back:hover { color: var(--primary); }

.rdv-loading, .rdv-empty { color: var(--text-muted); text-align: center; padding: 24px 0; }
.rdv-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 8px; }
.rdv-slot-btn { padding: 12px 8px; font-weight: 700; }

.rdv-recap-banner { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; }
.rdv-recap-banner p { margin: 0; color: var(--primary); font-weight: 600; }

.rdv-success { text-align: center; }
.rdv-success .modal-icon { margin: 0 auto 20px; }
.rdv-success .ticket-info-list { text-align: left; max-width: 360px; margin: 0 auto 20px; }
.rdv-success > .btn { margin-top: 8px; }

@media (max-width: 480px) {
  .rdv-steps-indicator li { font-size: 0.72rem; }
  .rdv-calendar-grid { gap: 4px; }
  .rdv-day { font-size: 0.82rem; }
  .rdv-slots { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}

/* --- Apparition progressive au défilement ---------------------------------
   Activée uniquement quand JS ajoute "reveal-enabled" sur <html> (voir
   header.php) : sans JS ou avec "prefers-reduced-motion", le contenu reste
   visible normalement, aucune classe n'est jamais ajoutée. */
html.reveal-enabled .card,
html.reveal-enabled .step,
html.reveal-enabled .offer-card,
html.reveal-enabled .section-head,
html.reveal-enabled .hero-visual,
html.reveal-enabled .form-card,
html.reveal-enabled .hero-inner > div:first-child,
html.reveal-enabled .cta-band-inner > div:first-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.reveal-enabled .is-visible {
  opacity: 1 !important;
  transform: none !important;
}
/* Léger effet cascade pour les cartes d'une même grille */
html.reveal-enabled .card:nth-child(2),
html.reveal-enabled .step:nth-child(2),
html.reveal-enabled .offer-card:nth-child(2) { transition-delay: 0.08s; }
html.reveal-enabled .card:nth-child(3),
html.reveal-enabled .step:nth-child(3),
html.reveal-enabled .offer-card:nth-child(3) { transition-delay: 0.16s; }
html.reveal-enabled .card:nth-child(4) { transition-delay: 0.24s; }

/* --- Badges statut / priorité (partagés entre le widget et l'espace admin) */
.status-badge, .priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-nouveau    { background: var(--primary-soft); color: var(--primary); }
.status-ouvert     { background: var(--primary-soft); color: var(--primary); }
.status-en_attente { background: var(--warning-soft); color: var(--warning); }
.status-en_cours   { background: var(--info-soft); color: var(--info); }
.status-resolu     { background: var(--accent-soft); color: var(--accent); }
.status-ferme      { background: var(--border); color: var(--text-muted); }
.status-confirme   { background: var(--accent-soft); color: var(--accent); }
.status-annule     { background: var(--danger-soft); color: var(--danger); }
.status-termine    { background: var(--border); color: var(--text-muted); }

.priority-basse   { background: var(--border); color: var(--text-muted); }
.priority-normale { background: var(--primary-soft); color: var(--primary); }
.priority-haute   { background: var(--warning-soft); color: var(--warning); }
.priority-urgente { background: var(--danger-soft); color: var(--danger); box-shadow: 0 0 12px rgba(217, 45, 32, 0.25); }

/* --- Widget de support (bulle de discussion) -------------------------------*/
.support-widget { position: fixed; right: 20px; bottom: 20px; z-index: 95; }

.support-bubble {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.support-bubble:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.48), var(--glow-primary); }
.support-bubble:active { transform: scale(0.95); }
.support-bubble-icon-close { display: none; }
.support-widget.is-open .support-bubble-icon-open { display: none; }
.support-widget.is-open .support-bubble-icon-close { display: inline; }
.support-bubble-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.support-bubble-badge[hidden] { display: none; }

.support-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  width: 370px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 94;
}
.support-widget.is-open .support-panel { opacity: 1; transform: none; pointer-events: auto; }

.support-panel-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.support-panel-header strong { display: block; font-size: 1.05rem; }
.support-panel-sub { font-size: 0.82rem; opacity: 0.9; }
.support-close { color: #fff; opacity: 0.85; font-size: 1.1rem; flex-shrink: 0; }
.support-close:hover { opacity: 1; }

.support-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-form .form-group { margin-bottom: 14px; }
.support-form .field-error { font-size: 0.8rem; }

.support-loading, .support-empty { text-align: center; color: var(--text-muted); padding: 30px 10px; font-size: 0.92rem; }
.support-success-note { text-align: center; padding: 10px 4px 6px; }
.support-success-note .status-badge { margin-top: 10px; }

.support-conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.support-conversation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.support-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 0;
}
.support-message { max-width: 82%; }
.support-message.from-client { align-self: flex-end; }
.support-message.from-admin { align-self: flex-start; }
.support-message-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 3px; }
.support-message.from-client .support-message-meta { text-align: right; }
.support-message-text {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-message.from-client .support-message-text { background: var(--primary); color: #fff; border-bottom-right-radius: 2px; }
.support-message.from-admin .support-message-text { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 2px; }

.support-reply-form { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.support-reply-form textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 100px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
}
.support-reply-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), 0 0 14px rgba(var(--primary-glow-rgb), 0.22); }
.support-reply-form button { flex-shrink: 0; }

.support-new-request-link {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-align: center;
  flex-shrink: 0;
}
.support-new-request-link:hover { color: var(--primary); }

/* --- Responsive ------------------------------------------------------------*/
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .offers-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 28px 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-link:first-child, .main-nav .nav-cta { margin-left: 0; }
  .nav-cta, .nav-phone { align-self: flex-start; }
  .menu-toggle { display: flex; }
  .hero { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { justify-content: space-between; }
  .grid-2, .grid-3, .grid-4, .offers-grid, .steps { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { width: 100%; flex-direction: column; }
  .cta-band-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .mobile-call-button { display: flex; }

  /* Le bouton d'appel flottant occupe déjà le coin bas-droit : on remonte la bulle de support au-dessus */
  .support-widget { bottom: 90px; }
  .support-panel { bottom: 162px; max-height: calc(100vh - 210px); }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .logo { font-size: 1.2rem; }
  .btn { width: 100%; }
  .header-inner .btn { width: auto; }

  .support-widget { right: 14px; }
  .support-panel { right: 14px; width: calc(100vw - 28px); height: calc(100vh - 190px); }
}

/* --- Utilitaire d'accessibilité : masque visuellement, garde pour les lecteurs d'écran --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   FAQ — recherche instantanée, filtres par catégorie, accordéon animé.
   Composant autonome : ne réutilise que les variables de thème déjà en
   place (couleurs, rayons, ombres, dégradés) pour s'intégrer sans réglage
   supplémentaire au thème clair/sombre existant.
   ========================================================================== */

.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

/* Barre de recherche : effet verre dépoli léger, cohérent avec l'en-tête */
.faq-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
  display: flex;
  align-items: center;
}
.faq-search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
#faq-search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#faq-search-input::placeholder { color: var(--text-muted); }
#faq-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.faq-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.faq-filter:hover { color: var(--primary); border-color: var(--primary-soft); transform: translateY(-1px); }
.faq-filter.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-soft);
}

.faq-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.faq-empty a { color: var(--primary); font-weight: 600; }

.faq-category-group { margin-bottom: 40px; }
.faq-category-group:last-child { margin-bottom: 0; }
.faq-category-title {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--heading);
  margin-bottom: 16px;
  padding-left: 2px;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }

/* Carte question/réponse */
.faq-item {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-item.is-open { border-color: var(--primary-soft); box-shadow: var(--glow-soft); }
.faq-question { margin: 0; }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--heading);
  border-radius: var(--radius);
}
.faq-trigger:hover { color: var(--primary); }
.faq-question-text { flex: 1; }

/* Icône +/- dessinée en CSS pur (deux barres qui se superposent en pivotant) */
.faq-toggle-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-icon);
}
.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-toggle-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-toggle-icon::after { transform: rotate(0deg); }

/* Accordéon fluide : la piste de grille passe de 0fr à 1fr (pas besoin de
   calculer une hauteur en JS, transition entièrement gérée par le CSS). */
.faq-panel-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.is-open .faq-panel-wrapper { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; min-height: 0; }

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px 20px;
  border-top: 1px dashed var(--border);
}

.faq-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.faq-helpful-label { font-size: 0.85rem; color: var(--text-muted); }
.faq-helpful-buttons { display: flex; gap: 8px; }
.faq-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.faq-vote-btn .icon { width: 0.95em; height: 0.95em; }
.faq-vote-btn:hover:not(:disabled) { color: var(--primary); border-color: var(--primary-soft); }
.faq-vote-btn.is-voted { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.faq-vote-btn:disabled { cursor: default; }
.faq-helpful-thanks { font-size: 0.82rem; color: var(--accent); font-weight: 600; }

.faq-tools { display: flex; gap: 8px; }
.faq-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-tool-btn:hover { color: var(--primary); background: var(--primary-soft); }
.faq-tool-btn.is-confirmed { color: var(--accent); background: var(--accent-soft); }

/* Apparition progressive au défilement (cohérente avec le reste du site) */
html.reveal-enabled .faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.reveal-enabled .faq-item.is-visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .faq-toolbar { flex-direction: column; align-items: stretch; }
  .faq-search { max-width: none; }
  .faq-trigger { padding: 18px; font-size: 0.96rem; }
  .faq-answer { padding: 0 18px 18px; }
  .faq-item-actions { padding: 14px 18px 18px; flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Carte NFC — landing page produit (extension du site, mêmes variables de
   thème/rayons/ombres/dégradés que le reste : aucune nouvelle palette).
   ========================================================================== */

/* Visuel héros : carte + téléphone recréés en CSS pur (aucune image, donc
   fidèle à 100% à l'identité de marque et sans coût de performance). */
.nfc-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nfc-visual-phone {
  position: relative;
  width: 220px;
  height: 440px;
  border-radius: 34px;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}
.nfc-visual-phone-screen {
  height: 100%;
  border-radius: 22px;
  background: var(--bg-alt);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.nfc-visual-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-brand);
  margin-bottom: 6px;
}
.nfc-visual-line { width: 70%; height: 8px; border-radius: 4px; background: var(--border); }
.nfc-visual-line-title { width: 55%; height: 12px; background: var(--primary-soft); }
.nfc-visual-chip-row { display: flex; gap: 8px; margin-top: 14px; }
.nfc-visual-chip-row span { width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-icon); }

.nfc-visual-card {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 210px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--glow-primary);
  transform: translateX(-72%) rotate(-8deg);
}
.nfc-visual-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 1.3rem; }
.nfc-visual-card-logo { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.04em; }
.nfc-visual-card-name { font-weight: 700; }
.nfc-visual-card-role { font-size: 0.82rem; opacity: 0.85; }

.nfc-visual-ripple {
  position: absolute;
  left: 50%;
  bottom: 90px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  animation: nfc-ripple 2.8s ease-out infinite;
}
.nfc-visual-ripple-delay { animation-delay: 1.4s; }
@keyframes nfc-ripple {
  0% { opacity: 0.55; transform: translateX(-50%) scale(0.5); }
  70% { opacity: 0; transform: translateX(-50%) scale(1.6); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .nfc-visual-ripple { animation: none; opacity: 0.3; }
}

/* Sections en deux colonnes : texte + liste de caractéristiques */
.grid-2col-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.grid-2col-reverse .nfc-feature-list { order: 2; }
.nfc-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 28px;
}
.nfc-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}
.nfc-feature-list li:last-child { border-bottom: none; }
.nfc-feature-list .icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.nfc-feature-list strong { display: block; color: var(--heading); margin-bottom: 3px; }
.nfc-feature-list span { color: var(--text-muted); font-size: 0.92rem; }

/* Étapes de fonctionnement : badge icône au-dessus du numéro */
.nfc-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-icon);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Grille d'avantages */
.nfc-benefit-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nfc-benefit-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12), var(--glow-soft); }
.nfc-benefit-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gradient-icon);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.nfc-benefit-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.nfc-benefit-card p { color: var(--text-muted); }

/* Cartes "pour quels professionnels" */
.nfc-audience-card {
  text-align: center;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.nfc-audience-card:hover { transform: translateY(-4px); border-color: var(--primary-soft); }
.nfc-audience-card .icon { width: 30px; height: 30px; color: var(--primary); margin-bottom: 14px; }
.nfc-audience-card h3 { font-size: 1rem; margin-bottom: 8px; }
.nfc-audience-card p { color: var(--text-muted); font-size: 0.88rem; }

/* Comparatif carte classique / carte NFC */
.nfc-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nfc-compare-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
}
.nfc-compare-card h3 { margin-bottom: 20px; }
.nfc-compare-highlight { border-color: var(--primary); background: var(--gradient-surface-highlight); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18), 0 0 30px rgba(var(--primary-glow-rgb), 0.14); }
.nfc-compare-list { display: flex; flex-direction: column; gap: 14px; }
.nfc-compare-list li { display: flex; align-items: center; gap: 10px; }
.nfc-compare-list .icon { width: 20px; height: 20px; flex-shrink: 0; }
.nfc-compare-negative .icon { color: var(--danger); }
.nfc-compare-negative li { color: var(--text-muted); }
.nfc-compare-positive .icon { color: var(--accent); }
.nfc-compare-positive li { color: var(--text); font-weight: 500; }

/* Offres NFC : deux formules côte à côte (au lieu de trois) */
.nfc-offers-grid { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }

.nfc-final-cta-action { text-align: center; margin-top: -12px; }

@media (max-width: 960px) {
  .grid-2col-feature { grid-template-columns: 1fr; gap: 36px; }
  .grid-2col-reverse .nfc-feature-list { order: 0; }
  .nfc-compare-grid { grid-template-columns: 1fr; }
  .nfc-offers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nfc-visual { height: 380px; }
  .nfc-visual-phone { width: 180px; height: 360px; }
  .nfc-visual-card { width: 175px; padding: 16px; transform: translateX(-65%) rotate(-8deg); }
}

/* Apparition progressive au défilement pour les nouveaux blocs de cette page */
html.reveal-enabled .nfc-feature-list,
html.reveal-enabled .nfc-benefit-card,
html.reveal-enabled .nfc-audience-card,
html.reveal-enabled .nfc-compare-card,
html.reveal-enabled .nfc-visual {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.reveal-enabled .is-visible.nfc-feature-list,
html.reveal-enabled .is-visible.nfc-benefit-card,
html.reveal-enabled .is-visible.nfc-audience-card,
html.reveal-enabled .is-visible.nfc-compare-card,
html.reveal-enabled .is-visible.nfc-visual {
  opacity: 1;
  transform: none;
}
