/* Fabienne Carat — feuille de style du site public
/* Plan : une entrée en scène plein écran (portrait détouré, réseaux en anneau autour d'elle qui se rangent en liste au défilement),
   puis des sections alignées à gauche, comme un programme de théâtre. Toute la palette découle de cinq couleurs d'ambiance. */
:root {
  /* Ambiance : cinq couleurs posées par ambiances.js (valeurs Signature par défaut) */
  --a-stage: #2A1621;   /* fond de scène : entrée, pied de page, bandeau défilant */
  --a-accent: #B03A5B;  /* boutons et liens */
  --a-light: #FAF2EF;   /* fond des pages */
  --a-band: #F1DCD3;    /* bandes et surfaces douces */
  --a-detail: #CDAE7E;  /* filets et détails sur fond sombre */

  --velours: var(--a-stage);
  --nacre: var(--a-light);
  --poudre: var(--a-band);
  --champagne: var(--a-detail);
  --stage-deep: color-mix(in srgb, var(--a-stage) 75%, #000);

  /* Rôles, mode clair */
  --bg: var(--a-light);
  --surface: color-mix(in srgb, var(--a-light) 55%, #fff);
  --band: var(--a-band);
  --fg: color-mix(in srgb, var(--a-stage) 90%, var(--a-light));
  --muted: color-mix(in srgb, var(--a-stage) 65%, var(--a-light));
  --line: color-mix(in srgb, var(--a-stage) 16%, transparent);
  --accent: var(--a-accent);
  --on-accent: color-mix(in srgb, var(--a-light) 40%, #fff);
  --stage: var(--a-stage);
  --on-stage: color-mix(in srgb, var(--a-light) 92%, var(--a-band));
  --on-stage-muted: color-mix(in srgb, var(--on-stage) 72%, transparent);
  --scrim: color-mix(in srgb, var(--stage-deep) 62%, transparent);
  --shadow: 0 24px 60px -28px color-mix(in srgb, var(--a-stage) 45%, transparent);

  /* Typographie */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --f-body: "Jost", "Futura", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --t-hero: clamp(4.2rem, 2rem + 13vw, 15rem);

  /* Mise en page */
  --gut-l: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(16px, 5vw, 72px), env(safe-area-inset-right, 0px));
  --max: 1240px;
  --ease: cubic-bezier(.22, .7, .18, 1);
  --annonce-h: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: color-mix(in srgb, var(--a-stage) 72%, #000);
    --surface: color-mix(in srgb, var(--a-stage) 90%, #000);
    --band: color-mix(in srgb, var(--a-stage) 94%, #fff);
    --fg: color-mix(in srgb, var(--a-light) 90%, var(--a-band));
    --muted: color-mix(in srgb, var(--a-light) 68%, var(--a-stage));
    --line: color-mix(in srgb, var(--a-light) 14%, transparent);
    --accent: color-mix(in srgb, var(--a-accent) 55%, #fff);
    --on-accent: var(--stage-deep);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: color-mix(in srgb, var(--a-stage) 72%, #000);
  --surface: color-mix(in srgb, var(--a-stage) 90%, #000);
  --band: color-mix(in srgb, var(--a-stage) 94%, #fff);
  --fg: color-mix(in srgb, var(--a-light) 90%, var(--a-band));
  --muted: color-mix(in srgb, var(--a-light) 68%, var(--a-stage));
  --line: color-mix(in srgb, var(--a-light) 14%, transparent);
  --accent: color-mix(in srgb, var(--a-accent) 55%, #fff);
  --on-accent: var(--stage-deep);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 144px);
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.titre { font-size: var(--t-2xl); font-style: italic; }
.chapo { color: var(--muted); max-width: 46ch; margin: .75rem 0 0; font-size: var(--t-md); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.5em; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; font-weight: 500; letter-spacing: .01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-plein { background: var(--accent); color: var(--on-accent); }
.btn-plein:hover { transform: translateY(-1px); }
.btn-trait { border-color: var(--line); background: transparent; color: var(--fg); }
.btn-trait:hover { border-color: var(--fg); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.lien-fleche { display: inline-flex; gap: .5em; align-items: center; color: var(--fg); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.lien-fleche:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Bandeau d'annonce (ambiance) ---------- */
.annonce {
  position: fixed; z-index: 62; top: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(52px, env(safe-area-inset-right, 0px)) 8px max(52px, env(safe-area-inset-left, 0px));
  background: var(--accent); color: var(--on-accent); font-size: var(--t-xs); line-height: 1.4;
}
.annonce-in { margin: 0; text-align: center; text-wrap: balance; min-width: 0; }
.annonce-in svg { display: inline-block; vertical-align: -3px; margin-right: .2em; }
.annonce-in a { margin-left: .5em; }
.annonce a { color: inherit; font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }
.annonce button { position: absolute; right: max(6px, env(safe-area-inset-right, 0px)); bottom: 2px; width: 40px; height: 36px; border: 0; background: none; color: inherit; font-size: 1.2rem; line-height: 1; }
.a-annonce .entete { top: var(--annonce-h); padding-top: 0; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  color: var(--on-stage);
}
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.entete.solide { background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--fg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.marque { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.marque span { opacity: 0; transition: opacity .4s var(--ease); }
.entete.solide .marque span, .page-interne .marque span { opacity: 1; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); }
.nav a { text-decoration: none; font-size: var(--t-sm); position: relative; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.outils { display: flex; align-items: center; gap: .25rem; }
.icone-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: none; border: 0; position: relative; }
.icone-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.pastille-nb { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.burger { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
}

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--velours); color: var(--on-stage);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(80px + env(safe-area-inset-top, 0px)) var(--gut-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .6s var(--ease); visibility: hidden;
}
.menu.ouvert { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu a { font-family: var(--f-display); font-style: italic; font-size: clamp(2.2rem, 10vw, 3.5rem); text-decoration: none; line-height: 1.2; }
.menu .fermer { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: var(--gut-r); color: var(--on-stage); }

/* ---------- Entrée en scène ---------- */
.entree { position: relative; height: 230svh; background: var(--stage); color: var(--on-stage); }
.entree.statique { height: auto; }
.entree-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.entree.statique .entree-sticky { position: relative; height: auto; min-height: 100svh; }
.scene { position: absolute; inset: 0; }
.scene canvas, .scene video, .scene .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene video { opacity: 0; transition: opacity 1.2s var(--ease); }
.scene video.pret { opacity: 1; }
.scene .poster { background-size: cover; background-position: center; }
.voile {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 0%, color-mix(in srgb, var(--stage-deep) 35%, transparent) 60%, color-mix(in srgb, var(--stage-deep) 85%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--stage-deep) 35%, transparent) 0%, color-mix(in srgb, var(--stage-deep) 15%, transparent) 40%, color-mix(in srgb, var(--stage-deep) 70%, transparent) 100%);
  opacity: calc(.75 + var(--ouv, 0) * .25);
}
.grain { position: absolute; z-index: 5; inset: -50%; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -5%); } 100% { transform: translate(0, 0); } }

.nom-bloc {
  position: absolute; left: 0; top: 0;
  transform: translate(var(--nom-x, 50vw), var(--nom-y, 50svh)) translate(-50%, -50%) scale(var(--nom-s, 1));
  text-align: center; width: max-content; max-width: 100vw; pointer-events: none; will-change: transform; z-index: 6;
  text-shadow: 0 2px 40px color-mix(in srgb, var(--stage-deep) 55%, transparent);
}
.nom { font-size: var(--t-hero); font-style: italic; line-height: .86; letter-spacing: -.035em; font-weight: 400; display: grid; }
.nom .l1 { transform: translateX(-.18em); }
.nom .l2 { transform: translateX(.32em); }
.nom .lettre { display: inline-block; opacity: 0; transform: translateY(.35em); animation: lettre 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 200ms); }
@keyframes lettre { to { opacity: 1; transform: none; } }
.accroche {
  position: absolute; z-index: 8; left: 0; top: 0; transform: translate(var(--acc-x, 50vw), var(--acc-y, 80svh)) translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); margin: 0; text-align: center; text-wrap: balance;
  font-size: clamp(.75rem, .68rem + .35vw, .95rem); letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-stage-muted); opacity: calc(1 - var(--ouv, 0) * 2.2); pointer-events: none;
}
.entree.statique .accroche { position: static; transform: none; opacity: 1; z-index: 7; }
@media (max-width: 699px) { .accroche { letter-spacing: .2em; font-size: .72rem; } }

/* Les réseaux : pastilles en orbite qui deviennent une liste */
.liens { list-style: none; margin: 0; padding: 0; }
.entree-inner { position: absolute; inset: 0; }
.liens.orbite { position: absolute; inset: 0; }
.liens.orbite .lien { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; z-index: 1; }
.liens.orbite .lien.devant { z-index: 7; }
.lien a {
  --w: 58px;
  display: flex; align-items: center; gap: 14px;
  height: 58px; width: var(--w); padding: 6px; border-radius: 999px;
  text-decoration: none; color: var(--on-stage);
  background: color-mix(in srgb, var(--a-stage) calc((.3 + var(--ouv, 0) * .35) * 100%), transparent);
  border: 1px solid color-mix(in srgb, var(--on-stage) 28%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; white-space: nowrap;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.liens.orbite .lien a { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.lien a:hover { border-color: var(--champagne); background: color-mix(in srgb, var(--a-stage) 75%, transparent); }
.mono {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: 1.15rem; letter-spacing: -.02em;
  background: var(--on-stage); color: var(--velours);
}
.lien-txt { display: grid; line-height: 1.2; min-width: 0; opacity: var(--ouv, 0); }
.lien-txt strong { font-weight: 500; font-size: var(--t-sm); }
.lien-txt small { font-size: var(--t-xs); color: var(--on-stage-muted); overflow: hidden; text-overflow: ellipsis; }
.lien-fl { margin-left: auto; margin-right: 12px; opacity: var(--ouv, 0); font-size: 1.1rem; }
.lien-mini {
  position: absolute; left: 0; top: 36px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-stage-muted);
  opacity: calc(1 - var(--ouv, 0) * 3); white-space: nowrap; pointer-events: none;
}
.liens:not(.orbite) .lien-mini { display: none; }
/* Liste statique (mouvement réduit) */
.entree.statique .entree-inner { position: relative; z-index: 2; padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gut-r) 64px var(--gut-l); display: grid; justify-items: center; gap: 2rem; }
.entree.statique .nom-bloc { position: static; transform: none; }
.entree.statique .liens { display: grid; gap: 10px; width: min(440px, 100%); --ouv: 1; position: relative; z-index: 7; }
.entree.statique .lien a { --w: 100%; }
.entree.statique .nom-bloc { z-index: 7; }

/* Portrait détouré : devant la scène, derrière le nom et les liens */
.portrait { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 50% 100%; will-change: transform; pointer-events: none; }
.portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 11%, #000 70%, transparent 99%); mask-image: linear-gradient(to bottom, transparent 0, #000 11%, #000 70%, transparent 99%);
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--a-accent) 32%, transparent));
  animation: portrait-in 1.6s var(--ease) .2s both;
}
@keyframes portrait-in { from { opacity: 0; transform: translateY(26px); } }
.halo {
  position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; pointer-events: none; will-change: transform;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a-accent) 46%, transparent), color-mix(in srgb, var(--a-detail) 14%, transparent) 58%, transparent);
}
.voile-portrait { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: color-mix(in srgb, var(--stage-deep) 72%, transparent); opacity: var(--assombrir, 0); }
.pied-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 4; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--stage-deep) 80%, transparent)); }
.particules { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.entree.statique .portrait { left: 50%; top: auto; bottom: 0; width: auto; height: 62svh; transform: translateX(-50%); opacity: .5; }
.entree.statique .portrait img { width: auto; }
.entree.statique .descendre { display: none; }

.descendre {
  position: absolute; z-index: 8; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-stage-muted); text-decoration: none; opacity: calc(1 - var(--ouv, 0) * 2);
}
.descendre i { width: 1px; height: 40px; background: linear-gradient(var(--on-stage-muted), transparent); animation: tombe 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes tombe { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Défilé des rôles ---------- */
.defile { background: var(--stage); color: var(--on-stage); overflow: hidden; padding-block: clamp(20px, 3vw, 34px); border-top: 1px solid color-mix(in srgb, var(--a-detail) 25%, transparent); }
.defile-piste { display: flex; width: max-content; will-change: transform; }
.defile-piste span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem); padding-right: .9em; white-space: nowrap; }
.defile-piste span::after { content: "✦"; font-style: normal; font-size: .4em; vertical-align: middle; margin-left: .9em; color: var(--champagne); }
.defile-piste.icone span::after { content: none; }
.defile-piste .sep { display: inline-flex; vertical-align: middle; margin-left: .9em; color: var(--champagne); }
.defile-piste .sep svg { width: .55em; height: .55em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); scroll-margin-top: 20px; }
.section-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(28px, 4vw, 52px); }
.section-tete > div { min-width: 0; }
.bande { background: var(--band); }

