/* ============================================================
   STYLE DE LA BOUTIQUE
   Les couleurs et polices sont définies une seule fois ici :
   change-les pour modifier tout le site d'un coup.
   ============================================================ */

:root {
  --paper: #ffffff;
  --stone: #eef2f8;      /* fond des vignettes produits (bleu très pâle) */
  --ink: #15233f;        /* texte principal et boutons (bleu nuit) */
  --muted: #5a6478;      /* texte secondaire (gris bleuté) */
  --line: #dde3ee;       /* bordures */
  --go: #2c4a7c;         /* bleu royal : bouton commander / paiement à la livraison */
  --go-dark: #213a63;
  --sale: #b03a3a;       /* prix promo */
  --focus: #2c4a7c;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-lg: 22px;
  --page: min(1180px, 100% - 40px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

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

.page { width: var(--page); margin-inline: auto; }

/* ---------- Bandeau du haut ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 9px 16px;
}

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .page {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.header .logo { justify-self: start; }
.header .cart-button { justify-self: end; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 14px;
}
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

/* ---------- Boutons ---------- */
/* ---------- Menu mobile (trois barres) ---------- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
/* Les trois barres se transforment en croix quand le menu est ouvert */
body.menu-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33363e; }
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* ---------- Accueil : hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 0 40px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 30px;
}
.hero-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: center;
}
.hero .eyebrow { margin-bottom: 18px; }
/* L'éventail de trois coques : l'élément marquant de la page */
.fan {
  position: relative;
  height: 440px;
}
.fan svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 190px;
  transform-origin: 50% 110%;
  filter: drop-shadow(0 18px 24px rgba(22, 24, 29, 0.18));
  animation: fanOpen 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fan svg:nth-child(1) { --r: -16deg; --x: -118%; }
.fan svg:nth-child(2) { --r: 0deg;   --x: -50%; z-index: 2; bottom: 24px; }
.fan svg:nth-child(3) { --r: 16deg;  --x: 18%; }
.fan svg { transform: translateX(var(--x)) rotate(var(--r)); }

