/* ============================================================
   aurua — Feuille de style du module
   Hérite des tokens du hub prime-ia.fr pour cohérence visuelle.
   Autonome, sans dépendance externe.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0e1116;
  --bg-elevated: #141920;
  --bg-card: #1a2028;
  --bg-card-hover: #1f2630;

  /* Bordures */
  --border: #262e38;
  --border-hover: #34404d;

  /* Textes */
  --text: #e6e9ee;
  --text-muted: #8b95a3;
  --text-dim: #5f6975;

  /* Accents (alignés sur le hub — PAS d'orange sur les pages modules) */
  --accent: #4f8cff;
  --accent-hover: #6a9eff;
  --accent-dim: rgba(79, 140, 255, 0.12);
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.12);

  /* Verre */
  --glass-bg: rgba(26, 32, 40, 0.68);
  --glass-bg-hover: rgba(31, 38, 48, 0.78);
  --glass-border: rgba(140, 150, 165, 0.1);
  --glass-border-hover: rgba(160, 172, 188, 0.18);
  --glass-blur: blur(14px);

  /* Rayons / ombres */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);

  /* Layout */
  --content-width: 1280px;
  --content-narrow: 860px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------
   Reset minimal
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(79, 140, 255, 0.05), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(79, 140, 255, 0.025), transparent 52%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: 4px;
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ------------------------------------------------------------
   Contextes — détection HubY / web
   ------------------------------------------------------------ */
