/* =====================================================================
   Soriston - feuille de style principale
   Palette alignée sur le logo :
   violet #8124cc, violet profond #630ea5, prune #200a2f, rose #ff5289
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Variables
   ------------------------------------------------------------------ */
:root {
  /* Couleurs de marque */
  --plum-900: #140720;
  --plum-800: #200a2f;
  --plum-700: #2e0f45;
  --plum-600: #430b71;
  --violet-700: #630ea5;
  --violet-500: #8124cc;
  --pink-500: #ff5289;
  --pink-400: #ff7aa4;
  --pink-100: #f1dbe2;
  --cream: #fbf6fa;

  /* Neutres */
  --ink: #1a0c26;
  --body: #494151;
  --muted: #776b7c;
  --line: #eae4f0;
  --line-strong: #d9cfe4;
  --white: #ffffff;

  /* Sémantique */
  --ok: #17915f;
  --warn: #d98324;
  --bad: #d63b52;

  /* Dégradés */
  --grad-brand: linear-gradient(135deg, var(--violet-700) 0%, var(--plum-700) 45%, var(--pink-500) 100%);
  --grad-soft: linear-gradient(135deg, #fdf2f8 0%, #f6effc 100%);
  --grad-pink: linear-gradient(135deg, var(--pink-500) 0%, var(--violet-500) 100%);

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(28, 13, 27, .06);
  --sh-sm: 0 2px 8px rgba(28, 13, 27, .06);
  --sh-md: 0 8px 28px rgba(73, 0, 73, .09);
  --sh-lg: 0 20px 60px rgba(73, 0, 73, .14);
  --sh-glow: 0 12px 40px rgba(255, 82, 137, .28);

  /* Structure */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 92px;
  --section-y: clamp(3.75rem, 8vw, 7rem);

  /* Typo */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip et non hidden : pas de conteneur de défilement, position:sticky préservée.
     Neutralise le débordement du tiroir de navigation hors écran. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .58vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--pink-500); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { color: var(--ink); font-weight: 700; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------------------
   3. Structure
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 800px; }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-cream { background: var(--cream); }
.section-soft { background: var(--grad-soft); }

.section-dark {
  background: var(--plum-900);
  color: rgba(255, 255, 255, .82);
  position: relative;
  overflow: hidden;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-dark a { color: var(--pink-400); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--plum-700);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* En-tête de section réutilisable */
.sec-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 1.0625rem; color: var(--muted); margin-bottom: 0; }
.sec-head h2 { margin-bottom: .5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .4rem .85rem;
  border-radius: var(--r-full);
  background: var(--pink-100);
  color: var(--plum-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.section-dark .eyebrow { background: rgba(255, 255, 255, .1); color: #fff; }
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink-500);
}

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); }

/* ---------------------------------------------------------------------
   4. Boutons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--grad-pink);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 46px rgba(255, 82, 137, .38); }

.btn-dark { background: var(--plum-700); color: #fff; }
.btn-dark:hover { background: var(--plum-600); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--plum-700);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--white); border-color: var(--plum-700); color: var(--plum-700); }

.section-dark .btn-ghost,
.hero .btn-ghost,
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .32); }
.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }

.btn-white { background: #fff; color: var(--plum-700); }
.btn-white:hover { color: var(--plum-700); box-shadow: var(--sh-lg); }

.btn-sm { padding: .68rem 1.15rem; font-size: .875rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .95rem;
}
.link-arrow::after {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  transition: transform .2s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   5. En-tête et navigation
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--plum-800);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(73, 0, 73, .22); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: none;
  color: var(--ink);
}
/* Le logo blanc est le lockup complet : monogramme + nom. */
.brand img { width: auto; height: 58px; object-fit: contain; }
.brand-light img { height: 74px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.brand-text em {
  font-style: normal;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink-500);
}
.brand-light { color: #fff; }
.brand-light .brand-text strong { color: #fff; }

/* En-tête du tiroir mobile : n'apparaît qu'une fois la navigation repliée. */
.nav-head { display: none; }
.nav-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-close:hover { background: var(--cream); color: var(--plum-700); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
/* Bande rose : navigation en blanc */
.site-header .nav-link { color: #fff; }
.site-header .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.site-header .nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .22); }
.nav-toggle svg { transition: transform .2s var(--ease); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 88vw);
  padding: .6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: mega-in .18s var(--ease);
}
.mega[hidden] { display: none; }
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, -6px); } }

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem .8rem;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background-color .18s var(--ease);
}
.mega-item:hover { background: var(--cream); color: var(--ink); }
.mega-item strong { display: block; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.mega-item em {
  display: block;
  font-style: normal;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .1rem;
}
.mega-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--pink-100);
  color: var(--plum-700);
}

