/* =========================================================
   Forge de Thesa — feuille de style
   Concept : l'atelier dans la pénombre. Fond charbon chaud,
   la photo porte le site, texte couleur papier, un seul accent
   « laiton » repris des inserts des manches.
   Titres en mincho japonais (Shippori Mincho), texte en gothique
   japonais à dessin latin sobre (Zen Kaku Gothic New).
   Le site assume un seul thème sombre, volontairement.
   ========================================================= */

:root {
  --bg: #121110;          /* charbon */
  --bg-2: #191715;        /* bande alternée */
  --surface: #221f1c;     /* fond des photos et des cartes */
  --ink: #ece6dc;         /* papier */
  --muted: #a69d90;       /* texte secondaire */
  --faint: #6f675e;
  --line: rgb(236 230 220 / .12);
  --brass: #c9a46a;       /* laiton */
  --brass-ink: #17130d;
  --overlay: rgb(10 9 8 / .62);

  --f-display: "Shippori Mincho B1", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;

  --t-xs: .86rem;
  --t-sm: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.3rem;
  --t-xl: clamp(1.6rem, 1.6vw + 1.1rem, 2.2rem);
  --t-2xl: clamp(2.1rem, 3vw + 1.2rem, 3.4rem);
  --t-3xl: clamp(2.6rem, 5.5vw + 1rem, 5.4rem);

  --gutter: clamp(16px, 4.5vw, 56px);
  --wrap: 1240px;
  --narrow: 720px;
  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--t-3xl); font-weight: 800; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
p { margin: 0; max-width: 64ch; }
ul { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); }
.stack { display: grid; gap: 1.2rem; align-content: start; }
.label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.lead { font-size: var(--t-lg); line-height: 1.7; color: var(--ink); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: .5rem 1rem; z-index: 99; }

