/* ════════════════════════════════════════════════════════════
   FONT — Albert Sans via Google Fonts
   @import doit être la première règle du fichier CSS
════════════════════════════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;600&display=swap");

/* ════════════════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════════════════
   DESIGN TOKENS
   Vérité unique — toutes les valeurs de la spec ici.
   Ne jamais écrire de couleur ou taille hors de ces variables.
════════════════════════════════════════════════════════════ */
:root {
  /* ── Couleurs ── */
  --c-bg-start: #eef5fe; /* gradient hero haut          */
  --c-bg-end: #f3ebfa; /* gradient hero bas           */
  --c-h1-a: #e481d4; /* gradient H1 gauche (rose)   */
  --c-h1-b: #6812f3; /* gradient H1 droite (violet) */
  --c-body: #34077e; /* texte paragraphes           */
  --c-cta-1: #e481d4; /* CTA primaire background     */
  --c-cta-2: #6812f3; /* CTA secondaire + illus      */
  --c-stroke: #faf7fd; /* outline externe CTAs/illus  */
  --c-nav-bg: #6812f3; /* fond navbar                 */
  --c-nav-active: #f5faff; /* fond item nav actif         */
  --c-nav-text: #ffffff; /* texte navigation            */
  --c-nav-active-text: #34077e; /* texte item actif          */
  --c-white: #ffffff;

  /* ── Typographie ── */
  --f: "Albert Sans", sans-serif;

  /* ── Breakpoints (référence commentaire — utiliser dans @media) ──
     375px  mobile
     768px  tablette
     1024px desktop
     1280px large
     1920px xl / frame Figma de référence
  ── */
}

/* ════════════════════════════════════════════════════════════
   BASE
════════════════════════════════════════════════════════════ */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--f);
  background: linear-gradient(to bottom, var(--c-bg-start), var(--c-bg-end));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--c-body);
  overflow-x: clip;
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITÉ — texte visuellement masqué pour screen readers
════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   Pill centrée, sticky au scroll
   Background : --c-nav-bg (#C0D9F2) | radius : 16px
════════════════════════════════════════════════════════════ */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.5rem 0;
}

.navbar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  background: var(--c-nav-bg);
  border-radius: 16px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--c-nav-text);
  text-decoration: none;
  transition: background 160ms ease;
  white-space: nowrap;
}

.nav-item:hover:not(.nav-item--active) {
  background: rgba(255, 255, 255, 0.45);
}