.nav-actions { display: flex; align-items: center; gap: .85rem; flex: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-full);
}
.lang-item {
  padding: .3rem .62rem;
  border-radius: var(--r-full);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
}
.lang-item.is-current { background: #fff; color: var(--plum-700); }
.lang-item:hover { color: #fff; }
.lang-item.is-current:hover { color: var(--plum-700); }

/* Sur la bande rose, le bouton d'appel à l'action passe en blanc */
.site-header .btn-primary {
  background: #fff;
  color: var(--plum-700);
  box-shadow: 0 2px 10px rgba(73, 0, 73, .18);
}
.site-header .btn-primary:hover {
  background: var(--plum-700);
  color: #fff;
  box-shadow: 0 8px 24px rgba(73, 0, 73, .3);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--r-md);
}
.burger { opacity: 1; transition: opacity .2s var(--ease); }
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Le tiroir est un enfant de .site-header, donc prisonnier de son contexte
   d'empilement (z-index 100). Le voile doit rester en dessous, sinon il
   recouvre le tiroir quel que soit le z-index de ce dernier. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(28, 13, 27, .45);
  backdrop-filter: blur(2px);
}
.nav-backdrop[hidden] { display: none; }

/* ---------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--plum-900);
  color: rgba(255, 255, 255, .85);
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  width: 640px; height: 640px;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(255, 82, 137, .55), transparent 68%);
}
.hero::after {
  width: 620px; height: 620px;
  bottom: -320px; left: -200px;
  background: radial-gradient(circle, rgba(74, 2, 144, .75), transparent 68%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text p.lead { color: rgba(255, 255, 255, .8); max-width: 55ch; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-proof div strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.hero-proof div span { font-size: .85rem; color: rgba(255, 255, 255, .62); }

.hero-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: var(--r-full);
  background: rgba(28, 13, 27, .72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Hero secondaire (pages internes) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero .lead { max-width: 62ch; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.page-hero-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
.page-hero-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* ---------------------------------------------------------------------
   7. Fil d'Ariane
   ------------------------------------------------------------------ */
.breadcrumb { padding-block: .9rem; font-size: .82rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0; padding: 0;
  list-style: none;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--plum-700); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------
   8. Grilles et cartes
   ------------------------------------------------------------------ */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Empêche un contenu large (tableau, code, image) d'élargir sa colonne. */
.grid > *, .split > *, .compare > *, .pricing > *,
.post-grid > *, .quotes > *, .article-layout > *,
.form-layout > *, .hero-grid > *, .page-hero-grid > *, .stats > * { min-width: 0; }

.card {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--pink-100); }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .95rem; margin-bottom: 0; color: var(--muted); }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.05rem;
  border-radius: 13px;
  background: var(--grad-soft);
  color: var(--plum-700);
  border: 1px solid var(--line);
}
.card-icon svg { width: 22px; height: 22px; }

.card-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  border-radius: var(--r-full);
  background: var(--plum-700);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}

.card-dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
}
.card-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.card-dark p { color: rgba(255, 255, 255, .68); }
.card-dark .card-icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--pink-400); }

.card-accent {
  background: var(--grad-soft);
  border-color: var(--pink-100);
}

/* ---------------------------------------------------------------------
   9. Bloc comparatif (avant / après)
   ------------------------------------------------------------------ */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }

