/* =========================================================
   Jesse Laving — Premium Site (UI/UX Pro Max Enhanced)
   Noir profond + Vert sauge • Parallax cinématographique • Premium Design
   ========================================================= */

/* Visuels en lazy-load (perf) : fond neutre le temps du chargement JS */
[data-bg] { background-color: #17201b; }

:root {
  /* Palette avec contraste premium 4.5:1+ */
  --night:         #0E1512;
  --night-2:       #131C17;
  --night-3:       #1A241E;
  --light:         #F2F5EF;
  --light-dark:    #E7EEE6;
  --green:         #2E5E45;
  --green-2:       #4C7C60;
  --green-3:       #6E9C7E;
  --green-pale:    #AFC8B4;

  /* Text colors with proper contrast */
  --text-primary:  #0E1512;  /* 4.5:1 contrast on light */
  --text-secondary: #2B342E; /* Muted text */
  --text-light:    #F2F5EF;  /* On dark backgrounds */

  /* Typography */
  --serif:         "Fraunces", Georgia, serif;
  --sans:          "Inter", system-ui, sans-serif;

  /* Spacing (Fibonacci) */
  --s1:  8px;
  --s2:  13px;
  --s3:  21px;
  --s4:  34px;
  --s5:  55px;
  --s6:  89px;
  --s7:  144px;

  /* Premium effects */
  --maxw:          1200px;
  --radius:        16px;
  --ease:          cubic-bezier(.22,.61,.36,1);
  --ease-in:       cubic-bezier(.4,0,.2,1);
  /* Courbes fortes (Emil Kowalski) — les easings CSS natifs manquent de punch */
  --ease-out:      cubic-bezier(0.23, 1, 0.32, 1);     /* entrées/sorties, feedback UI */
  --ease-in-out:   cubic-bezier(0.77, 0, 0.175, 1);    /* déplacement/morph à l'écran */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.2);
  --shadow-glass:  0 8px 32px rgba(31, 38, 135, 0.37);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Décalage d'ancrage pour la navbar fixe (clic menu / boutons) */
section[id],
[id="hero"] {
  scroll-margin-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* Mouvement réduit ≠ zéro animation : on coupe les boucles décoratives
     (zoom, float, ken burns, shimmer…) mais on garde les fondus d'opacité/couleur
     qui aident à comprendre l'interface. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .scroll-indicator {
    animation: none !important;
  }
  /* On retire les déplacements/scales basés sur transform au survol & au press,
     sans toucher aux transitions de couleur/ombre. */
  .btn:active,
  .btn-primary:hover,
  .btn-ghost:hover,
  .service-card:hover,
  .catalogue-card:hover,
  .entity-card:hover,
  .formation-tile:hover,
  .testimonial-card:hover,
  .footer-social a:hover,
  .footer-social a:active,
  .offre-related-card:hover,
  .book-cover img:hover {
    transform: none !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(48px, 8vw, 72px); letter-spacing: -0.5px; }
h2 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.3px; }
h3 { font-size: clamp(24px, 4vw, 32px); }

p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

/* ===== BUTTONS (Touch target 44x44px min) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--s4) var(--s5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out),
              background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
  position: relative;
}

/* Feedback de pression : l'interface confirme qu'elle a entendu le clic */
.btn:active {
  transform: scale(0.97);
}

/* Le décollage ne se déclenche que sur vrai survol (le tactile génère de faux hovers) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: translateY(-2px);
  }
}

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

.btn-primary {
  background: var(--green);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--green-2);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--text-light);
}

/* Secondaire sur fond sombre / photo : verre discret */
.btn-ghost {
  background: rgba(242, 245, 239, 0.06);
  color: var(--light);
  border-color: rgba(242, 245, 239, 0.35);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(242, 245, 239, 0.14);
  border-color: var(--light);
}

.btn-lg {
  padding: var(--s3) var(--s5);
  font-size: 18px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(14, 21, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 94, 69, 0.2);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.navbar-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.22s var(--ease-out);
}

/* Rétrécissement dynamique au scroll */
.navbar.scrolled {
  background: rgba(14, 21, 18, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar.scrolled .navbar-container {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

.navbar.scrolled .logo-svg {
  transform: scale(0.82);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--light);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.navbar-logo:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar-logo:hover {
  opacity: 0.85;
}

.navbar-logo:hover .logo-svg {
  transform: rotate(-4deg) scale(1.05);
}

.logo-svg {
  color: var(--green-pale);
  transition: transform 0.35s var(--ease);
  transform-origin: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--light);
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-pale);
}

.navbar-collapse {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--s4);
}

/* Bouton burger (mobile uniquement) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.navbar.menu-open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.menu-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
.navbar.menu-open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
  color: var(--light);
  font-size: 16px;
  position: relative;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.nav-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--green-pale);
}

@media (max-width: 1180px) {
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 17px;
  }

  .nav-burger {
    display: flex;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s3);
    padding: 96px var(--s4) var(--s4);
    background: rgba(14, 21, 18, 0.99);
    border-left: 1px solid rgba(46, 94, 69, 0.3);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    overflow-y: auto;
  }

  .navbar-collapse.open {
    transform: translateX(0);
  }

  .navbar-menu {
    flex-direction: column;
    gap: 0;
  }

  .navbar-menu li {
    border-bottom: 1px solid rgba(46, 94, 69, 0.2);
  }

  .nav-link {
    display: block;
    padding: var(--s3) 0;
    font-size: 17px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-top: var(--s3);
    width: 100%;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 30s linear infinite;
  will-change: transform;
}

/* Diaporama hero — fondu enchaîné + Ken Burns */
.hero-slideshow {
  position: absolute;
  inset: -3%;
  overflow: hidden;
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.6s var(--ease-in);
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  animation: kenBurns 8s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.3s linear;
  }
  .hero-slide.is-active {
    animation: none;
    transform: scale(1);
  }
}

@keyframes kenBurns {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.27); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 21, 18, 0.6), rgba(46, 94, 69, 0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--light);
  max-width: 900px;
  padding: var(--s5);
}

