/* ============================================================================
 * SWISS DESIGN SYSTEM — CIRCUITS PARIS OUEST B2B
 * Grille stricte · typo forte · blanc généreux · zéro fioriture.
 * Police : General Sans (titres/corps) + JetBrains Mono (labels/chiffres).
 * ========================================================================= */

:root {
  /* — Couleurs : palette Swiss sobre, fond clair, encre dense, 1 accent — */
  --ink: #111316; /* texte principal, presque noir */
  --ink-2: #3a3f45; /* texte secondaire */
  --ink-3: #6b7178; /* texte tertiaire / labels (contraste AA garanti) */
  --paper: #ffffff; /* fond principal */
  --paper-2: #f4f4f1; /* fond alterné, crème froid */
  --line: #e1e2de; /* filets de grille */
  --line-strong: #111316; /* filets noirs structurants (Swiss) */
  /* Bleu de marque (logo Circuits Paris Ouest) + or de la flèche Tour Eiffel */
  --accent: #0b5cab; /* bleu vif lisible — accent CTA / chiffres (dérivé éclairci du bleu marque) */
  --accent-deep: #003d78; /* bleu marine du logo — fonds & dégradés sombres */
  --accent-gold: #c3ac01; /* or du logo — micro-détail, à utiliser avec parcimonie */
  --accent-ink: #ffffff;

  /* — Typo — */
  --font-sans:
    'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Échelle typographique modulaire (ratio ~1.25, Swiss = peu de tailles) */
  --t-label: 0.75rem; /* 12px — labels mono */
  --t-body: 1rem; /* 16px */
  --t-lead: 1.25rem; /* 20px — chapô */
  --t-h3: 1.5rem; /* 24px */
  --t-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --t-h1: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  /* Display hero : 34px mobile → 68px desktop (norme apps premium, pas démesuré) */
  --t-display: clamp(2.125rem, 1.4rem + 3.4vw, 4.25rem);

  /* — Grille & espacement (système 8px) — */
  --gutter: 24px;
  --maxw: 1280px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --s-9: 160px;

  --radius: 0px; /* Swiss = angles droits */
}

/* — Reset minimal — */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Garde-fou anti-overflow horizontal global (leçon e2e responsive). */
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* — Conteneur de grille — */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* — Section rythme vertical — */
.section {
  padding-block: var(--s-7);
}
.section--tight {
  padding-block: var(--s-6);
}
.section--alt {
  background: var(--paper-2);
}

/* — Typo utilitaires — */
.label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.h1 {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

/* — Boutons (anti-overflow intégré) — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--t-body);
  line-height: 1;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  max-width: 100%;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 400px) {
  .btn {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}

/* ----------------------------------------------------------------------------
 * Accessibilité globale : couper TOUTES les animations/transitions pour les
 * utilisateurs sensibles au mouvement (best practice WCAG).
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
