/* ═══════════════════════════════════════════════════════════
   DANC·R — Site teaser v3
   Design system & styles
   ═══════════════════════════════════════════════════════════ */

/* ────────── 1. DESIGN TOKENS ────────── */
:root {
  /* Audience accents */
  --orange: #E69138;
  --violet: #B164EE;
  --blue:   #5EC5FF;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #FAFAFA;
  --grey-50:      #F4F4F5;
  --grey-200:     #E4E4E7;
  --grey-400:     #A1A1AA;
  --grey-500:     #6B6B6B;
  --grey-700:     #3F3F46;
  --anthracite:   #1A1A1A;
  --black:        #0A0A0A;

  /* Typography */
  --font-display: 'Gantari', system-ui, -apple-system, sans-serif;
  --font-body:    'Gantari', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.5rem;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Header flottant */
  --header-bg: rgba(255, 255, 255, 0.7);
  --header-bg-scrolled: rgba(255, 255, 255, 0.85);
  --header-blur: 40px;
  --header-offset: 104px;

  /* Séquence d'intro (hero + header) */
  --intro-stagger: 0.5s;
  --intro-drift: -22px;
  --intro-enter-duration: 0.55s;
}

/* ────────── 2. RESET & BASE ────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, video { display: block; max-width: 100%; }

::selection { background: var(--anthracite); color: var(--white); }

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

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: var(--space-2xl) 0; }
}

/* ────────── 4. TYPOGRAPHY ────────── */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--anthracite);
  margin-bottom: var(--space-lg);
}

.section-title.small {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.section-title .text-muted {
  color: var(--grey-400);
}

.section-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--grey-700);
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}

/* Accent inline emphasis (kept upright, not italic) */
em.accent-orange,
em.accent-violet,
em.accent-blue {
  font-style: normal;
  font-weight: 900;
  position: relative;
  display: inline-block;
}
em.accent-orange { color: var(--orange); }
em.accent-violet { color: var(--violet); }
em.accent-blue   { color: var(--blue); }

/* ────────── 5. BUTTONS & FORMS ────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, opacity 0.25s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--anthracite);
  color: var(--white);
}
.btn-primary:hover { background: var(--black); }

.btn-ghost {
  background: transparent;
  color: var(--anthracite);
  border: 1px solid var(--grey-200);
}
.btn-ghost:hover { border-color: var(--anthracite); }

.btn-link {
  background: transparent;
  color: var(--anthracite);
  padding: 0.7rem 0;
  font-weight: 500;
}
.btn-link:hover { transform: translateX(3px); }

.btn-large {
  padding: 1rem 1.8rem;
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--grey-200);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  color: var(--anthracite);
}

/* ────────── 6. HEADER (barre flottante) ────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--container-pad) 0;
  display: flex;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.header-cluster {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: min(1120px, calc(100vw - 2 * var(--container-pad)));
}

.site-header.scrolled .header-bar,
.site-header.is-mega-open .header-bar {
  background: var(--header-bg-scrolled);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

.site-header.is-mega-open .nav-mega {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, var(--space-lg));
  width: 100%;
  padding: 0.85rem 1.35rem 0.85rem 1.4rem;
  background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 1.45rem;
  width: auto;
}
@media (max-width: 600px) {
  .logo-img { height: 1.3rem; }
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a {
  color: var(--grey-700);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--anthracite); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Pour qui — menu méga ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grey-700);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.nav-dropdown__trigger:hover,
.site-header.is-mega-open .nav-dropdown__trigger {
  color: var(--anthracite);
}

.nav-dropdown__trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-dropdown__trigger:hover::after,
.site-header.is-mega-open .nav-dropdown__trigger::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-mega {
  margin-top: 0.45rem;
  padding: 1.25rem 1.5rem 1.35rem;
  background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  animation: nav-mega-in 0.28s var(--ease-out) both;
}

@keyframes nav-mega-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  min-width: min(420px, calc(100vw - 3rem));
}

.nav-mega__head {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--grey-200);
}

.nav-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-mega__link {
  display: block;
  padding: 0.45rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--anthracite);
  transition: color 0.2s, transform 0.2s var(--ease-out);
}

.nav-mega__link:hover {
  color: var(--blue);
  transform: translateX(3px);
}

.nav-mega__link[aria-current='page'] {
  color: var(--blue);
}

.nav-mega__link[data-actor='profs']:hover { color: var(--violet); }
.nav-mega__link[data-actor='amateurs']:hover { color: var(--orange); }
.nav-mega__link[data-actor='ecoles']:hover,
.nav-mega__link[data-actor='ecoles'][aria-current='page'] { color: #3eb5f0; }

.nav-mega__link[data-actor='evenementiel']:hover,
.nav-mega__link[data-actor='evenementiel'][aria-current='page'] { color: #c9a227; }

.nav-mega__link--disabled,
span.nav-mega__link--disabled {
  color: var(--grey-400);
  cursor: default;
  pointer-events: none;
}

.nav-mega__link--disabled:hover,
span.nav-mega__link--disabled:hover {
  color: var(--grey-400);
  transform: none;
}

.header-actions { display: flex; gap: 0.6rem; align-items: center; }

/* Bouton thème retiré — site en mode sombre uniquement */
.theme-toggle {
  display: none !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--anthracite);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .theme-toggle { display: none; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.is-menu-open .header-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-header.is-menu-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    order: 4;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--grey-200);
    margin-top: 0.25rem;
  }

  .site-header.is-menu-open .nav-mega {
    order: 5;
    width: 100%;
    margin-top: 0;
  }

  .site-header.is-menu-open .nav-mega__grid {
    min-width: 0;
    width: 100%;
    gap: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  .header-actions .btn-primary { padding: 0.6rem 1rem; font-size: 0.88rem; }
}