.compare-col {
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
}
.compare-col.is-before { background: #fff; }
.compare-col.is-after {
  background: var(--plum-900);
  border-color: transparent;
  color: rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}
.compare-col.is-after::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  top: -180px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 137, .45), transparent 70%);
  filter: blur(60px);
}
.compare-col.is-after > * { position: relative; }
.compare-col.is-after h3, .compare-col.is-after strong { color: #fff; }

.compare-tag {
  display: inline-block;
  margin-bottom: 1.15rem;
  padding: .35rem .8rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.is-before .compare-tag { background: #fdeff2; color: var(--bad); }
.is-after .compare-tag { background: rgba(255, 255, 255, .14); color: #fff; }

.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.5;
}
.is-after .compare-list li { border-bottom-color: rgba(255, 255, 255, .1); }
.compare-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.compare-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.is-before .compare-mark { background: #fdeff2; color: var(--bad); }
.is-after .compare-mark { background: rgba(52, 211, 153, .18); color: #34d399; }

/* ---------------------------------------------------------------------
   10. Bloc média + texte alterné
   ------------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5.5rem); }
.split.is-reverse .split-media { order: -1; }

.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  border: 1px solid var(--line);
  background: var(--cream);
}
.split-media img { width: 100%; object-fit: cover; }
.split-media.is-phone { background: none; border: 0; box-shadow: none; }
.split-media.is-phone img { border-radius: var(--r-xl); }

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: .45rem 0 .45rem 2rem;
  font-size: .97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .72rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pink-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e0f45' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section-dark .checklist li::before { background-color: rgba(255, 82, 137, .22); }

/* ---------------------------------------------------------------------
   11. Étapes
   ------------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step-num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--grad-pink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { margin: 0; font-size: .94rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   12. Chiffres
   ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.stat {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  text-align: center;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.stat-value {
  display: block;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, #fff 20%, var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { margin: .75rem 0 0; font-size: .93rem; color: rgba(255, 255, 255, .68); }

.stats-light .stat { background: #fff; border-color: var(--line); }
.stats-light .stat-value { background: var(--grad-pink); -webkit-background-clip: text; background-clip: text; }
.stats-light .stat p { color: var(--muted); }

/* ---------------------------------------------------------------------
   13. Tarifs
   ------------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.plan.is-featured {
  border-color: var(--plum-700);
  box-shadow: var(--sh-md);
}
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: .32rem .9rem;
  border-radius: var(--r-full);
  background: var(--grad-pink);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan h3 { margin-bottom: .35rem; }
.plan-sub { font-size: .92rem; color: var(--muted); margin-bottom: 1.35rem; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.plan-price span { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-features { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1; }
.plan-features li {
  position: relative;
  padding: .5rem 0 .5rem 1.75rem;
  font-size: .94rem;
  border-bottom: 1px dashed var(--line);
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: .78rem;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5289' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------ */
.faq { max-width: 840px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq-q:hover { color: var(--plum-700); }
.faq-icon {
  flex: none;
  position: relative;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: background-color .2s var(--ease), transform .25s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  border-radius: 2px;
  background: var(--plum-700);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--pink-100); }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 1.4rem; margin: 0; color: var(--muted); font-size: .98rem; max-width: 68ch; }
.faq-a p + p { padding-top: .6rem; }

/* ---------------------------------------------------------------------
   15. Témoignages
   ------------------------------------------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.quote-mark {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
  color: var(--pink-100);
  margin-bottom: .5rem;
}
.quote blockquote { margin: 0 0 1.5rem; font-size: 1rem; color: var(--ink); line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.quote figcaption img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
}
.quote-name { font-weight: 700; font-size: .92rem; color: var(--ink); display: block; }
.quote-role { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   16. Bandeau CTA
   ------------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.25rem);
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: rgba(255, 255, 255, .88);
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.18), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin-inline: auto; }
.cta-band .btn-group { justify-content: center; margin-top: 1.75rem; }
.cta-note { margin-top: 1.25rem; font-size: .84rem; color: rgba(255, 255, 255, .62); }

/* ---------------------------------------------------------------------
   17. Formulaire
   ------------------------------------------------------------------ */
.form-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
}
.field .req { color: var(--pink-500); }
.field .opt { font-weight: 500; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23776b7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--plum-700);
  box-shadow: 0 0 0 3px rgba(73, 0, 73, .1);
}
.field input::placeholder, .field textarea::placeholder { color: #a99fae; }

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.25rem 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
}
.field-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--plum-700); }

.form-alert {
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--r-md);
  font-size: .9rem;
}
.form-alert.is-ok { background: #e8f7f0; color: #0f6b47; border: 1px solid #b9e6d3; }
.form-alert.is-error { background: #fdeff2; color: #a02338; border: 1px solid #f5cdd5; }

.form-aside .checklist { margin-top: 1.75rem; }

/* Anti-spam */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------------
   18. Blog
   ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2rem); }

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-card figure { margin: 0; overflow: hidden; background: var(--cream); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.5rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .7rem;
  font-size: .78rem;
  color: var(--muted);
}
.post-cat {
  padding: .22rem .6rem;
  border-radius: var(--r-full);
  background: var(--pink-100);
  color: var(--plum-700);
  font-weight: 700;
  font-size: .72rem;
}
.post-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--plum-700); }
.post-card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.1rem; }
.post-card .link-arrow { margin-top: auto; font-size: .88rem; }

/* Article */
.article-head { max-width: 780px; }
.article-head h1 { margin-bottom: 1rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.25rem;
  font-size: .88rem;
  color: var(--muted);
}
.article-cover {
  margin: clamp(2rem, 4vw, 3rem) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prose { max-width: 72ch; font-size: 1.06rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .6em; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--pink-500);
  background: var(--cream);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--r-lg); margin: 2rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .95rem;
}
.prose th, .prose td { padding: .8rem 1rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--cream); color: var(--ink); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.35rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: .89rem;
}
.toc h2 {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: .5rem; }
.toc a { color: var(--body); }
.toc a:hover, .toc a.is-current { color: var(--plum-700); font-weight: 600; }

