/* ============================================================
   Bar à Croissants — Design Tokens
   Editorial · Artisanal French · Mechanical
   ============================================================ */

/* ---- Webfonts ---------------------------------------------- */
/* DM Sans — modern French neutral, the workhorse for EVERYTHING.
   Weight 800/900 used at scale for titles — modern, legible, no serif fuss.
   Instrument Serif — used ONLY for rare italic accents.
   Pinyon Script — wordmark only. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..1000;1,9..40,400..1000&family=Instrument+Serif:ital,wght@0,400;1,400&family=Pinyon+Script&display=swap');

:root {
  /* ============================================================
     COLOR — the painted-croissant system.
     The brand's most recognisable visual asset is the striped
     croissant in rouge / bleu / pistache / or. These ARE the
     palette — not tiny accents. Use them as full panel surfaces.
     ============================================================ */

  /* Crème — the paper, the dough, the inside of the croissant */
  --creme:        #F4ECDA;   /* warm cream, default canvas */
  --creme-pure:   #FAF5EB;   /* lighter cream */
  --creme-deep:   #E9DEC6;   /* slightly darker, panels */
  --ivoire:       #FBF3DE;   /* almost-white, premium card surface */

  /* Espresso — the dark side, the fournil at 5h, signed-by-Louis */
  --espresso:     #1A0F08;   /* primary dark surface */
  --noir-grille:  #0B0604;   /* deeper than espresso, full-bleed dark */
  --reglisse:     #2C1810;   /* body on cream */
  --moka:         #4A2E1F;   /* secondary body */
  --grege:        #7A5B45;   /* tertiary, captions */
  --grege-pale:   #A8896C;   /* hairlines */

  /* On-dark */
  --on-dark:      #F4ECDA;
  --on-dark-2:    #D9C9A8;
  --on-dark-3:    #9C8A6C;

  /* Or — the gold leaf, the crust, the medal */
  --or:           #C89A4A;
  --or-deep:      #8C6420;
  --or-bright:    #E5B863;
  --or-soft:      #E6CB8A;
  --or-leaf:      #B8923A;

  /* Cassis — deep painted blue, myrtille, midnight ink */
  --cassis:       #1F2F6B;
  --cassis-deep:  #0F1A45;
  --cassis-light: #4A5B9F;

  /* Framboise — the painted red, fruity intense */
  --framboise:    #C42B2B;
  --framboise-deep: #8C1F22;
  --framboise-bright: #E04545;

  /* Pistache — the matcha green from Pistache Ultra */
  --pistache:     #5B7A2E;
  --pistache-deep: #3F5A1A;
  --pistache-bright: #98B83C;

  /* Terre — terracotta, oven brick, brique de four */
  --terre:        #B85A2E;
  --terre-deep:   #6B2C12;

  /* Praliné — warm dusty rose, like cooked sugar */
  --praline:      #D4A88E;
  --praline-deep: #A77758;

  /* Steel — the mechanical product */
  --steel:        #C8C8CC;
  --steel-2:      #9B9BA0;
  --steel-deep:   #5A5A5E;

  /* ============================================================
     LEGACY MAPPINGS — keep older code working.
     ============================================================ */
  --paper:        var(--creme);
  --paper-pure:   var(--creme-pure);
  --paper-deep:   var(--creme-deep);
  --paper-stain:  var(--praline);
  --ink:          var(--espresso);
  --ink-2:        var(--reglisse);
  --ink-3:        var(--moka);
  --ink-4:        var(--grege);
  --ink-5:        var(--grege-pale);
  --honey:        var(--or);
  --honey-deep:   var(--or-deep);
  --honey-soft:   var(--or-soft);
  --terracotta:   var(--terre);
  --terracotta-deep: var(--terre-deep);
  --rouge:        var(--framboise);
  --bleu:         var(--cassis);
  --vert:         var(--pistache);

  /* ====== Semantic ====== */
  --bg:           var(--paper);
  --bg-panel:     var(--paper-pure);
  --bg-deep:      var(--paper-deep);
  --bg-ink:       var(--ink);
  --bg-ink-2:     #110A05;

  --fg:           var(--ink-2);
  --fg-strong:    var(--ink);
  --fg-muted:     var(--ink-4);
  --fg-faint:     var(--ink-5);

  --line:         rgba(26, 15, 8, 0.18);
  --line-soft:    rgba(26, 15, 8, 0.10);
  --line-hard:    rgba(26, 15, 8, 0.55);

  --accent:       var(--honey);
  --accent-deep:  var(--honey-deep);

  /* ====== TYPE — families ======
     Display: DM Sans weight 800/900 — modern grotesque, ultra-legible,
              the workhorse for titles, numerals, everything.
     Body:    DM Sans weight 400/500 — same family, no clash.
     Italic accent: Instrument Serif — used sparingly for moments of grace.
     Script:  Pinyon Script — wordmark accent only.
  */
  --font-display: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-sans:    "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, serif;
  --font-script:  "Pinyon Script", "Allura", "Sacramento", cursive;

  /* ====== TYPE — scale ====== */
  --t-hero:       clamp(3.5rem, 7vw, 6.5rem);     /* page hero numerals */
  --t-display:    clamp(2.5rem, 4.5vw, 4.25rem);  /* section headlines */
  --t-h1:         clamp(2rem, 3vw, 2.75rem);
  --t-h2:         clamp(1.5rem, 2vw, 1.875rem);
  --t-h3:         1.25rem;
  --t-lead:       1.125rem;
  --t-body:       1rem;
  --t-small:      0.875rem;
  --t-mono-xl:    clamp(3rem, 6vw, 5rem);         /* the "+2 000 €" treatment */
  --t-mono-lg:    2.25rem;
  --t-eyebrow:    0.75rem;                        /* tracked caps */

  --lh-tight:     1.05;
  --lh-snug:      1.18;
  --lh-body:      1.55;
  --lh-loose:     1.7;

  /* ====== SPACE ====== */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 144px;

  /* ====== RADII ====== */
  /* Crisp paper / catalogue feel. Barely-there corners. */
  --r-0:   0;
  --r-1:   2px;
  --r-2:   4px;
  --r-pill: 999px;

  /* ====== ELEVATION ====== */
  /* Shadows are warm and very subtle. Think pressed paper, not floating UI. */
  --shadow-paper: 0 1px 0 rgba(26,15,8,0.04), 0 2px 8px -3px rgba(26,15,8,0.08);
  --shadow-lift:  0 1px 0 rgba(26,15,8,0.04), 0 12px 32px -12px rgba(26,15,8,0.18);
  --shadow-press: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(26,15,8,0.08);

  /* ====== MOTION ====== */
  --ease-paper:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-snap:   cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast:    160ms;
  --dur-base:    280ms;
  --dur-slow:    520ms;
}