.hero-subtitle {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: var(--s3);
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

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

.hero-title {
  color: var(--light);
  margin-bottom: var(--s4);
  animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}

.hero-description {
  font-size: 20px;
  color: var(--light);
  margin-bottom: var(--s5);
  animation: fadeInUp 0.7s var(--ease-out) 0.6s both;
}

.hero-cta {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-out) 0.8s both;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  color: var(--light);
  animation: bounce 2s infinite;
  z-index: 20;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== FIL « STRATÉGIE → TERRAIN » (progression du scroll, desktop) ===== */
.scroll-thread {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  z-index: 900;
  pointer-events: none;
}
.scroll-thread-cap {
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-3);
  opacity: 0.75;
}
.scroll-thread-track {
  position: relative;
  flex: 1;
  width: 2px;
  background: rgba(110, 156, 126, 0.22);
  border-radius: 2px;
}
.scroll-thread-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--green-3), var(--green));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.scroll-thread-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--green-pale);
  box-shadow: 0 0 0 3px rgba(46, 94, 69, 0.35), 0 0 12px rgba(175, 200, 180, 0.55);
  will-change: transform;
}
@media (max-width: 1100px) {
  .scroll-thread { display: none; }
}

/* ===== MANIFESTO ===== */
.manifesto {
  background: var(--light);
  padding: var(--s7) var(--s5);
}

.manifesto-container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.manifesto h2 {
  text-align: center;
  margin-bottom: var(--s5);
  color: var(--text-primary);
}

.manifesto-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
}

.manifesto-text {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.manifesto-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.manifesto-content strong {
  color: var(--green);
  font-weight: 600;
}

/* ===== DIAPORAMA INTERACTIF — APPROCHE ===== */
.approche-slider {
  position: relative;
  border-radius: var(--r-lg, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--night-2);
}

.approche-stage {
  position: absolute;
  inset: 0;
}

.approche-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 6s ease-out;
  will-change: opacity, transform;
}

.approche-slide.is-active {
  opacity: 1;
  transform: scale(1.14);
}

.approche-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s5) var(--s4) var(--s4);
  background: linear-gradient(180deg, transparent, rgba(14, 21, 18, 0.92));
  color: var(--light);
  font-size: 17px;
  line-height: 1.5;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.25s, transform 0.6s var(--ease) 0.25s;
}

.approche-slide.is-active figcaption {
  transform: translateY(0);
  opacity: 1;
}

.slide-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: var(--s1);
}

.approche-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(14, 21, 18, 0.55);
  backdrop-filter: blur(6px);
  color: var(--light);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 3;
}

.approche-arrow svg {
  width: 22px;
  height: 22px;
}

.approche-arrow.prev { left: var(--s2); }
.approche-arrow.next { right: var(--s2); }

.approche-slider:hover .approche-arrow,
.approche-arrow:focus-visible {
  opacity: 1;
}

.approche-arrow:hover {
  background: var(--green);
}

.approche-arrow:focus-visible {
  outline: 2px solid var(--green-pale);
  outline-offset: 2px;
}

.approche-dots {
  position: absolute;
  bottom: var(--s2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s1);
  z-index: 3;
}

.approche-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(242, 245, 239, 0.45);
  cursor: pointer;
  transition: width 0.25s var(--ease-out), background-color 0.25s ease, border-radius 0.25s ease;
}

.approche-dot.is-active {
  background: var(--green-pale);
  width: 26px;
  border-radius: 6px;
}

.approche-dot:focus-visible {
  outline: 2px solid var(--green-pale);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .approche-slide,
  .approche-slide.is-active {
    transition: opacity 0.3s linear;
    transform: none;
  }
}

@media (max-width: 768px) {
  .manifesto-content {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .approche-slider {
    aspect-ratio: 4 / 3;
  }
  .approche-arrow {
    opacity: 1;
  }
}

/* ===== CINEMATIC SCENES ===== */
.cinematic-scene {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Conteneur translaté par la parallaxe souris (JS) ; le zoom CSS vit sur .scene-bg
   à l'intérieur → les deux transforms se composent sans se neutraliser. */
.scene-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.scene-bg {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  background-size: cover;
  background-position: center;
  animation: sceneZoom 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Zoom cinématographique + bascule 3D marquée */
@keyframes sceneZoom {
  0%   { transform: scale(1.08) rotate(0deg)   translate(0, 0); }
  100% { transform: scale(1.42) rotate(2.6deg) translate(-3%, -2.2%); }
}

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

.scene-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(14, 21, 18, 0.1);
  will-change: transform;
}

.scene-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 21, 18, 0.5), rgba(46, 94, 69, 0.2));
}

.scene-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--light);
  max-width: 720px;
  padding: var(--s5) var(--s6);
}

/* Carte glass + tilt 3D des scènes */
.scene-card {
  background: rgba(14, 21, 18, 0.32);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(175, 200, 180, 0.22);
  border-radius: var(--r-lg, 24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: cardFloat 11s ease-in-out infinite;
}

/* Flottement 3D continu (la profondeur se lit même sans survol) */
@keyframes cardFloat {
  0%, 100% { transform: rotateX(4.5deg) rotateY(-5.5deg) translateZ(0); }
  50%      { transform: rotateX(-4.5deg) rotateY(5.5deg) translateZ(28px); }
}

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

.cinematic-scene:hover .scene-card {
  border-color: rgba(175, 200, 180, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.scene-content h2 {
  color: var(--light);
  margin-bottom: var(--s3);
  transform: translateZ(70px);
}

.scene-content p {
  color: var(--light);
  font-size: 18px;
  transform: translateZ(45px);
}

/* Avantages clients */
.scene-benefits {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s4);
  text-align: left;
  transform: translateZ(55px);
}

.scene-benefits li {
  position: relative;
  padding-left: 32px;
  color: var(--light);
  font-size: 16px;
  font-weight: 500;
}

.scene-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AFC8B4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .scene-content h2,
  .scene-content p,
  .scene-benefits {
    transform: none;
  }
}

/* ===== SERVICES ===== */
.services {
  background: var(--night);
  padding: var(--s7) var(--s5);
}

.services-header {
  max-width: var(--maxw);
  margin: 0 auto var(--s6);
  text-align: center;
  color: var(--light);
}

.services-header h2 {
  color: var(--light);
  margin-bottom: var(--s3);
}

.services-header p {
  color: var(--green-pale);
  max-width: 600px;
  margin: 0 auto;
  text-wrap: balance;
}

.services-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

/* 4 colonnes seulement quand chaque carte a la place de respirer ;
   en deçà, 2 colonnes — sinon les titres serif se font rogner. */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.service-card {
  background: rgba(242, 245, 239, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 94, 69, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease,
              box-shadow 0.2s var(--ease-out), background-color 0.2s ease;
  cursor: pointer;
  min-height: 44px;
}

.service-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.service-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-glass);
  background: rgba(242, 245, 239, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
  }
}