/* ---------------------------------------------------------------------
   19. Logos partenaires
   ------------------------------------------------------------------ */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  opacity: .72;
}
.logos img { height: 30px; width: auto; filter: grayscale(1); }
.logos-label {
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   20. Démo intégrée
   ------------------------------------------------------------------ */
.embed {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  background: var(--plum-900);
  aspect-ratio: 16 / 9;
}
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.embed-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  background: none;
}
.embed-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,13,27,.15), rgba(28,13,27,.6));
}
.embed-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.6rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .95);
  color: var(--plum-700);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--sh-lg);
  transition: transform .2s var(--ease);
}
.embed-poster:hover .embed-play { transform: scale(1.05); }

/* Liste titre + description, à côté d'un média */
.feature-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .95rem;
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-pink);
}
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--muted); }

.embed-note {
  margin: .8rem 0 0;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
.section-dark .embed-note { color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------------
   20 bis. Lecteur 360° natif
   ------------------------------------------------------------------ */
.v360 {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--plum-900);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  --v360-pad: clamp(.7rem, 1.6vw, 1.1rem);
}

.v360-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}
.v360-stage:focus-visible { outline: 2px solid var(--pink-400); outline-offset: -4px; }
.v360.is-grabbing .v360-stage { cursor: grabbing; }

.v360-video,
.v360-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.v360-video { object-fit: cover; opacity: 0; }
.v360.is-flat .v360-video { opacity: 1; }
.v360.is-flat .v360-canvas { display: none; }
.v360-flat { display: none; }
.v360.is-flat .v360-flat {
  display: block;
  position: absolute;
  left: 50%; bottom: 4.2rem;
  transform: translateX(-50%);
  width: min(90%, 34rem);
  margin: 0;
  padding: .55rem .9rem;
  border-radius: var(--r-full);
  background: rgba(28, 13, 27, .78);
  font-size: .78rem;
  text-align: center;
}

/* --- Points d'intérêt --- */
.v360-hotspots { position: absolute; inset: 0; pointer-events: none; }

.v360-hs {
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.v360-hs.is-on { opacity: 1; visibility: visible; pointer-events: auto; }

/* Pastille clignotante : petite à l'écran, mais confortable à viser. */
.v360-hs.is-dot { width: 18px; height: 18px; }
.v360-hs.is-dot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}
.v360-hs.is-dot .v360-hs-core { animation: v360blink 1.7s var(--ease) infinite; }
.v360-hs.is-dot:hover .v360-hs-core,
.v360-hs.is-dot:focus-visible .v360-hs-core { animation: none; transform: scale(1.25); }
@keyframes v360blink {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .3), 0 0 12px 2px rgba(255, 82, 137, .55);
  }
  50% {
    transform: scale(1.16);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 0 20px 5px rgba(255, 82, 137, .9);
  }
}

.v360-hs-core {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(28, 13, 27, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .55);
  transition: transform .2s var(--ease);
}

.v360-hs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 82, 137, .45);
  animation: v360pulse 2.4s var(--ease) infinite;
}

@keyframes v360pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.v360-hs-label {
  position: absolute;
  left: calc(100% + .5rem);
  top: 50%;
  transform: translateY(-50%) translateX(-.3rem);
  max-width: 14rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: .4rem .85rem;
  border-radius: var(--r-full);
  background: rgba(28, 13, 27, .85);
  backdrop-filter: blur(6px);
  font-size: .78rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.v360-hs.is-right .v360-hs-label {
  left: auto;
  right: calc(100% + .5rem);
  transform: translateY(-50%) translateX(.3rem);
}
.v360-hs:hover .v360-hs-label,
.v360-hs:focus-visible .v360-hs-label { opacity: 1; transform: translateY(-50%); }
.v360-hs:hover .v360-hs-core,
.v360-hs:focus-visible .v360-hs-core { transform: scale(1.12); }
.v360-hs:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: var(--r-full); }