html.phone-mask-active .header-bar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.94);
}

/* ────────── 7. HERO ────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--header-offset) 0 6rem;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}


.hero-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 20;
}

.hero-eyebrow {
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.35rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--anthracite);
  margin-bottom: var(--space-lg);
}

.reveal-line {
  display: block;
}
.reveal-line span {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 36rem;
  color: var(--grey-700);
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Masque smartphone : arrivée (scroll verrouillé) puis page scrollable */
html.phone-scroll-locked,
html.phone-scroll-locked body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

.phone-scroll-mask {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  contain: strict;
}

.phone-mask-side {
  position: fixed;
  top: 0;
  height: 0;
  background: var(--white);
  pointer-events: none;
  will-change: width;
}

.phone-mask-side--left { left: 0; }
.phone-mask-side--right { right: 0; }

.phone-mask-frame {
  position: fixed;
  box-sizing: border-box;
  border: 20px solid var(--white);
  border-radius: clamp(28px, 4vw, 40px);
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.phone-mask-frame.is-visible {
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--grey-500), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50%      { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 600px) {
  .scroll-indicator { display: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Intro chargement : vidéo visible, puis éléments en cascade (transparence + drift depuis le haut) */
html.intro-pending:not(.intro-done) .site-header {
  pointer-events: none;
}

html.intro-pending:not(.intro-done) .header-bar,
html.intro-pending:not(.intro-done) .hero-inner > .hero-eyebrow,
html.intro-pending:not(.intro-done) .hero-inner > .hero-title,
html.intro-pending:not(.intro-done) .hero-inner > .hero-subtitle,
html.intro-pending:not(.intro-done) .hero-inner > .hero-cta,
html.intro-pending:not(.intro-done) .hero .scroll-indicator {
  opacity: 0;
  transform: translateY(var(--intro-drift));
  transition: none;
  pointer-events: none;
}

html.intro-pending:not(.intro-done) .scroll-indicator {
  transform: translateX(-50%) translateY(var(--intro-drift));
}

html.intro-done.intro-pending .header-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity var(--intro-enter-duration) var(--ease-out),
    transform calc(var(--intro-enter-duration) + 0.1s) var(--ease-out);
  transition-delay: var(--intro-stagger);
}

html.intro-done.intro-pending .hero-inner > .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--intro-enter-duration) var(--ease-out),
    transform calc(var(--intro-enter-duration) + 0.1s) var(--ease-out);
  transition-delay: calc(var(--intro-stagger) * 2);
}

html.intro-done.intro-pending .hero-inner > .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--intro-enter-duration) var(--ease-out),
    transform calc(var(--intro-enter-duration) + 0.1s) var(--ease-out);
  transition-delay: calc(var(--intro-stagger) * 3);
}

html.intro-done.intro-pending .hero-inner > .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--intro-enter-duration) var(--ease-out),
    transform calc(var(--intro-enter-duration) + 0.1s) var(--ease-out);
  transition-delay: calc(var(--intro-stagger) * 4);
}

html.intro-done.intro-pending .hero-inner > .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--intro-enter-duration) var(--ease-out),
    transform calc(var(--intro-enter-duration) + 0.1s) var(--ease-out);
  transition-delay: calc(var(--intro-stagger) * 5);
}

