/* =====================================================================
   La Nacelle · Design system
   Trois couches : primitives (valeurs brutes) → sémantique (rôle)
   → composants. Le reste du CSS n'utilise QUE les couches 2 et 3.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Police : Archivo variable, auto-hébergée (licence OFL).
   Axes : graisse 100 à 900, largeur 62 % à 125 %.
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../fonts/geist-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* =================================================================
     1. PRIMITIVES (Ambiance Golden Hour permanente)
     ================================================================= */
  --c-papier-50: #FAF5EC;
  --c-papier-100: #F5EFE4;  /* sable doré chaud, coucher de soleil */
  --c-papier-200: #ECE1CF;

  --c-or-200: #FCE6B8;
  --c-or-300: #F7D08A;
  --c-or-500: #D88924;      /* or couchant */
  --c-or-600: #BA6E12;
  --c-ambre-500: #C25624;   /* terracotta chaud */

  --c-bleu-50: #E7F0F5;
  --c-bleu-100: #DAE7EE;
  --c-bleu-200: #C8DCE6;
  --c-bleu-300: #89C4E0;
  --c-bleu-500: #217FA9;   /* bleu crépuscule sur le lac */
  --c-bleu-700: #165E82;   /* bleu lac profond */
  --c-bleu-900: #0D374D;

  --c-rouge-300: #FF665A;  /* coucher de soleil vif */
  --c-rouge-500: #D9381E;  /* rouge parasol chaud */
  --c-rouge-600: #B7240E;

  --c-encre: #181512;
  --c-gris-600: #625C54;
  --c-ardoise-700: #23201D;
  --c-ardoise-800: #1B1917; /* ardoise minérale chaude */
  --c-ardoise-900: #131210;
  --c-ardoise-texte: #C7C0B7;
  --c-ardoise-texte-doux: #ADA49B;
  --c-blanc-texte: #FFFFFF;

  /* =================================================================
     2. SÉMANTIQUE
     ================================================================= */
  /* Fonds */
  --fond: var(--c-papier-100);
  --fond-haut: var(--c-papier-50);
  --fond-bas: var(--c-papier-200);
  --fond-bleu-haut: var(--c-bleu-50);
  --fond-bleu: var(--c-bleu-100);
  --fond-bleu-bas: var(--c-bleu-200);
  --fond-sombre-haut: var(--c-ardoise-700);
  --fond-sombre: var(--c-ardoise-800);
  --fond-sombre-bas: var(--c-ardoise-900);

  /* Lumières (couche 2 des fonds - chaleureuse) */
  --lumiere: rgb(255 250 240 / 0.88);
  --lumiere-douce: rgb(255 245 225 / 0.65);
  --lumiere-or: rgb(247 208 138 / 0.22);
  --lumiere-sombre: rgb(255 240 215 / 0.08);
  --lumiere-bleue: rgb(33 127 169 / 0.18);
  --transparent: rgb(255 255 255 / 0);
  --transparent-bleu: rgb(33 127 169 / 0);

  /* Texte */
  --texte: var(--c-encre);
  --texte-doux: var(--c-gris-600);
  --texte-inverse: var(--c-papier-100);
  --texte-inverse-doux: var(--c-ardoise-texte);
  --texte-inverse-discret: var(--c-ardoise-texte-doux);

  /* Accent : bleu lac profond et touches or */
  --accent: var(--c-bleu-500);
  --accent-fort: var(--c-bleu-700);
  --accent-ombre: var(--c-bleu-900);
  --accent-sur-sombre: var(--c-bleu-300);
  --accent-texte-sur-accent: var(--c-blanc-texte);
  --accent-or: var(--c-or-500);
  --accent-or-doux: var(--c-or-300);

  /* Touche de rouge/coucher de soleil */
  --rouge: var(--c-rouge-500);
  --rouge-texte: var(--c-rouge-600);
  --rouge-sur-sombre: var(--c-rouge-300);

  /* Traits Exhale Studio : délimitations feutrées color-mix sans blancheur opaque */
  --trait: color-mix(in srgb, var(--c-encre) 12%, transparent);
  --trait-or: color-mix(in srgb, var(--accent-or) 16%, transparent);
  --trait-fin: color-mix(in srgb, var(--c-encre) 6%, transparent);
  --trait-fort: var(--c-encre);
  --trait-inverse: color-mix(in srgb, var(--c-papier-100) 14%, transparent);
  --trait-inverse-or: color-mix(in srgb, var(--c-or-300) 22%, transparent);
  --trait-inverse-fort: color-mix(in srgb, var(--c-papier-100) 22%, transparent);

  /* ---------------------------------------------------------------
     Typographie
     --------------------------------------------------------------- */
  --police: 'Archivo Variable', 'Archivo', 'Helvetica Neue', sans-serif;
  --police-mono: 'Geist Mono', 'IBM Plex Mono', 'SF Mono', monospace;

  --fs-display: clamp(2.75rem, 0.9rem + 5.6vw, 6.25rem);   /* 44 → 100 px */
  --fs-titre: clamp(2.5rem, 1.35rem + 3.3vw, 4.5rem);      /* 40 → 72 px */
  --fs-titre-s: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);     /* 24 → 34 px */
  --fs-chiffres-xl: clamp(2.25rem, 1.2rem + 3.5vw, 5.5rem);  /* 36 → 88 px */
  --fs-chiffres-l: clamp(3.25rem, 1rem + 6.4vw, 7.75rem);  /* 52 → 124 px */
  --fs-chiffres-m: clamp(2.25rem, 1.8rem + 1.3vw, 2.75rem);/* 36 → 44 px */
  --fs-chiffres-tel: clamp(3.25rem, 1.2rem + 5.6vw, 6.5rem); /* 52 → 104 px, un numéro tient sur une ligne */
  /* Le hero dépend de la largeur ET de la hauteur : sur un portable bas, il rapetisse au lieu de déborder */
  --fs-accroche: clamp(2.25rem, min(1.2rem + 3.6vw, 1rem + 5.2vh), 4.75rem); /* 36 → 76 px */
  --fs-chiffres-s: 1.5rem;
  --fs-intro: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); /* 17 → 21 px */
  --fs-enonce: clamp(1.25rem, 1.05rem + 0.6vw, 1.375rem);  /* 20 → 22 px */
  --fs-texte: 1.0625rem;     /* 17 px */
  --fs-texte-l: 1.125rem;    /* 18 px */
  --fs-petit: 0.9375rem;     /* 15 px */
  --fs-repere: 0.875rem;     /* 14 px, capitales */
  --fs-legende: 0.8125rem;   /* 13 px */
  --fs-micro: 0.6875rem;     /* 11 px, micro-typographie */

  --fw-fin: 200;
  --fw-leger: 300;
  --fw-normal: 400;
  --fw-gras: 700;
  --fw-noir: 800;

  --fst-condense: 62%;
  --fst-normal: 100%;
  --fst-semi-large: 106%;
  --fst-large: 112%;
  --fst-sculptural: 125%;

  --tr-display: -0.036em;
  --tr-titre: -0.035em;
  --tr-titre-sculptural: -0.045em;
  --tr-titre-s: -0.02em;
  --tr-chiffres: -0.02em;
  --tr-repere: 0.06em;
  --tr-micro: 0.18em;

  --lh-chiffres: 0.92;
  --lh-display: 1.04;
  --lh-titre: 1.15;
  --lh-titre-sculptural: 0.85;
  --lh-serre: 1.35;
  --lh-texte: 1.65;

  --mesure: 62ch;

  /* ---------------------------------------------------------------
     Espace et mise en page
     --------------------------------------------------------------- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 2.5rem;   /* 40 */
  --space-8: 3.5rem;   /* 56 */
  --space-9: 4.5rem;   /* 72 */
  --space-10: 6rem;    /* 96 */
  --space-11: 8rem;    /* 128 */

  --section-y: clamp(7.5rem, 5.5rem + 4vw, 10rem);   /* 120 → 160 px */
  --contenu-max: 77.5rem;                            /* 1240 px */
  --gouttiere: clamp(1.25rem, 4.4vw, 4rem);          /* 20 → 64 px */
  --gap: 1.5rem;                                     /* 24 px */
  --colonnes: 12;
  --header-h: 5.5rem;                                /* 88 px */
  --cible-min: 2.75rem;                              /* 44 px, zone tactile */

  /* ---------------------------------------------------------------
     Formes et profondeur
     --------------------------------------------------------------- */
  --radius-0: 0;          /* boutons, photos, cadres : coins nets */
  --radius-focus: 2px;    /* contour de focus uniquement */

  --epaisseur-trait: 1px;
  --epaisseur-bordure: 1.5px;
  --epaisseur-repere: 6px;

  --ombre-media: 0 1px 3px rgb(20 21 22 / 0.18), 0 10px 24px -8px rgb(20 21 22 / 0.16), 0 28px 64px -12px rgb(20 21 22 / 0.14);
  --ombre-media-sombre: 0 2px 6px rgb(8 9 10 / 0.5), 0 40px 120px rgb(37 137 184 / 0.18);

  --grain-opacite: 0.045;
  --grain-opacite-sombre: 0.06;

  /* ---------------------------------------------------------------
     Mouvement (utilisé à la passe 5)
     --------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-arrivee: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duree-survol: 240ms;
  --duree-entree: 700ms;
  --duree-reveal: 800ms;
  --cascade: 80ms;
  --montee-entree: 18px;
  --montee-reveal: 26px;
  --flou-entree: 5px;
  --flou-reveal: 6px;

  /* =================================================================
     3. COMPOSANTS
     ================================================================= */
  --btn-h: 3.5rem;
  --btn-h-secondaire: 3.25rem;
  --btn-pad-x: 1.5rem;
  --btn-principal-fond: var(--c-rouge-500);
  --btn-principal-texte: #FFFFFF;
  --btn-tampon: 5px;
  --btn-principal-ombre: var(--btn-tampon) var(--btn-tampon) 0 0 var(--c-rouge-600);
  --btn-secondaire-bordure: var(--trait-fort);
  --btn-secondaire-double: var(--accent);
  --btn-secondaire-decalage: 4px;

  --marque-hero: clamp(14rem, min(32vw, 46vh), 30rem);   /* logo, titre de l'accueil */
  --hero-h-dispo: calc(100vh - var(--header-h));          /* hauteur d'écran sous l'en-tête */
  --marque-entete: 10.5rem;
  --marque-entete-mobile: 8.5rem;
  --marque-pied: 9rem;
  --moustache-max: 64rem;                     /* moustache du pied de page */
  --parallaxe: 24px;                          /* amplitude max de la photo du hero */

  --header-fond: rgba(245, 239, 228, 0.72);
  --header-fond-solide: rgba(245, 239, 228, 0.90);
  --header-flou: 20px;
  --header-trait: rgba(216, 137, 36, 0.22);

  --dock-fond: rgba(255, 252, 246, 0.94);
  --dock-flou: 20px;
  --dock-bordure: rgba(216, 137, 36, 0.32);
  --dock-texte: var(--c-encre);
  --dock-ombre: 0 12px 36px -4px rgba(45, 30, 15, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);

  --focus-couleur: var(--accent-fort);
  --focus-epaisseur: 2px;
  --focus-decalage: 3px;

  --selection-fond: var(--c-or-300);
  --selection-texte: var(--c-encre);

  --horaire-repere: var(--accent-or);
  --horaire-repere-texte: var(--accent-fort);
}

/* Hauteur réelle de l'écran sur mobile (barres du navigateur exclues) */
@supports (height: 100svh) {
  :root { --hero-h-dispo: calc(100svh - var(--header-h)); }
}