/* --- Indicateur de direction --- */
.v360-arrow {
  position: absolute;
  top: 50%; right: .8rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 82, 137, .85);
  color: #fff;
  animation: v360nudge 1.6s var(--ease) infinite;
  pointer-events: none;
}
.v360-arrow[hidden] { display: none; }
.v360-arrow.is-left { right: auto; left: .8rem; transform: translateY(-50%) rotate(180deg); }
@keyframes v360nudge {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* --- Attente réseau --- */
.v360-spinner {
  position: absolute;
  left: 50%; top: 50%;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: var(--pink-500);
  animation: v360spin .8s linear infinite;
}
@keyframes v360spin { to { transform: rotate(360deg); } }

/* --- Aide au premier lancement --- */
.v360-hint {
  position: absolute;
  left: 50%; top: 1rem;
  transform: translate(-50%, -.4rem);
  margin: 0;
  max-width: min(92%, 32rem);
  padding: .5rem 1rem;
  border-radius: var(--r-full);
  background: rgba(28, 13, 27, .78);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.v360-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Onglets de scène --- */
.v360-tabs {
  position: absolute;
  left: var(--v360-pad); top: var(--v360-pad);
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.v360-tab {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .5rem .95rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-full);
  background: rgba(28, 13, 27, .6);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .78);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.v360-tab em { font-style: normal; font-weight: 500; font-size: .72rem; opacity: .65; }
.v360-tab:hover { background: rgba(28, 13, 27, .8); color: #fff; }
.v360-tab.is-active { background: var(--grad-pink); border-color: transparent; color: #fff; }

/* --- Barre de commandes --- */
.v360-ui {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 2.4rem var(--v360-pad) var(--v360-pad);
  background: linear-gradient(180deg, rgba(28, 13, 27, 0), rgba(28, 13, 27, .82));
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.v360.is-started .v360-ui { opacity: 1; pointer-events: auto; }

.v360-ui button {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.v360-ui button:hover { background: rgba(255, 255, 255, .26); }
.v360-ui button:focus-visible { outline: 2px solid var(--pink-400); outline-offset: 2px; }
.v360-play .ic-pause, .v360-play.is-playing .ic-play { display: none; }
.v360-play.is-playing .ic-pause { display: block; }
.v360-mute .ic-muted, .v360-mute.is-muted .ic-sound { display: none; }
.v360-mute.is-muted .ic-muted { display: block; }

.v360-time {
  flex: none;
  display: inline-flex;
  gap: .3rem;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .8);
}
.v360-time i { font-style: normal; opacity: .45; }

.v360-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 3rem;
  height: 4px;
  margin: 0;
  border-radius: var(--r-full);
  background: linear-gradient(to right,
    var(--pink-500) var(--pct, 0%), rgba(255, 255, 255, .26) var(--pct, 0%));
  cursor: pointer;
}
.v360-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 82, 137, .45);
}
.v360-seek::-moz-range-thumb {
  width: 13px; height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 82, 137, .45);
}
.v360-seek:focus-visible { outline: 2px solid var(--pink-400); outline-offset: 4px; }

/* --- Écran de lancement --- */
.v360-start {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.v360-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v360-start::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 13, 27, .2), rgba(28, 13, 27, .62));
}
.v360-start .embed-play { position: relative; z-index: 1; }
.v360-start:hover .embed-play { transform: scale(1.05); }
.v360.is-started .v360-start { display: none; }

.v360-badge {
  position: absolute;
  right: var(--v360-pad); top: var(--v360-pad);
  z-index: 1;
  padding: .3rem .7rem;
  border-radius: var(--r-full);
  background: rgba(28, 13, 27, .65);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}

/* --- Fiche de détail --- */
/* La fiche couvre toute l'interface, pas seulement le cadre de la vidéo.
   En plein écran, le lecteur étant l'élément affiché, elle reste dedans. */
.v360-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 3vw, 2rem);
}
/* Un ancêtre transformé créerait un bloc conteneur et ramènerait la fiche
   dans le cadre : on neutralise l'animation d'apparition le temps de la fiche. */
.v360.has-modal { transform: none; transition: none; }
.v360-modal[hidden] { display: none; }
.v360-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 6, 19, .72);
  backdrop-filter: blur(5px);
}
.v360-modal-card {
  position: relative;
  width: min(100%, 34rem);
  max-height: 100%;
  overflow: auto;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--body);
  box-shadow: var(--sh-lg);
  animation: v360pop .25s var(--ease);
}
@keyframes v360pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.v360-modal-figure { margin: 0; background: var(--plum-900); }
.v360-modal-figure[hidden] { display: none; }
.v360-modal-img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.v360-modal-body { padding: clamp(1.1rem, 3vw, 1.7rem); }

/* Sur écran large, la fiche tient dans la hauteur du lecteur : photo à
   gauche, texte à droite. */
@media (min-width: 900px) {
  .v360-modal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: stretch;
    width: min(100%, 46rem);
    overflow: hidden;
  }
  .v360-modal-card:has(.v360-modal-figure[hidden]) { grid-template-columns: 1fr; }
  .v360-modal-img { aspect-ratio: auto; min-height: 100%; }
  .v360-modal-body { overflow: auto; max-height: 100%; }
}
/* La fiche est claire alors que le lecteur est sombre : on rétablit les
   couleurs de texte au-dessus des règles de .section-dark. */