/* ---------- À l'affiche : billets ---------- */
.affiche { position: relative; }
.affiche.horizontale { height: var(--h, 300vh); padding-block: 0; }
.affiche.horizontale .affiche-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 64px; }
.piste-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.piste-wrap::-webkit-scrollbar { display: none; }
.affiche.horizontale .piste-wrap { overflow: visible; }
.piste { display: flex; gap: clamp(14px, 2vw, 28px); padding-left: var(--gut-l); padding-right: var(--gut-r); width: max-content; will-change: transform; }
.billet {
  scroll-snap-align: start; width: clamp(272px, 78vw, 400px); flex: none;
  display: grid; grid-template-rows: auto 1fr; background: var(--surface); color: var(--fg);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.billet-visuel { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--velours); }
.billet-visuel img { width: 100%; height: 100%; object-fit: cover; }
.billet-type {
  position: absolute; left: 14px; top: 14px; background: color-mix(in srgb, var(--stage-deep) 55%, transparent); color: var(--on-stage);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 4px 12px; font-size: var(--t-xs); letter-spacing: .04em;
}
.billet-corps { display: grid; grid-template-rows: 1fr auto; }
.billet-haut { padding: 20px 22px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.billet-haut h3 { font-size: var(--t-xl); font-style: italic; }
.billet-haut p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
/* le talon détachable, avec sa perforation */
.talon {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px 18px; border-top: 2px dotted var(--line);
}
.talon::before, .talon::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.talon::before { left: -10px; } .talon::after { right: -10px; }
.bande .talon::before, .bande .talon::after { background: var(--band); }
.talon-date { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; }
.talon .btn { min-height: 40px; padding: 0 1.1em; font-size: var(--t-sm); flex: none; }
.lecteur { padding: 0 16px 16px; }
.lecteur iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.affiche-progres { margin: 28px var(--gut-r) 0 var(--gut-l); height: 1px; background: var(--line); position: relative; }
.affiche-progres i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 0)); }
.fleches { display: flex; gap: 8px; }
.fleches button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.fleches button:hover { border-color: var(--fg); }
.affiche.horizontale .fleches { display: none; }

