/* ==========================================================================
   ENTREPRENEUSES DE CŒUR — VARIABLES DE DESIGN (charte graphique)
   --------------------------------------------------------------------------
   Toutes les couleurs, polices, tailles, espacements, arrondis, ombres et
   styles de boutons du site sont définis ici. Modifier une valeur ici la
   modifie partout sur le site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES DE LA CHARTE
   Les polices officielles (Extenda 40 Hecta, Garet, Sigher) sont soumises à
   licence : elles ne sont pas incluses. Elles sont utilisées automatiquement
   si elles sont installées sur l'appareil. Pour les intégrer au site, déposez
   les fichiers .woff2 (licence web obligatoire) dans /assets/fonts/ puis
   décommentez les blocs ci-dessous.
   En attendant, deux polices libres (licence SIL OFL) les remplacent :
   Anton (titre) et Outfit (sous-titres et textes).
   -------------------------------------------------------------------------- */

/*
@font-face {
  font-family: "Extenda 40 Hecta";
  src: url("/assets/fonts/extenda-40-hecta.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Garet";
  src: url("/assets/fonts/garet-book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Garet";
  src: url("/assets/fonts/garet-heavy.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Sigher";
  src: url("/assets/fonts/sigher.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
*/

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ------------------------------------------------------------------------
     2. COULEURS DE LA CHARTE (codes exacts)
     ------------------------------------------------------------------------ */
  --rose: #fecac4;          /* couleur d'ambiance principale */
  --orange: #e78430;        /* fond du programme */
  --brun: #6a3621;          /* titres, date, informations, noms des participantes */
  --creme: #f8f7f2;         /* texte du programme, horaires */
  --bleu: #1800ad;          /* contact et Ville de Cherbourg (partenaire) */

  /* Nuances dérivées (uniquement par transparence des couleurs de la charte) */
  --brun-80: rgb(106 54 33 / 0.8);
  --brun-60: rgb(106 54 33 / 0.62);
  --brun-15: rgb(106 54 33 / 0.15);
  --brun-08: rgb(106 54 33 / 0.08);
  --rose-50: rgb(254 202 196 / 0.5);
  --orange-20: rgb(231 132 48 / 0.2);
  --creme-80: rgb(248 247 242 / 0.82);

  /* Rôles (à utiliser dans les composants) */
  --couleur-fond: var(--creme);
  --couleur-fond-alt: var(--rose);
  --couleur-texte: var(--brun);
  --couleur-titre: var(--brun);
  --couleur-accent: var(--orange);
  --couleur-contact: var(--bleu);
  --couleur-focus: var(--bleu);

  /* ------------------------------------------------------------------------
     3. FAMILLES DE POLICES
     ------------------------------------------------------------------------ */
  --police-titre: "Extenda 40 Hecta", "Extenda", "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --police-sous-titre: "Garet", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-texte: "Sigher", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ------------------------------------------------------------------------
     4. TAILLES DE TEXTE
     Charte (impression) : nom 40 / sous-titres 18 / corps 14 / petites lignes 12.
     Transposition écran, proportions conservées et lisibilité mobile garantie.
     ------------------------------------------------------------------------ */
  --taille-nom-evenement: clamp(3.4rem, 14vw, 9.5rem);  /* « 40 » */
  --taille-h2: clamp(2.1rem, 6.5vw, 4rem);
  --taille-h3: clamp(1.2rem, 2.6vw, 1.45rem);          /* « 18 » sous-titres */
  --taille-sous-titre: clamp(1.125rem, 2.4vw, 1.35rem); /* « 18 » */
  --taille-texte: 1.0625rem;                            /* « 14 » corps */
  --taille-petit: 0.9375rem;                            /* « 12 » contacts, petites lignes */
  --taille-micro: 0.8125rem;

  --interligne: 1.6;
  --interligne-titre: 0.95;

  /* ------------------------------------------------------------------------
     5. ESPACEMENTS
     ------------------------------------------------------------------------ */
  --esp-1: 0.25rem;
  --esp-2: 0.5rem;
  --esp-3: 0.75rem;
  --esp-4: 1rem;
  --esp-5: 1.5rem;
  --esp-6: 2rem;
  --esp-7: 3rem;
  --esp-8: 4rem;
  --esp-9: 6rem;
  --esp-section: clamp(3.5rem, 9vw, 7rem);
  --marge-page: clamp(1rem, 4.5vw, 3rem);
  --largeur-max: 76rem;
  --largeur-texte: 40rem;

  /* ------------------------------------------------------------------------
     6. ARRONDIS
     ------------------------------------------------------------------------ */
  --arrondi-petit: 0.5rem;
  --arrondi: 1rem;
  --arrondi-grand: 1.75rem;
  --arrondi-arche: 999px 999px var(--arrondi) var(--arrondi);
  --arrondi-pilule: 999px;

  /* ------------------------------------------------------------------------
     7. OMBRES
     ------------------------------------------------------------------------ */
  --ombre-douce: 0 1px 2px rgb(106 54 33 / 0.08), 0 4px 14px rgb(106 54 33 / 0.08);
  --ombre-carte: 0 2px 4px rgb(106 54 33 / 0.06), 0 12px 30px rgb(106 54 33 / 0.12);
  --ombre-affiche: 6px 6px 0 var(--brun);

  /* ------------------------------------------------------------------------
     8. BOUTONS
     ------------------------------------------------------------------------ */
  --bouton-hauteur: 3rem;          /* > 44 px : cible tactile confortable */
  --bouton-padding: 0.8rem 1.5rem;
  --bouton-arrondi: var(--arrondi-pilule);
  --bouton-police: var(--police-sous-titre);
  --bouton-graisse: 700;

  --bouton-primaire-fond: var(--brun);
  --bouton-primaire-texte: var(--creme);
  --bouton-ombre-survol: 4px 4px 0 var(--orange);

  --bouton-secondaire-fond: transparent;
  --bouton-secondaire-texte: var(--brun);
  --bouton-secondaire-bord: var(--brun);

  --bouton-contact-fond: var(--bleu);
  --bouton-contact-texte: var(--creme);

  /* ------------------------------------------------------------------------
     9. ANIMATIONS
     ------------------------------------------------------------------------ */
  --transition: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition-lente: 650ms cubic-bezier(0.2, 0.7, 0.2, 1);

  --hauteur-entete: 4.25rem;
}
