/* ═══════════════════════════════════════════════════════════════
   PROJECT-WEB.CSS — MOBILE FIRST
   Base = Mobile (≤640px)
   Breakpoints : 641px (tablet) → 1025px (desktop) → 1441px (large)
   ═══════════════════════════════════════════════════════════════ */

/* ============================================
   1. VARIABLES & BASE
   ============================================ */

@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --web-bg: #0a0a0f;
  --web-text: #f6f6f6;
  --accent-1: rgb(168, 85, 247);
  --accent-2: rgb(192, 132, 252);
  --accent-3: rgb(240, 171, 252);
  --gradient-text: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 49%, var(--accent-3) 100%);
  --glow-1: rgba(168, 85, 247, 0.15);
  --glow-2: rgba(124, 58, 237, 0.12);
  --glow-3: rgba(88, 28, 135, 0.08);
  --timeline-gutter: 95px;
  --timeline-icon-size: 52px;
}

html,
body {
  overscroll-behavior-y: none;
}

body {
  background-color: var(--web-bg);
  background-image:
    radial-gradient(circle at 20% 30%, var(--glow-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--glow-2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--glow-3) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--web-text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.site-header {
  position: fixed !important;
  width: 100%;
}

/* ============================================
   2. HERO-WEB — Mobile base
   ============================================ */

.hero-web {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-web .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(4px);
  z-index: -2;
  transform: scale(1.1);
}

.hero-web .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(10, 10, 15, 1));
  z-index: -1;
}

.hero-web .hero-content {
  z-index: 2;
  padding: 1.5rem;
}