.service-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: filter 0.3s var(--ease);
}

.service-card:hover .service-image {
  filter: grayscale(0%);
  filter: saturate(1.2);
}

.service-content {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-content h3 {
  color: var(--light);
  margin-bottom: var(--s2);
  /* Taille dédiée aux cartes : le clamp global (jusqu'à 32px) débordait. */
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.2px;
  text-wrap: balance;
  hyphens: auto;
}

.service-content p {
  color: rgba(242, 245, 239, 0.8);
  font-size: 16px;
  margin-bottom: var(--s3);
}

.service-features {
  list-style: none;
  color: var(--green-pale);
  font-size: 14px;
}

.service-features li {
  padding: var(--s1) 0;
  padding-left: var(--s3);
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ===== FORMATIONS GRID ===== */
.formations-grid {
  background: var(--light);
  padding: var(--s7) var(--s5);
}

.formations-grid h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--s2);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: var(--s5);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.formations-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s4);
}

.formation-tile {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
  box-shadow: var(--shadow-md);
  min-height: 44px;
}

.formation-tile:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.formation-tile:hover {
  transform: scale(1.03);
}

.tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 21, 18, 0.3), rgba(46, 94, 69, 0.4));
  transition: opacity 0.2s ease, background 0.2s ease;
}

.formation-tile:hover .tile-overlay {
  background: linear-gradient(135deg, rgba(14, 21, 18, 0.5), rgba(46, 94, 69, 0.6));
}

.tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s4);
  background: linear-gradient(180deg, transparent, rgba(14, 21, 18, 0.9));
  color: var(--light);
  transform: translateY(0);
  transition: transform 0.2s var(--ease);
}

.formation-tile:hover .tile-content {
  transform: translateY(-10px);
}

.tile-content h3 {
  color: var(--light);
  margin-bottom: var(--s2);
}

.tile-content p {
  color: var(--light);
  font-size: 14px;
}

/* ===== CATALOGUE ===== */
.catalogue {
  background: var(--night);
  padding: var(--s7) var(--s5);
}

.catalogue h2 {
  text-align: center;
  color: var(--light);
  margin-bottom: var(--s5);
}

.catalogue-items {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s5);
}

.catalogue-card {
  background: rgba(242, 245, 239, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 94, 69, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease,
              box-shadow 0.2s var(--ease-out), background-color 0.2s ease;
  cursor: pointer;
  min-height: 44px;
}

.catalogue-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.catalogue-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-glass);
  background: rgba(242, 245, 239, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .catalogue-card:hover {
    transform: translateY(-4px);
  }
}

.card-image {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: var(--s4);
}

.badge {
  display: inline-block;
  padding: var(--s1) var(--s3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--s3);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}

.badge-free {
  background: var(--green);
  color: var(--light);
}

.badge-digital {
  background: rgba(46, 94, 69, 0.2);
  color: var(--green-pale);
}

.card-content h3 {
  color: var(--light);
  margin-bottom: var(--s2);
}

.card-content p {
  color: rgba(242, 245, 239, 0.8);
  font-size: 16px;
  margin-bottom: var(--s3);
}

/* ===== BOOK SECTION ===== */
.book-section {
  background: var(--night);
  padding: var(--s7) var(--s5);
}

.book-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--s6);
  align-items: center;
}

.book-cover {
  perspective: 1200px;
  width: 100%;
  max-width: 300px;
}

.book-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease-out);
}

/* Plus d'animation continue qui écraserait ce hover : il fonctionne à nouveau.
   Le relief 3D au survol vient du tilt JS sur le conteneur #bookCover. */
@media (hover: hover) and (pointer: fine) {
  .book-cover img:hover {
    transform: scale(1.02);
  }
}

.book-info h2 {
  color: var(--light);
  margin-bottom: var(--s2);
}

.book-author {
  color: var(--green);
  font-size: 18px;
  margin-bottom: var(--s3);
}

.book-description {
  color: rgba(242, 245, 239, 0.8);
  font-size: 16px;
  margin-bottom: var(--s4);
}

.book-details {
  display: flex;
  gap: var(--s2);
  color: rgba(242, 245, 239, 0.6);
  font-size: 14px;
  margin-bottom: var(--s4);
}

@media (max-width: 768px) {
  .book-container {
    grid-template-columns: 1fr;
  }
  .book-cover {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ===== STRUCTURE ===== */
.structure {
  background: var(--light);
  padding: var(--s7) var(--s5);
}

.structure h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--s2);
}

.structure-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s5);
  margin-bottom: var(--s5);
}

.entity-card {
  background: white;
  border: 1px solid rgba(46, 94, 69, 0.12);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: var(--s5);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s var(--ease-out);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  min-height: 44px;
}

.entity-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.entity-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}

@media (hover: hover) and (pointer: fine) {
  .entity-card:hover {
    transform: translateY(-2px);
  }
}

.entity-header {
  margin-bottom: var(--s3);
  border-bottom: 1px solid rgba(46, 94, 69, 0.2);
  padding-bottom: var(--s3);
}

.entity-header h3 {
  color: var(--green);
  margin-bottom: var(--s1);
}

.entity-type {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entity-details p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--s2);
}

.entity-details strong {
  color: var(--text-primary);
}

