@import url("../../polices/polices.css"); /* polices locales (2026-10-20), avant : fonts.googleapis.com */

/* ============================================================
   BARBIER BELLECHASSE — component stylesheet, loaded after tokens.css.
   Everything the page declares from tokens.json (colours, spacing,
   radii, strokes, soft shadows, layout, type scale, weights, tracking,
   font stacks) lives in tokens.css; what stays here is what tokens.json
   cannot hold: derived colours (colour-mix), ink borders and hard
   shadows (they reference --ink), the focus ring, the palettes, the
   motifs, the document base and the type-role classes. The former
   styles.css and tokens/*.css are kept whole under archived/.
   ============================================================ */

/* ---- FONTS: the four voices of the shop sign, all Google Fonts (imported above).
     Bebas Neue (--font-giant), Alfa Slab One (--font-display),
     Spline Sans (--font-body), Space Mono (--font-mono). ---- */

/* ============================================================
   COLORS — derived tints and lines ("Brique & marine").
   ============================================================ */
:root{
  /* Light type that rides on the dark canvas, as translucent cream */
  --on-bg-muted:color-mix(in srgb,var(--cream) 74%,transparent);
  --on-bg-faint:color-mix(in srgb,var(--cream) 55%,transparent);

  /* Lines & tints (derived) */
  --line-ink-soft:color-mix(in srgb,var(--ink) 40%,transparent);
  --line-cream:color-mix(in srgb,var(--cream) 22%,transparent);/* rule on canvas */
  --tint-accent:color-mix(in srgb,var(--brick) 8%,var(--surface));
  --tint-accent-2:color-mix(in srgb,var(--navy) 10%,var(--surface));
}

/* LIGHT THEME — the derived tokens that flip with data-theme="light" on <html>
   (the canvas, on-bg, panel and accent-on-bg overrides are in tokens.css). */
:root[data-theme="light"]{
  --on-bg-muted:color-mix(in srgb,var(--ink) 66%,transparent);
  --on-bg-faint:color-mix(in srgb,var(--ink) 52%,transparent);
  --line-cream:color-mix(in srgb,var(--ink) 16%,transparent); /* hairline on light canvas */
}

/* ============================================================
   PALETTES — four interchangeable colourways (the source template
   ships a palette-switcher). Every palette keeps the same dark
   enseigne canvas + light paper cards; only the paper tone, the
   ink, and the two barber-pole accents change.

   Opt in on any wrapper:  <div data-palette="charbon"> … </div>
   (the default, "Brique & marine", is already on :root.)
   ============================================================ */

/* Charbon & laiton — charcoal ground, brass + rust accents */
[data-palette="charbon"]{
  --cream:#f3ead4; --paper-surface:#efe2c6; --paper-2:#e6d6b4;
  --ink:#251e13; --ink-soft:#6f5e43;
  --brick:#c89a4e; --brick-light:#e0b873; --navy:#b8463a;
  --pole-a:#c89a4e; --pole-b:#b8463a;
}

/* Sapin & crème — forest green + brick */
[data-palette="sapin"]{
  --cream:#f6efda; --paper-surface:#f2e9d2; --paper-2:#e6d8b6;
  --ink:#1e1c14; --ink-soft:#5f5a45;
  --brick:#2f5d43; --brick-light:#3d7656; --navy:#b5402f;
  --pole-a:#b5402f; --pole-b:#2f5d43;
}

/* Pétrole & rouille — teal + burnt orange */
[data-palette="petrole"]{
  --cream:#f6efda; --paper-surface:#f1e8d2; --paper-2:#e3d3b2;
  --ink:#1f1a13; --ink-soft:#6a5e48;
  --brick:#b75a2a; --brick-light:#d0703b; --navy:#1f4a50;
  --pole-a:#b75a2a; --pole-b:#1f4a50;
}

/* Encre & rouge — near-black ink + pure red */
[data-palette="encre"]{
  --cream:#f6efda; --paper-surface:#f3eee0; --paper-2:#e4dcc7;
  --ink:#1a1714; --ink-soft:#6b6353;
  --brick:#c0322b; --brick-light:#d8463b; --navy:#211d18;
  --pole-a:#c0322b; --pole-b:#211d18;
}

/* ============================================================
   TYPOGRAPHY — base element type and role classes. The families, weights,
   tracking and scale are tokens (tokens.css): --font-*, --fw-*, --track-*,
   --fs-*, --lh-*.
   ============================================================ */
/* ---- Base element type (applies once bundle.css is loaded) ---- */
h1,h2{font-family:var(--font-giant);font-weight:400;line-height:var(--lh-tight);letter-spacing:var(--track-giant);text-transform:uppercase}
h3{font-family:var(--font-display);font-weight:400;line-height:var(--lh-snug)}
h1{font-size:var(--fs-giant-1)}
h2{font-size:var(--fs-giant-1)}
h3{font-size:var(--fs-h3)}

