/* ============================================================
   DESIGN SYSTEM — Tokens
   ============================================================ */
:root {
  /* Couleurs imposées */
  --noir: #0d0d0d;
  --creme-bg: #f2f2f2;
  --violet: #8c52ff;
  --creme-accent: #f3e6cc;

  /* Tons dérivés */
  --violet-hover: #9d6fff;
  --card-dark: #16141c;
  --card-light: #ffffff;
  --text-muted-dark: #a8a8b3;
  --text-muted-light: #5c5c66;
  --border-dark: rgba(242, 242, 242, 0.08);
  --border-light: rgba(13, 13, 13, 0.08);

  /* Typographie */
  --font-title: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Espacements (base 8) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Layout */
  --max-width: 1280px;
  --radius-card: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--creme-bg);
  background-color: var(--noir);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-3); }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--violet);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

/* Focus clavier visible (accessibilité) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-narrow { max-width: 820px; }

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted-dark);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  text-align: center;
}

.btn-primary {
  background: var(--violet);
  color: var(--creme-bg);
}

.btn-primary:hover {
  background: var(--violet-hover);
  transform: translateY(-2px);
}

.btn-large { font-size: 18px; padding: 18px 40px; }

.btn-secondary {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
}

.btn-secondary:hover {
  background: rgba(140, 82, 255, 0.1);
}

/* ============================================================
   CARTES (générique)
   ============================================================ */
.card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 var(--space-4);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--creme-bg);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-footer .logo-img { width: 32px; height: 32px; }

.logo-mark { color: var(--violet); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-menu a {
  color: var(--text-muted-dark);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-menu a:hover { color: var(--creme-bg); }

.nav-cta {
  background: var(--violet);
  color: var(--creme-bg) !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--violet-hover);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--creme-bg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: var(--space-7) 0 var(--space-6);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.highlight { color: var(--violet); }

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto var(--space-4);
  line-height: 1.7;
  text-align: center;
  min-height: 4.5em;
}

/* ---------- Ligne fixe du sous-titre ---------- */
.typeline--fixed {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.typeline--fixed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Rotation cyclique de texte ----------
   Conteneur avec overflow caché. Chaque slide entre par le
   bas, reste visible, puis sort par le haut. Le suivant
   entre immédiatement après. */

.text-rotator__slide {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: none;                              /* ← plus de translateY : fondu pur, comme dans l'enregistrement */
  transition: opacity 0.275s cubic-bezier(0.16, 1, 0.3, 1); /* ← 0.55s au total réparti sur sortie+entrée */
  color: var(--violet);
  font-weight: 600;
}

.text-rotator__slide.is-active {
  opacity: 1;
}

.text-rotator__slide.is-exiting {
  opacity: 0;
}
/* Bandeau défilant */
.marquee {
  margin-top: var(--space-6);
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-2) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}

.marquee-track span {
  flex: 0 0 auto;        /* empêche la compression -> boucle parfaite */
  white-space: nowrap;
  font-size: 15px;
  color: var(--text-muted-dark);
  letter-spacing: 0.5px;
  padding-right: 28px;   /* espacement resserré entre les blocs */
}

/* ============================================================
   SITUATION (agitation) — cartes numérotées harmonisées
   ============================================================ */
.agitation {
  padding: var(--space-7) 0;
}

/* ============================================================
   TRAVAUX ACCOMPLIS
   ============================================================ */
.works {
  padding: var(--space-7) 0;
}

.works .section-title { margin-bottom: var(--space-2); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* La carte est un <button> : reset du style natif */
.case-card {
  text-align: left;
  font: inherit;            /* hérite d'Inter */
  color: inherit;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 82, 255, 0.4);
  box-shadow: 0 12px 40px rgba(140, 82, 255, 0.15);
}

/* CTA "Voir l'étude de cas" en bas de carte */
.case-cta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease);
}

.case-card:hover .case-cta { gap: 12px; }
.case-card:hover .case-cta span { transform: translateX(2px); }

.case-cta span { transition: transform 0.2s var(--ease); }

.case-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--creme-accent);
  background: rgba(243, 230, 204, 0.08);
  border: 1px solid rgba(243, 230, 204, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.case-metric { margin: 0 0 var(--space-2); }

.metric-value {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--violet);
  line-height: 1;
}

