/* Mwa Sape : vitrine orientee offres.
   Vert emeraude pour la marque, jaune pour les reductions, rouge pour le prix remise :
   les trois couleurs du drapeau, chacune avec un seul role. */
/* Polices de la charte (Noto Serif pour les titres, Noto Sans pour les textes), servies par le site lui-même.
   Un seul fichier par famille : il contient toutes les graisses. */
@font-face { font-family: 'Noto Sans'; src: url('/assets/fonts/noto-sans.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('/assets/fonts/noto-serif.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --emerald: #0E7A5F;
  --emerald-dark: #0B624C;
  --emerald-tint: #E6F2EE;
  --ink: #1E2226;
  --ink-soft: #4A5056;
  --muted: #5C6368;
  --bg: #F3F5F0;
  --ecru: #F1ECE2;
  --white: #ffffff;
  --line: #DDE0DA;
  --deal: #F7C948;
  --sale: #C1121F;

  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --announce-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 8px; }
.ico { width: 18px; height: 18px; flex: none; }
.hint { color: var(--muted); font-size: 15px; margin-top: 8px; }
.hidden { display: none !important; }

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

/* Titres */
.section h2, .final-cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-sub { color: var(--ink-soft); margin-top: 6px; }
.kicker { color: var(--emerald); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 34em; }

/* Reductions */
.deal-badge {
  display: inline-flex; align-items: center;
  background: var(--deal); color: var(--ink);
  font-weight: 800; font-size: 14px; line-height: 1;
  padding: 6px 8px; border-radius: 4px; white-space: nowrap;
}
.deal-badge-lg { font-size: 18px; padding: 9px 12px; }
.save-line { color: var(--emerald-dark); font-weight: 600; font-size: 15px; }
.save-line:empty { display: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-dark { background: var(--ink); color: #fff; border-radius: 6px; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--emerald-dark); font-size: 17px; white-space: nowrap; }
.btn-light:hover { background: var(--ecru); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.text-link { color: var(--emerald); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Barre d'annonce */
.announce {
  position: relative; height: var(--announce-h); overflow: hidden;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
}
.announce-msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-inline: 16px; text-align: center; white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.announce-msg.is-shown { opacity: 1; transform: none; }
.announce-msg b { color: var(--deal); }
.announce .ico { width: 16px; height: 16px; }

/* En-tete */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.main-nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease); }
.main-nav a:hover { border-color: var(--ink); }
.main-nav .nav-promo { color: var(--sale); }
.main-nav .nav-promo:hover { border-color: var(--sale); }
.header-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.menu-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; margin-left: -8px; border-radius: 999px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.menu-button .ico { width: 24px; height: 24px; }
.menu-button:hover { background: var(--bg); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-wa, .cart-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px;
  font-size: 16px; font-weight: 600; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.header-wa { color: var(--emerald-dark); }
.header-wa:hover, .cart-button:hover { background: var(--bg); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.badge-bump { animation: bump .35s var(--ease); }
@keyframes bump { 35% { transform: scale(1.3); } }

/* Offre principale */
/* Photo d'accessoires a droite, fondue dans le bleu nuit de son propre fond a gauche, sous le texte */
.hero { --night: #343841; position: relative; overflow: hidden; background: var(--night); color: #fff; min-height: min(calc(100vh - 113px), 720px); display: flex; }
.hero-img { position: absolute; top: 0; right: 0; height: 100%; width: 72%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ''; position: absolute; inset: 0 auto 0 28%; width: 22%; background: linear-gradient(90deg, var(--night), rgba(52, 56, 65, 0)); z-index: 1; }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.hero-card { max-width: 480px; }
.hero-text { color: rgba(255, 255, 255, .82); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-kicker { color: var(--deal); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px; }
.hero-offer { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-top: 20px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.hero-text { margin-top: 14px; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Garanties : les quatre promesses de la boutique sur une seule ligne */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; padding-block: 22px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald-dark); }
.trust-item strong { display: block; font-size: 15px; line-height: 1.25; }
.trust-item span { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.3; margin-top: 2px; }

/* Raccourcis par catégorie : une vignette photo par famille de pièces */
.cats { padding-block: clamp(28px, 4vw, 48px) 0; background: var(--bg); }
.cats h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 16px; }
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 14px; }
.cat-tile { display: grid; gap: 8px; align-content: start; text-align: center; cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.25; }
.cat-tile img { width: 100%; aspect-ratio: 1; border-radius: 12px; transition: transform .35s var(--ease); }
.cat-tile img { object-fit: cover; background: #E9EBE5; }
.cat-tile small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
@media (hover: hover) { .cat-tile:hover img { transform: translateY(-3px); } .cat-tile:hover { color: var(--emerald-dark); } }

/* Sections */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section-tight { padding-block: clamp(44px, 5vw, 72px); }
.section-tint { background: var(--bg); }
.section-ecru { background: var(--ecru); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.count { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* Boutique */
.shop-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 28px; }
.filters { display: grid; gap: 12px; min-width: 0; }
.rayons { display: inline-flex; width: fit-content; background: #fff; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.rayon-tab { min-height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.rayon-tab.is-active { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s var(--ease); }
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active-chip { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.filter-chip.chip-promo { color: var(--sale); }
.shop-search { display: flex; gap: 8px; flex: 0 1 460px; min-width: 0; }
.shop-search .field { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; padding: 0 16px; min-width: 0; }
.shop-search input { flex: 1; }
.shop-search select { flex: none; width: 200px; }

/* Squelettes de chargement : même gabarit que les cartes, pour que rien ne saute à l'arrivée des pièces */
.skeleton-card { display: grid; gap: 10px; padding-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sk { display: block; margin-inline: 16px; border-radius: 4px; background: linear-gradient(90deg, #EEEEEA 25%, #F7F7F4 50%, #EEEEEA 75%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk-photo { margin: 0 0 6px; aspect-ratio: 4 / 5; border-radius: 0; }
.sk-line { height: 14px; }
.sk-short { width: 40%; }
.sk-price { width: 55%; height: 20px; }
.sk-btn { height: 44px; margin-top: 6px; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.more-box { display: grid; justify-items: center; gap: 4px; margin-top: 40px; }
.more-box .btn { min-width: min(320px, 100%); }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.product-photo { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #F4F4F2; position: relative; }
.photo-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.photo-track::-webkit-scrollbar { display: none; }
.photo-slide { flex: 0 0 100%; height: 100%; padding: 0; scroll-snap-align: start; cursor: zoom-in; }
a.photo-slide { cursor: pointer; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Flèches : visibles au survol sur ordinateur, toujours visibles sur téléphone */
.photo-arrow { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer; opacity: 0; transition: opacity .2s var(--ease); }
.photo-arrow.is-prev { left: 8px; }
.photo-arrow.is-prev .ico { transform: rotate(180deg); }
.photo-arrow.is-next { right: 8px; }
.product-photo:hover .photo-arrow, .feature-media:hover .photo-arrow, .photo-arrow:focus-visible { opacity: 1; }
.photo-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.photo-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .35); }
.photo-dots span.is-active { background: #fff; }
/* Téléphone : sur les cartes on glisse au doigt (les points indiquent la photo) ; les flèches restent sur les grandes photos */
@media (hover: none) {
  .product-card .photo-arrow { display: none; }
  .feature-media .photo-arrow, .pp-photo .photo-arrow { opacity: 1; width: 44px; height: 44px; margin-top: -22px; }
}
/* Lien vers la vidéo de la pièce (TikTok ou Instagram) */
.video-pill { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(30, 34, 38, .82); color: #fff; font-size: 13px; font-weight: 700; }
.video-pill .ico { width: 14px; height: 14px; }
.video-pill:hover { background: #000; }
.video-link { display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 20px; font-weight: 700; color: var(--emerald-dark); text-decoration: underline; text-underline-offset: 3px; }
.video-link .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--emerald); color: #fff; }
.product-flags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; gap: 5px; pointer-events: none; }
.product-flag { background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 7px; border-radius: 4px; white-space: nowrap; }
.product-flag.is-low { color: var(--sale); }
/* Carte : photo, famille + code, nom, prix, un seul bouton. Le reste (description, livraison, commande) est sur la page de la pièce. */
.product-body { padding: 12px 14px 0; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.product-meta.is-brand span:first-child { color: var(--ink); }
.product-ref { font-weight: 600; white-space: nowrap; }
.product-card h3 { margin-top: 4px; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card h3 strong, .feature-desc strong, .feature-body h2 strong { font-weight: 700; }
.feature-brand { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 4px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 8px; }
.product-price strong { font-size: 19px; font-weight: 800; color: var(--ink); }
.product-price.is-sale strong { color: var(--sale); }
.product-price s { color: var(--muted); font-size: 14px; }
.product-bottom { margin-top: auto; padding: 12px 14px 14px; }
.product-bottom .btn { min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 8px; }
.product-bottom .btn.is-done { background: var(--emerald); }
/* Choix rapide de la taille : il prend la place du bouton, un appui sur une taille ajoute la pièce */
.quick-sizes { display: grid; gap: 6px; }
.quick-sizes p { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.quick-close { width: 32px; height: 32px; margin: -6px -8px -6px 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.quick-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.quick-row .size-pill { min-height: 44px; padding: 0 2px; font-size: 14px; }
.cart-gift { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--ecru); border-radius: 6px; font-weight: 600; font-size: 15px; }
.cart-item-controls select.is-missing { border-color: var(--sale); box-shadow: inset 0 0 0 1px var(--sale); }
.icon-btn { padding: 0 !important; }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-title { font-family: var(--serif); font-weight: 600; font-size: 21px; margin-bottom: 8px; }

/* Piece a la une */
/* Sans photo : l'offre a gauche, le choix de taille et la commande a droite */
/* Piece a la une : grande photo a gauche, fiche produit a droite */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #F4F4F2; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 800; }
.feature-body h2 { max-width: 14em; }
.feature-body .ticks { margin-top: 16px; }

.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.price-line strong { font-size: 32px; color: var(--sale); }
.price-line s { color: var(--muted); font-size: 18px; }
.stock-line { display: flex; align-items: center; gap: 8px; color: var(--sale); font-weight: 600; font-size: 15px; margin-top: 6px; }
.stock-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-line.is-ok { color: var(--emerald-dark); }
.feature-desc { color: var(--ink-soft); margin: 16px 0 20px; white-space: pre-line; } /* garde les retours à la ligne tapés dans l'espace vendeur */
.ticks { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .ico { color: var(--emerald); }
.sizes { margin-bottom: 20px; border: 0; padding: 0; }
.sizes legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.size-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-pill { min-height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font-weight: 700; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.size-pill:hover { border-color: var(--ink); }
.size-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.feature-body .btn + .btn { margin-top: 10px; }


/* Comment commander */
.order { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.steps { counter-reset: step; margin-top: 28px; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--emerald); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 17px; font-weight: 700; }
.steps p { color: var(--ink-soft); margin-top: 2px; }
/* Apercu facon conversation WhatsApp : le client reconnait l'ecran qu'il va voir */
.chat-wrap { display: grid; gap: 14px; }
.chat { overflow: hidden; border-radius: 16px; background: var(--ecru); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(30, 34, 38, .35); }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--emerald-dark); color: #fff; }
.chat-top img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.chat-top > span { flex: 1; line-height: 1.25; }
.chat-top strong { display: block; font-size: 16px; }
.chat-top small { font-size: 14px; opacity: .8; }
.chat-top .ico { width: 22px; height: 22px; opacity: .9; }
.chat-body { display: grid; gap: 12px; padding: 16px 16px 20px; }
.chat-note { justify-self: center; text-align: center; background: rgba(255, 255, 255, .75); color: var(--ink-soft); font-size: 14px; padding: 5px 12px; border-radius: 8px; }
.bubble {
  position: relative; justify-self: end; width: min(100%, 360px);
  background: #DCF3E6; border-radius: 12px 2px 12px 12px; padding: 12px 14px 8px;
  font-size: 15px; display: grid; gap: 10px;
}
.bubble-product { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 8px; padding: 8px; }
.bubble-product img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; flex: none; }
.bubble-product b { display: block; font-size: 15px; line-height: 1.3; }
.bubble-price { display: block; margin-top: 2px; font-size: 15px; }
.bubble-price b { display: inline; color: var(--sale); }
.bubble-price s { color: var(--muted); margin-left: 4px; }
.bubble-lines { display: grid; gap: 2px; }
.bubble-meta { justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-top: -4px; }
.bubble-meta svg { width: 16px; height: 11px; color: #34B7F1; }

/* Questions */
/* Nouveautés sur WhatsApp */
.news { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.news .lead { margin-top: 12px; }
.news-form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); background: var(--bg); border-radius: 8px; }
.news-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.news-form .field { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px; padding: 0 14px; }
.news-form .news-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.news-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--emerald); }
.news-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-status { font-weight: 600; font-size: 15px; color: var(--emerald-dark); min-height: 1em; }
.news-status:empty { display: none; }
.news-status.is-error { color: var(--sale); }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--emerald); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 40em; }

/* Appel final */
.final-cta { background: var(--emerald); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final-cta p { font-size: 18px; margin-top: 6px; }

/* Pied de page */
.site-footer { background: #fff; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 28px; padding-block: 52px 36px; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { font-family: var(--serif); margin-top: 12px; }
.site-footer h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.site-footer li { margin-bottom: 7px; color: var(--ink-soft); }
.site-footer li a:hover { color: var(--emerald); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); transition: background-color .2s var(--ease), color .2s var(--ease); }
.socials a:hover { background: var(--emerald); color: #fff; }
.socials .ico { width: 20px; height: 20px; }

/* Barre mobile */
.mobile-bar { display: none; }

/* Panier */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(30, 34, 38, .5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.drawer-close { font-size: 28px; line-height: 1; width: 40px; height: 40px; cursor: pointer; }
.drawer-perk { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--emerald-tint); color: var(--emerald-dark); font-weight: 600; font-size: 15px; }
/* Menu latéral : s'ouvre à gauche, lignes en capitales séparées par un trait */
.drawer-left .drawer-panel { left: 0; right: auto; width: min(400px, 88%); }
.menu-head img { height: 40px; width: auto; }
.menu-head-space { width: 40px; }
.menu-search { position: relative; margin: 14px 20px; }
.menu-search .ico { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--muted); }
.menu-search input { width: 100%; min-height: 46px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; }
.menu-list { flex: 1; overflow-y: auto; border-top: 1px solid var(--line); }
.menu-link, .menu-group summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.menu-link:hover, .menu-group summary:hover { background: var(--bg); }
.menu-link.is-promo { color: var(--sale); }
.menu-link.is-guide { color: #9C7A4B; }
.menu-group summary { list-style: none; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary .ico { transition: transform .2s var(--ease); }
.menu-group[open] summary { background: var(--bg); }
.menu-group[open] summary .ico { transform: rotate(180deg); }
.menu-sub .menu-link { min-height: 48px; padding-left: 36px; font-weight: 400; text-transform: none; letter-spacing: 0; background: #FAFAF8; }
.menu-sub .menu-link span { color: var(--muted); font-size: 14px; }
.menu-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; }
.menu-foot .hint { margin-top: 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 2px; }
.cart-item h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cart-item-price { font-weight: 700; font-size: 15px; margin-top: 2px; }
.cart-item-price b { color: var(--sale); }
.cart-item-price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; }
.cart-item-controls select { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 28px 0 8px; font-size: 15px; }
.qty-btn { width: 34px; height: 34px; border-radius: 6px; background: var(--bg); font-weight: 700; cursor: pointer; }
.remove-btn { margin-left: auto; text-decoration: underline; color: var(--muted); cursor: pointer; }
.cart-summary { padding-top: 16px; }
.cart-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; padding: 3px 0; }
.cart-row.is-saving { color: var(--emerald-dark); font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-total strong { font-size: 24px; }
.cart-summary .btn { margin-top: 12px; }

/* Photo agrandie */
.lightbox { position: fixed; inset: 0; z-index: 55; background: rgba(30, 34, 38, .92); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 82vh; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; font-size: 36px; color: #fff; cursor: pointer; z-index: 1; }
.lightbox-arrow { display: none; position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.lightbox.has-many .lightbox-arrow { display: grid; }
.lightbox-arrow.is-prev { left: 12px; }
.lightbox-arrow.is-prev .ico { transform: rotate(180deg); }
.lightbox-arrow.is-next { right: 12px; }
.lightbox-count { font-size: 14px; opacity: .8; min-height: 1em; }
html.is-locked { overflow: hidden; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 360px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 15px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.is-visible { opacity: 1; transform: none; }

/* Les liens du haut ne s'affichent que s'il y a la place à gauche du logo ; sinon le bouton Menu suffit */
@media (max-width: 1180px) {
  .main-nav { display: none; }
}
@media (max-width: 1080px) {
  .header-row { grid-template-columns: 1fr auto 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero-img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .hero::before { inset: auto 0 auto 0; top: calc(100vw * 2 / 3 - 80px); width: auto; height: 80px; background: linear-gradient(0deg, var(--night), rgba(52, 56, 65, 0)); }
  .hero-inner { padding-block: 20px 36px; }
  .hero-card { max-width: none; }
  .feature, .order, .faq, .news { grid-template-columns: minmax(0, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: baseline; }
}

@media (max-width: 640px) {
  /* --mobile-bar-h : hauteur réelle de la barre du bas = bouton 48px + 2 × 8px de marge + 1px de bordure */
  :root { --announce-h: 36px; --mobile-bar-h: 65px; }
  .announce { font-size: 14px; }
  .header-row { height: 60px; }
  .brand img { height: 42px; }
  .cart-label, .header-wa, .menu-label { display: none; }
  .cart-button { padding: 0 8px; }
  .shop-search { flex: 1 1 100%; }
  .shop-search select { width: 132px; padding: 0 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-block: 18px; }
  .trust-item { gap: 10px; align-items: flex-start; }
  .trust-item > .ico { width: 34px; height: 34px; padding: 8px; }
  .trust-item strong { font-size: 14px; }
  .trust-item span { font-size: 13px; }
  .cat-row { display: flex; gap: 12px; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 96px; scroll-snap-align: start; font-size: 14px; }
  .products-grid { gap: 14px 10px; }
  .product-body { padding: 10px 10px 0; }
  .product-meta { font-size: 11px; letter-spacing: .04em; }
  .product-card h3 { font-size: 14px; }
  .product-price { column-gap: 6px; }
  .product-price strong { font-size: 17px; }
  .product-price s { font-size: 13px; }
  .product-bottom { padding: 10px; }
  .product-flag { font-size: 11px; padding: 5px 6px; }
  .section-head { margin-bottom: 18px; }
  .shop-tools { margin-bottom: 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .final-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-block: 36px 24px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 88px; }
  .mobile-bar {
    display: grid;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 8px; }
  .mobile-bar .cart-count { background: #fff; color: var(--emerald-dark); }
  /* Le message se pose 12px au-dessus de la barre du bas, zone sûre des téléphones comprise */
  .toast { left: 16px; right: 16px; bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom) + 12px); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Page d'un produit (lien des publicités) ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-block: clamp(20px, 3vw, 40px) 56px; }
.pp-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; }
.pp-back .ico { transform: rotate(180deg); }
.pp-back:hover { color: var(--emerald-dark); }
.pp-media { position: sticky; top: 96px; }
.pp-photo { border-radius: 6px; }
.pp-photo .photo-arrow { opacity: 1; }
.pp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pp-thumbs:empty { display: none; }
.pp-thumb { flex: 0 0 64px; height: 80px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb.is-active { border-color: var(--ink); }
.pp-ref { margin-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); }
.pp-brand { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--ink-soft); }
.pp-name { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.01em; margin-top: 6px; }
.pp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pp-price strong { font-size: 28px; color: var(--sale); }
.pp-price s { color: var(--muted); font-size: 18px; }
.pp-price s:empty { display: none; }
.pp-stock { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--emerald-dark); font-weight: 600; font-size: 15px; }
.pp-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pp-stock.is-low { color: var(--sale); }
.pp-promises { display: grid; gap: 10px; margin: 20px 0; padding: 16px; background: var(--emerald-tint); border-radius: 8px; font-size: 15px; }
.pp-promises li { display: flex; gap: 10px; align-items: flex-start; }
.pp-promises .ico { color: var(--emerald-dark); margin-top: 3px; }
.pp-desc { color: var(--ink-soft); }
.pp-video { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--emerald-dark); text-decoration: underline; }
.pp-form { display: grid; gap: 14px; margin-top: 28px; padding: clamp(18px, 3vw, 28px); border: 1.5px solid var(--ink); border-radius: 8px; scroll-margin-top: 96px; }
.pp-form h2, .pp-done h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.15; }
.pp-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.pp-form .field { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px; padding: 0 14px; }
.pp-form .field:focus { border-color: var(--ink); }
.pp-qty .field { width: 110px; }
.pp-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.pp-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; }
.pp-total strong { font-size: 22px; }
.pp-error { color: var(--sale); font-weight: 600; font-size: 15px; }
.pp-error:empty { display: none; }
.pp-form .btn { min-height: 54px; font-size: 18px; }
.pp-form .btn:disabled { opacity: .65; cursor: wait; }
.pp-form .hint { margin-top: 0; font-size: 14px; }
.pp-form .btn-ghost { min-height: 48px; font-size: 16px; }
.pp-form .hint a, .pp-added a { text-decoration: underline; }
.pp-added { font-weight: 600; font-size: 15px; color: var(--emerald-dark); }
.pp-added:empty { display: none; }
.pp-cart { position: relative; }
.pp-done { display: grid; gap: 12px; margin-top: 28px; padding: 24px; background: var(--emerald-tint); border-radius: 8px; }
.pp-done > .ico { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--emerald); color: #fff; }
.pp-done:focus { outline: none; }
.pp-related { padding-bottom: 56px; }
.pp-related h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.pp-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pp-card { display: grid; gap: 4px; font-size: 15px; }
.pp-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; margin-bottom: 6px; background: #F4F4F2; }
.pp-card-brand { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pp-card strong { color: var(--sale); }
.pp-card:hover .pp-card-name { text-decoration: underline; }
.pp-footer .footer-bottom a { text-decoration: underline; }
.pp-bar { display: none; }
.product-link { display: block; }
.product-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .pp { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .pp-media { position: static; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); }
  .pp-photo { border-radius: 0; }
  .pp-thumbs { padding-inline: 16px; }
  .pp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pp-footer .footer-bottom { padding-bottom: 96px; }
  .pp-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    transition: transform .25s var(--ease);
  }
  .pp-bar.is-away { transform: translateY(110%); }
  .pp-bar strong { display: block; color: var(--sale); font-size: 18px; line-height: 1.2; }
  .pp-bar span { font-size: 13px; color: var(--muted); }
  .pp-bar .btn { min-height: 48px; padding: 0 24px; }
  /* Page produit : la barre du bas mesure 48px de bouton + 2 × 10px de marge + 1px de bordure = 69px ; le message se pose 12px au-dessus */
  .pp-body .toast { left: 16px; right: 16px; bottom: calc(69px + env(safe-area-inset-bottom) + 12px); max-width: none; }
}

/* Écran large : photo principale limitée en hauteur (proportions gardées) et colonne de droite resserrée,
   pour voir titre, prix, rassurance, tailles et début de la commande dans une fenêtre de 900px de haut */
@media (min-width: 861px) {
  .pp-photo { max-height: min(62vh, 620px); }
  .pp-photo .photo-slide img { object-fit: contain; }
  .pp-name { font-size: clamp(26px, 2.4vw, 34px); }
  .pp-price { margin-top: 10px; }
  .pp-price strong { font-size: 26px; }
  .pp-promises { gap: 6px; margin: 14px 0; padding: 12px 14px; font-size: 14px; }
  .pp-form { gap: 10px; margin-top: 18px; padding: 18px 20px; }
  .pp-form h2 { font-size: 22px; }
}
@media (min-width: 861px) and (max-height: 960px) {
  .pp { padding-block: 16px 40px; }
  .pp-video { margin-top: 8px; }
}

/* Coordonnées dans « Ma sélection » */
.cart-form { display: grid; gap: 6px; margin-top: 14px; }
.cart-form label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.cart-form .field { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px; padding: 0 12px; }
.cart-form .field:focus { border-color: var(--ink); }
.cart-form .btn:disabled { opacity: .65; cursor: wait; }

/* Accueil en rangées par catégorie */
.shelves { display: grid; gap: 48px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.shelf-head .text-link { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 15px; }
.shelf-head h3 { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; }
.shelf-head .count { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); margin-left: 6px; }
.shelf-more { display: flex; justify-content: center; margin-top: 20px; }
.shelf-more .btn { min-width: min(320px, 100%); }
@media (max-width: 640px) {
  .shelves { gap: 36px; }
  .shelf-more .btn { width: 100%; }
}

/* Haut de page : vidéo (pièces qui tombent sur un pagne wax) en plein cadre, voile clair à gauche pour lire le titre */
.hero { --night: #F4EFE6; background: var(--night); color: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media .hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before { inset: 0 auto 0 0; width: 58%; background: linear-gradient(90deg, rgba(244, 239, 230, .95) 0%, rgba(244, 239, 230, .9) 50%, rgba(244, 239, 230, 0) 100%); }
.hero-text { color: var(--ink-soft); }
.hero-kicker { color: var(--emerald); }
.hero .btn-ghost { color: var(--ink); border-color: var(--ink); background: rgba(255, 255, 255, .55); }
.hero .btn-ghost:hover { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
  .hero-media .hero-img, .hero-video { object-position: 50% 50%; }
  .hero::before { display: none; }
}

/* ---------- Animations ---------- */
/* Haut de page : la photo recule doucement et le texte monte ligne par ligne */
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.motion .hero-img { animation: hero-zoom 2.4s var(--ease) both; }
.hero-video[hidden] { display: none; }
.motion .hero-card > * { animation: rise .8s var(--ease) both; }
.motion .hero-card > :nth-child(1) { animation-delay: .15s; }
.motion .hero-card > :nth-child(2) { animation-delay: .28s; }
.motion .hero-card > :nth-child(3) { animation-delay: .41s; }
.motion .hero-card > :nth-child(4) { animation-delay: .54s; }
.motion .hero-card > :nth-child(5) { animation-delay: .67s; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease) var(--reveal-delay, 0ms), transform .4s var(--ease) var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Cartes produit : elles se soulèvent et la photo avance au survol */
.product-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product-photo img { transition: transform .6s var(--ease); }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 34, 38, .12); }
  .product-card:hover .product-photo img { transform: scale(1.04); }
}

/* Boutons : léger appui */
.btn { transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .motion .hero-img, .motion .hero-card > * { animation: none; }
}

/* ---------- Boutique en 3 niveaux ---------- */
/* Vues : la vitrine (body sans data-view ou "home") ; une page d'univers ("univers") ; une recherche ou les promos ("liste").
   Le serveur pose data-view="univers" sur les pages /c/... : la vitrine n'apparaît jamais un instant avant les pièces. */
.catalog-view { display: none; }
body[data-view="univers"] .catalog-view, body[data-view="liste"] .catalog-view { display: block; }
body[data-view="univers"] .home-only, body[data-view="liste"] .home-only { display: none !important; }

/* Niveau 1 : les univers en grandes vignettes */
.universe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.universe-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #E9EBE5; color: #fff; isolation: isolate; }
.universe-tile.is-skeleton { background: linear-gradient(90deg, #E9EBE5 25%, #F3F4EF 50%, #E9EBE5 75%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.universe-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -1; }
.universe-tile::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(20, 22, 24, .78), rgba(20, 22, 24, 0)); z-index: -1; }
.universe-label { position: absolute; left: 16px; right: 16px; bottom: 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.universe-label small { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; opacity: .85; margin-top: 2px; }
@media (hover: hover) { .universe-tile:hover img { transform: scale(1.05); } }

/* Coups de cœur : une rangée qui défile au doigt sur téléphone */
.picks-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* Cartes : toute la carte est un lien vers la page de la pièce */
a.product-card { color: inherit; }
.product-photo > img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; padding-bottom: 14px; }
.product-name { margin-top: 4px; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-name strong { font-weight: 700; }
.product-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.product-flag.is-deal { background: var(--deal); }
.swatches { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.swatches img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #F4F4F2; }
.swatches span { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
@media (hover: hover) { a.product-card:hover .product-name { text-decoration: underline; text-underline-offset: 3px; } }

/* Niveau 2 : fil d'Ariane, titre, univers voisins */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--emerald-dark); }
.crumbs a + span::before { content: '›'; margin-right: 8px; }
.catalog-head { margin-bottom: 16px; }
.shop-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.universe-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.universe-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; white-space: nowrap; }
.universe-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.filter-chip.active-chip span { color: inherit; }
.menu-link.is-current { color: var(--emerald-dark); background: var(--emerald-tint); }
button.menu-link { width: 100%; text-align: left; }

/* Comment commander : 3 étapes côte à côte (l'une sous l'autre sur téléphone) */
.steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

@media (max-width: 1080px) {
  .universe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 38%); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); padding-inline: clamp(16px, 4vw, 48px); padding-bottom: 6px; }
  .picks-row::-webkit-scrollbar { display: none; }
  .picks-row > * { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .steps-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .universe-grid { gap: 10px; }
  .universe-tile { aspect-ratio: 1; border-radius: 12px; }
  .universe-label { left: 12px; right: 12px; bottom: 10px; font-size: 19px; }
  .universe-label small { font-size: 13px; }
  .picks-row { grid-auto-columns: 62%; gap: 12px; }
  .product-body { padding-bottom: 12px; }
  .product-name { font-size: 14px; }
  .swatches img { width: 24px; height: 24px; }
  .universe-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .universe-chips::-webkit-scrollbar { display: none; }
  /* Garanties : une seule ligne qui défile, au lieu d'un bloc de 4 */
  .trust-grid { display: flex; overflow-x: auto; gap: 18px; padding-block: 14px; scrollbar-width: none; }
  .trust-grid::-webkit-scrollbar { display: none; }
  .trust-item { flex: 0 0 auto; align-items: center; }
  .trust-item span { display: none; }
  .hero-text { display: none; }
  .hero-inner { padding-block: 16px 24px; }
  .hero h1 { font-size: 28px; }
}

/* Page de la pièce : fil d'Ariane et choix du coloris */
.pp-crumbs { margin-bottom: 4px; }
.pp-crumbs a { min-height: 32px; font-weight: 600; }
.pp-crumbs a + a::before, .pp-crumbs a + span::before { content: '›'; margin-right: 8px; color: var(--muted); }
.pp-variants { margin: 16px 0 4px; }
.pp-variants .pp-label b { font-weight: 600; }
.pp-variants-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-variant { display: grid; justify-items: center; gap: 4px; width: 72px; font-size: 12px; line-height: 1.2; text-align: center; color: var(--ink-soft); }
.pp-variant img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 2px solid var(--line); background: #F4F4F2; }
.pp-variant.is-active img { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.pp-variant.is-active { color: var(--ink); font-weight: 700; }
.pp-variant.is-out img { opacity: .45; }
@media (hover: hover) { .pp-variant:hover img { border-color: var(--ink-soft); } }
.section-head .text-link { white-space: nowrap; }

/* ---------- Animations (effets.js) : seulement si le visiteur accepte les animations ---------- */
/* Transition douce entre les pages ; la photo de la carte glisse jusqu'à la grande photo de la pièce */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(piece-photo) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
.pp-photo .photo-slide:first-child img { view-transition-name: piece-photo; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Bandeau d'annonce : défilement continu. Les messages d'origine restent pour les lecteurs d'écran. */
.announce.is-marquee .announce-msg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 1; }
.marquee-track { display: flex; width: max-content; height: 100%; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; padding-inline: 28px; white-space: nowrap; }
.marquee-item::after { content: '✦'; margin-left: 28px; color: var(--deal); font-size: 11px; }
.marquee-item b { color: var(--deal); }
.announce:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Titre de la bannière : mot par mot, du flou au net */
.fx .hero-card h1.is-split { animation: none; }
.fx-word { display: inline-block; }
.fx .fx-word { animation: word-in .7s cubic-bezier(.2, 0, 0, 1) both; animation-delay: calc(.2s + var(--i) * 70ms); }
@keyframes word-in { from { opacity: 0; filter: blur(10px); transform: translateY(.35em); } to { opacity: 1; filter: none; transform: none; } }

/* Arrivée en cascade (translate et scale séparés : le survol des cartes garde son transform) */
.fx .fx-in { opacity: 0; translate: 0 26px; transition: opacity .6s var(--ease) var(--fx-delay, 0ms), translate .7s var(--ease) var(--fx-delay, 0ms), scale .7s var(--ease) var(--fx-delay, 0ms); }
.fx .fx-in.is-in { opacity: 1; translate: none; }
.fx h2.fx-in, .fx .shop-title.fx-in { translate: 0 14px; }
/* Univers : la vignette se dévoile comme un rideau, la photo recule doucement */
/* (le rideau est sur la photo : un élément entièrement masqué ne serait jamais signalé à l'écran) */
.fx .universe-tile.fx-in { opacity: 1; translate: none; }
.fx .universe-tile.fx-in img { scale: 1.18; clip-path: inset(100% 0 0 0); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1) var(--fx-delay, 0ms), scale 1.4s var(--ease) var(--fx-delay, 0ms), transform .6s var(--ease); }
.fx .universe-tile.fx-in.is-in img { scale: 1; clip-path: inset(0 0 0 0); }
.fx .universe-tile .universe-label { transition: translate .6s var(--ease) calc(var(--fx-delay, 0ms) + .35s), opacity .6s var(--ease) calc(var(--fx-delay, 0ms) + .35s); }
.fx .universe-tile.fx-in:not(.is-in) .universe-label { opacity: 0; translate: 0 12px; }
/* Pastilles de coloris : petit rebond */
.fx .pp-variant.fx-in { translate: 0 10px; scale: .9; }
.fx .pp-variant.fx-in.is-in { scale: 1; }

/* Ordinateur : la vignette d'univers s'incline vers la souris ; un halo suit le pointeur sur les cartes */
@media (hover: hover) and (pointer: fine) {
  .fx .universe-tile { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); will-change: transform; }
  .fx .universe-tile::before, .fx .product-card .product-photo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 65%);
  }
  .fx .universe-tile::before { z-index: 1; }
  .fx .universe-tile:hover::before, .fx .product-card:hover .product-photo::after { opacity: 1; }
}

/* Boutons principaux : un reflet balaie le bouton (au survol, et de temps en temps sur les boutons d'appel) */
.fx .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.fx .btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg) translateX(0);
}
.fx .btn-primary:hover::after { animation: shine .8s var(--ease); }
.fx .hero .btn-primary::after, .fx .mobile-bar .btn-primary::after, .fx .pp-bar .btn-primary::after, .fx #order-btn::after { animation: shine 1s var(--ease) 1.4s, shine 1s var(--ease) 5s infinite; }
@keyframes shine { 0% { transform: skewX(-18deg) translateX(0); } 60%, 100% { transform: skewX(-18deg) translateX(420%); } }

/* En-tête vitré quand on descend */
.fx-sentinel { height: 0; }
.site-header { transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.fx .site-header.is-scrolled { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 6px 24px -14px rgba(30, 34, 38, .35); }

/* Page de la pièce : la remise apparaît avec un petit rebond */
.fx .pp-price .deal-badge:not(.hidden) { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ---------- Bannière compacte (2026-11-17) : titre et bouton posés sur la photo, pas de bloc de garanties ---------- */
.hero { min-height: min(calc(100vh - 113px), 560px); }
.hero-link { display: inline-flex; align-items: center; min-height: 50px; padding: 0 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; color: inherit; }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; }
  .hero-media .hero-img, .hero-video { object-position: 50% 40%; }
  /* Voile sombre en bas de la photo pour lire le titre */
  .hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(0deg, rgba(14, 16, 18, .86) 0%, rgba(14, 16, 18, .5) 32%, rgba(14, 16, 18, 0) 62%); }
  .hero-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-block: 0 18px; color: #fff; }
  .hero-kicker { color: var(--deal); font-size: 12px; margin-bottom: 6px; }
  .hero h1 { font-size: clamp(24px, 5.6vw, 36px); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
  .hero .cta-row { flex-wrap: nowrap; align-items: center; gap: 14px; margin-top: 14px; }
  .hero .cta-row .btn { flex: none; min-height: 46px; padding: 0 22px; }
  .hero-link { color: #fff; min-height: 46px; }
}
@media (max-width: 640px) {
  .hero-inner { padding-block: 0 14px; }
  .hero h1 { font-size: 24px; }
  .hero .cta-row .btn { font-size: 15px; padding: 0 18px; }
}

/* Bannière : livraison gratuite et cadeau surprise, en étiquettes au-dessus du titre */
.hero-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-perks li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; font-size: 15px; line-height: 1.2; background: var(--emerald); color: #fff; box-shadow: 0 6px 18px -8px rgba(14, 122, 95, .6); }
.hero-perks li.is-gift { background: var(--deal); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(247, 201, 72, .8); }
.hero-perks b { font-weight: 800; }
.hero-perks .ico { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .hero-perks { gap: 6px; margin-bottom: 8px; }
  .hero-perks li { font-size: 13px; padding: 6px 10px 6px 8px; gap: 5px; }
  .hero-perks .ico { width: 15px; height: 15px; }
}
