/* Couleurs, polices, arrondis et largeur : réglés dans le back-office (Apparence).
   --radius sert de base : les grands blocs, les cartes et les petits éléments en dérivent. */

:root {
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 18%, transparent);
  --surface-hover: color-mix(in srgb, var(--surface), var(--text) 4%);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, var(--bg));
  --accent-ink: color-mix(in srgb, var(--accent) 86%, #000);
  --secondary-soft: color-mix(in srgb, var(--secondary) 10%, var(--bg));
  --ok: #17663A;
  --ok-soft: #E7F5EC;
  --wait: #8A5300;
  --wait-soft: #FFF3DD;
  --r-lg: calc(var(--radius) * 1.75);
  --r-md: calc(var(--radius) * 1.375);
  --r-sm: calc(var(--radius) * .75);
  --pill: calc(var(--radius) * 999);
  --gutter: clamp(16px, 3.5vw, 24px);
  --shadow: 0 18px 44px -20px rgb(22 24 29 / .32);
  /* Fond des photos produits (photos détourées sur fond blanc) */
  --photo: var(--surface);
  --photo-soft: var(--bg);
}

/* Thème sombre, choisi par le visiteur avec le bouton lune / soleil de l'en-tête */
html[data-theme="dark"] {
  --bg: #111216;
  --surface: #1C1E24;
  --text: #ECEDF1;
  --muted: #A4A9B4;
  --dark: #272A32;
  --on-dark: #F5F6F8;
  --accent-ink: color-mix(in srgb, var(--accent) 68%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--bg));
  --secondary-soft: color-mix(in srgb, var(--secondary) 26%, var(--bg));
  --ok: #5ACB8A;
  --ok-soft: #13301F;
  --wait: #F2B65A;
  --wait-soft: #33270F;
  --shadow: 0 18px 44px -20px rgb(0 0 0 / .75);
  --photo: #E4E5E9;
  --photo-soft: #ECEDF0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
main { flex: 1; outline: none; }
main[aria-busy="true"] { opacity: .55; transition: opacity .2s .2s; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--hw); line-height: 1.1; margin: 0; letter-spacing: -0.022em; text-wrap: balance; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--pill); }
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--pill);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer; transition: filter .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--text); filter: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); filter: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-big { min-height: 56px; font-size: 1.0625rem; padding-inline: 26px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; cursor: pointer;
  color: inherit; text-decoration: none; border-radius: var(--pill); position: relative;
}
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.select-pill {
  height: 42px; padding: 0 40px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235B616E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none; font-size: .9375rem; cursor: pointer;
}
.select-pill:hover { border-color: var(--text); }

/* ---------- Barre du haut ---------- */

.topbar { background: var(--dark); color: var(--on-dark); font-size: .84375rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 6px 24px; min-height: 38px; flex-wrap: wrap; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 500; opacity: .92; padding-block: 6px; }
.topbar li:first-child a { font-weight: 600; }
.topbar a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { flex: none; }
.tb-cart { font-weight: 600 !important; }
.tb-cart .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; }

/* ---------- En-tête ---------- */

.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-main {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding-block: 16px 6px; transition: padding .2s;
}
.header-left { display: flex; align-items: center; min-width: 0; }
.logo { display: block; justify-self: center; text-decoration: none; }
.logo img { height: 58px; width: auto; transition: height .2s; }
.logo .wordmark { font-family: var(--font-head); font-weight: var(--hw); font-size: 2rem; letter-spacing: -0.01em; }
.header-side { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.header-search {
  display: flex; align-items: center; width: min(300px, 100%); height: 44px; padding-right: 14px;
  border-radius: var(--pill); background: var(--surface); border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.header-search:focus-within { border-color: var(--text); background: var(--bg); }
.header-search button { flex: none; display: grid; place-items: center; width: 44px; height: 42px; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--muted); border-radius: var(--pill); }
.header-search button:hover { color: var(--text); }
.header-search input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; outline: none; font-size: .9375rem; }
.header-quote { white-space: nowrap; }
.header-cart {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center; position: relative; text-decoration: none; transition: background .15s;
}
.header-cart:hover { background: var(--accent); color: var(--on-accent); }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  border: 2px solid var(--bg); background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count:empty, .cart-count[data-zero] { display: none; }
.menu-toggle { display: none; }

.header.compact .header-main { padding-block: 8px 2px; }
.header.compact .logo img { height: 40px; }

/* Menu principal et sous-menus */
.mainnav .wrap { padding-block: 6px 10px; }
.mainnav .menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--pill);
  font-weight: 500; font-size: .9375rem; color: var(--text); text-decoration: none; transition: background .15s;
}
.menu > li > a svg { transition: transform .15s; color: var(--muted); }
.menu > li:hover > a, .menu > li:focus-within > a { background: var(--surface); }
.menu > li > a[aria-current="page"] { background: var(--surface); font-weight: 600; }
.menu > li:hover > a svg, .menu > li:focus-within > a svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: 100%; left: 0; z-index: 50; min-width: 260px; padding-top: 8px;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.sub-inner { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 10px; }
.menu > li:hover > .sub, .menu > li:focus-within > .sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu > li:nth-last-child(-n+2) > .sub { left: auto; right: 0; }
.sub ul { list-style: none; margin: 0; padding: 0; column-gap: 6px; }
.sub.cols-2 ul { columns: 2; width: 500px; }
.sub.cols-3 ul { columns: 3; width: 720px; }
.sub li { break-inside: avoid; }
.sub a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: .9375rem; line-height: 1.3; }
.sub a:hover { background: var(--surface); }
.sub .sub-all { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 12px; border-radius: var(--r-sm); background: var(--surface); font-weight: 600; }
.sub .sub-all:hover { background: var(--surface-hover); }

/* Menu mobile */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgb(22 24 29 / .45); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw); background: var(--bg); overflow-y: auto; padding-bottom: 24px; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; font-family: var(--font-head); font-size: 1.25rem; }
.drawer-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; padding: 4px 4px 4px 16px; border-radius: var(--pill); background: var(--surface); }
.drawer-search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; outline: none; }
.drawer-search .btn { min-height: 40px; padding-inline: 16px; font-size: .9375rem; }
#drawer-nav ul { list-style: none; margin: 0; padding: 0; }
#drawer-nav > ul { padding: 0 8px; }
#drawer-nav details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
#drawer-nav details > summary::-webkit-details-marker { display: none; }
#drawer-nav details > summary svg { color: var(--muted); transition: transform .15s; }
#drawer-nav details[open] > summary svg { transform: rotate(180deg); }
#drawer-nav .top { padding: 13px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 1.0625rem; text-decoration: none; display: flex; }
#drawer-nav .top:hover { background: var(--surface); }
#drawer-nav details ul { padding: 0 12px 10px; }
#drawer-nav details ul a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); }
#drawer-nav details ul a:hover { background: var(--surface); color: var(--text); }
#drawer-nav .extra { margin: 12px 20px 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
#drawer-nav .extra a { padding: 8px 0; text-decoration: none; font-weight: 600; }

/* ---------- Fil d'Ariane, titres de page ---------- */

/* Bouton « Retour » + chemin d'accès, sur une même ligne */
.crumbs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 18px; }
.back-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--bg); color: var(--text);
  font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.back-link:hover { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.back-link:hover svg { transform: translateX(-2px); }
.back-link svg { transition: transform .15s; }
.back-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }
/* Téléphone : bouton et chemin sur une seule ligne ; un chemin trop long glisse sur le côté. */
@media (max-width: 640px) {
  .crumbs-bar { flex-wrap: nowrap; gap: 10px; }
  .crumbs-bar > nav { flex: 1; min-width: 0; }
  .crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-right: 18px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
  .crumbs::-webkit-scrollbar { display: none; }
  .crumbs li { flex: none; }
}
.page-head { padding-block: clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 28px); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.875rem); letter-spacing: -0.028em; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; font-size: 1.0625rem; }

/* ---------- Accueil ---------- */

.hero { margin: 20px 0 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.hero img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: center 60%; }
.hero picture { display: block; }

