/* YANS BOOK — une seule feuille de style. Blanc, noir luxueux et or. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-700.9401d0214a93.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.756049f32875.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #0b0b0b;
  --texte: #1a1a1a;
  --gris-fonce: #2a2a2a;
  --gris-moyen: #3a3a3a;
  --gris: #4a4a4a;
  --gris-doux: #5e5e5e;
  --gris-clair: #6b6b6b;
  --ligne: #eceae4;
  --bord: #d9d5cb;
  --bord-clair: #e6e2d8;
  --creme: #f7f6f2;
  --sable: #f3f1ec;
  --or: #b8924a;
  --or-fonce: #85662b;
  --or-pale: #fbf7ee;
  --or-bord: #eaddbf;
  --erreur: #8a2c1f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --brillant: linear-gradient(180deg, #2b2b2b 0%, #0b0b0b 55%, #000 100%);
  --ombre-bouton: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 28px -10px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.sans-defilement { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--texte);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--noir); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, p, ul { margin: 0; }
[hidden] { display: none !important; }
/* Aucune barre de défilement grise, ni sur la page ni dedans : on fait défiler à la molette ou au doigt. */
html, html * { scrollbar-width: none; }
html::-webkit-scrollbar, html *::-webkit-scrollbar { display: none; }
.lecteur {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.conteneur { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.conteneur--large { max-width: 1080px; }

/* ---------- En-tête et bas de page ---------- */

.entete {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 16px 14px; border-bottom: 1px solid var(--ligne);
}
.marque {
  font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.2;
  letter-spacing: 0.22em; padding-left: 0.22em; color: var(--noir); text-decoration: none;
}
.marque-trait { width: 32px; height: 2px; border-radius: 2px; background: var(--or); }
.marque--blanche { color: #fff; font-size: 22px; }

.pied {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 36px 16px 28px; background: var(--noir); color: #fff; text-align: center;
}
.pied-marque { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pied-marque .marque-trait { width: 28px; }
.pied-copyright { font-size: 12px; color: #a8a8a8; }
.pied-credits, .pied-credits a { font-size: 11px; color: #8f8f8f; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; }
.pied-liens a { padding: 6px 0; font-size: 13px; color: #d6d6d6; }

/* Bandeau d'annonce de la boutique */
.annonce {
  padding: 10px 16px; background: var(--noir); color: #fff; text-align: center;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
}

/* Pages légales */
.page-legale { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; padding-bottom: 48px; }
.page-legale .texte p { margin-bottom: 12px; }

/* Réponse de YANS BOOK sous un avis */
.reponse-avis {
  padding: 10px 12px; border-radius: 10px; background: #fff; border-left: 3px solid var(--or);
  font-size: 13px; color: var(--gris-moyen);
}
.reponse-avis strong { display: block; margin-bottom: 2px; font-size: 12px; color: var(--noir); }

/* ---------- Textes ---------- */

.intro { display: flex; flex-direction: column; gap: 8px; }
.surtitre {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gris-doux);
}
.titre-livre, .titre-page {
  font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--noir);
}
.titre-livre { font-size: 30px; }
.titre-page { font-size: 28px; }
.titre-section { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--noir); }
.accroche { font-size: 15px; color: var(--gris); }
.petit { font-size: 12.5px; line-height: 1.55; color: var(--gris-doux); }
.centre { text-align: center; }
.erreur { font-size: 13.5px; font-weight: 700; color: var(--erreur); }
.reference { font-size: 12.5px; color: var(--gris-clair); }

/* ---------- Boutons ---------- */

.bouton {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 62px; padding: 0 20px;
  border: 0; border-radius: 14px; background: var(--brillant); box-shadow: var(--ombre-bouton);
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 0.12em;
  text-align: center; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bouton:hover { color: #fff; filter: brightness(1.18); }
.bouton:disabled { opacity: 0.7; cursor: wait; }
.bouton svg { flex: none; }
.bouton--moyen { height: 58px; font-size: 15.5px; letter-spacing: 0.08em; }
.bouton--geant { height: 68px; border-radius: 16px; letter-spacing: 0.08em; }
.bouton--contour {
  height: 52px; background: #fff; border: 1.5px solid var(--noir); box-shadow: none;
  color: var(--noir); font-size: 15px; letter-spacing: 0.06em;
}
.bouton--contour:hover { color: var(--noir); background: var(--creme); filter: none; }

/* ---------- Page du livre ---------- */

.page-livre { padding-top: 18px; padding-bottom: 40px; }

/* Bannière 16:9 et couverture 2:3 à la même hauteur, sans jamais rien couper :
   chaque image prend une largeur proportionnelle à sa forme (16/9 → 16, 2/3 → 6). */
.visuel { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.visuel-presentation {
  flex: 16 1 0; min-width: 0; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
  border-radius: 10px; background: var(--sable);
}
.visuel-couverture {
  flex: 6 1 0; min-width: 0; aspect-ratio: 2 / 3; height: auto; object-fit: cover;
  border-radius: 6px; background: var(--noir); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
}
.visuel--seul { justify-content: center; }
.visuel--seul .visuel-couverture { flex: none; width: 160px; }

.prix {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 4px 12px; margin-top: 24px;
}
.prix-barre { font-size: 16px; font-weight: 600; color: var(--gris-clair); text-decoration: line-through; }
.prix-actuel { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; color: var(--noir); }

.encadre-or {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: var(--or-pale); border: 1px solid var(--or-bord);
  font-size: 13.5px; line-height: 1.45; color: var(--gris-fonce); text-align: left;
}
.encadre-or svg { flex: none; margin-top: 1px; color: var(--or-fonce); }
.alerte-promo { margin-top: 14px; }

.rebours { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.rebours-titre {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gris-moyen);
}
.rebours-cases { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rebours-case {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 8px;
  border-radius: 12px; background: var(--noir); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.rebours-case span { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.rebours-case small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: #bdbdbd; }

.bouton-achat { margin-top: 20px; }

.confiance { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.confiance p { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris); }
.confiance .securise { font-weight: 600; color: var(--gris-moyen); }
/* Une seule ligne : centrée si elle tient, sinon on la fait glisser du doigt. */
.moyens {
  display: flex; flex-wrap: nowrap; gap: 6px; max-width: 100%;
  overflow-x: auto; padding: 0; list-style: none; scrollbar-width: none;
}
.moyens::-webkit-scrollbar { display: none; }
.moyens li:first-child { margin-left: auto; }
.moyens li:last-child { margin-right: auto; }
.moyens li {
  flex: none; padding: 4px 8px; border-radius: 999px; border: 1px solid #e2dfd7;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--gris-moyen);
}
/* « Prix exact : … FCFA » sous un prix converti */
.devise p { margin-top: 8px; font-size: 12.5px; color: var(--gris-doux); text-align: center; }

.separateur { height: 1px; margin: 28px 0 0; border: 0; background: var(--ligne); }

/* Onglets Aperçu / Avis */
.onglets { margin-top: 24px; }
.onglets-boutons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.onglet {
  height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1.5px solid var(--bord); background: #fff; color: var(--noir);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.onglet.actif { background: var(--noir); border-color: var(--noir); color: #fff; }
/* « clip » empêche le navigateur de faire glisser le tiroir quand on touche une flèche. */
.tiroir { max-height: 0; overflow: hidden; overflow: clip; transition: max-height 0.4s ease; }
.tiroir.ouvert { max-height: 1100px; }
.piste { display: flex; align-items: flex-start; width: 200%; transition: transform 0.35s ease; }
.piste[data-actif="avis"] { transform: translateX(-50%); }
.volet { width: 50%; min-width: 0; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
/* Le volet caché ne prend pas de hauteur : pas de grand vide sous les avis. */
.piste[data-actif="avis"] > .volet:first-child,
.piste[data-actif="apercu"] > .volet:last-child { max-height: 0; overflow: hidden; overflow: clip; }

.visionneuse { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.visionneuse-ligne { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.fleche {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1.5px solid var(--bord); background: #fff; color: var(--noir); cursor: pointer;
}
.fleche:disabled { opacity: 0.35; cursor: default; }
.visionneuse-page {
  width: 240px; max-width: calc(100% - 104px); aspect-ratio: 1 / 1.414; overflow: hidden;
  border-radius: 6px; background: #fff; border: 1px solid var(--bord-clair);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.45);
}
.visionneuse-page { position: relative; }
.visionneuse-page img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.bouton-agrandir {
  position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 11px; border: 0; border-radius: 999px; background: rgba(11, 11, 11, 0.86); color: #fff;
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
}

/* Aperçu en grand : la page de vente reste derrière, assombrie */
.loupe {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: rgba(6, 6, 6, 0.9); color: #fff;
}
.loupe-haut { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; }
.loupe-compteur { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.loupe-outils { display: flex; gap: 8px; }
.loupe-bouton {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
}
.loupe-bouton[aria-pressed="true"] { background: #fff; color: var(--noir); }
.loupe-scene {
  flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center;
  padding: 0 64px 20px; overscroll-behavior: contain;
}
.loupe-scene img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: #fff;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); cursor: zoom-in;
}
.loupe-scene.zoom { display: block; padding: 0 0 20px; cursor: grab; }
.loupe-scene.zoom.prise { cursor: grabbing; user-select: none; }
.loupe-scene.zoom img { display: block; max-width: none; max-height: none; height: auto; margin: 0 auto; cursor: inherit; }
.loupe-fleche {
  position: absolute; top: 50%; z-index: 1; width: 48px; height: 48px; margin-top: -24px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--noir); cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}
.loupe-fleche:disabled { opacity: 0.3; cursor: default; }
.loupe-fleche--gauche { left: 8px; }
.loupe-fleche--droite { right: 8px; }
@media (max-width: 600px) {
  .loupe-scene { padding: 0 8px 16px; }
  .loupe-fleche { width: 42px; height: 42px; margin-top: -21px; background: rgba(255, 255, 255, 0.85); }
}
.visionneuse-compteur { font-size: 13px; font-weight: 700; }
.points-pages { display: flex; align-items: center; gap: 6px; }
.point { width: 6px; height: 6px; border-radius: 3px; background: var(--bord); transition: width 0.25s, background 0.25s; }
.point.actif { width: 18px; background: var(--noir); }

.avis-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.avis-resume span:last-child { color: var(--gris-doux); }
.etoiles { display: inline-flex; gap: 2px; color: var(--or); }
/* Avis : d'abord ceux sur l'achat (mis en avant), puis ceux sur le livre */
.avis-groupe { display: flex; flex-direction: column; gap: 8px; }
.avis-groupe + .avis-groupe { margin-top: 10px; }
.avis-groupe-titre { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-moyen); }
.avis-groupe--achat .avis-groupe-titre { color: var(--or-fonce); }
.carte-avis--achat { background: var(--or-pale); border-color: var(--or-bord); }
.avis-recommande { font-size: 12.5px; font-weight: 700; color: #17733d; }

/* Les avis défilent doucement, en boucle. Ils s'arrêtent sous le doigt ou la souris. */
.defilant {
  overflow-x: auto; padding-bottom: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.defilant-piste { display: flex; align-items: flex-start; gap: 12px; width: max-content; }
.defilant.anime { overflow: hidden; }
.defilant.anime .defilant-piste { animation: yb-defile var(--duree, 40s) linear infinite; }
.defilant.anime:hover .defilant-piste, .defilant.anime:focus-within .defilant-piste,
.defilant.anime.pause .defilant-piste, .tiroir:not(.ouvert) .defilant-piste,
.piste[data-actif="apercu"] .defilant-piste { animation-play-state: paused; }
/* La piste contient les avis deux fois : en avançant d'une longueur, la boucle ne se voit pas. */
@keyframes yb-defile { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .defilant.anime { overflow-x: auto; }
  .defilant.anime .defilant-piste { animation: none; }
}
.carte-avis {
  flex: none; width: 280px; max-width: 80vw;
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: 14px; background: var(--creme); border: 1px solid var(--ligne);
}
.carte-avis p { font-size: 14px; line-height: 1.55; color: var(--gris-fonce); }
.carte-avis-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.carte-avis-nom { font-size: 15px; font-weight: 700; color: var(--noir); }
.badge-verifie {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--or-fonce);
}
.glisser { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gris-moyen); }

/* Description et FAQ */
.bloc { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.texte { font-size: 15px; line-height: 1.6; color: var(--gris-fonce); }
.texte p + p { margin-top: 10px; }
/* Description mise en forme dans le tableau de bord */
.description > * + * { margin-top: 12px; }
.description h1, .description h2, .description h3 { font-family: var(--serif); line-height: 1.25; color: var(--noir); }
.description h1 { font-size: 24px; }
.description h2 { font-size: 21px; }
.description h3 { font-size: 18px; }
.description ul, .description ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.description li::marker { color: var(--or-fonce); font-weight: 700; }
.description blockquote {
  padding: 10px 14px; border-left: 3px solid var(--or); border-radius: 4px; background: var(--or-pale); font-style: italic;
}
.description a { color: var(--or-fonce); font-weight: 600; }
.description img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.description iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.description .ql-align-center { text-align: center; }
.description .ql-align-right { text-align: right; }
.description .ql-align-justify { text-align: justify; }
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; font-size: 15px; font-weight: 700; color: var(--noir);
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chevron { flex: none; transition: transform 0.2s; }
.faq details[open] .chevron { transform: rotate(180deg); }
.faq details p { padding-bottom: 16px; font-size: 14.5px; line-height: 1.6; color: var(--gris-moyen); }

/* Dernier bouton d'achat */
.encart-final {
  display: flex; flex-direction: column; gap: 14px; margin-top: 34px; padding: 18px;
  border-radius: 16px; background: var(--creme); border: 1px solid var(--ligne);
}
.encart-livre { display: flex; align-items: center; gap: 12px; text-align: left; }
.encart-livre > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.encart-livre--petit {
  width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--creme); border: 1px solid var(--ligne);
}
.mini-couverture { flex: none; width: 44px; height: 66px; object-fit: cover; border-radius: 4px; background: var(--noir); }
.encart-titre { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--noir); }
.encart-prix { font-size: 14px; color: var(--gris-moyen); }
.encart-prix s { color: var(--gris-clair); }
.encart-prix strong { color: var(--noir); }

/* Bouton qui suit le client en bas de l'écran */
.barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--ligne);
  box-shadow: 0 -12px 24px -14px rgba(0, 0, 0, 0.3);
  transform: translateY(115%); visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.barre-achat.visible { transform: translateY(0); visibility: visible; }
.bouton--barre { max-width: 528px; margin: 0 auto; height: 56px; font-size: 17px; letter-spacing: 0.1em; }
.bouton--barre span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: #d9d9d9; }

/* Panneau « Plus qu'une étape » */
.feuille {
  position: fixed; inset: 0; z-index: 30; display: none;
  flex-direction: column; justify-content: flex-end; background: rgba(11, 11, 11, 0.5);
}
html:not(.js) .feuille:target, .feuille.ouverte { display: flex; }
.feuille-panneau {
  width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 10px 16px calc(22px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.5);
}
.poignee { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--bord); }
.feuille-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feuille-tete p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--gris); }
.feuille-titre { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--noir); }
.fermer {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--sable); color: var(--noir);
}
.feuille .mini-couverture { width: 36px; height: 54px; }
.feuille .encart-titre { font-size: 15px; }

.formulaire { display: flex; flex-direction: column; gap: 14px; }
.champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label { font-size: 14px; font-weight: 700; color: var(--texte); }
.champ input, .champ select, .champ textarea, .recherche input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--bord); background: #fff; color: var(--noir); font-size: 16px;
}
.champ input:focus, .champ select:focus, .recherche input:focus { outline: 2px solid var(--noir); outline-offset: 1px; }
.champ-telephone { display: flex; gap: 8px; }
.champ-telephone select { flex: none; width: 108px; padding: 0 8px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note-confiance { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--gris); }
.note-confiance svg { flex: none; margin-top: 1px; color: var(--or-fonce); }

/* ---------- Confirmation et téléchargement ---------- */

.page-centre {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding-top: 40px; padding-bottom: 56px; text-align: center;
}
.bloc-titre { display: flex; flex-direction: column; gap: 6px; }
.pastille {
  width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 999px;
}
.pastille--noire { background: var(--noir); color: var(--or); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55); }
.pastille--sable { background: var(--sable); border: 1.5px solid #e2dfd7; color: var(--noir); }
.pastille--pop { animation: yb-pop 0.45s ease-out both; }
.pastille--petite { width: 64px; height: 64px; }

/* ---------- Pages Don, Commentaire, Avis ---------- */

.page-formulaire { display: flex; flex-direction: column; gap: 18px; padding-top: 26px; padding-bottom: 40px; }
.intro--centre { align-items: center; text-align: center; gap: 12px; }
.champ textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; font-family: inherit; }
.champ-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.compteur { font-size: 12px; color: var(--gris-clair); font-variant-numeric: tabular-nums; }
.facultatif { font-weight: 600; color: var(--gris-clair); }
.note-confiance--centre { justify-content: center; text-align: center; }
.note-confiance a { font-weight: 700; color: var(--noir); text-underline-offset: 3px; }
.page-merci { min-height: 70vh; }
.page-merci .bouton { max-width: 420px; }

/* Les étoiles de la note : sans JavaScript, celle qu'on touche allume aussi celles d'avant */
.note {
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 16px 12px 14px;
  border-radius: 16px; background: var(--creme); border: 1px solid var(--ligne);
}
.note legend { float: left; width: 100%; padding: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--texte); }
.note-etoiles { display: flex; flex-direction: row-reverse; justify-content: center; gap: 2px; }
.note-etoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.note-etoiles label { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.note-etoiles svg { fill: none; stroke: #8f897c; transition: fill 0.15s, stroke 0.15s, transform 0.15s; }
.note-etoiles input:checked ~ label svg,
.note-etoiles label:hover svg, .note-etoiles label:hover ~ label svg { fill: var(--or); stroke: var(--or); }
.note-etoiles input:focus-visible + label { outline: 2px solid var(--noir); outline-offset: 2px; border-radius: 8px; }
.note-etoiles label:active svg { transform: scale(0.9); }
.note-texte { min-height: 20px; font-size: 14px; font-weight: 700; color: var(--gris-doux); }
.note-texte::after { content: "Touche une étoile pour noter"; }
.note:has(#note-1:checked) .note-texte::after { content: "Pas aimé"; color: var(--noir); }
.note:has(#note-2:checked) .note-texte::after { content: "Moyen"; color: var(--noir); }
.note:has(#note-3:checked) .note-texte::after { content: "Bien"; color: var(--noir); }
.note:has(#note-4:checked) .note-texte::after { content: "Très bien"; color: var(--noir); }
.note:has(#note-5:checked) .note-texte::after { content: "Excellent !"; color: var(--noir); }

/* Page « Faire un don » */
.don-entete { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.don-emoji {
  width: 104px; height: 104px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: radial-gradient(circle, var(--or-pale) 0%, #f3e6c8 100%);
  font-size: 58px; line-height: 1; box-shadow: 0 16px 34px -20px rgba(133, 102, 43, 0.8);
}
.page-don .titre-page { font-size: 30px; }
.don-merci {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 16px;
  background: var(--or-pale); border: 1px solid var(--or-bord); border-left: 4px solid var(--or);
}
.don-merci-titre {
  display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 22px; color: var(--noir);
}
.don-merci-titre svg { color: #c0392b; }
.don-merci .texte { font-size: 15.5px; color: var(--gris-fonce); }
.don-etapes { display: flex; flex-direction: column; gap: 12px; }
.don-etapes ol { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.don-etapes li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.don-etapes li span {
  flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--noir); color: var(--or); font-size: 13px; font-weight: 800;
}
.don-etapes li p { padding-top: 3px; }
.don-etapes a { font-weight: 700; color: var(--noir); text-underline-offset: 3px; }
.don-signaler { margin-top: 6px; gap: 10px; }

/* Avis sur l'achat : demandé sur la page de téléchargement */
.demande-avis {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px;
  border-radius: 16px; background: var(--or-pale); border: 1px solid var(--or-bord); text-align: center;
}
.demande-avis-titre { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--noir); }
.demande-avis p { font-size: 14px; color: var(--gris-fonce); }
.petit-lien { font-size: 13px; font-weight: 600; color: var(--gris-moyen); text-underline-offset: 3px; }
.choix-recommande { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.choix-recommande legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--texte); }
.choix-recommande-boutons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choix-recommande-boutons input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix-recommande-boutons label {
  height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1.5px solid var(--bord); background: #fff; font-size: 15px; font-weight: 700; color: var(--noir); cursor: pointer;
}
.choix-recommande-boutons input:checked + label { background: var(--noir); border-color: var(--noir); color: #fff; }
.choix-recommande-boutons input:focus-visible + label { outline: 2px solid var(--noir); outline-offset: 2px; }

/* Moyens de don */
.sous-titre-section { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-moyen); }
.carte-don {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--bord-clair); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.35);
}
.carte-don-tete { display: flex; align-items: center; gap: 12px; }
.carte-don-tete > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.carte-don-tete strong { font-size: 16px; font-weight: 800; color: var(--noir); }
.carte-don-icone {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--noir); color: var(--or);
}
.carte-don-type { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--or-fonce); }
.carte-don-numero {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  border-radius: 12px; background: var(--creme); border: 1px solid var(--ligne);
}
.carte-don-numero > span {
  flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--noir); font-variant-numeric: tabular-nums;
}
.bouton-copier {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  border-radius: 10px; border: 1.5px solid var(--noir); background: #fff; color: var(--noir);
  font: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.bouton-copier.copie { background: var(--noir); color: #fff; }
.rond-chargement {
  width: 84px; height: 84px; border-radius: 999px;
  border: 5px solid var(--ligne); border-top-color: var(--or);
  animation: yb-tourne 0.9s linear infinite;
}
.progression { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.progression p { font-size: 13.5px; font-weight: 600; color: var(--gris-moyen); }
.progression-barre { height: 6px; overflow: hidden; border-radius: 3px; background: var(--ligne); }
.progression-barre span { display: block; height: 100%; border-radius: 3px; background: var(--noir); animation: yb-remplit 2s ease-in-out both; }
.pile-boutons { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.page-telechargement { gap: 14px; padding-top: 24px; }
.etiquette-or {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--noir); color: var(--or); font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
}
.couverture-grande {
  width: 150px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px;
  background: var(--noir); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.6);
}

@keyframes yb-tourne { to { transform: rotate(360deg); } }
@keyframes yb-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes yb-remplit { from { width: 0; } to { width: 100%; } }

/* ---------- Boutique ---------- */

.page-boutique { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; padding-bottom: 40px; }
.recherche { position: relative; }
.recherche svg { position: absolute; left: 14px; top: 15px; color: var(--gris-doux); pointer-events: none; }
.recherche input { padding-left: 44px; }
.puces { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puce {
  flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--bord); background: #fff;
  color: var(--noir); font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.puce.active { background: var(--noir); border-color: var(--noir); color: #fff; }
.compte { font-size: 13px; font-weight: 600; color: var(--gris-doux); }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
.carte-livre { display: flex; flex-direction: column; gap: 10px; }
.carte-lien { flex: 1; display: flex; flex-direction: column; gap: 8px; color: var(--noir); text-decoration: none; }
.bouton--carte { height: 44px; padding: 0 12px; border-radius: 11px; font-size: 14px; letter-spacing: 0.1em; }
.carte-couverture {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px;
  background: var(--noir); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.55);
}
.carte-titre { font-size: 15px; font-weight: 700; line-height: 1.3; }
.carte-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; }
.carte-prix s { font-size: 13px; color: var(--gris-clair); }
.carte-prix strong { font-weight: 800; }
.vide {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px;
  border-radius: 16px; background: var(--creme); text-align: center; color: var(--gris-doux);
}
.vide-titre { font-size: 16px; font-weight: 700; color: var(--noir); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; }
.pagination .bouton { width: auto; height: 44px; padding: 0 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
