/* =====================================================================
   Design tokens — « Nuit premium » · Les Trésors de l'Ellinga
   Source : spec §4. Palette charbon / ivoire / or / vin, contrastes AA/AAA.
   ===================================================================== */

/* Police d'affichage self-hostée — Cormorant Garamond (OFL, cf. assets/fonts/LICENSE.txt).
   Pas de CDN Google → conforme RGPD + meilleure perf. */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal; font-weight: 500; font-display: swap;
	src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal; font-weight: 600; font-display: swap;
	src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic; font-weight: 500; font-display: swap;
	src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}

:root {
	/* --- Palette brute --- */
	--ell-charbon:       #1C1A1F;   /* fond principal */
	--ell-charbon-2:     #232026;   /* surfaces élevées (cartes) */
	--ell-ivoire:        #F2ECE0;   /* texte principal — ~13:1 sur charbon (AAA) */
	--ell-ivoire-muted:  #C9C2B5;   /* texte secondaire */
	--ell-or:            #C9A227;   /* accent / CTA UNIQUEMENT (jamais en gros paragraphe) */
	--ell-or-clair:      #E3C766;   /* hover or */
	--ell-vin:           #4A1B2A;   /* touches mythologiques */
	--ell-vin-clair:     #6E2A40;

	/* --- Tokens sémantiques --- */
	--ell-bg:            var(--ell-charbon);
	--ell-surface:       var(--ell-charbon-2);
	--ell-text:          var(--ell-ivoire);
	--ell-text-muted:    var(--ell-ivoire-muted);
	--ell-accent:        var(--ell-or);
	--ell-accent-hover:  var(--ell-or-clair);
	--ell-border:        rgba(201, 162, 39, .28);  /* filets dorés discrets */
	--ell-focus:         var(--ell-or-clair);

	/* --- Typographie ---
	   Titres : serif/blackletter « Edda » (à terme self-hosté via @font-face, cf. TODO).
	   En attendant, repli serif système élégant. Corps : sans-serif neutre. */
	--ell-font-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
	--ell-font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--ell-fs-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	--ell-lh-base: 1.7;
	--ell-fs-h1:   clamp(2rem, 1.4rem + 3vw, 3.5rem);
	--ell-fs-h2:   clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
	--ell-fs-h3:   clamp(1.3rem, 1.1rem + 1vw, 1.7rem);

	/* --- Espacement / formes / accessibilité --- */
	--ell-space:  1.25rem;
	--ell-radius: 6px;
	--ell-tap:    44px;   /* cible tactile minimale */
}

/*
  TODO (Sprint 1) — police d'affichage self-hostée (RGPD + perf : pas de CDN Google Fonts) :
  @font-face {
    font-family: "Edda Display";
    src: url("../fonts/edda-display.woff2") format("woff2");
    font-display: swap;
  }
  puis remplacer la 1re valeur de --ell-font-display par "Edda Display".
*/