html[data-context="web"]  .show-in-huby { display: none !important; }
html[data-context="huby"] .show-on-web  { display: none !important; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 max(24px, 4vw);
}
.container-narrow { max-width: var(--content-narrow); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.huby-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: default;
  user-select: none;
}
.huby-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  border: 1px solid rgba(79, 140, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  flex-shrink: 0;
}
.huby-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.huby-logo-text { font-weight: 700; letter-spacing: -0.02em; }
.huby-crumb { color: var(--text-dim); font-weight: 400; margin: 0 2px; }
.huby-module-name {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #3670d6; color: #fff !important; }

@media (max-width: 780px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .huby-crumb, .huby-module-name { display: none; }
}

/* ------------------------------------------------------------
   Sections communes
   ------------------------------------------------------------ */
.section { padding: clamp(56px, 7vw, 96px) 0; }

.section-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(14.5px, 1.5vw, 16px);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.section-subtitle--inline { margin-bottom: 0; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

.lead {
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.section p strong { color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------
   Hero module
   ------------------------------------------------------------ */
.module-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.module-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at center,
    rgba(79, 140, 255, 0.14) 0%,
    rgba(79, 140, 255, 0.05) 40%,
    transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.module-hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-title-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.hero-tagline {
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.meta-pill svg { color: var(--text-dim); flex-shrink: 0; }
.meta-pill--free {
  background: var(--success-dim);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.meta-pill--free svg { color: var(--success); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}
.hero-note svg { flex-shrink: 0; color: var(--text-dim); }

.hero-visual { position: relative; }
.hero-shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(79, 140, 255, 0.08);
  transition: transform 0.5s ease;
}
.hero-shot:hover { transform: translateY(-4px); }
.hero-shot img { width: 100%; height: auto; display: block; }
.hero-shot figcaption {
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Boutons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}
.btn svg { flex-shrink: 0; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow:
    0 6px 20px rgba(79, 140, 255, 0.4),
    0 0 40px rgba(79, 140, 255, 0.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

/* ------------------------------------------------------------
   Fonctionnalités — grille 3×2
   ------------------------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1020px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.feature:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.feature p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   Bandeau navigation — barre supérieure de l'app
   ------------------------------------------------------------ */
.nav-strip {
  max-width: 900px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.nav-strip img { display: block; width: 100%; height: auto; }
.nav-strip figcaption {
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================================
   Viewer à onglets — présentation des captures
   ============================================================ */
.viewer {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(79, 140, 255, 0.06);
}

/* ------------------------------------------------------------
   Onglets — reprennent le style de la barre d'app
   ------------------------------------------------------------ */
.viewer-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.viewer-tabs::-webkit-scrollbar { display: none; }

.viewer-tab {
  position: relative;
  flex: 1 0 auto;
  min-width: max-content;
  padding: 16px 22px 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.viewer-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.viewer-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.viewer-tab.is-active { color: var(--text); }
.viewer-tab.is-active::after { transform: scaleX(1); }
.viewer-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.viewer-tab-step {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.viewer-tab.is-active .viewer-tab-step { color: var(--accent); }

.viewer-tab-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Stage — zone d'image
   ------------------------------------------------------------ */
.viewer-stage {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(79, 140, 255, 0.06) 0%,
      transparent 60%),
    var(--bg);
  aspect-ratio: 1016 / 924;
  overflow: hidden;
}
@media (max-width: 780px) {
  .viewer-stage { aspect-ratio: 4 / 3; }
}

.viewer-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}
.viewer-slide[hidden] { display: flex; }
.viewer-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.viewer-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   Barre inférieure — légende + flèches + compteur
   ------------------------------------------------------------ */
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.viewer-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.viewer-caption .gallery-step { font-size: 10.5px; }
.viewer-caption .gallery-title { font-size: 14px; }
.viewer-caption .gallery-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.viewer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.viewer-arrow {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.viewer-arrow:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.viewer-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.viewer-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.viewer-arrow:disabled:hover {
  border-color: var(--border);
  background: transparent;
  color: var(--text-muted);
}

.viewer-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .viewer-bar { padding: 12px 16px; gap: 12px; }
  .viewer-caption .gallery-desc { display: none; }
  .viewer-tab { padding: 13px 16px 12px; }
  .viewer-tab-name { font-size: 12.5px; }
}

/* ------------------------------------------------------------
   Harmonisation des légendes
   ------------------------------------------------------------ */
.gallery-step {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}
.gallery-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.gallery-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Bloc "Comment obtenir ce module" (web uniquement)
   ------------------------------------------------------------ */
.section-obtain {
  background: rgba(79, 140, 255, 0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.obtain-card {
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 44px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.obtain-head { margin-bottom: 32px; }

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(140, 150, 165, 0.08);
}
.step:first-child { border-top: none; padding-top: 0; }
.step:last-child { padding-bottom: 0; }

.step-num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-body { flex: 1; min-width: 0; }
.step-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.step-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 6px;
}
.step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.step-link:hover svg { transform: translateX(2px); }
.step-link svg { transition: transform 0.2s ease; }

/* ------------------------------------------------------------
   FAQ — même langage visuel que le hub
   ------------------------------------------------------------ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
}
.faq-item {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.faq-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent) 40%,
    var(--accent-hover) 60%,
    transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.faq-item.open::before { opacity: 1; }
.faq-item.open {
  background: var(--glass-bg-hover);
  border-color: rgba(150, 165, 185, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.3);
}
.faq-question {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 18px 56px 18px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-question:hover { background: rgba(140, 150, 165, 0.05); }
.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius);
}
.faq-question::before,
.faq-question::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 1px;
  transform-origin: center;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.faq-question::before { transform: translateY(-50%); }
.faq-question::after  { transform: translateY(-50%) rotate(90deg); }
.faq-item.open .faq-question::before,
.faq-item.open .faq-question::after {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 140, 255, 0.55);
}
.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(0deg);
}
.faq-question:hover::before,
.faq-question:hover::after { background: var(--text); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.25s ease,
    opacity 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 22px 18px;
  opacity: 1;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 150, 165, 0.1);
}

/* ------------------------------------------------------------
   Footer — centré
   ------------------------------------------------------------ */
.site-footer {
  background: rgba(14, 17, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: default;
  user-select: none;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.footer-nav a {
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

/* ------------------------------------------------------------
   Révélation au scroll
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Accessibilité — réduction des animations
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .viewer-slide,
  .viewer-tab::after { transition: none; }
}