.structure-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--night);
  padding: var(--s7) var(--s5);
}

.contact-container {
  max-width: 1040px;
  margin: 0 auto;
}

/* Formulaire principal + panneau coordonnées */
.contact-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--s5);
  align-items: start;
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--s4); }
}

/* Champs appariés (nom/email, téléphone/structure) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s4);
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact h2 {
  text-align: center;
  color: var(--light);
  margin-bottom: var(--s2);
}

.contact-subtitle {
  text-align: center;
  color: rgba(242, 245, 239, 0.7);
  margin-bottom: var(--s5);
}

.contact-form {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: var(--s4);
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 44px;
  padding: var(--s3) var(--s4);
  border: 1px solid rgba(46, 94, 69, 0.3);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px;
  background: rgba(242, 245, 239, 0.05);
  color: var(--light);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s var(--ease-out);
  backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(242, 245, 239, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(46, 94, 69, 0.1);
  box-shadow: 0 0 0 3px rgba(46, 94, 69, 0.1);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.form-group select {
  cursor: pointer;
  color: rgba(242, 245, 239, 0.8);
}

.form-group select option {
  background: var(--night);
  color: var(--light);
}

.contact-form button {
  width: 100%;
}

.contact-info {
  text-align: left;
  color: rgba(242, 245, 239, 0.7);
  background: rgba(242, 245, 239, 0.04);
  border: 1px solid rgba(46, 94, 69, 0.3);
  border-radius: var(--radius);
  padding: var(--s4);
}

.contact-info-title {
  color: var(--light);
  font-size: 20px;
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(46, 94, 69, 0.3);
}

.contact-info p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  margin: 0 0 var(--s3) 0;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info p strong {
  color: var(--green-pale);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info a {
  color: var(--light);
}

.contact-info a:hover {
  color: var(--green-pale);
}

.contact-info span {
  color: var(--light);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--night-2);
  padding: var(--s5);
  text-align: center;
  border-top: 1px solid rgba(46, 94, 69, 0.2);
}

.footer-content {
  color: rgba(242, 245, 239, 0.7);
}

.footer-content p {
  font-size: 14px;
  margin: var(--s1) 0;
}

/* ===== MARQUE FOOTER ===== */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.footer-logo {
  color: var(--green-pale);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.footer-brand-text .brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--light);
}

.footer-brand-text .brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-pale);
}

/* ===== FILIGRANE DE SECTION (logo décoratif) ===== */
.section-watermark {
  position: absolute;
  top: 50%;
  right: -40px;
  width: 420px;
  height: auto;
  transform: translateY(-50%);
  color: var(--green);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.manifesto {
  position: relative;
  overflow: hidden;
}

.manifesto-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-watermark {
    width: 280px;
    right: -80px;
  }
}

/* ===== RÉSEAUX SOCIAUX (footer) ===== */
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(46, 94, 69, 0.35);
  color: var(--green-pale);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease,
              border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s var(--ease-out);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--light);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

@media (hover: hover) and (pointer: fine) {
  .footer-social a:hover {
    transform: translateY(-3px);
  }
}

.footer-social a:active {
  transform: scale(0.94);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ===== TÉMOIGNAGES ===== */
.testimonials {
  background: var(--night-2);
  padding: var(--s7) var(--s5);
}

.testimonials h2 {
  text-align: center;
  color: var(--light);
  margin-bottom: var(--s2);
}

.testimonials .section-subtitle {
  color: rgba(242, 245, 239, 0.7);
}

.testimonials-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--s4);
  perspective: 1000px;
}

@media (min-width: 560px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  /* Le témoignage le plus substantiel s'étale sur 2 colonnes : moins de
     lignes, mesure de lecture confortable, et il se lit comme la pièce maîtresse. */
  .testimonial-card--featured { grid-column: span 2; }
}

.testimonial-card--featured {
  background: rgba(46, 94, 69, 0.10);
  border-color: rgba(110, 156, 126, 0.35);
}

.testimonial-card--featured .testimonial-quote {
  font-size: 18px;
}

.testimonial-card {
  background: rgba(242, 245, 239, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 94, 69, 0.25);
  border-radius: var(--radius);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transform-style: preserve-3d;
  transition: transform 0.18s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.testimonial-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-glass);
  background: rgba(242, 245, 239, 0.08);
}

/* Badge source (uniforme en haut de chaque carte) */
.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--green-pale);
}

.testimonial-source.is-stars {
  color: var(--green-3);
}

.testimonial-source svg {
  width: 16px;
  height: 16px;
}

.testimonial-quote {
  flex: 1 1 auto;
  color: rgba(242, 245, 239, 0.9);
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 56px;
  color: var(--green);
  opacity: 0.4;
  line-height: 0;
  display: block;
  margin-bottom: var(--s2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-top: 1px solid rgba(46, 94, 69, 0.25);
  padding-top: var(--s3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--light);
  background: linear-gradient(135deg, var(--green), var(--green-3));
  box-shadow: 0 4px 12px rgba(46, 94, 69, 0.4);
}

.testimonial-author strong {
  display: block;
  color: var(--light);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.testimonial-author span {
  color: var(--green-pale);
  font-size: 13px;
}

/* ===== TILT 3D & ZOOM VISUELS ===== */
.services-grid,
.formations-layout,
.structure-grid {
  perspective: 1000px;
}

.service-card,
.formation-tile,
.entity-card,
.testimonial-card {
  transform-style: preserve-3d;
}

/* Animation continue (Ken Burns) des images + accélération au survol */
@keyframes imgKenBurns {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.14) translate(-1.5%, 1%); }
  100% { transform: scale(1.05) translate(0, 0); }
}

@keyframes tileZoom {
  0%   { background-size: 112%; }
  50%  { background-size: 124%; }
  100% { background-size: 112%; }
}

.service-image,
.card-image {
  transition: filter 0.3s var(--ease);
  animation: imgKenBurns 24s ease-in-out infinite;
}

.catalogue-card:nth-child(2) .card-image { animation-delay: -9s; }
.service-card:nth-child(2) .service-image { animation-delay: -4s; }
.service-card:nth-child(3) .service-image { animation-delay: -8s; }
.service-card:nth-child(4) .service-image { animation-delay: -12s; }