html.intro-done.intro-pending .hero .scroll-indicator {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity var(--intro-enter-duration) var(--ease-out),
    transform calc(var(--intro-enter-duration) + 0.1s) var(--ease-out);
  transition-delay: calc(var(--intro-stagger) * 6);
}

/* ────────── 8. PROBLEM SECTION ────────── */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (max-width: 900px) {
  .problem-cards { grid-template-columns: 1fr; }
}

.problem-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.1);
}

.card-marker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grey-200);
}
.problem-card[data-audience="ecole"]  { border-color: var(--blue); }
.problem-card[data-audience="ecole"]  .card-marker { background: var(--blue); }
.problem-card[data-audience="prof"]   { border-color: var(--violet); }
.problem-card[data-audience="prof"]   .card-marker { background: var(--violet); }
.problem-card[data-audience="eleve"]  { border-color: var(--orange); }
.problem-card[data-audience="eleve"]  .card-marker { background: var(--orange); }

.card-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: var(--space-md);
}

.problem-card[data-audience="ecole"]  .card-label { color: var(--blue); }
.problem-card[data-audience="prof"]   .card-label { color: var(--violet); }
.problem-card[data-audience="eleve"]  .card-label { color: var(--orange); }

.problem-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
  color: var(--anthracite);
}

.problem-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--grey-700);
}

/* ────────── 9. PUNCHLINE ────────── */
.punchline {
  padding: var(--space-2xl) 0;
  background: var(--anthracite);
  color: var(--white);
  text-align: center;
}

.punchline-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto;
}

.punchline-emphasis {
  background: linear-gradient(135deg, var(--orange), var(--violet) 50%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* ────────── 10. TIMELINE / SOLUTION ────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-2xl);
  position: relative;
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
}

.timeline-step {
  padding: var(--space-xl) var(--space-lg);
  border-left: 1px solid var(--grey-200);
  position: relative;
}
.timeline-step:first-child { border-left: none; padding-left: 0; }

@media (max-width: 900px) {
  .timeline-step {
    border-left: none;
    border-top: 1px solid var(--grey-200);
    padding: var(--space-lg) 0;
  }
  .timeline-step:first-child { border-top: none; padding-top: 0; }
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: var(--space-xl);
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--anthracite);
  border-radius: 50%;
}
.timeline-step:first-child::before { left: 0; }

@media (max-width: 900px) {
  .timeline-step::before { display: none; }
}

.step-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--grey-200);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.step-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: var(--space-md);
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
  color: var(--anthracite);
}

.timeline-step p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--grey-700);
}

/* ────────── 11. PILLARS ────────── */
.pillars {
  background: var(--off-white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--anthracite);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  color: var(--anthracite);
}
.pillar-icon svg { width: 100%; height: 100%; }

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
  color: var(--anthracite);
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--grey-700);
}

/* ────────── 12. V3 FEATURES ────────── */
.v3-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

.v3-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
}

.v3-feature.reversed {
  direction: rtl;
}
.v3-feature.reversed > * { direction: ltr; }

@media (max-width: 900px) {
  .v3-feature, .v3-feature.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-lg);
  }
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.feature-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--anthracite);
  padding: 0.3rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--anthracite);
  border-radius: var(--radius-pill);
}

.feature-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--grey-400);
  letter-spacing: -0.02em;
}

.v3-feature h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-md);
  color: var(--anthracite);
}

.v3-feature p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--grey-700);
  max-width: 480px;
}

.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--grey-50), var(--off-white));
  border: 1px solid var(--grey-200);
}

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-400);
  letter-spacing: 0.05em;
}
.screenshot-placeholder::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px dashed var(--grey-200);
  border-radius: calc(var(--radius-lg) - 8px);
}

/* ────────── 13. TRUST / CRÉDIBILITÉ ────────── */
.logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-3xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.partner-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--grey-500);
  letter-spacing: -0.01em;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.partner-logo:hover { opacity: 1; color: var(--anthracite); }

@media (max-width: 700px) {
  .logos-row { justify-content: center; gap: var(--space-md); }
  .partner-logo { font-size: 0.9rem; }
}

.trust-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .trust-signals { grid-template-columns: 1fr; }
}

.trust-signal {
  padding-top: var(--space-md);
  border-top: 2px solid var(--anthracite);
}

.trust-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--anthracite);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.trust-signal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
  color: var(--anthracite);
}

.trust-signal p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--grey-700);
}

/* ────────── 14. WAITLIST ────────── */
.waitlist {
  background: var(--anthracite);
  color: var(--white);
  text-align: center;
}