/* Le bandeau du catalogue reprend la flèche du logo */
.catalogue {
  position: relative; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  background: var(--dark); color: var(--on-dark);
  padding: 20px 120px 20px clamp(20px, 3vw, 32px);
  border-radius: min(var(--radius), 6px);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 50%, calc(100% - 44px) 100%, 0 100%);
}
.catalogue::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 88px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 44px 50%);
}
.catalogue-text { margin: 0; font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 60ch; }
.catalogue-text strong { display: block; font-weight: var(--hw); }
.catalogue-text span { opacity: .8; font-weight: 500; }
.catalogue .btn { position: relative; z-index: 1; min-height: 42px; padding: 8px 22px; border-radius: min(var(--radius), 6px); }

.big-search {
  display: flex; align-items: center; gap: 12px; margin: clamp(32px, 4vw, 40px) 0 0; height: 64px; padding: 0 8px 0 22px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--bg); box-shadow: 0 8px 28px -14px rgb(22 24 29 / .3);
  transition: border-color .15s;
}
.big-search:focus-within { border-color: var(--text); }
.big-search > svg { flex: none; color: var(--muted); }
.big-search input { flex: 1; min-width: 0; border: 0; padding: 0; font-size: 1.0625rem; outline: none; background: transparent; }
.big-search button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; border: 0; padding: 0 24px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1rem; cursor: pointer; }
.big-search button:hover { filter: brightness(1.08); }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-left: 8px; }
.suggest > span { font-size: .875rem; color: var(--muted); margin-right: 4px; }
.suggest a { padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line); font-size: .875rem; text-decoration: none; transition: border-color .15s, background .15s; }
.suggest a:hover { border-color: var(--text); }

.block { padding-block: clamp(48px, 6vw, 72px) 0; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.block-head h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -0.025em; }
.block-sub { margin: 6px 0 0; color: var(--muted); }
.block-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 44px; text-align: center; }
.load-more p { margin: 0; font-size: .875rem; color: var(--muted); }
.load-bar { width: 200px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.load-bar i { display: block; height: 100%; background: var(--text); transition: width .3s; }

.reassure {
  list-style: none; margin: clamp(56px, 7vw, 72px) 0 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.reassure li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; align-content: start; }
.reassure .ico { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--bg); display: grid; place-items: center; color: var(--accent); }
.reassure strong { font-size: 1.03125rem; font-weight: 600; line-height: 1.3; }
.reassure span { color: var(--muted); font-size: .90625rem; line-height: 1.45; }