/* Les tuiles formation : zoom continu via background-size (n'entre pas en conflit avec le tilt 3D) */
.formation-tile {
  animation: tileZoom 26s ease-in-out infinite;
}

.formation-tile:nth-child(2) { animation-delay: -5s; }
.formation-tile:nth-child(3) { animation-delay: -10s; }
.formation-tile:nth-child(4) { animation-delay: -15s; }
.formation-tile:nth-child(5) { animation-delay: -3s; }
.formation-tile:nth-child(6) { animation-delay: -8s; }
.formation-tile:nth-child(7) { animation-delay: -13s; }
.formation-tile:nth-child(8) { animation-delay: -18s; }

.service-card:hover .service-image,
.catalogue-card:hover .card-image {
  animation-duration: 12s;
}

/* Profondeur des contenus pendant le tilt (au survol uniquement) */
.service-content,
.tile-content,
.entity-header,
.testimonial-author {
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-content,
.entity-card:hover .entity-header,
.testimonial-card:hover .testimonial-author {
  transform: translateZ(28px);
}

.formation-tile:hover .tile-content {
  transform: translateY(-10px) translateZ(30px);
}

/* Lueur dynamique au survol des cartes */
.service-card::after,
.entity-card::after,
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 156, 126, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.service-card,
.entity-card,
.testimonial-card {
  position: relative;
}

.service-card:hover::after,
.entity-card:hover::after,
.testimonial-card:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .service-content,
  .tile-content,
  .entity-header,
  .testimonial-author {
    transform: none;
  }
}

/* ===== REVEAL AU SCROLL (premium) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal-scale.is-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== LAZY LOADING ===== */
img[loading="lazy"] {
  background: linear-gradient(90deg, rgba(46, 94, 69, 0.1), rgba(46, 94, 69, 0.05));
  animation: shimmer 2s infinite;
}

/* Une fois l'image chargée (classe posée par main.js), on arrête le shimmer :
   inutile de faire tourner une animation indéfiniment derrière une image opaque. */
img[loading="lazy"].media-loaded {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  p {
    font-size: 16px;
  }

  /* Espacements verticaux réduits sur mobile */
  .manifesto,
  .services,
  .formations-grid,
  .catalogue,
  .book-section,
  .structure,
  .testimonials,
  .contact {
    padding: var(--s6) var(--s4);
  }

  .services-grid,
  .formations-layout,
  .catalogue-items,
  .structure-grid {
    gap: var(--s4);
  }

  .formation-tile {
    height: 250px;
  }

  .scene-content {
    padding: var(--s4);
  }

  .scene-content h2 {
    font-size: 30px;
  }

  .scene-benefits {
    margin-top: var(--s3);
  }

  .book-details {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: var(--s3) var(--s4);
  }

  .hero-content,
  .contact-container {
    padding: var(--s4);
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: var(--s2);
  }

  .footer-brand-text {
    text-align: center;
  }

  .footer-social {
    flex-wrap: wrap;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  body {
    font-weight: 500;
  }

  --green: #1F4D32;
  --text-secondary: #1A2318;
}

/* ===== PAGE DE VENTE (offre.html) ===== */
.offre-loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-top: 80px;
}

.offre-hero {
  margin-top: 72px;
  min-height: 62vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s7) var(--s5);
}

.offre-hero-inner {
  max-width: 820px;
  color: var(--light);
}

.offre-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: var(--s3);
}

.offre-hero h1 {
  color: var(--light);
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: var(--s3);
}

.offre-tagline {
  font-size: 20px;
  color: rgba(242, 245, 239, 0.9);
  margin-bottom: var(--s5);
}

.offre-section {
  padding: var(--s4) var(--s5);
}

.offre-section:nth-child(odd) {
  background: var(--light);
}

.offre-section:nth-child(even) {
  background: var(--light-dark);
}

.offre-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.offre-intro p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink-soft, #2B342E);
  margin-bottom: var(--s3);
}

.offre-section h2 {
  color: var(--night);
  margin-bottom: var(--s3);
}

.offre-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}

.offre-card {
  background: white;
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}

.offre-card h2 {
  font-size: 24px;
  margin-bottom: var(--s3);
}

.offre-list {
  list-style: none;
}

.offre-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--s2);
  color: var(--ink-soft, #2B342E);
  font-size: 16px;
}

.offre-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5E45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / contain no-repeat;
}

.offre-program-list {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: var(--s2);
}

.offre-program-list li {
  counter-increment: step;
  position: relative;
  padding: var(--s3) var(--s3) var(--s3) 64px;
  background: white;
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-radius: var(--radius);
  color: var(--ink-soft, #2B342E);
  font-weight: 500;
}

.offre-program-list li::before {
  content: counter(step);
  position: absolute;
  left: var(--s3);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--light);
  font-family: var(--serif);
  font-weight: 600;
}

.offre-method p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft, #2B342E);
}

.offre-format {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  background: rgba(46, 94, 69, 0.08);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  font-size: 16px;
}

.offre-cta {
  background: var(--night);
  padding: var(--s7) var(--s5);
  text-align: center;
}

.offre-cta h2 {
  color: var(--light);
  margin-bottom: var(--s3);
}

.offre-cta p {
  color: rgba(242, 245, 239, 0.8);
  margin-bottom: var(--s5);
  font-size: 18px;
}

.offre-cta-btns {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  border: 2px solid var(--green-pale);
  color: var(--green-pale);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--green-pale);
  color: var(--night);
}

/* Cartes/tuiles cliquables (lien) */
a.formation-tile,
a.service-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* Lien d'action aligné en bas de chaque carte → la rangée s'aligne */
.service-content .offre-link-hint {
  margin-top: auto;
  padding-top: var(--s3);
  color: var(--green-pale);
}

.offre-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s2);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .offre-two {
    grid-template-columns: 1fr;
  }
  .offre-section {
    padding: var(--s4) var(--s4);
  }
}

