:root {
  --ink: #1d2333;
  --muted: #5d6475;
  --line: #e4e6ec;
  --tint: #f6f7fa;
  --accent: #8fe1e8; /* light turquoise: fills only, with --ink text on it */
  --accent-hover: #6fd3dc;
  --accent-ink: #0b6e7a; /* the same hue, dark enough for text, links and focus rings on white */
  --brand-gradient: linear-gradient(90deg, #e8418b, #ff8a3d, #ffd23f, #3ccf7d, #2fa8ff, #6a3df0);
  --shadow: 0 1px 2px rgba(29, 35, 51, .06), 0 10px 32px rgba(29, 35, 51, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 28px; } }

/* Header */
.rainbow { height: 4px; background: var(--brand-gradient); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: block; line-height: 0; }
.site-logo img { width: auto; height: 92px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent-ink); border-radius: 0; }
.menu-toggle { display: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; }

@media (max-width: 759.98px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent-ink); }
}

/* Main */
main { flex: 1; background: linear-gradient(180deg, var(--tint), #fff 360px); padding: 40px 0 64px; }
@media (min-width: 760px) { main { padding: 64px 0 96px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; }
@media (min-width: 760px) { .card { padding: 40px 48px; } }

.prose { max-width: 760px; margin-left: auto; margin-right: auto; font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 24px; }
.prose h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin: 36px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose > :last-child { margin-bottom: 0; }
.prose strong { font-weight: 650; }

.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2e3550; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #8b92a3; border-radius: 8px; padding: 10px 12px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent-ink); }

/* Footer */
.site-footer { background: var(--ink); color: #c8cbd6; font-size: 14px; padding: 40px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1.4fr; gap: 48px; } }
.footer-name { color: #fff; font-weight: 600; margin: 0 0 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 24px; }
.footer-links a { display: inline-block; padding: 4px 0; }

/* Two-column lists on wide screens (Nos produits) */
@media (min-width: 600px) { .prose .cols { columns: 2; column-gap: 32px; } .prose .cols li { break-inside: avoid; } }

[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-block { display: block; width: 100%; }
/* ---------- Homepage ---------- */
/* full-bleed: cancel main's padding (same breakpoints as main) */
.home { margin: -40px 0 -64px; font-family: Archivo, system-ui, sans-serif; background: #fff; }
@media (min-width: 760px) { .home { margin: -64px 0 -96px; } }
.home-cols { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.home-cols > :first-child { flex: 1 1 260px; }
.home-cols > :last-child { flex: 999 1 560px; min-width: 0; }
.section-title { margin: 0; font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; font-stretch: 80%; line-height: 1.05; }

/* Shelf: one spine per product type, standing on a dark board */
.shelf { padding-top: 40px; background: var(--tint); overflow: hidden; }
@media (min-width: 760px) { .shelf { padding-top: 56px; } }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.shelf-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: #3d4954; }
.shelf-head a { font-weight: 600; }
.shelf-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 6px; height: 340px; overflow-x: auto; }
.shelf-row li { flex: 1 1 var(--w); min-width: 64px; }
.spine { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: var(--h); padding: 16px 0; background: var(--bg); color: var(--fg); text-decoration: none; transition: transform .2s ease; }
.spine:hover { transform: translateY(-10px); }
.spine span { writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); line-height: 1; white-space: nowrap; overflow: hidden; max-height: calc(var(--h) - 32px); }
.spine-title { font-size: 30px; font-weight: 800; font-stretch: 70%; }
.spine-kind { font-size: 13px; font-weight: 700; }
.shelf-board { height: 18px; background: #13222c; }

/* Hero: pitch and key facts, login card beside them */
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
.hero-grid > :first-child { flex: 999 1 520px; min-width: 0; }
@media (min-width: 760px) { .hero-grid { padding-top: 64px; padding-bottom: 80px; } }
.hero-title { margin: 0; max-width: 15ch; font-size: clamp(44px, 7vw, 100px); font-weight: 900; font-stretch: 72%; line-height: .92; letter-spacing: -.01em; }
/* MJS's text under the title */
.hero-text { max-width: 62ch; margin-top: 28px; }
.hero-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--accent-ink); }
.hero-lead { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.hero-intro { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: #3d4954; }
.hero-tagline { margin: 14px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; max-width: 640px; margin: 36px 0 0; }
.hero-facts dt { font-size: 17px; font-weight: 700; }
.hero-facts dd { margin: 2px 0 0; color: var(--muted); }

.login-card { flex: 1 1 320px; max-width: 400px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 24px; }
@media (min-width: 900px) { .login-card { padding: 32px; } }
.login-card h2 { margin: 0; font-size: 30px; font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.login-intro { margin: 4px 0 20px; color: var(--muted); }
.login-error { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #fdecee; color: #a3182f; font-size: 14px; line-height: 1.45; border-left: 3px solid #d12c4a; }
.login-card .field label { font-size: 15px; color: var(--ink); }
.login-card .field input { min-height: 48px; font-size: 16px; border-radius: 4px; }
.login-card .btn-block { margin-top: 4px; min-height: 52px; border-radius: 99px; font-size: 17px; font-weight: 800; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 16px 0 0; font-size: 15px; font-weight: 600; }

/* Sections below the hero */
.home-section { padding: 48px 0; }
@media (min-width: 760px) { .home-section { padding: 64px 0; } }
.releases { border-top: 1px solid var(--line); }
.release-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.release-list a { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; font-stretch: 70%; line-height: 1.15; color: var(--ink); text-decoration-color: var(--u); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.release-list a:hover { color: var(--accent-ink); }

.how { background: #13222c; color: #fff; }
.how h2 { margin: 0 0 40px; max-width: 18ch; font-size: clamp(34px, 4.5vw, 60px); font-weight: 900; font-stretch: 75%; line-height: .98; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.how-steps li { border-top: 3px solid var(--accent); padding-top: 18px; }
.how-steps span { font-size: 56px; font-weight: 900; font-stretch: 70%; line-height: 1; color: var(--accent); }
.how-steps h3 { margin: 12px 0 8px; font-size: 22px; }
.how-steps p { margin: 0; font-size: 17px; line-height: 1.55; color: #c9d3da; }

.publishers .section-title { margin-bottom: 24px; }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.logo-wall li { border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.logo-wall img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: contain; }
@media (max-width: 599.98px) {
  /* phones: a 3-row strip that scrolls sideways instead of a very tall wall */
  .logo-wall { grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; }
}

.faq { padding-top: 24px; }
.faq-date { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--tint); color: var(--accent-ink); font-size: 20px; font-weight: 500; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq-answer { padding: 0 0 18px; max-width: 64ch; font-size: 17px; color: #3d4954; line-height: 1.6; overflow-wrap: break-word; }
.faq-answer p, .faq-answer ul { margin: 0 0 10px; }
.faq-answer > :last-child { margin-bottom: 0; }

/* Phones: two shelves of six spines, so every product type shows without scrolling sideways;
   the login card right under the title, before the pitch */
@media (max-width: 759.98px) {
  .shelf-head { flex-direction: column; align-items: flex-start; } /* title, « Se connecter », « Tous nos produits »: one under another */
  .shelf-row { flex-wrap: wrap; row-gap: 20px; height: auto; overflow: visible; gap: 20px 0; }
  .shelf-row li { flex: 0 0 calc(100% / 6); min-width: 0; padding-right: 6px; border-bottom: 12px solid #13222c; } /* the li's border is the board, unbroken under the gaps */
  .spine { height: calc(var(--h) * .7); padding: 12px 0; gap: 4px; }
  .spine span { max-height: calc(var(--h) * .7 - 24px); }
  .spine-title { font-size: 24px; }
  .spine-kind { font-size: 12px; }
  .shelf { padding-bottom: 32px; }
  .shelf-board { display: none; }
  .hero-grid { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 32px; }
  .hero-grid > :first-child { display: contents; }
  .login-card { order: 1; max-width: none; flex: none; }
  .hero-text, .hero-facts { order: 2; margin: 0; }
  .hero-lead { font-size: 18px; }
  .hero-intro { font-size: 16px; }
  .hero-tagline { font-size: 17px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero-facts dt { font-size: 16px; line-height: 1.3; }
  .hero-facts dd { font-size: 14px; line-height: 1.4; }
  .release-list a { font-size: 22px; text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .how h2 { margin-bottom: 28px; }
  .how-steps span { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .spine, .faq summary::after { transition: none; }
  .spine:hover { transform: none; }
}

/* Legacy-handler forms (signup, contact, partner, password reset) */
.form-card { max-width: 820px; margin: 24px auto; }
.form-card h1 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 34px); letter-spacing: -.025em; }
.form-intro { margin: 0 0 20px; color: var(--muted); }
.form-sub { margin: 8px 0 14px; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .field-wide { grid-column: 1 / -1; } }
.req { color: #d12c4a; }
.form-note { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.form-msg { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; font-size: 15px; line-height: 1.45; border-left: 3px solid; }
.form-msg[hidden] { display: none; }
.form-msg.is-error { background: #fdecee; color: #a3182f; border-color: #d12c4a; }
.form-msg.is-ok { background: #e8f6ee; color: #14633a; border-color: #1f9d5b; }
.form-card [hidden] { display: none; }

/* ---------- Logged-in shop shell (site/shop.php) ---------- */
/* Legacy pages live in iframes sized like the old frameset: menu 14% | catalogue | top sales 15% */
body.shop { height: 100vh; overflow: hidden; background: #fff; }
.shop-header { flex: none; background: #fff; border-bottom: 1px solid var(--line); }
.shop-bar { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding: 14px 10px 10px 15px; }
.shop-logo { line-height: 0; }
.shop-logo img { width: auto; height: 92px; }
.shop-phone { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.shop-account { display: flex; flex-wrap: wrap; gap: 2px; }
.shop-account button, .shop-link { font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.shop-account button:hover, .shop-link:hover { color: var(--ink); background: var(--tint); }
.shop-module { position: relative; } /* « Module »: EAN and Titre (MJS, 9 Nov 2026) */
.shop-module summary { list-style: none; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 8px; padding: 8px 6px; cursor: pointer; white-space: nowrap; }
.shop-module summary::-webkit-details-marker { display: none; }
.shop-module summary::after { content: ''; display: inline-block; width: 11px; height: 7px; margin-left: 6px; vertical-align: 2px; background: currentColor; /* the search box's chevron */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.shop-module summary:hover, .shop-module[open] summary { color: var(--ink); background: var(--tint); }
.shop-module-menu { position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 4px; min-width: 100%; display: flex; flex-direction: column; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.shop-module-menu button { text-align: left; white-space: nowrap; }
.shop-cart { margin-left: auto; }
.shop-cart form { display: flex; align-items: center; gap: 8px; margin: 0; }
.shop-cart-total { display: flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--accent); border: 0; border-radius: 99px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.shop-cart-total:hover { background: var(--accent-hover); }
.shop-cart-label { font-weight: 400; opacity: .85; }
.shop-cart select { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.shop-company { font-size: 14px; font-weight: 600; white-space: nowrap; }
.shop-logout { font-size: 14px; font-weight: 600; color: #d12c4a; text-decoration: none; white-space: nowrap; }
.shop-logout:hover { text-decoration: underline; }
.shop-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 14% minmax(0, 1fr) 15%; }
.shop-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.shop-menu { grid-column: 1; border-right: 1px solid var(--line); }
.shop-main { grid-column: 2; }
.shop-side { grid-column: 3; border-left: 1px solid var(--line); }
/* principal hides the menu while a product sheet is open (frameset cols '0,*,15%') */
.shop.legacy-open.no-menu .shop-body { grid-template-columns: 0 minmax(0, 1fr) 15%; }
.shop.legacy-open.no-menu .shop-menu { display: none; }
/* keep the shop header on one line on laptop screens, even with the multi-cart selector */
.shop-bar { gap: 8px 14px; }
.shop-account button { padding: 8px 6px; }
.shop-company { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.shop-cart select { max-width: 150px; }
@media (max-width: 1599.98px) { .shop-phone { display: none; } }
/* natives (shop.php): two rows beside the logo; 1: search, cart; 2: phone · Contact · Question, Espace client under the search, company and Déconnexion */
.shop-native .shop-bar { display: grid; grid-template-columns: auto auto minmax(160px, 1fr) auto; grid-template-areas: "logo . search cart" "logo contact nav who"; gap: 6px 14px; }
.shop-native .shop-logo { grid-area: logo; }
.shop-native .shop-account { grid-area: nav; justify-self: center; }
.shop-native .shop-search { grid-area: search; }
.shop-native .shop-cart { grid-area: cart; }
.shop-native .shop-who { grid-area: who; justify-self: end; }
.shop-native .shop-contact { grid-area: contact; }
.shop-search { position: relative; display: flex; width: 100%; max-width: 560px; min-width: 0; justify-self: center; margin: 0; }
.shop-search input[type="search"] { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid #8b92a3; border-radius: 8px; padding: 7px 44px 7px 12px; }
/* the search icon sits inside the field, on its right */
.shop-search button { position: absolute; top: 3px; right: 3px; bottom: 3px; display: flex; align-items: center; padding: 0 10px; color: var(--ink); background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; }
.shop-search button:hover { background: var(--accent-hover); }
.shop-search button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* the search's choice (MJS, 9 Nov 2026): a compact grey segment of the bar, as wide as the choice shown (Firefox: a fixed width) */
.shop-search select { flex: 0 0 auto; width: 9.5em; max-width: 45%; min-width: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d2333' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 7px;
  border: 1px solid #8b92a3; border-right-color: var(--line); border-radius: 8px 0 0 8px; padding: 0 28px 0 12px; }
@supports (field-sizing: content) { .shop-search select { width: auto; field-sizing: content; } }
.shop-search select:hover { background-color: var(--line); }
.shop-search select ~ input[type="search"] { border-left: 0; border-radius: 0 8px 8px 0; }
.shop-search select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.shop-who, .shop-contact { display: flex; align-items: baseline; gap: 6px 14px; margin: 0; font-size: 14px; }
.shop-contact { gap: 6px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.shop-contact button { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 2px; cursor: pointer; }
.shop-contact button:hover { text-decoration: underline; }

/* ---------- Shop native views (site/commandes.php) ---------- */
.shop-body > * { grid-row: 1 / -1; } /* the view overlays the catalogue: every column spans the whole height */
.shop-view { grid-column: 2; grid-row: 1 / -1; min-height: 0; overflow-y: auto; background: #fff; padding: 20px 28px 48px; }
.shop.view-open .shop-main { visibility: hidden; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--tint); }
.orders { max-width: 1000px; }
.orders-top { margin-bottom: 8px; }
.orders-back { font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; }
.orders-back:hover { text-decoration: underline; }
.orders-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.orders-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.orders-head h1:focus { outline: none; }
.orders-ref { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.orders-search input { width: 300px; max-width: 100%; font: inherit; font-size: 14px; border: 1px solid #8b92a3; border-radius: 8px; padding: 8px 12px; }
.orders-summary { margin: -6px 0 16px; color: var(--muted); }
.orders-summary strong { color: var(--ink); }
.orders-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.orders-empty { color: var(--muted); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--tint); position: sticky; top: -20px; }
.orders-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders-table tbody tr:hover { background: #fafbfc; }
.orders-table tfoot th, .orders-table tfoot td { border-bottom: 0; background: none; position: static; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); padding-top: 12px; }
.orders-table .num { text-align: right; white-space: nowrap; }
.orders-cover { float: left; margin-right: 10px; width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--tint); } /* the cart's size (MJS, 9 Nov) */
.orders-titre span { display: block; overflow: hidden; } /* beside the cover, from its top */
@media (max-width: 639.98px) { .orders-cover { float: none; display: block; margin: 0 0 6px; } } /* phone: the cover above the title, which keeps the cell's width */
.orders-table a { font-weight: 600; text-decoration: none; }
.orders-table a:hover { text-decoration: underline; }
.pending { color: #a35b00; }
.pending-note { display: block; font-size: 12px; color: #a35b00; }
/* Suivi de commandes (site/suivi.php) */
.tabs-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs-bar a { padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-bar a:hover { color: var(--ink); }
.tabs-bar a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-ink); }
.suivi-banner { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--tint); border-left: 3px solid var(--accent-ink); font-size: 14px; line-height: 1.55; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.status-ok { background: #e8f6ee; color: #14633a; }
.status-wait { background: #fff4e0; color: #8a4b00; }
.status-bad { background: #fdecee; color: #a3182f; }
.delivery { margin-bottom: 22px; }
.delivery-date { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 16px; }
.delivery-date span { font-size: 13px; font-weight: 500; color: var(--muted); }
.delivery .orders-table { table-layout: fixed; }
.delivery .orders-table th:first-child { width: 62%; }
/* Mon compte (site/compte.php) */
.account-h2 { margin: 28px 0 10px; font-size: 19px; letter-spacing: -.01em; }
.account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.account-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.55; }
.account-card h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.account-card p { margin: 0; }
.account-note { color: var(--muted); font-size: 14px; }
.account-recipients input[type=email], .account-recipients input:not([type]) { width: 100%; font: inherit; font-size: 14px; border: 1px solid #8b92a3; border-radius: 6px; padding: 6px 8px; }
.account-recipients td:first-child { width: 2em; color: var(--muted); }
.account-recipients td:last-child { text-align: center; }
.account-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.account-check input, .account-field input { width: 16px; height: 16px; accent-color: var(--accent-ink); }
.account-format { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 18px; align-items: center; }
.account-format legend { float: left; margin-right: 14px; font-weight: 600; font-size: 14px; }
.account-format label { font-size: 14px; }
.account-fields { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-fields .btn { padding: 6px 12px; font-size: 14px; }
.account-section { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.account-section summary { padding: 10px 14px; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.account-section summary span { color: var(--muted); font-weight: 500; }
.account-section[open] summary { border-bottom: 1px solid var(--line); }
.account-field { display: flex; align-items: center; gap: 8px; padding: 5px 14px; font-size: 14px; }
.account-field:hover { background: #fafbfc; }
.account-field code { font-size: 12px; color: var(--muted); min-width: 52px; }
.account-field input:disabled + code, .account-field input:disabled ~ * { opacity: .55; }
/* Meilleures ventes (site/meilleures.php): #1 in the middle and highest */
.podium { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; align-items: end; gap: 18px; }
.podium li { display: flex; flex-direction: column; align-items: center; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); text-align: center; }
.podium-item img { width: 130px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 30px rgba(29, 35, 51, .2); background: var(--tint); transition: transform .2s ease; }
.podium-1 .podium-item img { width: 160px; }
.podium-item:hover img { transform: translateY(-4px); }
.podium-title { font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.podium-step { margin-top: 10px; width: 100%; display: grid; place-items: center; color: var(--ink); font-size: 26px; font-weight: 800; border-radius: 10px 10px 0 0; background: var(--accent); }
.podium-1 .podium-step { height: 90px; }
.podium-2 .podium-step { height: 60px; background: #b3ebf0; }
.podium-3 .podium-step { height: 40px; background: #d2f4f6; }
.hits-period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.hits-period input[type=date] { font: inherit; font-size: 14px; border: 1px solid #8b92a3; border-radius: 6px; padding: 6px 8px; margin-left: 4px; }

/* ---------- Catalogue (site/catalogue.php) ---------- */
/* the native list is the main column's only layer under the views */
.shop-body { grid-template-rows: auto minmax(0, 1fr); }
#shop-catalogue { min-height: 0; overflow-y: auto; padding: 20px 28px 48px; }
.cat-banner { position: relative; margin-bottom: 16px; }
.cat-banner img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.cat-banner button { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; font-size: 20px; line-height: 1; color: var(--ink); background: #fff; border: 0; border-radius: 99px; cursor: pointer; box-shadow: var(--shadow); }
.cat-added { align-self: center; font-size: 14px; font-weight: 600; color: #14633a; }
.cat-added--error { color: #a1261b; }
.cat-added-open { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
/* duplicate prompt (shopAddPrompt) */
.shop-dialog, .mjs-message { box-sizing: border-box; width: min(32rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; border: 0; border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); background: #fff; }
.shop-dialog::backdrop, .mjs-message::backdrop { background: rgba(29, 35, 51, .45); }
.mjs-message { position: fixed; inset: 0; z-index: 100; margin: auto; height: fit-content; width: min(44rem, calc(100vw - 32px)); padding: 36px 28px 28px; text-align: center; } /* MJS, 13 Nov 2026: bigger, logo, centred */
/* highlighted (MJS, 13 Nov 2026): the page dimmed behind (an `open` dialog has no ::backdrop), the brand strip on top, the message in a tinted box */
.mjs-message { background: var(--brand-gradient) top / 100% 6px no-repeat, #fff; box-shadow: var(--shadow), 0 0 0 100vmax rgba(29, 35, 51, .45); }
.mjs-message img { display: block; margin: 0 auto 16px; width: auto; height: 92px; }
.mjs-message h2 { margin: 0 0 16px; font-size: 22px; }
.mjs-message > p { margin: 0 0 20px; padding: 20px; border: 2px solid var(--accent); border-radius: 10px; background: #eefafb; font-size: 19px; font-weight: 600; }
.shop-dialog p, .mjs-message p { margin: 0 0 10px; line-height: 1.45; }
.shop-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shop-dialog-actions button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent-ink); color: var(--accent-ink); background: #fff; cursor: pointer; }
.shop-dialog-actions button:first-child { color: var(--ink); background: var(--accent); }
.catalogue { max-width: 1100px; margin-inline: auto; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 12px; }
.cat-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.cat-head h1:focus { outline: none; }
.cat-count { margin: 0; color: var(--muted); font-size: 14px; }
.cat-widened { margin: 0 0 12px; padding: 10px 14px; background: var(--tint); border-radius: 8px; font-size: 14px; } /* the list widened its period */
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 12px; }
.cat-filters { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; padding: 12px 14px; background: var(--tint); border-radius: 12px; } /* « Recherche par »: months, then catégorie / genre / distributeur */
.cat-filter { font-size: 13px; font-weight: 600; color: var(--muted); }
.cat-filter select { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); border: 1px solid #8b92a3; border-radius: 8px; padding: 7px 10px; background: #fff; }
.cat-sort { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cat-sort select { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid #8b92a3; border-radius: 8px; padding: 7px 10px; background: #fff; }
.cat-views { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cat-views a { padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cat-views a[aria-current] { background: var(--ink); color: #fff; }
.cat-pager a, .cat-pager span { min-width: 32px; padding: 5px 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 6px; }
.cat-pager a:hover { background: var(--tint); }
.cat-pager a[aria-current] { background: var(--accent); color: var(--ink); }
.cat-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 20px 0; }
.cat-empty { padding: 24px; background: var(--tint); border-radius: 12px; color: var(--muted); }
.cat-list { display: grid; gap: 12px; }
.cat-group { grid-column: 1 / -1; margin: 8px 0 0; font-size: 18px; }
.cat-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 14px; border: 4px solid var(--line); border-radius: 12px; background: #fff; }
.cat-cover { width: 96px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--tint); }
.cat-item { position: relative; }
.cat-rank { position: absolute; top: 8px; left: 8px; min-width: 24px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
.cat-title { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.cat-title button { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.cat-title button:hover { color: var(--accent-ink); text-decoration: underline; }
.cat-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--tint); color: var(--accent-ink); font-size: 12px; font-weight: 600; vertical-align: middle; }
.cat-meta { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.cat-desc { margin: 6px 0; font-size: 14px; }
.cat-comment { margin: 6px 0; font-size: 14px; font-weight: 600; color: #c0182b; }
.cat-prices { display: flex; flex-direction: column; align-items: stretch; gap: 8px; } /* list: on the right, one under another */
.cat-price { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--accent); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.cat-price span { font-weight: 500; opacity: .9; margin-left: 4px; }
.cat-price .cat-rights { font-size: 12px; opacity: .75; }
.cat-prices .cat-comment { margin: 0; max-width: 220px; text-align: center; } /* the infos under or in place of the prices, centred */
.cat-price ~ .cat-comment { width: 0; min-width: 100%; max-width: none; } /* under the prices: wraps to the buttons' width, never widens them */
.cat-price:hover { background: var(--accent-hover); }
.cat-price.is-added { background: #1a7f4b; }
.cat-galerie { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-galerie .cat-item { grid-template-columns: 1fr; box-shadow: var(--shadow); }
.cat-galerie .cat-cover { width: 100%; max-height: 320px; aspect-ratio: auto; object-fit: contain; }
.cat-galerie .cat-prices { justify-self: center; } /* centred, buttons of equal width */
.catalogue a:focus-visible, .catalogue button:focus-visible, .catalogue select:focus-visible, .catalogue input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.cat-price:focus-visible { outline-color: var(--ink); }
@media (max-width: 640px) {
  .cat-item { grid-template-columns: 1fr; }
  .cat-filters { grid-template-columns: 1fr 1fr; }
  .cat-galerie { grid-template-columns: 1fr; }
  .cat-list:not(.cat-galerie) .cat-prices { align-items: flex-start; }
  #shop-catalogue { padding: 12px 12px 32px; }
}

/* ---------- Product sheet (site/fiche.php) ---------- */
.fiche { max-width: 1100px; margin-inline: auto; }
.fiche-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.fiche-bar button { font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.fiche-bar button:hover { text-decoration: underline; }
.fiche-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.fiche-nav a { min-width: 36px; padding: 4px 10px; text-align: center; font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; }
.fiche-nav a:hover { background: var(--tint); }
.fiche-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.fiche-cover { position: relative; }
.fiche-side .cat-prices { width: fit-content; margin: 12px auto 0; } /* centred under the cover */
.fiche-cover img { display: block; width: 100%; border-radius: 10px; background: var(--tint); }
.fiche-cover [data-fiche-trailer], .fiche-cover [data-fiche-video] { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; font-size: 26px; color: #fff; background: rgba(29, 35, 51, .75); border: 0; border-radius: 99px; cursor: pointer; }
.fiche-cover [data-fiche-trailer]:hover, .fiche-cover [data-fiche-video]:hover { color: var(--ink); background: var(--accent); }
.fiche-cover iframe, .fiche-cover video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.fiche-player button { margin-top: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.fiche-incart { margin: 10px 0 0; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #14633a; background: #e8f6ee; border-radius: 8px; }
.fiche-rating { margin-top: 16px; font-size: 14px; }
.fiche-rating p { margin: 0 0 4px; }
.fiche-rating button { font-size: 22px; line-height: 1; color: #f2a516; background: none; border: 0; padding: 4px; cursor: pointer; }
.fiche-rating button:disabled { color: #c3c7d1; cursor: default; }
.fiche-muted { color: var(--muted); }
.fiche-side [data-legacy] { margin-top: 12px; font: inherit; font-size: 14px; font-weight: 600; color: #c0182b; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.fiche-main h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.fiche-main h1:focus { outline: none; }
.fiche-main h2 { margin: 24px 0 8px; font-size: 18px; }
.fiche-main h3 { margin: 12px 0 4px; font-size: 15px; }
.fiche-original { margin: 0 0 8px; color: var(--muted); }
.fiche-main .cat-badge { margin-left: 0; text-decoration: none; }
.fiche-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 12px 0; font-size: 15px; }
.fiche-facts div { display: contents; }
.fiche-facts dt { color: var(--muted); }
.fiche-facts dd { margin: 0; overflow-wrap: anywhere; }
.fiche-facts a { color: var(--ink); }
.fiche-facts a:hover { color: var(--accent-ink); }
.fiche-text { font-size: 15px; overflow-wrap: anywhere; }
.fiche-tracks { margin: 0; padding-left: 28px; font-size: 15px; }
.fiche-tracks button { padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; } /* a track: plays its extract */
.fiche-tracks button:hover, .fiche-tracks button:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.fiche-tracks button.is-playing { color: var(--accent-ink); font-weight: 700; }
.fiche-extraits-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.fiche-extraits-bar .btn { padding: 6px 12px; font-size: 14px; }
.fiche-extraits-bar audio { height: 32px; max-width: 100%; }
.fiche audio { display: block; width: 100%; max-width: 420px; margin: 12px 0; }
.fiche-strip-title { margin: 24px 0 8px; font-size: 18px; }
.fiche-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fiche-strip button { display: block; width: 100%; font: inherit; font-size: 13px; line-height: 1.3; text-align: left; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.fiche-strip img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--tint); margin-bottom: 4px; }
.fiche-strip button:hover span { color: var(--accent-ink); text-decoration: underline; }
.fiche a:focus-visible, .fiche button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.fiche .cat-price:focus-visible { outline-color: var(--ink); }
@media (max-width: 640px) {
  .fiche-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fiche-cover { max-width: 240px; margin-inline: auto; }
  .fiche-main h1 { font-size: 22px; }
}

/* ---------- Shop menu (site/menu.php) ---------- */
.menu { font-size: 14px; }
.menu-h { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.menu-h:first-child { margin-top: 0; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-supports a, .menu-ops a, .menu-quick a, .menu-quick button { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-supports a:hover, .menu-ops a:hover, .menu-quick a:hover, .menu-quick button:hover { background: var(--tint); }
.menu-quick button { width: 100%; font: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
@media (min-width: 900px) { .menu-phone { display: none; } } /* Contact / Question: in the header */
.menu a[aria-current] { background: var(--tint); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-ink); }
.menu select option[selected] { font-weight: 600; }
.menu a:focus-visible, .menu button:focus-visible, .menu select:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

/* ---------- Native menu in the shell, phone layout ---------- */
.shop-native .shop-body { grid-template-columns: 240px minmax(0, 1fr) 15%; }
@media (min-width: 900px) { .shop-native .shop-body:has(> .shop-side[hidden]) { grid-template-columns: 240px minmax(0, 1fr) 0; } } /* no top sales (204 or failure): no blank band */
/* « Top des ventes » (site/topventes.php): covers two by two when the column allows, the rank over the cover */
aside.shop-side { min-height: 0; overflow-y: auto; }
.topventes { padding: 16px 12px 32px; }
.topventes h2 { margin: 0; font-size: 16px; text-align: center; }
.topventes-sub { margin: 2px 0 12px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.topventes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 14px 10px; }
.topventes-list button { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.topventes-list img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--tint); }
.topventes-list button:hover img { box-shadow: 0 0 0 3px var(--accent-ink); }
.topventes-list button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.topventes-rank { position: absolute; top: 4px; left: 4px; min-width: 20px; padding: 1px 5px; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.topventes-title { font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
#shop-menu { min-height: 0; overflow-y: auto; padding: 16px 12px 32px; }
.shop-menu-toggle { display: none; }
@media (max-width: 899.98px) {
  /* header: logo and cart on line 1; Espace client (wraps, every item visible) and Déconnexion on line 2 */
  .shop-bar { padding: 8px 12px; gap: 6px 8px; }
  .shop-logo img { width: min(148px, 38vw); height: auto; } /* narrower than 92 px high, to fit beside the cart */
  .shop-bar::after { content: ""; order: 9; flex-basis: 100%; } /* line break after the logo and the cart */
  .shop-account { order: 10; flex: 1 1 0; min-width: 0; }
  .shop-account button { white-space: nowrap; }
  .shop-logout { order: 11; }
  .shop-company, .shop-cart-label { display: none; }
  .shop-cart-total { font-size: 13px; padding: 8px 12px; }
  .shop-cart select { max-width: 110px; }
  /* natives: logo and cart; the search on its own line; Espace client and Déconnexion. Contact / Question: in the drawer (menu.php) */
  .shop-native .shop-bar { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo . cart cart" "search search search search" "nav nav nav who"; gap: 6px 8px; }
  .shop-native .shop-account { justify-self: stretch; }
  .shop-native .shop-bar::after { content: none; }
  .shop-native .shop-search { max-width: none; }
  .shop-native .shop-contact { display: none; }
  .shop-native .shop-body { grid-template-columns: minmax(0, 1fr); }
  .shop-native .shop-body > * { grid-column: 1; }
  .shop-native .shop-side { display: none; }
  .shop-native #shop-catalogue { grid-row: 2; }
  .shop-native .shop-menu-toggle { display: flex; align-items: center; gap: 8px; grid-row: 1; justify-self: start; margin: 10px 12px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
  .shop-native .shop-menu-toggle::before { content: "☰"; }
  .shop-native.view-open .shop-menu-toggle { display: none; }
  /* drawer: the nav is the overlay, its .menu the panel */
  #shop-menu { display: none; position: fixed; inset: 0; z-index: 50; padding: 0; border: 0; background: rgba(29, 35, 51, .45); }
  .menu-open #shop-menu { display: block; }
  #shop-menu .menu { width: min(320px, 85vw); height: 100%; overflow-y: auto; padding: 16px 12px 32px; background: #fff; box-shadow: var(--shadow); }
}

/* ---------- Cart view (site/panier.php) ---------- */
.panier .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panier-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.panier-top > button, .panier-title button { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.panier-top > button:hover, .panier-title button:hover { text-decoration: underline; }
.panier-title button { font-weight: 600; display: flex; align-items: flex-start; gap: 10px; }
.panier-title button:hover { text-decoration: none; } .panier-title button:hover span { text-decoration: underline; }
.panier-cover { flex: none; width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--tint); } /* a bit smaller than the Module EAN's 80 px (MJS, 9 Nov) */
.panier-switch { font-size: 14px; color: var(--muted); }
.panier-switch select { font: inherit; margin-left: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.panier-counts, .panier-empty, .panier-note { color: var(--muted); }
.panier-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.panier-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--tint); }
.panier-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.panier-table .num { text-align: right; white-space: nowrap; }
.panier-sel { width: 28px; color: #1f8f4e; font-weight: 700; }
.panier-off td { color: var(--muted); }
.panier-totals { margin: 16px 0 4px auto; max-width: 360px; }
.panier-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.panier-totals dt, .panier-totals dd { margin: 0; }
.panier-totals dd { text-align: right; white-space: nowrap; }
.panier-payable { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px !important; font-size: 17px; font-weight: 700; }
.panier-free { text-align: right; color: var(--muted); font-size: 14px; margin: 0; }
.panier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.panier-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.panier-pdf form { margin: 0; }
.panier-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.panier-bulk .panier-counts { margin-right: auto; }
.panier-bulk button, .panier-del button { font: inherit; font-size: 14px; color: var(--accent-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.panier-bulk button:hover, .panier-del button:hover { text-decoration: underline; }
.panier-sel input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-ink); cursor: pointer; }
.panier-qty select, .panier-transfer select, .panier-create input { font: inherit; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.panier-short { display: block; font-size: 12px; font-weight: 600; color: #a35b00; white-space: normal; }
.panier-del { text-align: right; }
.panier-msg--error { padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #a1261b; font-weight: 600; }
.panier-transfer, .panier-create { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.panier-transfer select, .panier-create input { margin-left: 6px; }
.panier-msg--ok { padding: 10px 14px; border-radius: 8px; background: #e8f5ee; color: #17663a; }
.panier-msg--ok p { margin: 4px 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.commande { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; max-width: 640px; }
.commande h2 { margin: 0 0 4px; font-size: 18px; }
.commande-summary { margin: 0 0 12px; color: var(--muted); }
.commande-field { margin-bottom: 12px; }
.commande-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.commande-opt { font-weight: 400; font-size: 13px; color: var(--muted); }
.commande-field input[type="text"], .commande-field textarea { box-sizing: border-box; width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.commande-field input[type="file"] { max-width: 100%; font: inherit; font-size: 14px; }
.commande-field [aria-invalid="true"] { border-color: #a1261b; }
.commande-error { margin: 4px 0 0; color: #a1261b; font-size: 14px; font-weight: 600; }
.commande-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.commande-error:empty { display: none; }
.avancee-years { border: 0; padding: 0; min-width: 0; }
.avancee-years legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.avancee-years label { display: inline; font-weight: 400; }
.commande-field.avancee-years input[type="text"] { width: 5em; }
@media (max-width: 639.98px) {
  .panier-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .panier-table, .panier-table tbody, .panier-table tr, .panier-table td { display: block; }
  .panier-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; }
  .panier-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 10px; text-align: right; white-space: normal; }
  .panier-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .panier-table .panier-title { font-size: 15px; }
  .panier-table td[data-label=""]::before { content: none; }
  .panier-del { justify-content: flex-end; }
  .panier-totals { max-width: none; }
  .panier-free { text-align: left; }
}

/* ---------- Test site (lib/test_site.php) ---------- */
.test-banner { flex: none; margin: 0; padding: 6px 16px; background: #b42318; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }

/* ---------- Cover frames by support (cover_class()): thumbs are white-padded canvases, cropped to the frame ---------- */
img.cover-paysage, .cat-galerie img.cover-paysage { aspect-ratio: 4 / 3; object-fit: cover; }
img.cover-carre, .cat-galerie img.cover-carre { aspect-ratio: 1; object-fit: cover; }
/* ---------- Document sent by mail (site/document.php) ---------- */
.document-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.document-top h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.document-pdf { display: block; width: 100%; height: 80vh; min-height: 420px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); }
.document-more { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

/* Module EAN (MJS, 9 Nov 2026): the box for the codes, the intermediate table (scrolls inside the view on a phone), warnings as tags */
.ean-label { display: block; margin: 4px 0 8px; font-weight: 600; }
.ean-support { margin: 4px 0 14px; } .ean-support label { font-weight: 600; margin-right: 6px; } .ean-support select { font: inherit; padding: 6px 10px; border: 1px solid #8b92a3; border-radius: 8px; } /* Module titre */
.ean-codes { width: 100%; box-sizing: border-box; min-height: 240px; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid #8b92a3; border-radius: 8px; padding: 10px 12px; }
.ean-scroll { overflow-x: auto; }
.ean-table select { font: inherit; font-size: 13px; max-width: 13em; }
.ean-table td, .ean-table th { padding-left: 6px; padding-right: 6px; }
.ean-table input.ean-qte { width: 4.5em; min-width: 0; font: inherit; padding: 4px 6px; }
.ean-table td:nth-child(3) { min-width: 14em; } /* Titre */
.ean-titre { display: flex; align-items: flex-start; gap: 10px; font: inherit; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ean-titre:hover span { text-decoration: underline; }
.ean-cover { flex: none; width: 80px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--tint); }
.ean-table td.ean-infos { max-width: 12em; }
.ean-note { display: block; font-size: 12px; color: var(--muted); }
.ean-table [data-ean-prix] { white-space: nowrap; }
.ean-code { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ean-info { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #c0182b; } /* the fiche's .cat-comment */
.ean-tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ean-alerte { background: #fff4d6; color: #7a5300; }
.ean-bloque { background: #fdecee; color: #a3182f; }
.ean-ok { background: #e8f6ee; color: #14633a; }
.ean-table tr.is-bloque td { color: var(--muted); }
.ean-actions { margin: 16px 0 8px; }