.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; min-height: 184px;
  padding: 22px; border-radius: var(--r-md); background: var(--surface); text-decoration: none; transition: background .15s;
}
.cat-tile:hover { background: var(--surface-hover); }
.cat-ico { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.cat-ico img { width: 44px; height: 44px; object-fit: contain; }
.cat-name { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; padding-right: 40px; }
.cat-meta { display: block; margin-top: 2px; font-size: .90625rem; color: var(--muted); }
.cat-arrow { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .15s, color .15s, border-color .15s; }
.cat-tile:hover .cat-arrow { background: var(--text); border-color: var(--text); color: var(--bg); }
.cat-tile.dark { background: var(--dark); color: var(--on-dark); }
.cat-tile.dark .cat-ico { background: var(--accent); color: var(--on-accent); }
.cat-tile.dark .cat-meta { color: color-mix(in srgb, var(--on-dark) 70%, transparent); }
.cat-tile.dark .cat-arrow { border-color: color-mix(in srgb, var(--on-dark) 30%, transparent); }
.cat-tile.dark:hover .cat-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Listes de produits ---------- */

.tools { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: .9375rem; }
.tools label { display: inline-flex; align-items: center; gap: 10px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 20px; }
.catalog .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; }
.card-img { display: block; aspect-ratio: 1; border-radius: var(--r-md); background: var(--photo); overflow: hidden; text-decoration: none; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform .25s ease; }
.card-img:hover img { transform: scale(1.04); }
.card-img .placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9375rem; }
.card-flag { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: var(--pill); font-size: .78125rem; font-weight: 600; background: var(--bg); color: var(--text); pointer-events: none; }
.card-flag.out { background: var(--text); color: var(--bg); }
.card-add {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--dark); color: var(--on-dark); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 16px -8px rgb(22 24 29 / .6); transition: background .15s, transform .15s;
}
.card-add:hover { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.card-add[aria-busy="true"] { opacity: .6; cursor: progress; }
.card-body { display: block; margin-top: 14px; text-decoration: none; }
.card-ref { display: block; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-title { display: block; margin-top: 2px; font-size: 1rem; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
.card-body:hover .card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-price { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.card-price strong { font-size: 1.125rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.card-price s { margin-right: 4px; }

.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 44px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--text); }
.pager [aria-current="page"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.pager span[aria-hidden] { border-color: transparent; }

.empty { padding: 44px 24px; text-align: center; color: var(--muted); border-radius: var(--r-md); background: var(--surface); }
.empty p { margin: 0 auto 18px; max-width: 56ch; }
.empty .btn + .btn { margin-left: 6px; }

/* Catalogue : colonne de catégories */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.side-cats { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; padding: 18px 10px 18px 12px; border-radius: var(--r-md); background: var(--surface); }
.side-cats h2 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 8px 8px; letter-spacing: 0; }
.side-cats ul { list-style: none; margin: 0; padding: 0; }
.side-cats ul ul { padding-left: 10px; border-left: 1px solid var(--line-strong); margin: 2px 0 6px 14px; }
.side-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; font-size: .9375rem; line-height: 1.35; }
.side-cats a span { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.side-cats a:hover { background: var(--bg); }
.side-cats a[aria-current="page"] { background: var(--bg); font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.side-cats > details > summary { display: none; }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-label { flex-basis: 100%; font-size: .875rem; color: var(--muted); }
.chips a { display: inline-flex; gap: 6px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--pill); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: border-color .15s; }
.chips a span { color: var(--muted); }
.chips a:hover { border-color: var(--text); }

/* ---------- Fiche produit ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); padding-top: 20px; align-items: start; }
.gallery { position: sticky; top: 150px; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--photo); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.gallery-main .placeholder { color: var(--muted); font-size: 1.125rem; }
.gallery-chip { position: absolute; left: 18px; top: 18px; padding: 6px 12px; border-radius: var(--pill); background: var(--bg); font-size: .8125rem; font-weight: 600; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 92px; aspect-ratio: 1; padding: 10px; border: 2px solid transparent; border-radius: calc(var(--r-sm) * 1.5); background: var(--photo); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.buy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); background: var(--surface); font-size: .8125rem; font-weight: 600; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.wait { background: var(--wait-soft); color: var(--wait); }
.chip.out { background: var(--text); color: var(--bg); }
.buy h1 { margin-top: 16px; font-size: clamp(1.875rem, 3.2vw, 2.625rem); letter-spacing: -0.028em; line-height: 1.08; }
.buy-kind { display: block; margin-bottom: 6px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.buy-summary { margin: 10px 0 0; color: var(--muted); font-size: 1.0625rem; }
.price-box { margin: 24px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price-main { font-size: 2.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-alt { color: var(--muted); font-size: .9375rem; }
.price-unit { align-self: center; padding: 4px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-ink); font-size: .8125rem; font-weight: 600; }
.price-old { color: var(--muted); font-size: 1.125rem; }
.price-quote { font-size: 1.75rem; font-weight: 600; color: var(--secondary); }

.opt { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.opt legend, .opt > label { display: block; padding: 0; margin-bottom: 12px; font-weight: 600; font-size: .9375rem; }
.opt legend small, .opt > label small { font-weight: 400; font-size: .875rem; color: var(--muted); margin-left: 6px; }
.pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pill span {
  display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; height: 100%;
  padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.5); background: var(--bg);
  transition: border-color .12s, box-shadow .12s;
}
.pill b { font-weight: 600; line-height: 1.25; }
.swatches .pill span { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; min-height: 48px; padding: 10px 14px; }
.swatches .pill svg { flex: none; }
.swatches .pill-wide { grid-column: span 2; }
.opt.is-off { opacity: .45; }
.opt.sign-size { margin-top: 10px; }
.sign-size .check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; padding: 12px 16px; border: 1.5px dashed var(--line-strong); border-radius: calc(var(--r-sm) * 1.5); background: var(--bg); transition: border-color .12s; }
.sign-size .check:hover { border-color: var(--text); }
.sign-size .check:has(input:checked) { border-style: solid; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.sign-size .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--text); }
.sign-size .check small, .sign-cmyk small { font-weight: 400; color: var(--muted); }
.sign-size-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 12px; }
.sign-size-fields[hidden], .sign-cmyk[hidden] { display: none; }
.sign-size-fields > label, .sign-cmyk-fields > label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; }
.sign-size-x { padding-bottom: 12px; color: var(--muted); }
.sign-size-fields .opt-hint { flex-basis: 100%; margin: 0; }
.unit-in { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.5); background: var(--bg); overflow: hidden; }
.unit-in:focus-within { border-color: var(--text); }
.opt .unit-in input[type="text"] { border: 0; border-radius: 0; outline: 0; background: transparent; width: 6ch; padding: 11px 4px 11px 12px; font: inherit; color: inherit; min-width: 0; }
.unit-in span { padding: 0 12px 0 2px; color: var(--muted); font-weight: 400; }
.sign-cmyk { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md, 12px); background: var(--surface); display: grid; gap: 12px; }
.sign-cmyk-title { margin: 0; font-weight: 600; }
.sign-text-color { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.sign-text-color .sign-cmyk-title { margin-top: 10px; }
.sign-cmyk-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.opt .sign-cmyk-fields .unit-in input[type="text"] { width: 4.5ch; }
.size-quote em[data-pill] { visibility: hidden; }
.sign-cmyk-pick input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.5); background: var(--bg); cursor: pointer; }
.sign-cmyk-ref { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; }
.opt .sign-cmyk-ref input[type="text"] { font: inherit; font-weight: 400; padding: 11px 12px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.5); background: var(--bg); color: inherit; }
.sign-cmyk-warn { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--wait); background: var(--wait-soft); border-radius: 6px; font-size: .875rem; line-height: 1.45; }
.pill em, .pill small { font-style: normal; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill strong { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill i { font-style: normal; font-weight: 600; color: var(--ok); }
.pills.lots b { font-size: .84375rem; font-weight: 500; color: var(--muted); }
.pill input:hover + span { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.pill input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.pill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.opt select, .opt input[type="text"], .opt textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.25); background: var(--bg); }
.opt select:focus, .opt input[type="text"]:focus, .opt textarea:focus { border-color: var(--text); outline: none; }
.opt textarea { resize: vertical; min-height: 84px; font: inherit; }
.opt-hint { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.opt-prefill { color: var(--ok); font-weight: 600; }
.opt-note { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }
.pill.na span { border-style: dashed; background: var(--surface); }
.pill.na b, .pill.na strong { color: var(--muted); }
.pill.na em, .pill.na strong { font-size: .78125rem; font-weight: 500; }
.qty-deal { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-size: .9375rem; }

.buy-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.buy-actions .btn { flex: 1 1 220px; }
.buy-quote { margin-top: 10px; min-height: 52px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--bg); padding: 0 4px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.qty button:hover { background: var(--surface); }
.qty input { width: 46px; border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-actions .qty { height: 56px; padding: 0 6px; }
.buy-actions .qty button { width: 44px; height: 44px; }
.form-error { color: var(--accent-ink); font-weight: 600; margin: 12px 0 0; }
.form-error:empty { display: none; }

/* ---------- Sur devis avec la page du catalogue ---------- */
.qc-box { margin-top: 18px; display: grid; gap: 16px; }
.qc-intro { margin: 0; font-size: 1rem; line-height: 1.55; }
.qc-actions { display: grid; gap: 10px; }
.qc-steps { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); }
.qc-steps-title { margin: 0 0 10px; font-weight: 700; font-size: .9375rem; }
.qc-steps ol { list-style: none; counter-reset: qc; margin: 0; padding: 0; display: grid; gap: 10px; }
.qc-steps li { counter-increment: qc; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; line-height: 1.45; }
.qc-steps li::before { content: counter(qc); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: var(--on-dark); font-weight: 700; font-size: .8125rem; }
.qc-actions .btn-big { gap: 10px; }
.qc-mail { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--secondary-soft); font-size: .9375rem; line-height: 1.5; }
.qc-mail svg { flex: none; margin-top: 3px; color: var(--secondary); }
.qc-mail a { font-weight: 600; color: inherit; text-underline-offset: 3px; word-break: break-word; }
.qc-list, .qc-note { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.qc-list strong, .qc-note strong { color: var(--text); font-weight: 600; }
.summary-quote { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.summary-quote b { font-size: 1.0625rem; }
.summary-quote span { color: var(--muted); }
dt small { font-weight: 400; color: var(--muted); font-size: .8em; }
.qc-note { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); }
.qc-pages { scroll-margin-top: 90px; }
.qc-grid { display: grid; gap: 20px; justify-content: center; grid-template-columns: minmax(0, 820px); }
.qc-grid[data-n="2"], .qc-grid[data-n="3"], .qc-grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 620px)); }
.qc-page { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.qc-page img { display: block; width: 100%; height: auto; }
.qc-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill); background: var(--dark); color: var(--on-dark); font-size: .8125rem; font-weight: 600; opacity: .92; transition: background-color .15s; }
.qc-page:hover .qc-zoom, .qc-page:focus-visible .qc-zoom { background: var(--accent); color: var(--on-accent); opacity: 1; }
.qc-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.qc-dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--pill); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.qc-dl small { color: var(--muted); font-weight: 500; }
.qc-dl:hover { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.qc-dl:hover small { color: inherit; opacity: .8; }
.qc-missing { display: grid; place-content: center; gap: 6px; min-height: 220px; padding: 24px; text-align: center; text-decoration: none; color: var(--text); background: var(--surface); cursor: pointer; }
.qc-missing span { font-weight: 600; font-size: 1.125rem; }
.qc-missing small { color: var(--muted); }
@media (max-width: 720px) { .qc-grid[data-n] { grid-template-columns: minmax(0, 1fr); } }
/* Agrandissement d'une page du catalogue : largeur de l'écran, puis taille réelle */
.page-viewer { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgb(10 11 14 / .97); }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; color: #fff; background: rgb(10 11 14); }
.pv-title { margin: 0; font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-tools { display: flex; gap: 6px; flex: none; }
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--pill); background: rgb(255 255 255 / .12); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.pv-btn:hover, .pv-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.pv-btn svg { width: 16px; height: 16px; }
.pv-scroll { overflow: auto; padding: 0 12px 24px; overscroll-behavior: contain; text-align: center; }
.pv-scroll img { display: inline-block; width: min(100%, 1000px); height: auto; border-radius: var(--r-sm); background: #fff; cursor: zoom-in; vertical-align: top; }
.page-viewer.is-zoomed .pv-scroll img { width: clamp(1400px, 200%, 2200px); max-width: none; cursor: zoom-out; }
@media (max-width: 640px) { .pv-zoom span { display: none; } .pv-bar { padding-left: 14px; } }
.buy-info { list-style: none; margin: 24px 0 0; padding: 6px 20px; border-radius: var(--r-md); background: var(--surface); }
.buy-info li { display: flex; gap: 14px; align-items: center; padding: 13px 0; font-size: .9375rem; }
.buy-info li + li { border-top: 1px solid var(--line); }
.buy-info svg { flex: none; }
.buy-info strong { font-weight: 600; }
.buy-info span span { color: var(--muted); }
.buy-info a { font-weight: 600; }

.accordions { margin-top: 28px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex: none; transition: transform .2s; }
.acc[open] summary svg { transform: rotate(180deg); }
.acc-body { padding: 0 0 22px; color: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.acc-body > p { margin: 0 0 10px; }
.specs { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; font-size: .9375rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

.prose { font-size: 1.0625rem; line-height: 1.7; max-width: 72ch; }
.acc .prose { font-size: 1rem; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose > * { margin-block: 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.625rem; margin-top: 1.6em; margin-bottom: .45em; }
.prose h3 { font-size: 1.3125rem; margin-top: 1.4em; margin-bottom: .4em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.3em; margin-bottom: .35em; }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; border-left: 4px solid var(--secondary); background: var(--secondary-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { border-radius: var(--r-md); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- Panier et commande ---------- */

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { padding-top: 4px; }
.line-img { width: 104px; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--photo); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.line h3 { font-size: 1.03125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.line h3 a { text-decoration: none; }
.line h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-meta { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.line-meta b { font-weight: 600; color: var(--text); }
.line-err { margin: 6px 0 0; color: var(--accent-ink); font-size: .875rem; font-weight: 600; }
.line-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.line-controls .qty { height: 42px; }
.line-controls .qty button { width: 34px; height: 34px; }
.line-remove { border: 0; background: none; padding: 6px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .875rem; }
.line-remove:hover { color: var(--text); }
.line-total { text-align: right; font-weight: 600; font-size: 1.1875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-total small { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }

.summary { position: sticky; top: 150px; border-radius: var(--r-md); padding: 24px; background: var(--surface); }
.summary h2 { font-size: 1.375rem; margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; font-variant-numeric: tabular-nums; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; padding-left: 12px; text-align: right; font-weight: 600; }
.summary dt.total, .summary dd.total { padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.summary dt.total { grid-column: 1; }
.summary-note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.summary-free { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); font-size: .875rem; }
.free-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--ok); }
.summary .btn { margin-top: 12px; }
.summary .btn:first-of-type { margin-top: 18px; }
.delivery-choice { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.delivery-choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; }

.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.25); background: var(--bg); cursor: pointer; transition: border-color .12s; }
.choice:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.choice input { margin: 3px 0 0; accent-color: var(--text); width: 18px; height: 18px; flex: none; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-size: .875rem; }
.choice:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.fset { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.fset > legend { font-family: var(--font-head); font-weight: var(--hw); font-size: 1.375rem; letter-spacing: -0.018em; margin-bottom: 14px; padding: 0; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.kinds-role { margin-top: 16px; }
.kinds-role[hidden] { display: none; }
.role-q { grid-column: 1 / -1; margin: 0; font-size: .9375rem; font-weight: 600; }
.sub-legend { margin: 22px 0 12px; font-weight: 600; }
.addr-note { margin: 0 0 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: .9375rem; }
.f label small { font-weight: 400; color: var(--muted); }
.f input, .f textarea, .f select { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.25); background: var(--bg); transition: border-color .12s, box-shadow .12s; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 10%, transparent); }
.f textarea { resize: vertical; min-height: 120px; }
.pay-list { display: grid; gap: 8px; }
.cgv { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .9375rem; }
.cgv input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--text); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mini-lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .875rem; }
.mini-lines img { width: 52px; height: 52px; object-fit: contain; border-radius: calc(var(--r-sm) * .8); background: var(--photo-soft); padding: 4px; }
.mini-lines b { display: block; font-weight: 600; line-height: 1.3; }
.mini-lines span { color: var(--muted); }
.mini-lines .amt { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }

.done { max-width: 780px; padding-top: clamp(28px, 4vw, 48px); }
.done-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.done h1 { font-size: clamp(2rem, 4.5vw, 2.875rem); margin-top: 16px; letter-spacing: -0.028em; }
.done-box { margin-top: 24px; padding: 24px; border-radius: var(--r-md); background: var(--surface); }
.done-box h2 { font-size: 1.25rem; margin-bottom: 10px; }
.done-box p { margin: 0 0 8px; white-space: pre-line; }
.done-box .summary { padding: 0; background: none; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(28px, 4vw, 48px); align-items: start; }
.contact h1 { font-size: clamp(2.5rem, 5vw, 3.375rem); letter-spacing: -0.03em; }
.contact-lead { color: var(--muted); font-size: 1.125rem; margin: 12px 0 28px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); }
.contact-card h2 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.contact-card p { margin: 0; white-space: pre-line; color: var(--muted); }
.contact-card a { font-weight: 600; text-decoration: none; color: var(--text); }
.contact-card a:hover { text-decoration: underline; }
.contact-form { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.contact-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); font-size: .9375rem; }
.sent { padding: 18px 20px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); font-weight: 600; }

.message-page { padding-block: clamp(56px, 10vw, 120px); max-width: 680px; }
.message-page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
.message-page p { color: var(--muted); font-size: 1.125rem; }

/* ---------- Pied de page ---------- */

.footer { margin: clamp(64px, 8vw, 88px) 16px 16px; border-radius: var(--r-lg); background: var(--surface); font-size: .9375rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; padding-block: 36px 28px; align-items: start; }
.f-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }
.f-brand strong { font-family: var(--font-head); font-size: 1.75rem; font-weight: var(--hw); }
.f-brand p { margin: 6px 0 0; color: var(--muted); }
.f-addr p { margin: 0 0 16px; white-space: pre-line; color: var(--muted); }
.f-addr p:last-child { margin-bottom: 0; }
.f-addr strong { color: var(--text); font-weight: 600; }
.f-addr strong.lbl { display: block; }
.f-addr a { color: var(--text); text-decoration: none; }
.f-addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-addr .tel { font-weight: 600; }
.f-docs h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.f-docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-docs a { display: inline-flex; gap: 10px; align-items: center; padding: 3px 0; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.f-docs a svg { flex: none; }
.f-docs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-docs .plain a { color: var(--text); font-weight: 500; }
.f-social { display: flex; gap: 8px; margin-top: 18px; }
.f-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--text); transition: background .15s, color .15s; }
.f-social a:hover { background: var(--text); color: var(--bg); }
.footer-bottom { border-top: 1px solid var(--line); font-size: .875rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 16px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); }
.footer-legal a { color: var(--muted); }