/* ============================================================
   SEMANTIC RULESETS — drop on h1/h2/p/etc to get house style
   ============================================================ */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display — editorial serif, slightly italic-tinged */
.t-display, h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  text-wrap: balance;
}

.t-h1, h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  color: var(--fg-strong);
  text-wrap: balance;
}

.t-h2, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  text-wrap: balance;
}

.t-h3, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  color: var(--fg-strong);
}

.t-lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-lead);
  font-style: italic;
  line-height: var(--lh-loose);
  color: var(--ink-3);
  text-wrap: pretty;
}

.t-body, p {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg);
  text-wrap: pretty;
}

.t-small {
  font-family: var(--font-sans);
  font-size: var(--t-small);
  line-height: var(--lh-body);
  color: var(--ink-3);
}

/* Eyebrow — tracked caps, used above section headlines and on labels */
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Mono — for prices, ROI, big numbers ("+2 000 €", "1,9 s") */
.t-mono, .num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.t-mono-xl {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-mono-xl);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--fg-strong);
}

.t-mono-lg {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--t-mono-lg);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
}

/* Script — used very sparingly for the wordmark and intimate accents */
.t-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--honey-deep);
}

/* Numbered section marker — N°01, N°02 — editorial pacing */
.t-section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

/* Editorial divider with center ornament */
.rule {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--ink-5);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rule__dot {
  width: 4px;
  height: 4px;
  background: var(--ink-5);
  border-radius: 50%;
}

/* Selection */
::selection {
  background: var(--honey);
  color: var(--ink);
}
