@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Design Tokens - Curated HSL Palette */
  --h-primary: 212; /* Blue Navy basis */
  
  --color-ink: hsl(var(--h-primary), 60%, 13%);
  --color-muted: hsl(var(--h-primary), 35%, 34%);
  --color-soft: hsl(var(--h-primary), 22%, 52%);
  
  --color-primary: hsl(var(--h-primary), 85%, 22%);
  --color-primary-strong: hsl(var(--h-primary), 90%, 32%);
  --color-primary-light: hsl(var(--h-primary), 70%, 96%);
  
  --color-accent: hsl(198, 93%, 44%); /* Cyan */
  --color-accent-strong: hsl(198, 95%, 38%);
  --color-accent-light: hsl(198, 85%, 94%);
  
  --color-surface: hsl(210, 60%, 98%);
  --color-surface-strong: hsl(207, 45%, 93%);
  --color-paper: hsl(0, 0%, 100%);
  --color-line: hsl(210, 32%, 91%);
  
  --color-success: hsl(152, 76%, 28%);
  --color-success-light: hsl(152, 65%, 94%);
  --color-warning: hsl(35, 84%, 35%);
  --color-warning-light: hsl(35, 75%, 94%);
  --color-danger: hsl(354, 76%, 42%);
  
  /* Modern Shadows */
  --shadow-sm: 0 4px 12px rgba(7, 31, 61, 0.03);
  --shadow-md: 0 12px 36px rgba(7, 31, 61, 0.06);
  --shadow-lg: 0 24px 64px rgba(7, 31, 61, 0.1);
  --shadow-glow: 0 0 30px rgba(13, 159, 226, 0.15);
  
  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --container: min(1200px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

/* Beautiful dynamic background */
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 10% 20%, hsla(198, 93%, 44%, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(var(--h-primary), 85%, 22%, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--color-surface) 100%);
  content: "";
}

/* Base elements */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

p {
  margin: 0 0 1.25rem 0;
}
p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}
li::marker {
  color: var(--color-accent);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 20px;
  top: 15px;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: var(--color-primary-strong);
  color: var(--color-paper);
  font-weight: 700;
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header style with sleek glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(7, 31, 61, 0.05);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 64px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  transition: transform 200ms ease;
}
.brand:hover {
  transform: scale(1.02);
}
.brand img {
  width: 190px;
  height: auto;
  border-radius: 0;
  clip-path: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-muted);
  font-size: 0.93rem;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 8px 4px;
}
.nav-links a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-accent);
  content: "";
  transition: width 240ms ease, left 240ms ease;
}
.nav-links a:hover {
  color: var(--color-primary-strong);
}
.nav-links a:hover::after {
  left: 0;
  width: 100%;
}
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}
.nav-links a[aria-current="page"]::after {
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
}

/* Dropdown navigation styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-toggle .chevron {
  display: inline-block;
  width: 10px;
  height: 6px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  content: "";
  transition: transform 200ms ease;
}

.dropdown:hover .dropdown-toggle .chevron,
.dropdown:focus-within .dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 280px;
  padding: 10px 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Open states */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown-menu[data-open] {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  padding: 10px 20px !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  background-color: var(--color-surface);
  color: var(--color-accent-strong);
}

.dropdown-menu a[aria-current="page"] {
  background-color: var(--color-surface-strong);
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 200ms, border-color 200ms;
}
.menu-toggle:hover {
  background-color: var(--color-surface);
  border-color: var(--color-soft);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  content: "";
  transition: transform 200ms, opacity 200ms;
}
.menu-toggle span::before {
  transform: translateY(-6px);
}
.menu-toggle span::after {
  transform: translateY(4px);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: var(--color-paper);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-strong) 0%, hsl(var(--h-primary), 90%, 25%) 100%);
  box-shadow: 0 10px 24px rgba(10, 57, 114, 0.22);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  color: var(--color-paper);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--color-accent-strong) 0%, hsl(198, 95%, 32%) 100%);
  box-shadow: 0 10px 24px rgba(13, 159, 226, 0.25);
}