.hero-web .tag-web {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 100px;
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: "Clash Display", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-web h1 {
  font-family: "Clash Display", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 90vw;
  margin: 0 0 1rem 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-web p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem 0;
}

.hero-web .scroll-instruction {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}

.hero-web .scroll-instruction span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-web .scroll-instruction .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

/* ============================================
   3. INTRO — Mobile base
   ============================================ */

.intro-web {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.intro-web .lead-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 900px;
  margin: 0 auto;
}

.intro-web strong {
  color: var(--accent-2);
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   4. COMPARAISON — Mobile base (images empilées)
   ============================================ */

.comparaisonSection {
  position: relative;
  width: 100%;
  height: auto;
  padding: 3rem 1.5rem;
  display: block;
  overflow: hidden;
}

.comparaisonSection h2 {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Clash Display", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0 0 2rem 0;
}

.containerImage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 2rem 0;
  will-change: transform, clip-path;
}

.containerImage img {
  width: 100%;
  height: auto;
  display: block;
}

.imageNew {
  z-index: 2;
}

.imageOld {
  z-index: 1;
  margin-bottom: 2rem;
}

/* Labels Avant/Après — mobile */
.imageOld::before {
  content: 'AVANT';
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 10;
}

.imageNew::before {
  content: 'APRÈS';
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(90deg, #a855f7, #f0abfc);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 10;
}

/* Masquer la ligne de séparation et le toggle sur mobile */
.separator-line {
  display: none;
}

.comparison-toggle {
  display: none;
}

/* ============================================
   5. KPI — Mobile base
   ============================================ */

.kpi-section-web {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.kpi-section-web .kpi-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.kpi-section-web .kpi-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.kpi-section-web .number {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.kpi-section-web .suffix {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.kpi-section-web .kpi-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.kpi-section-web .kpi-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.kpi-section-web .kpi-text h2 {
  font-family: "Clash Display", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-section-web .kpi-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   6. CONTEXTE — Mobile base
   ============================================ */

.Contexte {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 4rem 1.5rem;
  position: relative;
}

.Contexte p {
  max-width: 75ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #888;
}

/* ============================================
   7. PROBLÉMATIQUE — Mobile base (stack vertical)
   ============================================ */

.problematique {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: auto;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  gap: 1.5rem;
}

.problematique .card-problematique {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem;
  border-radius: 24px;
  height: auto;
  min-height: 250px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: border 0.3s ease;
  display: flex;
  flex-direction: column;
}

.problematique .card-problematique::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(168, 85, 247, 0.6), rgba(240, 171, 252, 0.6));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.card-problematique svg,
.card-problematique i {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-block;
  margin: 1rem 0.5rem 0 0.5rem;
  stroke: #ccc;
}

.card-problematique h3 {
  font-family: "Clash Display", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0.5rem 0.5rem 0.5rem;
  background: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 49%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-problematique p {
  font-size: 0.75rem;
  color: #ccc;
  margin: 0.5rem 0.5rem 1rem 0.5rem;
}

/* ============================================
   8. SECTION TITLE — Mobile base
   ============================================ */

.section-title {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Clash Display", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 20;
  margin: 0;
  width: max-content;
}

.section-title-stack {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Clash Display", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 20;
  margin: 0;
  width: max-content;
}

/* Caché jusqu'à ce que GSAP soit prêt */
.scroll-wrapper .section-title {
  top: 30px;
  opacity: 0;
  visibility: hidden;
}

.gsap-ready .scroll-wrapper .section-title {
  visibility: visible;
}

/* ============================================
   9. MÉTHODOLOGIE / TIMELINE — Mobile base (vertical)
   ============================================ */

.scroll-wrapper {
  height: auto;
  position: relative;
  padding-top: 4.5rem;
}

.horizontal-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  position: relative;
  padding-left: var(--timeline-gutter);
}

.panel {
  background: transparent;
  width: 100%;
  height: auto;
  min-height: 36vh;
  min-height: 36svh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
  padding: 1.75rem 1.5rem 1.75rem 0;
  position: relative;
}

/* Glow radial derrière le panel actif */
.panel.is-active::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.content {
  text-align: left;
  max-width: 100%;
  width: 100%;
  padding-left: 30px;
  /* État initial — GSAP prend le contrôle */
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(6px);
}

.content h3 {
  font-family: "Clash Display", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f6f6f6;
  margin: 0;
  line-height: 1.2;
}

.content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  line-height: 1.6;
}

/* Step number — gradient premium */
span.step-num {
  font-family: "Clash Display", sans-serif;
  display: block;
  font-size: 0.85rem;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Timeline SVG — masqué sur mobile (remplacé par lignes CSS) */
#timeline-svg {
  display: none;
  overflow: visible !important;
  pointer-events: none;
  z-index: 5;
}

#bg-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2px;
}

#progress-line {
  stroke: #d5aeff;
  stroke-width: 2px;
  stroke-linecap: round;
}

/* ============================================
   10. TIMELINE MOBILE — Lignes + Icônes PREMIUM
/* ============================================
   10. TIMELINE MOBILE — Track unique + Icônes PREMIUM
   ============================================ */

/* Track unique — UNE seule ligne continue pour tout le conteneur */
.mobile-timeline-track {
  position: absolute;
  left: calc(var(--timeline-gutter) - (var(--timeline-icon-size) / 2));
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  /* Zone de rendu centrale */
  z-index: 1;
  pointer-events: none;
}

/* Ligne de fond — rail subtil */
.m-track-bg {
  position: absolute;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* Ligne de progression — gradient + glow */
.m-track-fill {
  position: absolute;
  width: 3px;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
  border-radius: 2px;
  box-shadow:
    0 0 8px rgba(168, 85, 247, 0.6),
    0 0 20px rgba(192, 132, 252, 0.4),
    0 0 40px rgba(240, 171, 252, 0.2);
}

/* Ancre pour la pastille — centrée sur le track */
.m-icon-anchor {
  position: absolute;
  left: calc(-1 * var(--timeline-icon-size));
  top: 50%;
  transform: translateY(-50%);
  width: var(--timeline-icon-size);
  height: var(--timeline-icon-size);
  z-index: 5;
}

/* Pastille icône — PREMIUM */
.m-icon-wrapper {
  width: var(--timeline-icon-size);
  height: var(--timeline-icon-size);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(13, 13, 13, 0.95);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* GSAP gère la transition */
}

/* Anneau glow quand actif */
.m-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-3), var(--accent-1));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.m-icon-wrapper.active::after {
  opacity: 1;
  animation: iconRingPulse 2s ease-in-out infinite;
}

@keyframes iconRingPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.m-icon-wrapper.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  border-color: transparent;
  box-shadow:
    0 0 15px rgba(168, 85, 247, 0.5),
    0 0 30px rgba(192, 132, 252, 0.3);
}

