/* Le site de vente. Mêmes couleurs, même fond et même verre que le livre. */
:root {
  --creme: #ece7de;
  --bordeaux: #7a1f2b;
  --texte: #1c1c1c;
  --doux: #55503f;
  --discret: #8a8371;
  --or: #b08a3e;
  --verre: rgba(250,247,240,.64);
  --verre-bord: rgba(255,255,255,.75);
  --verre-ombre: rgba(70,40,25,.22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--creme); color: var(--texte); font-family: 'Montserrat', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Le fond vivant, fixe derrière toute la page ---------- */
.fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.fond .callig { position: absolute; inset: 0; background: url(bg-calligraphie.jpg) 70% 0 / cover no-repeat; opacity: .95; }
.fond .halo { position: absolute; border-radius: 50%; filter: blur(40px); }
.fond .h1 { width: 80%; height: 45%; right: -25%; top: -8%; background: rgba(122,31,43,.30); }
.fond .h2 { width: 70%; height: 40%; left: -30%; top: 38%; background: rgba(176,138,62,.35); }
.fond .h3 { width: 90%; height: 40%; right: -30%; bottom: -12%; background: rgba(122,31,43,.22); }

.verre {
  background: var(--verre);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--verre-bord);
  box-shadow: 0 12px 32px -10px var(--verre-ombre), inset 0 1px 0 rgba(255,255,255,.35);
}

main { position: relative; z-index: 1; max-width: 460px; margin: 0 auto;
       padding: max(24px, env(safe-area-inset-top)) 16px 120px; display: flex; flex-direction: column; gap: 22px; }

/* ---------- La couverture ---------- */
.heros { text-align: center; }
.basmala { display: block; width: 58%; margin: 4px auto 22px; opacity: .9; }
.couv {
  display: block; width: 86%; margin: 0 auto; border-radius: 10px;
  box-shadow: 0 34px 50px -22px rgba(70,20,20,.5), 0 6px 14px -6px rgba(70,20,20,.3);
}

/* ---------- Plaques ---------- */
.plaque { border-radius: 30px; padding: 24px 22px; }
.etiquette { display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--or); text-align: center; }
.etiquette::before, .etiquette::after { content: ''; flex: 0 0 28px; height: 1px; background: var(--or); opacity: .5; }
h2 { font-family: 'EB Garamond', serif; font-weight: 600; font-size: 25px; line-height: 1.2; text-align: center;
     color: var(--bordeaux); margin-top: 8px; }
.para { font-family: 'EB Garamond', serif; font-size: 19px; line-height: 1.45; text-align: center; margin-top: 12px; }
.para b { color: var(--bordeaux); font-weight: 600; }

/* Le prix */
.prix { text-align: center; }
.prix .montant { font-family: 'EB Garamond', serif; font-size: 54px; font-weight: 600; color: var(--bordeaux); line-height: 1; margin-top: 12px; }
.prix .detail { font-size: 13px; color: var(--doux); margin-top: 8px; }
.accord { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 20px;
          font-size: 12.5px; line-height: 1.45; color: var(--doux); border-radius: 14px; padding: 4px; transition: background .2s; }
.accord input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--bordeaux); }
.accord a { color: var(--bordeaux); font-weight: 600; }
.accord.rappel { background: rgba(122,31,43,.12); }
.bouton { display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 999px; padding: 17px; text-align: center; text-decoration: none;
          background: var(--bordeaux); color: #fff; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600;
          letter-spacing: .04em; box-shadow: 0 12px 24px -10px rgba(122,31,43,.7), inset 0 1px 0 rgba(255,255,255,.25); cursor: pointer; transition: opacity .2s; }
.bouton[aria-disabled="true"] { opacity: .45; box-shadow: none; }
.garanties { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; align-items: center; }
.garanties li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--doux); }
.garanties svg, .rond svg, .icones svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.garanties svg { width: 18px; height: 18px; color: var(--or); }

/* La barre de progression, comme au bas des pages du livre */
.progres { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.ligne { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--doux); }
.ligne .qui { width: 78px; white-space: nowrap; }
.ligne .barre { flex: 1; height: 7px; border-radius: 99px; background: rgba(122,31,43,.14); overflow: hidden; }
.ligne .barre div { height: 100%; background: var(--bordeaux); border-radius: 99px; }
.ligne .pc { width: 48px; text-align: right; font-weight: 700; color: var(--bordeaux); }