/* ---------- Confirmation d'ajout au panier ---------- */

.added {
  position: fixed; right: 20px; top: 20px; z-index: 90; width: min(380px, calc(100vw - 32px));
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 24px 56px -22px rgb(22 24 29 / .45); padding: 16px 16px 18px;
}
.added-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); }
.added-head span { display: inline-flex; align-items: center; gap: 8px; }
.added-item { display: grid; grid-template-columns: 60px 1fr; gap: 12px; margin: 10px 0 16px; align-items: center; font-size: .9375rem; }
.added-item img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--r-sm); background: var(--photo); padding: 6px; mix-blend-mode: multiply; }
.added-item b { font-weight: 600; line-height: 1.3; display: block; }
.added-item span { color: var(--muted); display: block; font-size: .875rem; }
.added-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.added-actions .btn { min-height: 44px; font-size: .9375rem; padding-inline: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .added { animation: drop .25s ease-out; }
  @keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
}

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 1100px) {
  .header-quote { display: none; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .side-cats { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 8px; background: none; }
  .side-cats > details { border-radius: var(--r-md); background: var(--surface); }
  .side-cats > details > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; }
  .side-cats > details > summary::-webkit-details-marker { display: none; }
  .side-cats > details > div { padding: 0 10px 12px; }
  .side-cats > details > div > h2 { display: none; }
}

@media (max-width: 920px) {
  .mainnav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: -8px; }
  .menu-toggle span { font-weight: 600; }
  .header-main { padding-block: 10px; }
  .header-search { display: none; }
  .logo img { height: 46px; }
  .header.compact .header-main { padding-block: 8px; }
  .header.compact .logo img { height: 38px; }
  .product, .cart-layout, .checkout, .contact { grid-template-columns: minmax(0, 1fr); }
  .gallery, .summary { position: static; }
  .gallery-main { max-width: 560px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f-photo { grid-column: 1 / -1; max-width: 440px; }
}

@media (max-width: 640px) {
  .topbar .tb-mail, .topbar .tb-contact, .topbar .tb-real { display: none; }
  .topbar .wrap { min-height: 34px; }
  .hero { margin-top: 12px; border-radius: var(--r-md); }
  .catalogue { padding-right: 80px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%); }
  .catalogue::after { width: 66px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34px 50%); }
  .catalogue .btn { width: 100%; }
  .big-search { height: 56px; padding: 0 6px 0 16px; gap: 8px; }
  .big-search > svg { display: none; }
  .big-search button { height: 44px; padding: 0 14px; }
  .big-search button span { display: none; }
  .suggest { padding-left: 0; }
  .block-head { align-items: flex-start; }
  .grid, .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card-img { border-radius: var(--r-sm); }
  .card-add { width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .card-flag { left: 8px; top: 8px; }
  .card-title { font-size: .9375rem; }
  .reassure { padding: 20px; gap: 18px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { min-height: 148px; padding: 16px; gap: 18px; }
  .cat-ico { width: 44px; height: 44px; }
  .cat-name { font-size: 1rem; padding-right: 0; }
  .cat-meta { font-size: .8125rem; }
  .cat-arrow { display: none; }
  .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-main { font-size: 2.125rem; }
  .thumbs button { width: 72px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: 76px minmax(0, 1fr); }
  .line-img { width: 76px; }
  .line-total { grid-column: 2; text-align: left; }
  .footer { margin-inline: 8px; margin-bottom: 8px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); padding-block: 24px; }
  .added { right: 16px; top: 16px; }
}