.nav-item:focus-visible {
  outline: 2px solid var(--c-nav-text);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Item actif : background --c-nav-active | radius 12px | padding 13px 24px */
.nav-item--active {
  background: var(--c-nav-active);
  border-radius: 12px;
  padding: 0.8125rem 1.5rem;
  font-weight: 600;
  color: var(--c-nav-active-text);
}

.nav-item--active:hover {
  background: var(--c-nav-active);
  color: var(--c-nav-active-text);
}

/* ════════════════════════════════════════════════════════════
   HERO
   flex: 1 — remplit l'espace restant après navbar
   Contenu centré H+V | Illustrations aux 4 coins
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 4rem;
  overflow: hidden;
}

/* Grain texture — fractalNoise overlay, statique */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════
   HERO CARDS — cartes flottantes illustrées
   Fond : blanc | Radius : 12px | Shadow : rgba(52,7,126,0.06)
   Masquées mobile, visibles dès 1024px
   TL : pas de rotation | BL + TR : rotate(5deg)
════════════════════════════════════════════════════════════ */
.hero-card {
  position: absolute;
  display: none;
  width: clamp(200px, 18.5vw, 340px);
}

.hero-card__media {
  width: 100%;
}

.hero-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card__label {
  font-family: var(--f);
  font-size: clamp(13px, 1vw, 19px);
  font-weight: 500;
  color: #34077e;
  text-align: center;
  width: 100%;
  line-height: 1.54;
}

/* Positions — 4 coins symétriques */
.hero-card--tl {
  top: 7%;
  left: 2.5%;
  animation: float-straight 3s ease-in-out infinite;
  animation-delay: 0s;
}

.hero-card--tr {
  top: 7%;
  right: 2.5%;
  animation: float-straight 3s ease-in-out infinite;
  animation-delay: 0.4s;
}

.hero-card--bl {
  bottom: 7%;
  left: 2.5%;
  animation: float-straight 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

.hero-card--br {
  bottom: 7%;
  right: 2.5%;
  animation: float-straight 3s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes float-straight {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-tilted {
  0%,
  100% {
    transform: translateY(0px) rotate(5deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

@keyframes float-tilted-ccw {
  0%,
  100% {
    transform: translateY(0px) rotate(-5deg);
  }
  50% {
    transform: translateY(-12px) rotate(-5deg);
  }
}

/* ════════════════════════════════════════════════════════════
   HERO — contenu centré
════════════════════════════════════════════════════════════ */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ════════════════════════════════════════════════════════════
   H1
   Font : Albert Sans 600 | Figma : 96px/1920
   Size : clamp(2.25rem, 6vw, 6rem) → 36px → 96px
   Line-height : 1.08 (104/96)
   Gradient #DC5BC7 → #2873BE via background-clip: text
════════════════════════════════════════════════════════════ */
.hero__h1 {
  font-family: var(--f);
  font-size: clamp(2.25rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* Couche visuelle (aria-hidden) — reçoit le scramble JS
   white-space: pre-line force le \n en vrai saut de ligne */
.hero__h1-visual {
  display: block;
  white-space: pre-line;
  color: #6812f3;
}

/* ════════════════════════════════════════════════════════════
   PARAGRAPHES
   Font : Albert Sans 400 | Figma : 24px/1920
   Size : clamp(1rem, 1.25vw, 1.5rem) → 16px → 24px
   Line-height : 1.3 (31.2/24) | Couleur : --c-body
════════════════════════════════════════════════════════════ */
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero__copy p {
  font-family: var(--f);
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-body);
}

/* ════════════════════════════════════════════════════════════
   CTAs
   Radius : 999px | Stroke : outline 5px solid --c-stroke
   Règle absolue : pas de box-shadow, pas d'ombre portée
   Touch target : min-height 52px (WCAG ≥ 44px)
   Focus visible : outline 2px offset 2px couleur du CTA
════════════════════════════════════════════════════════════ */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  min-height: 52px;
  border-radius: 999px;
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  outline: 5px solid var(--c-stroke);
  transition: transform 200ms ease;
  white-space: nowrap;
}

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

.btn--primary:focus-visible {
  outline: 2px solid var(--c-cta-1);
  outline-offset: 2px;
}

.btn--secondary:focus-visible {
  outline: 2px solid var(--c-cta-2);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--c-cta-1);
}
.btn--secondary {
  background: var(--c-cta-2);
}

/* ════════════════════════════════════════════════════════════
   BREAKPOINTS — Mobile-first
   375px (défaut) → 768px → 1024px → 1280px → 1920px
════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 3rem 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-card {
    display: flex;
  }

  .hero__inner {
    max-width: 52%;
  }
}

@media (min-width: 1280px) {
  .hero__inner {
    max-width: 50%;
  }
}

@media (min-width: 1920px) {
  .hero__inner {
    max-width: 44%;
  }
}

@media (max-width: 479px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .nav-item--active {
    padding: 0.625rem 1rem;
  }
}

/* ════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   Illustrations : arrêt animation, rotation statique conservée
   Boutons + nav : transitions désactivées
   Scramble JS : bail géré côté JS (matchMedia)
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero-card--tl {
    animation: none;
    transform: none;
  }
  .hero-card--tr,
  .hero-card--br,
  .hero-card--bl {
    animation: none;
    transform: none;
  }

  .btn,
  .nav-item {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION 2 — SHOWCASE PROJETS
   Cards horizontales badge + titre + corps / tags + vignette
════════════════════════════════════════════════════════════ */
.showcase {
  padding: 5rem 1.5rem 6rem;
}

.showcase__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.showcase__header {
  max-width: 760px;
}

.showcase__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #6812f3;
}

/* ── Liste de cards ── */
.showcase__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Card ── */
.showcase-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid #a572f8;
  border-radius: 24px;
  padding: 2rem;
}

/* ── Côté gauche ── */
.showcase-card__left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: #dc5bc7;
  color: #ffffff;
  font-family: var(--f);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.125;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  transform: rotate(-2deg);
}

.showcase-card__title {
  font-family: var(--f);
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 600;
  color: #34077e;
  line-height: 1.2;
}

.showcase-card__body {
  font-family: var(--f);
  font-size: clamp(0.9375rem, 1.25vw, 1.25rem);
  font-weight: 400;
  color: #34077e;
  line-height: 1.5;
  max-width: 520px;
}

/* ── Côté droit ── */
.showcase-card__right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid #e06ccd;
  border-radius: 999px;
  font-family: var(--f);
  font-size: clamp(0.8125rem, 1vw, 1.125rem);
  font-weight: 500;
  color: #e06ccd;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Vignette ── */
.showcase-card__vignette {
  background: #f5faff;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(104, 18, 243, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 200px;
}

.showcase-card__vignette img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

/* ── CTAs ── */
.showcase__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Desktop : layout horizontal ── */
@media (min-width: 900px) {
  .showcase-card {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 2.5rem;
  }

  .showcase-card__left {
    flex: 1;
  }

  .showcase-card__right {
    flex: 1;
  }

  .showcase-card__vignette {
    min-height: 280px;
  }
}

@media (min-width: 1280px) {
  .showcase-card {
    gap: 6rem;
    padding: 2rem 2.5rem;
  }

  .showcase-card__vignette {
    min-height: 320px;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION 2 — CE QUE TU GAGNES
════════════════════════════════════════════════════════════ */
.gains {
  padding: 4rem 1.5rem 3rem;
}

.gains__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* ── En-tête ── */
.gains__header {
  text-align: center;
}

.gains__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #6812f3;
  margin-bottom: 0.75rem;
}

.gains__lead {
  font-family: var(--f);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-body);
}

/* ── Grille cartes ── */
.gains__cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* ── Carte ── */
.gain-card {
  --rot: 0deg;
  position: relative;
  background: #f5faff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(104, 18, 243, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  opacity: 0;
  transform: rotate(var(--rot)) translateY(24px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

.gain-card--in {
  opacity: 1;
  transform: rotate(var(--rot)) translateY(0);
}

/* ── Pin rose ── */
.gain-card__pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e481d4;
  z-index: 2;
}

/* ── Bloc texte ── */
.gain-card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gain-card__title {
  font-family: var(--f);
  font-size: clamp(1.125rem, 1.875vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: #34077e;
}

.gain-card__body {
  font-family: var(--f);
  font-size: clamp(0.875rem, 1.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.32;
  color: #34077e;
}

/* ── Zone illustration — full-bleed 3 côtés : compense le padding carte ── */
.gain-card__illus {
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -24px;
  flex-grow: 1;
  overflow: hidden;
}

.gain-card__illus img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── CTAs ── */
.gains__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .gains {
    padding: 5rem 2.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .gains__cards {
    flex-direction: row;
    align-items: stretch;
  }
  .gain-card {
    flex: 1;
  }
  .gain-card[data-pos="left"] {
    --rot: 3deg;
  }
  .gain-card[data-pos="right"] {
    --rot: -3deg;
  }
  .gain-card__illus img {
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gain-card {
    opacity: 1;
    transform: rotate(var(--rot));
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION 3 — SÉLECTION DE PROJETS
════════════════════════════════════════════════════════════ */
.projets {
  padding: 4rem 0 3rem;
}

.projets__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
}

/* ── En-tête ── */
.projets__header {
  padding: 0 1.5rem;
  max-width: 640px;
}

.projets__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #6812f3;
  margin-bottom: 12px;
}

.projets__lead {
  font-family: var(--f);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.17;
  color: #34077e;
  max-width: 36ch;
}

/* ── Track carousel ── */
.projets__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.5rem;
  padding: 1rem 1.5rem 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.projets__track::-webkit-scrollbar {
  display: none;
}

/* ── Carte projet ── */
.projet-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(280px, 80vw, 500px);
  background: #f5faff;
  border-radius: 24px;
  filter: drop-shadow(0px 0px 18.5px rgba(104, 18, 243, 0.06));
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
}

.projet-card__link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* ── Contenu haut paddé ── */
.projet-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  flex: 1;
}

/* ── Tags pills ── */
.projet-card__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 1vw, 12px);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.projet-card__tags::-webkit-scrollbar {
  display: none;
}

.projet-tag {
  display: inline-flex;
  align-items: center;
  padding: clamp(4px, 1vw, 6px) clamp(8px, 1.5vw, 12px);
  border-radius: 999px;
  border: 1px solid #e06ccd;
  color: #e06ccd;
  font-family: var(--f);
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

/* ── Titre + description ── */
.projet-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projet-card__title {
  font-family: var(--f);
  font-size: clamp(1.125rem, 1.875vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: #34077e;
}

.projet-card__body {
  font-family: var(--f);
  font-size: clamp(0.875rem, 1.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
  color: #34077e;
}

/* ── Zone mockup ── */
.projet-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 304 / 171;
  background: #ff824d;
  border-radius: 20px;
  margin-top: auto; /* Push down just in case */
  flex-shrink: 0;
  overflow: hidden;
}

.projet-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

/* ── Pied de carte ── */
.projet-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ff8c5b;
  padding: 16px 24px;
  border-radius: 0 0 24px 24px;
  margin-top: auto;
  flex-shrink: 0;
}

.projet-card__stat {
  font-family: var(--f);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  color: #f5faff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.projet-card__tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.projet-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5faff;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--f);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34077e;
  white-space: nowrap;
}

/* ── CTAs section 3 ── */
.projets__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   SECTION 3 — BREAKPOINTS
════════════════════════════════════════════════════════════ */

/* Tablette : scroll horizontal amélioré */
@media (min-width: 768px) {
  .projets {
    padding: 5rem 0 4rem;
  }
  .projets__header {
    padding: 0 2.5rem;
  }
  .projets__track {
    gap: 1.5rem;
    padding: 1.5rem 2.5rem 2.5rem;
    scroll-padding-left: 2.5rem;
  }
}

/* Desktop : fan deck — jeu de cartes battu */
@media (min-width: 960px) {
  .projets {
    padding: 5rem 0 3rem;
    overflow-x: clip;
    overflow-y: visible;
  }

  .projets__inner {
    overflow: visible;
    gap: 1.5rem;
  }

  .projets__track {
    overflow: visible;
    scroll-snap-type: none;
    gap: 0;
    padding: 4rem 4rem 2rem 4rem;
    align-items: flex-start;
    justify-content: center;
    min-height: 740px;
    position: relative;
  }

  .projet-card {
    width: clamp(360px, 26vw, 440px);
    scroll-snap-align: none;
    cursor: pointer;
    transition:
      transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 480ms cubic-bezier(0.22, 1, 0.36, 1),
      z-index 0ms;
  }

  /* Chevauchement + rotation — carte 1 (derrière) → 4 (devant) */
  .projet-card:nth-child(1) {
    z-index: 1;
    margin-right: -255px;
    transform: rotate(-14deg) translateY(36px);
  }
  .projet-card:nth-child(2) {
    z-index: 2;
    margin-right: -235px;
    transform: rotate(-6deg) translateY(20px);
  }
  .projet-card:nth-child(3) {
    z-index: 3;
    margin-right: -205px;
    transform: rotate(0deg) translateY(8px);
  }
  .projet-card:nth-child(4) {
    z-index: 4;
    margin-right: 0;
    transform: rotate(6deg) translateY(0);
  }

  /* Hover : carte se lève et passe au premier plan */
  .projet-card:hover {
    transform: rotate(0deg) translateY(-24px) scale(1.02);
    z-index: 10;
    filter: drop-shadow(0px 16px 40px rgba(104, 18, 243, 0.18));
  }
}

@media (prefers-reduced-motion: reduce) {
  .projet-card {
    transition: none;
  }
  .projet-card:hover {
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION 4 — JEU À GRATTER / COMPÉTENCES
   Grille 5+6+5 honeycomb — canvas scratch par case
════════════════════════════════════════════════════════════ */
.gratter {
  padding: 5rem 1.5rem 6rem;
}

.gratter__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* ── Header ── */
.gratter__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.gratter__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gratter__h2-visual {
  display: block;
  background: linear-gradient(to right, var(--c-h1-a), var(--c-h1-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gratter__pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--c-h1-a);
  color: var(--c-white);
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Grid — mobile : grille enroulée ── */
.gratter__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 340px;
}

.gratter__row {
  display: contents;
}

/* ── Case à gratter ── */
.scratch-card {
  position: relative;
  width: 100px;
  height: 113px;
  flex-shrink: 0;
  cursor:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23F7C426' stroke='%23C8941A' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='9' fill='none' stroke='%23C8941A' stroke-width='1.2'/%3E%3Ccircle cx='16' cy='16' r='2.5' fill='%23C8941A'/%3E%3C/svg%3E")
      16 16,
    crosshair;
  outline: none;
}

.scratch-card--revealed {
  cursor: default;
}

/* ── Fond révélé ── */
.scratch-card__back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-card__back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.scratch-card__label {
  position: absolute;
  bottom: 24%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f);
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--c-body);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

/* ── Canvas (couche à gratter) ── */
.scratch-card__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  transition: opacity 380ms ease;
}

.scratch-card--revealed .scratch-card__canvas {
  opacity: 0;
  pointer-events: none;
}

/* ── Focus visible pour accessibilité clavier ── */
.scratch-card:focus-visible {
  outline: 2px solid var(--c-h1-a);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Footer ── */
.gratter__footer {
  text-align: center;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gratter__claim {
  font-family: var(--f);
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-h1-a);
}

.gratter__claim strong {
  font-weight: 700;
}

.gratter__legal {
  font-family: var(--f);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-body);
  opacity: 0.55;
}

/* ════════════════════════════════════════════════════════════
   SECTION 4 — BREAKPOINTS
════════════════════════════════════════════════════════════ */

/* ── Tablette (768px) : honeycomb 5+6+5 ── */
@media (min-width: 768px) {
  .gratter {
    padding: 6rem 2rem 7rem;
  }

  .gratter__grid {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: none;
  }

  .gratter__row {
    display: flex;
    gap: 8px;
    margin-top: -26px;
  }

  .gratter__row:first-child {
    margin-top: 0;
  }

  .scratch-card {
    width: 110px;
    height: 124px;
  }

  .scratch-card__label {
    font-size: 0.625rem;
  }
}

/* ── Desktop (1024px) ── */
@media (min-width: 1024px) {
  .gratter__row {
    gap: 12px;
    margin-top: -36px;
  }

  .scratch-card {
    width: 145px;
    height: 163px;
  }

  .scratch-card__label {
    font-size: 0.6875rem;
  }
}

/* ── Large (1280px) ── */
@media (min-width: 1280px) {
  .gratter__row {
    gap: 14px;
    margin-top: -40px;
  }

  .scratch-card {
    width: 160px;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scratch-card__canvas {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION 5 — MON DESIGN A UN JOB (ROUE)
════════════════════════════════════════════════════════════ */
.roue {
  padding: 5rem 1.5rem 6rem;
}

.roue__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.roue__header {
  text-align: center;
  max-width: none;
}

.roue__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.roue__h2-visual {
  display: block;
  background: linear-gradient(to right, var(--c-h1-a), var(--c-h1-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.roue__lead {
  font-family: var(--f);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-body);
}

/* ── Stage ── */
.roue__stage {
  display: flex;
  justify-content: center;
}

.roue__wheel-wrap {
  position: relative;
  width: min(80vw, 460px);
  aspect-ratio: 1;
}

.roue__wheel {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  outline: 5px solid var(--c-stroke);
}

.roue__pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 18px;
  pointer-events: none;
}

.roue__spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(80px, 22%, 108px);
  height: clamp(80px, 22%, 108px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cta-1), var(--c-cta-2));
  border: none;
  outline: 5px solid var(--c-stroke);
  cursor: pointer;
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-white);
  transition: transform 200ms ease;
  z-index: 3;
}

.roue__spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.roue__spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: translate(-50%, -50%);
}

.roue__spin-btn:focus-visible {
  outline: 2px solid var(--c-cta-1);
  outline-offset: 3px;
}

/* ── Bouton bypass ── */
.roue__bypass {
  background: transparent;
  border: 2px solid var(--c-cta-2);
  border-radius: 999px;
  padding: 0.875rem 1.75rem;
  min-height: 52px;
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-cta-2);
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
  white-space: nowrap;
}

.roue__bypass:hover {
  background: var(--c-cta-2);
  color: var(--c-white);
}

.roue__bypass:focus-visible {
  outline: 2px solid var(--c-cta-2);
  outline-offset: 3px;
}

/* ════════════════════════════════════════════════════════════
   MODALES ROUE
════════════════════════════════════════════════════════════ */
.roue-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 260ms ease,
    visibility 260ms;
}

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

.roue-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 79, 130, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.roue-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  border-radius: 28px;
  outline: 5px solid var(--c-stroke);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-cta-2) transparent;
  transform: translateY(16px);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.roue-modal--open .roue-modal__panel {
  transform: translateY(0);
}

.roue-modal--all .roue-modal__panel {
  max-width: min(95vw, 1200px);
  padding: 2.5rem;
}

.roue-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--c-bg-start);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-body);
  transition: background 160ms ease;
  flex-shrink: 0;
}

