/* =========================================================
   FLEUR DE PLAISIR — Jetons de conception du site public
   (L’administration garde tokens.css : ce fichier ne la touche pas.)

   Tout vient du logo : l’or du monogramme F&P sur le bleu nuit,
   la couronne, les rinceaux. Autour : un ivoire de papier fin,
   un rose poudré pris aux pivoines de la boutique, et un vert
   eucalyptus pour les touches de feuillage. Les formes : l’arche
   (une vitrine parisienne) et le filet doré.
   Polices hébergées sur le site (licence SIL OFL) : aucune requête
   vers Google, donc aucune adresse IP transmise sans consentement.
   ========================================================= */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-ext-wght-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: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-wght-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: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-ext-wght-italic.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: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-wght-italic.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: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/jost-latin-ext-wght-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: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/jost-latin-wght-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; }

:root {
  /* ---- Palette ---- */
  --c-nuit:      #131D33;   /* le fond du logo */
  --c-nuit-2:    #1B2843;
  --c-nuit-3:    #263559;
  --c-or:        #C9A35C;   /* l’or du monogramme */
  --c-or-hi:     #E6CB8E;
  --c-or-lo:     #9C7A3A;
  --c-ivoire:    #FBF7F0;
  --c-papier:    #F4ECDF;
  --c-lin:       #EADFCD;
  --c-poudre:    #EBCFCB;   /* rose poudré des pivoines */
  --c-pivoine:   #B4566A;
  --c-eucalyptus:#5F7D6E;
  --c-blanc:     #FFFFFF;

  /* ---- Sémantique : clair par défaut ---- */
  --bg:          var(--c-ivoire);
  --bg-alt:      var(--c-papier);
  --bg-raise:    #FFFFFF;
  --bg-invert:   var(--c-nuit);
  --text:        #1A2238;
  --text-mute:   #6A6F7E;
  --text-invert: var(--c-ivoire);
  --line:        rgba(19,29,51,.12);
  --line-strong: rgba(19,29,51,.26);
  --accent:      var(--c-nuit);
  --accent-ink:  #FFFFFF;
  --gold-ink:    #8E6C2E;   /* or lisible sur fond clair (contraste AA) */
  --ok:     var(--c-eucalyptus);
  --warn:   var(--c-or-lo);
  --danger: #B0303A;

  --grad-or:    linear-gradient(135deg, var(--c-or-hi) 0%, var(--c-or) 45%, var(--c-or-lo) 100%);
  --grad-nuit:  linear-gradient(180deg, var(--c-nuit-2) 0%, var(--c-nuit) 100%);
  --grad-veil:  linear-gradient(180deg, rgba(19,29,51,0) 30%, rgba(19,29,51,.78) 100%);

  --glass-bg:   rgba(251,247,240,.9);
  --glass-brd:  rgba(19,29,51,.1);
  --glass-blur: saturate(140%) blur(14px);

  /* ---- Typographie ----
     Cormorant Garamond : l’élégance des capitales gravées du logo.
     Jost : géométrique et nette, pour l’interface et le texte. */
  --font-display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-body:    'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui:      var(--font-body);
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --t-xs:   clamp(.78rem, .76rem + .10vw, .84rem);
  --t-sm:   clamp(.9rem, .87rem + .14vw, .97rem);
  --t-base: clamp(1.02rem, .98rem + .18vw, 1.1rem);
  --t-lg:   clamp(1.14rem, 1.06rem + .34vw, 1.32rem);
  --t-xl:   clamp(1.35rem, 1.2rem + .7vw, 1.8rem);
  --t-2xl:  clamp(1.9rem, 1.45rem + 1.9vw, 3rem);
  --t-3xl:  clamp(2.4rem, 1.6rem + 3.3vw, 4.4rem);
  --t-4xl:  clamp(2.8rem, 1.6rem + 5vw, 5.8rem);
  --lh-tight: 1.02;
  --lh-snug:  1.12;
  --lh-body:  1.65;

  /* ---- Espacement ---- */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;
  --section-y: clamp(3.75rem, 2.4rem + 5.6vw, 7.5rem);
  --gutter:    clamp(1rem, .6rem + 2.4vw, 3rem);
  --maxw:      1280px;
  --maxw-text: 64ch;

  /* ---- Rayons : l’arche de vitrine et des coins doux ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --r-arch: 999px 999px var(--r-md) var(--r-md);

  /* ---- Ombres : teintées de nuit, jamais grises ---- */
  --sh-1: 0 1px 2px rgba(19,29,51,.06), 0 6px 18px rgba(19,29,51,.06);
  --sh-2: 0 16px 36px rgba(19,29,51,.12);
  --sh-3: 0 30px 70px rgba(19,29,51,.2);
  --ring: 0 0 0 3px rgba(201,163,92,.5);

  /* ---- Mouvement ---- */
  --e-out:   cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --e-back:  cubic-bezier(.34, 1.56, .64, 1);
  --d-fast: 160ms; --d-mid: 320ms; --d-slow: 760ms;

  /* ---- Couches ---- */
  --z-base: 1; --z-sticky: 100; --z-header: 200;
  --z-drawer: 300; --z-modal: 400; --z-toast: 500;
  --header-h: 84px;

  /* ---- Alias attendus par les feuilles structurelles (panier,
     fiche, filtres). L’action principale est la nuit ; l’or souligne. ---- */
  --c-ink: var(--c-nuit); --c-ink-soft: var(--c-nuit-3);
  --c-noir: var(--c-nuit); --c-nuit-4: #33456F;
  --c-charbon: var(--c-nuit-2); --c-charbon-2: var(--c-nuit-3); --c-charbon-3: #33456F;
  --c-red: var(--c-nuit); --c-red-deep: var(--c-nuit-2);
  --c-gold: var(--c-or); --c-gold-a: var(--c-or); --c-orange: var(--c-or);
  --c-couronne: var(--c-nuit); --c-couronne-hi: var(--c-nuit-3); --c-couronne-lo: var(--c-nuit);
  --c-piment: var(--c-pivoine); --c-flamme: var(--c-pivoine); --c-tomate: var(--c-pivoine);
  --c-citron: var(--c-or); --c-naan: var(--c-papier); --c-creme: var(--c-ivoire);
  --c-green: var(--c-eucalyptus); --c-vert: var(--c-eucalyptus); --c-basilic: var(--c-eucalyptus); --c-coriandre: var(--c-eucalyptus);
  --c-light: #FFFFFF; --c-white: #FFFFFF;
  --grad-heat: var(--grad-nuit); --grad-couronne: var(--grad-nuit); --grad-braise: var(--grad-nuit);
  --grad-gold: var(--grad-or); --grad-citron: var(--grad-or); --grad-basil: var(--grad-or);
  --grad-ink: var(--grad-nuit); --grad-bun: var(--grad-or); --grad-bord: var(--grad-nuit);
  --sh-red: none; --sh-gold: none; --glow-braise: var(--ring); --glow-citron: var(--ring);

  color-scheme: light;
}