/* Texte provisoire à confirmer (à retirer avant mise en ligne) */
mark.todo {
  background: rgb(201 164 106 / .18);
  color: inherit;
  border-bottom: 1px dashed var(--brass);
  padding: 0 .15em;
}

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--brass-ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
@media (hover: hover) { .btn:hover { background: transparent; color: var(--brass); } }
.btn-line { background: transparent; color: var(--ink); border-color: rgb(236 230 220 / .45); }
@media (hover: hover) { .btn-line:hover { color: var(--ink); border-color: var(--ink); background: rgb(236 230 220 / .06); } }
/* Appui : la commande s'enfonce dès le contact, sans attendre le relâchement. Survols réservés aux souris (@media (hover: hover)) : sur écran tactile, ils resteraient collés après un toucher. */
.btn, .btn-line, .menu-toggle, .cart-link, .copy-btn, .ci-remove, .ref-remove, .g-nav, .g-zoom, .lb-btn, .thumbs button { -webkit-tap-highlight-color: transparent; }
:is(.btn, .btn-line, .menu-toggle, .cart-link, .copy-btn, .ci-remove, .ref-remove, .g-nav, .g-zoom, .lb-btn, .thumbs button):active:not(:disabled) { scale: .97; }
.btn[disabled] { opacity: .5; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(4px); } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: rgb(18 17 16 / .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav ul { list-style: none; padding: 0; display: flex; gap: clamp(.8rem, 2vw, 2.2rem); }
.nav a {
  display: block;
  padding-block: .4rem;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  transition: color .2s ease;
}
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
.nav a[aria-current="page"] { color: var(--brass); }
.menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-sm);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 0;
  cursor: pointer;
}
/* Trois traits qui se croisent en × quand le menu est ouvert */
.menu-toggle span { position: relative; display: block; width: 22px; height: 1px; background-color: currentColor; transition: background-color .15s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span { background-color: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
/* Fond assombri derrière le menu ouvert (ajouté par main.js) : un clic dessus referme le menu */
.nav-scrim { position: fixed; inset: 0; z-index: 29; background: rgb(0 0 0 / .55); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.nav-scrim.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
/* Menu replié en dessous de 1180 px : au-delà, le nom et les cinq liens tiennent sur une ligne avec l'icône panier */
@media (min-width: 1181px) { .nav-scrim { display: none; } }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  /* Le menu descend de l'en-tête et y remonte par le même chemin */
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); transition: opacity .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1), visibility 0s .2s; }
  .nav[data-open="false"] { opacity: 0; transform: translateY(-.6rem); visibility: hidden; }
  .nav[data-open="true"] { transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .nav a { padding-block: .95rem; border-bottom: 1px solid var(--line); font-size: var(--t-md); }
}
@media (max-width: 420px) { .brand-name { font-size: 1rem; letter-spacing: .12em; } .brand img { width: 38px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-foot { margin-top: clamp(2rem, 4vw, 3rem); display: flex; justify-content: center; }

/* ---------- Hero plein écran photo ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero > .wrap, .page-hero > .wrap, .band > .wrap { width: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(18 17 16 / .25) 0%, rgb(18 17 16 / .15) 35%, rgb(18 17 16 / .9) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgb(18 17 16 / .7) 0%, rgb(18 17 16 / 0) 60%);
}
.hero-content { padding-block: 0 clamp(3rem, 8vw, 6rem); display: grid; gap: 1.5rem; max-width: 760px; }
.hero h1 { line-height: 1.05; }
.hero .lead { color: var(--ink); max-width: 46ch; }

/* En-tête de page avec photo (pages intérieures) */
.page-hero {
  position: relative;
  min-height: clamp(320px, 46vh, 480px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.page-hero .hero-media img { object-position: 50% 50%; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(18 17 16 / .45) 0%, rgb(18 17 16 / .55) 50%, var(--bg) 100%);
}
.page-hero .hero-content { padding-block: 3rem clamp(2.5rem, 5vw, 4rem); max-width: 820px; }
.page-hero h1 { font-size: var(--t-2xl); }
.page-plain { padding-block: clamp(3rem, 7vw, 5rem) 1rem; display: grid; gap: 1rem; }
.page-plain h1 { font-size: var(--t-2xl); }

/* ---------- Bloc image + texte ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.feature-media.landscape img { aspect-ratio: 4 / 3; }
.feature-text { display: grid; gap: 1.4rem; align-content: center; }
.feature-text p + p { margin-top: -.3rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.reverse .feature-media { order: 0; }
  .feature-media img { aspect-ratio: 4 / 3; }
}

/* Bandeau photo pleine largeur avec citation */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(380px, 60vh, 620px);
  display: grid;
  align-items: center;
}
.band .hero-media img { object-position: 50% 45%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(18 17 16 / .88) 0%, rgb(18 17 16 / .7) 45%, rgb(18 17 16 / .25) 100%); }
@media (max-width: 700px) { .band::after { background: var(--overlay); } }
.band-content { display: grid; gap: 1.2rem; justify-items: start; max-width: 640px; padding-block: 4rem; }
.band blockquote { margin: 0; font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1.25; font-weight: 700; text-wrap: balance; }

/* ---------- Cartes de couteaux ---------- */
.knife-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
}
.knife-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .knife-grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); } }
.knife-card { display: grid; gap: 1rem; text-decoration: none; color: inherit; align-content: start; }
.knife-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface);
}
.knife-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
.knife-photo .alt-img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .knife-card:hover .knife-photo img { transform: scale(1.03); } }
@media (hover: hover) { .knife-card:hover .knife-photo .alt-img { opacity: 1; } }
.knife-tag {
  position: absolute;
  top: .9rem;
  left: .9rem;
  padding: .3rem .7rem;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgb(18 17 16 / .78);
  color: var(--ink);
}
.knife-tag.dispo { background: var(--brass); color: var(--brass-ink); }
.knife-meta { display: grid; gap: .25rem; }
.knife-meta h3 { font-size: 1.45rem; font-weight: 700; }
@media (hover: hover) { .knife-card:hover h3 { color: var(--brass); } }
.knife-sub { font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .9rem; }

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; flex-wrap: wrap; gap: .3rem 1.8rem; }
.tab {
  background: none;
  border: 0;
  padding: .4rem 0;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
@media (hover: hover) { .tab:hover { color: var(--ink); } }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.toggle { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--t-sm); color: var(--muted); cursor: pointer; }
.toggle { min-height: 44px; }
.toggle input { accent-color: var(--brass); width: 1.4rem; height: 1.4rem; }
.empty { color: var(--muted); padding-block: 2rem; }
.note { color: var(--muted); font-size: var(--t-sm); margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Fiche produit ---------- */
.product { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: .8rem; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); overflow: hidden; }
/* Carrousel : une photo par « page », défilement horizontal aimanté (glissement natif au doigt) */
.g-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.g-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgb(236 230 220 / .18); border-radius: 50%; background: rgb(18 17 16 / .45); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .25s ease, background .2s ease; backdrop-filter: blur(2px); }
.g-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.gallery-main:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
@media (hover: hover) { .g-nav:hover { background: rgb(18 17 16 / .7); border-color: var(--brass); } }
.g-nav:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.g-nav:disabled { opacity: 0 !important; pointer-events: none; }
/* Première / dernière photo : bouton grisé mais toujours présent (le focus clavier n'est pas perdu) */
.gallery-main:hover .g-nav[aria-disabled="true"], .g-nav[aria-disabled="true"]:focus-visible { opacity: .35; cursor: default; }
.g-count { position: absolute; right: 10px; bottom: 10px; padding: .15rem .55rem; border-radius: 999px; background: rgb(18 17 16 / .55); color: var(--ink); font-size: .86rem; letter-spacing: .06em; pointer-events: none; }
/* Écrans tactiles : pas de flèches, on fait glisser la photo */
@media (hover: none), (pointer: coarse) { .g-nav { display: none; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .6rem; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--surface); aspect-ratio: 1; cursor: pointer; opacity: .6; transition: opacity .2s ease; }
@media (hover: hover) { .thumbs button:hover { opacity: 1; } }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: 1.6rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .product-info { position: static; } }
.product-info h1 { font-size: var(--t-2xl); }
.status { display: grid; gap: .35rem; padding: 1rem 1.2rem; background: var(--surface); }
.status-title { font-weight: 500; }
.status-title.dispo { color: var(--brass); }
.status ul { list-style: none; padding: 0; display: grid; gap: .2rem; color: var(--muted); font-size: var(--t-sm); }
.status ul li::before { content: "— "; color: var(--faint); }
.price { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700; }
.specs { display: grid; margin: 0; }
.specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.specs div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: var(--t-sm); }
.specs dd { margin: 0; }
.legal-note { font-size: var(--t-xs); color: var(--muted); }
.product-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}
@media (max-width: 900px) { .product-body { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 1.2rem; align-content: start; }
.prose h2 { font-size: var(--t-xl); margin-top: .5rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; max-width: 64ch; }
.care-box { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--surface); align-content: start; }
.care-box h2 { font-size: var(--t-xl); }
.care-box p { font-size: var(--t-sm); line-height: 1.8; }
.care-box .motto { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: var(--brass); }