/* ---- Type-role helper classes ---- */
.font-giant{font-family:var(--font-giant);text-transform:uppercase;letter-spacing:var(--track-giant);line-height:var(--lh-tight)}
.font-display{font-family:var(--font-display);line-height:var(--lh-snug)}
.font-body{font-family:var(--font-body);line-height:var(--lh-body)}
.font-mono{font-family:var(--font-mono)}
.kicker{font-family:var(--font-mono);font-weight:var(--fw-mono-bold);text-transform:uppercase;letter-spacing:var(--track-kicker);font-size:var(--fs-kicker)}

/* ============================================================
   SHAPE — ink borders, HARD offset shadows and the focus ring.
   The "enseigne" signature: ink-edged panels casting a hard offset shadow
   (no blur). Radii, stroke widths and the soft drops are tokens.
   ============================================================ */
:root{
  /* ---- Ink borders (the black outline around everything on paper) ---- */
  --border-ink:var(--stroke) solid var(--ink);
  --border-ink-bold:var(--stroke-bold) solid var(--ink);
  --border-ink-thin:var(--stroke-thin) solid var(--ink);

  /* ---- HARD offset shadows (signature — flat ink, no blur) ---- */
  --shadow-hard-xs:2px 2px 0 var(--ink);
  --shadow-hard-s:3px 3px 0 var(--ink);
  --shadow-hard-m:5px 5px 0 var(--ink);
  --shadow-hard-l:8px 8px 0 var(--ink);
  /* the "lifted" state a hard-shadow element moves to on hover */
  --shadow-hard-s-hover:5px 5px 0 var(--ink);
  --shadow-hard-m-hover:7px 7px 0 var(--ink);
  --shadow-hard-l-hover:11px 11px 0 var(--ink);

  /* ---- Focus ring ---- */
  --ring:0 0 0 3px color-mix(in srgb,var(--accent) 30%,transparent);
}

/* ============================================================
   MOTIFS — the recurring graphic textures of the shop. Exposed as
   both custom-property "recipes" (compose into any background) and
   ready-to-use utility classes.
     · barber-pole   diagonal red/cream/navy stripe (rails, chips)
     · halftone      dot screen over photos (vintage print)
     · damier        conic checkerboard divider
     · paper-dots    faint dotted kraft texture
     · grain         fractal-noise film grain overlay
   ============================================================ */
:root{
  /* barber-pole stripe — animate background-position for rotation */
  --pole-stripe:repeating-linear-gradient(45deg,
    var(--pole-a) 0 11px, var(--cream) 11px 22px,
    var(--pole-b) 22px 33px, var(--cream) 33px 44px);
  --pole-band:62px;   /* one full stripe cycle (for keyframe travel) */

  /* halftone dot screen (multiply over imagery) */
  --halftone:radial-gradient(var(--ink) 1.1px, transparent 1.3px);
  --halftone-size:6px 6px;

  /* checkerboard */
  --damier:repeating-conic-gradient(var(--ink) 0% 25%, var(--cream) 0% 50%);
  --damier-size:26px 26px;

  /* faint dotted kraft (light section backdrops) */
  --paper-dots:radial-gradient(circle at 1px 1px, color-mix(in srgb,var(--ink) 8%,transparent) 1px, transparent 0);
  --paper-dots-size:14px 14px;

  /* diagonal ticking (card plates) */
  --ticking:repeating-linear-gradient(45deg, color-mix(in srgb,var(--canvas) 55%,transparent) 0 3px, transparent 3px 11px);

  /* film grain (data-URI fractal noise) */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); /* @kind other */
}

/* ---- Utility classes ---- */
.motif-pole{background-image:var(--pole-stripe);background-size:100% var(--pole-band)}
.motif-halftone{position:relative}
.motif-halftone::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:multiply;opacity:.17;background-image:var(--halftone);background-size:var(--halftone-size)}
.motif-damier{height:26px;background-image:var(--damier);background-size:var(--damier-size);border-block:var(--border-ink-bold)}
.motif-paper-dots{background-color:var(--paper);background-image:var(--paper-dots);background-size:var(--paper-dots-size)}
.motif-grain::before{content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.045;background-image:var(--grain)}

/* barber-pole rotation (respects reduced-motion) */
@keyframes pole-travel{to{background-position:0 var(--pole-band)}}
@media (prefers-reduced-motion:no-preference){
  .motif-pole.is-animated{animation:pole-travel 3s linear infinite}
}

/* ============================================================
   BASE — light reset + document defaults + links. Kept minimal:
   components carry their own styling; this just makes bare HTML
   (and the specimen cards) sit correctly on the brand.
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--on-bg);
  font-family:var(--font-body);
  font-weight:var(--fw-body);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}

/* Links — brick, with the enseigne underline-grow on hover */
a{color:var(--accent);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--accent-hover)}

/* Selection + focus */
::selection{background:var(--accent);color:var(--on-accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
