/* ═══════════════════════════════════════════════════════════════════════
   SOSIDE SCHOOL — site vitrine
   Couleurs de la marque : bleu #40A2FF → #0052D6, jaune #FFCC00.
   Aucun appel externe (polices système) : le site s'affiche hors-ligne.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --blue-300: #7cc0ff;
  --blue-400: #40a2ff;
  --blue-500: #1a7cf0;
  --blue-600: #0052d6;
  --blue-700: #003fa8;
  --blue-900: #00266e;
  --yellow: #ffcc00;
  --red: #e5383b;
  --green: #18a058;

  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-elev: #ffffff;
  --text: #0e1a2e;
  --text-soft: #4a5a75;
  --text-mute: #7a879c;
  --line: #e2e8f2;
  --shadow-sm: 0 1px 2px rgba(0, 38, 110, 0.06), 0 2px 8px rgba(0, 38, 110, 0.05);
  --shadow: 0 10px 30px -10px rgba(0, 38, 110, 0.18), 0 4px 10px rgba(0, 38, 110, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(0, 38, 110, 0.35), 0 10px 30px -10px rgba(0, 38, 110, 0.15);

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a1220;
  --bg-soft: #0f1a2d;
  --bg-elev: #13213a;
  --text: #eef3fb;
  --text-soft: #b0bdd3;
  --text-mute: #7c8aa3;
  --line: #22324f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  overflow-x: clip;
}
html { overflow-x: clip; }

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
[data-theme="dark"] a { color: var(--blue-300); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow { color: var(--blue-300); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--yellow); }
.grad-text {
  background: linear-gradient(100deg, var(--blue-400), var(--blue-600) 60%, var(--blue-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .grad-text { background-image: linear-gradient(100deg, #8fd0ff, var(--blue-400)); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(0, 82, 214, 0.7); }
.btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(0, 82, 214, 0.8); }
.btn--ghost { background: var(--bg-elev); color: var(--text) !important; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-400); }
.btn--yellow { background: var(--yellow); color: #1b1300 !important; }
.btn--sm { padding: 10px 16px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; color: var(--text) !important; font-weight: 800; letter-spacing: -0.01em; font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-mute); text-transform: uppercase; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-soft); font-weight: 550; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue-600); background: color-mix(in srgb, var(--blue-400) 12%, transparent); }
[data-theme="dark"] .nav a[aria-current="page"] { color: var(--blue-300); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 1140px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 16px 20px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s var(--ease);
  }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .header-actions .btn { display: none; }
}

/* ── Héros ───────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 110px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float 18s ease-in-out infinite; }
.blob--1 { width: 520px; height: 520px; background: var(--blue-400); top: -180px; right: -120px; }
.blob--2 { width: 380px; height: 380px; background: var(--yellow); bottom: -160px; left: -120px; opacity: 0.28; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; background: var(--blue-600); top: 40%; left: 45%; opacity: 0.18; animation-delay: -11s; }
[data-theme="dark"] .blob { opacity: 0.25; }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.06); } 66% { transform: translate(-20px, 20px) scale(0.96); } }

.hero-grid { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 56px; align-items: center; }
.hero-copy .lead { font-size: 1.22rem; color: var(--text-soft); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--text-soft);
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.pill b { background: var(--blue-600); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; letter-spacing: 0.04em; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-mute); font-size: 0.92rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }

.hero-visual { position: relative; perspective: 1600px; }
.hero-stage { position: relative; transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.hero-visual:hover .hero-stage { transform: rotateY(-3deg) rotateX(1deg); }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 600; animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--text-mute); font-weight: 500; font-size: 0.78rem; }
.float-card .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .dot svg { width: 20px; height: 20px; }
.float-card--a { left: -36px; bottom: 18%; }
.float-card--b { right: -18px; top: 8%; animation-delay: -2s; }
.float-card--c { right: 12%; bottom: -26px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone-float { position: absolute; z-index: 2; right: -28px; bottom: -40px; width: 30%; transform: translateZ(60px); }

/* ── Cadres d'appareil ───────────────────────────────────────────────── */
.device-window {
  border-radius: 14px; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.device-window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.device-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.device-window__bar i:nth-child(2) { background: #febc2e; }
.device-window__bar i:nth-child(3) { background: #28c840; }
.device-window__bar span { margin-left: 10px; font-size: 0.78rem; color: var(--text-mute); font-weight: 600; }
.device-window__screen { position: relative; aspect-ratio: 1366 / 820; background: var(--bg-soft); overflow: hidden; }
.device-phone {
  border-radius: 34px; padding: 9px; background: #0b0f17; box-shadow: var(--shadow-lg);
  border: 1px solid #2a3344;
}
.device-phone__screen { position: relative; aspect-ratio: 390 / 844; border-radius: 26px; overflow: hidden; background: var(--bg-soft); }
.device-phone__screen::before { content: ""; position: absolute; z-index: 2; top: 7px; left: 50%; width: 32%; height: 18px; transform: translateX(-50%); background: #0b0f17; border-radius: 12px; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.shot.is-hidden { opacity: 0; transform: scale(1.02); }

/* Maquette de repli si la capture n'existe pas encore */
.mock { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; background: var(--bg-soft); }
.mock__side { background: var(--bg-elev); border-right: 1px solid var(--line); padding: 8% 8%; display: flex; flex-direction: column; gap: 7%; }
.mock__side i { height: 6%; min-height: 6px; border-radius: 6px; background: var(--line); }
.mock__side i:first-child { background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); width: 70%; }
.mock__main { padding: 4% 5%; display: grid; grid-template-rows: auto auto 1fr; gap: 5%; }
.mock__title { height: 10px; width: 40%; border-radius: 6px; background: var(--text-mute); opacity: 0.4; }
.mock__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; }
.mock__kpis i { aspect-ratio: 2 / 1; border-radius: 8px; background: var(--bg-elev); border: 1px solid var(--line); position: relative; }
.mock__kpis i::after { content: ""; position: absolute; left: 12%; bottom: 22%; width: 50%; height: 18%; border-radius: 4px; background: var(--blue-400); opacity: 0.7; }
.mock__kpis i:nth-child(2)::after { background: var(--yellow); }
.mock__kpis i:nth-child(3)::after { background: var(--green); }
.mock__kpis i:nth-child(4)::after { background: var(--red); }
.mock__chart { border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--line); display: flex; align-items: flex-end; gap: 4%; padding: 5%; }
.mock__chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); animation: grow 2.4s var(--ease) infinite alternate; transform-origin: bottom; }
.mock__chart i:nth-child(odd) { animation-delay: -1.2s; }
.mock__label { position: absolute; right: 12px; bottom: 10px; font-size: 0.7rem; font-weight: 700; color: var(--text-mute); background: var(--bg-elev); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }
@keyframes grow { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
.device-phone .mock { grid-template-columns: 1fr; }
.device-phone .mock__side { display: none; }
.device-phone .mock__kpis { grid-template-columns: repeat(2, 1fr); padding-top: 18%; }

/* ── Bandeau chiffres ────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blue-600); line-height: 1.1; }
[data-theme="dark"] .stat strong { color: var(--blue-300); }
.stat span { color: var(--text-soft); font-size: 0.95rem; }

/* ── Cartes ──────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue-400) 40%, var(--line)); }
.card p { color: var(--text-soft); margin: 0; }
.card ul { color: var(--text-soft); padding-left: 1.1em; margin: 12px 0 0; }
.card li { margin: 4px 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--blue-400), var(--blue-600)); color: #fff; box-shadow: 0 10px 20px -10px rgba(0, 82, 214, 0.8);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon--yellow { background: linear-gradient(160deg, #ffd84d, #f0a800); color: #1b1300; box-shadow: 0 10px 20px -10px rgba(240, 168, 0, 0.8); }
.card-icon--green { background: linear-gradient(160deg, #3dd68c, #128a4a); }
.card-icon--red { background: linear-gradient(160deg, #ff6b6e, #c41f22); }

/* ── Visite guidée (onglets + capture) ───────────────────────────────── */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tour-tab {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  color: var(--text); cursor: pointer; font: inherit; position: relative; overflow: hidden; transition: background 0.2s, border-color 0.2s;
}
.tour-tab strong { display: block; font-size: 1.02rem; }
.tour-tab span { display: block; color: var(--text-soft); font-size: 0.9rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.3s, margin 0.3s; }
.tour-tab:hover { background: var(--bg-elev); }
.tour-tab[aria-selected="true"] { background: var(--bg-elev); border-color: var(--line); box-shadow: var(--shadow-sm); }
.tour-tab[aria-selected="true"] span { max-height: 120px; opacity: 1; margin-top: 6px; }
.tour-tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue-400), var(--yellow)); }
.tour-tab[aria-selected="true"] .bar { animation: progress var(--tour-ms, 6000ms) linear forwards; }
.tour.is-paused .tour-tab .bar { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.tour-stage { position: sticky; top: calc(var(--header-h) + 24px); }

/* ── Bloc hors-ligne animé ───────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-soft); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sync-anim { width: 100%; height: auto; overflow: visible; }
.sync-anim .packet { offset-path: path("M120 150 C 220 60, 380 60, 480 150"); animation: travel 3.2s var(--ease) infinite; }
.sync-anim .packet:nth-of-type(2) { animation-delay: -1.06s; }
.sync-anim .packet:nth-of-type(3) { animation-delay: -2.13s; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.sync-anim .wave { transform-origin: center; transform-box: fill-box; animation: wave 2.4s ease-out infinite; }
.sync-anim .wave--2 { animation-delay: -1.2s; }
@keyframes wave { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
.sync-anim .net-off { animation: blink 4s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.sync-anim .net-on { animation: blink 4s steps(1) infinite reverse; animation-delay: -2s; }

/* ── Monnaies ─────────────────────────────────────────────────────────── */
.fx {
  border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow);
}
.fx-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.fx-row:last-child { border-bottom: 0; }
.fx-row b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.fx-row small { color: var(--text-mute); }
.fx-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 14px; }
.fx-switch button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: 700 0.9rem var(--font); color: var(--text-soft); cursor: pointer; }
.fx-switch button[aria-pressed="true"] { background: var(--blue-600); color: #fff; }

/* ── Galerie ─────────────────────────────────────────────────────────── */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-soft); padding: 8px 16px; border-radius: 999px; font: 600 0.9rem var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery figure .device-window { box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.gallery figure:hover .device-window { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: 0.95rem; }
.gallery figcaption small { display: block; color: var(--text-mute); font-weight: 500; }
.gallery figure[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(5, 12, 25, 0.86); backdrop-filter: blur(6px); padding: 4vw; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); transform: scale(0.96); transition: transform 0.4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox button { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 20px; right: auto; }
.lightbox .lb-next { right: 20px; }

/* ── Étapes ──────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--yellow); color: #1b1300; font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--text-soft); margin: 0; font-size: 0.96rem; }

/* ── Tarifs ──────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--line); position: relative; }
.plan--featured { border: 2px solid var(--blue-500); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan--featured::before { content: "Le plus choisi"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.plan h3 { font-size: 1.35rem; }
.plan .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-mute); letter-spacing: 0; }
.plan > p { color: var(--text-soft); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text-soft); font-size: 0.96rem; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-size: 0.9rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 800; }
.no { color: var(--text-mute); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); padding: 0 22px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-500); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--text-soft); }
.faq h3 { margin: 36px 0 14px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }

/* ── Bandeau d'appel à l'action ──────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700) 70%, var(--blue-900)); color: #fff; text-align: center;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); }
.cta-band::before { width: 340px; height: 340px; background: var(--yellow); opacity: 0.25; top: -160px; right: -60px; }
.cta-band::after { width: 300px; height: 300px; background: var(--blue-300); opacity: 0.3; bottom: -160px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 620px; margin-inline: auto; }
.cta-band .btn--ghost { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff !important; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ── Page intérieure ─────────────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero p { color: var(--text-soft); font-size: 1.18rem; max-width: 680px; margin-inline: auto; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-soft); }
.prose .todo { background: color-mix(in srgb, var(--yellow) 30%, transparent); padding: 0 4px; border-radius: 4px; color: var(--text); }
.breadcrumb { font-size: 0.88rem; color: var(--text-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-mute); }

.feature-block { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature-block:last-child { border-bottom: 0; }
.feature-block:nth-child(even) > :first-child { order: 2; }
.feature-block .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: color-mix(in srgb, var(--blue-400) 14%, transparent); color: var(--blue-600); margin-bottom: 12px; }
[data-theme="dark"] .feature-block .tag { color: var(--blue-300); }
.anchor-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }

/* ── Formulaires ─────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-400) 20%, transparent); }
.form-note { font-size: 0.85rem; color: var(--text-mute); }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); }
.contact-card .card-icon { margin: 0; width: 42px; height: 42px; flex: none; }
.contact-card p { margin: 0; color: var(--text-soft); }

/* ── Pied de page ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--text-soft); }
.site-footer p { color: var(--text-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; color: var(--text-mute); font-size: 0.88rem; }
.flag-strip { display: inline-flex; height: 4px; width: 54px; border-radius: 4px; overflow: hidden; margin-top: 14px; }
.flag-strip i { flex: 1; }

/* ── Animations à l'apparition ───────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@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; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tour-tab { flex: 0 0 240px; scroll-snap-align: start; }
  .tour-stage { position: relative; top: 0; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .feature-block { grid-template-columns: 1fr; gap: 44px; }
  .feature-block:nth-child(even) > :first-child, .split--rev > :first-child { order: 0; }
  .cards, .cards--4, .plans, .gallery { grid-template-columns: 1fr 1fr; }
  .steps, .stats { grid-template-columns: 1fr 1fr; }
  .plan--featured { transform: none; }
  .float-card--a { left: -6px; }
  .float-card--b { right: -6px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .cards--2, .cards--4, .plans, .gallery, .steps, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
  .phone-float { right: -8px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ── Mise en page encadrée ───────────────────────────────────────────────
   Le contenu ne touche jamais les bords de l'écran : des marges latérales
   qui grandissent avec la largeur, et les blocs colorés (héros, sections
   alternées, pied de page) posés comme des panneaux arrondis en retrait.
   Sur téléphone, les panneaux reprennent toute la largeur. */
:root {
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 80px);
  --frame: clamp(12px, 2.6vw, 40px);
  --frame-radius: clamp(22px, 2.4vw, 36px);
  --page: #eef2f8;
}
[data-theme="dark"] { --page: #060c17; }

body { background: var(--page); }
.nav a { white-space: nowrap; }
@media (min-width: 1141px) and (max-width: 1360px) { .nav a { padding: 8px 9px; font-size: 0.92rem; } }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); }

/* Le corps de page sur un fond légèrement plus clair que la marge. */
main {
  margin-inline: var(--frame);
  background: var(--bg);
  border-radius: var(--frame-radius);
  box-shadow: var(--shadow-sm);
  overflow: clip;
}
main { margin-top: 8px; }

.hero, .page-hero { isolation: isolate; }
.section--soft {
  margin-inline: clamp(0px, 1.6vw, 24px);
  border-radius: var(--frame-radius);
  border: 1px solid var(--line);
}

.site-header { background: color-mix(in srgb, var(--page) 82%, transparent); }
.site-footer {
  margin: var(--frame);
  border: 1px solid var(--line);
  border-radius: var(--frame-radius);
  background: var(--bg-soft);
}

@media (min-width: 1700px) {
  /* Écrans très larges : la page entière reste une colonne centrée. */
  main, .site-footer { max-width: 1640px; margin-inline: auto; }
}

@media (max-width: 600px) {
  :root { --frame: 0px; --frame-radius: 0px; }
  main { box-shadow: none; }
  .section--soft { margin-inline: 0; border-inline: 0; }
  .site-footer { margin: 0; border-inline: 0; }
}
