:root {
  --paper: #F8F7FA;
  --ink: #1A1222;
  --accent: #8419CB;
  --accent-dark: #6A12A8;
  --line: #DDD8E3;
  --muted: #5C5468;
  --tile: #EFE8F5;
  --wrap: 1100px;
  --gut: 1rem;

  /* verre givré */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px rgba(42, 12, 66, 0.12);
  --blur: blur(22px) saturate(170%);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  isolation: isolate;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 5.5rem;
}

/* Fond de page : la vraie photo de l'enseigne, floutée et voilée de blanc */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("hero-bg.jpg") center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(248, 247, 250, 0.8);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* Toutes les surfaces en verre */
.header-grid,
.card,
.facts > div,
.steps li,
.service,
.panel,
.filters button,
.float-chat {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-grid, .card, .facts > div, .steps li, .service, .panel, .filters button { background: rgba(255, 255, 255, 0.92); }
}
@media (prefers-reduced-transparency: reduce) {
  .header-grid, .card, .facts > div, .steps li, .service, .panel, .filters button { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Boutons en pilule */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px rgba(106, 18, 168, 0.28);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline {
  background: var(--glass-strong);
  color: var(--accent-dark);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-small { padding: 0.6rem 0.95rem; font-size: 0.95rem; }
.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.7); }

/* En-tête : barre de verre flottante */
.site-header { padding: 0.75rem 0 0; }
.header-grid {
  width: calc(100% - 2 * var(--gut));
  max-width: calc(var(--wrap) - 2 * var(--gut));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  column-gap: 1rem;
  padding: 0.6rem 0.75rem 0.1rem 1rem;
  border-radius: 28px;
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: auto; height: 36px; }
.header-grid .btn { grid-area: cta; white-space: nowrap; }
.nav {
  grid-area: nav;
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.7rem 0;
  white-space: nowrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 820px) {
  .site-header { position: sticky; top: 0; z-index: 30; }
  .header-grid {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    column-gap: 2rem;
    padding: 0.6rem 0.75rem 0.6rem 1.25rem;
    border-radius: 999px;
  }
  .nav { justify-content: flex-end; padding: 0; gap: 1.5rem; }
  .brand { font-size: 1.1rem; }
}

/* Titres */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 7.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

main > section { padding: 3.5rem 0 0; }
main > section.hero { padding: 0.75rem 0 0; }

/* Hero : scène sombre avec la vraie enseigne, panneau de verre par-dessus */
.stage {
  position: relative;
  width: calc(100% - 2 * var(--gut));
  max-width: calc(var(--wrap) - 2 * var(--gut));
  margin: 0 auto;
  display: grid;
  padding: 1.25rem 1rem 1rem;
  border-radius: 28px;
  overflow: hidden;
  background: #150C1C url("hero-bg.jpg") center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(42, 12, 66, 0.22);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 7, 16, 0.62);
}
.stage-logo {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(56vw, 240px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
.hero-panel {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 24px;
  color: #fff;
  background: rgba(20, 10, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.hero-panel h1 { font-size: clamp(1.9rem, 8vw, 3.2rem); }
.hero-panel .lead { margin-top: 1rem; color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tags { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 820px) {
  .stage {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 3rem;
  }
  .stage-logo { grid-column: 2; grid-row: 1; width: min(100%, 400px); margin-left: -3rem; }
  .hero-panel { grid-column: 1; grid-row: 1; margin-top: 0; padding: 2.25rem; border-radius: 28px; }
}

/* En-têtes de section */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); max-width: 44ch; margin-top: 0.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}
.filters button:hover { background: var(--glass-strong); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Produits */
.grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .grid { gap: 1rem; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-strong);
}
.card-media {
  aspect-ratio: 1 / 1;
  margin: 0.4rem 0.4rem 0;
  border-radius: 14px;
  background: rgba(132, 25, 203, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  overflow: hidden;
}
.card-media.has-img { padding: 0.75rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.8rem; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-body .cat { color: var(--muted); font-size: 0.9rem; }
.card-body .price { font-weight: 800; font-size: 1.15rem; margin-top: auto; padding-top: 0.5rem; }
.card-body .btn { margin-top: 0.75rem; }

/* Comment commander (suite d'étapes) */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 20px;
}
.steps .n { font-weight: 800; font-size: 1.6rem; color: var(--accent); line-height: 1.1; }
.steps strong { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Atouts */
.facts { display: grid; gap: 1rem; margin-top: 1.5rem; }
.facts > div { padding: 1.4rem 1.25rem; border-radius: 20px; }
.facts p { color: var(--muted); margin-top: 0.5rem; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* À propos et contact */
.two-col { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; } }
.panel { padding: 1.5rem 1.25rem; border-radius: 24px; }
.prose p + p { margin-top: 1rem; }
.prose { max-width: 62ch; }
.contact-line { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.75rem 0 1.25rem; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Bouton WhatsApp flottant */
.float-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #0B2A17;
  background: rgba(37, 211, 102, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 26px rgba(11, 42, 23, 0.3);
}
.float-chat:hover { background: #25D366; }

/* Pied de page */
.site-footer { margin-top: 3.5rem; padding: 1.5rem 0 1rem; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-inner nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Pages légales */
.legal { padding: 2.5rem 0 1rem; }
.legal .wrap { max-width: 860px; }
.legal .panel { padding: 1.75rem 1.5rem 2rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.legal .updated { color: var(--muted); margin-top: 0.75rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; letter-spacing: -0.01em; }
.legal p, .legal ul { margin-top: 0.75rem; max-width: 68ch; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.4rem; }
.back { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); font-weight: 600; text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Services */
.services { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border-radius: 20px; }
.service p { color: var(--muted); flex: 1; }
.service .btn { margin-top: 0.75rem; align-self: flex-start; }

/* Adresse */
.contact-address { font-style: normal; font-size: 1.1rem; margin-top: 0.75rem; }
.map-link { display: inline-block; margin-top: 0.35rem; color: var(--accent-dark); font-weight: 700; text-underline-offset: 4px; }
.contact-address + .contact-line { margin-top: 1rem; }
.contact-line + .contact-line { margin-top: -0.5rem; }

/* ===== Navigation en pilules, fiche produit, estimations ===== */

/* En-tête : une seule pilule sur mobile */
.header-grid { grid-template-areas: "brand cta"; padding: 0.5rem 0.6rem 0.5rem 1rem; border-radius: 999px; }
.nav { display: none; }
@media (min-width: 820px) {
  .header-grid { grid-template-areas: "brand nav cta"; }
  .nav { display: flex; }
}

body { padding-bottom: 8.5rem; }
@media (min-width: 820px) { body { padding-bottom: 5.5rem; } }

/* Barre d'onglets flottante (mobile) */
.tabbar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.15rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tabbar a[aria-current="page"] { background: rgba(132, 25, 203, 0.14); color: var(--accent-dark); }
@media (min-width: 820px) { .tabbar { display: none; } }
@media (max-width: 819px) { .float-chat { bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); } }

/* Pilules */
.tag-pill {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card-media { position: relative; }
.pill-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: var(--glass-strong); border: 1px solid var(--glass-edge); color: var(--muted); }
.pill-accent { background: rgba(132, 25, 203, 0.12); color: var(--accent-dark); border-color: rgba(132, 25, 203, 0.25); }
.pill-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; align-self: flex-start; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; color: var(--accent-dark); background: #fff; border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-link:hover .pill-link { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-block { display: block; width: 100%; }

/* Fiche produit */
.product-page { padding: 1.5rem 0 1rem; }
.product-grid { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
@media (min-width: 820px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; } }
.product-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 28px; padding: 1.25rem; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); font-size: 2rem; font-weight: 800; text-align: center; color: var(--accent-dark); }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 1rem; }
.product-info h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.product-price { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.opt-group h2 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-btn {
  font: inherit; font-weight: 700; cursor: pointer; color: var(--ink);
  padding: 0.65rem 1.1rem; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  text-align: left;
}
.pill-btn small { display: block; font-weight: 500; color: var(--muted); }
.pill-btn[aria-pressed="true"], .choice[aria-pressed="true"] { border-color: var(--accent); background: rgba(132, 25, 203, 0.12); color: var(--accent-dark); box-shadow: 0 0 0 2px rgba(132, 25, 203, 0.25); }
.pill-btn.rond { border-radius: 26px; padding: 0.7rem 1.25rem; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 4.5rem; background: none; border: 0; font: inherit; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.swatch i { display: block; width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--accent); }
.swatch[aria-pressed="true"] span { color: var(--accent-dark); font-weight: 700; }
.note { color: var(--muted); font-size: 0.95rem; }
.solutions { margin-top: 2.5rem; }
.solutions h2 { font-size: 1.05rem; letter-spacing: 0.02em; text-transform: none; margin-bottom: 0.75rem; }
.solution-list { display: grid; gap: 0.75rem; }
@media (min-width: 820px) { .solution-list { grid-template-columns: repeat(3, 1fr); } }
.solution { display: block; padding: 1rem 1.25rem; border-radius: 22px; text-decoration: none; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.solution strong { display: block; font-size: 1.05rem; color: var(--accent-dark); }
.solution span { color: var(--muted); font-size: 0.95rem; }
.solution:hover { background: var(--glass-strong); }

/* Estimations (échange, vente, rétrogradation) */
.page-head { padding: 1.5rem 0 0.5rem; }
.page-head h1 { font-size: clamp(2rem, 7vw, 3rem); }
.page-head .lead { margin-top: 0.75rem; color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.quiz { margin-top: 1.25rem; padding: 1.5rem 1.25rem 1.75rem; border-radius: 28px; }
.progress-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 0.95rem; }
.progress { height: 10px; border-radius: 999px; background: rgba(26, 18, 34, 0.08); margin: 0.6rem 0 1.5rem; overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: var(--accent); width: 0; }
.quiz h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.quiz .aide { color: var(--muted); margin-top: 0.5rem; }
.quiz select {
  width: 100%; margin-top: 1.25rem; padding: 1rem 1.25rem; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: #fff; border: 1px solid var(--glass-edge); border-radius: 999px; box-shadow: var(--glass-shadow);
}
.choices { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.choice {
  font: inherit; font-weight: 700; font-size: 1.02rem; text-align: left; cursor: pointer; color: var(--ink);
  padding: 0.95rem 1.25rem; border-radius: 999px; background: #fff; border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
.quiz-actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.quiz .btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.recap { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.recap li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-radius: 18px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-edge); }
.recap b { color: var(--muted); font-weight: 600; }
.recap span { font-weight: 700; text-align: right; }
.quiz .link { display: inline-block; margin-top: 1.25rem; font-weight: 700; color: var(--accent-dark); text-underline-offset: 4px; }

/* Numéros plus petits */
.card-body .price { font-size: 1rem; }
.contact-line { font-size: clamp(1.15rem, 4.5vw, 1.4rem); margin: 0.4rem 0 0.9rem; }
.contact-line + .contact-line { margin-top: -0.4rem; }
.product-price { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }

/* Mention en bas de page */
.credit { flex-basis: 100%; text-align: center; margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }


/* Vignettes photo : fond blanc, comme sur une fiche produit */
.card-media.has-img { background: #fff; }
.product-media { background: #fff; }

/* Résultat d'estimation */
.estimate { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 24px; background: rgba(132, 25, 203, 0.12); border: 1px solid rgba(132, 25, 203, 0.25); }
.estimate .ref { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.estimate strong { display: block; margin-top: 0.3rem; font-size: 1.2rem; line-height: 1.3; color: var(--accent-dark); }
.estimate p { margin-top: 0.4rem; font-weight: 600; }
.quiz .recap + .aide { margin-top: 1rem; }

/* Pastille de couleur sur la photo produit */
.product-media { position: relative; }
.color-chip { position: absolute; top: 0.75rem; right: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, 0.88); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.color-chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }

/* Description du produit */
.description { margin-top: 2rem; }
.description h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.description p { color: var(--muted); max-width: 62ch; }

/* En-tête : tient sur les petits écrans (320 à 390 px) */
.header-grid { grid-template-columns: minmax(0, 1fr) auto; }
@media (min-width: 820px) { .header-grid { grid-template-columns: auto 1fr auto; } }
@media (max-width: 400px) {
  .brand { font-size: 0.92rem; gap: 0.4rem; }
  .brand img { height: 32px; }
  .header-grid .btn-small { padding: 0.5rem 0.85rem; font-size: 0.9rem; }
}
@media (max-width: 340px) {
  .brand { font-size: 0.82rem; }
  .brand img { height: 28px; }
  .header-grid { padding-left: 0.75rem; }
  .header-grid .btn-small { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}

/* ===== Boutons flottants : Malick + Discuter ===== */
.floats { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
@media (max-width: 819px) { .floats { bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); } }
.floats .float-chat { position: static; }
.malick-launcher {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 48px; padding: 0.35rem 1.1rem 0.35rem 0.4rem;
  border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.malick-launcher:hover { background: #fff; }
.malick-launcher.charge { opacity: 0.7; cursor: progress; }
.malick-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem;
}
html.malick-ouvert .floats, html.malick-ouvert .tabbar { display: none; }
html.malick-ouvert { overflow: hidden; }

/* ===== Contact : deux numéros WhatsApp + e-mail ===== */
.contact-mail { margin: 0.2rem 0 0.9rem; font-weight: 700; word-break: break-word; }
.contact-mail a { color: var(--accent-dark); text-underline-offset: 4px; }
.contact-actions { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
@media (min-width: 560px) { .contact-actions { grid-template-columns: repeat(2, auto); justify-content: start; } }

/* ===== Coffre Épargne ===== */
.coffre h2 { margin-bottom: 0.5rem; }
.coffre-lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.coffre-steps { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 0.6rem; }
.coffre-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; padding: 0.8rem 1rem; border-radius: 18px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-edge); }
.coffre-steps .n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.coffre .note { margin: 0 0 1rem; font-weight: 600; }
@media (min-width: 820px) { .coffre-steps { grid-template-columns: repeat(2, 1fr); } }

/* ===== Menu hamburger (téléphone et tablette) ===== */
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); cursor: pointer; }
.menu-btn:hover, .menu-btn:active { background: #fff; }
.nav-extra { display: none; }
@media (max-width: 819px) {
  .header-grid { grid-template-columns: 1fr auto auto; grid-template-areas: "brand cta menu"; column-gap: 0.5rem; }
  .menu-btn { grid-area: menu; }
  .header-grid.menu-ouvert { grid-template-areas: "brand cta menu" "nav nav nav"; border-radius: 28px; }
  .menu-ouvert .nav { display: flex; flex-direction: column; gap: 0; overflow: visible; padding: 0.4rem 0 0.2rem; white-space: normal; }
  .menu-ouvert .nav a { display: flex; align-items: center; min-height: 48px; padding: 0 0.4rem; border-top: 1px solid var(--line); font-size: 1rem; }
  .menu-ouvert .nav .nav-extra { display: flex; color: var(--accent-dark); font-weight: 700; }
}
@media (max-width: 400px) { .header-grid > .btn { display: none; } .header-grid { grid-template-columns: 1fr auto; grid-template-areas: "brand menu"; } .header-grid.menu-ouvert { grid-template-areas: "brand menu" "nav nav"; } }
@media (min-width: 820px) { .menu-btn { display: none; } }

/* ===== Pied de page en colonnes ===== */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.fcol { display: flex; flex-direction: column; min-width: 0; }
.fcol p { margin: 0.5rem 0 0; max-width: 34ch; }
.fcol .brand { align-self: flex-start; color: var(--ink); }
.ftitre { margin: 0 0 0.25rem !important; font-weight: 800; color: var(--ink); }
.fcol a:not(.brand) { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.fcol a:not(.brand):hover, .fcol a:not(.brand):active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.fcol address { font-style: normal; padding: 0.45rem 0; overflow-wrap: anywhere; }
.footer-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-bas p { margin: 0; }
.footer-bas .credit { flex-basis: auto; margin: 0; text-align: right; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-bas { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }

/* Barre du bas : reste lisible sur les très petits écrans (320 px) */
.tabbar a { min-width: 0; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
  .tabbar { left: 0.5rem; right: 0.5rem; padding: 0.35rem 0.25rem; gap: 0; }
  .tabbar a { font-size: 0.56rem; letter-spacing: -0.02em; }
  .tabbar svg { width: 20px; height: 20px; }
}
@media (max-width: 380px) { .tabbar { grid-template-columns: 1fr 1fr 1fr 1fr 1.35fr 1fr; } }
@media (max-width: 819px) { .tabbar { grid-template-columns: 1fr 1fr 1fr 1fr 1.35fr 1fr; } }

/* ===== Boutique : recherche, filtres, tri ===== */
.shop-tools { display: grid; gap: 0.9rem; margin-bottom: 1.25rem; }
.search-field label, .field label, .sort-field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }
.search-field input, .field input, .field select, .sort-field select {
  width: 100%; min-height: 48px; padding: 0.6rem 1rem; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--glass-edge); border-radius: 999px; box-shadow: var(--glass-shadow);
}
.search-field input { border-radius: 999px; }
.cats { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cats button {
  flex: none; min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
.cats button:hover, .cats button:active { background: #fff; }
.cats button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters-panel { border-radius: 24px; padding: 0 1rem; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.filters-panel summary { min-height: 48px; display: flex; align-items: center; gap: 0.4rem; font-weight: 800; cursor: pointer; list-style: none; }
.filters-panel summary::-webkit-details-marker { display: none; }
.filters-panel summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--accent-dark); }
.filters-panel[open] summary::after { content: "\2212"; }
.filters-grid { display: grid; gap: 0.8rem; grid-template-columns: 1fr; padding-bottom: 0.9rem; }
@media (min-width: 560px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .filters-grid { grid-template-columns: repeat(3, 1fr); } }
.filters-panel > .btn { margin-bottom: 1rem; }
.error-msg { margin: 0 0 0.8rem; color: #9b1c31; font-weight: 700; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.6rem 1rem; }
.shop-bar p { margin: 0; font-weight: 700; color: var(--muted); }
.sort-field { min-width: min(100%, 14rem); }
.empty-state { text-align: center; padding: 2rem 1rem; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.empty-state p { margin: 0.4rem 0; color: var(--muted); }
.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state .btn { margin-top: 1rem; }
.shop-help { margin-top: 1.5rem; color: var(--muted); }
.shop-help a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 4px; }
.card-meta { margin: 0; font-size: 0.82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Achat : bouton WhatsApp, quantité, total ===== */
.btn-wa { background: #25D366; border-color: #25D366; color: #0B2A17; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(11, 42, 23, 0.22); }
.btn-wa:hover { background: #1fb957; border-color: #1fb957; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qty-label { font-weight: 800; }
.stepper { display: inline-flex; align-items: center; gap: 0.6rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-edge); background: #fff; font: inherit; font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); cursor: pointer; box-shadow: var(--glass-shadow); }
.stepper button:hover:not(:disabled), .stepper button:active:not(:disabled) { background: var(--accent); color: #fff; }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper output { min-width: 2.2rem; text-align: center; font-weight: 800; font-size: 1.1rem; }
.total-line { margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--accent-dark); }
.added { margin: 0; padding: 0.7rem 1rem; border-radius: 16px; background: rgba(37, 211, 102, 0.16); font-weight: 600; }
.added a { color: var(--accent-dark); font-weight: 800; text-underline-offset: 4px; }

/* ===== Panier ===== */
.wrap-large { max-width: 1000px; }
.cart-layout { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 1fr; } .cart-summary { position: sticky; top: 5.5rem; } }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 0.9rem; padding: 0.8rem; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.cart-line-off { opacity: 0.8; }
.cart-img { width: 84px; height: 84px; border-radius: 14px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cart-name { margin: 0; font-weight: 800; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.cart-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-var, .cart-unit { margin: 0; font-size: 0.9rem; color: var(--muted); }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-top: 0.5rem; }
.cart-total { margin: 0 0 0 auto; font-weight: 800; }
.link-btn { min-height: 44px; padding: 0 0.4rem; background: none; border: 0; font: inherit; font-weight: 700; color: #9b1c31; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.cart-summary { padding: 1.25rem; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); display: grid; gap: 0.7rem; }
.cart-summary h2 { font-size: 1.2rem; margin: 0; }
.cart-summary .note { margin: 0; }
.cart-summary .warn { font-weight: 700; color: #7a4a00; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.sum-total { padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 1.15rem; }
.sum-total b { color: var(--accent-dark); }

/* ===== Panier dans le menu et en bouton flottant ===== */
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; margin-left: 0.35rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 800; }
.cart-count[hidden] { display: none; }
.float-cart { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.4rem 1.1rem; border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff; background: var(--accent); border: 1px solid var(--accent-dark); box-shadow: 0 10px 26px rgba(106, 18, 168, 0.35); }
.float-cart[hidden] { display: none; }
.float-cart:hover { background: var(--accent-dark); }
.float-cart b { background: #fff; color: var(--accent-dark); border-radius: 999px; padding: 0 0.45rem; margin-left: 0.2rem; }
@media (min-width: 820px) { .nav .nav-cart { font-weight: 700; } }
@media (max-width: 819px) { .menu-ouvert .nav .nav-cart { display: flex; align-items: center; } }

/* Page Panier : ses propres marges (elle ne réutilise plus le style des pages légales) */
.cart-page { padding: 2.5rem 0 1rem; }
.cart-page h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 1.25rem; }
.cart-page .back { margin-bottom: 1rem; }

/* ===== En-tête : menu en liste (hamburger) jusqu'à 1079 px, menu en ligne au-delà =====
   Entre 820 et 1079 px, le menu en ligne ne tenait pas : il est donc replié comme sur téléphone. */
@media (max-width: 1079px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; grid-area: menu; }
  .header-grid { grid-template-columns: 1fr auto auto; grid-template-areas: "brand cta menu"; column-gap: 0.5rem; padding: 0.5rem 0.6rem 0.5rem 1rem; border-radius: 999px; }
  .header-grid.menu-ouvert { grid-template-areas: "brand cta menu" "nav nav nav"; border-radius: 28px; }
  .menu-ouvert .nav { display: flex; flex-direction: column; gap: 0; overflow: visible; padding: 0.4rem 0 0.2rem; white-space: normal; justify-content: flex-start; }
  .menu-ouvert .nav a { display: flex; align-items: center; min-height: 48px; padding: 0 0.4rem; border-top: 1px solid var(--line); font-size: 1rem; }
  .menu-ouvert .nav .nav-extra { display: flex; color: var(--accent-dark); font-weight: 700; }
  .menu-ouvert .nav .nav-cart { display: flex; align-items: center; }
}
@media (max-width: 400px) { .header-grid > .btn { display: none; } .header-grid { grid-template-columns: 1fr auto; grid-template-areas: "brand menu"; } .header-grid.menu-ouvert { grid-template-areas: "brand menu" "nav nav"; } }
@media (min-width: 1080px) {
  .menu-btn { display: none; }
  .header-grid { column-gap: 1.25rem; }
  .nav { display: flex; gap: 1.1rem; }
}
