/* ==========================================================================
   Le Grenier de Marcel – feuille de style principale
   Esprit "magasin de jouets d'antan" : couleurs franches, formes arrondies,
   mais lisibilité et sobriété sur les fiches produits (public collectionneur).
   ========================================================================== */

:root {
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #2b2340;
  --ink-soft: #5b5370;
  --line: #eadfca;
  --red: #e8452c;
  --red-dark: #c4321c;
  --yellow: #f7b32b;
  --yellow-soft: #fde7b0;
  --teal: #168a82;
  --teal-soft: #d4f0ec;
  --blue: #3a6ea5;
  --blue-soft: #dce8f5;
  --pink: #f28fad;
  --pink-soft: #fde1ea;
  --green: #2e8b57;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 0 rgba(43, 35, 64, .08), 0 10px 30px -12px rgba(43, 35, 64, .25);
  --font-title: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(rgba(232, 69, 44, .06) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.sr-only { 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-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem;
  padding: .8em 1.5em; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--yellow); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .2s;
  min-height: 48px;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { color: #fff; background: var(--red-dark); }
.btn-ghost { background: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: #ddd; color: #777; box-shadow: none; border-color: #aaa; cursor: not-allowed; transform: none; }

/* ---------- Bandeau / en-tête ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 7px 16px; }
.topbar p { margin: 0; }
.site-header { background: var(--paper); border-bottom: 4px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: .95; font-family: var(--font-title); }
.logo-small { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.logo-big { font-size: 1.45rem; font-weight: 700; color: var(--red); }
.search { flex: 1; display: none; position: relative; max-width: 460px; margin-left: auto; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 48px 10px 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); }
.search input:focus { border-color: var(--blue); outline: none; background: #fff; }
.search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 10px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; border: 2px solid var(--ink); min-height: 44px; }
.cart-btn:hover { color: var(--ink); background: var(--yellow-soft); }
.cart-label { display: none; }
.cart-count { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--red); color: #fff; font-size: .8rem; display: grid; place-items: center; border: 2px solid #fff; }
.menu-toggle { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.main-nav { display: none; border-top: 2px dashed var(--line); }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding-top: 6px; padding-bottom: 10px; }
.main-nav a { display: block; padding: 12px 4px; font-family: var(--font-title); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .search-mobile { padding: 10px 0; }

@media (min-width: 900px) {
  .search { display: block; }
  .cart-btn { margin-left: 0; }
  .cart-label { display: inline; }
  .menu-toggle { display: none; }
  .main-nav { display: block !important; border-top: 0; background: var(--paper); }
  .main-nav ul { display: flex; gap: 6px; padding-top: 0; padding-bottom: 8px; }
  .main-nav a { border: 0; padding: 6px 14px; border-radius: 999px; font-size: 1rem; }
  .main-nav a:hover { background: var(--yellow-soft); color: var(--ink); }
  .main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
}

/* ---------- Mobile : recherche dans le menu ---------- */
.mobile-search { display: block; padding: 12px 0 4px; }
.mobile-search .search { display: block; max-width: none; margin: 0; }
@media (min-width: 900px) { .mobile-search { display: none; } }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: .9rem; margin: 18px 0 8px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Héro ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; background: var(--yellow); z-index: -1; border-radius: 4px; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; font-weight: 700; }
.hero-stats li { display: flex; align-items: center; gap: 8px; }
.hero-stats strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--teal); }
.hero-visual { position: relative; }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-2deg); }
.hero-mosaic img { border-radius: var(--radius); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.hero-mosaic img:nth-child(2) { transform: translateY(24px) rotate(3deg); }
.hero-mosaic img:nth-child(3) { transform: rotate(2deg); }
.hero-mosaic img:nth-child(4) { transform: translateY(24px) rotate(-3deg); }
.sticker { position: absolute; top: -10px; right: -6px; width: 110px; height: 110px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--font-title); font-weight: 700; line-height: 1.05; transform: rotate(12deg); border: 4px solid var(--ink); z-index: 2; font-size: .95rem; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 90px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--paper); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-soft); }
.eyebrow { display: inline-block; font-family: var(--font-title); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 6px; }

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); border: 3px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; min-height: 140px; }
.cat-tile:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.cat-tile:nth-child(6n+1) { background: var(--yellow-soft); }
.cat-tile:nth-child(6n+2) { background: var(--teal-soft); }
.cat-tile:nth-child(6n+3) { background: var(--pink-soft); }
.cat-tile:nth-child(6n+4) { background: var(--blue-soft); }
.cat-tile:nth-child(6n+5) { background: #ffe0d6; }
.cat-tile:nth-child(6n+6) { background: #e6f3d9; }
.cat-icon { font-size: 2rem; line-height: 1; }
.cat-tile h3 { margin: 0; font-size: 1.1rem; }
.cat-tile p { margin: 0; font-size: .88rem; color: var(--ink-soft); display: none; }
.cat-count { font-size: .85rem; font-weight: 700; margin-top: auto; }
@media (min-width: 700px) { .cat-tile p { display: block; } }

/* ---------- Cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border-radius: var(--radius); border: 2px solid var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; box-shadow: 3px 3px 0 var(--ink); }
.card:hover { transform: translateY(-3px); box-shadow: 5px 7px 0 var(--ink); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 1; background: var(--cream); border-bottom: 2px solid var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-meta { margin: 0; font-size: .78rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.card-title { font-family: var(--font-body); font-weight: 800; font-size: .98rem; margin: 0; line-height: 1.3; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.card-price { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; color: var(--red); white-space: nowrap; }
.card.is-unavailable .card-media img { filter: grayscale(.85) opacity(.7); }
.card.is-unavailable .card-price { color: var(--ink-soft); text-decoration: line-through; }
.ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #fff; border: 2px solid var(--ink); }
.ribbon-sold { background: var(--ink); }
.ribbon-reserved { background: var(--blue); }
@media (min-width: 700px) { .card-body { padding: 14px 16px 16px; } .card-title { font-size: 1.05rem; } }

/* ---------- Badges d'état ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.c-neuf { color: #0f7a4a; background: #dcf5e8; }
.c-tbe { color: #136f86; background: #d8f0f6; }
.c-be { color: #5a5a0e; background: #f4f1c7; }
.c-abime { color: #a34a00; background: #ffe6d1; }
.c-pieces { color: #9b1c1c; background: #fde0e0; }

/* ---------- Catalogue ---------- */
.catalog-layout { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .catalog-layout { grid-template-columns: 260px 1fr; align-items: start; } }
.filters { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; font-size: .95rem; }
.filters input[type="checkbox"], .filters input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); }
.filters select, .form select { width: 100%; }
.filters-toggle { display: flex; width: 100%; }
@media (min-width: 960px) { .filters-toggle { display: none; } .filters[hidden] { display: block !important; } .filters { position: sticky; top: 140px; } }
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.catalog-bar p { margin: 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; text-decoration: none; }
.chip:hover { color: #fff; background: var(--red); }
.empty { text-align: center; padding: 48px 16px; background: var(--paper); border-radius: var(--radius); border: 2px dashed var(--line); }

/* ---------- Formulaires ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid #cfc3ad; border-radius: var(--radius-sm); padding: 11px 14px; min-height: 48px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(58, 110, 165, .25); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.req { color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid; margin-bottom: 18px; }
.alert-ok { background: #dcf5e8; border-color: #0f7a4a; color: #0b5a37; }
.alert-err { background: #fde0e0; border-color: #9b1c1c; color: #7a1414; }
.alert-info { background: var(--blue-soft); border-color: var(--blue); color: #1f4470; }
.hp { position: absolute; left: -9999px; }

/* ---------- Fiche produit ---------- */
.product { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } }
.gallery-main { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--red); border-width: 3px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .product-gallery { position: sticky; top: 140px; } }
.product-info h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3em; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; }
.product-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; }
.product-price .amount { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--red); line-height: 1; }
.product-price small { color: var(--ink-soft); }
.buy-box { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: 4px 4px 0 var(--ink); }
.buy-box ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: .92rem; display: grid; gap: 6px; }
.buy-box li { display: flex; gap: 8px; }
.stock-note { font-weight: 800; color: var(--teal); margin-bottom: 10px; }
.condition-box { border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; border: 2px solid var(--line); background: #fff; }
.condition-box h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; color: var(--ink-soft); font-weight: 700; }
.defects { background: #fff5e8; border-left: 6px solid var(--yellow); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.defects h3 { margin-bottom: 4px; font-size: 1.05rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }
.question-box { background: var(--teal-soft); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.question-box h2 { font-size: 1.2rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 16, 32, .92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; background: #fff; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Panier / commande ---------- */
.cart-layout { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 10px; }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin: 0 0 2px; }
.cart-item p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.cart-item .price { font-family: var(--font-title); font-weight: 700; color: var(--red); font-size: 1.15rem; text-align: right; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.link-btn:hover { color: var(--red); }
.summary { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
@media (min-width: 900px) { .summary { position: sticky; top: 140px; } }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary .total { font-family: var(--font-title); font-size: 1.4rem; border-top: 2px dashed var(--line); padding-top: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--red); background: #fff6f3; }
.radio-card input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.radio-card strong { display: block; }
.radio-card span { font-size: .9rem; color: var(--ink-soft); }
.radio-group { display: grid; gap: 10px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .85rem; font-weight: 700; flex-wrap: wrap; }
.steps li { padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); }
.steps li[aria-current="step"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.3rem; }

/* ---------- Bloc collectionneurs / histoire ---------- */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.polaroid { background: #fff; padding: 12px 12px 44px; box-shadow: var(--shadow); transform: rotate(-2deg); border-radius: 4px; position: relative; max-width: 480px; margin: 0 auto; }
.polaroid figcaption { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--font-title); color: var(--ink-soft); }
.cond-table { display: grid; gap: 10px; }
.cond-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; border: 2px solid var(--line); }
@media (max-width: 520px) { .cond-row { grid-template-columns: 1fr; gap: 4px; } }
.cond-row p { margin: 0; font-size: .95rem; }

.testimonial { background: var(--yellow-soft); border-radius: var(--radius); padding: 22px; border: 3px solid var(--ink); position: relative; }
.testimonial p { font-size: 1.1rem; font-style: italic; }
.testimonial footer { font-weight: 800; }

.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-title); font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 14px; }

