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

/* ===========================
   DESIGN TOKENS — premium-hybrid-design (custom orange brand)
=========================== */
:root {
  /* Surfaces */
  --background:        #0a0a0b;
  --surface:           #111114;
  --surface-elevated:  #17171b;
  --surface-subtle:    #1c1c21;

  /* Text */
  --text-primary:   #f5f5f7;
  --text-secondary: #c8c8cf;
  --text-muted:     #9a9aa3; /* AA+ contrast on --background */

  /* Accent — brand orange */
  --accent:        #ff6b00;
  --accent-hover:  #ff8420;
  --accent-soft:   rgba(255, 107, 0, 0.12);
  --accent-ring:   rgba(255, 107, 0, 0.20);
  --accent-glow:   rgba(255, 107, 0, 0.40);
  --accent-glow-strong: rgba(255, 107, 0, 0.50);

  /* Borders */
  --border:         #26262b;
  --border-strong:  #34343a;
  --border-subtle:  rgba(255, 255, 255, 0.06);

  /* Status */
  --success: #22c55e;
  --danger:  #eb5757;

  /* Gradients — used only on hero */
  --gradient-hero:    linear-gradient(135deg, #ff6b00 0%, #ff9b3d 50%, #ff5a36 100%);
  --gradient-ambient: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 0, 0.18) 0%, transparent 70%);

  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 17px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Spacing */
  --nav-h: 72px;
  --max-w: 1200px;
  --section-gap: 128px;
  --section-gap-sm: 80px;

  /* Easing */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-spring: cubic-bezier(0.28, 1.5, 0.32, 1);

  /* Shadows — used sparingly */
  --shadow-hover:    0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-modal:    0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-accent:   0 8px 24px -8px var(--accent-glow);
  --shadow-accent-hover: 0 12px 32px -8px var(--accent-glow-strong);
}

/* ===========================
   BASE
=========================== */
html { scroll-behavior: smooth; }

/* ===========================
   SKIP LINK (a11y)
=========================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top 200ms var(--ease-default);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Bloque le scroll arrière-plan quand le menu mobile est ouvert */
body.menu-open { overflow: hidden; }

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss02";
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

em { font-style: normal; color: var(--accent); }

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

/* ===========================
   TYPOGRAPHY
=========================== */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.body-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 60ch;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms var(--ease-default),
              border-color 150ms var(--ease-default),
              transform 100ms ease,
              box-shadow 200ms var(--ease-default);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent-hover);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--surface);
}

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-full { width: 100%; }

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out-expo),
              transform 600ms var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 200ms var(--ease-default),
              border-color 200ms var(--ease-default);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms var(--ease-default),
              background 150ms var(--ease-default);
}
.nav-links a:hover { color: var(--text-primary); background: var(--surface); }
.nav-links a.is-active { color: var(--text-primary); }

.nav-links a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
}
.nav-links a.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 200ms var(--ease-default), opacity 200ms var(--ease-default);
}
.burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   MOBILE MENU
=========================== */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 250ms var(--ease-default);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mob-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  transition: background 150ms ease;
}
.mob-link:hover { background: var(--surface); }

/* ===========================
   HERO
=========================== */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 32px) 0 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gradient-ambient);
  pointer-events: none;
}
/* Hide the legacy decoration divs — discipline anti-pattern */
.orb, .grid-overlay, .hex-pattern { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  margin-bottom: 32px;
}

.hero-top-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-logo-big {
  width: 400px;
  height: 400px;
  object-fit: contain;
  flex-shrink: 0;
  /* No infinite glow animation — premium discipline */
  filter: drop-shadow(0 12px 32px rgba(255, 107, 0, 0.25));
}

.hero-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.hero-title em {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-subtitle .badge-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 9px;
  margin-bottom: 2px;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

/* Hero KPIs */
.hero-kpis {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
}
.hero-kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.hero-kpi-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===========================
   ABOUT
=========================== */
#about {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}

.stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.avatar-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 200ms var(--ease-default),
              transform 250ms var(--ease-out-expo);
}
.avatar-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.08);
  transform-origin: center 20%;
}
.avatar-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.avatar-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(2, 184, 204, 0.08);
  border: 1px solid rgba(2, 184, 204, 0.25);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 184, 204, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(2, 184, 204, 0); }
}

/* ===========================
   EXPERIENCE TIMELINE
=========================== */
#experience { padding: var(--section-gap) 0; }

