/* ==========================================================================
   CESURNES — base
   Reset, design tokens, typographic scale, shared utilities.

   Breakpoints
     mobile   : 0 – 767      (Figma 320)
     tablet    : 768 – 1199   (mobile composition, stepped-up scale)
     desktop  : 1200+        (Figma 1440)
   ========================================================================== */

/* --------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4,
p, figure, address, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--c-terracota);
  outline-offset: 3px;
}

/* ----------------------------------------------------------- fonts -- */
/* Helvetica Neue for every visitor.

   Each weight resolves in this order:
     1. url()   — the licensed webfont in assets/fonts/ (all platforms)
     2. local() — the copy macOS and iOS already ship, so Apple users cost
                  no download even before the files are in place
     3. Inter   — the fallback in --font-sans, used only if both miss

   Until the .woff2 files are added the url() simply 404s and the cascade
   falls through, so the site keeps working exactly as before. See
   assets/fonts/README.md for the six filenames expected here.

   The family is declared here rather than written straight into the font
   stack on purpose: Windows has no Helvetica Neue and substitutes Arial for
   that name, which would satisfy the stack and swallow the fallback along
   with the 100/200 weights the display type needs. An explicit @font-face
   takes priority over that substitution. */
@font-face {
  font-family: "Helvetica Neue";
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HelveticaNeue-Thin.woff2") format("woff2"),
       local("HelveticaNeue-Thin"), local("Helvetica Neue Thin");
}

@font-face {
  font-family: "Helvetica Neue";
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HelveticaNeue-UltraLight.woff2") format("woff2"),
       local("HelveticaNeue-UltraLight"), local("Helvetica Neue UltraLight");
}

@font-face {
  font-family: "Helvetica Neue";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HelveticaNeue-Light.woff2") format("woff2"),
       local("HelveticaNeue-Light"), local("Helvetica Neue Light");
}

@font-face {
  font-family: "Helvetica Neue";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HelveticaNeue.woff2") format("woff2"),
       local("HelveticaNeue"), local("Helvetica Neue");
}

@font-face {
  font-family: "Helvetica Neue";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HelveticaNeue-Medium.woff2") format("woff2"),
       local("HelveticaNeue-Medium"), local("Helvetica Neue Medium");
}

@font-face {
  font-family: "Helvetica Neue";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HelveticaNeue-Bold.woff2") format("woff2"),
       local("HelveticaNeue-Bold"), local("Helvetica Neue Bold");
}