/* ---------- Mode sombre : la boutique le soir, bleu nuit et or ---------- */
[data-theme="dark"] {
  --bg:          #0E1527;
  --bg-alt:      #141E35;
  --bg-raise:    #1A2641;
  --bg-invert:   var(--c-ivoire);
  --text:        #F3ECDF;
  --text-mute:   #AEB3C2;
  --text-invert: var(--c-nuit);
  --line:        rgba(243,236,223,.12);
  --line-strong: rgba(243,236,223,.28);
  --accent:      var(--c-or);
  --accent-ink:  var(--c-nuit);
  --gold-ink:    var(--c-or-hi);
  --danger:      #F08A90;
  --ok:          #9CC2AE;
  --glass-bg:    rgba(14,21,39,.9);
  --glass-brd:   rgba(243,236,223,.1);
  --sh-1: 0 1px 2px rgba(0,0,0,.5), 0 2px 10px rgba(0,0,0,.35);
  --sh-2: 0 12px 30px rgba(0,0,0,.5);
  --sh-3: 0 26px 64px rgba(0,0,0,.6);
  --c-red: var(--c-or); --c-couronne: var(--c-or);
  --grad-heat: var(--grad-or); --grad-couronne: var(--grad-or); --grad-braise: var(--grad-or);
  color-scheme: dark;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--t-base);
  line-height: var(--lh-body); font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 500;
  line-height: var(--lh-snug); letter-spacing: -.01em; text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h1, h2 { line-height: var(--lh-tight); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-ink); font-weight: 500; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-or); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-poudre); color: var(--c-nuit); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-toast);
  background: var(--c-nuit); color: var(--c-or-hi); font-weight: 600;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-md);
  transition: top var(--d-fast) var(--e-out);
}
.skip-link:focus { top: var(--s-4); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
