/* ============================================
   NB FORMATION — Design System
   Ivory canvas, Claude orange, Fraunces italic
   ============================================ */

:root {
  /* Canvas */
  --bg: #F5F1E8;
  --bg-soft: #EFE9DC;
  --bg-deep: #E8DFD0;
  --paper: #FAF6EE;

  /* Brand */
  --orange: #CC785C;
  --orange-hot: #D97757;
  --orange-deep: #B86548;
  --orange-light: #E89B7E;
  --orange-glow: rgba(204, 120, 92, 0.15);

  /* Ink */
  --ink: #1F1B16;
  --ink-soft: #3A322A;
  --ink-mute: #6B6256;
  --ink-faint: #9A9082;

  /* Lines */
  --line: rgba(31, 27, 22, 0.08);
  --line-strong: rgba(31, 27, 22, 0.16);

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.65 0 0 0 0 0.55 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: var(--paper); }

/* ============================================
   THREE.JS SCENE
   ============================================ */
#scene-container {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#scene-container canvas {
  pointer-events: auto;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease);
  opacity: 0.6;
  filter: blur(40px);
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo-mark { color: var(--ink); }
.logo-mark-orange {
  color: var(--orange);
  font-style: italic;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.btn-nav):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-nav {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.btn-nav:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
  }
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 3;
}

.section {
  padding: 140px 0;
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  position: relative;
  padding-left: 28px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--orange);
  transform: translateY(-50%);
}

.soon-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--orange);
  color: var(--paper);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: soonPulse 2.5s var(--ease) infinite;
}

@keyframes soonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 120, 92, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(204, 120, 92, 0); }
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.section-sub {
  margin-top: 28px;
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.italic { font-style: italic; font-weight: 300; }
.orange { color: var(--orange); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--orange);
  color: var(--paper);
  box-shadow: 0 8px 24px -8px rgba(204, 120, 92, 0.5);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-hot), var(--orange-deep));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(204, 120, 92, 0.6);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 32px 80px;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 3;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 var(--orange);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 120, 92, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(204, 120, 92, 0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1.2s var(--ease-out) forwards;
}

.hero-line:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 48px;
  opacity: 0;
  animation: heroIn 1.2s var(--ease-out) 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
  opacity: 0;
  animation: heroIn 1.2s var(--ease-out) 0.6s forwards;
}

.hero-stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroIn 1.2s var(--ease-out) 0.8s forwards;
}

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

.stat-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  animation: heroIn 1.2s var(--ease-out) 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--orange), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--orange);
  animation: scrollDown 2s var(--ease) infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ============================================
   POURQUOI
   ============================================ */
.pourquoi { background: var(--bg-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: var(--paper);
  padding: 48px 36px;
  border-radius: 24px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.5s var(--ease);
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-glow), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 32px 64px -24px rgba(31, 27, 22, 0.15);
}

.why-card:hover::before { opacity: 1; }

.why-card > * { position: relative; z-index: 2; }

.why-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 24px;
}

.why-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}

.why-card p {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.7;
}

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

/* ============================================
   METIERS
   ============================================ */
.metiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metier-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  cursor: pointer;
}

.metier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--orange-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.metier-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 40px 80px -32px rgba(204, 120, 92, 0.3);
}

.metier-card:hover::after { opacity: 1; }

.metier-card > * { position: relative; z-index: 2; }

.metier-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange-glow), rgba(204,120,92,0.05));
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.5s var(--ease);
}

.metier-icon svg { width: 26px; height: 26px; }

.metier-card:hover .metier-icon {
  background: var(--orange);
  color: var(--paper);
  transform: rotate(-6deg) scale(1.1);
}

.metier-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.metier-tagline {
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  font-style: italic;
}

.metier-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metier-card li {
  font-size: 14px;
  color: var(--ink-mute);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.metier-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 600;
}

@media (max-width: 900px) {
  .metiers-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .metiers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PROGRAMME / FORMULES
   ============================================ */
.programme { background: var(--bg-soft); }

.formules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.formule-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 36px;
  position: relative;
  transition: all 0.5s var(--ease);
}

.formule-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.04);
  box-shadow: 0 32px 64px -16px rgba(31, 27, 22, 0.35);
}

.formule-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--paper);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.formule-card:not(.featured):hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 24px 48px -16px rgba(204, 120, 92, 0.25);
}

.formule-duration {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.formule-card.featured .formule-duration {
  color: rgba(245, 241, 232, 0.7);
}

.formule-hours {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.formule-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.formule-card p {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  min-height: 48px;
}

.formule-card.featured p { color: rgba(245, 241, 232, 0.75); }

.formule-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.formule-card.featured .formule-points {
  border-top-color: rgba(245, 241, 232, 0.15);
}

.formule-points li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.formule-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.livrables {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}

.livrables h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.livrables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.livrable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  transition: all 0.3s var(--ease);
}

.livrable:hover {
  background: var(--bg);
  transform: translateY(-3px);
}

.livrable svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
}

.livrable span {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .formules-grid { grid-template-columns: 1fr; gap: 16px; }
  .formule-card.featured { transform: none; }
  .livrables-grid { grid-template-columns: repeat(2, 1fr); }
  .livrables { padding: 32px 24px; }
}

