/* La fiche produit /boutique, façon boutique en ligne (Grillé, Boku), charte Glossy. Page autonome : ni styles.css ni glossy.css. */
/* Un élément masqué (attribut hidden) reste masqué, même s'il a un display à lui : sans ça, les étapes photo du personnalisé
   s'affichaient avec le kit, et le choix de couverture avec le personnalisé. */
[hidden] { display: none !important; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/archivo-narrow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --papier: #F7F2EC;
  --studio: #ECE4DA;
  --noir: #16110F;
  --rose: #E8177F;
  --blush: #F7DCE8;
  --gris: #6B625C;
  --ligne: rgba(22, 17, 15, .14);
  --titre: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --etroit: "Archivo Narrow", "Arial Narrow", sans-serif;
  --chiffre: Anton, Impact, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--noir); font: 400 16px/1.5 var(--texte); overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

/* Bandeau et en-tête */
.annonce { background: var(--noir); color: var(--papier); font: 700 11.5px/1.35 var(--etroit); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding-block: 10px; margin: 0; }
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 236, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.entete__in { display: flex; justify-content: space-between; align-items: center; height: 56px; max-width: 1180px; margin: 0 auto; }
.entete__logo img { width: 104px; height: auto; }
.sac { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font: 700 14px/1 var(--texte); }
.sac svg { width: 24px; height: 24px; }
.sac__nb { min-width: 22px; height: 22px; border-radius: 99px; background: var(--noir); color: #fff; font: 700 12px/22px var(--texte); text-align: center; padding: 0 6px; }
.sac__nb:empty { display: none; }

/* Galerie et bloc d'achat : l'un sous l'autre au téléphone, côte à côte sur grand écran */
.produit { max-width: 1180px; margin: 0 auto; }
.galerie { position: relative; background: var(--studio); }
.galerie__piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galerie__piste::-webkit-scrollbar { display: none; }
.galerie__vue { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.galerie__vue img { width: 100%; height: 100%; object-fit: cover; }
.galerie__legende { position: absolute; left: 12px; bottom: 12px; background: rgba(247, 242, 236, .92); font: 700 12.5px/1.2 var(--texte); padding: 7px 10px; border-radius: 99px; }
.galerie__compte { position: absolute; right: 12px; top: 12px; background: rgba(22, 17, 15, .72); color: #fff; font: 700 12px/1 var(--texte); padding: 6px 9px; border-radius: 99px; }
.galerie__points { display: flex; justify-content: center; gap: 6px; padding-block: 12px 4px; }
.galerie__points span { width: 6px; height: 6px; border-radius: 99px; background: rgba(22, 17, 15, .22); transition: width .2s ease, background .2s ease; }
.galerie__points span.on { width: 18px; background: var(--noir); }
.vignettes { display: flex; gap: 8px; overflow-x: auto; padding-block: 8px 2px; scrollbar-width: none; }
.vignettes::-webkit-scrollbar { display: none; }
.vignettes button { flex: 0 0 56px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--studio); cursor: pointer; }
.vignettes button.on { border-color: var(--noir); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.ia { font-size: 12.5px; color: var(--gris); margin: 6px 0 0; }

.achat { padding-block: 18px 8px; display: grid; gap: 14px; min-width: 0; }
.kicker { font: 700 12px/1 var(--etroit); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin: 0; }
.achat h1 { font: 800 clamp(32px, 9vw, 44px)/1.02 var(--titre); letter-spacing: -.02em; margin: -4px 0 0; text-wrap: balance; }
.achat h1 em { font-style: italic; font-weight: 500; color: var(--rose); }
.preuve { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.3 var(--texte); text-decoration: none; border-bottom: 1px solid var(--rose); justify-self: start; padding-bottom: 2px; }
.preuve svg { width: 18px; height: 18px; flex: none; }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.prix b { font: 900 34px/1 var(--titre); letter-spacing: -.02em; }
.prix span { font-size: 15px; color: var(--gris); }
.par-invite { margin: -8px 0 0; font-size: 14px; color: var(--gris); }
.lancement { margin: -8px 0 0; font-size: 14px; font-weight: 600; color: var(--rose); }
.desc { margin: 0; }

.choix { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.choix legend { font: 700 12.5px/1 var(--etroit); letter-spacing: .14em; text-transform: uppercase; padding: 0; margin-bottom: 8px; }
.choix legend span { font: italic 500 15px/1 var(--titre); letter-spacing: 0; text-transform: none; color: var(--rose); margin-left: 4px; }
.puces { display: flex; gap: 8px; }
.puce { flex: 1; text-align: center; padding: 12px; border: 1.5px solid var(--ligne); border-radius: 99px; font-weight: 700; cursor: pointer; background: #fff; }
.puce:has(input:checked) { border-color: var(--noir); box-shadow: inset 0 0 0 1px var(--noir); background: var(--blush); }
.puce:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
.formule { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 12px; align-items: start; padding: 14px; border: 1.5px solid var(--ligne); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.formule:has(input:checked) { border-color: var(--noir); box-shadow: inset 0 0 0 1px var(--noir); }
.formule:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
.formule__rond { width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid var(--gris); margin-top: 2px; display: grid; place-items: center; }
.formule:has(input:checked) .formule__rond { border-color: var(--noir); }
.formule:has(input:checked) .formule__rond::after { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--rose); }
.formule__nom { font: 700 16px/1.25 var(--texte); }
.formule__desc { grid-column: 2 / 4; font-size: 14px; color: var(--gris); }
.formule__prix { text-align: right; font: 800 18px/1.1 var(--titre); white-space: nowrap; }
.formule__prix small { display: block; font: 400 12px/1.3 var(--texte); color: var(--gris); }
.formule__badge { position: absolute; top: -10px; left: 46px; background: var(--rose); color: #fff; font: 700 11px/1 var(--etroit); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; }
.couvertures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.couv { cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; text-align: center; font-size: 12.5px; font-weight: 700; }
.couv img { width: 100%; height: auto; aspect-ratio: 480 / 678; object-fit: cover; border-radius: 4px; border: 2px solid transparent; box-shadow: 0 1px 3px rgba(22, 17, 15, .18); }
.couv:has(input:checked) img { border-color: var(--noir); }
.couv:has(input:focus-visible) img { outline: 3px solid var(--rose); outline-offset: 2px; }
.couv__pour { font-size: 14px; color: var(--gris); margin: 2px 0 0; }
.etapes { margin: 0; padding: 14px 16px; background: var(--blush); border-radius: 12px; display: grid; gap: 8px; list-style: none; counter-reset: e; font-size: 15px; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.etapes li::before { content: counter(e); font: 400 16px/1.4 var(--chiffre); color: var(--rose); }

.bouton { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 14px 22px; border: 0; border-radius: 99px; background: var(--noir); color: #fff; font: 700 17px/1.2 var(--texte); cursor: pointer; text-decoration: none; transition: transform .14s ease; }
.bouton:active { transform: scale(.98); }
.bouton:disabled { opacity: .6; cursor: wait; }
.bouton--rose { background: var(--rose); }
.bouton--clair { background: transparent; color: var(--noir); border: 1.5px solid var(--noir); min-height: 46px; font-size: 15px; }
.pause { margin: 0; padding: 14px 16px; background: var(--blush); border-radius: 12px; }
.lignes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.lignes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.lignes svg { width: 20px; height: 20px; margin-top: 1px; }
.retract { font-size: 13px; color: var(--gris); margin: -6px 0 0; }
.confiance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-block: 16px; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); text-align: center; font: 700 12.5px/1.3 var(--texte); }
.confiance div { display: grid; justify-items: center; gap: 6px; }
.confiance svg { width: 26px; height: 26px; }
.plis details { border-bottom: 1px solid var(--ligne); }
.plis summary { list-style: none; cursor: pointer; padding: 17px 30px 17px 0; position: relative; font: 700 15px/1.3 var(--texte); }
.plis summary::-webkit-details-marker { display: none; }
.plis summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font: 400 26px/1 var(--texte); color: var(--rose); }
.plis details[open] summary::after { content: "−"; }
.plis details > div { padding-bottom: 16px; font-size: 15px; display: grid; gap: 8px; }
.plis p { margin: 0; }

/* Les sections sous l'achat */
.bloc { padding-block: 44px 8px; max-width: 820px; margin: 0 auto; }
.bloc h2 { font: 800 clamp(30px, 8.4vw, 42px)/1.02 var(--titre); letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.bloc h2 em { font-style: italic; font-weight: 500; color: var(--rose); }
.chapo { margin: 0 0 18px; color: var(--gris); max-width: 34em; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--noir); margin: 0; }
.compare__tete { padding: 12px 10px 12px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.compare__tete + .compare__tete { padding: 12px 0 12px 10px; border-left: 1px solid var(--ligne); }
.compare__tete img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.compare__tete b { font: 800 17px/1.15 var(--titre); }
.compare__tete--heymi b { color: var(--rose); }
.compare__ligne { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--ligne); }
.compare__ligne dt { grid-column: 1 / -1; font: 700 11.5px/1 var(--etroit); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); padding-top: 12px; }
.compare__ligne dd { margin: 0; padding: 6px 10px 12px 0; font-size: 14.5px; }
.compare__ligne dd + dd { padding: 6px 0 12px 10px; border-left: 1px solid var(--ligne); font-weight: 700; }
.rangee { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.rangee::-webkit-scrollbar { display: none; }
.rangee > * { scroll-snap-align: start; }
.page { flex: 0 0 min(64%, 260px); margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.page img { width: 100%; height: auto; aspect-ratio: 900 / 1273; object-fit: cover; box-shadow: 0 1px 2px rgba(22, 17, 15, .08), 0 14px 30px -16px rgba(22, 17, 15, .35); }
.page h3 { margin: 4px 0 0; font: 800 19px/1.15 var(--titre); }
.page p { margin: 0; font-size: 14.5px; color: var(--gris); }
.film { flex: 0 0 min(62%, 250px); margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.film video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--studio); }
.film figcaption { font: italic 500 17px/1.25 var(--titre); }
.note { font-size: 13px; color: var(--gris); margin: 6px 0 0; }
.garantie { margin-top: 12px; background: var(--noir); color: var(--papier); border-radius: 12px; padding: 20px 18px; display: grid; gap: 6px; }
.garantie b { font: 800 22px/1.15 var(--titre); }
.garantie b em { color: var(--blush); font-weight: 500; }
.garantie p { margin: 0; font-size: 15px; }
.garantie a { color: var(--blush); }
.bientot { flex: 0 0 min(44%, 190px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.bientot__une { position: relative; }
.bientot__une img { width: 100%; height: auto; aspect-ratio: 480 / 674; object-fit: cover; box-shadow: 0 10px 24px -14px rgba(22, 17, 15, .4); }
.bientot__une span { position: absolute; top: 8px; left: 8px; background: var(--noir); color: #fff; font: 700 11px/1 var(--etroit); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; }
.bientot b { font: 800 16px/1.2 var(--titre); }
.bientot p { margin: 0; font-size: 13.5px; color: var(--gris); min-height: 2.7em; }
.qui p { margin: 0 0 10px; max-width: 34em; }

.pied { background: var(--noir); color: var(--papier); padding-block: 34px 110px; margin-top: 48px; }
.pied__in { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; font-size: 14.5px; }
.pied img { width: 120px; height: auto; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied h2 { font: 700 12px/1 var(--etroit); letter-spacing: .14em; text-transform: uppercase; color: var(--blush); margin: 0 0 10px; }
.pied a { text-decoration: none; }
.pied__legal { font-size: 12px; opacity: .7; margin: 0; }

/* Barre d'achat qui suit le pouce */
.barre { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; transform: translateY(110%); transition: transform .28s cubic-bezier(.22, 1, .36, 1); background: rgba(247, 242, 236, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--ligne); padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.barre.on { transform: none; }
.barre img { width: 44px; height: 55px; object-fit: cover; border-radius: 4px; }
.barre b { display: block; font: 700 14px/1.2 var(--texte); }
.barre span { font-size: 13px; color: var(--gris); }
.barre .bouton { width: auto; min-height: 46px; padding: 10px 18px; font-size: 15px; }

/* Le panier qui monte du bas */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(22, 17, 15, .45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.voile.on { opacity: 1; pointer-events: auto; }
.panier { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 520px); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s .32s; background: var(--papier); border-radius: 18px 18px 0 0; padding-top: 8px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.panier.on { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.panier__poignee { width: 40px; height: 4px; border-radius: 99px; background: var(--ligne); justify-self: center; }
.panier__tete { display: flex; justify-content: space-between; align-items: center; }
.panier__tete h2 { font: 800 24px/1 var(--titre); margin: 0; }
.fermer { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.fermer svg { width: 24px; height: 24px; }
.panier__liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.article { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--ligne); }
.article img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; }
.article b { display: block; font-weight: 700; }
.article span { font-size: 13.5px; color: var(--gris); display: block; }
.article__prix { font: 800 17px/1 var(--titre); white-space: nowrap; }
.quantite { display: inline-flex; align-items: center; border: 1.5px solid var(--ligne); border-radius: 99px; margin-top: 8px; }
.quantite button { width: 36px; height: 34px; background: none; border: 0; cursor: pointer; font: 400 20px/1 var(--texte); }
.quantite button:disabled { opacity: .3; cursor: default; }
.quantite output { min-width: 22px; text-align: center; font-weight: 700; }
.retirer { background: none; border: 0; padding: 0; margin-left: 12px; font-size: 13px; text-decoration: underline; color: var(--gris); cursor: pointer; }
.panier__vide { margin: 0; color: var(--gris); }
.coup-de-pouce { background: var(--blush); border-radius: 12px; padding: 14px; display: grid; gap: 10px; font-size: 14.5px; margin-block: 4px 12px; }
.coup-de-pouce p { margin: 0; }
.totaux { display: grid; gap: 6px; font-size: 15px; }
.totaux div { display: flex; justify-content: space-between; }
.totaux .total { font-weight: 700; font-size: 17px; padding-top: 6px; border-top: 1px solid var(--ligne); }
.panier__note { font-size: 13px; color: var(--gris); margin: 0; text-align: center; }
.panier__erreur { margin: 0; color: #B0004F; font-weight: 700; text-align: center; }
.panier__erreur:empty { display: none; }
.continuer { justify-self: center; background: none; border: 0; padding: 8px; font: 700 14px/1 var(--texte); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; cursor: pointer; }
body.fige { overflow: hidden; }

@media (min-width: 900px) {
  .produit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 28px; }
  .produit__photos { position: sticky; top: 76px; }
  .galerie { border-radius: 8px; overflow: hidden; }
  .achat { padding-top: 0; }
  .pied__in { grid-template-columns: 1.2fr 1fr 1fr; }
  .barre { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.formule__badge:empty { display: none; }
.article .quantite { display: inline-flex; }
.article .plafond { margin-top: 6px; font-size: 12.5px; }
