/* Vault — jetons de design. Seule source de vérité pour couleurs, typographie, espace et mouvement. */

@font-face { font-family: "Cardo"; src: url("fonts/cardo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("fonts/cardo-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("fonts/cardo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  /* Couleur — mode clair */
  --bg: #FAF9F7;        /* page, panneaux */
  --surface: #FFFFFF;   /* cartes, champs */
  --wash: #F1EFEB;      /* aplats discrets, photo manquante */
  --ink: #111111;       /* texte, état actif */
  --on-ink: #FFFFFF;    /* texte sur encre */
  --muted: #6B6B6B;     /* texte secondaire, labels */
  --rule: #E8E5E0;      /* filets 1 px */
  --accent: #0A6E0A;    /* prix de revente uniquement */
  --sale: #B3261E;      /* fond des badges de remise */
  --sale-text: #B3261E; /* taux de remise en texte */
  --photo: #FFFFFF;     /* fond des visuels */
  --photo-dim: 1;       /* luminosité des visuels */
  --scrim: rgba(17, 17, 17, 0.42);
  --shadow-float: 0 16px 48px rgba(17, 17, 17, 0.16);
  --shadow-photo: 0 1px 2px rgba(17, 17, 17, 0.06);

  /* Typographie */
  --serif: "Cardo", Bembo, "Times New Roman", Times, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: clamp(48px, 7.4vw, 112px);
  --fs-h1: clamp(34px, 4.2vw, 56px);
  --fs-h2: clamp(28px, 3vw, 40px);
  --fs-h3: 26px;
  --fs-price: 22px;
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-label: 12px;
  --ls-label: 0.14em;

  /* Espace */
  --pad: 40px;          /* marge de page */
  --gut: 24px;          /* gouttière de grille */
  --ctl: 40px;          /* hauteur des contrôles */
  --hd: 72px;           /* hauteur de l'en-tête */

  /* Mouvement */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);        /* sortie douce : entrées, survols */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);     /* aller-retour : tiroirs, panneaux */
  --t-fast: 150ms;      /* survol, focus, favori */
  --t-base: 200ms;      /* pastilles, bascules */
  --t-panel: 440ms;     /* tiroir, fiche, recherche */
  --t-reveal: 800ms;    /* apparitions éditoriales */
  --stagger: 45ms;      /* décalage entre cartes d'un même lot */
}

[data-theme="dark"] {
  --bg: #0E0E0E;
  --surface: #161616;
  --wash: #1C1B1A;
  --ink: #F2F0EC;
  --on-ink: #0E0E0E;
  --muted: #A8A49E;
  --rule: #2A2927;
  --accent: #5DBB5D;    /* même teinte, éclaircie pour le contraste AA */
  --sale-text: #E5746B;
  --photo: #EDEBE7;
  --photo-dim: 0.93;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1100px) { :root { --pad: 32px; --gut: 20px; } }
@media (max-width: 820px)  { :root { --pad: 24px; --gut: 16px; } }
@media (max-width: 560px)  { :root { --pad: 16px; --gut: 12px; --ctl: 44px; --hd: 56px; } }