@keyframes fanOpen {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(var(--x)) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .fan svg { animation: none; }
}
/* ---------- Photos des produits ---------- */
/* "multiply" fait disparaître le fond blanc de la photo dans le fond gris */
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card-image:has(.product-photo) { padding: 14px; }
.product-image:has(.product-photo) { padding: 24px; }
.line-thumb:has(.product-photo) { padding: 4px; }
/* ---------- Galerie de la fiche produit ---------- */
.gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
  position: sticky;
  top: 90px;
}
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumb {
  background: var(--stone);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 6px;
  aspect-ratio: 4 / 5;
  width: 100%;
  transition: border-color 0.15s;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb:hover { border-color: var(--line); }
.thumb[aria-current="true"] { border-color: var(--ink); }

.gallery-main {
  position: relative;
  background: var(--stone);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-main .badge { z-index: 1; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(22, 24, 29, 0.12);
}
.gallery-arrow:hover { background: var(--ink); color: #fff; }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
/* Photos d'ambiance (nom de fichier contenant "ambiance") : elles remplissent tout le cadre */
.gallery-main:has(img[src*="ambiance"]),
.thumb:has(img[src*="ambiance"]) { padding: 0; overflow: hidden; }
img.product-photo[src*="ambiance"],
.thumb img[src*="ambiance"] { object-fit: cover; mix-blend-mode: normal; }
.thumb:has(img[src*="ambiance"]) img { border-radius: 10px; }
/* ... et aussi dans le catalogue et le panier, quand c'est la photo principale */
.card-image:has(img[src*="ambiance"]),
.line-thumb:has(img[src*="ambiance"]) { padding: 0; }
.card-image img[src*="ambiance"],
.line-thumb img[src*="ambiance"] { object-fit: cover; mix-blend-mode: normal; }
/* ---------- Zoom au survol des photos (ordinateur uniquement) ---------- */
@media (hover: hover) {
  .gallery-main:has(.product-photo),
  .product-image:has(.product-photo) { cursor: zoom-in; overflow: hidden; }
  .gallery-main .product-photo,
  .product-image .product-photo { transition: transform 0.25s ease; }
  .zooming .product-photo { transform: scale(2); }
  
  /* Vignettes de "Vous pourriez aimer" */
  .similar .card-image:has(.product-photo) { cursor: zoom-in; }
  .similar .card:hover .card-image.zooming .product-photo { transform: scale(2); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-main .product-photo,
  .product-image .product-photo { transition: none; }
}

/* ---------- Vidéos dans la galerie ---------- */
.thumb { position: relative; }
.thumb video { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; pointer-events: none; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-play span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(21, 35, 63, 0.75);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding-left: 2px;
}
.gallery-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--stone);
}
.gallery-main.showing-video { cursor: default; }
.gallery-main.showing-video .gallery-arrow { z-index: 2; }
/* ---------- Garanties ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}
.promises div { background: var(--paper); padding: 22px 24px; }
.promises strong { display: block; font-size: 17px; }
.promises span { color: var(--muted); font-size: 15px; }

/* ---------- Catalogue ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 36px 24px;
  margin-bottom: 80px;
}
.card { text-decoration: none; display: block; }
.card-image {
  position: relative;
  background: var(--stone);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
}
.card-image svg { height: 100%; width: auto; transition: transform 0.3s; }
.card:hover .card-image svg { transform: translateY(-6px) rotate(-3deg); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 700;
}
.badge.sale { background: var(--sale); color: #fff; }
.badge { z-index: 1; }   /* le badge reste toujours au-dessus de la photo */
.card h3 { font-size: 17px; font-weight: 600; margin: 14px 0 2px; }

.price { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 0.9em; }
.price.on-sale .now { color: var(--sale); }
/* ---------- Avis clients ---------- */
.reviews { border-top: 1px solid var(--line); padding-top: 64px; }
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.reviews-head .section-title { margin: 0; line-height: 1.1; }
.reviews-score { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.reviews-score strong { color: var(--ink); font-size: 18px; }
.stars { color: #e0a100; letter-spacing: 2px; font-size: 18px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.review {
  background: var(--stone);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-text { margin: 0; flex: 1; font-size: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.review-author strong { display: block; }
.review-author span { color: var(--muted); font-size: 14px; }
/* ---------- Commander en 3 étapes ---------- */
.steps {
  position: relative;
  background: var(--stone);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  margin: 144px 0 72px;   /* laisse de la place pour le trait au-dessus */
}
/* Trait au-dessus de la section, comme pour "Questions fréquentes" */
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -64px;
  border-top: 1px solid var(--line);
}
.steps-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.steps-head .section-title { margin-bottom: 10px; line-height: 1.1; }
.steps-head p { color: var(--muted); font-size: 17px; margin: 0; }

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--paper);
  border-radius: 18px;
  padding: 28px 26px 30px;
}
.step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}
.step:last-child .step-icon { background: var(--go); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: #d5d9df;
  line-height: 1;
}
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; }
.steps-cta { text-align: center; margin-top: 40px; }
/* ---------- Questions fréquentes ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding: 64px 0;
  align-items: start;
}
.faq-intro { position: sticky; top: 100px; }
.faq-intro .section-title { line-height: 1.05; }
.faq-intro p { color: var(--muted); margin: 0 0 22px; font-size: 17px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
/* Le "+" devient "×" quand la question est ouverte */
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--stone);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; font-size: 17px; }
/* ---------- Réseaux sociaux ---------- */
.social {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 64px 0 88px;
}
.social-intro .section-title { line-height: 1.1; margin-bottom: 12px; }
.social-intro p { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 42ch; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.social-link:hover { border-color: var(--ink); background: var(--stone); }
.social-link span { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; color: var(--muted); }
.social-link strong { color: var(--ink); font-size: 15px; }
.social-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mosaic-tile {
  display: block;
  aspect-ratio: 1;
  background: var(--stone);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}
.mosaic-tile .product-photo { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.mosaic-tile:hover .product-photo { transform: scale(1.08); }
.mosaic-tile:has(img[src*="ambiance"]) { padding: 0; }
.mosaic-tile img[src*="ambiance"] { object-fit: cover; mix-blend-mode: normal; }
/* ---------- Pages légales et "Qui sommes-nous" ---------- */
.legal { max-width: 760px; padding: 56px 0 88px; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.legal .updated-on { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; scroll-margin-top: 100px; }
.legal p, .legal li { color: #3c4352; font-size: 16.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); }
.legal .encadre {
  background: var(--stone);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0;
}
.legal .encadre p { margin: 4px 0; }
.legal .lead { font-size: 19px; color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { color: inherit; }
.checkout-cgv { font-size: 14px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.checkout-cgv a { color: inherit; }

/* ---------- Fiche produit ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px 0 80px;
  align-items: start;
}
.product-image {
  background: var(--stone);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 48px;
  position: sticky;
  top: 90px;
}
.product-image svg { height: 100%; width: auto; }
.product h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.product .price { font-size: 24px; margin-bottom: 28px; }
.field-label { font-weight: 700; margin: 0 0 10px; }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.buy-row { display: flex; gap: 12px; margin-bottom: 12px; }
.qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.qty button { border: 0; background: none; width: 42px; height: 48px; font-size: 20px; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.buy-row .btn { flex: 1; }
.cod-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #e8f4ef;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 22px 0;
  color: #0b4a37;
  font-size: 15px;
}
.product-description { color: var(--muted); max-width: 60ch; }
/* ---------- Description du produit ---------- */
.product-details {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.product-details h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.product-details p { color: var(--muted); max-width: 62ch; margin: 0 0 14px; font-size: 17px; }
.specs { margin: 0; }
.specs div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.specs div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

/* ---------- Produits similaires ---------- */
.similar { border-top: 1px solid var(--line); padding-top: 56px; }

/* Carrousel : 4 vignettes visibles sur ordinateur, flèches de chaque côté */
.carousel { position: relative; margin-bottom: 72px; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 24px) / 4);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { scroll-snap-align: start; }
.carousel-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(22, 24, 29, 0.16);
  transition: opacity 0.2s, background 0.15s, color 0.15s;
}
.carousel-arrow:hover { background: var(--ink); color: #fff; }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
/* ---------- Panier coulissant ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 29, 0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
body.cart-open .overlay { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 20px; margin: 0; }
.icon-button { border: 0; background: none; font-size: 26px; line-height: 1; padding: 4px 8px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.line-thumb {
  background: var(--stone);
  border-radius: var(--radius-sm);
  height: 78px;
  display: grid;
  place-items: center;
  padding: 8px;
}
.line-thumb svg { height: 100%; width: auto; }
.line-name { font-weight: 600; line-height: 1.3; }
.line-model { color: var(--muted); font-size: 14px; }
.line .qty { margin-top: 6px; width: fit-content; }
.line .qty button { height: 32px; width: 32px; font-size: 16px; }
.remove { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 14px; }

.totals { display: grid; gap: 6px; margin-bottom: 16px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals span:last-child { white-space: nowrap; }
.totals .grand { font-size: 20px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.free-hint { font-size: 14px; color: var(--go); margin: 0 0 12px; }

/* ---------- Page commande ---------- */
.checkout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  padding: 40px 0 80px;
  align-items: start;
}
.checkout h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.checkout .intro { color: var(--muted); margin: 0 0 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: var(--sale); }
.error { color: var(--sale); font-size: 14px; margin-top: 5px; min-height: 0; }
.honeypot { position: absolute; left: -9999px; }

.payment {
  border: 2px solid var(--go);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 10px 0 24px;
  background: #f3faf7;
}
.payment strong { display: block; font-size: 17px; }
.payment span { color: #2f5a4c; font-size: 15px; }

.summary {
  background: var(--stone);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: 90px;
}
.summary h2 { margin: 0 0 8px; font-size: 20px; }
.summary .line { border-color: #d3d7dd; }
.summary .line-thumb { background: var(--paper); }
.summary .totals { margin: 18px 0 0; }

.form-error {
  background: #fbe9eb;
  color: #7c1522;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* ---------- Page merci ---------- */
.thanks { max-width: 620px; padding: 80px 0; }
.thanks h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.thanks p { font-size: 18px; color: var(--muted); }
.order-number { font-size: 22px; color: var(--ink); font-weight: 800; }

/* ---------- Pied de page ---------- */
.footer {
  background: var(--stone);
  color: var(--muted);
  font-size: 15px;
  padding: 56px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .logo { color: var(--ink); display: inline-block; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 18px; max-width: 34ch; }
.footer-badge {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { color: var(--ink); font-size: 15px; margin: 0 0 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid #d8dce2;
  padding: 22px 0 28px;
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .header .page { display: flex; justify-content: space-between; gap: 12px; }
  .burger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: 0 12px 24px rgba(22, 24, 29, 0.08);
  }
  body.menu-open .nav { display: flex; }
  .nav a {
    padding: 14px 0;
    font-size: 18px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .hero, .product, .checkout { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; gap: 10px; }
  .fan { height: 300px; overflow: hidden; margin-inline: -20px; }
  .fan svg { width: 120px; }
  .fan svg:nth-child(1) { --x: -108%; }
  .fan svg:nth-child(3) { --x: 8%; }
  .promises { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 64px; }
  .social { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 64px; }
  .footer { padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding-bottom: 90px; }   /* place pour le bouton WhatsApp flottant */.steps { padding: 44px 20px; margin: 128px 0 48px; }
  .steps::before { top: -48px; }
  .steps-list { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 22px 22px 24px; }
  .faq-intro { position: static; }
  .faq summary { font-size: 17px; }
  .product { gap: 28px; padding-top: 24px; }
  .product-image, .summary, .gallery { position: static; }
  /* Sur téléphone : les miniatures passent sous la grande photo */
  .gallery { grid-template-columns: 1fr; }
  .thumbs { order: 2; flex-direction: row; }
  .thumb { width: 72px; flex: none; }
  .summary { order: -1; }
  .product-details { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .specs div { grid-template-columns: 120px 1fr; }

/* Carrousel sur téléphone : 1 vignette et demie visible, on glisse avec le doigt */
  .similar { padding-top: 40px; }
  .carousel-track { grid-auto-columns: 62%; gap: 16px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
  
}