/* Visuels générés (sans photo) */
.visuel {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(90% 70% at var(--x, 30%) var(--y, 20%), color-mix(in srgb, var(--a-accent) 45%, #fff), transparent 60%),
    radial-gradient(80% 80% at 85% 90%, color-mix(in srgb, var(--a-detail) 55%, var(--a-stage)), transparent 65%),
    var(--velours);
}
.visuel b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(4rem, 12vw, 7rem); color: color-mix(in srgb, var(--a-light) 90%, transparent); letter-spacing: -.04em; line-height: 1; }

/* ---------- Boutique ---------- */
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(14px, 2vw, 28px); }
@media (min-width: 760px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.produit { display: grid; gap: 12px; text-align: left; background: none; border: 0; padding: 0; color: inherit; min-width: 0; }
.produit-img { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; position: relative; background: var(--band); }
.produit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.produit:hover .produit-img img { transform: scale(1.04); }
.produit-img .etiquette { position: absolute; left: 10px; bottom: 10px; background: var(--surface); color: var(--fg); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.produit-info { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; min-width: 0; }
.produit-info h3 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 500; line-height: 1.35; min-width: 0; }
.prix { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--t-sm); }
.produit .cat { font-size: var(--t-xs); color: var(--muted); margin-top: -8px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .45rem 1rem; font-size: var(--t-sm); min-height: 40px; }
.puce[aria-pressed="true"], .puce:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.vide { padding: 48px 0; color: var(--muted); }

