:root {
  --nuit: #1B1F3B;
  --nuit-2: #2A2F55;
  --creme: #FFF8EC;
  --creme-2: #F6EFE2;
  --encre: #23264A;
  --encre-douce: #4A4D6B;
  --or: #F2B55A;
  --or-fonce: #8A5A12;
  --vert: #2E6B4F;
  --rouge: #A3342B;
  --rayon: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--nuit);
  color: var(--encre);
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

.entete {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 22px 16px 14px;
  color: var(--creme);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 21px;
}

.carte {
  max-width: 560px;
  margin: 0 auto 32px;
  margin-inline: max(16px, calc((100% - 560px) / 2));
  background: var(--creme);
  border-radius: var(--rayon);
  padding: 28px 22px;
}

h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--encre);
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }

p { margin: 0 0 14px; }
.doux { color: var(--encre-douce); }
.petit { font-size: 16px; }

.etape[hidden] { display: none; }

.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--nuit);
  color: var(--creme);
  font: inherit;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  cursor: pointer;
}
.bouton:disabled { opacity: 0.45; cursor: not-allowed; }
.bouton.or { background: var(--or); color: var(--nuit); }
.bouton.discret {
  background: transparent;
  color: var(--encre);
  border: 2px solid #C9C2D8;
}
.bouton.danger { background: transparent; color: var(--rouge); border: 2px solid #E3B3AE; }
.bouton + .bouton { margin-top: 12px; }

.liste-points { margin: 0 0 18px; padding: 0; list-style: none; }
.liste-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #E8DFCF;
}
.liste-points li:last-child { border-bottom: 0; }
.liste-points svg { flex: none; margin-top: 4px; }

.case {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #E8DFCF;
  cursor: pointer;
}
.case input { width: 28px; height: 28px; flex: none; margin: 1px 0 0; accent-color: var(--nuit); }

.texte-a-lire {
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  margin: 0 0 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.6;
  color: var(--encre);
}
.texte-a-lire p { margin: 0 0 12px; }
.texte-a-lire p:last-child { margin: 0; }

.enregistreur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.bouton-micro {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 0;
  background: var(--rouge);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(163, 52, 43, 0.35);
}
.bouton-micro.actif { background: var(--nuit); box-shadow: 0 8px 24px rgba(27, 31, 59, 0.35); }
.chrono { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 26px; }
.niveau {
  width: 100%;
  max-width: 280px;
  height: 12px;
  border-radius: 999px;
  background: #E8DFCF;
  overflow: hidden;
}
.niveau span { display: block; height: 100%; width: 0; background: var(--vert); transition: width 80ms linear; }

.alerte {
  padding: 14px 16px;
  border-radius: 14px;
  margin: 0 0 16px;
  font-weight: 600;
}
.alerte.erreur { background: #F8E1DE; color: #7A231C; }
.alerte.info { background: #F6E3BF; color: #5C3D0C; }
.alerte.ok { background: #DCEFE4; color: #1E4D37; }

.attente {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  text-align: center;
}
.rond {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid #E8DFCF;
  border-top-color: var(--or);
  animation: tourne 1s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rond { animation-duration: 3s; } }

audio { width: 100%; margin: 4px 0 16px; }

.pied {
  text-align: center;
  color: #B9B3CF;
  font-size: 15px;
  padding: 0 16px 32px;
}
.pied a { color: var(--or); }

/* Espace famille */
.lecteur {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid #E8DFCF;
}
.lecteur-haut { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.lecteur-nom { font-weight: 800; font-size: 20px; }
.pastille {
  font-size: 14px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ECE6F3;
  color: var(--encre);
}
.pastille.prete { background: #DCEFE4; color: #1E4D37; }
.pastille.retiree { background: #F8E1DE; color: #7A231C; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions .bouton { width: auto; min-height: 46px; font-size: 16px; padding: 10px 16px; margin: 0; }

label.champ { display: block; font-weight: 800; margin: 0 0 6px; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #D8CFBF;
  font: inherit;
  background: #fff;
  color: var(--encre);
  margin-bottom: 14px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { outline: 3px solid var(--or); outline-offset: 1px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.puce {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #D8CFBF;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--encre);
  cursor: pointer;
}

/* Pages légales */
.legal { max-width: 720px; margin-inline: max(16px, calc((100% - 720px) / 2)); font-size: 17px; }
.legal h2 { font-size: 21px; margin-top: 28px; }
.legal h3 { font-size: 18px; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--encre); }
.legal .maj { color: var(--encre-douce); font-size: 15px; }
.a-completer { background: #FFE58A; padding: 0 4px; border-radius: 4px; font-weight: 800; }
.pied-legal { text-align: center; padding: 0 16px 28px; font-size: 14px; }
.pied-legal a { color: var(--creme-2); margin: 0 8px; }

/* Commande */
.vignette { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 18px; }
.prix { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 700; color: var(--encre); margin: 0 0 4px; }
.etiquette { display: block; font-weight: 800; margin: 0 0 6px; }
.case.choisie { border-color: var(--nuit); }
.case.radio input { accent-color: var(--nuit); }
.lien-copie { word-break: break-all; background: #fff; border: 2px solid #E8DFCF; border-radius: 12px; padding: 12px; font-size: 15px; margin: 0 0 14px; }

/* Page de commande enrichie */
.carte + .carte { margin-top: -14px; }
.bouton-lien { display: inline-flex; text-decoration: none; justify-content: center; }
.ecoute { display: flex; gap: 14px; align-items: center; background: #fff; border: 2px solid #E8DFCF; border-radius: 16px; padding: 12px; margin: 0 0 12px; }
.ecoute img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.ecoute button { min-width: 52px; min-height: 52px; border-radius: 999px; border: 0; background: var(--nuit); color: var(--creme); font: inherit; font-size: 20px; cursor: pointer; flex: none; }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding: 0 0 16px 52px; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 999px; background: var(--or); color: var(--nuit); font-weight: 800; display: grid; place-items: center; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 6px; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.faq details { border-bottom: 1px solid #E8DFCF; padding: 12px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
@media (max-width: 420px) { .galerie { grid-template-columns: repeat(2, 1fr); } }

/* Partage de la page de vente */
.boutons-partage { display: grid; gap: 10px; margin-top: 14px; }
.boutons-partage .bouton + .bouton { margin-top: 0; }
.bouton.partage-facebook { background: #1877F2; color: #fff; }
.bouton.partage-whatsapp { background: #1F8F4E; color: #fff; }