.case-context {
  color: var(--text-muted-dark);
  font-size: 15px;
  margin: 0;
}

.case-context strong { color: var(--creme-bg); font-weight: 600; }

/* ============================================================
   DIFFÉRENCIATION (tableau comparatif)
   ============================================================ */
.compare {
  padding: var(--space-7) 0;
}

.compare .section-title { margin-bottom: var(--space-2); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  max-width: 960px;
  margin: var(--space-5) auto 0;
}

.compare-col { padding: 0; overflow: hidden; }

.compare-col--me {
  border-color: rgba(140, 82, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(140, 82, 255, 0.15), 0 12px 40px rgba(140, 82, 255, 0.08);
}

.compare-col--them {
  background: rgba(22, 20, 28, 0.6);
  opacity: 0.85;
}

.compare-header {
  padding: var(--space-3) var(--space-4);
}

.compare-header h3 {
  margin: 0;
  font-size: 20px;
}

.compare-header--me {
  background: var(--violet);
  color: var(--creme-bg);
}

.compare-header--them {
  background: rgba(242, 242, 242, 0.05);
  color: var(--text-muted-dark);
}

.compare-list {
  padding: var(--space-3) var(--space-4);
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: 15.5px;
  border-bottom: 1px solid var(--border-dark);
}

.compare-list li:last-child { border-bottom: none; }

.icon-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 82, 255, 0.15);
  color: var(--violet);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.icon-cross {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 242, 242, 0.06);
  color: var(--text-muted-dark);
  border-radius: 50%;
  font-size: 12px;
}

/* ============================================================
   CE QU'ON ESSAIE AVANT NOUS (alternatives)
   ============================================================ */
.alternatives {
  padding: var(--space-7) 0;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Carte « mauvais chemin » — légèrement désaturée pour contraster
   avec les cartes positives (approche, compare « Nous ») */
.alt-card {
  position: relative;
  opacity: 0.92;
}

.alt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 82, 255, 0.35);
  opacity: 1;
}

.alt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

/* Icône dans un cercle teinté violet (cohérent avec .step-badge) */
.alt-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 82, 255, 0.12);
  color: var(--violet);
  border-radius: 50%;
}

/* Numéro creux « 01 / 02 / 03 » (cohérent avec .step-number) */
.alt-number {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-muted-dark);
}

.alt-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

/* Liste à puces avec croix ✕ (problèmes) — cohérent avec .icon-cross */
.alt-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alt-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-muted-dark);
  line-height: 1.55;
  border-bottom: 1px solid var(--border-dark);
}

.alt-list li:last-child {
  border-bottom: none;
}

.alt-cross {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 242, 242, 0.06);
  color: var(--text-muted-dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* Pont de conclusion : carte mise en avant avec bordure violette */
.alternatives-bridge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: var(--space-5) auto 0;
  padding: var(--space-4);
  background: rgba(140, 82, 255, 0.06);
  border: 1px solid rgba(140, 82, 255, 0.25);
  border-radius: var(--radius-card);
  font-size: 16px;
  line-height: 1.6;
  color: var(--creme-bg);
}

.bridge-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: var(--noir);
  border-radius: 50%;
  margin-top: 1px;
}

/* ============================================================
   APPROCHE (étapes)
   ============================================================ */
.approche {
  padding: var(--space-7) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 82, 255, 0.4);
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.step-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 82, 255, 0.12);
  border-radius: 50%;
  font-size: 20px;
}

.step-number {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--text-muted-dark);
  line-height: 1.5;
}

.step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--violet);
  border-radius: 50%;
}

/* ============================================================
   QUI SUIS-JE (fond clair — unique rupture chromatique)
   ============================================================ */
.about {
  background: var(--creme-bg);
  color: var(--noir);
  padding: var(--space-8) 0;
}

.about-content {
  max-width: 820px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  margin-bottom: var(--space-3);
}

.about-lead {
  font-size: clamp(18px, 2.5vw, 21px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--noir);
  margin-bottom: var(--space-3);
}

.about-content p { color: var(--text-muted-light); font-size: 16px; }

.about-content strong { color: var(--noir); }

.about-benefits {
  margin: var(--space-4) 0;
}

.about-benefits li {
  position: relative;
  padding-left: 28px;
  padding: 10px 0 10px 32px;
  font-size: 15.5px;
  color: var(--text-muted-light);
  border-bottom: 1px solid var(--border-light);
}