.m-icon-wrapper i {
  color: rgba(255, 255, 255, 0.35);
  width: 22px;
  height: 22px;
}

.m-icon-wrapper.active i {
  color: #fff;
}

/* ============================================
   11. STACK TECHNIQUE — Mobile base
   ============================================ */

.stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  gap: 1.5rem;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stack-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stack-tag:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.stack-tag i,
.stack-tag svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-2);
  color: var(--accent-2);
  flex-shrink: 0;
}

/* ============================================
   12. CTA FINAL — Mobile base
   ============================================ */

.ref-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 1.25rem;
}

.ref-cta h2 {
  font-family: "Clash Display", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ref-cta p {
  font-size: 0.95rem;
  color: #888;
  max-width: 100%;
}

.ref-cta a.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: #fff;
  color: #080810;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  /* Désactivé pour laisser GSAP gérer les animations d'entrée sans conflit */
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-cta a.btn:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-2);
}

/* ============================================
   13. ICON WRAPPER (desktop timeline pastilles)
   ============================================ */

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.icon-wrapper.active {
  background: #f0abfc;
  color: #000;
  border-color: #f0abfc;
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.5);
}

.icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

/* ════════════════════════════════════════════════════════════════
   TABLETTE (≥ 641px)
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 641px) {

  /* --- Hero --- */
  .hero-web .hero-content {
    padding: 2rem;
  }

  .hero-web .tag-web {
    font-size: 0.8rem;
    padding: 0.6rem 1.4rem;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
  }

  .hero-web h1 {
    font-size: 3.2rem;
    max-width: 80vw;
  }

  .hero-web .scroll-instruction .line {
    height: 50px;
  }

  /* --- Intro --- */
  .intro-web {
    padding: 5rem 2rem 4rem;
  }

  .intro-web .lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  /* --- Comparaison : toggle avec bouton --- */
  .comparaisonSection {
    height: 40vh;
    min-height: 550px;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .comparaisonSection h2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    letter-spacing: 6px;
  }

  .containerImage {
    position: absolute;
    width: 85vw;
    max-width: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .imageOld,
  .imageNew {
    width: 100%;
    height: auto;
    clip-path: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .imageOld {
    margin-bottom: 0;
  }

  .imageNew {
    opacity: 0;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.95);
  }

  .imageNew.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .imageOld {
    opacity: 1;
    z-index: 2;
    transform: translate(-50%, -50%) scale(1);
  }

  .imageOld.hidden {
    opacity: 0 !important;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.95) !important;
  }

  /* Bouton Toggle tablette */
  .comparison-toggle {
    display: flex;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: linear-gradient(135deg, #a855f7, #f0abfc);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    gap: 0.75rem;
  }

  .comparison-toggle:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.6);
  }

  .comparison-toggle:active {
    transform: translateX(-50%) translateY(-1px);
  }

  .comparison-toggle::before {
    content: '⇄';
    font-size: 1.4rem;
    transition: transform 0.3s ease;
  }

  .comparison-toggle:hover::before {
    transform: rotate(180deg);
  }

  /* Labels Avant/Après — tablette */
  .imageOld::before {
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .imageNew::before {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    background: linear-gradient(135deg, #a855f7, #f0abfc);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
  }

  /* --- KPI --- */
  .kpi-section-web {
    padding: 4rem 2rem;
  }

  .kpi-section-web .kpi-container {
    gap: 3rem;
    margin-bottom: 4rem;
  }

  .kpi-section-web .kpi-item {
    min-width: 180px;
  }

  .kpi-section-web .kpi-item p {
    font-size: 0.9rem;
  }

  .kpi-section-web .kpi-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
  }

  .kpi-section-web .kpi-text p {
    font-size: 1.05rem;
  }

  /* --- Contexte --- */
  .Contexte {
    padding: 4rem 2rem;
  }

  .Contexte p {
    font-size: 1rem;
  }

  /* --- Section title --- */
  .section-title,
  .section-title-stack {
    font-size: 0.85rem;
    letter-spacing: 6px;
    top: 30px;
  }

  /* --- Problématique : 2 colonnes --- */
  .problematique {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 5rem 2rem 3rem;
    gap: 1.5rem;
  }

  .problematique .card-problematique {
    flex: 1 1 calc(50% - 1rem);
    max-width: 300px;
    min-height: 200px;
    padding: 1.5rem;
  }

  .card-problematique svg,
  .card-problematique i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 1.25rem 0.65rem 0 0.65rem;
  }

  .card-problematique h3 {
    font-size: 1.3rem;
    margin: 1.25rem 0.65rem 0.5rem 0.65rem;
  }

  .card-problematique p {
    font-size: 0.7rem;
    margin: 0 0.65rem;
  }

  /* --- Méthodologie / Timeline : vertical mais plus d'espace --- */
  .scroll-wrapper .section-title {
    top: 60px;
  }

  .horizontal-container {
    /* TABLETTE : On pousse fortement au centre */
    padding-left: 20%;
  }

  .panel {
    min-height: 50vh;
    padding: 4rem 2rem;
  }

  .content h3 {
    font-size: 3rem;
  }

  span.step-num {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 18px;
  }

  .m-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .m-icon-wrapper i {
    width: 22px;
    height: 22px;
  }

  .m-icon-anchor {
    left: -70px;
    width: 60px;
    height: 60px;
  }

  .mobile-timeline-track {
    /* TABLETTE : calc(padding (20%) + anchor.left (-70px) + half widget (30px)) */
    left: calc(20% - 40px);
    transform: translateX(-50%);
  }

  /* --- Stack technique --- */
  .stack {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 5rem 3rem 3rem;
    gap: 1.5rem;
    min-height: auto;
  }

  .stack-tag {
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .stack-tag i,
  .stack-tag svg {
    width: 20px;
    height: 20px;
  }

  /* --- CTA --- */
  .ref-cta {
    padding: 4rem 2rem;
    min-height: 30vh;
  }

  .ref-cta h2 {
    font-size: 2.75rem;
  }
}