.waitlist .section-eyebrow { color: var(--grey-400); }
.waitlist .section-title { color: var(--white); }
.waitlist .section-lead {
  color: rgba(255,255,255,0.7);
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 0.4rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.form-row:focus-within {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

#emailInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}
#emailInput::placeholder { color: rgba(255,255,255,0.4); }

.waitlist .btn-primary {
  background: var(--white);
  color: var(--anthracite);
}
.waitlist .btn-primary:hover { background: var(--off-white); }

.form-helper {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-md);
  line-height: 1.5;
}

.form-success {
  font-size: 1rem;
  color: var(--orange);
  margin-top: var(--space-md);
  font-weight: 500;
}

@media (max-width: 500px) {
  .form-row { flex-direction: column; padding: 0.6rem; gap: 0.6rem; border-radius: var(--radius-md); }
  .waitlist .btn-primary { width: 100%; border-radius: var(--radius-pill); }
}

/* ────────── 15. FOOTER ────────── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: var(--space-sm);
}
.logo-img--footer {
  height: 2.25rem;
  width: auto;
}
@media (max-width: 600px) {
  .logo-img--footer { height: 1.875rem; }
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.5);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.socials a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.socials a:hover { color: var(--white); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 500px) {
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}

/* ────────── 16. SCROLL-REVEAL UTILITY ────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-on-scroll.in-view.stagger > * {
  animation: fadeUp 0.8s var(--ease-out) backwards;
}
.reveal-on-scroll.in-view.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-on-scroll.in-view.stagger > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-on-scroll.in-view.stagger > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-on-scroll.in-view.stagger > *:nth-child(4) { animation-delay: 0.35s; }

/* ────────── 17. ACCESSIBILITY ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { display: none; }
  html.phone-scroll-locked,
  html.phone-scroll-locked body { overflow: auto; height: auto; }
  .phone-scroll-mask { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ────────── 18. HERO HUB (.hh) ────────── */
.hh {
  --hh-bg:#ffffff;
  --hh-ink:#0a0a0a;
  --hh-muted:#6b6b6b;
  font-family:'Gantari',system-ui,-apple-system,sans-serif;
  background:var(--hh-bg);
  color:var(--hh-ink);
  padding:64px 24px 96px;
  overflow:visible;
}
.hh__head{ text-align:center; max-width:720px; margin:0 auto 16px; }
.hh__title{
  font-family:'Monument Extended','Gantari',sans-serif;
  font-size:clamp(1.5rem,3.4vw,2.6rem);
  line-height:1.14; font-weight:800; margin:0 0 14px;
}
.hh__sub{ color:var(--hh-muted); font-size:1.05rem; margin:0; }

/* Scène : ratio fixe = ancre les coordonnées SVG */
.hh__stage{
  position:relative;
  max-width:1200px;
  margin:32px auto 0;
  aspect-ratio:1000/700;
}

/* Couche 0 — socle */
.hh__plinth{
  position:absolute; left:50%; bottom:4%;
  width:78%; transform:translateX(-50%); z-index:0;
}
/* Couche 1 — courbes */
.hh__curves{ position:absolute; inset:0; width:100%; height:100%; z-index:1; }
.hh__curve{ animation:hhFlow 2.4s linear infinite; }
@keyframes hhFlow{ to{ stroke-dashoffset:-26; } }

/* Couche 2 — vidéo de fin de cours (centre = insertion des courbes, viewBox y≈327/700) */
.hh__center-anchor{
  position:absolute;
  left:50%;
  top:46.7%;
  bottom:auto;
  transform:translate(-50%, -50%);
  width:21%;
  z-index:3;
}
.hh__center{
  position:relative;
  width:100%;
}
.hh__center img{
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 30px 50px rgba(224,102,46,.28));
}
.hh__center-label{
  position:absolute;
  left:50%;
  bottom:calc(100% + 14px);
  transform:translateX(-50%);
  margin:0;
  background:#0a0a0a; color:#fff;
  font-size:.82rem; font-weight:600;
  padding:8px 18px; border-radius:999px;
  white-space:nowrap;
}

