/* =====================================================================
   TROFOS ONGD — Système de design (design tokens)
   Palette imposée : Bleu, Vert, Blanc, touches Orange
   Signature « Trois Fois Sain » : motif de triade (3 segments)
   ===================================================================== */

:root {
  /* --- Couleurs de marque --- */
  --bleu-profond:  #0B4F86;   /* Primaire — confiance institutionnelle */
  --bleu-azur:     #1B84C4;   /* Bleu clair — liens, accents */
  --bleu-nuit:     #08375E;   /* Fonds sombres, pied de page */

  --vert-sante:    #1B8A5A;   /* Secondaire — santé, croissance */
  --vert-clair:    #2FA96B;   /* Accents verts */

  --orange:        #F08A24;   /* Touches — appels à l'action */
  --orange-fonce:  #E0730C;   /* Survol des boutons orange */

  /* --- Neutres --- */
  --encre:         #0E2233;   /* Texte principal */
  --ardoise:       #4A5A67;   /* Texte secondaire */
  --brume:         #F4F7F9;   /* Fonds de section clairs */
  --blanc:         #FFFFFF;
  --ligne:         #DCE6EC;   /* Bordures, filets */

  /* --- Dégradés de marque --- */
  --degrade-heros: linear-gradient(135deg, #08375E 0%, #0B4F86 55%, #1B8A5A 100%);
  --degrade-triade: linear-gradient(90deg, var(--bleu-azur) 0 33.33%, var(--vert-clair) 33.33% 66.66%, var(--orange) 66.66% 100%);

  /* --- Typographie --- */
  --police-titre:  'Sora', system-ui, sans-serif;      /* Affichage */
  --police-texte:  'Inter', system-ui, sans-serif;     /* Corps */
  --police-donnee: 'IBM Plex Mono', ui-monospace, monospace; /* Compteurs, chiffres */

  /* Échelle typographique */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2.125rem;
  --fs-3xl:  2.875rem;
  --fs-4xl:  clamp(2.5rem, 5vw, 4.25rem);

  /* --- Espacement, rayons, ombres --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ombre-sm: 0 2px 8px rgba(8, 55, 94, 0.06);
  --ombre-md: 0 10px 30px rgba(8, 55, 94, 0.10);
  --ombre-lg: 0 24px 60px rgba(8, 55, 94, 0.16);

  --conteneur: 1200px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   RÉINITIALISATION & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--encre);
  margin: 0 0 0.5em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

p { margin: 0 0 1rem; }

a { color: var(--bleu-azur); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bleu-profond); }

img { max-width: 100%; height: auto; display: block; }

/* Accessibilité : focus visible au clavier */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect du « reduced motion » (accessibilité) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   UTILITAIRES
   ===================================================================== */
.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--brume { background: var(--brume); }
.section--nuit  { background: var(--bleu-nuit); color: #cfe0ee; }

/* Filet « triade » — signature TROFOS (Trois Fois Sain) */
.triade {
  width: 68px; height: 5px; border-radius: 999px;
  background: var(--degrade-triade);
  margin-bottom: 1.25rem;
}
.triade--centre { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--police-donnee);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-sante);
  margin-bottom: 0.75rem;
}

.texte-centre { text-align: center; }
.mesure { max-width: 62ch; }

/* =====================================================================
   BOUTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--police-titre); font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--orange { background: var(--orange); color: #fff; box-shadow: var(--ombre-sm); }
.btn--orange:hover { background: var(--orange-fonce); color: #fff; transform: translateY(-2px); box-shadow: var(--ombre-md); }

.btn--bleu { background: var(--bleu-profond); color: #fff; }
.btn--bleu:hover { background: var(--bleu-nuit); color: #fff; transform: translateY(-2px); }

.btn--fantome { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--fantome:hover { background: #fff; color: var(--bleu-profond); }

.btn--contour { background: transparent; color: var(--bleu-profond); border-color: var(--ligne); }
.btn--contour:hover { border-color: var(--bleu-profond); background: var(--brume); }

/* =====================================================================
   CARTES
   ===================================================================== */
.carte {
  background: #fff;
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-md); border-color: transparent; }

/* Emplacement image (à remplacer par les visuels fournis) */
.image-slot {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem;
  background:
    repeating-linear-gradient(45deg, #eef4f8 0 14px, #e7eff5 14px 28px);
  color: var(--ardoise);
  font-family: var(--police-donnee);
  font-size: var(--fs-xs);
  text-align: center;
  border: 1px dashed #b9cdd9;
}
.image-slot i { font-size: 1.5rem; color: var(--bleu-azur); }
.image-slot span { opacity: 0.85; padding-inline: 0.5rem; }