/* ════════════════════════════════════════════════════════════════
   DESKTOP (≥ 1025px)
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {

  /* --- Hero --- */
  .hero-web .hero-content {
    padding: 2rem;
  }

  .hero-web .tag-web {
    font-size: 0.85rem;
    padding: 0.65rem 1.5rem;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
  }

  .hero-web h1 {
    font-size: 5rem;
    line-height: 1.1;
    max-width: 65vw;
    margin: 0 0 1.5rem 0;
  }

  .hero-web p {
    font-size: 1.2rem;
    margin: 0 0 3rem 0;
  }

  .hero-web .scroll-instruction {
    bottom: 3rem;
    gap: 1rem;
  }

  .hero-web .scroll-instruction span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  .hero-web .scroll-instruction .line {
    height: 60px;
  }

  /* --- Intro --- */
  .intro-web {
    padding: 6rem 2rem 4rem;
  }

  .intro-web .lead-text {
    font-size: 1.4rem;
  }

  /* --- Comparaison : clip-path reveal + pin --- */
  /* GSAP gère tout via xPercent/yPercent/clipPath — on reset les transforms tablette */
  .comparaisonSection {
    height: 100vh;
    min-height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .comparaisonSection h2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    letter-spacing: 8px;
    z-index: 20;
  }

  .containerImage {
    position: absolute;
    width: 70vw;
    max-width: 1100px;
    top: 50%;
    left: 50%;
    transform: none;
    transition: none;
    margin: 0;
    will-change: transform, clip-path;
  }

  .imageOld,
  .imageNew {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: auto;
  }

  /* Override explicite pour stopper le cascade tablette */
  .imageNew {
    opacity: 1;
    z-index: 2;
    transform: none;
  }

  .imageOld {
    opacity: 1;
    z-index: 1;
    margin-bottom: 0;
    transform: none;
  }

  .imageOld::before,
  .imageNew::before {
    display: none;
  }

  .comparison-toggle {
    display: none;
  }

  /* --- KPI --- */
  .kpi-section-web .kpi-container {
    gap: 3rem;
    margin-bottom: 5rem;
  }

  .kpi-section-web .kpi-item {
    min-width: 200px;
  }

  .kpi-section-web .kpi-item p {
    font-size: 0.95rem;
    margin-top: 1rem;
  }

  .kpi-section-web .kpi-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .kpi-section-web .kpi-text p {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  /* --- Contexte --- */
  .Contexte {
    min-height: 50vh;
  }

  .Contexte p {
    font-size: 1.1rem;
  }

  /* --- Section title --- */
  .section-title,
  .section-title-stack {
    font-size: 1rem;
    letter-spacing: 8px;
    top: 80px;
  }

  .scroll-wrapper .section-title {
    top: 135px;
  }

  /* --- Problématique : 3 colonnes horizontales --- */
  .problematique {
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    min-height: auto;
    padding: 0;
    gap: 2rem;
    perspective: 1500px;
  }

  .problematique .card-problematique {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    height: 350px;
    min-height: auto;
    padding: 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
  }

  .card-problematique svg,
  .card-problematique i {
    width: 40px;
    height: 40px;
    margin: 1.5rem 1rem 0 1rem;
  }

  .card-problematique h3 {
    font-size: 1.4rem;
    margin: 1.5rem 1rem 0.5rem 1rem;
  }

  .card-problematique p {
    font-size: 0.75rem;
    margin: 0.5rem 1rem 1rem 1rem;
  }

  /* Réactiver le gradient border sur desktop */
  .problematique .card-problematique::before {
    display: block;
  }

  /* --- Méthodologie : SCROLL HORIZONTAL --- */
  .scroll-wrapper {
    padding-top: 0;
  }

  .horizontal-container {
    flex-direction: row;
    width: calc(var(--panel-count, 4) * 100vw);
    /* JS écrase via style.width; cette valeur évite le flash */
    height: 100vh;
    padding-left: 0;
  }

  .panel {
    width: 55vw;
    height: 100vh;
    min-height: auto;
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  /* Reset mobile timeline elements */
  .mobile-timeline-track,
  .m-icon-anchor {
    display: none;
  }

  .content {
    text-align: center;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    filter: none;
    padding-left: 0;
  }

  .panel .content {
    opacity: 0;
    transform: translateY(20px);
    filter: none;
    transition: none;
  }

  .panel.is-active .content {
    transition: none;
  }

  .content h3 {
    font-size: 4rem;
    line-height: 1.1;
  }

  .content p {
    font-size: 1.1rem;
    color: #888;
    margin-top: 20px;
  }

  span.step-num {
    font-size: 1.3rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
  }

  /* Timeline Line Wrapper - dans le container horizontal, suit les panels */
  .timeline-line-wrapper {
    position: absolute;
    top: 70%;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    /* Caché par défaut, affiché par JS */
    transition: opacity 0.3s ease;
  }

  .timeline-line-wrapper.is-ready {
    opacity: 1;
  }

  /* SVG unique qui couvre tout le container */
  #timeline-svg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  /* Glow sur la ligne de progression via CSS filter (compatible Chromium, pas de url()) */
  #progress-line {
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 12px rgba(192, 132, 252, 0.5));
  }

  /* Icônes injectées directement dans #timeline-svg via foreignObject */
  #timeline-svg foreignObject {
    overflow: visible;
    z-index: 10;
  }

  /* --- Stack --- */
  .stack {
    flex-direction: row;
    min-height: 40vh;
    padding: 5rem 2rem 0rem;
    gap: 2rem;
  }

  .section-title-stack {
    top: 80px;
  }

  .stack-tag {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    gap: 0.65rem;
  }

  /* --- CTA --- */
  .ref-cta {
    height: 50vh;
    padding: 4rem 2rem;
    gap: 1.5rem;
  }

  .ref-cta h2 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .ref-cta p {
    font-size: 1.1rem;
  }

  .ref-cta a.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}


