/* ==========================================================================
   BASE — variables de design, reset, typographie, utilitaires
   ========================================================================== */

:root {
  /* ---- Couleurs de marque ---- */
  --black:        #0B0B0B;
  --black-soft:   #141414;
  --grey-900:     #242424;
  --grey-700:     #3A3A3A;
  --grey-500:     #6B7280;
  --grey-300:     #D1D5DB;
  --grey-100:     #F3F4F6;
  --white:        #FFFFFF;
  --orange:       #F36A21;
  --info-blue:    #155eef;
  --orange-dark:  #D8551A;
  --orange-soft:  rgba(243, 106, 33, 0.12);
  --red:          #D91920;
  --red-dark:     #B0141A;
  --red-soft:     rgba(217, 25, 32, 0.12);
  /* Confirmation discrète (pièce bien reçue). Jamais décoratif. */
  --green:        #1F7A4C;
  --green-soft:   rgba(31, 122, 76, 0.10);

  /* ---- Surfaces ---- */
  --bg:           var(--white);
  --bg-alt:       var(--grey-100);
  --ink:          var(--black);
  --ink-muted:    var(--grey-500);
  --line:         rgba(11, 11, 11, 0.10);

  /* ---- Typographie ---- */
  --font-display: 'Barlow Condensed', 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.24vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.6vw, 5.2rem);

  /* ---- Espacement / rayons / ombres ---- */
  --gap:        clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  --section-y:  clamp(3.5rem, 2.2rem + 5vw, 7rem);
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 10px rgba(11, 11, 11, 0.06);
  --shadow:     0 12px 34px rgba(11, 11, 11, 0.10);
  --shadow-lg:  0 26px 70px rgba(11, 11, 11, 0.20);

  --header-h:   72px;
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* `hidden` sur le body cree un conteneur de defilement qui casse
     `position: sticky` dans Safari. `clip` fait le meme travail sans cet
     effet de bord ; la premiere ligne reste pour les navigateurs anciens. */
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked, body.is-nav-open { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---- Accessibilite ----------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Mise en page ------------------------------------------------------ */
.container {
  width: min(1240px, 100% - clamp(2rem, 5vw, 5rem));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section--light { background: var(--white); }
.section--dark { background: var(--black); color: var(--white); }
.section--accent { background: var(--bg-alt); }

.section--dark .section-lead,
.section--dark .muted { color: rgba(255, 255, 255, 0.68); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem); }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.section-title { font-size: var(--step-3); }
.section-lead {
  margin-top: 0.9rem;
  font-size: var(--step-1);
  color: var(--ink-muted);
  line-height: 1.55;
}

.micro-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--dark .micro-title { color: rgba(255, 255, 255, 0.55); }

.muted { color: var(--ink-muted); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.grid-2 .field--full { grid-column: 1 / -1; }

/* ---- Animations d'apparition ------------------------------------------- */
html.js.is-ready:not(.no-anim) [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js.is-ready:not(.no-anim) [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

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