.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 16px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -32px;
  top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--background);
  box-shadow: 0 0 0 3px var(--surface);
  flex-shrink: 0;
}
.tl-dot--edu {
  background: var(--text-muted);
}
.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 200ms var(--ease-default),
              transform 200ms var(--ease-out-expo);
}
.tl-content:hover {
  border-color: var(--accent-ring);
  transform: translateX(2px);
}
.tl-period {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tl-role {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.tl-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   EXPERTISE
=========================== */
#expertise {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.section-header { margin-bottom: 56px; }

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.expertise-card--wide { grid-column: 1 / -1; }

.expertise-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 200ms var(--ease-default),
              transform 250ms var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.expertise-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-3px);
}

/* Sub-card grid inside expertise cards */
.expertise-subcards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.expertise-subcards li {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 200ms var(--ease-default),
              transform 200ms var(--ease-out-expo);
}
.expertise-subcards li:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}
.expertise-subcards .subcard-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

/* "Formations de prédilection" banner */
.expertise-formations {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.expertise-formations-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.expertise-formations-tag {
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  color: var(--accent);
}

.card-icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 100%; height: 100%; }
.expertise-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Wide card: icon + title inline */
.expertise-card--wide .card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.expertise-card--wide .card-icon {
  width: 36px;
  height: 36px;
  margin: 0;
  flex-shrink: 0;
}
.expertise-card--wide h3 {
  font-size: 20px;
  margin: 0;
}
.expertise-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   SCHOOLS
=========================== */
#schools { padding: var(--section-gap) 0; }

.schools-track-wrapper {
  overflow: hidden;
  margin-bottom: 56px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.schools-track {
  display: flex;
  gap: 16px;
  animation: marquee 24s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.school-logo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 160px;
}
.school-logo-box img {
  max-height: 36px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 200ms var(--ease-default);
}
.school-logo-box:hover img { opacity: 0.95; }

.schools-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.school-card-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 4px;
}
.school-card-logo img {
  max-height: 56px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.school-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color 200ms var(--ease-default),
              transform 250ms var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 200px;
}
.school-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-3px);
}
.school-flag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
/* ===========================
   CONTACT
=========================== */
#contact { padding: var(--section-gap) 0 96px; background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-left {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.contact-photo-wrap {
  position: relative;
  display: inline-block;
}

.contact-photo-img {
  width: 220px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--border);
  transition: transform 300ms var(--ease-out-expo);
}
.contact-photo-img:hover { transform: translateY(-3px); }

.contact-photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 150ms var(--ease-default);
}
.contact-link:hover { color: var(--accent); }
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }
.contact-link:hover svg { color: var(--accent); }

.contact-form {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.form-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  width: fit-content;
}
.tab-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 150ms var(--ease-default),
              color 150ms var(--ease-default);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 150ms var(--ease-default),
              box-shadow 150ms var(--ease-default);
  appearance: none;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(235, 87, 87, 0.12);
}

/* Case à cocher RGPD */
.field-consent {
  margin: 4px 0 18px;
}
.consent-label {
  display: block;
  position: relative;
  padding-left: 30px;
  min-height: 20px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background-color: var(--background);
  cursor: pointer;
  transition: border-color 160ms var(--ease-default), background-color 160ms var(--ease-default), box-shadow 160ms var(--ease-default);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.consent-text {
  display: block;
}
.consent-label input[type="checkbox"]:hover {
  border-color: var(--accent);
}
.consent-label input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  /* Checkmark SVG inline — net à toutes les tailles, antialiasé */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5,8.5 6.8,11.6 12.5,5'/></svg>");
}
.consent-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-text a:hover {
  color: var(--accent-hover);
}
.field-consent.has-error .consent-label {
  color: var(--danger);
}
.field-consent.has-error input[type="checkbox"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(235, 87, 87, 0.12);
}

/* Honeypot anti-bot : invisible pour les humains mais présent dans le DOM pour les crawlers */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Hint "Réponse garantie sous 24h" sous le formulaire */
.form-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 14px;
}
.form-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.form-error {
  font-size: 14px;
  color: var(--danger);
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(235, 87, 87, 0.08);
  border: 1px solid rgba(235, 87, 87, 0.25);
  border-radius: var(--radius-sm);
}
.form-error[hidden] { display: none; }

.btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out-expo);
}
.btn:hover .btn-arrow { transform: translateX(2px); }

/* Success state — replaces form content via class toggle */
.contact-form.is-success .form-tabs,
.contact-form.is-success .form-body {
  display: none;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 56px 24px;
  text-align: center;
}
.contact-form.is-success .form-success { display: flex; }

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
  flex-shrink: 0;
}
.form-success p {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  max-width: 36ch;
}
.form-success .btn { margin-top: 4px; }

