/* ==========================================================================
   VARIABLES — CHARTE GRAPHIQUE FORTIME
   Source : « Charte Graphique.pdf » (fly-production).
   Toute valeur de couleur, de typo ou d'espacement du site vient d'ici.
   Aucune couleur ni police en dur ailleurs dans le CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES — auto-hébergées (sous-ensemble latin, woff2)
   Charte : Titres = Cinzel Bold · Corps = Acumin Medium
            Sous-titres = Acumin Wide Bold · Liens = Acumin Semibold Italic
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin';
  src: url('../fonts/acumin-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin';
  src: url('../fonts/acumin-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin';
  src: url('../fonts/acumin-semibold-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin Wide';
  src: url('../fonts/acumin-wide-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ------------------------------------------------------------------------
     2. COULEURS DE MARQUE — valeurs exactes de la charte
     ------------------------------------------------------------------------ */

  --color-primary: #6f1c25;    /* Bordeaux — la puissance maîtrisée (accent) */
  --color-secondary: #3d3832;  /* Brun minéral — la solidité               */
  --color-light: #d6ccaa;      /* Beige pierre — l'équilibre               */
  --color-dark: #111212;       /* Noir profond — l'intensité               */

  /* ------------------------------------------------------------------------
     3. COULEURS DÉRIVÉES — teintes calculées à partir des 4 couleurs
     ci-dessus (mélanges avec blanc / noir profond). Aucune teinte inventée :
     chaque valeur est un dégradé de la charte, validée en contraste WCAG AA.
     ------------------------------------------------------------------------ */

  /* Fonds clairs — dégradés du beige pierre vers le blanc */
  --color-bg: #fbfaf6;         /* fond principal (beige 10 %)               */
  --color-bg-alt: #f3f0e6;     /* sections alternées (beige 30 %)           */
  --color-bg-beige: #d6ccaa;   /* bandeau d'accent plein beige              */
  --color-surface: #ffffff;    /* cartes sur fond clair                     */

  /* Fonds sombres */
  --color-bg-dark: #111212;    /* sections sombres                          */
  --color-surface-dark: #272522; /* cartes sur fond sombre (noir + brun)    */

  /* Textes — contrastes vérifiés */
  --color-text: #3d3832;       /* corps sur fond clair      — 11.1:1  AAA   */
  --color-muted: #635d50;      /* texte secondaire clair    —  6.3:1  AA    */
  --color-text-on-dark: #d6ccaa; /* corps sur fond sombre   — 11.7:1  AAA   */
  --color-muted-on-dark: #a59e84; /* secondaire sur noir    —  7.0:1  AAA   */
  --color-on-primary: #ffffff; /* texte sur aplat bordeaux  — 11.2:1  AAA   */

  /* États */
  --color-primary-hover: #5a1a21;  /* bordeaux assombri                     */
  --color-border: #e8e3d0;         /* filets sur fond clair                 */
  --color-border-strong: #b0a78c;  /* filets marqués                        */
  --color-border-dark: #3d3832;    /* filets sur fond sombre                */

  /* Voiles (superpositions sur photo) */
  --overlay-dark: rgba(17, 18, 18, 0.72);
  --overlay-dark-mid: rgba(17, 18, 18, 0.82);
  --overlay-primary: rgba(111, 28, 37, 0.88);

  /* ------------------------------------------------------------------------
     4. TYPOGRAPHIE
     ------------------------------------------------------------------------ */

  --font-display: 'Cinzel', 'Times New Roman', Georgia, serif;
  --font-body: 'Acumin', 'Helvetica Neue', Arial, sans-serif;
  --font-wide: 'Acumin Wide', 'Acumin', 'Helvetica Neue', Arial, sans-serif;

  --weight-body: 500;   /* Medium — corps de texte selon la charte */
  --weight-bold: 700;

  /* Échelle typographique fluide (mobile → desktop) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 0.5vw + 0.94rem, 1.1875rem);
  --fs-lg: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-xl: clamp(1.5rem, 2vw + 1rem, 2rem);
  --fs-2xl: clamp(1.875rem, 3vw + 1rem, 2.75rem);
  --fs-3xl: clamp(2.25rem, 5vw + 1rem, 4rem);

  --lh-tight: 1.15;
  --lh-normal: 1.6;
  --tracking-wide: 0.12em;   /* sous-titres / eyebrows en Acumin Wide */
  --tracking-title: 0.02em;

  /* ------------------------------------------------------------------------
     5. ÉCHELLE — espacements, rayons, ombres, transitions
     ------------------------------------------------------------------------ */

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --gap: 1.5rem;
  --section-padding: clamp(3.5rem, 8vw, 6.5rem);
  --container: 1200px;
  --container-narrow: 780px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);

  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 18, 18, 0.06);
  --shadow-md: 0 4px 16px rgba(17, 18, 18, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 18, 18, 0.14);

  --transition: 200ms ease;
  --transition-slow: 620ms;

  /* Courbes d'animation — sortie douce, sans rebond */
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-height: 68px;
  --preview-height: 36px;   /* bandeau d'aperçu du dashboard */
  --focus-ring: 3px;

  --z-header: 100;
  --z-nav: 90;
  --z-overlay: 80;
}

@media (min-width: 1024px) {
  :root {
    --header-height: 84px;
  }
}
