/* ==========================================================================
   HIKAYTI : FEUILLE DE STYLE
   ========================================================================== */
:root {
  --creme: #FBF6EF;
  --creme-2: #F5EDE2;
  --bleu-pale: #EAF3F8;
  --bleu: #6E9CC8;
  --bleu-fonce: #4F7FAE;
  --rose: #D9897A;
  --rose-fonce: #C06A5A;
  --rose-pale: #F7E3DD;
  --or: #E9B75A;
  --brun: #3E2C26;
  --brun-2: rgba(62, 44, 38, .74);
  --brun-3: rgba(62, 44, 38, .5);
  --trait: rgba(62, 44, 38, .1);
  --blanc: #fff;
  --vert: #3C9A6B;
  --r: 22px;
  --ombre: 0 10px 30px rgba(62, 44, 38, .09);
  --ombre-forte: 0 22px 55px rgba(62, 44, 38, .18);
  --f-titre: "Fredoka", system-ui, sans-serif;
  --f-texte: "Nunito", system-ui, sans-serif;
}
html[lang="ar"] {
  --f-titre: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --f-texte: "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.8; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titre); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); text-align: center; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
.conteneur { width: min(1160px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }
section { padding: 76px 0; position: relative; }
.sous-titre { text-align: center; color: var(--brun-2); max-width: 660px; margin: -4px auto 40px; font-size: 1.08rem; }
.centre { text-align: center; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- bandeau et entête ---------- */
.bandeau {
  background: var(--rose);
  color: #fff;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  padding: 8px 14px;
}
.entete {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 246, 239, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-texte { display: flex; flex-direction: column; line-height: 1; }
.logo-texte b { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; }
.logo-texte span { font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 600; font-size: .92rem; color: var(--rose-fonce); margin-top: 1px; }
.menu { display: flex; gap: 24px; margin-inline-start: auto; font-weight: 700; font-size: .96rem; }
.menu a { text-decoration: none; opacity: .82; transition: opacity .15s, color .15s; }
.menu a:hover { opacity: 1; color: var(--rose-fonce); }
.langues { display: flex; border: 1.5px solid var(--trait); border-radius: 99px; padding: 3px; background: #fff; }
.langues button { border: 0; background: none; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: .88rem; cursor: pointer; color: var(--brun-2); }
.langues button[aria-pressed="true"] { background: var(--brun); color: #fff; }
.langues button:lang(ar) { font-family: "Tajawal", sans-serif; }

/* ---------- boutons ---------- */
.btn {
  --forme: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
  padding: 15px 30px;
  border-radius: var(--forme);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-plein { background: var(--rose); color: #fff; box-shadow: 0 10px 22px rgba(217, 137, 122, .38); }
.btn-plein:hover { background: var(--rose-fonce); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(192, 106, 90, .38); }
.btn-bleu { background: var(--bleu); color: #fff; box-shadow: 0 10px 22px rgba(110, 156, 200, .35); }
.btn-bleu:hover { background: var(--bleu-fonce); transform: translateY(-2px); }
.btn-contour { background: transparent; color: var(--brun); box-shadow: inset 0 0 0 2px rgba(62, 44, 38, .22); }
.btn-contour:hover { box-shadow: inset 0 0 0 2px var(--brun); }
.btn-blanc { background: #fff; color: var(--brun); box-shadow: var(--ombre); }
.btn-petit { padding: 10px 20px; font-size: .96rem; }
.btn-large { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- pastilles ---------- */
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 34px; max-width: 820px; }
.pastille {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(62, 44, 38, .08);
  border-radius: 99px;
  padding: 7px 15px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brun);
}
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: .86rem;
  font-weight: 800;
  box-shadow: var(--ombre);
  margin-bottom: 18px;
}

/* ---------- vagues ---------- */
.vague { display: block; width: 100%; height: 70px; }
.vague path { fill: currentColor; }
.fond-rose { background: var(--rose-pale); }
.fond-bleu { background: var(--bleu-pale); }
.fond-creme2 { background: var(--creme-2); }
.fond-blanc { background: #fff; }
.c-rose { color: var(--rose-pale); }
.c-bleu { color: var(--bleu-pale); }
.c-creme { color: var(--creme); }
.c-creme2 { color: var(--creme-2); }
.c-blanc { color: #fff; }
.vague-bloc { line-height: 0; margin-top: -1px; }

/* ---------- héro ---------- */
.hero { padding: 58px 0 40px; background: linear-gradient(180deg, var(--bleu-pale) 0%, var(--creme) 100%); overflow: hidden; }
.hero .conteneur { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero p.intro { font-size: 1.16rem; color: var(--brun-2); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.rassurance { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; font-weight: 700; color: var(--brun-2); }
.rassurance span::before { content: "✓"; color: var(--vert); font-weight: 900; margin-inline-end: 6px; }
.scene-livre { position: relative; display: grid; place-items: center; padding: 20px 10px 30px; }
.livre-3d {
  position: relative;
  width: min(390px, 82%);
  aspect-ratio: 782 / 1040;
  transform: perspective(1400px) rotateY(-14deg) rotateX(3deg);
  transform-origin: 30% 50%;
  animation: flotte 6s ease-in-out infinite;
}
html[dir="rtl"] .livre-3d { transform: perspective(1400px) rotateY(14deg) rotateX(3deg); transform-origin: 70% 50%; }
.livre-3d img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px 14px 14px 5px; box-shadow: var(--ombre-forte), 18px 22px 40px rgba(62, 44, 38, .22); }
.livre-3d::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7%;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .18) 60%, rgba(0, 0, 0, .05));
  z-index: 2;
}
.livre-3d::after {
  content: "";
  position: absolute;
  top: 1.2%;
  bottom: 1.2%;
  right: -9px;
  width: 10px;
  background: repeating-linear-gradient(180deg, #f3ece0 0 2px, #e3d8c7 2px 3px);
  border-radius: 0 4px 4px 0;
  transform: translateZ(-1px);
}
@keyframes flotte { 50% { translate: 0 -10px; } }
.badge-flottant {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: var(--ombre-forte);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-flottant.b1 { bottom: 30%; inset-inline-start: 0; }
.badge-flottant.b2 { bottom: 7%; inset-inline-end: 0; }
.badge-flottant i { font-style: normal; font-size: 1.3rem; }

/* ---------- preuve photo ⇔ page ---------- */
.carrousel { position: relative; max-width: 980px; margin: 0 auto; }
.piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 20px; scrollbar-width: none; border-radius: var(--r); }
.piste::-webkit-scrollbar { display: none; }
.diapo { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; background: #fff; padding: 14px; border-radius: var(--r); box-shadow: var(--ombre); position: relative; }
.diapo figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.diapo figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.diapo figcaption { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: .82rem; }
.echange {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bleu);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(79, 127, 174, .4);
  z-index: 2;
  margin-left: -4.5%;
}
html[dir="rtl"] .echange { margin-left: 4.5%; }
.fleche {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: var(--ombre-forte);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  z-index: 3;
}
.fleche.prec { inset-inline-start: -22px; }
.fleche.suiv { inset-inline-end: -22px; }
html[dir="rtl"] .fleche span { display: inline-block; transform: scaleX(-1); }
.points { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.points button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(62, 44, 38, .2); cursor: pointer; padding: 0; transition: width .2s; }
.points button[aria-current="true"] { width: 26px; background: var(--rose); }
.note-exemple { text-align: center; font-size: .85rem; color: var(--brun-3); font-style: italic; margin-top: 10px; }
.texte-large { max-width: 760px; margin: 30px auto 0; text-align: center; color: var(--brun-2); }

/* ---------- vidéo ---------- */
.video-bloc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.telephone {
  width: min(300px, 80%);
  margin: 0 auto;
  border-radius: 38px;
  padding: 10px;
  background: #221a17;
  box-shadow: var(--ombre-forte);
}
.telephone video { width: 100%; border-radius: 30px; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.liste-coches { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.liste-coches li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rose-pale); color: var(--rose-fonce); display: grid; place-items: center; font-weight: 900; font-size: .9rem; margin-top: 2px; }
.video-bloc h2 { text-align: start; }

/* ---------- étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.etape { text-align: center; }
.etape .image { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 3; background: #fff; margin-bottom: 20px; display: grid; place-items: center; }
.etape .image img { width: 100%; height: 100%; object-fit: cover; }
.etape .image.contient img { object-fit: contain; height: 88%; width: auto; border-radius: 6px; box-shadow: var(--ombre-forte); }
.numero {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-fonce);
  display: grid;
  place-items: center;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.15rem;
  border: 3px solid #fff;
  z-index: 2;
}
.etape p { color: var(--brun-2); max-width: 330px; margin-inline: auto; }

/* ---------- texte long ---------- */
.texte-long p { color: var(--brun-2); font-size: 1.06rem; }
.texte-long h2 { margin-bottom: 18px; }
.texte-long .pastilles { justify-content: flex-start; margin: 0 0 26px; }
html[lang="ar"] .texte-long .pastilles { justify-content: flex-start; }

/* ---------- grille des prénoms ---------- */
.grille-prenoms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.carte-prenom { text-decoration: none; display: block; }
.carte-prenom .couv { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 2 / 3; box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s; background: var(--bleu-pale); }
.carte-prenom:hover .couv { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--ombre-forte); }
.carte-prenom img { width: 100%; height: 100%; object-fit: cover; }
.carte-prenom .titre-couv {
  position: absolute;
  inset: 8% 6% auto;
  text-align: center;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 2px rgba(0, 0, 0, .5);
  line-height: 1.1;
}
.carte-prenom .titre-couv small { display: block; font-size: .55em; font-weight: 600; opacity: .95; margin-bottom: 3px; }
.carte-prenom .nom { text-align: center; font-weight: 800; margin-top: 9px; }

/* ---------- formules ---------- */
.formules { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; max-width: 820px; margin: 0 auto; }
.formule {
  position: relative;
  background: #fff;
  border-radius: 26px;
  padding: 30px 26px 26px;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.formule.vedette {
  border-color: var(--rose);
  box-shadow: 0 26px 60px rgba(192, 106, 90, .22);
  transform: translateY(-14px);
  padding-top: 38px;
  z-index: 2;
}
.formule .badge {
  position: absolute;
  top: -15px;
  left: 50%;
  translate: -50% 0;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  font-size: .86rem;
  border-radius: 99px;
  padding: 6px 16px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(217, 137, 122, .4);
}
.formule h3 { font-size: 1.55rem; margin-bottom: 2px; }
.formule .accroche { color: var(--brun-3); font-weight: 700; font-size: .95rem; margin-bottom: 16px; }
.prix { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.prix b { font-family: var(--f-titre); font-size: 2.9rem; font-weight: 700; line-height: 1; }
.prix span { font-weight: 800; color: var(--brun-2); }
.formule ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; flex: 1; }
.formule li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; font-weight: 600; }
.formule li::before { content: "✓"; flex: none; color: var(--vert); font-weight: 900; }
.formule li.non { color: var(--brun-3); text-decoration: line-through; text-decoration-color: rgba(62, 44, 38, .3); font-weight: 500; }
.formule li.non::before { content: "✕"; color: #c9b9b2; }
.formule li.titre-liste { font-weight: 800; }
.formule li.titre-liste::before { content: "★"; color: var(--or); }
.formule .btn { width: 100%; }
.coup-de-pouce {
  max-width: 1080px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.encart {
  background: #fff;
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: var(--ombre);
}
.encart.pouce { background: var(--rose-pale); box-shadow: none; display: flex; gap: 16px; align-items: center; }
.encart.pouce .emoji { font-size: 2rem; }
.encart.pouce p { margin: 0; font-weight: 600; }
.calcul table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calcul td { padding: 4px 0; }
.calcul td:last-child { text-align: end; font-weight: 800; white-space: nowrap; }
.calcul tr.total td { border-top: 2px dashed var(--trait); padding-top: 9px; font-weight: 900; }
.calcul tr.total td:last-child { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: #7A1F12; color: #D32F2F; font-size: 1.45rem; font-weight: 900; font-family: var(--f-titre); }
.calcul .verdict { margin: 12px 0 0; background: var(--bleu-pale); border-radius: 14px; padding: 10px 14px; font-weight: 800; text-align: center; }
.calcul h3 { font-size: 1.1rem; }
.garantie { text-align: center; font-weight: 800; margin-top: 28px; color: var(--brun); }
.garantie span { background: #fff; border-radius: 99px; padding: 10px 20px; box-shadow: var(--ombre); display: inline-block; }

/* ---------- histoires ---------- */
.grille-histoires { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.histoire { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.histoire:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.histoire .couv { position: relative; aspect-ratio: 3 / 4; background: var(--bleu-pale); overflow: hidden; }
.histoire .couv img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.histoire .corps { padding: 14px 16px 18px; }
.histoire .univers { font-size: .78rem; font-weight: 800; color: var(--bleu-fonce); text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .histoire .univers { letter-spacing: 0; text-transform: none; }
.histoire h3 { font-size: 1.08rem; margin: 4px 0 0; }

/* ---------- confiance ---------- */
.grille-confiance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte-confiance { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--ombre); }
.carte-confiance .icone { width: 48px; height: 48px; border-radius: 14px; background: var(--rose-pale); display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 14px; }
.carte-confiance:nth-child(even) .icone { background: var(--bleu-pale); }
.carte-confiance p { color: var(--brun-2); margin: 0; font-size: .98rem; }

/* ---------- avis ---------- */
.grille-avis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.avis { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); }
.avis img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; }
.avis .corps { padding: 16px 18px 20px; }
.avis blockquote { margin: 0 0 10px; font-style: italic; color: var(--brun-2); font-size: .96rem; }
.avis cite { font-style: normal; font-weight: 800; font-size: .92rem; }

/* ---------- occasions ---------- */
.grille-occasions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.occasion { background: #fff; border-radius: var(--r); padding: 22px 14px; text-align: center; text-decoration: none; box-shadow: var(--ombre); transition: transform .2s, background .2s; }
.occasion:hover { transform: translateY(-4px); background: var(--rose-pale); }
.occasion .emoji { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.occasion b { font-family: var(--f-titre); font-size: 1.08rem; display: block; }
.occasion small { color: var(--brun-2); font-size: .86rem; line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 700; color: var(--rose-fonce); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .reponse { padding: 0 22px 20px; color: var(--brun-2); }
.faq .reponse p:last-child { margin: 0; }

/* ---------- appel final ---------- */
.appel-final { text-align: center; background: var(--rose); color: #fff; }
.appel-final h2 { color: #fff; }
.appel-final p { opacity: .92; font-size: 1.12rem; margin-bottom: 26px; }
.appel-final .btn-blanc { color: var(--rose-fonce); }

/* ---------- pied de page ---------- */
.pied { background: var(--brun); color: rgba(255, 255, 255, .78); padding: 56px 0 90px; font-size: .95rem; }
.pied .conteneur { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.pied h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.pied a { text-decoration: none; display: block; padding: 3px 0; }
.pied a.logo { display: flex; padding: 0; }
.pied a:hover { color: #fff; }
.pied .logo-texte b { color: #fff; }
.pied .copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- boutons flottants ---------- */
.whatsapp-flottant {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  z-index: 70;
  transition: transform .2s;
}
.whatsapp-flottant:hover { transform: scale(1.07); }
.whatsapp-flottant svg { width: 30px; height: 30px; fill: #fff; }
.barre-mobile { display: none; }

/* ---------- images provisoires ---------- */
.provisoire { position: relative; }
html.mode-provisoire .provisoire::after {
  content: attr(data-a-remplacer);
  position: absolute;
  bottom: 8px;
  inset-inline-end: 8px;
  background: rgba(62, 44, 38, .78);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 6px;
  padding: 3px 7px;
  pointer-events: none;
  z-index: 4;
}

/* ---------- apparition au défilement ---------- */
.apparait { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s ease; }
.apparait.vu { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; translate: none; transition: none; }
  .livre-3d { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   PAGE DE COMMANDE
   ========================================================================== */
.page-commande { background: var(--creme); }
.commande { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; padding: 34px 0 110px; }
.progression { display: flex; gap: 6px; margin-bottom: 26px; }
.progression div { flex: 1; min-width: 0; }
.progression .barre { height: 7px; border-radius: 99px; background: rgba(62, 44, 38, .1); overflow: hidden; }
.progression .barre i { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 99px; transition: width .35s; }
.progression .fait .barre i { width: 100%; }
.progression small { display: block; font-size: .74rem; font-weight: 800; color: var(--brun-3); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progression .actif small, .progression .fait small { color: var(--brun); }
.etape-form { display: none; background: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--ombre); }
.etape-form.active { display: block; animation: entree .35s ease; }
@keyframes entree { from { opacity: 0; translate: 0 10px; } }
.etape-form h2 { text-align: start; font-size: 1.7rem; margin-bottom: 4px; }
.etape-form .aide { color: var(--brun-2); margin-bottom: 22px; }
.choix-formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choix-carte { position: relative; cursor: pointer; }
.choix-carte input { position: absolute; opacity: 0; pointer-events: none; }
.choix-carte .contenu { display: block; height: 100%; border: 2px solid var(--trait); border-radius: 20px; padding: 18px 16px; transition: border-color .15s, background .15s, box-shadow .15s; background: #fff; }
.choix-carte:hover .contenu { border-color: rgba(217, 137, 122, .6); }
.choix-carte input:checked + .contenu { border-color: var(--rose); background: #FFF8F5; box-shadow: 0 10px 24px rgba(217, 137, 122, .18); }
.choix-carte input:focus-visible + .contenu { outline: 3px solid var(--bleu); outline-offset: 2px; }
.choix-carte .contenu b { font-family: var(--f-titre); font-size: 1.2rem; display: block; }
.choix-carte .contenu .p { font-family: var(--f-titre); font-weight: 700; font-size: 1.5rem; display: block; margin: 4px 0 8px; }
.choix-carte .contenu small { color: var(--brun-2); display: block; line-height: 1.4; font-size: .86rem; }
.choix-carte .mini-badge { position: absolute; top: -11px; inset-inline-end: 12px; background: var(--rose); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 3px 10px; }
.onglets { display: flex; gap: 8px; background: var(--creme-2); padding: 5px; border-radius: 99px; margin-bottom: 20px; width: fit-content; max-width: 100%; }
.onglets button { border: 0; background: none; padding: 9px 18px; border-radius: 99px; font-weight: 800; cursor: pointer; color: var(--brun-2); }
.onglets button[aria-selected="true"] { background: #fff; color: var(--brun); box-shadow: var(--ombre); }
.onglets button[disabled] { opacity: .45; cursor: not-allowed; }
.grille-choix-histoires { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.choix-histoire .contenu { padding: 8px; }
.choix-histoire img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 13px; margin-bottom: 8px; }
.choix-histoire .contenu b { font-size: .92rem; line-height: 1.25; }
.champ { margin-bottom: 18px; }
.champ label, .champ .libelle { display: block; font-weight: 800; margin-bottom: 7px; font-size: .96rem; }
.champ .optionnel { font-weight: 600; color: var(--brun-3); font-size: .86rem; }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="date"], .champ select, .champ textarea {
  width: 100%;
  border: 2px solid var(--trait);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--brun);
  transition: border-color .15s, box-shadow .15s;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(110, 156, 200, .18); }
.champ .erreur { color: #B5452F; font-size: .86rem; font-weight: 700; margin-top: 6px; display: none; }
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: #D56B55; }
.champ.invalide .erreur { display: block; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.boutons-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.boutons-radio label { cursor: pointer; margin: 0; }
.boutons-radio input { position: absolute; opacity: 0; }
.boutons-radio span { display: inline-block; border: 2px solid var(--trait); border-radius: 99px; padding: 8px 16px; font-weight: 700; transition: all .15s; }
.boutons-radio input:checked + span { border-color: var(--rose); background: var(--rose-pale); }
.boutons-radio input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggestions button { border: 1.5px dashed rgba(62, 44, 38, .25); background: var(--creme); border-radius: 99px; padding: 6px 12px; font-size: .86rem; font-weight: 700; cursor: pointer; }
.suggestions button:hover { border-color: var(--rose); color: var(--rose-fonce); }
.zone-photo {
  border: 2.5px dashed rgba(110, 156, 200, .6);
  background: var(--bleu-pale);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  position: relative;
}
.zone-photo { display: block; overflow: hidden; }
.zone-photo:hover, .zone-photo.survol { background: #DDEBF5; border-color: var(--bleu); }
.zone-photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zone-photo:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.zone-photo .emoji { font-size: 2rem; }
.zone-photo b { display: block; margin: 6px 0 2px; }
.zone-photo small { color: var(--brun-2); }
.vignettes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vignette { position: relative; width: 86px; height: 86px; border-radius: 14px; overflow: hidden; box-shadow: var(--ombre); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette button { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-weight: 900; line-height: 1; }
.conseils-photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.conseils-photo div { background: var(--creme); border-radius: 14px; padding: 10px 12px; font-size: .85rem; font-weight: 700; }
.conseils-photo div::before { content: "✓ "; color: var(--vert); font-weight: 900; }
.personnage { border: 2px solid var(--trait); border-radius: 18px; padding: 16px; margin-bottom: 14px; position: relative; }
.personnage h4 { font-size: 1.02rem; margin-bottom: 12px; }
.personnage .retirer { position: absolute; top: 12px; inset-inline-end: 12px; border: 0; background: none; color: #B5452F; font-weight: 800; cursor: pointer; font-size: .88rem; }
.personnage .zone-photo { padding: 14px; }
.ligne-option { display: flex; align-items: center; gap: 12px; border: 2px solid var(--trait); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; cursor: pointer; }
.ligne-option input { width: 20px; height: 20px; accent-color: var(--rose); flex: none; }
.ligne-option span { flex: 1; font-weight: 700; }
.ligne-option em { font-style: normal; font-weight: 800; color: var(--rose-fonce); white-space: nowrap; }
.ligne-option.inclus { background: #F3FAF6; border-color: rgba(60, 154, 107, .25); cursor: default; }
.ligne-option.inclus em { color: var(--vert); }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--rose); flex: none; margin-top: 3px; }
.navigation-form { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.recap-liste { display: grid; gap: 10px; margin: 0 0 20px; }
.recap-liste div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--trait); padding-bottom: 8px; }
.recap-liste dt { color: var(--brun-2); font-weight: 700; }
.recap-liste dd { margin: 0; font-weight: 800; text-align: end; }
.panier { position: sticky; top: 90px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--ombre); }
.panier h3 { font-size: 1.15rem; }
.panier .apercu { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.panier .apercu .vignette-couv { position: relative; flex: none; }
.panier .apercu .vignette-couv span { position: absolute; left: 50%; bottom: -7px; translate: -50% 0; background: var(--brun); color: #fff; font-size: .62rem; font-weight: 800; border-radius: 99px; padding: 2px 7px; white-space: nowrap; }
.panier .apercu img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; box-shadow: var(--ombre); }
.panier .apercu b { display: block; font-family: var(--f-titre); line-height: 1.2; }
.panier .apercu small { color: var(--brun-2); }
.panier .lignes { display: grid; gap: 6px; font-size: .92rem; margin-bottom: 12px; }
.panier .lignes div { display: flex; justify-content: space-between; gap: 10px; }
.panier .total { display: flex; justify-content: space-between; font-family: var(--f-titre); font-size: 1.4rem; font-weight: 700; border-top: 2px dashed var(--trait); padding-top: 12px; }
.panier .rassure { margin-top: 14px; display: grid; gap: 7px; font-size: .86rem; font-weight: 700; color: var(--brun-2); }
.panier .rassure span::before { content: "✓ "; color: var(--vert); font-weight: 900; }
.livraison-estimee { background: var(--bleu-pale); border-radius: 14px; padding: 10px 12px; font-size: .88rem; font-weight: 700; margin-top: 12px; }
.confirmation { text-align: center; padding: 50px 30px; }
.confirmation .grand-emoji { font-size: 3.4rem; }
.confirmation .ref { display: inline-block; background: var(--creme-2); border-radius: 12px; padding: 8px 16px; font-weight: 900; letter-spacing: .06em; margin: 8px 0 18px; }
.confirmation ol { text-align: start; max-width: 460px; margin: 0 auto 24px; display: grid; gap: 8px; color: var(--brun-2); font-weight: 600; }
.envoi-en-cours { opacity: .6; pointer-events: none; }
.barre-mobile-commande { display: none; }

/* ==========================================================================
   MENTIONS
   ========================================================================== */
.page-texte { padding: 50px 0 90px; }
.page-texte h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-texte h2 { text-align: start; font-size: 1.4rem; margin-top: 34px; }
.page-texte p, .page-texte li { color: var(--brun-2); }
.a-valider { background: #FFF6DB; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .92rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .menu { display: none; }
  .entete .langues { margin-inline-start: auto; }
  .grille-prenoms { grid-template-columns: repeat(4, 1fr); }
  .grille-histoires { grid-template-columns: repeat(3, 1fr); }
  .grille-occasions { grid-template-columns: repeat(3, 1fr); }
  .grille-avis { grid-template-columns: repeat(2, 1fr); }
  .commande { grid-template-columns: minmax(0, 1fr); }
  .panier { display: none; }
  .barre-mobile-commande {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    background: #fff;
    box-shadow: 0 -8px 26px rgba(62, 44, 38, .12);
    padding: 12px 16px;
    z-index: 65;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .barre-mobile-commande b { font-family: var(--f-titre); font-size: 1.3rem; }
  .barre-mobile-commande small { display: block; color: var(--brun-2); font-size: .8rem; font-weight: 700; }
}
@media (max-width: 860px) {
  section { padding: 58px 0; }
  .hero { padding-top: 34px; }
  .hero .conteneur { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero .actions, .rassurance { justify-content: center; }
  .hero p.intro { margin-inline: auto; }
  .scene-livre { order: -1; }
  .livre-3d { width: min(250px, 62%); }
  .badge-flottant { font-size: .78rem; padding: 7px 10px; }
  .diapo { grid-template-columns: 1fr; }
  .echange { left: 50%; margin-left: 0; }
  html[dir="rtl"] .echange { margin-left: 0; }
  .fleche { display: none; }
  .video-bloc { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .video-bloc h2 { text-align: center; }
  .liste-coches { text-align: start; max-width: 460px; margin-inline: auto; }
  .etapes { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .formules { grid-template-columns: 1fr; max-width: 460px; }
  .formule.vedette { transform: none; order: -1; }
  .coup-de-pouce { grid-template-columns: 1fr; max-width: 460px; }
  .grille-confiance { grid-template-columns: 1fr 1fr; }
  .pied .conteneur { grid-template-columns: 1fr 1fr; }
  .whatsapp-flottant { bottom: 84px; }
  .barre-mobile {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    padding: 10px 16px 12px;
    background: rgba(251, 246, 239, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(62, 44, 38, .1);
    z-index: 65;
    transform: translateY(110%);
    transition: transform .3s;
  }
  .barre-mobile.visible { transform: none; }
  .barre-mobile .btn { width: 100%; }
  .choix-formules { grid-template-columns: 1fr; }
  .grille-choix-histoires { grid-template-columns: repeat(2, 1fr); }
  .etape-form { padding: 22px 18px; }
  .conseils-photo { grid-template-columns: 1fr; }
  .onglets { width: 100%; }
  .onglets button { flex: 1; padding: 9px 10px; font-size: .9rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bandeau { font-size: .8rem; }
  .logo-texte b { font-size: 1.3rem; }
  .entete .btn { display: none; }
  .grille-prenoms { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .grille-histoires { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grille-occasions { grid-template-columns: repeat(2, 1fr); }
  .grille-confiance { grid-template-columns: 1fr; }
  .grille-avis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .deux-colonnes { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; }
  .prix b { font-size: 2.5rem; }
  .pied .conteneur { grid-template-columns: 1fr; }
  .navigation-form .btn { padding: 13px 20px; white-space: normal; }
}

/* note sous le choix des histoires */
.note-couvertures { background: var(--bleu-pale); border-radius: 14px; padding: 10px 14px; font-size: .9rem; font-weight: 700; color: var(--brun-2); margin: -8px 0 18px; }

/* fenêtre des conditions (page de commande) */
.fenetre-conditions { width: min(760px, 94vw); height: min(84vh, 900px); border: 0; border-radius: 22px; padding: 0; box-shadow: var(--ombre-forte); overflow: hidden; }
.fenetre-conditions::backdrop { background: rgba(62, 44, 38, .45); }
.fenetre-conditions iframe { width: 100%; height: 100%; border: 0; display: block; }
.fenetre-conditions .fermer { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brun); color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 2; }

/* page des conditions affichée dans la fenêtre */
html.integre .entete, html.integre [data-t="m.retour"] { display: none; }
html.integre .page-texte { padding: 26px 0 30px; }

/* ==========================================================================
   MESSAGE « C'EST SON LIVRE » (ajouts du 29/09)
   ========================================================================== */
/* aperçu du prénom sur la couverture du héros */
.livre-apercu { aspect-ratio: 2 / 3; width: min(330px, 74%); }
.livre-apercu img { object-position: center top; }
.titre-apercu {
  position: absolute; z-index: 3; top: 4.5%; left: 6%; right: 6%;
  text-align: center; line-height: 1.02; pointer-events: none;
}
.titre-apercu small {
  display: block; font-family: var(--f-titre); font-weight: 700; font-size: clamp(.95rem, 1.7vw, 1.2rem);
  color: #fff; text-shadow: 0 2px 8px rgba(62, 44, 38, .55); margin-bottom: 2px;
}
.titre-apercu b {
  display: block; font-family: "Fredoka", "Baloo Bhaijaan 2", sans-serif; font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem); color: #E0564A;
  -webkit-text-stroke: 5px #fff; paint-order: stroke fill;
  text-shadow: 0 4px 14px rgba(62, 44, 38, .35);
  overflow-wrap: anywhere; transition: transform .2s;
}
.titre-apercu b.anime { transform: scale(1.06); }
.essai-prenom {
  position: relative; z-index: 4; margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 800; font-size: .95rem;
}
.essai-prenom input {
  width: min(260px, 90%); border: 2px solid rgba(217, 137, 122, .5); border-radius: 999px; padding: 11px 18px;
  font: inherit; font-weight: 700; text-align: center; background: #fff; color: var(--brun); box-shadow: var(--ombre);
}
.essai-prenom input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217, 137, 122, .2); }
.scene-livre { flex-direction: column; }
.scene-livre .badge-flottant.b2 { top: 40%; bottom: auto; }
.scene-livre .badge-flottant.b1 { bottom: 22%; }

/* le moment où il se découvre */
.scene-texte { font-size: 1.22rem; line-height: 1.7; color: var(--brun); margin: 8px 0 26px; }
#moment h2 { text-align: start; }

/* tout parle de lui */
.bloc-a-lui { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; max-width: 1040px; margin: 0 auto; }
.liste-a-lui { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-a-lui li { position: relative; display: block; background: #fff; border-radius: 16px; padding: 13px 16px; padding-inline-start: 54px; box-shadow: var(--ombre); font-size: 1.02rem; }
.liste-a-lui li::before { content: "✓"; position: absolute; inset-inline-start: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.comparaison table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); }
.comparaison th, .comparaison td { padding: 15px 18px; text-align: start; font-size: .98rem; border-bottom: 1px solid var(--trait); }
.comparaison tr:last-child td { border-bottom: 0; }
.comparaison th { font-family: var(--f-titre); font-size: 1.05rem; }
.comparaison th:first-child { color: var(--brun-3); background: #f7f3ee; }
.comparaison th:last-child { color: #fff; background: var(--rose); }
.comparaison td:first-child { color: var(--brun-3); background: #fbf9f6; }
.comparaison td:first-child::before { content: "✕ "; color: #c9b9b2; font-weight: 900; }
.comparaison td:last-child { font-weight: 800; }
.comparaison td:last-child::before { content: "✓ "; color: var(--vert); font-weight: 900; }

/* plusieurs vidéos côte à côte */
.videos-livre { display: flex; gap: 18px; justify-content: center; }
.videos-livre .telephone { margin: 0; }

/* frise : de sa photo à son livre */
.frise { list-style: none; padding: 0; margin: 10px 0 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: etape; }
.frise::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, var(--rose) 0 10px, transparent 10px 18px); z-index: 0; }
.frise li { text-align: center; position: relative; z-index: 1; }
.frise .rond { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 3px solid var(--rose); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 12px; box-shadow: var(--ombre); }
.frise h3 { font-size: 1.02rem; margin-bottom: 4px; }
.frise p { color: var(--brun-2); font-size: .92rem; margin: 0; }
.delai-explique { max-width: 700px; margin: 0 auto 34px; text-align: center; background: #fff; border-radius: 18px; padding: 14px 20px; box-shadow: var(--ombre); font-size: 1.02rem; }
.etapes-images figure { margin: 0; }
.etapes-images figcaption { text-align: center; font-weight: 800; }

/* ce que son livre change */
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pilier { background: #fff; border-radius: var(--r); padding: 28px 24px; box-shadow: var(--ombre); text-align: center; }
.pilier .emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.pilier p { color: var(--brun-2); margin: 0; }

/* formules : valeur et travail */
.phrase-valeur { text-align: center; font-family: var(--f-titre); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; margin: 34px auto 0; max-width: 720px; color: var(--rose-fonce); }
.formule .travail { margin: 12px 0 0; text-align: center; font-size: .78rem; font-weight: 700; color: var(--brun-3); line-height: 1.5; }

@media (max-width: 860px) {
  .bloc-a-lui { grid-template-columns: 1fr; }
  .frise { grid-template-columns: 1fr; gap: 14px; text-align: start; }
  .frise::before { top: 10px; bottom: 10px; left: 30px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--rose) 0 10px, transparent 10px 18px); }
  .frise li { display: grid; grid-template-columns: 62px 1fr; column-gap: 14px; text-align: start; align-items: center; }
  .frise .rond { margin: 0; grid-row: span 2; }
  .frise h3 { align-self: end; margin: 0; }
  .frise p { align-self: start; }
  html[dir="rtl"] .frise::before { left: auto; right: 30px; }
  .piliers { grid-template-columns: 1fr; }
  .videos-livre .telephone { width: min(240px, 46vw); }
  #moment h2 { text-align: center; }
  .scene-texte { text-align: center; }
  .livre-apercu { width: min(230px, 60%); }
}

/* ==========================================================================
   CONFIGURATEUR DU HAUT DE PAGE : fille ou garçon, style, prénom
   ========================================================================== */
.configurateur { background: rgba(255, 255, 255, .92); border-radius: 28px; padding: 20px 20px 16px; box-shadow: var(--ombre-forte); display: grid; gap: 14px; }
.config-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.config-num { width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-family: var(--f-titre); font-weight: 700; font-size: .95rem; flex: none; }
.config-q { font-weight: 800; font-size: .95rem; margin-inline-end: auto; }
.segments { display: flex; background: var(--creme-2); border-radius: 999px; padding: 4px; }
.segments button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-weight: 800; cursor: pointer; color: var(--brun-2); }
.segments button[aria-pressed="true"] { background: #fff; color: var(--brun); box-shadow: var(--ombre); }
.transformation { display: grid; grid-template-columns: .62fr auto 1fr; align-items: center; gap: 8px; padding: 4px 0; }
.polaroid { margin: 0; background: #fff; padding: 7px 7px 26px; border-radius: 6px; box-shadow: var(--ombre-forte); transform: rotate(-5deg); position: relative; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-family: var(--f-titre); font-weight: 600; font-size: .85rem; }
.fleche-magique { display: grid; place-items: center; color: var(--rose-fonce); line-height: 1; }
.fleche-magique i { font-style: normal; font-size: 1.2rem; }
.fleche-magique b { font-size: 1.8rem; }
html[dir="rtl"] .fleche-magique b { transform: scaleX(-1); }
.configurateur .livre-apercu { width: 100%; transform: perspective(1200px) rotateY(-10deg); animation: none; }
html[dir="rtl"] .configurateur .livre-apercu { transform: perspective(1200px) rotateY(10deg); }
.configurateur .livre-apercu img, .polaroid img { transition: opacity .25s; }
.configurateur img.change { opacity: .15; }
.configurateur .titre-apercu b { font-size: clamp(1.4rem, 2.8vw, 2.1rem); -webkit-text-stroke: 4px #fff; }
.configurateur .titre-apercu small { font-size: clamp(.8rem, 1.3vw, .98rem); }
.styles-choix { display: flex; gap: 8px; }
.styles-choix button { border: 2px solid var(--trait); background: #fff; border-radius: 14px; padding: 4px 4px 6px; cursor: pointer; width: 76px; font-size: .74rem; font-weight: 800; color: var(--brun-2); display: grid; gap: 4px; justify-items: center; }
.styles-choix button img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 60%; border-radius: 10px; }
.styles-choix button[aria-pressed="true"] { border-color: var(--rose); color: var(--brun); box-shadow: 0 6px 14px rgba(217, 137, 122, .25); }
.config-ligne input { flex: 1 1 160px; border: 2px solid rgba(217, 137, 122, .45); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; color: var(--brun); background: #fff; min-width: 0; }
.config-ligne input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217, 137, 122, .2); }
.note-apercu { margin: 0; text-align: center; font-size: .8rem; color: var(--brun-3); font-style: italic; }
@media (max-width: 860px) {
  .configurateur { order: -1; padding: 16px 14px 12px; }
  .config-q { flex-basis: calc(100% - 40px); }
  .transformation { grid-template-columns: .6fr auto 1fr; }
  .styles-choix { width: 100%; justify-content: space-between; }
  .styles-choix button { flex: 1; width: auto; }
}

/* choix du style dans la commande */
.styles-commande { gap: 10px; flex-wrap: wrap; }
.styles-commande label { cursor: pointer; }
.styles-commande input { position: absolute; opacity: 0; }
.vignette-style { display: grid; gap: 5px; justify-items: center; width: 104px; border: 2px solid var(--trait); border-radius: 16px; padding: 5px 5px 8px; font-size: .84rem; font-weight: 800; background: #fff; transition: border-color .15s, box-shadow .15s; }
.vignette-style img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 60%; border-radius: 11px; }
.styles-commande input:checked + .vignette-style { border-color: var(--rose); box-shadow: 0 8px 18px rgba(217, 137, 122, .25); }
.styles-commande input:focus-visible + .vignette-style { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* ---------- deux livres : prix pour deux enfants, deuxième enfant ---------- */
.formule .prix-deux { margin: -8px 0 18px; font-weight: 800; color: var(--rose-fonce); font-size: .95rem; }
.nombre-livres { margin-top: 24px; }
.deuxieme-enfant { margin-top: 30px; padding: 20px; border: 2px dashed rgba(192, 106, 90, .45); border-radius: 18px; background: var(--rose-pale); }
.deuxieme-enfant h3 { margin: 0 0 4px; font-size: 1.2rem; }
.deuxieme-enfant select { width: 100%; }