/* ---------- Étapes (vraie séquence) ---------- */
.steps { list-style: none; padding: 0; display: grid; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brass);
}
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); }

/* Fabrication en images */
.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: proc;
}
@media (max-width: 900px) { .process { grid-template-columns: minmax(0, 1fr); } }
.process figure { margin: 0; display: grid; gap: 1rem; align-content: start; counter-increment: proc; }
.process img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.process figcaption { display: grid; gap: .4rem; }
.process h3 { font-size: 1.4rem; }
.process h3::before { content: counter(proc, decimal-leading-zero) "  "; color: var(--brass); white-space: pre; }
.process p { color: var(--muted); font-size: var(--t-sm); }

/* Colonnes d'informations (aciers, options, entretien) */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
}
.col { display: grid; gap: .6rem; align-content: start; padding-top: 1.2rem; border-top: 1px solid var(--brass); }
.col h3 { font-size: 1.4rem; }
.col p, .col li { color: var(--muted); font-size: var(--t-sm); }
.col ul { padding-left: 1.1rem; display: grid; gap: .35rem; }
.col .kicker { font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }

/* Prix indicatifs */
.prices { display: grid; margin: 0; max-width: 640px; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.prices div:first-child { border-top: 1px solid var(--line); }
.prices dt { color: var(--muted); }
.prices dd { margin: 0; font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Appel à l'action ---------- */
.cta { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.cta p { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { display: grid; }
.contact-item { display: grid; gap: .3rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item .k { font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-item .v { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: var(--t-lg); word-break: break-word; }
.contact-item a { text-decoration-color: var(--brass); text-underline-offset: .25em; }
.copy-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  cursor: pointer;
}
@media (hover: hover) { .copy-btn:hover { color: var(--ink); border-color: var(--muted); } }
.contact-form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(236 230 220 / .45);
  padding: .7rem 0;
  width: 100%;
  border-radius: 0;
}
.field select { background: var(--bg); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 2px 0 0 var(--brass); }
/* Titre de section présenté comme une petite étiquette */
h2.label { font-family: var(--f-body); line-height: 1.4; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: var(--t-xs); color: var(--muted); }
.consent a { color: var(--muted); }
.form-status { padding: .9rem 1.1rem; background: var(--surface); border-left: 2px solid var(--brass); font-size: var(--t-sm); }
.form-status.err { border-left-color: #c46a4a; }

/* ---------- Instagram ---------- */
.insta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.insta a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .85; }
@media (hover: hover) { .insta a:hover img { transform: scale(1.04); opacity: 1; } }
@media (max-width: 640px) { .insta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; background: #0d0c0b; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.footer-brand img { width: 64px; }
.footer-brand p { color: var(--muted); font-size: var(--t-sm); }
.footer-col h2 { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-col a { text-decoration: none; color: var(--ink); font-size: var(--t-sm); }
@media (hover: hover) { .footer-col a:hover { color: var(--brass); } }
.footer-col span { font-size: var(--t-sm); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: var(--t-xs); color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- Mentions légales ---------- */
.legal { display: grid; gap: 2.5rem; padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.legal section { display: grid; gap: .8rem; }
.legal h2 { font-size: var(--t-xl); }
.legal p { color: var(--muted); }
.legal a { color: var(--ink); }

/* ---------- Apparition douce (contenu visible même sans animation) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-content > *:nth-child(2) { animation-delay: .08s; }
  .hero-content > *:nth-child(3) { animation-delay: .16s; }
  .hero-content > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Demande sur mesure ---------- */
.order { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .order { grid-template-columns: minmax(0, 1fr); } }
.order-aside { display: grid; gap: 1.2rem; align-content: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .order-aside { position: static; } }
.order-form { display: grid; gap: 2.2rem; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.1rem; min-width: 0; }
.fieldset legend { padding: 0; font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700; margin-bottom: .2rem; }
.fieldset .hint { color: var(--muted); font-size: var(--t-sm); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 600px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.field input[type="date"] { color-scheme: dark; }

/* Couteaux choisis */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.ref-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; align-items: center; padding: .6rem; background: var(--surface); border: 1px solid var(--brass); }
.ref-card img { width: 76px; height: 95px; object-fit: cover; }
.ref-card strong { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.25; display: block; }
.ref-card a { font-size: var(--t-xs); color: var(--muted); }
.ref-remove { position: absolute; top: .3rem; right: .3rem; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
@media (hover: hover) { .ref-remove:hover { color: var(--ink); } }
.refs-empty { color: var(--muted); font-size: var(--t-sm); padding: 1rem 1.2rem; border: 1px dashed var(--line); }
.picker-toggle { justify-self: start; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: .8rem; padding: 1rem; background: var(--bg-2); border: 1px solid var(--line); max-height: 520px; overflow-y: auto; }
.pick { display: grid; gap: .4rem; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pick .pick-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s ease; }
.pick img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s ease; }
@media (hover: hover) { .pick:hover img { opacity: 1; } }
.pick span.name { font-size: var(--t-xs); line-height: 1.35; color: var(--muted); }
.pick[aria-pressed="true"] .pick-img { outline-color: var(--brass); }
.pick[aria-pressed="true"] img { opacity: 1; }
.pick[aria-pressed="true"] span.name { color: var(--ink); }
.pick .check { position: absolute; top: .4rem; right: .4rem; width: 26px; height: 26px; display: grid; place-items: center; background: rgb(18 17 16 / .75); color: var(--ink); font-size: .9rem; border: 1px solid rgb(236 230 220 / .4); }
.pick[aria-pressed="true"] .check { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }

/* Photos jointes */
.drop { display: grid; gap: .6rem; justify-items: start; padding: 1.2rem; border: 1px dashed rgb(236 230 220 / .45); }
.drop input[type="file"] { font: inherit; font-size: var(--t-sm); color: var(--muted); max-width: 100%; }
.drop input[type="file"]::file-selector-button { font: inherit; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; padding: .6rem 1rem; margin-right: 1rem; background: transparent; color: var(--ink); border: 1px solid rgb(236 230 220 / .45); cursor: pointer; }
.thumbs-up { display: flex; flex-wrap: wrap; gap: .6rem; }
.thumbs-up figure { margin: 0; position: relative; width: 96px; }
.thumbs-up img { width: 96px; height: 96px; object-fit: cover; }
.thumbs-up button { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; background: rgb(18 17 16 / .8); color: var(--ink); border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.field-msg { font-size: var(--t-xs); color: var(--muted); }
.field-msg.warn { color: var(--brass); }
.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; }
/* Bande de photos (naissance d'un pliant) */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 1000px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.strip figure { margin: 0; display: grid; gap: .6rem; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface); }
.strip figcaption { font-size: var(--t-sm); color: var(--muted); }
.order > *, .order-form, .fieldset, .drop { min-width: 0; }
.drop input[type="file"] { width: 100%; }
.field select { background: transparent; }
.field select option { background: var(--bg); color: var(--ink); }
.ref-card > div { padding-right: 1.6rem; min-width: 0; }

/* ---------- Commande ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.checkout > * { min-width: 0; }
.co-summary { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .co-summary { position: static; grid-template-columns: 120px minmax(0, 1fr); align-items: center; } }
.co-summary img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.co-sum-text { display: grid; gap: .4rem; }
.co-sum-text h2 { font-size: var(--t-xl); }
.co-options { display: grid; gap: .6rem; }
.co-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); cursor: pointer; }
.co-opt:has(input:checked) { border-color: var(--brass); background: var(--surface); }
.co-opt input { accent-color: var(--brass); width: 1.1rem; height: 1.1rem; }
.co-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; font-size: var(--t-sm); }
.co-check input { accent-color: var(--brass); width: 1.15rem; height: 1.15rem; margin-top: .25rem; }
.co-check a { color: var(--brass); }
.co-total { max-width: none; }
.co-grand dt { color: var(--ink); font-weight: 500; }
.co-pay, .co-done { display: grid; gap: 1.2rem; align-content: start; }
.co-pay h2, .co-done h2 { font-size: var(--t-xl); }
#sumup-card { background: #fff; color: #111; padding: 1rem; min-height: 120px; border-radius: 4px; }
.linkbtn-site { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: var(--t-sm); text-decoration: underline; cursor: pointer; }

/* Photo en largeur dans une carte portrait */
.knife-photo.paysage img, .knife-photo img.paysage { object-fit: contain; }
.knife-photo.paysage .alt-img { display: none; }

/* Commande indisponible : le message prend toute la largeur */
.checkout.is-closed { display:block; max-width:44rem; }
.checkout.is-closed .co-summary { position:static; display:block; }

/* Catalogue : pièces vendues séparées */
.sold { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.sold-head { margin-bottom: 2rem; }

/* ---------- Mobile : cartes du catalogue à faire glisser ---------- */
.kp-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.kp-track::-webkit-scrollbar { display: none; }
.kp-track img { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; }
@media (hover: hover) { .knife-card:hover .kp-track img { transform: none; } }
.kp-dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.kp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(236 230 220 / .45); box-shadow: 0 0 2px rgb(0 0 0 / .5); transition: background .2s ease, transform .2s ease; }
.kp-dots i.on { background: var(--ink); transform: scale(1.2); }

/* ---------- Fiche : miniatures masquées sur écran tactile (on fait glisser la photo) ---------- */
@media (hover: none), (pointer: coarse) { .gallery .thumbs { display: none; } }

/* ---------- Fiche : couteau précédent / suivant ---------- */
.crumbs-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.crumbs-row .crumbs { margin-bottom: 0; }
.kn-top { display: flex; gap: .6rem; font-size: var(--t-sm); color: var(--faint); }
.kn-top a { color: var(--muted); text-decoration: none; padding: .2rem 0; }
@media (hover: hover) { .kn-top a:hover { color: var(--brass); } }
.kn-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.kn-card { display: flex; align-items: center; gap: .9rem; padding: .7rem; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid transparent; transition: border-color .2s ease; min-width: 0; }
@media (hover: hover) { .kn-card:hover { border-color: var(--brass); } }
.kn-next { justify-content: flex-end; text-align: right; }
.kn-card img { width: 64px; height: 80px; object-fit: cover; flex: 0 0 auto; }
.kn-txt { display: grid; gap: .15rem; min-width: 0; }
.kn-label { font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.kn-name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kn-arrow { font-size: 1.6rem; color: var(--muted); line-height: 1; flex: 0 0 auto; }
@media (max-width: 560px) {
  .kn-bottom { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .kn-card { padding: .55rem .7rem; gap: .8rem; }
  .kn-next { justify-content: flex-start; text-align: left; }
  .kn-next .kn-arrow { margin-left: auto; }
  .kn-card img { width: 52px; height: 64px; }
  .kn-name { font-size: 1rem; }
}

/* ---------- Panier : accès dans l'en-tête ---------- */
.brand { order: 0; }
.nav { order: 1; margin-left: auto; }
.cart-link { order: 2; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); text-decoration: none; }
.cart-link[hidden] { display: none; }
.cart-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
@media (hover: hover) { .cart-link:hover { color: var(--brass); } }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brass); color: var(--brass-ink); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.menu-toggle { order: 3; }
@media (max-width: 1180px) { .cart-link { margin-left: auto; } .site-header .wrap { gap: .8rem; } }
.cart-link.bump { animation: cartBump .45s ease; }
@keyframes cartBump { 40% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .cart-link.bump { animation: none; } }

/* ---------- Panier : fiche couteau ---------- */
.cart-note { font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
.cart-note .ok { color: var(--brass); }
.linkbtn-inline { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { .linkbtn-inline:hover { color: var(--ink); } }
.knife-tag.in-cart { background: var(--ink); color: var(--bg); }

/* ---------- Panier : page de commande ---------- */
.cart-items { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 90px; object-fit: cover; background: var(--surface); }
.cart-item h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.cart-item h3 a { color: inherit; text-decoration: none; }
@media (hover: hover) { .cart-item h3 a:hover { color: var(--brass); } }
.cart-item .ci-price { font-size: var(--t-sm); color: var(--muted); margin: .2rem 0 0; }
.cart-item .ci-remove { background: none; border: 1px solid var(--line); color: var(--muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
@media (hover: hover) { .cart-item .ci-remove:hover { color: var(--ink); border-color: var(--ink); } }
.cart-item .ci-remove[disabled] { visibility: hidden; }
.cart-sub { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 .4rem; font-weight: 500; }
.cart-more { font-size: var(--t-sm); }
.cart-alert { border-left: 2px solid var(--brass); padding: .6rem .9rem; background: var(--surface); font-size: var(--t-sm); margin: 0 0 1rem; }

.co-summary.co-cart { display: block; }
@media (max-width: 900px) { .co-summary.co-cart { display: block; } }
.co-summary.co-cart .cart-item img { width: 72px; height: 90px; aspect-ratio: auto; }
.co-opt .opt-note { display: block; margin-top: .3rem; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ---------- En-tête mobile : le nom, l'icône panier et le menu ne se chevauchent jamais ---------- */
.brand { min-width: 0; flex-shrink: 1; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.cart-link, .menu-toggle { flex-shrink: 0; }
@media (max-width: 520px) {
  .site-header .wrap { gap: .4rem; }
  .brand { gap: .55rem; }
  .brand-name { font-size: .98rem; letter-spacing: .1em; }
  .brand img { width: 36px; }
  /* « Menu » : on garde l'icône seule (le libellé reste lu par les lecteurs d'écran) */
  .menu-toggle { font-size: 0; gap: 0; padding: .5rem .2rem; width: 44px; height: 44px; justify-content: center; }
  .cart-link { width: 40px; }
}
@media (max-width: 350px) { .brand-name { font-size: .86rem; letter-spacing: .06em; } .brand img { width: 32px; } }

/* Pied de page : une adresse longue peut passer à la ligne (tablette) */
.footer-col li { overflow-wrap: anywhere; min-width: 0; }

/* Fiche : sur mobile, la navigation précédent / suivant n'apparaît qu'en bas de la fiche */
@media (max-width: 900px) { .kn-top { display: none; } }
/* Textes officiels dans les CGV (formulaire de rétractation, garantie légale) */
.encadre { display: grid; gap: .6rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); background: var(--surface); }
.encadre h3 { font-size: var(--t-md); }
.legal ul { color: var(--muted); padding-left: 1.2rem; display: grid; gap: .4rem; }
/* Page « Renoncer au contrat ici » */
.narrow-form { max-width: 44rem; display: grid; gap: 1.5rem; }
.retract-confirm, .retract-done { display: grid; gap: 1rem; padding: 1.4rem; background: var(--surface); }
.retract-done:focus { outline: none; }
.small-note { font-size: var(--t-sm); }

/* Aides sous les champs, partout */
.hint { color: var(--muted); font-size: var(--t-sm); }

/* ---------- Visionneuse plein écran des photos ---------- */
.g-track img { cursor: zoom-in; }
.g-zoom { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgb(236 230 220 / .25); border-radius: 50%; background: rgb(18 17 16 / .6); color: var(--ink); cursor: pointer; }
.g-zoom svg, .lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .g-zoom:hover { border-color: var(--brass); } }
.g-zoom:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
/* --lb-a : opacité du fond et des commandes, pilotée par le script (ouverture, fermeture, glisser vers le bas) */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgb(10 9 8 / var(--lb-a, 1)); }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-piste { position: absolute; inset: 0; will-change: transform; }
.lb-cadre { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 16px 72px; }
.lb.is-zoomed .lb-stage { cursor: grab; }
.lb-img { width: auto; height: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px); object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center center; will-change: transform; }
.lb-bar, .lb-count, .lb-nav { opacity: var(--lb-a, 1); }
.lb-bar { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; display: flex; gap: 8px; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgb(236 230 220 / .25); border-radius: 50%; background: rgb(18 17 16 / .75); color: var(--ink); cursor: pointer; }
@media (hover: hover) { .lb-btn:hover:not(:disabled) { border-color: var(--brass); } }
.lb-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.lb-btn:disabled { opacity: .35; cursor: default; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: .25rem .8rem; border-radius: 999px; background: rgb(18 17 16 / .75); color: var(--ink); font-size: var(--t-sm); }
.lb-count:empty { display: none; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; } }
.field:focus-within input[type="date"] { border-bottom-color: var(--brass); box-shadow: 0 2px 0 0 var(--brass); }
.care-box h2.label { font-size: var(--t-xs); }
