/* ==========================================================================
   CAP FUTURE MAROC — Design tokens
   Palette: navy (marque) + orange (accent). Signature: motif "cap / route".
   ========================================================================== */

:root {
  /* --- Couleurs --- */
  --navy-900: #0A1A33;
  --navy-800: #0B1F3A;
  --navy-700: #0D2444;
  --navy-600: #122B52;
  --navy-500: #17335E;
  --navy-line: rgba(255, 255, 255, 0.08);
  --navy-line-soft: rgba(255, 255, 255, 0.05);

  --paper: #EEF2F8;
  --paper-deep: #E4EAF3;
  --paper-line: #DBE2ED;
  --ink: #0B1F3A;

  --orange-600: #C96E0F;
  --orange-500: #E8871A;
  --orange-400: #F5A03C;
  --orange-300: #F8B662;
  --orange-tint-08: rgba(232, 135, 26, 0.08);
  --orange-tint-12: rgba(232, 135, 26, 0.12);
  --orange-tint-18: rgba(232, 135, 26, 0.18);

  --white: #FFFFFF;
  --green-600: #1E9E6B;

  /* --- Typographie --- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Rayons --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  /* --- Ombres --- */
  --shadow-card: 0 1px 2px rgba(11, 31, 58, 0.04), 0 8px 24px rgba(11, 31, 58, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(11, 31, 58, 0.06), 0 16px 40px rgba(11, 31, 58, 0.10);
  --shadow-cta: 0 10px 30px rgba(232, 135, 26, 0.35);
  --shadow-cta-hover: 0 14px 40px rgba(232, 135, 26, 0.45);
  --shadow-panel-dark: 0 20px 60px rgba(0, 0, 0, 0.35);

  /* --- Rythme --- */
  --section-pad-y: clamp(64px, 9vw, 120px);
  --container-w: 1180px;
  --container-w-narrow: 760px;

  /* --- Transitions --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t-med: 420ms;
  --t-slow: 700ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* L'attribut hidden doit toujours gagner, même face à un display explicite
   déclaré plus tard dans la cascade (ex: .trust-row{display:grid}). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

ul { list-style: none; margin: 0; padding: 0; }

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

.container--narrow {
  max-width: var(--container-w-narrow);
}

.italic-accent {
  color: var(--orange-500);
  font-style: italic;
}

/* Focus visibility — accessibilité clavier */
:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Icônes SVG utilitaires */
.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--filled { fill: currentColor; stroke: none; }

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Bandeau eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-500);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { margin-top: 12px; }
.section-head p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.75;
}

/* Sections claires / sombres */
.section { padding: var(--section-pad-y) 0; position: relative; }
.section--dark { background: var(--navy-800); color: var(--white); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .section-head p { color: rgba(11, 31, 58, 0.5); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.5); }
.section--divider { border-top: 1px solid var(--paper-line); }
.section--divider-dark { border-top: 1px solid var(--navy-line); }
