/* Bobina3D - styles du site, d'après la charte graphique V1.0 (branding/bobina3d/charte-v1). */

@font-face { font-family: "Nunito Sans"; src: url("/fonts/NunitoSans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/NunitoSans-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Couleurs de la charte */
  --bobina-violet: #6539c8;
  --bobina-lilac: #b69bf1;   /* décor uniquement : contraste insuffisant pour du texte sur blanc */
  --bobina-ink: #211a35;
  --bobina-white: #ffffff;
  --bobina-mist: #f6f3fc;
  --bobina-muted: #655f75;

  --violet-dark: #5229b0;    /* survol des boutons */
  --line: #e4ddf3;
  --danger: #b3261e;
  --ok: #1e7a4c;

  --font-heading: "Nunito Sans", Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-large: 16px;
  --shadow: 0 1px 2px rgba(33, 26, 53, 0.05), 0 6px 20px rgba(33, 26, 53, 0.05);
  --shadow-hover: 0 2px 4px rgba(33, 26, 53, 0.06), 0 12px 28px rgba(33, 26, 53, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/24px var(--font-body);
  color: var(--bobina-ink);
  background: var(--bobina-mist);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
main a:not(.btn):not(.card):hover { color: var(--bobina-violet); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; margin: 0; }
h1 { font-size: 32px; line-height: 40px; margin-bottom: 16px; }
h2 { font-size: 26px; line-height: 34px; margin: 32px 0 16px; }
h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
@media (min-width: 760px) {
  h1 { font-size: 48px; line-height: 56px; margin-bottom: 24px; }
  h2 { font-size: 32px; line-height: 40px; }
}
.lead { margin: -8px 0 24px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--bobina-muted); }
.muted { color: var(--bobina-muted); }
.error { color: var(--danger); }
.success { color: var(--ok); }
.hidden { display: none !important; }
small, .caption { font-size: 14px; line-height: 20px; }

:focus-visible { outline: 3px solid var(--bobina-ink); outline-offset: 3px; }

/* --- Logo (fichiers officiels, zone de protection H/4) ---------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.logo-img { display: block; width: 180px; height: auto; }
.logo-suffix { font: 600 14px/20px var(--font-body); color: var(--bobina-muted); }

/* --- Banderole (offre du moment) -------------------------------------------- */
.banner { color: #fff; background: linear-gradient(90deg, var(--bobina-ink) 0%, var(--bobina-violet) 50%, var(--bobina-ink) 100%); }
.banner-item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; min-height: 56px; padding: 8px 16px; text-align: center; text-decoration: none; }
.banner-item + .banner-item { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.banner-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; border: 2px solid var(--bobina-lilac); }
.banner-label { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--bobina-violet); font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.banner-name { font: 700 16px/24px var(--font-heading); }
.banner-price strong { font: 800 20px/28px var(--font-heading); }
.banner-price s { margin-left: 4px; font-size: 14px; opacity: 0.8; }
.banner-saving { padding: 4px 12px; border-radius: 999px; background: var(--bobina-lilac); color: var(--bobina-ink); font: 600 14px/20px var(--font-body); }
.banner-cta { padding: 6px 16px; border: 2px solid #fff; border-radius: var(--radius-button); font: 600 14px/20px var(--font-body); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.banner-item:hover .banner-cta { background: #fff; color: var(--bobina-violet); }
.banner-item:focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (max-width: 760px) {
  .banner-thumb, .banner-label { display: none; }
  .banner-item { gap: 4px 12px; padding: 8px 12px; }
  .banner-name { flex-basis: 100%; font-size: 14px; line-height: 20px; }
  .banner-saving { font-size: 12px; line-height: 16px; padding: 4px 8px; }
  .banner-cta { padding: 4px 12px; }
}

/* --- En-tête --------------------------------------------------------------- */
header.site { position: sticky; top: 0; z-index: 10; background: var(--bobina-white); border-bottom: 1px solid var(--line); }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
header.site nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-weight: 600;
  color: var(--bobina-muted);
}
header.site nav a:hover { background: var(--bobina-mist); color: var(--bobina-ink); }
header.site nav a.active { color: var(--bobina-violet); box-shadow: inset 0 -3px 0 var(--bobina-violet); border-radius: 0; }

.cart-link { white-space: nowrap; }
.cart-count {
  display: inline-block;
  min-width: 24px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--bobina-violet);
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

@media (max-width: 1040px) {
  header.site .container { flex-wrap: wrap; padding-top: 4px; }
  header.site nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -8px; }
  header.site nav a { white-space: nowrap; padding: 0 12px; }
}

/* --- Pied de page (fond encre, logo inversé) -------------------------------- */
footer.site { background: var(--bobina-ink); color: #d6d0e6; margin-top: 48px; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-top: 32px; padding-bottom: 24px; }
footer.site p { margin: 8px 0 0; max-width: 360px; font-size: 14px; line-height: 20px; }
footer.site nav { display: flex; flex-direction: column; }
.footer-shop { display: flex; flex-direction: column; gap: 4px; font-style: normal; font-size: 14px; line-height: 20px; }
.footer-shop a { color: #fff; text-decoration: underline; }
.footer-shop strong { color: #fff; font: 700 16px/24px var(--font-heading); }
footer.site nav a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
footer.site nav a:hover { color: #fff; text-decoration: underline; }
footer.site .copyright { flex-basis: 100%; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; font-size: 14px; line-height: 20px; }
footer.site :focus-visible { outline-color: #fff; }

main { padding: 32px 0 48px; min-height: 60vh; }

/* --- Boutons et champs ------------------------------------------------------ */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font: 600 16px/24px var(--font-body);
  border: 2px solid var(--bobina-violet);
  border-radius: var(--radius-button);
  background: var(--bobina-violet);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
button:hover:not(:disabled), .btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
button.secondary, .btn.secondary { background: #fff; color: var(--bobina-ink); border-color: var(--line); }
button.secondary:hover:not(:disabled), .btn.secondary:hover { background: var(--bobina-mist); border-color: var(--bobina-violet); color: var(--bobina-violet); }
button.link { min-height: 0; background: none; border: none; color: var(--danger); padding: 0; text-decoration: underline; font-weight: 400; }
button.link:hover:not(:disabled) { background: none; color: var(--danger); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

input, select, textarea {
  font: 400 16px/24px var(--font-body);
  color: inherit;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid #cfc6e4;
  border-radius: var(--radius-button);
  background: #fff;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--bobina-ink); outline-offset: 1px; border-color: var(--bobina-violet); }
input[type="number"] { width: 88px; }
input[type="color"] { padding: 2px; width: 48px; }
input[type="radio"], input[type="checkbox"] { min-height: 0; accent-color: var(--bobina-violet); }

/* --- Accueil ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(182, 155, 241, 0.35), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(101, 57, 200, 0.9), transparent 55%),
    var(--bobina-ink);
}
@media (min-width: 860px) { .hero { grid-template-columns: 3fr 2fr; padding: 64px; } }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(182, 155, 241, 0.18); font: 600 14px/20px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bobina-lilac); }
.hero h1 { margin: 16px 0; }
.hero h1 em { font-style: normal; color: var(--bobina-lilac); }
.hero p { margin: 0 0 24px; max-width: 520px; color: #e2dcf2; }
.hero .btn { background: #fff; border-color: #fff; color: var(--bobina-ink); }
.hero .btn:hover { background: var(--bobina-mist); border-color: var(--bobina-mist); color: var(--bobina-violet); }
.hero .btn.secondary { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .btn.secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero-art { display: none; justify-self: center; }
.hero-art img { display: block; width: 220px; height: auto; }
@media (min-width: 860px) { .hero-art { display: block; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.feature { display: flex; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.feature svg { flex: none; width: 48px; height: 48px; padding: 12px; border-radius: var(--radius-button); background: var(--bobina-mist); color: var(--bobina-violet); }
.feature strong { display: block; font: 700 16px/24px var(--font-heading); }
.feature span { color: var(--bobina-muted); font-size: 14px; line-height: 20px; }

/* Packs mis en avant sur l'accueil : bandeau violet, vignettes blanches. */
.packs-band { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-top: 24px; padding: 24px; border-radius: 28px; background: var(--bobina-violet); color: #fff; }
@media (min-width: 980px) { .packs-band { grid-template-columns: 1fr 2fr; padding: 32px; } }
.packs-band h2 { margin: 8px 0; }
.packs-band p { margin: 0 0 16px; }
.packs-band .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.18); }
.packs-band .btn { background: #fff; border-color: #fff; color: var(--bobina-ink); }
.packs-band .btn:hover { background: var(--bobina-mist); border-color: var(--bobina-mist); color: var(--bobina-violet); }
.packs-band .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.packs-band .card { color: var(--bobina-ink); }
.packs-band :focus-visible { outline-color: #fff; }

/* Guide de choix des matières (page Filaments) */
.guide-section { margin-top: 64px; padding: 32px 24px; border-radius: 28px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 96px; }
@media (min-width: 860px) { .guide-section { padding: 48px; } }
.guide-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.guide-head .eyebrow { color: var(--bobina-violet); background: var(--bobina-mist); }
.guide-head h2 { margin: 12px 0 8px; }
.guide-head .lead { margin: 0 auto; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; border-radius: var(--radius-large); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: box-shadow 0.18s, transform 0.18s; }
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.guide-card header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; color: #fff; background: var(--bobina-violet); }
.guide-card:nth-child(even) header { background: var(--bobina-ink); }
.guide-card h3 { font-size: 40px; line-height: 44px; font-weight: 800; }
.guide-card header p { margin: 4px 0 0; color: #e7defa; }
.guide-card header strong { color: #fff; }
.guide-card header img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: #fff; border: 4px solid rgba(255, 255, 255, 0.35); }
.guide-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; flex: 1; }
.guide-summary { margin: 0; font: 600 18px/28px var(--font-body); }
.guide-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-body li { display: flex; gap: 12px; align-items: flex-start; }
.guide-body li svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; }
.guide-body li.good svg { background: #e3f4ea; color: var(--ok); }
.guide-body li.note svg { background: var(--bobina-mist); color: var(--bobina-violet); }
.guide-choose { margin-top: auto; align-self: flex-start; }
#category-description { white-space: pre-line; max-width: 720px; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 48px; }
.section-title h2 { margin: 0 0 16px; }
.section-title a { color: var(--bobina-violet); font-weight: 600; white-space: nowrap; }

/* --- Listes de produits ------------------------------------------------------ */
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.categories:empty { display: none; }
.categories button, .categories .btn { background: #fff; color: var(--bobina-ink); border-color: var(--line); }
.categories button:hover:not(:disabled), .categories .btn:hover { background: var(--bobina-mist); border-color: var(--bobina-violet); color: var(--bobina-violet); }
.categories button.active, .categories button.active:hover { background: var(--bobina-violet); color: #fff; border-color: var(--bobina-violet); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-large); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
a.product-card { text-decoration: none; transition: box-shadow 0.18s, border-color 0.18s; }
a.product-card:hover { box-shadow: var(--shadow-hover); border-color: var(--bobina-violet); }
.product-card .muted { font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }

.thumb, .main-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.thumb { margin-bottom: 8px; border: 1px solid var(--line); }
/* Photos produit sur fond neutre : affichées en entier, sans recadrage. */
.thumb img, .main-photo img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.no-photo { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: var(--bobina-mist); color: var(--bobina-muted); font-size: 14px; line-height: 20px; }
.no-photo .logo-symbol { width: 64px; height: auto; background: none; }
.thumb .badge.promo { position: absolute; top: 8px; left: 8px; }

.price { font: 600 20px/28px var(--font-body); color: var(--bobina-violet); margin-right: 8px; }
.badge { font: 600 12px/16px var(--font-body); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.badge.promo { background: var(--bobina-ink); border-color: var(--bobina-ink); color: #fff; }
/* Pastille mauve « Reconditionnée » : icône et texte, jamais la couleur seule. */
.badge.refurb { display: inline-flex; gap: 4px; align-items: center; background: var(--bobina-lilac); border-color: var(--bobina-lilac); color: var(--bobina-ink); }
.badge.refurb svg { width: 14px; height: 14px; }
.thumb-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.thumb-badges .badge.promo { position: static; }
.flags:empty { display: none; }
.flags { margin-bottom: 8px; }
.flags .badge.refurb { font-size: 14px; line-height: 20px; padding: 4px 12px; }
.flags .badge.refurb svg { width: 18px; height: 18px; }

.tiers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 16px; border-radius: var(--radius-card); background: var(--bobina-mist); }
.tiers strong { flex-basis: 100%; }
.tiers button { flex-direction: column; align-items: flex-start; }
.tiers > .caption { flex-basis: 100%; }
.tiers-admin { margin-top: 16px; }
.tiers-admin .badge { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; }

.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(33, 26, 53, 0.3); vertical-align: middle; margin-right: 4px; }

/* --- Page article ------------------------------------------------------------ */
.product { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 760px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } }
.main-photo { border-radius: var(--radius-large); border: 1px solid var(--line); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs button { width: 64px; height: 64px; min-height: 0; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-button); background: #fff; overflow: hidden; }
.thumbs button:hover:not(:disabled) { background: #fff; border-color: var(--bobina-lilac); }
.thumbs button.selected { border-color: var(--bobina-violet); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.product-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-large); padding: 24px; box-shadow: var(--shadow); }
.product-info h1 { font-size: 26px; line-height: 34px; margin-bottom: 8px; }
@media (min-width: 760px) { .product-info h1 { font-size: 32px; line-height: 40px; } }
.product-info .price { font-size: 24px; line-height: 32px; }
.product-info h2 { font-size: 18px; line-height: 24px; font-weight: 700; margin: 24px 0 8px; }
.description { white-space: pre-line; margin: 0; }

.brand { margin-bottom: 8px; }
.brand:empty { display: none; }
.brand a { display: inline-block; text-decoration: none; font: 600 14px/20px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bobina-muted); }
.brand img { display: block; max-height: 44px; max-width: 180px; object-fit: contain; }
.brand-logo { max-height: 40px; max-width: 140px; object-fit: contain; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(33, 26, 53, 0.3); box-shadow: inset 0 0 0 3px #fff; }
.swatch:hover:not(:disabled) { border-color: var(--bobina-ink); }
/* Couleur choisie : anneau violet. En rupture : pastille barrée (pas seulement plus pâle). */
.swatch.selected { border: 3px solid var(--bobina-violet); }
.swatch.out { position: relative; opacity: 0.55; }
.swatch.out::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: var(--bobina-ink); transform: rotate(45deg); }

.add-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.add-row button { flex: 1; }
.product-info .add-row { max-width: 380px; }

/* --- Offres à ajouter avec un produit ---------------------------------------- */
.offers { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.offer { display: grid; gap: 8px; padding: 16px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-card); background: var(--bobina-mist); }
.offer .price { font-size: 20px; line-height: 28px; }
.offer .add-offer { justify-self: start; }
.offer .swatch { width: 36px; height: 36px; }
.offers-admin { margin-top: 16px; }
.offers-admin .badge { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; }
.offers-admin summary { cursor: pointer; margin-top: 8px; color: var(--bobina-violet); font-weight: 600; }

/* --- Rayons en vignettes (page Accessoires) ---------------------------------- */
.category-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 16px; margin-bottom: 8px; }
.category-tiles:empty { display: none; }
.category-tile { flex-direction: column; gap: 4px; padding: 12px; background: #fff; color: var(--bobina-ink); border: 1.5px solid var(--line); border-radius: var(--radius-large); text-align: center; }
.category-tile:hover:not(:disabled) { background: #fff; border-color: var(--bobina-violet); color: var(--bobina-violet); }
.category-tile.active, .category-tile.active:hover { background: var(--bobina-mist); border-color: var(--bobina-violet); color: var(--bobina-violet); box-shadow: inset 0 -4px 0 var(--bobina-violet); }
/* Photo entière, sans découpe : les produits ne sont jamais rognés. */
.category-tile .tile-img { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 112px; aspect-ratio: 1; padding: 4px; }
.category-tile .tile-img img { width: 100%; height: 100%; object-fit: contain; }
.category-tile .tile-img .logo-symbol { width: 56px; height: auto; }
.category-tile strong { line-height: 20px; }
.category-tile .caption { color: var(--bobina-muted); font-weight: 400; }
.groups .section-title { margin-top: 32px; }

/* --- Tableaux ---------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
th { font: 600 12px/16px var(--font-body); color: var(--bobina-muted); letter-spacing: 0.06em; text-transform: uppercase; background: var(--bobina-mist); }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }

/* --- Panier, commande, contact ----------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .checkout { grid-template-columns: 3fr 2fr; align-items: start; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-large); padding: 24px; box-shadow: var(--shadow); }
.panel h1 { font-size: 32px; line-height: 40px; }
.panel h2 { font-size: 24px; line-height: 32px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.field input, .field textarea, .field select { width: 100%; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1.5px solid #cfc6e4; border-radius: var(--radius-button); margin-bottom: 8px; cursor: pointer; }
.choice:hover { border-color: var(--bobina-violet); }
.choice:has(input:checked) { border-color: var(--bobina-violet); background: var(--bobina-mist); box-shadow: inset 4px 0 0 var(--bobina-violet); }
.choice input { margin-top: 5px; }
.totals { margin-top: 16px; padding: 16px; border-radius: var(--radius-button); background: var(--bobina-mist); }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 600; font-size: 20px; line-height: 28px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* Champ piège pour les robots : hors écran, jamais visible ni atteignable au clavier. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.promo-field { margin-top: 8px; }
.promo-field .caption { margin: 4px 0 0; min-height: 20px; }

.shop-info { margin: 0; }
.shop-info dt { font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bobina-muted); }
.shop-info dd { margin: 4px 0 16px; }

/* --- Questions fréquentes ---------------------------------------------------- */
.faq { max-width: 800px; }
.faq h2 { font-size: 24px; line-height: 32px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 8px; }
.faq details[open] { border-color: var(--bobina-violet); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bobina-mist); color: var(--bobina-violet); font: 600 20px/28px var(--font-body); text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 16px 16px; white-space: pre-line; }
.faq-contact { max-width: 800px; margin-top: 32px; }
.faq-contact h2 { margin-top: 0; }

/* --- Administration ---------------------------------------------------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button { background: #fff; color: var(--bobina-ink); border-color: var(--line); }
.tabs button:hover:not(:disabled) { background: var(--bobina-mist); border-color: var(--bobina-violet); color: var(--bobina-violet); }
.tabs button.active, .tabs button.active:hover { background: var(--bobina-violet); color: #fff; border-color: var(--bobina-violet); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.product-block { margin-bottom: 16px; }
.product-block.inactive { opacity: 0.6; }
.product-block th { background: none; }
.badge.nouvelle { background: var(--bobina-mist); border-color: var(--bobina-violet); color: var(--bobina-violet); }
.badge.annulee { background: #fdecea; border-color: #f1c4c0; color: var(--danger); }
.badge.terminee { background: #e3f4ea; border-color: #bfe3cd; color: var(--ok); }
details.order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 8px; box-shadow: var(--shadow); }
details.order summary { padding: 16px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
details.order .body { padding: 0 16px 16px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 16px; }
.photo { position: relative; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius-button); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.photo button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; min-height: 0; padding: 0; line-height: 1; border-radius: 50%; background: var(--danger); border-color: var(--danger); }
.photo:has(.image-variant) { height: auto; width: 112px; overflow: visible; border: none; }
.photo:has(.image-variant) img { height: 112px; border: 1px solid var(--line); border-radius: var(--radius-button); }
.image-variant { width: 100%; min-height: 32px; margin-top: 4px; padding: 4px 8px; font-size: 14px; line-height: 20px; }
.message-text { white-space: pre-line; }

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