.about-benefits li:last-child { border-bottom: none; }

.about-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: var(--creme-bg);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.about-stats {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 130px;
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: var(--space-2) var(--space-3);
  box-shadow: 0 4px 16px rgba(13, 13, 13, 0.04);
}

.stat-value {
  display: block;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--violet);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted-light);
  margin-top: 4px;
}

/* ============================================================
   FAQ (accordéon)
   ============================================================ */
.faq {
  padding: var(--space-7) 0;
}

.faq .section-title { margin-bottom: var(--space-2); }

.accordion {
  margin-top: var(--space-5);
  text-align: left;
}

.accordion-item {
  border-bottom: 1px solid var(--border-dark);
}

.accordion-item:first-child { border-top: 1px solid var(--border-dark); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--creme-bg);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  padding: var(--space-3) 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.accordion-trigger:hover { color: var(--violet); }

.accordion-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: var(--creme-bg);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}

.accordion-item.is-open .accordion-icon {
  background: var(--violet-hover);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.accordion-panel p {
  color: var(--text-muted-dark);
  font-size: 15.5px;
  padding: 0 0 var(--space-3);
  margin: 0;
  max-width: 700px;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact {
  padding: var(--space-8) 0;
  text-align: center;
}

.contact-inner > .btn { margin-top: var(--space-4); }

.contact-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.badge {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-dark);
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-dark);
  padding: var(--space-5) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.logo-footer { font-size: 16px; }

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--text-muted-dark);
  font-size: 14px;
}

.footer-links a:hover { color: var(--creme-bg); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted-dark);
  margin: 0;
}

/* ============================================================
   MODALE CALENDLY (pop-up)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-4) var(--space-3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 var(--space-1);
  padding-right: 40px;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-muted-dark);
  margin: 0 0 var(--space-3);
}

.modal-embed {
  border-radius: 12px;
  overflow: hidden;
  background: var(--noir);
}

.modal-embed iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 242, 242, 0.08);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--creme-bg);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--violet);
  transform: rotate(90deg);
}

/* ---------- Modale étude de cas (Canva) ---------- */
.modal-case {
  max-width: 1040px;       /* plus large qu'une modale Calendly */
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding-right: 40px;      /* laisse de la place à la croix */
  margin-bottom: var(--space-3);
}

/* Embed Canva en ratio ~16:9 (format présentation) */
.modal-embed-case {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.modal-embed-case iframe {
  width: 100%;
  height: 100%;
  min-height: 0;            /* override de la hauteur fixe Calendly */
}

/* ============================================================
   BOUTON RETOUR EN HAUT
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;                 /* sous les modales (z-index 1000) */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: var(--creme-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(140, 82, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), background 0.2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--violet-hover);
  transform: translateY(-3px);
}

.back-to-top:active { transform: translateY(-1px); }