/* Les pages du livre, en exemple, à faire glisser */
.exemples { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
            margin: -8px -16px 0; padding: 6px 16px 18px; scrollbar-width: none; }
.exemples::-webkit-scrollbar { display: none; }
.ecran {
  flex: 0 0 auto; width: 234px; height: 507px; border-radius: 30px; overflow: hidden; scroll-snap-align: center;
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 24px 40px -18px rgba(70,20,20,.5);
}
/* Une vraie page du livre, au format téléphone (390 × 844), réduite */
.ecran iframe { width: 390px; height: 844px; border: 0; transform: scale(.6); transform-origin: 0 0; pointer-events: none; }
.glisser { text-align: center; font-size: 12px; color: var(--discret); margin-top: -12px; }

/* Ce qu'il y a sur chaque page */
.liste { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.item { display: flex; gap: 14px; align-items: flex-start; }
.etoile { flex: 0 0 auto; width: 34px; height: 34px; position: relative; }
.etoile svg { position: absolute; inset: 0; }
.etoile b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            font-family: 'EB Garamond', serif; font-size: 16px; color: var(--bordeaux); font-weight: 600; }
.quoi { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.quoi b { font-size: 14px; font-weight: 600; color: var(--texte); }
.quoi span { font-family: 'EB Garamond', serif; font-size: 17px; line-height: 1.35; color: var(--doux); }

/* Ce que le livre apporte */
.rond { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
        background: var(--bordeaux); color: #fff; box-shadow: 0 8px 16px -8px rgba(122,31,43,.7); }
.rond svg { width: 24px; height: 24px; }
.apports { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.apports > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.apports > div + div { border-left: 1px solid rgba(176,138,62,.35); }
.apports b { margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.apports span:last-child { margin-top: 4px; font-family: 'EB Garamond', serif; font-size: 15px; line-height: 1.3; color: var(--doux); }

/* Questions */
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid rgba(176,138,62,.3); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
               padding: 15px 2px; font-size: 14.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--bordeaux); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-family: 'EB Garamond', serif; font-size: 17px; line-height: 1.45; color: var(--doux); padding: 0 2px 16px; }

/* Œuvre caritative */
.coeur { text-align: center; }
.coeur h2 { margin-top: 14px; }
.coeur .para { margin-top: 8px; }

/* Réseaux */
.reseaux { padding-top: 6px; }
.icones { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.icones a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bordeaux);
            background: var(--verre); border: 1px solid var(--verre-bord); box-shadow: 0 8px 20px -10px var(--verre-ombre);
            -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.icones svg { width: 24px; height: 24px; }
.icones .plein { fill: currentColor; }

/* Pied de page */
.pied { text-align: center; font-size: 12px; line-height: 1.6; color: var(--doux); padding-top: 4px; }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.pied nav a { color: var(--texte); text-decoration: none; font-weight: 500; }

/* Capsule d'achat, toujours visible en bas, comme la barre d'onglets de l'app */
.achat {
  position: fixed; z-index: 2; left: 50%; transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 428px;
  border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px; transition: opacity .25s, transform .25s;
}
.achat .t { display: flex; flex-direction: column; line-height: 1.2; }
.achat .t b { font-family: 'EB Garamond', serif; font-size: 22px; font-weight: 600; color: var(--bordeaux); }
.achat .t span { font-size: 11px; color: var(--discret); }
.achat .bouton { width: auto; margin: 0; padding: 13px 26px; font-size: 15px; }

/* ---------- Page des conditions ---------- */
.retour { align-self: flex-start; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--bordeaux); }
.juridique h2 { text-align: left; font-size: 23px; margin-top: 0; }
.juridique h3 { font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-top: 18px; }
.juridique p, .juridique li { font-family: 'EB Garamond', serif; font-size: 17px; line-height: 1.45; color: var(--texte); margin-top: 6px; }
.juridique ul { padding-left: 20px; }
.juridique .date { font-family: 'Montserrat', sans-serif; font-size: 12px; color: var(--discret); margin-top: 4px; }
.aremplir { background: rgba(176,138,62,.22); border-radius: 4px; padding: 0 4px; font-family: 'Montserrat', sans-serif; font-size: 13px; }
.achat.masque { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.prep { font-style: italic; color: var(--discret); }