.btn-ghost {
  border-color: var(--color-line);
  background: var(--color-paper);
  color: var(--color-primary-strong);
}
.btn-ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-soft);
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-phone::before {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  content: "";
}
.btn-phone:hover {
  color: var(--color-accent-strong);
}

/* Sections styling */
.section {
  padding: clamp(60px, 9vw, 120px) 0;
}

.section-tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

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

/* Eyebrows & headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--color-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 16px;
  height: 2px;
  background-color: var(--color-accent);
  content: "";
}

.section-heading {
  max-width: 800px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-heading p {
  max-width: 65ch;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* ============================================
   Hero — "Le centre en preuve"
   Asymmetric, human + proof led, single primary action.
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 5vw, 72px);
}
/* Sober ambient accent: a soft top-right corner glow that fades smoothly
   across the whole hero, so no hard vertical edge appears on any viewport. */
.hero::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 85% at 100% 0%, hsla(198, 93%, 44%, 0.10) 0%, transparent 58%);
  content: "";
  pointer-events: none;
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
}

/* ---- Left column: the message ---- */
.hero-main {
  max-width: 600px;
}

.hero-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title-em {
  color: var(--color-accent-strong);
}

.hero-lead {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn-lg {
  min-height: 54px;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.hero-tertiary {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.hero-tertiary .hero-phone {
  color: var(--color-primary-strong);
  font-weight: 800;
  white-space: nowrap;
}
.hero-tertiary .hero-phone:hover {
  color: var(--color-accent-strong);
}

/* ---- Right column: human photo + live session ---- */
.hero-aside {
  position: relative;
}

.hero-figure {
  position: relative;
  margin: 0;
  height: clamp(420px, 50vw, 580px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 6s ease;
}
.hero-aside:hover .hero-figure img {
  transform: scale(1.04);
}
.hero-figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 31, 61, 0.62) 100%);
  content: "";
  pointer-events: none;
}

.hero-nametag {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  text-align: right;
  color: var(--color-paper);
  text-shadow: 0 2px 10px rgba(7, 31, 61, 0.55);
}
.hero-nametag-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}
.hero-nametag-role {
  display: block;
  font-size: 0.8rem;
  opacity: 0.92;
}

.hero-session {
  position: absolute;
  left: -20px;
  bottom: 20px;
  z-index: 3;
  width: min(270px, 82%);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-paper);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid hsla(198, 93%, 44%, 0.4);
}
.hero-session-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: hsl(198, 90%, 78%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px hsla(198, 93%, 44%, 0.25);
}
.hero-session-date {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}
.hero-session-meta {
  margin: 0 0 14px;
  color: var(--color-primary-light);
  font-size: 0.86rem;
  font-weight: 500;
}
.hero-session-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-paper);
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-session-link::after {
  width: 15px;
  height: 15px;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  content: "";
  transition: transform 200ms ease;
}
.hero-session-link:hover {
  color: var(--color-accent);
}
.hero-session-link:hover::after {
  transform: translateX(4px);
}