/* ---------- Fenêtres (produit, panier, article) ---------- */
.fond { position: fixed; inset: 0; background: var(--scrim); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.fond.ouvert { opacity: 1; pointer-events: auto; }
.tiroir {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); color: var(--fg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.tiroir.ouvert { transform: none; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.tiroir-tete h2 { font-size: var(--t-xl); font-style: italic; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 8px 20px; }
.tiroir-pied { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ligne-panier { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ligne-panier .mini { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; position: relative; background: var(--band); }
.ligne-panier .mini img { width: 100%; height: 100%; object-fit: cover; }
.ligne-panier .mini .visuel b { font-size: 1.8rem; }
.ligne-panier h4 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 500; line-height: 1.3; }
.ligne-panier small { color: var(--muted); font-size: var(--t-xs); }
.qte { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qte button { width: 32px; height: 32px; border: 0; background: none; }
.qte span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--t-sm); }
.total { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.total.grand { font-size: var(--t-lg); font-family: var(--f-display); }
.note { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.alerte { font-size: var(--t-sm); padding: 12px 14px; border-radius: 12px; background: var(--band); margin: 0; }

.modale {
  position: fixed; z-index: 81; inset: auto 0 0 0; max-height: 92svh; overflow-y: auto;
  background: var(--bg); color: var(--fg); border-radius: 22px 22px 0 0;
  transform: translateY(105%); transition: transform .55s var(--ease);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.modale.ouvert { transform: none; }
@media (min-width: 900px) {
  .modale { inset: 50% auto auto 50%; width: min(1040px, calc(100% - 64px)); max-height: min(86vh, 760px); border-radius: 22px; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s var(--ease); }
  .modale.ouvert { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
}
.fiche { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fiche { grid-template-columns: 1.05fr 1fr; } }
.fiche-galerie { position: relative; background: var(--band); }
.fiche-galerie .principale { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
@media (max-width: 899px) { .fiche-galerie .principale { aspect-ratio: auto; height: 46svh; } }
.fiche-galerie .principale img { width: 100%; height: 100%; object-fit: cover; }
.vignettes { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.vignettes button { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; flex: none; background: none; }
.vignettes button[aria-current="true"] { border-color: var(--fg); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.fiche-info { padding: clamp(22px, 4vw, 44px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.fiche-info h2 { font-size: var(--t-xl); font-style: italic; }
.fiche-info .prix { font-size: var(--t-lg); }
.fiche-info p { margin: 0; color: var(--muted); }
.fermer-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--fg); display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.fermer-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* ---------- Champs ---------- */
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label, .champ .lbl { font-size: var(--t-xs); color: var(--muted); letter-spacing: .02em; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 16px;
  transition: border-color .2s var(--ease);
}
.champ textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--accent); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-xs); color: var(--muted); }
.case input { margin-top: 3px; accent-color: var(--accent); }

/* ---------- Coulisses (journal) ---------- */
.articles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.article-ligne a {
  display: grid; grid-template-columns: 9rem 1fr auto; gap: clamp(12px, 3vw, 40px); align-items: baseline;
  padding: clamp(20px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.article-ligne time { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.article-ligne h3 { font-size: var(--t-xl); font-style: italic; transition: transform .5s var(--ease), color .3s; }
.article-ligne p { margin: .4rem 0 0; color: var(--muted); font-size: var(--t-sm); max-width: 60ch; }
.article-ligne a:hover h3 { transform: translateX(10px); color: var(--accent); }
.article-ligne .fl { font-size: 1.2rem; color: var(--muted); }
@media (max-width: 640px) {
  .article-ligne a { grid-template-columns: 1fr auto; }
  .article-ligne time { grid-column: 1 / -1; }
}
.survol { position: fixed; z-index: 40; width: 260px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-3deg); transition: opacity .3s var(--ease), transform .4s var(--ease); box-shadow: var(--shadow); }
.survol.vu { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.survol img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .survol { display: none; } }

.lecture { max-width: 720px; }
.lecture-tete { display: grid; gap: 14px; margin-bottom: 36px; }
.lecture-tete time { color: var(--muted); font-size: var(--t-sm); }
.lecture-tete h1 { font-size: var(--t-2xl); font-style: italic; }
.lecture-couv { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; margin-bottom: 36px; background: var(--band); }
.lecture-couv img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: var(--t-xl); font-style: italic; margin: 2.2rem 0 .8rem; }
.prose p { margin: 0 0 1.2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose a { color: var(--accent); }
.retour { display: inline-flex; margin-bottom: 32px; }

/* ---------- À propos ---------- */
.apropos { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .apropos { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.arche { aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden; position: relative; background: var(--velours); max-width: 460px; width: 100%; }
.arche img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--px, 0px)); }
.arche .visuel b { font-size: clamp(5rem, 16vw, 9rem); }
.bio { min-width: 0; }
.bio .titre { margin-bottom: 1.5rem; }
.bio p { margin: 0 0 1.1rem; max-width: 62ch; }
.bio p:first-of-type { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.45; }

/* ---------- Écrire ---------- */
.ecrire { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .ecrire { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.formulaire { display: grid; gap: 16px; }
.formulaire .duo { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .formulaire .duo { grid-template-columns: 1fr 1fr; } }
.types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.types legend { font-size: var(--t-xs); color: var(--muted); margin-bottom: 8px; padding: 0; }
.types label { cursor: pointer; display: inline-flex; align-items: center; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoye { padding: 28px; border-radius: 18px; background: var(--band); }
.envoye h3 { font-size: var(--t-xl); font-style: italic; margin-bottom: .5rem; }
.contact-direct { margin-top: 1.5rem; font-size: var(--t-sm); color: var(--muted); }

/* ---------- Pied de page ---------- */
.pied { background: var(--stage); color: var(--on-stage); padding-block: clamp(56px, 8vw, 96px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.pied-nom { font-family: var(--f-display); font-style: italic; font-size: clamp(3rem, 1rem + 10vw, 10rem); line-height: .9; letter-spacing: -.03em; }
.pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--a-detail) 30%, transparent); }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pied a { text-decoration: none; color: var(--on-stage-muted); font-size: var(--t-sm); }
.pied a:hover { color: var(--on-stage); }
.pied small { color: var(--on-stage-muted); font-size: var(--t-xs); }

/* ---------- Pages internes ---------- */
.page-interne .entete { color: var(--fg); }
.page-tete { padding-top: calc(130px + var(--annonce-h) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(24px, 4vw, 48px); }
.page-tete h1 { font-size: clamp(3rem, 1.5rem + 7vw, 7.5rem); font-style: italic; letter-spacing: -.03em; }

/* ---------- Assistant ---------- */
.assistant-btn {
  position: fixed; z-index: 75; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--a-detail) 45%, transparent); background: var(--velours); color: var(--on-stage);
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--stage-deep) 70%, transparent); font-size: var(--t-sm);
  transition: transform .3s var(--ease);
}
.assistant-btn:hover { transform: translateY(-2px); }
.assistant-btn .mono { width: 40px; height: 40px; font-size: 1rem; background: var(--champagne); }
.assistant-btn.cache { transform: translateY(calc(100% + 90px)); }
.assistant {
  position: fixed; z-index: 76; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100% - 24px)); height: min(620px, calc(100svh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  background: var(--bg); color: var(--fg); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -24px color-mix(in srgb, var(--stage-deep) 65%, transparent); border: 1px solid var(--line);
  transform-origin: bottom right; transform: scale(.92) translateY(12px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.assistant.ouvert { transform: none; opacity: 1; pointer-events: auto; }
.assistant-tete { background: var(--velours); color: var(--on-stage); padding: 16px 16px 14px 18px; display: flex; align-items: center; gap: 12px; }
.assistant-tete .mono { background: var(--champagne); }
.assistant-tete div { flex: 1; min-width: 0; line-height: 1.25; }
.assistant-tete strong { font-weight: 500; font-size: var(--t-sm); display: block; }
.assistant-tete small { font-size: 12px; color: var(--on-stage-muted); }
.assistant-tete .icone-btn { color: var(--on-stage); }
.fil { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.bulle { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: var(--t-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.ia { background: var(--band); border-bottom-left-radius: 6px; align-self: flex-start; }
.bulle.moi { background: var(--fg); color: var(--bg); border-bottom-right-radius: 6px; align-self: flex-end; }
.bulle.ecrit { display: inline-flex; gap: 4px; }
.bulle.ecrit i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1s infinite; }
.bulle.ecrit i:nth-child(2) { animation-delay: .15s; } .bulle.ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.actions-ia { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.actions-ia button { border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: var(--t-xs); min-height: 34px; }
.suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.suggestions::-webkit-scrollbar { display: none; }
.suggestions button { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: var(--t-xs); min-height: 34px; }
.saisie { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.saisie input { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 16px; }
.saisie input:focus { outline: none; border-color: var(--accent); }
.saisie button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.saisie button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.quota { font-size: 11px; color: var(--muted); text-align: center; padding: 0 12px 10px; }

/* Toast */
.toast { position: fixed; z-index: 95; left: 50%; top: calc(84px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: var(--t-sm); transition: all .4s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.vu { opacity: 1; transform: translate(-50%, 0); }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .nom .lettre { opacity: 1; transform: none; }
}