/* ===== PAGE DE VENTE — AMÉLIORATIONS UI/UX PRO MAX ===== */
.offre-breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(72px + var(--s3)) var(--s5) 0;
  font-size: 13px;
  color: var(--muted);
}
.offre-breadcrumb a { color: var(--green); font-weight: 600; }
.offre-breadcrumb span { color: var(--muted-dim, #8A938B); }

.offre-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin: var(--s4) 0 var(--s5);
}
.offre-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(175, 200, 180, 0.12);
  border: 1px solid rgba(175, 200, 180, 0.3);
  color: var(--green-pale);
  font-size: 13px;
  font-weight: 600;
}
.offre-badge svg { width: 16px; height: 16px; }

.offre-hero-cta {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Bande points clés */
.offre-keypoints {
  background: var(--night-2);
  padding: var(--s5);
}
.offre-keypoints-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
  text-align: center;
}
.offre-keypoint {
  color: var(--light);
}
.offre-keypoint strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--green-pale);
  margin-bottom: 4px;
}
.offre-keypoint span { color: var(--on-night-dim, #A9B7AC); font-size: 14px; }

/* Icônes des blocs d'info (visuels de scannabilité) */
.ic { width: 22px; height: 22px; flex-shrink: 0; }
.offre-keypoint .ic {
  width: 30px; height: 30px;
  color: var(--green-3);
  display: block;
  margin: 0 auto var(--s2);
}
.offre-info .ic {
  width: 26px; height: 26px;
  color: var(--green);
  display: block;
  margin-bottom: var(--s2);
}
.offre-card--ic .ic {
  width: 30px; height: 30px;
  color: var(--green);
  display: block;
  margin-bottom: var(--s2);
}

/* Livrables */
.offre-deliverables .offre-wrap { max-width: 920px; }
.offre-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.offre-deliverable {
  background: white;
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: var(--s4);
}
.offre-deliverable h3 { font-size: 18px; color: var(--night); margin-bottom: 6px; }
.offre-deliverable p { font-size: 14px; color: var(--ink-soft, #2B342E); }

/* Témoignage sur page de vente */
.offre-proof {
  background: var(--night);
  padding: var(--s5) var(--s5);
  text-align: center;
}
.offre-proof .offre-wrap { max-width: 760px; }
.offre-proof-stars { color: var(--green-3); display: flex; gap: 4px; justify-content: center; margin-bottom: var(--s3); }
.offre-proof-stars svg { width: 22px; height: 22px; }
.offre-proof blockquote {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  color: var(--light);
  font-style: italic;
  margin-bottom: var(--s3);
}
.offre-proof cite { color: var(--green-pale); font-style: normal; font-weight: 600; }

/* FAQ */
.offre-faq .offre-wrap { max-width: 820px; }
.offre-faq details {
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-radius: var(--radius);
  background: white;
  margin-bottom: var(--s2);
  overflow: hidden;
}
.offre-faq summary {
  cursor: pointer;
  padding: var(--s4);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--night);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
}
.offre-faq summary::-webkit-details-marker { display: none; }
.offre-faq summary::after {
  content: '+';
  font-size: 24px;
  color: var(--green);
  transition: transform 0.2s var(--ease);
}
.offre-faq details[open] summary::after { transform: rotate(45deg); }
.offre-faq details p {
  padding: 0 var(--s4) var(--s4);
  color: var(--ink-soft, #2B342E);
  font-size: 16px;
}

/* Offres liées */
.offre-related .offre-wrap { max-width: var(--maxw); }
.offre-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.offre-related-card {
  display: block;
  padding: var(--s4);
  background: white;
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.offre-related-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) and (pointer: fine) {
  .offre-related-card:hover {
    transform: translateY(-4px);
  }
}
.offre-related-card span { font-size: 12px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.offre-related-card h3 { font-size: 19px; color: var(--night); margin-top: 6px; }
.offre-related-card em { color: var(--green); font-style: normal; font-size: 14px; }

/* CTA collant (mobile) */
.offre-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  background: rgba(14, 21, 18, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(46, 94, 69, 0.3);
  z-index: 900;
}
.offre-sticky span { color: var(--light); font-weight: 600; font-size: 14px; }
@media (max-width: 768px) {
  .offre-sticky { display: flex; }
  .offre-proof blockquote { font-size: 20px; }
}

/* ===== PAGE DE VENTE — CONTENU PÉDAGOGIQUE DÉTAILLÉ ===== */
/* Galerie de visuels */
.offre-gallery .offre-wrap { max-width: var(--maxw); }
.offre-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3);
}
.offre-gallery-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  filter: saturate(1.05);
}

/* Infos pratiques */
.offre-infos {
  background: var(--light-dark);
  padding: var(--s5);
}
.offre-infos-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
}
.offre-info {
  background: white;
  border-radius: var(--radius);
  padding: var(--s4);
  border: 1px solid var(--line, rgba(14,21,18,0.1));
}
.offre-info .lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.offre-info p { font-size: 15px; color: var(--ink-soft, #2B342E); margin: 0; }

/* Compétences visées */
.offre-competences .offre-wrap { max-width: 920px; }
.offre-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s2);
  margin-top: var(--s4);
}
.offre-comp {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3);
  background: white;
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink-soft, #2B342E);
}
.offre-comp::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5E45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / contain no-repeat;
}

/* Programme détaillé (modules) */
.offre-program .offre-wrap { max-width: 920px; }
.offre-modules { display: grid; gap: var(--s3); margin-top: var(--s4); position: relative; }
/* Fil-timeline vertical reliant les modules ; se dessine à la révélation de la section */
.offre-modules::before {
  content: '';
  position: absolute;
  left: 53px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(var(--green-3), var(--green));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1s var(--ease-out);
  z-index: 0;
}
.offre-modules.in::before { transform: scaleY(1); }
.offre-module { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .offre-modules::before { transform: scaleY(1); transition: none; }
}
@media (max-width: 768px) {
  .offre-modules::before { display: none; }
}
.offre-module {
  display: flex;
  gap: var(--s3);
  background: white;
  border: 1px solid var(--line, rgba(14,21,18,0.1));
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
}
.offre-module-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--light);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.offre-module-body h3 { font-size: 19px; color: var(--night); margin-bottom: var(--s2); }
.offre-module-body ul { list-style: none; }
.offre-module-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
  color: var(--ink-soft, #2B342E);
  font-size: 15px;
}
.offre-module-body li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--green);
}