.roue-modal__close:hover {
  background: var(--c-nav-bg);
}

.roue-modal__close:focus-visible {
  outline: 2px solid var(--c-cta-1);
  outline-offset: 2px;
}

.roue-modal__body {
  padding-top: 0.5rem;
}

.roue-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

/* ════════════════════════════════════════════════════════════
   ROUE-CARD (dans les modales)
════════════════════════════════════════════════════════════ */
.roue-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.roue-card__illus {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--c-cta-2);
  border-radius: 16px;
  flex-shrink: 0;
}

.roue-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roue-card__tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.875rem;
  border-radius: 999px;
  background: var(--c-h1-a);
  color: var(--c-white);
  font-family: var(--f);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: flex-start;
  white-space: nowrap;
}

.roue-card__title {
  font-family: var(--f);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  background: linear-gradient(to right, var(--c-h1-a), var(--c-h1-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.roue-card__body {
  font-family: var(--f);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-body);
}

.js-modal-open {
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   SECTION 5 — BREAKPOINTS
════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .roue {
    padding: 6rem 2rem 7rem;
  }

  .roue-modal__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .roue {
    padding: 7rem 2.5rem 8rem;
  }

  .roue-modal__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .roue-modal__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roue-modal,
  .roue-modal__panel {
    transition: none;
  }

  .roue__spin-btn {
    transition: none;
  }

  .roue__spin-btn:hover {
    transform: translate(-50%, -50%);
  }

  .roue__bypass {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION 6 — PARCOURS (Plateau de jeu)
════════════════════════════════════════════════════════════ */
.parcours {
  padding: 5rem 1.5rem 6rem;
}

.parcours__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.parcours__header {
  text-align: center;
  max-width: none;
}

.parcours__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.parcours__h2-visual {
  display: block;
  background: linear-gradient(to right, var(--c-h1-a), var(--c-h1-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.parcours__lead {
  font-family: var(--f);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-body);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Board wrap ── */
.parcours__board-wrap {
  width: 100%;
  max-width: 900px;
}

/* ── Board mobile : timeline verticale ── */
.parcours__board {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
}

/* Ligne de connexion verticale mobile */
.parcours__board::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 70px;
  bottom: 70px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--c-h1-a), var(--c-cta-2));
  z-index: 0;
  pointer-events: none;
}

/* SVG et pion masqués sur mobile */
.parcours__svg,
.parcours__pion {
  display: none;
}

/* ── Step (case cliquable) ── */
.parcours__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.parcours__step--in {
  opacity: 1;
  transform: scale(1);
}

.parcours__step:hover .parcours__step-bubble,
.parcours__step:focus-visible .parcours__step-bubble {
  outline-color: var(--c-h1-a);
  transform: scale(1.08);
}

.parcours__step:focus-visible {
  outline: 2px solid var(--c-h1-a);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ── Bubble (cercle numéroté) ── */
.parcours__step-bubble {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--c-white);
  outline: 5px solid var(--c-stroke);
  border: 3px solid var(--c-cta-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    outline-color 200ms ease,
    transform 200ms ease,
    border-color 200ms ease;
  flex-shrink: 0;
}

.parcours__step--current .parcours__step-bubble {
  border-color: var(--c-h1-a);
  background: linear-gradient(
    135deg,
    rgba(228, 129, 212, 0.08),
    rgba(104, 18, 243, 0.08)
  );
}

.parcours__step-num {
  font-family: var(--f);
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(to right, var(--c-h1-a), var(--c-h1-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  pointer-events: none;
}

.parcours__step-name {
  font-family: var(--f);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-body);
  white-space: nowrap;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ── Bypass ── */
.parcours__bypass {
  background: transparent;
  border: 2px solid var(--c-cta-2);
  border-radius: 999px;
  padding: 0.875rem 1.75rem;
  min-height: 52px;
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-cta-2);
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
  white-space: nowrap;
}

.parcours__bypass:hover {
  background: var(--c-cta-2);
  color: var(--c-white);
}
.parcours__bypass:focus-visible {
  outline: 2px solid var(--c-cta-2);
  outline-offset: 3px;
}

/* ════════════════════════════════════════════════════════════
   PARCOURS — DESKTOP (≥768px) — Plateau S-shape
════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .parcours {
    padding: 6rem 2rem 7rem;
  }

  /* Board : block avec ratio fixe */
  .parcours__board {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
  }

  .parcours__board::before {
    display: none;
  }

  /* SVG path visible */
  .parcours__svg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  /* Pion visible, centré sur étape 5, flottant */
  .parcours__pion {
    display: block;
    position: absolute;
    left: 10%;
    top: 87.5%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .parcours__pion svg {
    animation: float-pion 2.5s ease-in-out infinite;
    animation-delay: 0.4s;
  }

  /* Steps : positionnement absolu */
  .parcours__step {
    position: absolute;
    padding: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }

  .parcours__step--in {
    transform: translate(-50%, -50%) scale(1);
  }

  .parcours__step-bubble {
    width: 90px;
    height: 90px;
  }

  /* Positions S-shape — correspondance exacte avec SVG viewBox 900×600 */
  .parcours__step[data-step="0"] {
    left: 10%;
    top: 12.5%;
  }
  .parcours__step[data-step="1"] {
    left: 90%;
    top: 12.5%;
  }
  .parcours__step[data-step="2"] {
    left: 90%;
    top: 50%;
  }
  .parcours__step[data-step="3"] {
    left: 10%;
    top: 50%;
  }
  .parcours__step[data-step="4"] {
    left: 10%;
    top: 87.5%;
  }
}

@media (min-width: 1024px) {
  .parcours {
    padding: 7rem 2.5rem 8rem;
  }
  .parcours__step-name {
    font-size: 0.9375rem;
  }
}

/* ════════════════════════════════════════════════════════════
   PARCOURS — SVG path styles
════════════════════════════════════════════════════════════ */
.parcours__path-bg {
  fill: none;
  stroke: var(--c-stroke);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parcours__path-line {
  fill: none;
  stroke: var(--c-h1-a);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 9;
  opacity: 0.65;
}

/* Pion animation */
@keyframes float-pion {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ════════════════════════════════════════════════════════════
   CV CLASSIQUE — contenu de la modale parcours
════════════════════════════════════════════════════════════ */
.parcours-cv__title {
  font-family: var(--f);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  background: linear-gradient(to right, var(--c-h1-a), var(--c-h1-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1.5rem;
}

.parcours-cv__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.parcours-cv__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.parcours-cv__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-h1-a);
  color: var(--c-white);
  font-family: var(--f);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.parcours-cv__detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.parcours-cv__label {
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-body);
}

.parcours-cv__meta {
  font-family: var(--f);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c-cta-2);
  font-style: italic;
}

.parcours-cv__body {
  font-family: var(--f);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-body);
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ════════════════════════════════════════════════════════════
   SECTION 6 — PREFERS-REDUCED-MOTION
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .parcours__step {
    transition: none;
  }
  .parcours__pion svg {
    animation: none;
  }
  .parcours__bypass {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   DÉCORATION CONTACT
════════════════════════════════════════════════════════════ */
.contact-deco {
  position: relative;
  z-index: 1;
  margin-bottom: -74px;
  line-height: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.contact-deco__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ════════════════════════════════════════════════════════════
   SECTION 7 — CONTACT
════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   SECTION CONTACT
════════════════════════════════════════════════════════════ */
.contact {
  background: #e8ddfe;
  padding: 4rem 1.5rem 5rem;
}

.contact__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Colonne gauche ── */
.contact__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__title-line {
  display: block;
  margin: 0;
  line-height: 1.1;
}

.contact__sup {
  font-family: var(--f);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--c-body);
  vertical-align: baseline;
}

.contact__h2 {
  font-family: var(--f);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #6812f3;
  vertical-align: baseline;
}

.contact__subtitle {
  font-family: var(--f);
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(52, 7, 126, 0.7);
  margin: 0;
}

.contact__combo {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Photo — en flux sur mobile, absolue desktop ── */
.contact__photo-wrap {
  display: block;
  width: 100%;
  max-width: none;
  margin: -3rem auto 0;
  pointer-events: none;
}

.contact__photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* ── Quote block ── */
.contact__quote-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.contact__quote-mark {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.contact__quote-block p {
  font-family: var(--f);
  font-size: clamp(1.0625rem, 1.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-body);
  margin: 0;
}

/* ── Stat pills ── */
.contact__pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #c4a3fa;
  border-radius: 12px;
  padding: 0.625rem 1.25rem;
}

.contact__pill-text {
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-body);
  white-space: nowrap;
}

.contact__avatars {
  display: flex;
}

.contact__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c4a3fa;
  margin-left: -6px;
  flex-shrink: 0;
}

.contact__avatar:first-child {
  margin-left: 0;
}

.contact__pill-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ── Colonne droite ── */
.contact__right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Carte formulaire ── */
.contact__form-card {
  background: #ffffff;
  border: 2px solid rgba(104, 18, 243, 0.2);
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact__form-title {
  font-family: var(--f);
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-body);
  margin: 0;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact__label {
  font-family: var(--f);
  font-size: 0.875rem;
  font-weight: 500;
  color: #1c4f82;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border-radius: 10px;
  border: 1px solid #b5a2f6;
  background: #fcfaff;
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--c-body);
  transition: border-color 180ms ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: #d1b6fb;
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: #6812f3;
}

.contact__textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.contact__submit {
  width: 100%;
  padding: 0.75rem 2rem;
  min-height: 46px;
  border-radius: 999px;
  border: none;
  background: #6812f3;
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  margin-top: 0.25rem;
}

.contact__submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.contact__submit:active {
  transform: translateY(0);
}
.contact__submit:focus-visible {
  outline: 2px solid #6812f3;
  outline-offset: 3px;
}

/* ── Liens sociaux ── */
.contact__social {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-bottom: 2.5rem;
}

.contact__social-label {
  font-family: var(--f);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-body);
  margin: 0;
}

.contact__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-body);
  text-decoration: none;
  transition: color 160ms;
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact__social-link:hover {
  color: #6812f3;
}

/* ── Desktop ── */
@media (min-width: 900px) {
  .contact {
    padding: 5rem 2.5rem 0;
    overflow: hidden;
  }

  .contact__inner {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(4rem, 8vw, 140px);
    max-width: 1360px;
    padding-bottom: 2rem;
  }

  .contact__left {
    flex: 1;
    min-width: 0;
    gap: 4rem;
    z-index: 2;
  }

  .contact__text-block {
    gap: 2.5rem;
  }
  .contact__intro {
    gap: 0.75rem;
  }
  .contact__pills {
    gap: 1.5rem;
    max-width: 322px;
  }

  .contact__right {
    flex: 1.1;
    min-width: 0;
    gap: 3rem;
    z-index: 2;
  }

  .contact__form-card {
    padding: 2.5rem;
  }

  .contact__form-title {
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    white-space: nowrap;
  }

  /* Photo absolue en bas — hors flux, taille réduite */
  .contact__photo-wrap {
    display: block;
    position: absolute;
    bottom: 0rem;
    left: 32%;
    transform: translateX(-50%);
    width: clamp(400px, 42vw, 570px);
    max-width: none;
    margin: 0;
    height: auto;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
  }

  .contact__photo {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }
}

@media (max-width: 899px) {
  .contact {
    padding-bottom: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .contact__submit {
    transition: none;
  }
  .contact__input,
  .contact__textarea {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION BÉNÉFICES BUSINESS — onglets interactifs
════════════════════════════════════════════════════════════ */
.benefices {
  padding: 3rem 1.5rem 5rem;
}

.benefices__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Titre H2 ── */
.benefices__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #6812f3;
  max-width: 760px;
}

/* ── Rangée d'onglets ── */
.benefices__tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.625rem;
  align-items: center;
  /* Fade droit : indique qu'il y a d'autres onglets à faire défiler */
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.benefices__tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .benefices__tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.ben-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.6875rem 1rem;
  border: 1px solid #a572f8;
  border-radius: 999px;
  background: transparent;
  font-family: var(--f);
  font-size: clamp(0.8125rem, 1vw, 1rem);
  font-weight: 400;
  color: #a572f8;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
  min-height: 44px;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.ben-tab--active {
  background: #dfff00;
  border-color: #34077e;
  color: #34077e;
}

.ben-tab:not(.ben-tab--active):hover {
  background: rgba(165, 114, 248, 0.1);
}

.ben-tab:focus-visible {
  outline: 2px solid #6812f3;
  outline-offset: 3px;
}

/* ── Panneau de contenu ── */
.ben-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid #a572f8;
  border-radius: 24px;
  padding: 2rem;
}

.ben-panel[hidden] {
  display: none;
}

.ben-panel--active {
  animation: benFadeIn 280ms ease both;
}

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

/* ── Colonne texte (gauche) ── */
.ben-panel__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.ben-panel__badge {
  display: inline-block;
  align-self: flex-start;
  background: #dc5bc7;
  color: #ffffff;
  font-family: var(--f);
  font-size: clamp(1rem, 1.4vw, 1.375rem);
  font-weight: 600;
  line-height: 1.15;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
}

.ben-panel__text {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ben-panel__title {
  font-family: var(--f);
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 600;
  color: #34077e;
  line-height: 1.2;
}

.ben-panel__body {
  font-family: var(--f);
  font-size: clamp(0.9375rem, 1.2vw, 1.25rem);
  font-weight: 400;
  color: #34077e;
  line-height: 1.55;
  max-width: 520px;
}

/* ── Colonne illustration (droite) ── */
.ben-panel__right {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* croppe la zone shadow du PNG */
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(104, 18, 243, 0.06);
}

.ben-panel__right img {
  display: block;
  /* Les SVGs ont 37px de shadow transparent sur chaque côté.
     On agrandit l'image de 2×37 et on tire avec margin: -37px
     pour que le contenu visible colle aux bords du panneau (32px). */
  width: calc(100% + 74px);
  max-width: none;
  height: auto;
  margin: -37px;
  /* Force compositing GPU — améliore le rendu des filtres SVG sur mobile */
  transform: translateZ(0);
}

/* ── CTAs ── */
.benefices__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Desktop : layout horizontal gauche/droite ── */
@media (min-width: 900px) {
  .benefices {
    padding: 5rem 2.5rem;
  }

  .ben-panel {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
  }

  .ben-panel__left {
    flex: 0 0 auto;
    width: clamp(300px, 38%, 480px);
  }

  .ben-panel__right {
    flex: 1;
    align-self: stretch; /* s'étire sur la hauteur du panneau */
  }
}

@media (min-width: 1280px) {
  .ben-panel {
    gap: 5rem;
    padding: 2.5rem 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ben-panel--active {
    animation: none;
  }
  .ben-tab {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SECTION — SOCIAL PROOF — bento flex
════════════════════════════════════════════════════════════ */
.social {
  padding: 4rem 1.5rem 5rem;
}

.social__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.social__header {
  text-align: center;
}

.social__h2 {
  font-family: var(--f);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #6812f3;
}

/* ── Base card ── */
.sp-card {
  border-radius: 20px;
  overflow: hidden;
  background: #f5faff;
}

/* ── Quote card ── */
.sp-quote {
  background: #c4a3fa;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-quote__text {
  font-family: var(--f);
  font-size: clamp(1.25rem, 1.75vw, 1.875rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--c-body);
  margin: 0;
}

/* ── Photo card ── */
.sp-photo {
  background: #e481d4;
}

.sp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quote au-dessus d'une photo : réduit le padding bas pour donner plus de hauteur à la photo */
.sp-quote:has(+ .sp-photo) {
  padding-bottom: 0.75rem;
}

/* ── SVG stat card ── */
.sp-svg {
  background: #f5faff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sp-svg img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Mobile bento — 2-col grid, cols flatten with display:contents ── */
.social__bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.social__col {
  display: contents;
}

/* Height classes on mobile — natural sizing */
.sp-h-tall {
  min-height: 180px;
}
.sp-h-medium {
  min-height: 130px;
}
.sp-h-flex {
  min-height: 130px;
}

/* ── CTAs ── */
.social__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Desktop — 6 flex columns, section = 100vh ── */
@media (min-width: 900px) {
  .social {
    height: 100vh;
    height: 100svh;
    padding: 1.5rem 2.5rem;
  }

  .social__inner {
    height: 100%;
    gap: 0.75rem;
  }

  .social__bento {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    flex: 1;
    min-height: 0;
    margin-top: 2.25rem; /* titre → bento = 0.75 + 2.25 = 3rem = 48px */
  }

  .social__col {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    min-width: 0;
    min-height: 0;
  }

  /* Flex ratios */
  .sp-h-tall {
    flex: 3;
    min-height: 0;
  }
  .sp-h-medium {
    flex: 1.85;
    min-height: 0;
  }
  .sp-h-flex {
    flex: 1.75;
    min-height: 0;
    overflow: hidden;
  }

  /* Quotes dans les petites cellules : padding réduit */
  .sp-h-flex.sp-quote {
    padding: 1.25rem 1.5rem;
  }

  .logo-ticker {
    padding: 0.25rem 0;
  }
}

/* ════════════════════════════════════════════════════════════
   LOGO TICKER
════════════════════════════════════════════════════════════ */
.logo-ticker {
  overflow: hidden;
  padding: 2.5rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.logo-ticker__track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.logo-ticker__track img {
  height: 30px;
  width: 80px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.logo-ticker__track img.logo-sm {
  height: 18px;
  width: 80px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-ticker__track {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: #6812f3;
  color: #f5faff;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 5rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* ── Top ── */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0 1.5rem;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ── Bloc CTA ── */
.footer__cta-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__h2 {
  font-family: var(--f);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  color: #f5faff;
  margin: 0;
}

.footer__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 160px;
  padding: 0.75rem 1.25rem;
  border: 1px solid #f5faff;
  border-radius: 999px;
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 500;
  color: #f5faff;
  text-decoration: none;
  text-align: center;
  transition:
    background 160ms,
    color 160ms;
  min-width: 0;
}

.footer__btn:hover {
  background: #f5faff;
  color: #6812f3;
}

/* ── Colonnes nav + social ── */
.footer__col-title {
  font-family: var(--f);
  font-size: 1.125rem;
  font-weight: 500;
  color: #f5faff;
  margin: 0 0 0.75rem;
}

.footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer__nav-link {
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(245, 250, 255, 0.8);
  text-decoration: none;
  line-height: 1.43;
  transition: color 160ms;
}

.footer__nav-link:hover {
  color: #f5faff;
}

.footer__social {
  display: flex;
  flex-direction: column;
}

.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 400;
  color: #f5faff;
  text-decoration: none;
  transition: opacity 160ms;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer__social-link:hover {
  opacity: 0.75;
}
.footer__social-link svg {
  flex-shrink: 0;
}

/* ── Bottom ── */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
  font-family: var(--f);
  font-size: 0.9375rem;
  font-weight: 400;
  color: #f5faff;
  box-sizing: border-box;
}

.footer__legal-link {
  color: #f5faff;
  text-decoration: none;
  transition: opacity 160ms;
  white-space: nowrap;
}

.footer__legal-link:hover {
  opacity: 0.7;
}

.footer__bigname {
  font-family: var(--f);
  font-size: 14.5cqw;
  font-weight: 700;
  line-height: 0.9;
  color: #f5faff;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.02em;
  display: block;
  width: 100%;
  text-align: center;
}

/* ── Desktop ── */
@media (min-width: 900px) {
  .footer {
    gap: 4rem;
    padding-top: 6rem;
  }

  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(2rem, 6vw, 5rem);
    padding: 0 2.5rem;
  }

  .footer__cta-block {
    flex: 1 1 0;
    min-width: 0;
  }

  .footer__nav {
    flex-shrink: 0;
    min-width: 0;
  }

  .footer__social {
    flex-shrink: 0;
    min-width: 0;
  }

  .footer__social-link {
    white-space: normal;
    overflow: visible;
  }

  .footer__legal-row {
    gap: 4rem;
    padding: 1.5rem 2.5rem;
    font-size: 1.125rem;
  }
}