/* ════════════════════════════════════════════════════════════════
   DESKTOP (1025px – 1440px) — Ajustements intermédiaires
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) and (max-width: 1440px) {
  .content h3 {
    font-size: 3.5rem;
  }

  .ref-cta h2 {
    font-size: 3rem;
  }
}


/* ════════════════════════════════════════════════════════════════
   GRAND ÉCRAN (≥ 1441px)
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 1441px) {
  .hero-web h1 {
    font-size: 5.5rem;
  }

  .Contexte p,
  .content p {
    font-size: 1.2rem;
  }

  .problematique .card-problematique {
    max-width: 420px;
  }

  .content h3 {
    font-size: 5rem;
  }
}


/* ════════════════════════════════════════════════════════════════
   MOBILE PAYSAGE
   ════════════════════════════════════════════════════════════════ */

@media (max-height: 600px) and (orientation: landscape) {
  .hero-web {
    min-height: auto;
  }

  .hero-web h1 {
    font-size: 1.75rem;
  }

  .panel {
    min-height: 100vh;
  }
}


/* ════════════════════════════════════════════════════════════════
   13. CAPTURES DANS KPI — Mobile base
   ════════════════════════════════════════════════════════════════ */

.kpi-section-web .resultat-devices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* --- MacBook Frame --- */
.kpi-section-web .resultat-desktop {
  width: 100%;
  max-width: 100%;
}