/* Déroulé pédagogique */
/* .offre-section.offre-deroule-section : double classe = même spécificité que
   .offre-section:nth-child(even), et placée plus bas → le fond sombre l'emporte
   sur la bande alternée claire (sinon : texte clair sur fond clair = illisible). */
.offre-section.offre-deroule-section { background: var(--night-2); }
.offre-section.offre-deroule-section h2 { color: var(--light); }
.offre-deroule-section .offre-wrap { max-width: 920px; }
.offre-deroule {
  counter-reset: dstep;
  list-style: none;
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}
.offre-deroule li {
  counter-increment: dstep;
  position: relative;
  padding: var(--s4) var(--s4) var(--s4) 68px;
  background: var(--night-3);
  border: 1px solid rgba(110, 156, 126, 0.32);
  border-radius: var(--radius);
  color: var(--light);
  font-size: 16px;
  line-height: 1.6;
}
.offre-deroule li::before {
  content: counter(dstep);
  position: absolute; left: var(--s3); top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--night);
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Trois colonnes (pédagogie / moyens / évaluation) */
.offre-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s4);
  margin-top: var(--s4);
}

@media (max-width: 768px) {
  .offre-module { flex-direction: column; }
  .offre-gallery-img { height: 200px; }
}

/* ===== PAGE DE VENTE — MISE EN PAGE & VISUELS ANIMÉS ===== */
/* Motif spirale animé dans le hero */
.offre-hero { position: relative; overflow: hidden; }
/* Calque image du hero : zoom CSS (heroDrift) + parallaxe souris (translate, JS) se composent */
.offre-hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.offre-hero-spiral {
  position: absolute;
  top: 50%; right: -120px;
  width: 520px; height: 520px;
  transform: translateY(-50%);
  color: var(--green-pale);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  animation: spinSlow 60s linear infinite;
}
.offre-hero-inner { position: relative; z-index: 2; }
@keyframes spinSlow { to { transform: translateY(-50%) rotate(360deg); } }

/* Entrée orchestrée du contenu hero (au chargement, en cascade) */
.offre-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: offreRise 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--ri, 0) * 90ms + 0.1s);
}
@keyframes offreRise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .offre-rise { animation: none; opacity: 1; transform: none; }
}

/* Bande cinématique animée (fondu enchaîné + Ken Burns) */
.offre-cine {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--night);
}
.offre-cine-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  animation: cine3 18s infinite, kenBurns 24s ease-in-out infinite;
}
.offre-cine-slide:nth-child(1) { animation-delay: 0s, 0s; }
.offre-cine-slide:nth-child(2) { animation-delay: -6s, -8s; }
.offre-cine-slide:nth-child(3) { animation-delay: -12s, -16s; }
@keyframes cine3 {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}
.offre-cine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,21,18,.35), rgba(14,21,18,.7));
  display: flex;
  align-items: flex-end;
  padding: var(--s5);
  z-index: 2;
}
.offre-cine-overlay p {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  color: var(--light);
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
@media (prefers-reduced-motion: reduce) {
  .offre-cine-slide { animation: none; opacity: 1; }
  .offre-cine-slide:nth-child(2), .offre-cine-slide:nth-child(3) { display: none; }
  .offre-hero-spiral { animation: none; }
}

/* Galerie : zoom au survol */
.offre-gallery-img { transition: transform 0.5s var(--ease), box-shadow 0.3s var(--ease); cursor: zoom-in; }
.offre-gallery-img:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }

/* Apparition au scroll (pages de vente) */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-up.in { opacity: 1; transform: none; }

/* Révélation par balayage (clip-path) — signature pour les bandes média */
.reveal-clip { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-out); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .reveal-clip { clip-path: none !important; }
}

/* CTA flottant (desktop) */
.offre-fab {
  position: fixed;
  right: var(--s4);
  bottom: var(--s4);
  display: none;
  align-items: center;
  gap: var(--s2);
  padding: 14px 22px;
  background: var(--green);
  color: var(--light);
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(46,94,69,.45);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  z-index: 950;
}
.offre-fab svg { width: 18px; height: 18px; }
.offre-fab.show { opacity: 1; transform: translateY(0); }
.offre-fab:hover { background: var(--green-2); }
@media (min-width: 769px) {
  .offre-fab { display: inline-flex; }
}

/* Rythme & lisibilité éditoriale */
.offre-section h2 { position: relative; padding-bottom: var(--s2); margin-bottom: var(--s4); }
.offre-section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.offre-proof h2::after, .offre-cta h2::after { display: none; }

/* ===== PAGE DE VENTE — SOUS-NAVIGATION COLLANTE (skill: sticky section nav) ===== */
.offre-subnav {
  position: sticky;
  top: 64px;
  z-index: 800;
  background: rgba(14, 21, 18, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 94, 69, 0.3);
}
.offre-subnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--s5);
  overflow-x: auto;
  scrollbar-width: none;
}
.offre-subnav-inner::-webkit-scrollbar { display: none; }
.offre-subnav a {
  color: rgba(242, 245, 239, 0.75);
  font-size: 14px;
  font-weight: 600;
  padding: 15px 2px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.offre-subnav a:hover,
.offre-subnav a.active {
  color: var(--green-pale);
  border-bottom-color: var(--green);
}
.offre-subnav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--green);
  color: var(--light) !important;
  padding: 9px 20px !important;
  border-radius: 100px;
  border-bottom: none !important;
}
.offre-subnav-cta:hover {
  background: var(--green-2);
  border-bottom-color: transparent !important;
}

/* Décalage d'ancrage tenant compte navbar + sous-nav */
.offre-section[id], #avis, #faq, #apercu, #programme, #deroule, #methode {
  scroll-margin-top: 124px;
}