/* ============================================================
   RESPONSIVE — Tablette (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alternatives-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .container { padding: 0 var(--space-2); }

  /* ---------- Header / navigation ---------- */
  .site-header { top: 10px; padding: 0 var(--space-2); }

  .nav-bar { padding: var(--space-1) var(--space-2); }

  .logo-text { font-size: 16px; }
  .logo-img { width: 30px; height: 30px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-card);
    padding: var(--space-2);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu li { padding: 0; }

  .nav-menu a {
    display: block;
    padding: 14px var(--space-2);
    font-size: 16px;
  }

  .nav-cta {
    margin-top: var(--space-1);
    text-align: center;
    padding: 14px 20px;
  }

  /* Hamburger animé */
  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---------- Typographie titres ---------- */
  .section-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: var(--space-5);
  }

  /* ---------- Hero ---------- */
  .hero { padding: var(--space-6) 0 var(--space-5); }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    min-height: 0;            /* libère la hauteur réservée sur mobile */
  }

  /* Rotateur de texte : hauteur adaptée sur mobile */
  .text-rotator { height: 1.7em; }

  /* Bandeau défilant plus compact */
  .marquee { padding: 14px 0; }
  .marquee-track span { font-size: 13.5px; padding-right: 22px; }

  /* ---------- Sections : espacement vertical ---------- */
  .agitation,
  .alternatives,
  .works,
  .compare,
  .approche,
  .faq {
    padding: var(--space-6) 0;
  }

  .about { padding: var(--space-7) 0; }
  .contact { padding: var(--space-7) 0; }

  /* ---------- Cartes : une colonne, espacées ---------- */
  .works-grid,
  .compare-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .case-card { padding: var(--space-3); }

  .metric-value {
    font-size: 40px;
    line-height: 1.05;
  }

  .case-context { font-size: 14.5px; }

  /* ---------- Tableau comparatif ---------- */
  .compare-list { padding: var(--space-2) var(--space-3); }

  .compare-list li {
    font-size: 14.5px;
    padding: 12px 0;
  }

  /* ---------- Approche : étapes empilées ---------- */
  .step-card { padding: var(--space-3); }

  .step-number { font-size: 36px; }

  .step-card h3 { font-size: 17px; }

  .step-list li { font-size: 14px; }

  /* ---------- Alternatives : cartes empilées ---------- */
  .alternatives-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .alt-card { padding: var(--space-3); }

  .alt-number { font-size: 36px; }

  .alt-card h3 { font-size: 17px; }

  .alt-list li { font-size: 14px; }

  .alternatives-bridge {
    padding: var(--space-3);
    font-size: 15px;
  }

  /* ---------- Qui suis-je ---------- */
  .about-content h2 { font-size: 26px; }

  .about-lead { font-size: 17px; }

  .about-content p { font-size: 15px; }

  .about-benefits li { font-size: 14.5px; padding: 11px 0 11px 30px; }

  .about-stats {
    flex-direction: column;
    gap: var(--space-2);
  }

  .stat { width: 100%; padding: var(--space-2) var(--space-3); }

  .stat-value { font-size: 20px; }

  .stat-label { font-size: 12.5px; }

  /* ---------- FAQ ---------- */
  .accordion-trigger { font-size: 15.5px; padding: var(--space-3) 0; }

  .accordion-panel p { font-size: 14.5px; padding-bottom: var(--space-2); }

  .accordion-icon { width: 26px; height: 26px; font-size: 16px; }

  /* ---------- Contact ---------- */
  .contact .section-title { font-size: 26px; }

  .contact-badges { gap: var(--space-1); }

  .badge { font-size: 13px; padding: 7px 14px; }

  /* ---------- Boutons : pleine largeur confort tactile ---------- */
  .btn {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 16px;
  }

  /* ---------- Footer ---------- */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .footer-links { gap: var(--space-2); }

  .footer-copy { font-size: 12px; }

  /* ---------- Bouton retour en haut ---------- */
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  /* ---------- Modale plein écran sur mobile ---------- */
  .modal-overlay { padding: var(--space-1); }

  .modal {
    max-width: 100%;
    max-height: 94vh;
    padding: var(--space-3) var(--space-2) var(--space-2);
  }

  .modal-title { font-size: 18px; padding-right: 36px; }

  .modal-subtitle { font-size: 14px; }

  .modal-embed iframe { min-height: 480px; }

  /* La modale Canva reste en 16:9 mais garde une hauteur min lisible */
  .modal-embed-case { min-height: 220px; }
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal {
  padding: var(--space-7) 0 var(--space-8);
}

.legal-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-2);
}

.legal-updated {
  text-align: center;
  color: var(--text-muted-dark);
  font-size: 14px;
  margin-bottom: var(--space-6);
}

.legal-section {
  margin-bottom: var(--space-5);
}

.legal-section h2 {
  font-family: var(--font-title);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--creme-bg);
}

.legal-section p {
  color: var(--text-muted-dark);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.legal-section a:hover,
.legal-section a:focus-visible { color: var(--violet-hover); }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-list li {
  color: var(--text-muted-dark);
  line-height: 1.75;
  padding: var(--space-1) 0;
  border-bottom: 1px solid rgba(242, 242, 242, 0.06);
}

.legal-list li:last-child { border-bottom: none; }

.legal-key {
  color: var(--creme-bg);
  font-weight: 600;
}

.legal-intro {
  color: var(--text-muted-dark);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

/* ============================================================
   ACCESSIBILITÉ — Mouvement réduit
   On neutralise les animations décoratives, mais on garde le
   bandeau défilant (sauf demande "no-preference" absente), en
   version ralentie pour ne pas bloquer l'information.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Le bandeau reste animé mais plus lentement (géré par JS) */
}