/* Couche 3 — pôles */
.hh__pole{
  position:absolute; width:24%; z-index:2;
  overflow:visible;
  transition:transform .3s ease;
}
.hh__pole:hover{ transform:translateY(-6px); }
.hh__pole::before{
  content:""; display:block;
  width:34px; height:4px; border-radius:4px;
  background:var(--accent); margin-bottom:10px;
}
.hh__pole-title{
  font-family:'Monument Extended','Gantari',sans-serif;
  font-size:1.25rem; margin:0 0 4px;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.hh__pole-sub{ color:var(--hh-muted); font-size:.9rem; margin:0 0 12px; }
.hh__shots{
  display:flex;
  gap:6px;
  overflow:visible;
  align-items:flex-start;
}
.hh__shots img{
  flex:1 1 33%;
  width:33%;
  height:auto;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
  border:1px solid rgba(0,0,0,.05);
  cursor:pointer;
  position:relative;
  z-index:1;
  transition:transform .28s cubic-bezier(.2,.9,.2,1), z-index 0s;
}
.hh__shots img:nth-child(1){ transform-origin:top left; }
.hh__shots img:nth-child(2){ transform-origin:top center; }
.hh__shots img:nth-child(3){ transform-origin:top right; }
.hh__shots img:hover:not(.is-expanded),
.hh__shots img:focus-visible:not(.is-expanded){
  transform:scale(1.2);
  z-index:2;
}
.hh__shots img.is-expanded{
  transform:scale(2);
  z-index:3;
}

.hh__pole--left        { left:0;  top:22%; }
.hh__pole--right-top   { right:0; top:14%; text-align:right; }
.hh__pole--right-bottom{ right:0; bottom:4%; text-align:right; }
.hh__pole--right-top   .hh__shots,
.hh__pole--right-bottom .hh__shots{ justify-content:flex-end; }
.hh__pole--right-top::before,
.hh__pole--right-bottom::before{ margin-left:auto; }

/* ═══ RESPONSIVE ═══ */

/* Tablette : on resserre */
@media (max-width:1100px){
  .hh__pole{ width:26%; }
  .hh__center-anchor{ width:22.4%; }
  .hh__pole-sub{ font-size:.82rem; }
}

/* Mobile : empilement vertical, on masque courbes + socle */
@media (max-width:780px){
  .hh{ padding:48px 18px 64px; }
  .hh__stage{ aspect-ratio:auto; margin-top:24px; }
  .hh__plinth, .hh__curves{ display:none; }

  .hh__center-anchor{
    position:relative; left:auto; bottom:auto;
    transform:none;
    width:43.4%; max-width:196px; margin:0 auto 40px;
  }
  .hh__center-label{
    position:relative; left:auto; bottom:auto;
    transform:none; margin-bottom:14px;
  }
  .hh__pole{
    position:relative; inset:auto;
    width:100%; text-align:left !important;
    margin-bottom:36px;
  }
  .hh__pole:last-child{ margin-bottom:0; }
  .hh__pole--right-top  .hh__shots,
  .hh__pole--right-bottom .hh__shots{ justify-content:flex-start; }
  .hh__pole--right-top::before,
  .hh__pole--right-bottom::before{ margin-left:0; }
  /* halo orange léger conservé sous le téléphone central en mobile */
  .hh__center::after{
    content:""; position:absolute; left:50%; bottom:-12px;
    width:120%; height:60px; transform:translateX(-50%);
    background:radial-gradient(ellipse,
      rgba(240,138,60,.35), rgba(240,138,60,0) 70%);
    z-index:-1;
  }
}

/* Accessibilité : coupe l'animation si l'utilisateur le demande */
@media (prefers-reduced-motion:reduce){
  .hh__curve{ animation:none; }
}

/* ────────── 19. PAGES LÉGALES ────────── */
.legal-page {
  padding: calc(var(--header-offset) + var(--space-xl)) 0 var(--space-3xl);
  min-height: 60vh;
}

.legal-page__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-xl);
}

.legal-page__section {
  margin-bottom: var(--space-xl);
  max-width: 800px;
}

.legal-page__section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.legal-page__section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
}

.legal-page__section p {
  margin-bottom: var(--space-sm);
  color: var(--grey-500);
}

.legal-page__section ul,
.legal-page__section ol {
  margin: 0 0 var(--space-sm) 1.25rem;
  color: var(--grey-500);
}

.legal-page__section li {
  margin-bottom: 0.4rem;
}

.legal-page__section li > ul,
.legal-page__section li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.legal-page__section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-page__section a:hover {
  color: var(--orange);
}

.legal-page__updated {
  margin: calc(var(--space-sm) * -1) 0 var(--space-xl);
  font-size: 0.95rem;
  color: var(--grey-500);
}

.legal-page__section code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--grey-50);
}

/* ────────── 20. BANDEAU COOKIES ────────── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: var(--space-md) var(--container-pad);
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-banner__text a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__text a:hover {
  color: var(--white);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}