.macbook-frame {
  background: linear-gradient(180deg, #d0d0d0 0%, #b0b0b0 100%);
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0 8px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.macbook-header {
  background: #e8e8e8;
  height: 32px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.macbook-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.macbook-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.macbook-dots span:nth-child(1) {
  background: #ff5f57;
}

.macbook-dots span:nth-child(2) {
  background: #febc2e;
}

.macbook-dots span:nth-child(3) {
  background: #28c840;
}

.macbook-url {
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  color: #666;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 4px;
}

.macbook-screen {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-top: none;
  overflow: hidden;
  height: auto;
  position: relative;
}

.macbook-base {
  height: 10px;
  background: linear-gradient(180deg, #b0b0b0 0%, #909090 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* --- iPhone Frame --- */
.kpi-section-web .resultat-mobile {
  width: 65%;
  max-width: 280px;
}

.iphone-frame {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
  border: 1px solid #3a3a3a;
  border-radius: 36px;
  padding: 5px;
  box-shadow:
    0 15px 30px -8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
}

/* Boutons latéraux iPhone */
.iphone-frame::before,
.iphone-frame::after {
  content: '';
  position: absolute;
  background: #333;
  border-radius: 1px;
}

/* Bouton power (droite) */
.iphone-frame::before {
  width: 2px;
  height: 20px;
  right: -2px;
  top: 60px;
}

/* Boutons volume (gauche) */
.iphone-frame::after {
  width: 2px;
  height: 35px;
  left: -2px;
  top: 50px;
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24%;
  height: 14px;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
  z-index: 3;
}

/* Caméra frontale dans le notch */
.iphone-notch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #1a3a5c 40%, #0a0a0a 70%);
  border-radius: 50%;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.9);
}

.iphone-screen {
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  height: auto;
  min-height: 320px;
  max-height: 380px;
  position: relative;
}

/* Home indicator */
.iphone-screen::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  z-index: 2;
}

/* Reflet écran subtil */
.iphone-screen .scroll-container {
  position: relative;
}

.iphone-screen .scroll-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* --- Scroll Container (shared) --- */
.scroll-container {
  display: flex;
  flex-direction: column;
}

.scroll-container img {
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
}

/* --- Hide MacBook on mobile --- */
@media (max-width: 767px) {
  .kpi-section-web .resultat-desktop {
    display: none;
  }

  .kpi-section-web .resultat-mobile {
    width: 55%;
    min-width: 200px;
    max-width: 260px;
  }
}

/* ════════════════════════════════════════════════════════════════
   13b. CAPTURES DANS KPI — Tablette (≥ 768px)
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .kpi-section-web .resultat-devices {
    gap: 2rem;
    margin-top: 2.5rem;
  }

  .kpi-section-web .resultat-desktop {
    width: 85%;
    max-width: 700px;
  }

  .kpi-section-web .macbook-screen {
    height: auto;
    max-height: 420px;
  }

  .kpi-section-web .resultat-mobile {
    width: 200px;
    max-width: none;
    margin-top: 2rem;
  }

  .kpi-section-web .iphone-screen {
    height: auto;
    max-height: 380px;
  }
}

/* ════════════════════════════════════════════════════════════════
   13c. CAPTURES DANS KPI — Desktop (≥ 1025px)
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
  .kpi-section-web .resultat-devices {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 2.5rem auto 0;
  }

  .kpi-section-web .resultat-desktop {
    flex: none;
    width: 58%;
    max-width: 620px;
    display: block;
  }

  .kpi-section-web .macbook-screen {
    height: auto;
    max-height: 400px;
  }

  .kpi-section-web .resultat-mobile {
    flex: none;
    width: 20%;
    max-width: 200px;
    margin-top: 0;
  }

  .kpi-section-web .iphone-screen {
    height: auto;
    max-height: 380px;
  }
}

/* ════════════════════════════════════════════════════════════════
   13d. CAPTURES DANS KPI — Reduced motion
   ════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .kpi-section-web .resultat-devices {
    flex-wrap: wrap;
  }
}

/* ════════════════════════════════════════════════════════════════
   PRÉFÉRENCES RÉDUITES D'ANIMATION
   ════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   OPTIMISATIONS MOBILE — sous 1024px
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .problematique .card-problematique {
    transform-style: flat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .icon-wrapper {
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}


/* ════════════════════════════════════════════════════════════════
   WILL-CHANGE — GPU pour éléments animés GSAP
   ════════════════════════════════════════════════════════════════ */

.horizontal-container {
  will-change: transform;
}

.Contexte h2,
.Contexte p,
.problematique h2,
.problematique .card-problematique,
.stack .section-title-stack,
.stack .stack-tag,
.ref-cta h2,
.ref-cta p,
.ref-cta .btn {
  will-change: transform, opacity;
}


/* ════════════════════════════════════════════════════════════════
   PETITS ÉCRANS — ≤ 640px : simplifications visuelles
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .card-problematique::before {
    display: none;
  }

  body::before {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   TYPOGRAPHY OVERRIDES — Bypassing global style.css clamps
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

  .kpi-section-web h2,
  .Contexte h2,
  .problematique h2,
  .scroll-wrapper h2,
  .stack h2,
  .ref-cta h2 {
    font-size: 1.2rem !important;
    top: 20px;
  }

  .kpi-text h2 {
    font-size: 2rem !important;
  }

  .comparaisonSection h2 {
    display: none;
  }
}

@media (max-width: 768px) {

  .kpi-section-web h2,
  .Contexte h2,
  .problematique h2,
  .stack h2,
  .ref-cta h2 {
    font-size: 1.1rem !important;
    top: 15px;
  }

  .kpi-text h2 {
    font-size: 2rem !important;
  }

  .comparaisonSection h2 {
    display: none;
  }
}
