/* Le Chalet Digital — jetons. Seul fichier qui porte des valeurs de couleur et de famille. */
:root {
  /* Palette (direction §4) */
  --color-blanc: #F3F1EC;      /* blanc cassé, fond principal */
  --color-lin: #E6E3DC;        /* lin gris, surface secondaire */
  --color-joint: #CFCBC2;      /* joints fins, bord des champs */
  --color-ardoise: #313844;    /* texte, toit, poteaux, poutres */
  --color-nuit: #262B33;       /* ardoise nuit, pied de page */
  --color-seconde: #5C6270;    /* ardoise seconde, texte secondaire */
  --color-bardeau: #3C4350;    /* tavaillons ton sur ton */
  --color-givre: #B9BDC4;      /* texte secondaire sur sombre */
  --color-epicea: #D4A25A;     /* accent : ce qui est à votre portée */

  /* Valeurs dérivées citées par la direction */
  --color-voile: rgba(243, 241, 236, 0.88); /* voile blanc cassé 88 % sur la charpente (Méthode) */
  --photo-filter: saturate(.85) contrast(1.02);
  --logo-filter: brightness(0) invert(.95);

  /* Tavaillons : bardeau 28 × 40, bas en demi-cercle, rangées décalées d'une demi-largeur, trait bardeau */
  --pattern-tavaillons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='80' viewBox='0 0 28 80'%3E%3Cg fill='none' stroke='%233C4350' stroke-width='2'%3E%3Cpath d='M1 0V26A13 13 0 0 0 27 26V0'/%3E%3Cpath d='M-13 40V66A13 13 0 0 0 13 66V40M15 40V66A13 13 0 0 0 41 66V40'/%3E%3C/g%3E%3C/svg%3E");

  /* Familles (direction §5) */
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  /* Échelle */
  --size-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
  --size-h1: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --size-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --size-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --size-price: clamp(2.5rem, 1.8rem + 2.8vw, 4rem);
  --size-step: 3rem;
  --size-unit: 1.25rem;
  --size-body: 1.125rem;
  --size-small: 0.9375rem;
  --size-smoke: 1rem;
  --size-floor: 0.875rem;

  --lh-display: 0.95;
  --lh-h1: 1;
  --lh-h2: 1.05;
  --lh-h3: 1.15;
  --lh-price: 1;
  --lh-body: 1.6;
  --lh-small: 1.3;
  --lh-floor: 1.5;

  --ls-h2: 0.01em;
  --ls-small: 0.08em;
  --ls-btn: 0.04em;

  --measure: 62ch;

  /* Matière (direction §6) */
  --beam: 6px;                 /* toit, poteaux, poutres, sablières */
  --eave: 24px;                /* débord du toit */
  --chimney-w: 28px;
  --chimney-h: 40px;
  --radius-btn: 6px;
  /* pente 24° : tan(24°) = 0.445229 */
  --roof-ratio-center: 4.4921; /* faîtage au milieu : 1 / (0.5 × tan 24°) */
  --roof-ratio-third: 3.3691;  /* faîtage au tiers droit : 1 / (2/3 × tan 24°) */

  /* Espacements */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --container: 1180px;
  --gutter: 20px;

  /* Durées (direction §8) */
  --tm-duration: .8s;
  --dur-roof: .8s;
  --dur-sablier: .3s;
  --smoke-step: 40ms;
  --smoke-start: 2.2s;         /* après le tracé du toit (0,8 s) et la montée du titre */
  --title-stagger: 70ms;
}

@media (min-width: 48em) {
  :root { --gutter: 32px; }
}