.v360 .v360-modal-kicker {
  display: inline-flex;
  margin: 0 0 .7rem;
  background: var(--pink-100);
  color: var(--plum-700);
}
.v360 .v360-modal-kicker[hidden] { display: none; }
.v360 .v360-modal-title { margin: 0 0 .6rem; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink); }
.v360 .v360-modal-text p { margin: 0 0 .7rem; font-size: .92rem; line-height: 1.65; color: var(--body); }
.v360-modal-text p:last-child { margin-bottom: 0; }
.v360-modal-close {
  position: absolute;
  right: .7rem; top: .7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 13, 27, .55);
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.v360-modal-close:hover { background: rgba(28, 13, 27, .8); }
.v360-modal-close svg { pointer-events: none; }

/* --- Scénario interactif : consignes, repérage, décisions --- */
.v360-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  --card: rgba(17, 7, 28, .86);
  --card-line: rgba(129, 36, 204, .5);
}
.v360-overlay > * { pointer-events: auto; }

.v360-prompt,
.v360-panel,
.v360-choice,
.v360-end {
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(8, 2, 14, .5);
  color: #fff;
  animation: v360rise .3s var(--ease) both;
}
@keyframes v360rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.v360-prompt {
  position: absolute;
  left: 50%; top: var(--v360-pad);
  transform: translateX(-50%);
  width: min(92%, 34rem);
  padding: .85rem 1.1rem;
  text-align: center;
  animation-name: v360rise-c;
}
@keyframes v360rise-c {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.v360-prompt-kicker {
  display: block;
  margin-bottom: .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-500);
}
.v360-prompt-text { display: block; font-size: 1.02rem; line-height: 1.35; }
.v360-prompt-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  padding: .25rem .6rem;
  border-radius: var(--r-full);
  background: rgba(129, 36, 204, .22);
  font-size: .76rem;
  color: rgba(255, 255, 255, .82);
}