/* ---- Proof bar: honest, no fabricated metrics ---- */
.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: clamp(48px, 6vw, 76px) 0 0;
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--color-line);
  list-style: none;
}
.hero-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
}
.hero-proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent-strong);
}
.hero-proof-icon svg {
  width: 21px;
  height: 21px;
}
.hero-proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}
.hero-proof-text strong {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-proof-sub {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.hero-proof-sub sup {
  margin-left: 1px;
  font-size: 0.68em;
  line-height: 0;
}

.hero-proof-note {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

/* ---- Hero entrance: CSS only, no-JS safe, reduced-motion safe ---- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-main > *,
.hero-aside,
.hero-proof-item {
  animation: heroRise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title { animation-delay: 60ms; }
.hero-lead { animation-delay: 190ms; }
.hero-actions { animation-delay: 270ms; }
.hero-tertiary { animation-delay: 330ms; }
.hero-aside { animation-delay: 230ms; }
.hero-proof-item:nth-child(1) { animation-delay: 420ms; }
.hero-proof-item:nth-child(2) { animation-delay: 480ms; }
.hero-proof-item:nth-child(3) { animation-delay: 540ms; }
.hero-proof-item:nth-child(4) { animation-delay: 600ms; }

/* Reduced motion: the global rule zeroes duration but not delay, which would
   leave hero elements invisible during their stagger. Neutralize fully. */
@media (prefers-reduced-motion: reduce) {
  .hero-main > *,
  .hero-aside,
  .hero-proof-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Logo strip / Qualiopi section */
.logo-strip {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
  padding: 32px 0;
}

.logo-strip-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 32px;
}

.qualiopi-box {
  display: flex;
  align-items: center;
  gap: 24px;
}
.qualiopi-box img {
  width: min(260px, 100%);
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.qualiopi-box p {
  max-width: 60ch;
  color: var(--color-muted);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Grid layout */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Formation Cards */
.formation-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-surface-strong);
}

.formation-card h3 {
  margin: 18px 0 12px 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.25;
}
.formation-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.formation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  background: var(--color-surface-strong);
  color: var(--color-primary-strong);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status-available {
  background: var(--color-success-light);
  color: var(--color-success);
}
.status-available::before {
  background-color: var(--color-success);
}

.status-soon {
  background: var(--color-warning-light);
  color: var(--color-warning);
}
.status-soon::before {
  background-color: var(--color-warning);
}

.formation-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary-strong);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 8px;
  transition: color 200ms ease;
}
.formation-card .card-link::after {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  content: "";
  transition: transform 200ms ease;
}
.formation-card:hover .card-link {
  color: var(--color-accent-strong);
}
.formation-card:hover .card-link::after {
  transform: translateX(4px);
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Split panel section (Financing etc.) */
.band {
  background: linear-gradient(135deg, var(--color-primary) 0%, hsl(var(--h-primary), 90%, 15%) 100%);
  color: var(--color-paper);
}
.band .eyebrow {
  color: var(--color-accent);
}
.band .eyebrow::before {
  background-color: var(--color-accent);
}

.financing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow-lg);
}
.financing-panel h2 {
  margin: 0 0 16px 0;
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}
.financing-panel p {
  color: var(--color-primary-light);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Financing section — clean two-part layout, no side-stripe */
.finance {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.finance-intro h2 {
  margin: 0 0 16px;
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}
.finance-intro > p {
  margin: 0;
  color: var(--color-primary-light);
  font-size: 1.05rem;
}
.finance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}
.finance-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary-light);
  padding: 8px 15px;
  font-size: 0.86rem;
  font-weight: 600;
}
.finance-tags li::before {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  content: "";
}
.finance-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 38px);
}
.finance-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 159, 226, 0.18);
  color: var(--color-accent);
}
.finance-card-icon svg {
  width: 28px;
  height: 28px;
}
.finance-card h3 {
  margin: 0 0 10px;
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}
.finance-card > p {
  margin: 0;
  color: var(--color-primary-light);
  font-size: 1rem;
  line-height: 1.6;
}
.finance-card-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  font-weight: 600;
}
.finance-card-note::before {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.45);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain;
  content: "";
}

@media (max-width: 1024px) {
  .finance {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Split view & Layout grids */
.split {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 8vw, 96px);
}

.content-flow {
  max-width: 800px;
}
.content-flow h2 {
  margin: 0 0 20px 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}
.content-flow h3 {
  margin: 32px 0 16px 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}
.content-flow p {
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.content-flow ul {
  padding-left: 1.2rem;
  list-style: none;
}
.content-flow li {
  position: relative;
  padding-left: 28px;
  color: var(--color-muted);
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.content-flow li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  content: "";
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}
.media-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 6s ease;
}
.media-card:hover img {
  transform: scale(1.05);
}

/* Side Panel (Fiches formations) */
.side-panel {
  position: sticky;
  top: 180px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-md);
  padding: 32px;
  z-index: 10;
}
.side-panel h2 {
  margin: 0 0 20px 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}
.side-panel .cta-row {
  margin-top: 24px;
  flex-direction: column;
  gap: 12px;
}
.side-panel .cta-row .btn {
  width: 100%;
}