/* ============================================
   PROGRAMME DETAIL
   ============================================ */
.programme-detail { background: var(--bg-soft); }

.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.qsection {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 32px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.qsection::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--orange-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.qsection:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(204, 120, 92, 0.25);
}

.qsection:hover::before { opacity: 1; }

.qsection > * { position: relative; z-index: 2; }

.qsection-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.qsection-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}

.qsection-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.qsection-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.qsection-body p { margin-bottom: 10px; }
.qsection-body p:last-child { margin-bottom: 0; }
.qsection-body strong { color: var(--ink); font-weight: 600; }
.qsection-body a { color: var(--orange); font-weight: 500; transition: color 0.3s var(--ease); }
.qsection-body a:hover { color: var(--orange-deep); }

.obj-list,
.dash-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.obj-list li {
  padding-left: 20px;
  position: relative;
}
.obj-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.dash-list li {
  padding-left: 16px;
  position: relative;
}
.dash-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

.qsection-highlight {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.qsection-highlight .qsection-head { border-bottom-color: rgba(245, 241, 232, 0.15); }
.qsection-highlight .qsection-head h3 { color: var(--paper); }
.qsection-highlight .qsection-num { color: var(--orange-light); }

.qsection-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
}

.qstat-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.03em;
}

.qstat-label {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.qsection-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.3s var(--ease);
}

.qsection-link:hover { transform: translateX(4px); }

.accessibilite {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 16px;
  padding: 28px 32px;
}

.accessibilite h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.accessibilite p {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.6;
}

.accessibilite strong { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .programme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .programme-grid { grid-template-columns: 1fr; }
  .qstat-num { font-size: 56px; }
}

/* Wide cards (objectifs / contenu) span full row with 2-col list */
.qsection-wide { grid-column: 1 / -1; }
.qsection-wide .obj-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
}
@media (max-width: 700px) {
  .qsection-wide .obj-list { grid-template-columns: 1fr; }
}

/* Indicateurs de résultats block */
.accessibilite.indicateurs { margin-top: 16px; border-left-color: var(--ink); }

/* Static field in simulator */
.sim-field-static .sim-static {
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.sim-field-static .sim-static strong { color: var(--orange); }

/* Contact address line */
.contact-addr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 8px;
}

.contact-addr svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* DA seal (no Qualiopi class) sizing */
.cert-da {
  width: 90px;
  height: 90px;
}

/* ============================================
   PDF DOWNLOAD
   ============================================ */
.pdf-download { padding: 100px 0; }

.pdf-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(31, 27, 22, 0.4);
}

.pdf-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orange-glow), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.pdf-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 16px;
  box-shadow:
    0 24px 48px -16px rgba(204, 120, 92, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(-4deg);
  transition: transform 0.6s var(--ease);
  z-index: 2;
}

.pdf-card:hover .pdf-icon-wrap { transform: rotate(0deg) scale(1.04); }

.pdf-icon {
  width: 60px;
  height: 60px;
  color: var(--paper);
}

.pdf-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  border-radius: 100px;
}

.pdf-content {
  position: relative;
  z-index: 2;
}

.pdf-content .eyebrow {
  color: var(--orange-light);
  margin-bottom: 16px;
}

.pdf-content .eyebrow::before { background: var(--orange-light); }

.pdf-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 20px;
}

.pdf-desc {
  color: rgba(245, 241, 232, 0.75);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.pdf-btn { margin-bottom: 28px; }

.pdf-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pdf-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.6);
}

.pdf-meta svg { color: var(--orange-light); flex-shrink: 0; }

@media (max-width: 900px) {
  .pdf-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 32px;
    text-align: center;
  }
  .pdf-icon-wrap {
    max-width: 160px;
    margin: 0 auto;
    transform: rotate(0deg);
  }
  .pdf-content .eyebrow { display: inline-block; }
  .pdf-meta { justify-content: center; }
  .pdf-desc { margin-left: auto; margin-right: auto; }
}

/* ============================================
   FINANCEMENT
   ============================================ */
.financement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
}

.financement-grid-2col {
  grid-template-columns: 1fr 1.4fr;
}

.cert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.5s var(--ease);
}

.cert-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.cert-seal {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-seal-qualiopi {
  width: auto;
  height: 100px;
}

.cert-seal-qualiopi img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(31, 27, 22, 0.08));
}

.cert-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cert-card p {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
}

.cert-card.opco {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-card.opco p { color: rgba(245, 241, 232, 0.75); margin-bottom: 16px; }
.cert-card.opco p:last-of-type { color: var(--paper); }

.cert-card.opco .btn-ghost {
  background: transparent;
  color: var(--orange);
  border-color: rgba(245, 241, 232, 0.2);
  align-self: flex-start;
  margin-top: 16px;
}

.cert-card.opco .btn-ghost:hover {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

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

/* ============================================
   SIMULATEUR
   ============================================ */
.simulator {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(31, 27, 22, 0.2);
}

.sim-form {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.sim-field select,
.sim-field input[type="text"],
.sim-field input[type="email"] {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CC785C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.sim-field select:focus,
.sim-field input:focus {
  outline: none;
  border-color: var(--orange);
  background-color: var(--paper);
}

.sim-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  padding: 0;
  background-image: none;
}

.sim-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: grab;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 12px rgba(204, 120, 92, 0.4);
  transition: all 0.2s var(--ease);
}

.sim-field input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-faint);
}