@media print {
  .topbar, .header, .footer, .done-actions, .added, .drawer, .consent { display: none !important; }
  body { font-size: 11pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* Bouton de la grande recherche : texte sur ordinateur, loupe sur téléphone */
.big-search button svg { display: none; }
@media (max-width: 640px) {
  .big-search button svg { display: block; }
}

/* ---------- Informations légales ---------- */

.footer-legal .linkish { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal .footer-withdraw { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.btn-order { flex-direction: column; gap: 0; line-height: 1.2; padding-block: 10px; }
.btn-order small { font-size: .8125rem; font-weight: 500; opacity: .85; }

.co-legal { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: .875rem; line-height: 1.5; }
.co-legal p { margin: 0; }
.co-legal p + p { margin-top: 6px; }
.co-legal[hidden] { display: none; }
.tag-custom { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-style: normal; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.privacy-note { font-size: .8125rem; line-height: 1.5; }

.withdraw-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.withdraw .page-head p { max-width: 62ch; }
.withdraw-info { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface); }
.withdraw-info h2 { font-size: 1.25rem; margin-bottom: 10px; }
.withdraw-info ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: .9375rem; }
.kv-list { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .withdraw-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .kv-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv-list dd { margin-bottom: 8px; }
}

.consent {
  position: fixed; z-index: 95; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px));
  padding: 18px 20px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .9375rem; line-height: 1.5;
}
.consent p { margin: 0 0 10px; }
.consent-title { font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Animations ---------- */

/* Menu mobile : le fond s'assombrit, le panneau glisse depuis la gauche, les rubriques arrivent en cascade */
.drawer { opacity: 0; transition: opacity .3s ease; }
.drawer.open { opacity: 1; }
.drawer-panel { transform: translateX(-104%); transition: transform .36s cubic-bezier(.2, .8, .2, 1); box-shadow: 18px 0 48px -24px rgb(22 24 29 / .5); outline: none; will-change: transform; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head, .drawer-search, #drawer-nav > ul > li, #drawer-nav .extra { opacity: 0; transform: translateX(-14px); transition: opacity .32s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.drawer.open .drawer-head, .drawer.open .drawer-search, .drawer.open #drawer-nav > ul > li, .drawer.open #drawer-nav .extra { opacity: 1; transform: none; }
.drawer.open .drawer-head { transition-delay: .05s; }
.drawer.open .drawer-search { transition-delay: .09s; }
.drawer.open #drawer-nav > ul > li { transition-delay: calc(.12s + var(--i, 0) * .035s); }
.drawer.open #drawer-nav .extra { transition-delay: .4s; }
.drawer:not(.open) .drawer-head, .drawer:not(.open) .drawer-search, .drawer:not(.open) #drawer-nav > ul > li, .drawer:not(.open) #drawer-nav .extra { transition-duration: .15s; }
#drawer-nav details ul a { transition: background .15s, color .15s, padding-left .2s; }
#drawer-nav details ul a:active { padding-left: 16px; }
#drawer-nav details > summary svg { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.acc summary svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }

/* Apparition au défilement (ajoutée par le script, donc sans effet si le script ne tourne pas) */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.catalogue.reveal { transform: translateX(-28px); }
.catalogue.reveal.in { transform: none; }

/* En-tête : ombre légère quand il se réduit au défilement */
.header { transition: box-shadow .25s ease; }
.header.compact { box-shadow: 0 10px 28px -20px rgb(22 24 29 / .45); }

/* Cartes produits et tuiles de catégories */
@media (hover: hover) {
  .card-img { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
  .card-media:hover .card-img { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgb(22 24 29 / .45); }
  .card-img img { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .card-img:hover img { transform: scale(1.06); }
  .cat-tiles > li > a { transition: background .15s, transform .3s cubic-bezier(.2, .8, .2, 1); }
  .cat-tiles > li > a:hover { transform: translateY(-3px); }
  .cat-tiles > li > a:hover .cat-arrow { transform: translateX(3px); }
}
.cat-arrow { transition: background .15s, color .15s, border-color .15s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.card-add.done { background: var(--ok); color: #fff; animation: pop .4s cubic-bezier(.2, .8, .2, 1); }

/* Retour visuel quand on appuie */
.btn { transition: filter .15s, background .15s, border-color .15s, color .15s, transform .12s ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
.pill span, .chips a, .suggest a, .card-add, .header-cart { transition: border-color .12s, box-shadow .12s, background .15s, color .15s, transform .12s ease; }
.pill:active span, .chips a:active, .suggest a:active { transform: scale(.97); }
.pill input:checked + span { animation: pick .28s cubic-bezier(.2, .8, .2, 1); }

/* Fenêtres qui apparaissent */
.consent { animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
.done-badge { animation: pop .5s cubic-bezier(.2, .8, .2, 1); }
.done-badge svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .25s ease-out forwards; }
.added { transform-origin: top right; }

@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pick { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .done-badge svg path { stroke-dashoffset: 0; }
}

/* ---------- Bouton thème clair / sombre ---------- */

.theme-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, transform .12s ease;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.theme-toggle .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="dark"] .theme-toggle .ico-sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.header.compact .theme-toggle { width: 40px; height: 40px; }

/* Thème sombre : quelques ajustements */
html[data-theme="dark"] .card-img .placeholder, html[data-theme="dark"] .gallery-main .placeholder { color: #5B616E; }
html[data-theme="dark"] .card-flag { background: #16181D; color: #fff; }
html[data-theme="dark"] .card-flag.out { background: #fff; color: #16181D; }
html[data-theme="dark"] .hero img, html[data-theme="dark"] .f-photo img { filter: brightness(.92); }
html[data-theme="dark"] .header-cart { border: 1px solid var(--line-strong); }

/* Passage d'un thème à l'autre : cercle qui s'agrandit depuis le bouton */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Logo : version détourée en thème sombre */
.logo .logo-dark { display: none; }
html[data-theme="dark"] .logo .logo-dark { display: block; }
html[data-theme="dark"] .logo:has(.logo-dark) .logo-light { display: none; }
html[data-theme="dark"] .logo-light { border-radius: 6px; }
.logo .logo-dark { height: 58px; width: auto; transition: height .2s; }
.header.compact .logo .logo-dark { height: 40px; }
@media (max-width: 920px) {
  .logo .logo-dark { height: 46px; }
  .header.compact .logo .logo-dark { height: 38px; }
}

/* Sur téléphone, le bouton de thème passe dans le menu pour laisser la place au logo */
@media (max-width: 640px) {
  .header-side .theme-toggle { display: none; }
}
.drawer-theme {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 10px 0; border: 0; background: none;
  font-weight: 600; text-align: left; cursor: pointer;
}
.dt-ico { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset -6px -3px 0 0 currentColor; transform: rotate(-20deg); }
html[data-theme="dark"] .dt-ico { box-shadow: inset 0 0 0 10px currentColor; transform: scale(.55); }
.dt-ico { transition: box-shadow .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.dt-label { flex: 1; }
.dt-switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); transition: background .2s; }
.dt-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.drawer-theme[aria-pressed="true"] .dt-switch { background: var(--accent); }
.drawer-theme[aria-pressed="true"] .dt-switch i { transform: translateX(18px); background: #fff; }

/* ---------- Thème de fête (bandeau et décorations, aux couleurs du thème) ---------- */
.season-banner { background: var(--accent); color: var(--on-accent); font-size: .9rem; font-weight: 600; }
.season-banner[data-tone="dark"] { background: var(--dark); color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--accent); }
.season-banner[data-tone="secondary"] { background: var(--secondary); color: var(--on-secondary); }
.season-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding-block: 6px; position: relative; }
.season-banner p { margin: 0; text-align: center; padding-inline: 28px; }
.season-banner button { position: absolute; right: max(8px, calc((100% - var(--width)) / 2)); top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .85; font-size: 18px; line-height: 1; }
.season-banner button:hover { opacity: 1; background: rgb(255 255 255 / .15); }
.season-banner button svg { width: 16px; height: 16px; }
.season-preview { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: rgb(255 255 255 / .2); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }

.season-decor { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
body:not(.is-home) .season-decor.home-only { display: none; }
.season-decor span { position: absolute; left: var(--x); top: -40px; width: var(--s); height: var(--s); opacity: var(--o); animation: decor-fall var(--d) linear var(--delay) infinite; will-change: transform; }
.season-decor span svg { display: block; width: 100%; height: 100%; animation: decor-spin calc(var(--d) / 2) ease-in-out var(--delay) infinite alternate; }
.season-decor .tone-accent { color: var(--accent); }
.season-decor .tone-secondary { color: var(--secondary); }
.season-decor .tone-dark { color: var(--dark); }
.season-decor .tone-muted { color: var(--muted); }
.season-decor .tone-light { color: #D9DCE3; }
html[data-theme="dark"] .season-decor .tone-dark { color: #F5F6F8; }
.decor-snow span { opacity: calc(var(--o) * .85); }
.decor-bats span { top: var(--y); left: -60px; animation-name: decor-fly; width: var(--s); height: calc(var(--s) * .45); }
.decor-bats span svg { animation: decor-flap .35s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.decor-bats span.rtl { left: auto; right: -60px; animation-name: decor-fly-rtl; }
@keyframes decor-fly-rtl {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-28vw, 14px, 0); }
  50% { transform: translate3d(-56vw, -10px, 0); }
  75% { transform: translate3d(-84vw, 12px, 0); }
  100% { transform: translate3d(-112vw, 0, 0); }
}
@keyframes decor-fall {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--sway), 55vh, 0); }
  100% { transform: translate3d(calc(var(--sway) * -.5), 112vh, 0); }
}
@keyframes decor-spin { from { transform: rotate(0deg); } to { transform: rotate(var(--spin)); } }
@keyframes decor-fly {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(28vw, -18px, 0); }
  50% { transform: translate3d(56vw, 10px, 0); }
  75% { transform: translate3d(84vw, -12px, 0); }
  100% { transform: translate3d(112vw, 0, 0); }
}
@keyframes decor-flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .season-decor { display: none; } }
/* ---------- Nouvel An : feu d'artifice (toile qui laisse passer les clics) et carte en bas de l'écran ---------- */
.fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 61; pointer-events: none; }
.ny-card {
  position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 62;
  width: fit-content; max-width: min(560px, calc(100vw - 32px)); margin-inline: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 22px; border-radius: 18px; background: var(--dark); color: var(--on-dark);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}
.ny-card[data-mode="count"] { padding: 10px 22px; gap: 10px; }
.ny-small { font-size: .95rem; font-weight: 600; opacity: .85; white-space: nowrap; }
.ny-num { display: inline-block; min-width: 1.1em; text-align: center; font-family: var(--font-head); font-size: 2.1rem; line-height: 1; font-weight: var(--hw); color: var(--accent); font-variant-numeric: tabular-nums; }
.ny-title { margin: 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: var(--hw); line-height: 1.2; }
.ny-msg { margin: 2px 0 0; font-size: .9rem; opacity: .85; line-height: 1.35; }
.ny-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: inherit; cursor: pointer; }
.ny-close:hover { background: var(--accent); color: var(--on-accent); }
.ny-close svg { width: 16px; height: 16px; }
.ny-preview { position: absolute; top: -10px; left: 16px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 640px) {
  .ny-card { gap: 10px; padding: 10px 10px 10px 16px; }
  .ny-title { font-size: 1.15rem; }
  .ny-small { font-size: .85rem; }
  .ny-num { font-size: 1.8rem; }
}
/* ---------- Messages d'information : encadré arrondi au-dessus de l'image d'accueil ---------- */
.notices { display: grid; gap: 10px; margin-top: 20px; }
/* Hors de l'accueil, rien ne reste si tous les messages sont réservés à l'accueil. */
body:not(.is-home) .notices:not(:has(.info-banner:not(.home-only))) { display: none; }
.info-banner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 54px 14px 20px; border-radius: var(--r-sm); background: var(--secondary); color: var(--on-secondary); font-size: 1rem; font-weight: 500; line-height: 1.45; }
.info-banner[data-tone="dark"] { background: var(--dark); color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--accent); }
.info-banner[data-tone="accent"] { background: var(--accent); color: var(--on-accent); }
.info-banner[data-tone="light"] { background: var(--surface); color: var(--text); box-shadow: inset 5px 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.info-banner p { margin: 0; display: flex; align-items: flex-start; gap: 10px; text-align: left; max-width: 100%; }
.info-banner p > span:last-child { min-width: 0; }
.info-ico { flex: none; display: inline-flex; margin-top: 1px; opacity: .95; }
.info-banner[data-tone="light"] .info-ico { color: var(--accent); }
.info-banner a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.info-banner a:hover { text-decoration-thickness: 2px; }
.info-banner button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .85; }
.info-banner button:hover { opacity: 1; background: rgb(127 127 127 / .2); }
.info-banner button svg { width: 18px; height: 18px; }
body.is-home .notices + main .hero { margin-top: 12px; }
@media (max-width: 640px) {
  .notices { margin-top: 12px; gap: 8px; }
  .info-banner { justify-content: flex-start; min-height: 0; padding: 12px 46px 12px 14px; font-size: .9375rem; }
  .info-banner button { right: 6px; }
  body.is-home .notices + main .hero { margin-top: 10px; }
}
@media print { .notices { display: none; } }

@media print { .season-banner, .season-decor { display: none; } }

/* ---------- Noël : guirlande sous la barre noire, scène posée sur le pied de page ---------- */
body:not(.is-home) .home-only { display: none !important; }
:root { --xmas-tree: color-mix(in srgb, var(--secondary) 82%, #fff); }

.xmas-garland { position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 2; pointer-events: none; }
.xmas-garland svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xmas-garland .bulb { position: absolute; width: 8px; height: 12px; margin-left: -4px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; }
.xmas-garland .bulb::before { content: ''; position: absolute; left: 50%; top: -2px; width: 5px; height: 4px; transform: translateX(-50%); background: #8A8F9C; border-radius: 1px; }
.xmas-garland .tone-accent { background: var(--accent); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.xmas-garland .tone-secondary { background: color-mix(in srgb, var(--secondary) 80%, #fff); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--secondary) 55%, transparent); }
.xmas-garland .tone-white { background: #fff; box-shadow: 0 0 6px 2px rgb(255 255 255 / .9), 0 0 0 1px #D5DAE2; }
.header-garland { top: -1px; }
.header:has(> .header-garland:not(.home-only)) .header-main,
body.is-home .header:has(> .header-garland) .header-main { padding-top: 24px; }

.footer { position: relative; }
/* Couche de neige qui épouse le haut du pied de page (mêmes coins arrondis), sujets plantés dedans. */
.xmas-footer { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; z-index: 1; }
.xmas-snowcap { position: absolute; left: 0; right: 0; top: -9px; height: 30px; z-index: 2; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; filter: drop-shadow(0 3px 3px rgb(22 24 29 / .10)); }
.xmas-snowcap svg { display: block; width: 100%; height: 100%; }
.xmas-figures { position: absolute; left: 0; right: 0; bottom: -4px; height: clamp(54px, 5.6vw, 78px); z-index: 1; }
.xmas-figures svg { position: absolute; bottom: 0; height: 100%; width: auto; overflow: visible; filter: drop-shadow(0 2px 3px rgb(22 24 29 / .14)); }
.xmas-figures .xmas-left { left: clamp(14px, 3.2vw, 48px); aspect-ratio: 300 / 170; }
.xmas-figures .xmas-right { right: clamp(14px, 3.2vw, 48px); aspect-ratio: 320 / 170; }
html[data-theme="dark"] .xmas-snowcap { filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); }
/* Guirlande d'Halloween : petites citrouilles, fantômes et chauves-souris accrochés au fil */
.xmas-garland .ornament { position: absolute; width: 15px; height: 15px; margin-left: -7.5px; margin-top: 3px; transform-origin: 50% -3px; }
.xmas-garland .ornament::before { content: ''; position: absolute; left: 50%; top: -4px; width: 1px; height: 5px; background: #3B3F48; }
.xmas-garland .ornament svg { display: block; width: 100%; height: 100%; overflow: visible; }
.xmas-garland .mini-pumpkin svg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 55%, transparent)); }
.xmas-garland .mini-ghost { height: 17px; width: 14px; margin-left: -7px; }
.xmas-garland .mini-bat { width: 20px; height: 9px; margin-left: -10px; margin-top: 5px; }
.xmas-footer.is-halloween .xmas-snowcap { filter: drop-shadow(0 3px 4px rgb(22 24 29 / .22)); }
.xmas-footer.is-halloween .xmas-figures svg { filter: drop-shadow(0 2px 3px rgb(22 24 29 / .18)); }
html[data-theme="dark"] .xmas-footer.is-halloween .xmas-snowcap svg path:first-child { fill: #0B0C10; }
@media (prefers-reduced-motion: no-preference) {
  .xmas-garland .bulb { animation: xmas-twinkle 2.4s ease-in-out var(--delay) infinite; }
  .xmas-garland .ornament { animation: hw-sway 2.6s ease-in-out var(--delay) infinite alternate; }
  .xmas-footer .fx-float { animation: hw-float 3.2s ease-in-out infinite alternate; }
  .xmas-footer .fx-thread { animation: hw-thread 2.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
  .xmas-footer .fx-spider-body { animation: hw-drop 2.8s ease-in-out infinite alternate; }
}
@keyframes hw-sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes hw-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes hw-thread { from { transform: scaleY(1); } to { transform: scaleY(1.4); } }
@keyframes hw-drop { from { transform: translateY(0); } to { transform: translateY(10.4px); } }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: .5; filter: brightness(.8); } }
@media (max-width: 640px) {
  .xmas-figures { height: 50px; }
  .xmas-figures .xmas-right .xmas-gifts { display: none; }
}
@media print { .xmas-garland, .xmas-footer { display: none; } }

/* ---------- Halloween : fantômes ---------- */
.ghost { position: absolute; z-index: 30; pointer-events: none; aspect-ratio: 64 / 76; opacity: 0; filter: drop-shadow(0 6px 10px rgb(22 24 29 / .18)); animation: ghost-life var(--life) ease-in-out forwards; }
.ghost svg { display: block; width: 100%; height: 100%; animation: ghost-wobble 1.6s ease-in-out infinite alternate; transform-origin: 50% 80%; }
@keyframes ghost-life {
  0% { opacity: 0; transform: translateY(8px) scale(.85); }
  18% { opacity: .95; transform: translateY(0) scale(1); }
  55% { transform: translateY(-6px) scale(1); }
  82% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-12px) scale(.95); }
}
@keyframes ghost-wobble { from { transform: rotate(calc(var(--tilt) * -1)); } to { transform: rotate(var(--tilt)); } }
@media (prefers-reduced-motion: reduce) { .ghost { display: none; } }
@media print { .ghost { display: none; } }

.drawer-panel:focus { outline: none; }

/* ---------- Code promo ---------- */
.summary dt.disc, .summary dd.disc { color: var(--ok); }
.promo-code { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: .78rem; font-weight: 700; letter-spacing: .03em; vertical-align: 1px; }
.promo { margin: 14px 0 4px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.promo-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.promo-toggle:hover { text-decoration-color: currentColor; }
.promo-toggle svg { color: var(--accent); }
.promo-label { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.promo-label svg { color: var(--accent); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; }
.promo-row .btn { flex: none; }
.promo-err { margin: 8px 0 0; font-size: .875rem; color: var(--accent); }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); }
.promo-tag { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .9375rem; }
.promo-tag b { letter-spacing: .04em; }
.promo-on .linkish { color: inherit; font-weight: 600; font-size: .875rem; }
.promo-msg { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.promo .linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* ---------- Horaires du show-room ---------- */
.hours-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
[data-hours-state="open"] .hours-dot { background: #2FB463; box-shadow: 0 0 0 3px rgb(47 180 99 / .22); }
[data-hours-state="closed"] .hours-dot { background: var(--accent); }
.topbar .tb-hours a { gap: 8px; font-weight: 500; }
.f-hours .hours-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--text); }
.f-hours-note { color: var(--muted); }
.hours-card .hours-now { display: flex; align-items: center; gap: 9px; margin: 6px 0 12px; font-weight: 600; color: var(--text); white-space: normal; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.hours-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 12px 4px 0; }
.hours-table td { text-align: right; padding: 4px 0; color: var(--text); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--text); font-weight: 700; }
.hours-note { margin-top: 10px !important; font-size: .9rem; }
.hours-closed { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--accent); display: grid; gap: 4px; }
@media (max-width: 900px) { .topbar .tb-hours { display: none; } }

/* ---------- Nos réalisations ---------- */
.hero { position: relative; }
.hero-more { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 18px; border-radius: var(--pill); background: rgb(22 24 29 / .82); color: #fff; font-weight: 600; font-size: .9375rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgb(0 0 0 / .18); text-decoration: none; transition: background .2s, color .2s; }
.hero-more svg { width: 16px; height: 16px; transition: transform .2s; }
.hero-more:hover, .hero-more:focus-visible { background: var(--accent); color: var(--on-accent); }
.hero-more:hover svg { transform: translateX(3px); }
.hero-more:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .hero-more { right: 10px; bottom: 10px; padding: 7px 12px 7px 14px; font-size: .8125rem; } }

.real-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.real-filters .chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--bg); color: var(--text); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.real-filters .chip small { color: var(--muted); font-size: .8125rem; }
.real-filters .chip:hover { border-color: var(--text); }
.real-filters .chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.real-filters .chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.real-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.real-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; color: #fff; text-align: left; font: inherit; }
.real-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.real-card:hover img, .real-card:focus-visible img { transform: scale(1.04); }
.real-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.real-cap { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / 0)); font-size: .875rem; line-height: 1.35; }
.real-cap em { font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.real-cap b { font-size: 1rem; font-weight: 600; }
.real-cap span { opacity: .9; }
.real-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin: 40px 0 8px; padding: 28px 32px; border-radius: var(--r-lg); background: var(--surface); }
.real-cta h2 { margin: 0 0 6px; font-size: 1.375rem; }
.real-cta p { margin: 0; color: var(--muted); max-width: 60ch; }
.real-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .real-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .real-cap { padding: 28px 10px 9px; font-size: .78rem; } .real-cap b { font-size: .875rem; } .real-cap span { display: none; } .real-cta { padding: 22px 20px; } }

