/* ============================================================
   theme-fourques.css — Variables couleurs commune Fourques 66
   Commune-test Phase 4 (validation utilisateur 12 mai 2026 — itération 1).

   Cohérent LABELS §13.1 — variables --commune-* injectées au render serveur.

   ✅ COULEURS RÉELLES extraites du blason `blason_fourques_66.svg` :
   - Vert principal (champ écu)    : #5ab532
   - Jaune (3 fourches stylisées)  : #fcef3c
   - Noir (contours héraldiques)   : #000000

   Le blason de Fourques 66 représente 3 fourches stylisées sur fond vert (héritage
   étymologique fourca = fourche en latin/catalan local). Ces couleurs sont les
   COULEURS HÉRALDIQUES de la commune (pas une convention catalane générique).
   ============================================================ */

:root {
  /* ----------------------------------------------------------
     Couleurs commune Fourques 66 (réelles blason municipal)
     ---------------------------------------------------------- */
  --commune-primary: #5ab532;          /* vert champ écu — couleur principale */
  --commune-primary-dark: #41862a;     /* dérivé -15% luminosité */
  --commune-primary-light: #7fc55c;    /* dérivé +12% luminosité */
  --commune-primary-alpha-10: rgba(90, 181, 50, 0.1);
  --commune-primary-alpha-20: rgba(90, 181, 50, 0.2);
  --commune-primary-alpha-50: rgba(90, 181, 50, 0.5);

  --commune-secondary: #fcef3c;        /* jaune fourches — couleur secondaire */
  --commune-secondary-dark: #d4c81e;
  --commune-secondary-light: #fdf268;
  --commune-secondary-alpha-10: rgba(252, 239, 60, 0.1);
  --commune-secondary-alpha-20: rgba(252, 239, 60, 0.2);

  --commune-dark: #1a1a1a;             /* gris très foncé neutre (cohérent BRAND §3.2) */

  /* Texte adaptatif selon luminosité --commune-primary (cohérent retour user it1bis DM1)
     Pour Fourques #5ab532 (vert moyen, L≈0.43 WCAG) → texte BLANC convient.
     EN PRODUCTION : calculé automatiquement par Portail Communal lors upload Maire (color picker
     Apparence) selon formule WCAG luminance relative + contraste 4.5:1.
     - Si luminance > 0.5 (couleurs claires) → texte foncé var(--gris-900)
     - Si luminance < 0.5 (couleurs foncées) → texte clair var(--text-inverse)
     Mockup Fourques V1 = blanc cohérent. */
  --commune-primary-texte: var(--text-inverse);  /* blanc pour Fourques vert */

  /* Gradient hero — vert profond → vert clair → vert profond
     (override Maire dans Paramètres > Apparence — opacité overlay + couleur paramétrables) */
  --commune-gradient-hero: linear-gradient(
    135deg,
    var(--commune-dark) 0%,
    var(--commune-primary) 50%,
    var(--commune-dark) 100%
  );

  /* Gradient secondaire (cards modules hover) */
  --commune-gradient-card: linear-gradient(
    180deg,
    var(--commune-primary-alpha-10) 0%,
    transparent 100%
  );

  /* ----------------------------------------------------------
     Métadonnées commune (cohérent SCHEMA_BDD §6 acté Phase 3
     + DECISIONS §29.1 it1 : code POSTAL en affichage public, COG technique uniquement)
     ---------------------------------------------------------- */
  --commune-nom: "Fourques";
  --commune-departement: "66";              /* Pyrénées-Orientales */
  --commune-code-postal: "66300";            /* AFFICHAGE PUBLIC */
  --commune-cog-insee: "66083";              /* CLE TECHNIQUE — usage interne BDD uniquement */
  --commune-slug: "fourques66";              /* URL sous-domaine */
  --commune-gentile-masc: "Fourcatins";
  --commune-gentile-fem: "Fourcatines";
  --commune-gentile-inclusif: "Fourcatins·es";  /* AFFICHAGE PUBLIC */
  --commune-population-insee: "1198";        /* Estimation INSEE 2024 */
  --commune-langue-regionale: "catalan";     /* V2 i18n — héritage régional Pyrénées-Orientales */
}

/*
 * NOTES IMPLÉMENTATION (itération 1) :
 *
 * 1. Couleurs paramétrables Maire (cohérent DECISIONS §29.4 it1) :
 *    - Import blason SVG → extraction couleurs proposées par défaut
 *    - Override manuel (color picker garde-fou WCAG temps réel §3.7 BRAND)
 *    - Couleur unique OU dégradé 2-3 couleurs (cohérent DECISIONS §29.7 it1)
 *
 * 2. Gradient hero paramétrable (cohérent DECISIONS §29.5 it1) :
 *    - Photo Maire ajustable canvas fixe (déplacement + zoom)
 *    - Overlay couleur + opacité paramétrables Maire
 *    - Couleur titre hero paramétrable selon overlay (blanc si dark / noir si light)
 *
 * 3. Code postal vs COG INSEE (cohérent DECISIONS §29.1 it1) :
 *    - PUBLIC = code postal (66300) — reconnaissable, anti-impression "erreur"
 *    - TECHNIQUE = COG INSEE (66083) — clé BDD primary, jamais affichée publiquement
 *    - Permet filtrage portail global par canton (groupes communes proches)
 *
 * 4. Gentilé Fourcatins / Fourcatines (cohérent DECISIONS §29.3 it1) :
 *    - Forme inclusive par défaut : "Fourcatins·es"
 *    - Singulier masc/fem disponibles via variables séparées
 */