.radio-group {
  display: flex;
  gap: 8px;
}

.radio {
  flex: 1;
  cursor: pointer;
}

.radio input { display: none; }

.radio span {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.radio:hover span {
  border-color: var(--orange);
  color: var(--orange);
}

.radio input:checked + span {
  background: var(--orange);
  color: var(--paper);
  border-color: var(--orange);
}

.sim-result {
  background: var(--ink);
  color: var(--paper);
  padding: 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sim-result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(204, 120, 92, 0.3), transparent 60%);
}

.sim-result-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.sim-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  font-weight: 600;
}

.sim-amount {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-amount-sep {
  font-size: 0.45em;
  color: var(--ink-faint);
  font-style: italic;
}

.sim-currency {
  font-size: 18px;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 24px;
}

.sim-note {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.55);
  line-height: 1.6;
  margin-bottom: 32px;
}

.sim-cta { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .simulator { grid-template-columns: 1fr; }
  .sim-form, .sim-result { padding: 32px 24px; }
}

/* ============================================
   TEMOIGNAGES
   ============================================ */
.temoignages { background: var(--bg-soft); }

.temo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.temo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.temo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(31, 27, 22, 0.15);
}

.temo-card .quote {
  width: 28px;
  height: 28px;
  color: var(--orange);
  opacity: 0.4;
  margin-bottom: 20px;
}

.temo-card p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 28px;
}

.temo-card footer { display: flex; flex-direction: column; gap: 4px; }
.temo-card strong { font-weight: 600; color: var(--ink); }
.temo-card span { font-size: 13px; color: var(--ink-mute); }

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

/* ============================================
   FORMATEUR
   ============================================ */
.formateur-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.formateur-image {
  position: relative;
  aspect-ratio: 1;
}

.formateur-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 120px;
  color: var(--paper);
  font-weight: 400;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 2;
  box-shadow: 0 32px 64px -16px rgba(204, 120, 92, 0.4);
}

.formateur-photo {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 32px 64px -16px rgba(204, 120, 92, 0.4);
  border: 3px solid var(--paper);
  background: var(--orange);
}

.formateur-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.formateur-photo:hover img { transform: scale(1.05); }

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s var(--ease);
}

.linkedin-link svg { width: 18px; height: 18px; color: #0A66C2; }

.linkedin-link:hover {
  background: #0A66C2;
  color: var(--paper);
  border-color: #0A66C2;
  transform: translateY(-2px);
}

.linkedin-link:hover svg { color: var(--paper); }

.footer-col a.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a.footer-linkedin svg { color: #0A66C2; flex-shrink: 0; }

.formateur-deco {
  position: absolute;
  inset: -20px -20px 20px 20px;
  border: 2px solid var(--orange);
  border-radius: 32px;
  z-index: 1;
  opacity: 0.4;
}

.formateur-content .section-title { text-align: left; margin: 16px 0 28px; }

.formateur-bio,
.formateur-approche {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.formateur-approche strong { color: var(--ink); }

.formateur-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.tag {
  padding: 8px 16px;
  border: 1px solid var(--orange);
  border-radius: 100px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
  background: var(--orange-glow);
}

@media (max-width: 900px) {
  .formateur-wrap { grid-template-columns: 1fr; gap: 40px; }
  .formateur-image { max-width: 280px; margin: 0 auto; }
  .formateur-avatar { font-size: 80px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.faq-item:hover { border-color: var(--orange); }
.faq-item[open] {
  border-color: var(--orange);
  background: var(--bg);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-glow);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-plus {
  background: var(--orange);
  color: var(--paper);
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-soft); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-left .section-title { text-align: left; margin: 16px 0 28px; }

.contact-sub {
  font-size: 17px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-direct { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s var(--ease);
}

.contact-link svg { width: 20px; height: 20px; }
.contact-link:hover { color: var(--orange-deep); transform: translateX(4px); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  resize: vertical;
}

.form-field textarea { min-height: 120px; line-height: 1.5; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--paper);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CC785C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.contact-form button { align-self: flex-start; margin-top: 8px; }

.form-status {
  font-size: 14px;
  color: var(--orange);
  margin-top: 8px;
  min-height: 20px;
}

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}

.footer-brand .logo { font-size: 28px; margin-bottom: 16px; }
.footer-brand .logo-mark { color: var(--paper); }
.footer-brand .logo-mark-orange { color: var(--orange); }
.footer-brand p { color: rgba(245, 241, 232, 0.6); font-size: 14px; line-height: 1.6; max-width: 320px; }

.footer-col h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(245, 241, 232, 0.6);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover { color: var(--orange); }

.footer-col strong { color: var(--paper); font-weight: 500; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }
.reveal:nth-child(9) { transition-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
