/* ============================================================
   VAL CENIS — Haute Maurienne Vanoise
   Colors & Type foundations
   Derived from "Charte de communication 2022" (CHARTE_VALCENIS.pdf)
   ------------------------------------------------------------
   FONTS
   - Production web  : Adobe Fonts (Typekit) project "gbd6dun"
       <link rel="stylesheet" href="https://use.typekit.net/gbd6dun.css">
       family name: "montserrat"  (ships 400 / 700 + italics)
   - Self-hosted     : Montserrat variable fonts in fonts/ (SIL OFL, full 100-900
       weight range + italics). Declared below — primary source, renders offline
       with zero CDN dependency.
   - "Dystopian Bold" is listed in the charter as a PAO titling face.
       It is NOT web-available and is SUBSTITUTED here by Montserrat
       (heavy weights). Flagged in README → VISUAL FOUNDATIONS.
   ============================================================ */

@import url('https://use.typekit.net/gbd6dun.css');

/* ---- Self-hosted Montserrat (SIL OFL) — see fonts/OFL.txt ---- */
@font-face {
  font-family: "Montserrat";
  src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url('fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- BRAND COLOR — the three Val Cenis blues ---------- */
  --vc-bleu:        #003249; /* Bleu HMV — dominant deep blue, common to all HMV stations  C100 M70 J45 N45 */
  --vc-ciel:        #61ACCF; /* Bleu Val Cenis — the signature station blue (accent)       C70  M10 J10 N0  */
  --vc-clair:       #DFEEF5; /* Bleu clair Val Cenis — airy tint for fills & backgrounds   C15  M0  J5  N0  */

  /* ---------- SIGNATURE GRADIENT (Dégradé Val Cenis) ---------- */
  /* Dominant blue → HMV sky blue → light blue. The structuring graphic element. */
  --vc-gradient:        linear-gradient(120deg, #003249 0%, #61ACCF 58%, #DFEEF5 100%);
  --vc-gradient-soft:   linear-gradient(120deg, #003249 0%, #61ACCF 100%);
  --vc-gradient-vert:   linear-gradient(180deg, #003249 0%, #61ACCF 65%, #DFEEF5 100%);
  /* Protection veil for laying the logo / text over photography */
  --vc-veil-bottom:     linear-gradient(180deg, rgba(0,50,73,0) 0%, rgba(0,50,73,0.85) 100%);
  --vc-veil-frame:      linear-gradient(180deg, rgba(0,50,73,0.55) 0%, rgba(0,50,73,0) 30%, rgba(0,50,73,0) 60%, rgba(0,50,73,0.75) 100%);

  /* ---------- NEUTRALS ---------- */
  --vc-noir:        #14181B; /* near-black ink — logo & body text on light */
  --vc-blanc:       #FFFFFF;
  --vc-gris-900:    #1E2A30;
  --vc-gris-700:    #3C4A52;
  --vc-gris-500:    #6A7A82;
  --vc-gris-300:    #AEBEC6;
  --vc-gris-100:    #EAF1F5;
  --vc-paper:       #F6FAFC; /* faint cool off-white page background */

  /* ---------- SEMANTIC ---------- */
  --fg-1:           var(--vc-bleu);     /* primary text on light */
  --fg-2:           var(--vc-gris-700); /* secondary text */
  --fg-3:           var(--vc-gris-500); /* muted / captions */
  --fg-on-dark:     var(--vc-blanc);
  --fg-on-dark-2:   rgba(255,255,255,0.72);
  --bg-page:        var(--vc-paper);
  --bg-surface:     var(--vc-blanc);
  --bg-tint:        var(--vc-clair);
  --bg-deep:        var(--vc-bleu);
  --accent:         var(--vc-ciel);
  --accent-bright:  var(--vc-clair);
  --line:           rgba(0,50,73,0.12);
  --line-strong:    rgba(0,50,73,0.22);

  /* ---------- TYPE FAMILIES ---------- */
  /* Self-hosted "Montserrat" first (full weight range, offline); Typekit "montserrat" as fallback. */
  --font-brand:   "Montserrat", "montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", "montserrat", system-ui, sans-serif; /* Dystopian substitute */
  --font-body:    "Montserrat", "montserrat", system-ui, sans-serif;
  --font-office:  Arial, Helvetica, sans-serif; /* charter bureautique fallback */

  /* ---------- WEIGHTS (charter: Light / Regular / Bold) ---------- */
  --w-light:    300;
  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --w-bold:     700;
  --w-black:    800; /* display only — for titrages & accroches */

  /* ---------- TYPE SCALE (rem, 16px base) ---------- */
  --t-claim:   clamp(3rem, 7vw, 6rem);     /* the brand claim */
  --t-display: clamp(2.4rem, 5vw, 4.25rem);
  --t-h1:      clamp(2rem, 3.6vw, 3rem);
  --t-h2:      clamp(1.5rem, 2.4vw, 2.125rem);
  --t-h3:      clamp(1.25rem, 1.8vw, 1.5rem);
  --t-h4:      1.125rem;
  --t-lead:    1.25rem;
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-caption: 0.75rem;
  --t-over:    0.6875rem; /* overline / eyebrow */

  /* ---------- RADII ---------- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --r-hex: 18px; /* hexagon corner softening, echoing the logo polygon */

  /* ---------- SHADOWS / ELEVATION ---------- */
  --shadow-sm:  0 1px 2px rgba(0,50,73,0.08), 0 1px 3px rgba(0,50,73,0.06);
  --shadow-md:  0 6px 16px rgba(0,50,73,0.10), 0 2px 6px rgba(0,50,73,0.06);
  --shadow-lg:  0 18px 40px rgba(0,50,73,0.16), 0 6px 14px rgba(0,50,73,0.08);
  --shadow-xl:  0 30px 70px rgba(0,50,73,0.22);
  --shadow-ciel:0 14px 34px rgba(97,172,207,0.38); /* glow for primary CTA */

  /* ---------- SPACING (4px base grid) ---------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* ---------- MOTION ---------- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur:      240ms;
  --dur-slow: 480ms;
}

/* ============================================================
   SEMANTIC TYPE CLASSES
   ============================================================ */
.vc-claim {
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: var(--t-claim);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: none;
}
/* The signature "stretched adjective" treatment from the charter
   (certain letters deformed linearly → générosité, débordement). */
.vc-claim__stretch {
  display: inline-block;
  transform: scaleX(1.35);
  transform-origin: left center;
  letter-spacing: 0.02em;
}

.vc-display {
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h1, .vc-h1 {
  font-family: var(--font-brand);
  font-weight: var(--w-bold);
  font-size: var(--t-h1);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
h2, .vc-h2 {
  font-family: var(--font-brand);
  font-weight: var(--w-bold);
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--fg-1);
}
h3, .vc-h3 {
  font-family: var(--font-brand);
  font-weight: var(--w-semibold);
  font-size: var(--t-h3);
  line-height: 1.2;
  color: var(--fg-1);
}
h4, .vc-h4 {
  font-family: var(--font-brand);
  font-weight: var(--w-semibold);
  font-size: var(--t-h4);
  line-height: 1.3;
  color: var(--fg-1);
}

.vc-overline {
  font-family: var(--font-brand);
  font-weight: var(--w-bold);
  font-size: var(--t-over);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.vc-lead {
  font-family: var(--font-body);
  font-weight: var(--w-light);
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg-2);
}

p, .vc-body {
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--fg-2);
  text-wrap: pretty;
}

.vc-small   { font-size: var(--t-small); line-height: 1.5; }
.vc-caption { font-family: var(--font-body); font-weight: var(--w-medium);
              font-size: var(--t-caption); letter-spacing: 0.04em; color: var(--fg-3); }

/* Utility */
.vc-gradient-text {
  background: var(--vc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