html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgb(10 11 14 / .92); padding: 24px 12px; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 100%; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: var(--r-sm); background: #111; }
.lightbox figcaption { color: #fff; text-align: center; display: grid; gap: 3px; max-width: 70ch; font-size: .9375rem; }
.lightbox figcaption em { font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.lightbox figcaption b { font-size: 1.125rem; font-weight: 600; }
.lightbox figcaption span { color: rgb(255 255 255 / .8); }
.lightbox figcaption p { margin: 6px 0 0; color: rgb(255 255 255 / .85); }
.lb-nav, .lb-close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: rgb(255 255 255 / .24); }
.lb-prev svg { transform: rotate(180deg); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-close svg { width: 22px; height: 22px; }
.lb-count { position: absolute; top: 26px; left: 0; right: 0; margin: 0; text-align: center; color: rgb(255 255 255 / .7); font-size: .875rem; pointer-events: none; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 64px 10px 84px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100vh - 260px); }
}
@media (prefers-reduced-motion: reduce) { .real-card img { transition: none; } }

/* ---------- Accueil : une rangée de produits sur une seule ligne, sans défilement ---------- */
/* Autant de colonnes que de produits ; sur les écrans plus étroits, les produits en trop sont masqués. */
.row-fit { --n: 5; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.row-fit[data-n="1"] { --n: 1; } .row-fit[data-n="2"] { --n: 2; } .row-fit[data-n="3"] { --n: 3; }
.row-fit[data-n="4"] { --n: 4; } .row-fit[data-n="5"] { --n: 5; } .row-fit[data-n="6"] { --n: 6; }
@media (max-width: 1100px) {
  .row-fit[data-n="5"], .row-fit[data-n="6"] { --n: 4; }
  .row-fit > li:nth-child(n+5) { display: none; }
}
@media (max-width: 860px) {
  .row-fit[data-n="4"], .row-fit[data-n="5"], .row-fit[data-n="6"] { --n: 3; }
  .row-fit > li:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .row-fit, .row-fit[data-n] { --n: 2; gap: 24px 12px; }
  .row-fit > li:nth-child(n+4) { display: block; }
  .row-fit > li:nth-child(n+5), .row-fit[data-n="3"] > li:nth-child(3) { display: none; }
}

/* ---------- Photos jointes (devis, contact) ---------- */
.files { display: grid; gap: 8px; }
.files-label { font-weight: 600; font-size: .9375rem; }
.files-label small { font-weight: 400; color: var(--muted); }
.files-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.files-drop:hover, .files-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.files-drop:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.files-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.files-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--accent); }
.files-drop b { display: block; font-size: .9375rem; }
.files-drop small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; margin-top: 2px; }
.files-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files-list:empty { display: none; }
.file-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.file-item.err { border-color: var(--accent); }
.file-item.err small { color: var(--accent); }
.file-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { min-width: 0; display: grid; }
.file-meta b { font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { color: var(--muted); font-size: .8125rem; }
.file-del { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.file-del:hover { background: var(--surface); color: var(--text); }
.file-del svg { width: 16px; height: 16px; }

/* ---------- Panier partagé ---------- */
.share-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--secondary) 9%, var(--bg)); border: 1px solid color-mix(in srgb, var(--secondary) 25%, transparent); }
.share-banner.info { background: var(--surface); border-color: var(--line); }
.share-banner p { margin: 0; }
.share-banner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.share-cart { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.share-btn:hover { text-decoration-color: currentColor; }
.share-btn svg, .share-title svg { color: var(--secondary); }
.share-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; font-size: .875rem; }
.share-actions { margin: 10px 0 0; font-size: .9375rem; }