/* -------------------------------------------------------------- tokens -- */
:root {
  /* palette ------------------------------------------------------------ */
  --c-black:       #090807;   /* brand black        */
  --c-terracota:   #863a1c;   /* brand accent       */
  --c-cream:       #fcf6ec;   /* brand cream        */
  --c-white:       #fcfcfc;   /* off-white surface  */
  --c-ink:         #111;      /* label on light     */
  --c-muted:       #6a6969;   /* product copy       */
  --c-maroon:      #1b0000;   /* section lead copy  */
  --c-chip:        #f3f3f3;   /* hero mark square   */

  --c-rule-light:  #FCFCFC29;
  --c-dim:         rgba(252, 252, 252, .45);
  --c-dim-soft:    rgba(252, 252, 252, .62);

  /* type families ------------------------------------------------------ */
  --font-sans:    "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;

  /* layout ------------------------------------------------------------- */
  --gutter: 10px;
  --shell: 100%;
  /* Distance from the viewport edge to the content column. Below desktop the
     shell is fluid, so this is simply the gutter; on desktop it also absorbs
     the centring margin, which lets a full-bleed band (the hero) line its copy
     up with every boxed section using padding alone. */
  --shell-edge: var(--gutter);

  /* type scale — mobile ------------------------------------------------ */
  --fs-hero-title: 20px;   --lh-hero-title: 20px;
  --fs-hero-sub:   14px;   --lh-hero-sub:   16px;

  --fs-display:    40px;   --lh-display:    40px;   /* Pièces uniques · Partenaires */
  --fs-section:    40px;                            /* la collection                */

  --fs-about:      18px;   --lh-about:      22px;
  --fs-lead:       14px;   --lh-lead:       1.35;

  --fs-prod-name:  20px;
  --fs-prod-price: 16px;
  --fs-prod-desc:  15px;   --lh-prod-desc:  19px;

  --fs-piece-name:  20px;
  --fs-piece-price: 16px;

  --fs-date:        54px;  --lh-date:        50px;
  --fs-event-title: 22px;  --lh-event-title: 30px;
  --fs-event-body:  14px;  --lh-event-body:  18px;

  --fs-btn:         14px;
  --fs-nav:         30px;  --lh-nav:         32px;
  --fs-link:        15px;  --lh-link:        18px;
  --fs-body:        14px;  --lh-body:        18px;
  --fs-meta:        13px;  --lh-meta:        16px;

  /* rhythm ------------------------------------------------------------- */
  --card-gap:  14px;   /* inside a product card       */
  --stack-gap: 20px;   /* between stacked cards       */

  /* motion ------------------------------------------------------------- */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------- tablet -- */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    /* Full width on the gutter — no centred content box, so every section
       lines up with the header. */
    --shell:  100%;

    --fs-hero-title: 32px;   --lh-hero-title: 34px;
    --fs-hero-sub:   18px;   --lh-hero-sub:   24px;

    --fs-display:    64px;   --lh-display:    62px;
    --fs-section:    48px;

    --fs-about:      24px;   --lh-about:      29px;
    --fs-lead:       16px;   --lh-lead:       1.4;

    --fs-prod-name:  22px;
    --fs-prod-price: 18px;
    --fs-prod-desc:  16px;   --lh-prod-desc:  21px;

    --fs-piece-name:  22px;
    --fs-piece-price: 18px;

    --fs-date:        64px;  --lh-date:        60px;
    --fs-event-title: 26px;  --lh-event-title: 32px;
    --fs-event-body:  15px;  --lh-event-body:  20px;

    --fs-btn:   15px;
    --fs-nav:   36px;  --lh-nav:  40px;
    --fs-link:  16px;  --lh-link: 20px;
    --fs-body:  15px;  --lh-body: 20px;
    --fs-meta:  14px;  --lh-meta: 18px;

    --card-gap:  18px;
    --stack-gap: 28px;
  }
}

/* ------------------------------------------------------------ desktop -- */
@media (min-width: 1200px) {
  :root {
    --gutter: 39px;
    /* --shell is the outer width: content (1362) + both gutters. Every section
       resolves to this same 1362 column, so their edges line up vertically the
       whole way down the page. */
    --shell:  1440px;
    /* 50% is half the band: subtract half the content column and what is left
       is the gutter once the viewport passes 1440, and the gutter itself
       before that. */
    --shell-edge: max(var(--gutter), calc(50% - (var(--shell) - var(--gutter) * 2) / 2));

    --fs-hero-title: 48px;   --lh-hero-title: 48px;
    --fs-hero-sub:   24px;   --lh-hero-sub:   32px;

    --fs-display:   100px;   --lh-display:   111px;
    --fs-section:    54px;

    --fs-about:      32px;   --lh-about:      28px;
    --fs-lead:       18px;   --lh-lead:       1.5;

    --fs-prod-name:  24px;
    --fs-prod-price: 20px;
    --fs-prod-desc:  16px;   --lh-prod-desc:  19px;

    --fs-piece-name:  16px;
    --fs-piece-price: 20px;

    --fs-date:        72px;  --lh-date:        72px;
    --fs-event-title: 32px;  --lh-event-title: 26px;
    --fs-event-body:  16px;  --lh-event-body:  20px;

    --fs-btn:   16px;
    --fs-link:  18px;  --lh-link: 18px;
    --fs-body:  16px;  --lh-body: 18px;
    --fs-meta:  16px;  --lh-meta: 16px;

    --card-gap:  20px;
    --stack-gap: 20px;
  }
}

/* ----------------------------------------------------------- document -- */
body {
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Anchor targets clear the fixed header. */
[id] { scroll-margin-top: 90px; }

/* ---------------------------------------------------------- utilities -- */

/* Horizontal shell shared by every section. */
.u-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 14px;
  text-transform: uppercase;
  transition: transform .2s var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Entrance animation — opt-in, driven by reveal.js. */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal { opacity: 1; transform: none; }
}