.notice-box { background: var(--blue-soft); border-radius: var(--radius); padding: 18px 20px; border-left: 6px solid var(--blue); }

/* ---------- Réassurance / pied de page ---------- */
.reassurance { background: var(--teal); color: #fff; padding: 36px 0; border-top: 4px solid var(--ink); }
.reassurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: center; }
@media (min-width: 900px) { .reassurance-grid { grid-template-columns: repeat(4, 1fr); } }
.reassurance h2 { font-size: 1.1rem; margin: 6px 0 4px; }
.reassurance p { font-size: .9rem; margin: 0; opacity: .92; }
.r-icon { font-size: 2rem; }
.site-footer { background: var(--ink); color: #e9e4f5; padding: 44px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer h2 { font-size: 1.05rem; color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.logo-footer .logo-small { color: #c9c2dc; }
.logo-footer .logo-big { color: var(--yellow); }
.footer-brand p { margin-top: 12px; color: #c9c2dc; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 30px; padding-top: 16px; font-size: .82rem; color: #b6aecb; }
.footer-bottom p { margin: 0 0 6px; }

/* ---------- Pages de contenu ---------- */
.page-head { padding: 12px 0 18px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.page-body { padding-bottom: 56px; }
.legal { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 2px solid var(--line); }
@media (min-width: 768px) { .legal { padding: 36px 44px; } }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.toc { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 24px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; z-index: 300; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); transition: transform .25s; max-width: calc(100% - 32px); }
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast a { color: var(--yellow); font-weight: 800; white-space: nowrap; }

/* Bouton mobile fixe sur fiche produit */
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: var(--paper); border-top: 3px solid var(--ink); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 40; }
.sticky-buy .amount { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.has-sticky-buy { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky-buy { display: none; } .has-sticky-buy { padding-bottom: 0; } }

@media print {
  .topbar, .site-header, .reassurance, .site-footer, .sticky-buy, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Compléments ---------- */
.hint { font-size: .88rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-style: italic; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 800; }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; }
table.spec.panel { display: table; width: 100%; }
.legal table.spec { font-size: .9rem; }
.legal .spec th { width: auto; color: var(--ink); }
@media (max-width: 640px) {
  .legal table.spec, .legal .spec thead, .legal .spec tbody, .legal .spec tr, .legal .spec td, .legal .spec th { display: block; width: 100%; }
  .legal .spec thead { display: none; }
  .legal .spec tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .legal .spec td { border: 0; padding: 4px 0; }
  table.spec.panel thead { display: none; }
  table.spec.panel tr { display: grid; grid-template-columns: 1fr auto; }
  table.spec.panel td:nth-child(2) { grid-column: 1 / -1; order: 3; padding-top: 0; font-size: .9rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
  table.spec.panel td { border-bottom: 0; }
}
.testimonial h3 { font-size: 1.3rem; }
.testimonial p:first-of-type { font-style: normal; }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.cart-item h3 a:hover { color: var(--red); }
.summary dt { font-weight: 600; }
.summary dt.total { font-weight: 600; }
[hidden] { display: none !important; }
@media (max-width: 699px) { .cat-grid > .cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; } }
@media (min-width: 900px) {
  .selection-layout > .summary { grid-column: 2; grid-row: 1 / span 2; }
  .selection-layout > form { grid-column: 1; }
}