.detail-list {
  display: grid;
  gap: 16px;
  margin: 0;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--color-line);
  padding-bottom: 12px;
}
.detail-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.detail-list dt {
  color: var(--color-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.detail-list dd {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Page Hero Header style */
.page-hero {
  padding: clamp(60px, 9vw, 110px) 0;
  background: 
    linear-gradient(135deg, rgba(13, 159, 226, 0.08) 0%, rgba(10, 57, 114, 0.04) 100%),
    var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}
.page-hero h1 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
}
.page-hero p {
  max-width: 70ch;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--color-soft);
  font-size: 0.88rem;
  font-weight: 600;
}
.breadcrumb a {
  color: var(--color-primary-strong);
}
.breadcrumb a:hover {
  color: var(--color-accent-strong);
}
.breadcrumb span {
  display: inline-flex;
  align-items: center;
}

/* Category Block */
.category-block {
  margin-bottom: 64px;
}
.category-block:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-surface-strong);
  padding-bottom: 16px;
}
.category-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

/* Contact Grid & Form styling */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(40px, 6vw, 80px);
}

.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}
.field label {
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  transition: all 200ms ease;
  box-shadow: inset 0 2px 4px rgba(7, 31, 61, 0.02);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--color-soft);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
  outline: none;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-help {
  color: var(--color-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-feedback {
  border-radius: var(--radius-sm);
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid rgba(30, 122, 88, 0.2);
  padding: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.contact-card h2 {
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}
.contact-card h3 {
  margin: 28px 0 12px 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-strong);
}
.contact-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.contact-card p strong {
  color: var(--color-ink);
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

/* Footer Section */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: hsl(var(--h-primary), 60%, 10%);
  color: hsl(var(--h-primary), 35%, 85%);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(180px, 0.6fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
  border-radius: 0;
  clip-path: inset(5px);
}
.site-footer p {
  color: hsl(var(--h-primary), 25%, 75%);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer h2 {
  margin: 0 0 20px 0;
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
.site-footer li {
  margin-bottom: 12px;
}
.site-footer a {
  color: hsl(var(--h-primary), 35%, 85%);
  font-size: 0.95rem;
  transition: color 200ms ease;
}
.site-footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  color: hsl(var(--h-primary), 20%, 65%);
  font-size: 0.88rem;
}
.footer-bottom span {
  display: inline-flex;
}

.legal-small {
  color: var(--color-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cookie-button {
  border: 0;
  background: transparent;
  color: hsl(var(--h-primary), 35%, 85%);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: var(--color-paper);
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(7, 31, 61, 0.08);
  padding: 8px max(20px, calc((100vw - 1200px) / 2 + 20px));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.cookie-banner-copy strong {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.cookie-banner-copy p {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.38;
  margin-bottom: 0;
}

.cookie-banner-copy a,
.cookie-modal-note a {
  color: var(--color-primary-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-copy a {
  display: inline-block;
  margin-top: 0;
  font-size: 0.8rem;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner-actions {
  align-content: center;
  max-width: none;
}

.cookie-btn {
  min-height: 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.54rem 0.78rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.cookie-btn-choice {
  border-color: var(--color-primary);
  background: var(--color-paper);
  color: var(--color-primary);
}

.cookie-btn-choice:hover {
  background: var(--color-primary-light);
}

.cookie-btn-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-paper);
}

.cookie-btn-primary:hover {
  background: var(--color-primary-strong);
}

.cookie-btn-ghost {
  background: var(--color-surface);
  color: var(--color-muted);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 31, 61, 0.58);
}

.cookie-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 4vw, 34px);
}

.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cookie-modal-kicker {
  display: block;
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cookie-modal-header h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.cookie-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.cookie-modal-intro,
.cookie-modal-note {
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.cookie-modal-intro {
  margin-top: 18px;
}

.cookie-toggle-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cookie-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding: 16px;
}

.cookie-toggle strong {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cookie-toggle small {
  display: block;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
}

.cookie-toggle input:disabled {
  opacity: 0.65;
}

.cookie-modal-note {
  margin-top: 18px;
}

/* Animations using IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), 
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .nav-shell {
    min-height: 62px;
  }
  .hero-shell,
  .split,
  .contact-grid,
  .financing-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-session {
    position: static;
    left: 0;
    width: 100%;
    margin-top: 18px;
  }
  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
  .split {
    display: flex;
    flex-direction: column;
  }
  .side-panel {
    position: static;
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-shell {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-paper);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    gap: 16px;
    z-index: 100;
  }
  .nav-links[data-open] {
    display: flex;
    animation: slideDown 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  .nav-links a {
    padding: 8px 0;
    font-size: 1.05rem;
  }
  .nav-links a::after {
    display: none;
  }

  .dropdown {
    width: 100%;
  }
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-accent-light);
    border-radius: 0;
    padding: 4px 0 4px 16px;
    margin: 4px 0 8px 0;
    min-width: 100%;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .dropdown-menu[data-open] {
    display: flex;
  }
  .dropdown-menu a {
    padding: 6px 0 !important;
    white-space: normal;
    font-size: 0.95rem;
  }

  .nav-actions {
    display: none;
  }
  
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-banner {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    width: auto;
    padding: 10px 16px;
  }

  .cookie-banner-copy {
    display: grid;
    gap: 4px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
  }

  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-btn {
    width: 100%;
    min-height: 36px;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 32px, 1200px);
  }
  
  .brand img {
    width: 160px;
  }

  .nav-actions .btn {
    display: none;
  }

  .side-panel {
    padding: 24px;
  }

  .side-panel h2 {
    margin-bottom: 18px;
    font-size: 1.32rem;
    line-height: 1.15;
  }

  .detail-list {
    gap: 0;
  }

  .detail-list div {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-content: start;
    gap: 6px;
    padding: 14px 0;
  }

  .detail-list div:first-child {
    padding-top: 0;
  }

  .detail-list dt {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .detail-list dd {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .side-panel .cta-row {
    margin-top: 20px;
  }

  .side-panel .cta-row .btn {
    min-height: 48px;
    padding-inline: 1rem;
  }
  
  .hero-proof {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logo-strip-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .qualiopi-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .qualiopi-box img {
    width: min(220px, 100%);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive Training Finder & Roulette Game Styles */
.selector-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: inline-flex;
  background: rgba(7, 31, 61, 0.03);
  border: 1px solid var(--color-line);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 200ms ease;
  outline: none;
}
.filter-tab:hover {
  color: var(--color-ink);
  background: rgba(7, 31, 61, 0.02);
}
.filter-tab.active {
  background: var(--color-primary-strong);
  color: var(--color-paper);
  box-shadow: var(--shadow-sm);
}

/* Dynamic cards transitions */
.formation-card {
  transition: opacity 300ms ease, transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.formation-card.fade-out {
  opacity: 0;
  transform: scale(0.9);
}
.formation-card.hidden {
  display: none !important;
}

/* Stretched Link for Fully Clickable Cards */
.formation-card .card-link::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}

/* Curiosity-driven blurred price chip reveal widget */
.formation-card .price-chip {
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: background-color 300ms ease, border-color 300ms ease;
  z-index: 3; /* stays above the stretched card link */
  cursor: pointer;
  min-width: 110px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid transparent;
  padding: 0;
}
.formation-card .price-chip .price-btn {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-strong);
  background: #e6f6f9; /* nice light blue button */
  border: 1px solid rgba(0, 168, 204, 0.3);
  border-radius: 20px;
  transition: opacity 300ms ease, background-color 200ms ease;
  z-index: 4;
}
.formation-card .price-chip:hover .price-btn {
  background: #d4f0f5;
}
.formation-card .price-chip .price-value {
  opacity: 0;
  filter: blur(20px);
  will-change: filter, opacity;
  transition: filter 1.8s cubic-bezier(0.1, 0.8, 0.15, 1), opacity 0.8s ease;
  font-weight: 700;
  display: inline-block;
  padding: 0 12px;
}
.formation-card .price-chip .price-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-strong);
  background: #e6f6f9;
  border: 1px solid rgba(0, 168, 204, 0.3);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 5;
}

/* Searching state triggered on click */
.formation-card .price-chip.searching {
  border-color: rgba(0, 168, 204, 0.4);
  cursor: wait;
}
.formation-card .price-chip.searching .price-btn {
  opacity: 0;
  pointer-events: none;
}
.formation-card .price-chip.searching .price-loading {
  opacity: 1;
  animation: pulseText 1s infinite alternate;
}
@keyframes pulseText {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Revealed state triggered on click via JavaScript */
.formation-card .price-chip.revealed {
  background-color: var(--color-accent-light);
  border-color: rgba(0, 168, 204, 0.3);
  cursor: default;
}
.formation-card .price-chip.revealed .price-btn,
.formation-card .price-chip.revealed .price-loading {
  opacity: 0;
  pointer-events: none;
}
.formation-card .price-chip.revealed .price-value {
  opacity: 1;
  filter: blur(0);
}

/* Wide header images on training fiches and about pages */
.fiche-image {
  width: 100%;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}
.fiche-image img {
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .selector-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-tabs {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 8px;
  }
  .filter-tab {
    text-align: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Process timeline — line draws as you scroll
   Default (no JS): fully shown. JS adds .is-enhanced
   to start from gray and reveal step by step.
   ============================================ */
.steps {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.steps-list {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 0;
}
.step-node {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--color-surface);
  transition: background-color 350ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 350ms cubic-bezier(0.16, 1, 0.3, 1),
              color 350ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card {
  padding-top: 4px;
}
.step-card h3 {
  margin: 0 0 8px;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}
.step-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* The vertical rail behind the nodes */
.steps-rail {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 26px;
  width: 4px;
  border-radius: 4px;
  background: var(--color-line);
  overflow: hidden;
  z-index: 1;
}
.steps-rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-strong));
}

/* Enhanced (JS on): start empty and gray, reveal on scroll */
.steps.is-enhanced .steps-rail-fill {
  height: 0;
}
.steps.is-enhanced .step-node {
  background: var(--color-paper);
  border-color: var(--color-line);
  color: var(--color-soft);
}
.steps.is-enhanced .step {
  opacity: 0.5;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.steps.is-enhanced .step.is-active {
  opacity: 1;
}
.steps.is-enhanced .step.is-active .step-node {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-paper);
  transform: scale(1.06);
}

/* ============================================
   Scroll reveal — fine-grained, staggered.
   Gated on `.js` (added in <head>) so content stays
   visible without JS and there is no flash before reveal.
   ============================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"] {
  transform: translateX(-34px);
}
.js [data-reveal="right"] {
  transform: translateX(34px);
}
.js [data-reveal="zoom"] {
  transform: scale(0.95);
}
.js [data-reveal].in-view,
.js [data-reveal-group].in-view [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Reduced motion: drop the movement (translate/scale) but keep a gentle opacity
   fade so the reveal stays perceptible. Opacity is not vestibular motion, so it
   is acceptable here. The !important values intentionally override the global
   reduced-motion reset that would otherwise zero the transition. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    transform: none !important;
    transition: opacity 600ms ease !important;
    transition-delay: 0ms !important;
  }
}

/* ============================================
   Extra scroll flourishes
   ============================================ */
/* Top scroll-progress indicator */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 60;
  pointer-events: none;
}

/* Header gains depth once the page is scrolled */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(7, 31, 61, 0.08);
  border-bottom-color: rgba(7, 31, 61, 0.08);
}

/* A soft light sheen sweeps across primary CTAs on hover */
.btn-primary,
.btn-accent {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-accent::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: translateX(-210%) skewX(-18deg);
  transition: transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
  content: "";
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-accent:hover::after {
  transform: translateX(320%) skewX(-18deg);
}

/* A single "ping" ring when a timeline step becomes active */
.steps.is-enhanced .step.is-active .step-node::after {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0;
  animation: stepPing 900ms cubic-bezier(0.16, 1, 0.3, 1) 1;
  content: "";
  pointer-events: none;
}
@keyframes stepPing {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}