/* Extension de mode sombre détectée (couleurs inversées) : la page et ses images gardent leurs vraies couleurs,
   le site passe à son propre thème sombre. */
html.ext-dark, html.ext-dark body { filter: none !important; }
html.ext-dark img, html.ext-dark picture, html.ext-dark video, html.ext-dark canvas, html.ext-dark iframe,
html.ext-dark svg, html.ext-dark [style*="background-image"] { filter: none !important; }

/* Adresses vérifiées : suggestions sous le champ adresse */
.addr-suggest { position: relative; }
.addr-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2px); margin: 4px 0 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-md, 12px); box-shadow: 0 12px 30px rgb(0 0 0 / .14); max-height: 320px; overflow: auto; }
.addr-list[hidden] { display: none; }
.addr-list li { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: var(--r-sm, 8px); cursor: pointer; font-size: .9375rem; line-height: 1.35; }
.addr-list li span { color: var(--muted); font-size: .8125rem; }
.addr-list li:hover, .addr-list li.on { background: var(--surface); }
.addr-ok { margin: 6px 0 0; font-size: .8125rem; font-weight: 600; color: #1E8E4E; }
.addr-ok::before { content: "✓ "; }
.addr-ok[hidden] { display: none; }
html[data-theme="dark"] .addr-ok { color: #4ADE80; }

/* Rappel « site en maintenance » (visible seulement des administrateurs connectés) */
.mnt-bar { position: sticky; top: 0; z-index: 70; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: repeating-linear-gradient(-45deg, #16181D 0 18px, #23262D 18px 36px); color: #fff; font-size: .875rem; text-align: center; }
.mnt-bar a { color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--accent); text-decoration: none; }

/* Panneaux sur mesure : aperçu en direct */
.sign-stage { display: grid; place-items: center; padding: clamp(18px, 4vw, 40px); background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #EEF0F3 70%); }
html[data-theme="dark"] .sign-stage { background: radial-gradient(120% 90% at 50% 0%, #2A2D35 0%, #1B1D23 70%); }
.sign-preview { width: 100%; display: grid; place-items: center; }
.sign-preview svg { display: block; width: auto; max-width: 100%; height: auto; max-height: min(460px, 60vh); filter: drop-shadow(0 14px 22px rgba(0,0,0,.18)) drop-shadow(0 2px 3px rgba(0,0,0,.12)); }
.sign-chip { background: var(--accent) !important; color: #fff !important; }
.sign-note { margin: 10px 2px 0; color: var(--muted); font-size: .875rem; }
.sign-logo .opt-label { display: block; font-weight: 600; margin-bottom: 8px; }
.sign-logo-chosen { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md, 12px); background: var(--surface); }
.sign-logo-chosen[hidden] { display: none; }
.sign-logo-chosen img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.sign-logo-chosen img[hidden] { display: none; }
.sign-logo-chosen .sign-logo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; font-size: .9rem; }
.sign-logo-chosen .ok-text { color: var(--ok, #1F8A4C); }
.sign-logo-chosen .form-error { margin: 0; }
.sign-logo .files-drop[hidden] { display: none; }
.line-img.is-sign, .mini-sign { display: grid; place-items: center; background: var(--surface); }
.line-img.is-sign svg, .mini-sign svg { display: block; width: 88%; height: auto; max-height: 88%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.15)); }
.mini-sign { width: 52px; height: 52px; flex: none; border-radius: 10px; }
/* Téléphone et tablette : l'aperçu du panneau reste en haut de l'écran pendant la saisie du texte. */
@media (max-width: 920px) {
  .gallery.has-sign { position: sticky; top: var(--hdr, 64px); z-index: 20; margin: 0 -16px; padding: 6px 16px 10px; background: var(--bg); box-shadow: 0 10px 14px -14px rgba(0,0,0,.35); }
  .gallery.has-sign .gallery-main { aspect-ratio: auto; max-width: none; padding: 16px 12px; border-radius: var(--r-md, 14px); }
  .gallery.has-sign .sign-preview svg { max-height: 23vh; }
  .gallery.has-sign .sign-chip { left: 10px; top: 8px; padding: 3px 9px; font-size: .72rem; }
  .gallery.has-sign .sign-note { display: none; }
}
.opt textarea[rows="6"] { min-height: 150px; }

.prod-reals[hidden] { display: none; }
.prod-reals-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prod-reals-grid a { position: relative; display: block; border-radius: var(--r-md, 12px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.prod-reals-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.prod-reals-grid a:hover img { transform: scale(1.04); }
.prod-reals-grid span { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-size: .8125rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* Espace client « Mes commandes » */
.wrap.narrow { max-width: 860px; }
.acct .linkish { font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.acct-login { padding: 28px; border-radius: var(--r-lg, 16px); background: var(--surface); display: grid; gap: 14px; }
.acct-login h2 { margin: 0; font-size: 1.25rem; }
.acct-login p { margin: 0; }
.acct-form { display: grid; gap: 8px; }
.acct-form label { font-weight: 600; font-size: .9375rem; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row input { flex: 1 1 240px; min-width: 0; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: calc(var(--r-sm) * 1.25); background: var(--bg); color: inherit; font: inherit; }
.acct-row input:focus { border-color: var(--text); outline: none; }
.acct-sent { padding: 14px 16px; border-radius: var(--r-md, 12px); background: var(--ok-soft); color: var(--text); display: grid; gap: 8px; }
.acct-sent[hidden], .acct-note[hidden] { display: none; }
.acct-safe { font-size: .875rem; color: var(--muted); }
.acct-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.acct-who p { margin: 0; }
.acct-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.acct-order { border: 1px solid var(--line); border-radius: var(--r-lg, 16px); padding: 18px 20px; background: var(--bg); display: grid; gap: 14px; }
.acct-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.acct-order-head b { display: block; font-size: 1.0625rem; }
.acct-order-head span { color: var(--muted); font-size: .875rem; }
.acct-order-head .acct-status { color: var(--text); background: var(--surface); padding: 5px 12px; border-radius: var(--pill, 999px); font-size: .8125rem; font-weight: 600; }
.acct-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acct-lines li { display: flex; gap: 12px; align-items: flex-start; }
.acct-lines img, .acct-noimg { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 8px; background: var(--surface); }
.acct-lines b { font-weight: 600; }
.acct-lines b a { color: inherit; }
.acct-lines small { display: block; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.acct-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.acct-order-foot > span { font-weight: 600; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-actions .btn svg { width: 16px; height: 16px; }
.acct-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--ok-soft); font-size: .875rem; }
.acct-note a { font-weight: 600; color: inherit; }
.acct-sign { display: flex; align-items: center; justify-content: center; padding: 4px; }
.acct-sign svg { width: 100%; height: auto; display: block; }