@media (max-width: 768px) {
  .offre-subnav { top: 60px; }
  .offre-subnav-inner { padding: 0 var(--s4); gap: var(--s2); }
  .offre-subnav-cta { display: none; }
}

/* ===== PAGE DE VENTE — POLISH ESTHÉTIQUE & LISIBILITÉ (skill) ===== */
/* Longueur de ligne optimale (65-75 caractères) pour les blocs de texte */
.offre-intro .offre-wrap { max-width: 720px; }
/* Intro illustrée : 2 colonnes (texte + visuel du sujet) */
.offre-intro .offre-wrap.offre-intro-grid {
  max-width: 1060px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--s5);
  align-items: center;
}
.offre-intro-text p:last-child { margin-bottom: 0; }
.offre-intro-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.offre-intro-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: imgKenBurns 26s ease-in-out infinite;
}
@media (max-width: 820px) {
  .offre-intro .offre-wrap.offre-intro-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .offre-intro-media { aspect-ratio: 16 / 9; }
}
.offre-intro p { font-size: 20px; line-height: 1.85; }
.offre-method .offre-wrap > p { max-width: 760px; }
.offre-deroule-section .offre-wrap { max-width: 760px; }

/* Bande cinématique : plus immersive */
.offre-cine { height: 520px; }
.offre-cine-overlay {
  background: linear-gradient(180deg, rgba(14,21,18,.15) 0%, rgba(14,21,18,.45) 55%, rgba(14,21,18,.82) 100%);
}

/* Interactivité (skill : hover feedback, transitions 150-300ms) */
.offre-module { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.offre-module:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green); }
.offre-deliverable { transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.offre-deliverable:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow-md); }
.offre-comp { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.offre-comp:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.offre-info { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.offre-info:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.offre-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.offre-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(46,94,69,0.4); }

/* Titres de section plus aérés */
.offre-section { padding-top: var(--s4); padding-bottom: var(--s4); }
.offre-intro { padding-top: var(--s5); padding-bottom: var(--s3); }
.offre-method { padding-bottom: var(--s3); }

/* Banners pleine largeur entre sections */
.offre-banner {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}
.offre-banner-img {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  animation: imgKenBurns 22s ease-in-out infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .offre-banner-img { animation: none; }
}
@media (max-width: 768px) {
  .offre-banner { height: 200px; }
}

@media (max-width: 768px) {
  .offre-cine { height: 360px; }
  .offre-intro p { font-size: 18px; }
}

/* ===== PAGE DE VENTE — RAFFINEMENTS MOBILES ===== */
@media (max-width: 600px) {
  .offre-hero { padding-left: var(--s4); padding-right: var(--s4); }
  .offre-hero-cta { flex-direction: column; width: 100%; }
  .offre-hero-cta .btn { width: 100%; }
  .offre-cta-btns { flex-direction: column; align-items: stretch; }
  .offre-cta-btns .btn { width: 100%; }
  .offre-badges { gap: 8px; }
  .offre-badge { font-size: 12px; padding: 7px 12px; }
  .offre-breadcrumb { font-size: 12px; padding-left: var(--s4); padding-right: var(--s4); }
  .offre-section { padding-top: var(--s4); padding-bottom: var(--s4); }
  .offre-cine-overlay p { font-size: 18px; }
  .offre-module-num { width: 34px; height: 34px; font-size: 16px; }
  .offre-proof blockquote { font-size: 19px; }
}

/* ===== PAGE DE VENTE — BARRE DE PROGRESSION & HERO ANIMÉ ===== */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-3));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1200;
  will-change: transform;
}
.offre-hero-zoom {
  background-size: cover;
  background-position: center;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { background-size: 108%; background-position: 50% 48%; }
  to   { background-size: 118%; background-position: 50% 56%; }
}
@media (prefers-reduced-motion: reduce) {
  .offre-hero-zoom { animation: none; background-size: cover; }
}

/* ===== SECTION LIVRE — 2e ouvrage (e-book co-écrit) ===== */
.book-container + .book-container {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid rgba(46, 94, 69, 0.2);
}
.book-cover { position: relative; }
.book-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: var(--green);
  color: var(--light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 13px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 769px) {
  .book-container-alt { grid-template-columns: 1fr 300px; }
  .book-container-alt .book-info { order: 1; }
  .book-container-alt .book-cover { order: 2; }
}

/* ===== DOMAINES D'EXPERTISE (zoom + 3D) ===== */
.domaines { background: var(--light-dark); padding: var(--s7) var(--s5); }
.domaines h2 { text-align: center; color: var(--text-primary); margin-bottom: var(--s2); }
.domaines-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s3);
  perspective: 1100px;
}
.domaine-tile {
  position: relative;
  display: block;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.domaine-tile:hover { box-shadow: var(--shadow-lg); }
.domaine-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: imgKenBurns 22s ease-in-out infinite;
  will-change: transform;
}
.domaine-tile:nth-child(2) .domaine-img { animation-delay: -4s; }
.domaine-tile:nth-child(3) .domaine-img { animation-delay: -8s; }
.domaine-tile:nth-child(4) .domaine-img { animation-delay: -12s; }
.domaine-tile:nth-child(5) .domaine-img { animation-delay: -16s; }
.domaine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 21, 18, 0.1) 0%, rgba(14, 21, 18, 0.45) 55%, rgba(14, 21, 18, 0.85) 100%);
  transition: background 0.3s var(--ease);
}
.domaine-tile:hover .domaine-overlay {
  background: linear-gradient(180deg, rgba(46, 94, 69, 0.2) 0%, rgba(14, 21, 18, 0.5) 55%, rgba(14, 21, 18, 0.9) 100%);
}
.domaine-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s4) var(--s3);
  z-index: 2;
  transform: translateZ(34px);
}
.domaine-label h3 {
  color: var(--light);
  font-size: 21px;
  line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) {
  .domaine-img { animation: none; }
}
@media (max-width: 1100px) { .domaines-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .domaines-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .domaines-grid { grid-template-columns: 1fr; } .domaine-tile { height: 240px; } }
