/* SALMA TAZI, design tokens
   Derived from Brand Guidelines V1.0. Every colour and type value used
   anywhere in the site should reference a variable from this file. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ---- Colour ---------------------------------------------------- */
  --paper:      #FFFFFF;  /* primary surface, ~70% of any layout */
  --navy:       #153981;  /* headers, footers, primary buttons     */
  --navy-light: #2E4E9E;  /* survol des cartes uniquement           */
  --gold:       #E0B64E;  /* accent only, rules, markers, mark     */
  --gold-light: #E8C86F;  /* survol du CTA uniquement               */
  --ink:        #0D0929;  /* body copy + headlines on light         */
  --slate:      #5B6B8F;  /* secondary text, captions               */
  --mist:       #F4F6FA;  /* alternate light surface                */
  --line:       #E3E8F2;  /* borders and dividers                   */
  --gold-wash:  #FBF4E4;  /* rare tinted surface                    */
  --navy-deep:  #0A2456;  /* deep navy, footer                      */
  --muted:      #9AA7C0;  /* muted supporting text                  */

  /* ---- Type families --------------------------------------------- */
  --font-display: 'Outfit', system-ui, sans-serif;  /* never below 15px */
  --font-text:    'Inter', system-ui, sans-serif;   /* never above 28px */

  /* ---- Type scale ------------------------------------------------- */
  --h1-size: clamp(2rem, 1.3rem + 3vw, 2.75rem);  /* → 44px */
  --h1-lh: 1.05;
  --h1-track: -0.025em;

  --h2-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem);  /* → 28px */
  --h2-lh: 1.15;

  --h3-size: 1.1875rem;  /* 19px */
  --h3-lh: 1.3;

  --body-size: 0.9375rem;  /* 15px */
  --body-lh: 1.6;
  --caption-lh: 1.45;

  --label-size: 0.6875rem;  /* 11px */
  --label-track: 0.18em;

  --wordmark-track: 0.14em;

  /* ---- Weights ---------------------------------------------------- */
  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;

  /* ---- Space ------------------------------------------------------ */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;   /* between major sections, keep it unhurried */
  --measure: 62ch;   /* max reading width for body copy */
  --container: 1120px;

  /* ---- Structure --------------------------------------------------
     Borders carry structure instead of shadows. Radius 3px maximum. */
  --radius: 3px;
  --border: 1px solid var(--line);
  --border-navy: 1px solid var(--navy);
  --rule-accent: 2px solid var(--gold);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

/* Écart assumé à la charte, appliqué uniformément : tout ce qui rend à
   --h1-size passe en Regular 400, pas Light 300. Couvre ce H1 de base
   (les trois héros d'offre, le héros à propos, le héros contact) ainsi
   que les titres --h1-size qui vivent sur un <h2> ailleurs (voir
   #temoignages, .section__head-title--hero-size, #profil dans
   site.css), un seul poids, quel que soit l'élément. */
h1 {
  font-weight: var(--w-regular);
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-track);
}

h2 {
  font-weight: var(--w-medium);
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
}

h3 {
  font-weight: var(--w-medium);
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
}

p { max-width: var(--measure); margin: 0 0 var(--space-2); }

.eyebrow {
  font-family: var(--font-text);
  font-weight: var(--w-medium);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--slate);
}

.caption { color: var(--slate); line-height: var(--caption-lh); }

/* ---- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--w-medium);
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--navy); color: var(--paper); border: var(--border-navy); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn--secondary { background: transparent; color: var(--navy); border: var(--border-navy); }
.btn--secondary:hover { background: var(--mist); }

/* Sparingly. Navy text on gold, never white. */
.btn--accent { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }

/* ---- Card: one border, no fill, no shadow ------------------------ */
.card {
  border: var(--border);
  border-radius: var(--radius);
  background: transparent;
  padding: var(--space-3);
}

/* ---- Accent rule: gold marks one line, never a block ------------- */
.accent-rule {
  border-left: var(--rule-accent);
  padding-left: var(--space-2);
}

/* ---- Quality floor ----------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

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

/* ---- Sur fond navy -------------------------------------------------
   Ajouts nécessaires pour la bande d'offres. --muted (#9AA7C0) échouait
   au contraste sur navy ; --text-on-navy passe AA très largement. */
:root {
  --text-on-navy: #E7ECF6;   /* ~11:1 sur #153981 */
  --line-on-navy: #3E5B9B;   /* bordure de carte, visible sans crier */
}
