/* JokerZ Design — site public. Feuille unique, sans outil de compilation. */

@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/orbitron-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/orbitron-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/orbitron-latin-800-normal.woff2") format("woff2"); }
/* Barlow Condensed : uniquement pour l'aperçu de la plaque numéro du configurateur. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --accent: #8DCB45;
  --accent-ink: var(--accent);
  --on-accent: #10120D;
  --bg: #0F100D;
  --bg-2: #13150F;
  --surface: #181A15;
  --line: #2A2E25;
  --line-2: #3A3F33;
  --line-3: #4A5042;
  --text: #F2F4EE;
  --text-2: #D3D7CB;
  --text-strong: #FFFFFF;
  --muted: #B9BEB0;
  --faint: #8F9586;
  --stripe-1: #1C1F19;
  --stripe-2: #181A15;
  --overlay: rgba(15, 16, 13, 0.85);
  --shadow: rgba(0, 0, 0, 0.5);
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1240px;
  --gutter: 24px;
  --display: "Orbitron", "Archivo", system-ui, sans-serif;
  --plate: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Thème clair : choisi avec le bouton de l'en-tête (mémorisé dans le navigateur). */
:root[data-theme="light"] {
  color-scheme: light;
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #000);
  --bg: #F5F6F1;
  --bg-2: #ECEEE7;
  --surface: #FFFFFF;
  --line: #DCDFD4;
  --line-2: #C9CDBF;
  --line-3: #A9AF9E;
  --text: #14160F;
  --text-2: #2E3228;
  --text-strong: #000000;
  --muted: #555B4B;
  --faint: #676D5E;
  --stripe-1: #E8EBE2;
  --stripe-2: #EFF1EA;
  --overlay: rgba(255, 255, 255, 0.92);
  --shadow: rgba(20, 22, 15, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
/* Photos du site : pas d'enregistrement par appui long ni de glisser-déposer (lot 6c, dissuasif). */
body:not(.g-body) img { -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-strong); }
p a, .prose a, .small a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
address { font-style: normal; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tight { padding-top: 24px; padding-bottom: 48px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.band + .band { border-top: 0; }
.section-gap { padding-top: 56px; }
.section-close { padding-top: 24px; }
.banners { padding-top: 32px; padding-bottom: 24px; }

/* Typographie */
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.08; letter-spacing: 0; font-size: clamp(28px, 3.5vw, 48px); }
.display--page { font-size: clamp(26px, 3.4vw, 42px); margin-top: 8px; }
.display--product { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; text-transform: none; }
.h-section { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.h-small { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.25; margin-bottom: 10px; }
.eyebrow { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.prose { color: var(--text-2); max-width: 72ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; margin: 1.2em 0 0.4em; }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font: inherit; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-align: center; cursor: pointer; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-3); font-weight: 600; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.link-arrow { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }

/* Bandeau, en-tête */
.topbar { background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.topbar-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
@keyframes topbar-alterne { 0%, 44% { opacity: 1; transform: none; } 50%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .topbar-info span { animation: none !important; position: static; } .topbar-info { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 2px 18px; } }
.topbar-nav a { color: var(--on-accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.topbar-nav a:hover, .topbar-nav a[aria-current="page"] { color: var(--on-accent); text-decoration-color: currentColor; }
.site-header { position: relative; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px 16px; min-height: 84px; }
.logo { display: inline-flex; flex: 0 0 auto; margin-right: 6px; }
.logo img { height: 40px; width: auto; }
.logo--small img { height: 34px; }
.logo--small { margin-bottom: 12px; }

/* Menu « Nos produits » */
.mega-wrap { align-self: stretch; display: flex; align-items: center; }
.mega-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; }
.mega-btn:hover, .mega-wrap.is-open .mega-btn { border-color: var(--accent-ink); }
.mega-btn .chev { transition: transform 0.2s; }
.mega-wrap.is-open .mega-btn .chev { transform: rotate(180deg); }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 130px); overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px var(--shadow); }
.mega-wrap.is-open .mega { display: block; }
@media (hover: hover) and (min-width: 1081px) { .mega-wrap:hover .mega { display: block; } }
.mega-inner { padding-top: 30px; padding-bottom: 26px; }
.mega-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.mega-group + .mega-group { margin-top: 22px; }
.mega-title { display: inline-block; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-ink); }
.mega-title:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.mega-links { list-style: none; margin: 0; padding: 0; }
.mega-links a { display: block; padding: 5px 0; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-2); }
.mega-links a:hover { color: var(--text-strong); }
.mega-products { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mega-product { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.mega-product:hover { border-color: var(--line-3); }
.mega-product-img { display: block; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); }
.mega-product-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-product-name { padding: 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mega-all { display: block; margin-top: 16px; text-align: right; font-weight: 600; color: var(--accent-ink); }

/* Recherche, boutons de l'en-tête */
.search { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; height: 46px; padding: 0 4px 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.search:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.search-input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.search-input::placeholder { color: var(--faint); }
.search-btn { flex: 0 0 auto; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--text); color: var(--bg); cursor: pointer; }
.search-btn:focus-visible { outline-offset: 1px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-pro { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
.btn-pro:hover { color: var(--bg); background: var(--accent); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
a.icon-btn:hover, button.icon-btn:hover { border-color: var(--line-3); color: var(--text); }
.icon-btn.is-soon { opacity: 0.5; cursor: help; }
.theme-toggle[hidden] { display: none; }
.theme-toggle .icon-moon, :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Menu mobile */
.nav-mobile { display: none; }
.nav-mobile > summary { list-style: none; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile[open] > summary { border-color: var(--accent-ink); }
.nav-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 150px); overflow-y: auto; padding: 4px var(--gutter) 22px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px var(--shadow); }
.mnav-group > summary, .mnav-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; list-style: none; }
.mnav-group > summary::-webkit-details-marker { display: none; }
.mnav-group > summary::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.mnav-group[open] > summary::after { transform: rotate(-135deg); }
.mnav-group[open] > summary { color: var(--accent-ink); }
.mnav-group ul { list-style: none; margin: 0; padding: 6px 0 10px 14px; border-bottom: 1px solid var(--line); }
.mnav-group ul a { display: block; padding: 8px 0; color: var(--text-2); }
.mnav-group ul a.mnav-all { color: var(--accent-ink); font-weight: 600; }
.mnav-shop { color: var(--accent-ink); }
.mnav-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; }
.mnav-extra a:not(.btn-pro) { padding: 8px 0; color: var(--text-2); }
.mnav-extra .btn-pro { margin-top: 10px; }

@media (max-width: 1080px) {
  .mega-wrap, .header-actions .btn-pro { display: none; }
  .nav-mobile { display: block; }
  .header-row { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .search { order: 5; flex-basis: 100%; }
}

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.hero-media { flex: 1 1 460px; min-height: 360px; position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); display: flex; align-items: center; justify-content: center; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* Visuel détouré : sans fond ni cadre, posé directement sur la page. */
.hero-media--cutout { background: none; border: 0; border-radius: 0; overflow: visible; }
.hero-media--cutout img { object-fit: contain; }
.hero-tag { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: var(--radius); background: var(--overlay); font-size: 14px; font-weight: 600; }
.hero-plate { width: 150px; height: 120px; border-radius: 12px; background: #F2F4EE; color: #10120D; display: flex; align-items: center; justify-content: center; font-family: var(--plate); font-style: italic; font-weight: 800; font-size: 90px; transform: rotate(-6deg); box-shadow: 0 10px 30px var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; }
.chip:hover { border-color: var(--accent-ink); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.25; }
.steps p { color: var(--muted); font-size: 15px; flex: 1 1 auto; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent-ink); }
.step-delai { font-size: 13px; font-weight: 600; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head .muted { max-width: 560px; }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 170px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg); }
.tile:hover { border-color: var(--accent-ink); }
.tile-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 17px; line-height: 1.25; }
.tile-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.tile-cta { color: var(--accent-ink); }

/* Cartes produit */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-cards--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: border-color 0.15s; }
.card:hover { border-color: var(--line-3); }
.card-media { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-noimg { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--line-3); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; flex: 1 1 auto; }
.card-title { font-weight: 600; line-height: 1.3; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-price { font-family: var(--display); font-weight: 700; font-size: 16px; }
.card-price small { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--faint); }
.card-cta { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.count { margin-bottom: 14px; font-size: 14px; }

/* Fil d'Ariane, pagination, recherche */
.page-head { padding-top: 24px; padding-bottom: 8px; }
.shop-band { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent); font-weight: 600; font-size: 15px; line-height: 1.4; }
.shop-band svg { flex: none; color: var(--accent-ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; padding-top: 18px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.page-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 600; }
.page-link.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-link.is-disabled { opacity: 0.4; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 640px; }
.search-form .input { flex: 1 1 260px; }

/* Fiche produit */
.product { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 24px; padding-bottom: 56px; }
.product-media { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .product-media { position: sticky; top: 16px; } }
.product-main { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.gallery-main { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--accent-ink); }
.plate { --plate-bg: #F4F4F0; --plate-fg: #121212; position: absolute; top: 18px; right: 18px; min-width: 130px; padding: 8px 16px 10px; border-radius: 12px; background: var(--plate-bg); color: var(--plate-fg); display: flex; flex-direction: column; align-items: center; transform: rotate(-5deg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.plate[hidden] { display: none; }
.plate-num { font-family: var(--plate); font-style: italic; font-weight: 800; font-size: 76px; line-height: 0.9; }
.plate-name { font-family: var(--plate); font-weight: 700; font-size: 17px; letter-spacing: 0.12em; }
.product-head { display: flex; flex-direction: column; gap: 12px; }
.badge { align-self: flex-start; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price-big { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }

/* Configurateur */
.configurator { display: flex; flex-direction: column; gap: 28px; }
.block { border: 0; margin: 0; padding: 0; min-width: 0; }
.block-title { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.25; }
.block-n { color: var(--accent-ink); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
/* Configurateur en sections repliables, un champ par ligne (lot 6k) */
.config-sections { display: flex; flex-direction: column; gap: 6px; }
.config-section { border-bottom: 1px solid var(--line); }
.config-section-head { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius) var(--radius) 0 0; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.3; }
.config-section-head::-webkit-details-marker { display: none; }
.config-section-head::marker { content: ''; }
.config-section-head:hover { color: var(--accent-ink); }
.config-section-head:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.config-section-icon { position: relative; flex: none; width: 14px; height: 14px; color: var(--accent-ink); }
.config-section-icon::before, .config-section-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 1px; transition: transform 0.2s ease; }
.config-section-icon::after { transform: rotate(90deg); }
.config-section[open] .config-section-icon::after { transform: rotate(0deg); }
.config-section[hidden] { display: none; }
.fields--lignes { grid-template-columns: 1fr; padding: 18px 4px 24px; }
@media (prefers-reduced-motion: reduce) { .config-section-icon::after { transition: none; } }
.label { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; }
.req { color: var(--accent-ink); }
.help { font-size: 13px; color: var(--faint); }
.input { width: 100%; min-height: 48px; padding: 0 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; font-size: 16px; }
textarea.input { padding: 12px; min-height: 110px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { border-color: var(--accent-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.input:user-invalid { border-color: #E05A4F; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.choice > legend { margin-bottom: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-seg .opt-box { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--line-2); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choice-cards .opt-box { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 64px; height: 100%; padding: 10px 12px; border: 2px solid var(--line-2); border-radius: 8px; }
.choice-cards .opt-box img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.opt-label { font-weight: 700; font-size: 15px; }
.choice-seg .opt-label { font-size: 14px; font-weight: 600; }
.opt-price { font-size: 12px; color: var(--muted); font-weight: 500; }
.opt input:checked + .opt-box { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.opt input:checked + .opt-box .opt-price { color: var(--accent-ink); }
.opt input:focus-visible + .opt-box { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.opt:hover .opt-box { border-color: var(--line-3); }
.choice-checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }
.check-label { flex: 1 1 auto; font-size: 15px; }
.check:has(input:checked) { border-color: var(--accent-ink); }
.check-img { width: 72px; height: 54px; object-fit: contain; border-radius: 4px; flex: 0 0 auto; }
.check:has(.check-img) { padding-block: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--swatch, transparent); border: 3px solid var(--line-2); box-shadow: inset 0 0 0 2px var(--bg); color: var(--muted); font-weight: 700; }
.swatch--free .swatch-dot { background: var(--surface); border-style: dashed; }
.swatch input:checked + .swatch-dot { border-color: var(--accent-ink); }
.swatch input:focus-visible + .swatch-dot { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.swatch input:disabled + .swatch-dot { opacity: 0.35; cursor: not-allowed; }
.swatch-chosen { color: var(--text); font-weight: 600; }
.colorpick { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.colorpick[hidden] { display: none; }
.colorpick-native:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.colorpick-native { flex: none; width: 48px; height: 48px; padding: 0; border: 3px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; -webkit-appearance: none; appearance: none; }
.colorpick-native::-webkit-color-swatch-wrapper { padding: 0; }
.colorpick-native::-webkit-color-swatch { border: 0; border-radius: 50%; }
.colorpick-native::-moz-color-swatch { border: 0; border-radius: 50%; }
.colorpick.is-empty .colorpick-native { border-style: dashed; opacity: 0.55; }
.colorpick-hex { flex: 1 1 120px; min-width: 0; max-width: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.colorpick-hex::placeholder { text-transform: none; font-family: inherit; }
.colorpick.is-invalid .colorpick-hex { border-color: #D62828; }
.colorpick-clear { min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.colorpicks { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.colorpick-add { min-height: 40px; font-size: 14px; }
.config-swatch { display: inline-block; width: 0.95em; height: 0.95em; margin-right: 4px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--swatch); vertical-align: -0.12em; }
[hidden] { display: none !important; }
.drop { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: 2px dashed var(--line-3); border-radius: 8px; cursor: pointer; }
.drop:hover { border-color: var(--accent-ink); }
.drop > span { display: flex; flex-direction: column; }
.drop-files { font-size: 13px; overflow-wrap: anywhere; }
.field:focus-within .drop { border-color: var(--accent-ink); }
.recap { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.recap-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.recap-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.promo { margin: 14px 0 4px; }
.promo-ligne { display: flex; gap: 8px; }
.promo-ligne .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.promo-actif { margin: 0; }
.promo-retirer { margin-left: 6px; padding: 0; background: none; border: 0; color: var(--text-2); font: inherit; text-decoration: underline; cursor: pointer; }
.promo-message { margin: 6px 0 0; color: var(--accent-ink); }
.promo-message--erreur { color: #E5655A; }
.recap-remise { color: var(--accent-ink); }
.recap-row span:last-child { white-space: nowrap; }
.recap-sep { height: 1px; background: var(--line); margin: 4px 0; }
.recap-total { align-items: baseline; font-weight: 700; }
.recap-vat { font-size: 13px; text-align: right; min-height: 1em; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

/* Bannières (accueil, pages) */
.promo { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; aspect-ratio: 3 / 1; min-height: 320px; padding: 52px 24px; border-radius: 14px; color: #FFFFFF; background-color: #0B0C0A; background-image: radial-gradient(ellipse 70% 90% at 50% 120%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); background-size: cover; background-position: center; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 75% at 50% 18%, rgba(8, 9, 7, 0.72), transparent 72%); }
.promo-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #C8CDBF; margin-bottom: 14px; }
.promo-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.1; max-width: 20ch; margin-bottom: 24px; color: #FFFFFF; }
.promo .btn-accent { color: #10120D; }
.pose-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 34px 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; overflow: hidden; }
.pose-banner-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.8vw, 36px); line-height: 1.1; }
.pose-banner-title em { font-style: inherit; color: var(--accent-ink); }
.pose-banner-sub { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--muted); }
.btn-pill { position: relative; z-index: 1; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--text); color: var(--text); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.btn-pill:hover { background: var(--text); color: var(--bg); }

/* Pages Notre entreprise et Guide de pose */
.page-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.page-hero-text { display: flex; flex-direction: column; gap: 20px; }
.page-hero .display { font-size: clamp(28px, 3.6vw, 46px); }
.media-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-pair .media-frame:last-child { margin-top: 40px; }
.rating { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; }
.rating-stars { color: #F5B82E; letter-spacing: 2px; font-size: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 48px; }
.two-col p { color: var(--text-2); }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.features li { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.features h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 15px; line-height: 1.3; }
.features p { color: var(--muted); font-size: 15px; }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.split-media { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.split-media .media-frame { max-width: 460px; }
.split-media-text { display: flex; flex-direction: column; gap: 16px; }
.split-media-text p { color: var(--text-2); }
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quick li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.quick strong { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 13px; line-height: 1.3; }
.quick span { color: var(--muted); font-size: 14px; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.center-head p { color: var(--muted); }
.guide-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: flex; flex-direction: column; gap: 18px; }
.guide-step { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.guide-step .step-n { font-size: 44px; }
.guide-step h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(17px, 1.9vw, 22px); line-height: 1.25; margin: 6px 0 14px; }
.guide-step-body { display: flex; flex-direction: column; gap: 12px; color: var(--text-2); }
.checklist { list-style: none; margin: 4px 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
.callout { padding: 14px 18px; border-left: 4px solid #E0A23A; border-radius: var(--radius); background: color-mix(in srgb, #E0A23A 12%, transparent); color: var(--text); }
.callout strong { color: inherit; }

/* Espace PRO, sponsoring : bannière de page, formulaire */
.promo--page { aspect-ratio: auto; min-height: 420px; justify-content: center; padding: 56px 24px; }
.promo-lead { max-width: 560px; margin: -8px auto 24px; color: #E6E9E0; font-size: 17px; }
.promo-lead strong { color: var(--accent); }
.eyebrow--spaced { margin-top: 22px; }
.checklist--plain { background: transparent; border: 0; padding: 0; gap: 12px; }
.split-media--text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.steps--stack { grid-template-columns: 1fr; margin-top: 0; }
.steps-note { margin-top: 18px; }
.demande { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.checks-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.check--consent { min-height: 0; padding: 14px; align-items: flex-start; }
.check--consent input { margin-top: 2px; }
.field-error { font-size: 13px; font-weight: 600; color: #E5655A; }
:root[data-theme="light"] .field-error { color: #B42318; }
.input[aria-invalid="true"] { border-color: #E5655A; }
.notice { padding: 14px 18px; border-radius: var(--radius); border: 1px solid; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice--ok { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.notice--error { border-color: #E5655A; background: color-mix(in srgb, #E5655A 12%, transparent); }
.demande-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-pro[aria-current="page"] { background: var(--accent); }

/* Réalisations */
.chips button.chip { background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.chips button.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery-item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(8, 9, 7, 0.85), transparent); color: #FFFFFF; font-size: 14px; font-weight: 600; text-align: left; }
.gallery-brand { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #10120D; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: #0B0C0A; color: #FFFFFF; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(1200px, 94vw); max-height: calc(92vh - 50px); width: auto; margin: 0 auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lightbox figcaption { padding: 12px 16px; font-weight: 600; }
.lightbox-btn { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(15, 16, 13, 0.75); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close { top: 10px; right: 10px; font-size: 18px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px; border: 1px dashed var(--line-3); border-radius: var(--radius-lg); }

/* Images détourées (PNG / WebP sans fond) : aucun fond hachuré derrière une image réelle.
   Le hachuré ne reste que sur les cadres vides (produit ou visuel sans photo). */
.hero-media:has(img), .card-media:has(img), .gallery-main:has(img), .mega-product-img:has(img), .media-frame:has(img), .gallery-item:has(img) { background: transparent; }
/* Visuels produit entiers (roues comprises) : l'image est ajustée au cadre, sans être rognée. */
.card-media { aspect-ratio: 3 / 2; }
.card-media img, .mega-product-img img { object-fit: contain; }
.mega-product-img { aspect-ratio: 3 / 2; }

/* Contact, FAQ, matières, pages légales (lot 3b) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.contact-grid .demande { max-width: none; margin: 0; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.contact-list, .contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.contact-links a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.section-intro { max-width: 760px; margin-bottom: 24px; }
.faq { display: flex; flex-direction: column; gap: 36px; max-width: 920px; }
.faq-group { scroll-margin-top: 20px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent-ink); }
.faq-item[open] > summary::after { content: "−"; }
.faq-item[open] > summary { color: var(--accent-ink); }
.faq-answer { padding: 0 0 18px; }
.faq-cta { margin-top: 8px; }
.matieres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.matieres--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.matiere { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.matiere h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.25; }
.matiere p { color: var(--muted); font-size: 15px; }
.matiere-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.matiere-img--tall { aspect-ratio: 3 / 4; max-height: 320px; }
.matiere-img img { width: 100%; height: 100%; object-fit: contain; }
.matiere-img:not(:has(img)) { background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); }
.field-more { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.chip[aria-current="page"] { border-color: var(--accent-ink); color: var(--accent-ink); }
.legal { max-width: 860px; }
.legal h2 { font-size: 20px; margin-top: 1.8em; scroll-margin-top: 20px; }
.legal li { margin-bottom: 6px; }
.legal-toc { margin-bottom: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc a { color: var(--text-2); }
.legal-form { padding: 18px 22px; border: 1px dashed var(--line-3); border-radius: var(--radius-lg); }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; font-size: 15px; }
.legal th { text-align: left; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }

/* Panier, commande, reçu (lot 4a) */
.section-tight > .notice + .cart-grid, .section-tight > .notice + .checkout, .section-tight > .notice + .notice, .section-tight > .notice + .empty-state { margin-top: 20px; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-grid, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-recap, .checkout-recap { position: sticky; top: 16px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cart-line--problem { border-color: #E5655A; }
.cart-thumb { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb:not(:has(img)) { background: repeating-linear-gradient(135deg, var(--stripe-1) 0 14px, var(--stripe-2) 14px 28px); }
.cart-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cart-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.cart-name { font-weight: 600; }
.cart-price { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.cart-config summary { cursor: pointer; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.cart-config dl { margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.cart-config dl div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 10px; }
.cart-config dt { color: var(--muted); }
.cart-config dd { margin: 0; overflow-wrap: anywhere; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty .input { width: 80px; min-height: 40px; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--text-strong); }
.checkout-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.checkout-block { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.checkout-block .block-title { margin-bottom: 18px; }
.ship-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ship-mode { position: relative; cursor: pointer; }
.ship-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ship-box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 2px solid var(--line-2); border-radius: 8px; }
.ship-mode input:checked + .ship-box { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ship-mode input:focus-visible + .ship-box { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.ship-name { font-weight: 700; }
.ship-detail { font-size: 13px; color: var(--muted); }
.ship-price { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent-ink); }
.ship-relais, .ship-domicile, .ship-atelier { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ship-relais[hidden], .ship-domicile[hidden], .ship-atelier[hidden], [data-autre-champs][hidden] { display: none; }
.mr-widget { min-height: 120px; border-radius: var(--radius); overflow: hidden; background: #FFFFFF; color: #14160F; color-scheme: light; }
/* Le widget Mondial Relay n'impose pas la couleur du texte de ses champs : en thème foncé, le texte
   saisi serait blanc sur fond blanc (invisible). On force des champs clairs, lisibles. */
.mr-widget input, .mr-widget select { color: #14160F; -webkit-text-fill-color: #14160F; caret-color: #14160F; background-color: #FFFFFF; font-size: 16px; }
.mr-widget input::placeholder { color: #6B7060; -webkit-text-fill-color: #6B7060; }
.ship-chosen { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.merci-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.recu-page { background: #FFFFFF; color: #14160F; }
.recu { max-width: 820px; margin: 0 auto; padding: 36px 24px 48px; font-size: 15px; }
.recu-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid #14160F; }
.recu-head img { width: 200px; height: auto; }
.recu-vendeur { text-align: right; font-size: 14px; }
.recu-title { margin-top: 28px; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.recu-meta { color: #555B4B; margin-top: 6px; }
.recu-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.recu-parties h2 { font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #555B4B; margin-bottom: 6px; }
.recu-table { width: 100%; border-collapse: collapse; }
.recu-table th, .recu-table td { padding: 10px 8px; border-bottom: 1px solid #DCDFD4; text-align: left; vertical-align: top; }
.recu-table td:nth-child(2), .recu-table td:last-child, .recu-table thead th:nth-child(2), .recu-table thead th:last-child { text-align: right; white-space: nowrap; }
.recu-table tfoot th { text-align: right; font-weight: 600; }
.recu-table tfoot td { text-align: right; }
.recu-total th, .recu-total td { font-weight: 700; font-size: 17px; border-bottom: 2px solid #14160F; }
.recu-config { display: block; margin-top: 4px; font-size: 13px; color: #555B4B; }
.recu-note { margin-top: 18px; color: #555B4B; }
.recu-actions { margin-top: 24px; }
@media print { .recu-actions { display: none; } .recu { padding: 0; } }
@media (max-width: 1000px) {
  .cart-grid, .checkout, .merci-grid { grid-template-columns: 1fr; }
  .cart-recap, .checkout-recap { position: static; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 80px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .checkout-block { padding: 18px 14px; }
  .recu-parties { grid-template-columns: 1fr; }
  .recu-vendeur { text-align: left; }
}

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col .muted { font-size: 14px; }
.footer-title { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-links a { display: inline-block; padding: 4px 0; color: var(--text-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-bottom a { color: var(--faint); }

/* Pages d'erreur */
.error-page { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .band { padding: 44px 0; }
  .hero { padding-top: 36px; gap: 32px; }
  .hero-media { min-height: 260px; flex-basis: 100%; }
  .hero-text { flex-basis: 100%; }
  .product-media, .product-main { flex-basis: 100%; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .grid-cards--3 { grid-template-columns: 1fr; }
  .card-body { padding: 12px; }
  .card-price { font-size: 15px; }
  .card-cta { display: none; }
  .topbar-row { justify-content: center; }
  .topbar-nav { display: none; }
  /* Lot 6m : les deux messages du bandeau défilent à tour de rôle sur mobile. */
  .topbar-info { display: grid; justify-items: center; }
  .topbar-info span { grid-area: 1 / 1; animation: topbar-alterne 8s ease-in-out infinite; }
  .topbar-info span:nth-child(2) { animation-delay: -4s; }
  .logo img { height: 26px; }
  .logo { margin-right: 0; }
  .header-row { gap: 12px 6px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero .display, .page-hero .display { font-size: clamp(24px, 7.2vw, 32px); }
  .promo { aspect-ratio: auto; min-height: 380px; padding: 40px 18px; justify-content: flex-start; background-size: auto 62%; background-position: center bottom; background-repeat: no-repeat; }
  .promo::before { background: linear-gradient(to bottom, #0B0C0A 0, #0B0C0A 38%, rgba(11, 12, 10, 0) 58%); }
  .pose-banner { padding: 26px 22px; }
  .guide-step { grid-template-columns: 1fr; padding: 22px 18px; }
  .guide-step .step-n { font-size: 34px; }
  .split-media, .split-media--text { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .demande { padding: 20px 16px; }
  .promo--page { min-height: 440px; padding: 40px 18px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .media-pair .media-frame:last-child { margin-top: 24px; }
}

@media (max-width: 420px) {
  .logo img { height: 23px; }
  .icon-btn { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Comptes clients, tarifs PRO, autoliquidation (lot 4b) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price-old { color: var(--faint); font-weight: 400; text-decoration-thickness: 1px; }
.badge--pro { border-color: var(--accent-ink); color: var(--accent-ink); }
.card-price--pro small { color: var(--muted); }
.product-price--pro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.product-price--pro .badge { flex-basis: 100%; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 380px); gap: 28px; align-items: start; }
.auth-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.auth-card--soft { background: transparent; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.account-nav a { color: var(--text-2); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.account-nav a[aria-current="page"] { color: var(--text-strong); border-bottom-color: var(--accent-ink); }
.account-nav form { margin-left: auto; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.account-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders-table th, .orders-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.orders-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table a { color: var(--text-strong); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); }
.status--payee, .status--maquette, .status--bat_envoye, .status--bat_valide, .status--production { border-color: var(--accent-ink); color: var(--accent-ink); }
.status--expediee, .status--terminee { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent-ink); color: var(--text-strong); }
.status--annulee, .status--remboursee, .status--echouee { border-color: #E5655A; color: #E5655A; }
.order-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-line { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.order-line-head { display: flex; justify-content: space-between; gap: 14px; font-weight: 600; }
.order-config { margin: 10px 0 0; display: grid; gap: 4px; font-size: 14px; }
.order-config div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 10px; }
.order-config dt { color: var(--muted); }
.order-config dd { margin: 0; overflow-wrap: anywhere; }
.order-tracking { margin: 0; padding-left: 18px; }
.account-invite { margin-top: 6px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); display: flex; flex-direction: column; gap: 10px; }
.checkout-account { margin: -6px 0 16px; }
.tva-statut { color: var(--text-2); font-weight: 600; }
@media (max-width: 1000px) {
  .auth-grid, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-nav form { margin-left: 0; }
  .orders-table th:nth-child(2), .orders-table td:nth-child(2) { display: none; }
}
.account-dot { position: absolute; bottom: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* Suivi de commande et BAT (lot 5) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: etape; }
.timeline-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.timeline-step::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.timeline-step:first-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-3); background: var(--bg); }
.timeline-step--fait { color: var(--text-2); }
.timeline-step--fait::before, .timeline-step--en_cours::before { background: var(--accent-ink); }
.timeline-step--fait .timeline-dot { background: var(--accent); border-color: var(--accent-ink); }
.timeline-step--en_cours { color: var(--text-strong); font-weight: 700; }
.timeline-step--en_cours .timeline-dot { border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.timeline-detail { font-weight: 400; color: var(--muted); }
.bat { display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.bat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.bat-head .h-section { margin: 0; }
.bat-message { margin: 0; font-style: italic; color: var(--text-2); }
.bat-files { display: grid; gap: 12px; }
.bat-image { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; overflow: hidden; }
.bat-image img { display: block; width: 100%; height: auto; }
.bat-file { display: inline-flex; padding: 12px 14px; border: 1px dashed var(--line-3); border-radius: var(--radius); font-weight: 600; }
.bat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.bat-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.bat-card--ok { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.bat-history ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.status--bat-en_attente { border-color: #E0A43A; color: #E0A43A; }
.status--bat-valide { border-color: var(--accent-ink); color: var(--accent-ink); }
.status--bat_envoye { border-color: #E0A43A; color: #E0A43A; }
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; gap: 10px; }
  .timeline-step { flex-direction: row; text-align: left; align-items: center; }
  .timeline-step::before { display: none; }
  .timeline-detail { display: block; }
  .bat-actions { grid-template-columns: 1fr; }
}

/* Gestion de l'atelier (lot 5) */
.g-body { background: var(--bg); }
.g-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 24px; background: #0F100D; color: #F2F4EE; }
.g-brand { font-family: var(--display); font-weight: 700; color: #FFFFFF; text-decoration: none; letter-spacing: 0.04em; }
.g-brand span { color: #8DCB45; }
.g-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.g-nav a { color: #D3D7CB; text-decoration: none; font-weight: 600; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.g-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: #8DCB45; }
.g-logout { margin-left: auto; }
.g-logout .link-button { color: #B9BEB0; }
.g-main { max-width: 1320px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.g-title { font-family: var(--display); font-size: 24px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.g-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-search .input { min-width: 260px; }
.g-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.g-tabs a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; }
.g-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.g-count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; text-align: center; }
.g-table td { white-space: normal; vertical-align: top; }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.g-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.g-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.g-card-title { font-family: var(--display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.g-item { padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.g-remark { padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, #E0A43A 14%, transparent); }
.g-label { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.g-proof { padding: 12px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; }
.g-proof--en_attente { border-left-color: #E0A43A; }
.g-proof--valide { border-left-color: var(--accent-ink); }
.g-proof--retouches { border-left-color: #E5655A; }
.g-quote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line-3); background: var(--bg-2); white-space: pre-line; }
.g-form { display: flex; flex-direction: column; gap: 10px; }
.g-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.g-inline .field { min-width: 180px; }
.g-form--inline { flex-direction: row; align-items: flex-end; }
.g-form--inline textarea { flex: 1; }
.g-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; }
.g-notes li { padding-bottom: 8px; border-bottom: 1px solid var(--line); white-space: pre-line; }
.g-login { max-width: 420px; margin: 8vh auto; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1000px) { .g-grid { grid-template-columns: 1fr; } }

/* Gestion (lot 6a) */
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.g-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--text); }
a.g-stat:hover { border-color: var(--accent-ink); }
.g-stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.g-stat-value { font-family: var(--display); font-size: 28px; font-weight: 700; }
.g-stat-sub { font-size: 13px; color: var(--muted); }
.g-thumb img { width: 56px; height: 42px; object-fit: contain; background: #FFFFFF; border-radius: 4px; }
.g-cats { display: flex; flex-direction: column; gap: 4px; max-height: 460px; overflow: auto; }
.g-cat { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.g-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.g-photo { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.g-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #FFFFFF; border-radius: 4px; }
/* Catégories des réalisations (lot 6i) */
.g-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; border: 0; padding: 0; margin: 0; }
.g-checks legend { width: 100%; margin-bottom: 4px; padding: 0; }
.g-checks label { display: inline-flex; align-items: center; gap: 4px; }
.g-tabs--espace { margin: 18px 0 14px; }
.g-photo--hidden { opacity: 0.5; }
.g-small { width: 90px; min-width: 0; }
.g-grow { flex: 1 1 260px; }
.g-nowrap { flex-wrap: nowrap; align-items: center; }
.g-field { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.g-field:first-of-type { border-top: 0; }
.g-options td { vertical-align: middle; }
.g-add td { background: var(--bg-2); }
.g-sticky { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 -4px 18px var(--shadow); }
.g-danger { border-color: #E5655A; }
.g-pre { white-space: pre-line; }
.g-links { display: flex; flex-wrap: wrap; gap: 10px; }
.g-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.g-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.g-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.g-condition { margin: 0; padding: 6px 10px; border-left: 3px solid var(--accent-ink); background: var(--bg-2); }
.g-regle { margin-top: 8px; }
.g-regle .input { width: auto; max-width: 100%; }
.g-miniature { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 220px; }
.g-miniature img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: #FFFFFF; }
.g-space { margin-top: 32px; }
.status--promo-actif { border-color: var(--accent-ink); color: var(--accent-ink); }
.status--promo-epuise, .status--promo-expire, .status--promo-desactive { opacity: 0.7; }
.status--promo-programme { border-color: #E0A43A; color: #E0A43A; }
.promo-code-saisie { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
[data-pour][hidden], .g-regle [hidden] { display: none; }
.status--demande-new { border-color: #E0A43A; color: #E0A43A; }
.status--demande-accepted { border-color: var(--accent-ink); color: var(--accent-ink); }

/* Lot 6d : lignes de tableau cliquables, commande manuelle, suppression. */
.g-ligne-lien { cursor: pointer; }
.g-ligne-lien:hover td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.g-table a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.g-table a:hover { text-decoration-color: currentColor; }
.g-between { justify-content: space-between; align-items: center; }
.g-error { color: #E5655A; font-weight: 600; }
.g-input-prix { width: 120px; min-width: 0; }
.g-input-qte { width: 90px; min-width: 0; }
.g-choix { display: flex; flex-direction: column; gap: 6px; }
.g-sous { padding: 12px 0 4px 16px; border-left: 3px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.g-sous[hidden] { display: none; }
.g-configurateur { max-width: 900px; }
.g-danger-zone { border-color: #E5655A; }
.g-danger-zone .g-card-title { color: #E5655A; }
.btn-danger { background: #E5655A; color: #FFFFFF; }
.g-lignes { min-width: 780px; }
.orders-table.g-lignes th, .orders-table.g-lignes td { display: table-cell; }
.g-lignes .order-config { max-width: 420px; }
.g-defaut { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Lot 6e : éditeur du menu, analyse SEO. */
.g-menu { display: flex; flex-direction: column; gap: 18px; }
.g-menu-colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.g-menu-colonne { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--bg-2); }
.g-menu-ajout { align-items: center; justify-content: center; min-height: 120px; }
.g-menu-groupe { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.g-menu-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.g-menu-actions { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.g-menu-sous { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.g-menu-label { margin: 4px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.g-menu-lien { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.g-menu-lien .input { min-height: 40px; font-size: 14px; }
.g-menu-cible { display: block; }
.g-menu-ligne { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.g-menu-ligne > .input { flex: 1 1 auto; min-height: 40px; }
.g-mini { min-width: 32px; min-height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.g-mini:hover:not(:disabled) { border-color: var(--accent-ink); }
.g-mini:disabled { opacity: 0.35; cursor: default; }
.g-seo { display: flex; flex-direction: column; gap: 10px; }
.g-seo-note { display: inline-block; min-width: 72px; padding: 4px 10px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); color: var(--muted); }
.g-seo-note--bon { background: #2F8F3A; border-color: #2F8F3A; color: #FFFFFF; }
.g-seo-note--moyen { background: #E0A43A; border-color: #E0A43A; color: #1A1A1A; }
.g-seo-note--faible { background: #E5655A; border-color: #E5655A; color: #FFFFFF; }
.g-seo-apercu { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; font-family: Arial, sans-serif; }
.g-seo-url { color: #202124; font-size: 13px; overflow-wrap: anywhere; }
.g-seo-titre { color: #1A0DAB; font-size: 19px; line-height: 1.3; }
.g-seo-desc { color: #4D5156; font-size: 14px; line-height: 1.5; }
.g-seo-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.g-seo-liste li::before { display: inline-block; width: 22px; font-weight: 700; }
.g-seo-ok::before { content: "✓"; color: #2F8F3A; }
.g-seo-ko::before { content: "✗"; color: #E5655A; }
.g-ok { color: #2F8F3A; }
.g-attention { color: #C77D12; }

/* Lot 6f : pages « activité » et texte de référencement de l'accueil. */
.activite-texte { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 56px; }
.activite-bloc { display: flex; flex-direction: column; gap: 10px; }
.activite-bloc .prose p { color: var(--text-2); }
.seo-texte .two-col a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.page-head .lead { max-width: 760px; margin-top: 6px; }
.g-motscles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.g-motscles:focus-within { border-color: var(--accent-ink); }
.g-motcle { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--bg-2); font-size: 14px; }
.g-motcle--principal { background: color-mix(in srgb, var(--accent) 25%, transparent); font-weight: 700; }
.g-motcle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0 4px; }
.g-motcle button:hover { color: var(--text); }
.g-motscles-saisie { flex: 1 1 160px; min-width: 120px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; padding: 6px 4px; }
.g-seo-partiel::before { content: "~"; color: #C77D12; }
.g-seo-secondaires { padding-top: 6px; border-top: 1px dashed var(--line); }

/* Cloudflare Turnstile (lot 6i) */
.turnstile { margin: 10px 0 14px; min-height: 65px; }
.turnstile .field-error { display: block; margin-top: 6px; }

/* Lot 6m : photo de la licence AMPL dans la gestion ; bannière AMPL du site. */
.g-licence { display: block; max-width: 100%; max-height: 420px; border-radius: 8px; border: 1px solid var(--line-2); margin: 8px 0; }
.banniere-image { display: block; border-radius: var(--radius-lg); overflow: hidden; line-height: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform .2s ease; }
.banniere-image img { display: block; width: 100%; height: auto; }
.banniere-image:hover, .banniere-image:focus-visible { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .banniere-image { transition: none; } .banniere-image:hover { transform: none; } }
.demande input[type="file"].input { padding: 10px 12px; height: auto; }

/* Lot 8b : paiement d'une commande manuelle (payée, lien de paiement, reste à payer). */
.g-paiement { display: grid; gap: 12px; margin-bottom: 14px; }
.g-paiement:not(:has(input[name="paiement"][value="payee"]:checked)) .g-si-payee,
.g-paiement:not(:has(input[name="paiement"][value="lien"]:checked)) .g-si-lien,
.g-paiement:not(:has(input[name="paiement"][value="reste"]:checked)) .g-si-reste,
.g-paiement:not(:has(input[name="paiement"][value="acompte"]:checked)) .g-si-acompte,
.g-si-acompte:not(:has(input[name="acompte_mode"][value="recu"]:checked)) .g-si-acompte-recu { display: none; }
.g-si-acompte { display: grid; gap: 12px; }
.badge--a-payer { border-color: #d98e04; color: #d98e04; }
.g-lien-paiement { display: flex; gap: 8px; }
.g-lien-paiement .input { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.payer-grid .recap { max-width: 560px; }
.payer-grid form { margin-top: 16px; }

/* Lot 8g : éditeur en ligne Print.app (fiche produit, panier, gestion). */
.printapp { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.printapp-titre { font-size: 17px; font-weight: 800; margin: 0; }
.printapp p { margin: 0; }
.printapp .btn svg { margin-right: 6px; vertical-align: -3px; }
.printapp-apercus { display: flex; flex-wrap: wrap; gap: 8px; }
.printapp-apercus:empty { display: none; }
.printapp-apercus img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