.v360-panel {
  position: absolute;
  left: var(--v360-pad);
  top: 50%;
  transform: translateY(-50%);
  width: min(78%, 17rem);
  padding: .9rem 1rem;
  animation-name: v360rise-l;
}
@keyframes v360rise-l {
  from { opacity: 0; transform: translate(-8px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
.v360-panel.is-slim { width: min(78%, 15rem); }
.v360-panel-title {
  margin: 0 0 .6rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--violet-500);
}
.v360-panel-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.v360-panel-item {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .84rem;
  line-height: 1.35;
  color: #fff;
  animation: v360rise .25s var(--ease) both;
}
.v360-panel-item svg { flex: none; margin-top: .15rem; color: #4ade80; }
.v360-panel-count {
  margin: .7rem 0 0;
  padding-top: .6rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .75);
}
.v360-panel-count.is-complete { color: #4ade80; }
.v360-panel-hint {
  margin: .6rem 0 0;
  padding: .5rem .6rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  font-size: .78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
}
.v360-panel-hint[hidden] { display: none; }
.v360-panel-validate {
  width: 100%;
  margin-top: .7rem;
  padding: .5rem .8rem;
  border: 0;
  border-radius: var(--r-full);
  background: var(--grad-pink);
  color: #fff;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.v360-panel-validate:disabled { opacity: .5; cursor: default; }

.v360-choice {
  position: absolute;
  right: var(--v360-pad);
  bottom: calc(var(--v360-pad) + 3.4rem);
  width: min(84%, 19rem);
  padding: .9rem 1rem;
  display: grid;
  gap: .45rem;
}
.v360-choice-title { margin: 0 0 .3rem; font-size: .9rem; font-weight: 700; }
.v360-choice-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-family: inherit;
  font-size: .85rem;
  text-align: left;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.v360-choice-btn:hover:not(:disabled) {
  background: rgba(129, 36, 204, .35);
  border-color: var(--violet-500);
  transform: translateX(-2px);
}
.v360-choice-btn.is-picked { background: var(--grad-pink); border-color: transparent; }
.v360-choice-btn:disabled { cursor: default; }
.v360-choice-icon { display: grid; place-items: center; flex: none; color: var(--violet-500); }
.v360-choice-btn.is-picked .v360-choice-icon { color: #fff; }
.v360-choice-note { margin: .3rem 0 0; font-size: .72rem; color: rgba(255, 255, 255, .55); }

.v360-end {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 27rem);
  padding: 1.6rem 1.5rem;
  text-align: center;
  animation-name: v360rise-cc;
}
@keyframes v360rise-cc {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.v360-end-flag { font-size: 1.6rem; }
.v360-end-title { margin: .5rem 0 .4rem; font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: #fff; }
.v360-end-text { margin: 0 0 1.1rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.v360-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.v360-end-replay {
  margin-top: .9rem;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .6);
  font-family: inherit;
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
}
.v360-end-replay:hover { color: #fff; }
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* Marqueurs ancrés dans la scène : élément validé, halo d'indice */
.v360-mark {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.v360-mark.is-on { opacity: 1; visibility: visible; }
.v360-mark.is-found {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .28), 0 6px 16px rgba(8, 2, 14, .45);
  animation: v360pop .3s var(--ease);
}
.v360-mark-label {
  position: absolute;
  left: calc(100% + .45rem);
  top: 50%;
  transform: translateY(-50%);
  padding: .25rem .6rem;
  border-radius: var(--r-full);
  background: rgba(17, 7, 28, .88);
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}
.v360-mark.is-halo {
  width: 96px; height: 96px;
  border: 2px solid rgba(129, 36, 204, .8);
  background: radial-gradient(circle, rgba(129, 36, 204, .32) 0%, rgba(129, 36, 204, 0) 70%);
  animation: v360halo 1.9s var(--ease) infinite;
}
@keyframes v360halo {
  0%, 100% { transform: translate(-50%, -50%) scale(.85); opacity: .55; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Pendant une étape, la barre de lecture ne doit pas court-circuiter le
   scénario : on ne laisse que le son, le recentrage et le plein écran. */
.v360.is-locked .v360-play,
.v360.is-locked .v360-seek,
.v360.is-locked .v360-time { visibility: hidden; }
.v360.is-locked .v360-ui { background: none; }
.v360.has-script .v360-stage { cursor: crosshair; }
.v360.has-script.is-grabbing .v360-stage { cursor: grabbing; }

/* --- Mobile en portrait : le 16/9 est trop bas pour se repérer --- */
@media (max-width: 760px) and (orientation: portrait) {
  .v360-stage {
    aspect-ratio: 4 / 5;
    max-height: 72vh;
  }
  .v360-prompt { width: calc(100% - var(--v360-pad) * 2); }
  .v360-prompt-text { font-size: .92rem; }
}

/* --- La fiche devient une feuille remontant du bas --- */
@media (max-width: 700px) {
  .v360-modal { padding: 0; place-items: end stretch; }
  .v360-modal-card {
    width: 100%;
    max-height: 86dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: v360sheet .28s var(--ease);
    display: flex;
    flex-direction: column;
  }
  .v360-modal-card::before {
    content: "";
    position: absolute;
    left: 50%; top: .5rem;
    width: 40px; height: 4px;
    margin-left: -20px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .55);
    z-index: 3;
  }
  .v360-modal-figure { flex: none; }
  .v360-modal-img { max-height: 32dvh; }
  .v360-modal-body { overflow: auto; }
  .v360-modal-close { right: .6rem; top: .6rem; }
}
@keyframes v360sheet {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

@media (max-width: 700px) {
  .v360-panel {
    top: auto;
    bottom: calc(var(--v360-pad) + 3.2rem);
    transform: none;
    width: calc(100% - var(--v360-pad) * 2);
    max-height: 45%;
    overflow: auto;
    animation-name: v360rise;
  }
  .v360-choice {
    right: var(--v360-pad);
    left: var(--v360-pad);
    width: auto;
  }
  .v360-prompt { top: calc(var(--v360-pad) + 2.6rem); }
  .v360-mark-label { display: none; }
}

/* --- Plein écran --- */
.v360:fullscreen { border-radius: 0; border: 0; }
.v360:fullscreen .v360-stage { aspect-ratio: auto; height: 100vh; }
.v360:-webkit-full-screen .v360-stage { aspect-ratio: auto; height: 100vh; }

/* --- Mode repérage (?v360edit=1) --- */
.v360-editor {
  position: absolute;
  right: .8rem; bottom: 4.6rem;
  z-index: 12;
  display: grid;
  gap: .4rem;
  width: 17rem;
  padding: .8rem;
  border-radius: var(--r-md);
  background: rgba(20, 6, 19, .92);
  font-size: .76rem;
  color: #fff;
}
.v360-editor button {
  padding: .4rem .7rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--pink-500);
  color: #fff;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
}
.v360-editor textarea {
  width: 100%;
  border: 0;
  border-radius: var(--r-sm);
  padding: .5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  resize: vertical;
}
.v360-editor-live { font-variant-numeric: tabular-nums; color: var(--pink-400); }

@media (max-width: 560px) {
  .v360-time { display: none; }
  .v360-hs-label { display: none; }
  .v360-tab em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v360-hs-ring, .v360-arrow { animation: none; }
  .v360-hs.is-dot .v360-hs-core { animation: none; }
  .v360-mark.is-halo { animation: none; }
  .v360-modal-card { animation: none; }
}

/* ---------------------------------------------------------------------
   21. Pied de page
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--plum-900);
  color: rgba(255, 255, 255, .62);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-tagline { margin: 1.15rem 0; max-width: 34ch; font-size: .92rem; }
.footer-mail { color: var(--pink-400); font-weight: 600; }
.footer-mail:hover { color: #fff; }

.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.footer-title {
  margin-bottom: 1rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: .9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }
.footer-lang { display: flex; align-items: center; gap: .75rem; }
.footer-lang a { color: rgba(255, 255, 255, .62); }
.footer-lang a.is-current { color: #fff; font-weight: 700; }

.to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--plum-700);
  color: #fff;
  box-shadow: var(--sh-md);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.to-top:hover { transform: translateY(-3px); background: var(--pink-500); }
.to-top[hidden] { display: none; }

/* ---------------------------------------------------------------------
   22. Utilitaires
   ------------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   23. Responsive
   ------------------------------------------------------------------ */

/* Écrans moyens */
@media (max-width: 1100px) {
  .nav-list { gap: 0; }
  .nav-link { padding: .5rem .6rem; font-size: .88rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

/* Tablette : bascule du menu en tiroir */
@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .brand img { height: 50px; }

  .burger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 102;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(360px, 88vw);
    height: 100dvh;
    padding: 1.15rem 1.35rem 2rem;
    background: #fff;
    box-shadow: -20px 0 60px rgba(28, 13, 27, .18);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding-bottom: 1.1rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid var(--line);
  }
  .brand-drawer img { height: 46px; }

  /* Le tiroir porte sa propre croix : on retire celle de la barre pour ne
     pas afficher deux fermetures. */
  .main-nav.is-open ~ .burger { opacity: 0; pointer-events: none; }

  .nav-list { flex-direction: column; align-items: stretch; margin: 0; width: 100%; }
  .nav-list > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: .95rem .25rem;
    font-size: 1rem;
    border-radius: 0;
  }

  /* Le tiroir est un panneau blanc : on annule les styles de la bande rose */
  .site-header .nav-link { color: var(--ink); background: none; }
  .site-header .nav-link:hover { color: var(--plum-700); background: none; }
  .site-header .nav-link.is-active { color: var(--pink-500); background: none; }

  .lang-switch { background: var(--cream); border-color: var(--line); }
  .lang-item { color: var(--muted); }
  .lang-item.is-current { background: var(--plum-700); color: #fff; }
  .lang-item:hover { color: var(--plum-700); }

  .site-header .btn-primary { background: var(--grad-pink); color: #fff; box-shadow: var(--sh-glow); }
  .site-header .btn-primary:hover { background: var(--grad-pink); color: #fff; }

  .mega {
    position: static;
    transform: none;
    width: 100%;
    padding: 0 0 .75rem;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    animation: none;
  }
  .mega-item { padding: .7rem .25rem; }
  .mega-item:hover { background: none; }

  .nav-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1.75rem;
  }
  .nav-actions .btn { width: 100%; }
  .lang-switch { align-self: flex-start; }

  /* Mises en page */
  .hero-grid,
  .page-hero-grid,
  .split,
  .form-layout,
  .article-layout { grid-template-columns: minmax(0, 1fr); }

  .split.is-reverse .split-media { order: 0; }
  .split-media { max-width: 620px; margin-inline: auto; }

  /* Le visuel passe au-dessus du texte dès que la grille se replie */
  .hero-media { order: -1; margin-bottom: .5rem; }
  .page-hero-media { order: -1; margin-bottom: .5rem !important; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .toc { position: static; }
  .article-layout .toc { order: -1; }
}

/* Mobile */
@media (max-width: 700px) {
  .hero { padding-block: 2.75rem 3rem; }
  .hero-media { order: -1; }
  .hero-proof { gap: 1rem 1.5rem; }
  .hero-proof div strong { font-size: 1.35rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .btn-group .btn { width: 100%; }
  .cta-band { padding: 2rem 1.35rem; }
  .cta-band h2 { max-width: none; }

  .plan.is-featured { order: -1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .prose { font-size: 1rem; }
  .article-cover img { aspect-ratio: 16 / 10; }
}

@media (max-width: 460px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .brand-text strong { font-size: .98rem; }
  .brand img { height: 46px; }
  .brand-light img { height: 58px; }
  .to-top { right: .85rem; bottom: .85rem; width: 42px; height: 42px; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .to-top, .cta-band, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .article-layout { display: block; }
}