/* ===========================
   FOOTER
=========================== */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-actions { display: flex; gap: 8px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 150ms var(--ease-default);
}
.footer-link:hover { color: var(--text-primary); }

/* ===========================
   SUBPAGE LAYOUT (faq.html, mentions-legales.html)
=========================== */
body.subpage main {
  padding-top: var(--nav-h);
}

.page-header {
  padding: 64px 0 48px;
  background: var(--background);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 150ms var(--ease-default);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text-primary); }

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.page-title em {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.page-lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 28px;
}

.page-toc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.page-toc-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: border-color 150ms var(--ease-default),
              color 150ms var(--ease-default);
}
.page-toc-link:hover {
  border-color: var(--accent-ring);
  color: var(--accent);
}

.page-section {
  padding: 64px 0;
}
.page-section--alt {
  background: var(--surface);
}

/* Texte long format (paragraphes, listes) sur sous-pages */
.page-prose {
  max-width: 72ch;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.page-prose p {
  margin-bottom: 18px;
}
.page-prose p:last-child {
  margin-bottom: 0;
}
.page-prose ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
}
.page-prose li {
  margin-bottom: 8px;
}
.page-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}
.page-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-ring);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms var(--ease-default);
}
.page-prose a:hover {
  text-decoration-color: var(--accent);
}

/* Bloc CTA en fin de page (encart contact) */
.page-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-hero);
}
.page-cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}
.page-cta-text {
  max-width: 56ch;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.page-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .page-cta { padding: 32px 24px; }
  .page-cta-actions { flex-direction: column; }
  .page-cta-actions .btn { width: 100%; }
}

/* ===========================
   PROGRAMMES
=========================== */
#programmes {
  padding: var(--section-gap) 0;
  background: var(--background);
}

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.programme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 250ms var(--ease-default),
              transform 250ms var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.programme-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-3px);
}

.programme-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms var(--ease-default), gap 200ms var(--ease-default);
  gap: 4px;
}
.programme-link:hover {
  color: var(--accent-hover);
  gap: 8px;
}

.programme-flag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.programme-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.programme-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.programme-modules {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.programme-modules li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.programme-modules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.programmes-cta {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.programmes-cta p {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  min-width: 280px;
}

/* ===========================
   FAQ
=========================== */
#faq {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms var(--ease-default);
}
.faq-item[open] {
  border-color: var(--accent-ring);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 150ms var(--ease-default);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 250ms var(--ease-out-expo),
              border-color 200ms var(--ease-default);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 4px;
  border-color: var(--accent);
}
.faq-item summary:hover { color: var(--accent); }

.faq-body {
  padding: 0 24px 20px;
}
.faq-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-body strong { color: var(--text-primary); font-weight: 600; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-left { display: none; }
}

@media (max-width: 1024px) {
  :root { --section-gap: 96px; }
  .about-grid     { grid-template-columns: 1fr; gap: 48px; }
  .about-visual   { display: none; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .programmes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-top {
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative; /* anchor du logo absolu */
  }
  /* Mobile : logo en haut à droite, hors flux pour ne pas compresser le contenu */
  .hero-logo-big {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
  }
  /* Le titre est le seul élément qui doit céder la place au logo */
  .hero-title {
    padding-right: 100px;
  }
  .hero-kpis { gap: 20px; }
  .kpi-num { font-size: 26px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .field-row     { grid-template-columns: 1fr; }
  .stats         { flex-wrap: wrap; gap: 24px; }
  .contact-form  { padding: 24px 20px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-actions { justify-content: center; }
  .footer-nav    { justify-content: center; }
  .programme-card { padding: 24px; }
  .programmes-cta { padding: 24px; flex-direction: column; text-align: center; }
  .faq-item summary { font-size: 15px; padding: 18px 20px; }
  .faq-body { padding: 0 20px 18px; }
}

/* ===========================
   GRANDS ÉCRANS (FHD / 2K / QHD) — min-width: 1600px
   Évite l'effet "site perdu au milieu d'un écran large"
=========================== */
@media (min-width: 1600px) {
  :root {
    --max-w: 1500px;        /* +25% de largeur de contenu */
    --section-gap: 160px;   /* respiration verticale */
  }
  .hero-title {
    font-size: clamp(5rem, 6.5vw, 8rem); /* +33% au plafond */
  }
  .hero-logo-big {
    width: 480px;
    height: 480px;
  }
}
