:root {
  --rose: #e8908f;
  --rose-clair: #f6c9c6;
  --sauge: #8fae84;
  --sauge-fonce: #6f8f66;
  --jaune: #f9d77e;
  --creme: #fdf6ef;
  --texte: #4a3b36;
  --doux: #8a7a74;
  --rayon: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texte); background: var(--creme); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--sauge-fonce); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: .3em 0; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); text-align: center; margin: 0 0 .8em; }

.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.barre { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.logo-petit { height: 52px; width: auto; display: block; }
.barre nav a { margin-left: 18px; text-decoration: none; color: var(--texte); font-weight: 600; }

.bouton { display: inline-block; background: var(--rose); color: #fff; border: 0; border-radius: 40px; padding: 14px 28px; font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; font-family: inherit; }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232,144,143,.35); }
.bouton.secondaire { background: #fff; color: var(--rose); border: 2px solid var(--rose); padding: 10px 20px; font-size: .95rem; }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }

/* Accueil */
.heros { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 30px 0 60px; }
.heros p.intro { font-size: 1.2rem; color: var(--doux); }
.heros .mascotte { width: 100%; max-width: 380px; margin: 0 auto; display: block; animation: flotte 4s ease-in-out infinite; border-radius: 50%; }
@keyframes flotte { 50% { transform: translateY(-12px); } }
.notes { font-size: 2rem; letter-spacing: 8px; }
.section { padding: 60px 0; }
.section.blanche { background: #fff; border-radius: 40px; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.etape .rond { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 12px; }
.etape:nth-child(1) .rond { background: var(--rose-clair); }
.etape:nth-child(2) .rond { background: #dbe8d5; }
.etape:nth-child(3) .rond { background: #fbecc0; }

.formules { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.formule { background: #fff; border-radius: var(--rayon); padding: 30px; box-shadow: 0 8px 30px rgba(74,59,54,.07); position: relative; display: flex; flex-direction: column; }
.formule.premium { border: 3px solid var(--sauge); }
.formule .ruban { position: absolute; top: -14px; right: 24px; background: var(--sauge); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: .85rem; font-weight: 700; }
.formule .prix { font-size: 2.4rem; font-weight: 800; color: var(--rose); margin: 6px 0; }
.formule ul { padding-left: 0; list-style: none; flex: 1; }
.formule li { padding: 6px 0 6px 30px; position: relative; }
.formule li::before { content: "♪"; position: absolute; left: 6px; color: var(--sauge); font-weight: 800; }
.formule .bouton { text-align: center; }

/* Formulaire de commande */
.commande { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--rayon); padding: 34px; box-shadow: 0 8px 30px rgba(74,59,54,.07); }
.choix-formule { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.choix-formule label { border: 2px solid #eee2da; border-radius: 16px; padding: 14px; cursor: pointer; text-align: center; font-weight: 700; }
.choix-formule input { display: none; }
.choix-formule label:has(input:checked) { border-color: var(--rose); background: #fff3f2; }
.choix-formule small { display: block; font-weight: 400; color: var(--doux); }
.formulaire label, .commande label.champ { display: block; margin-bottom: 18px; font-weight: 700; }
.formulaire small, .commande small { font-weight: 400; color: var(--doux); display: block; }
input[type=text], input[type=email], input:not([type]), select, textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid #eee2da; border-radius: 12px; font: inherit; background: #fffdfb; color: var(--texte); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sauge); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pastilles label { font-weight: 600; margin: 0; }
.pastilles input { display: none; }
.pastilles span { display: inline-block; padding: 8px 14px; border-radius: 30px; border: 2px solid #eee2da; cursor: pointer; background: #fffdfb; }
.pastilles input:checked + span { border-color: var(--sauge); background: #e9f1e5; }
.accord { font-weight: 400 !important; font-size: .92rem; display: flex !important; gap: 10px; align-items: flex-start; }
.accord input { margin-top: 5px; }
.piege { position: absolute; left: -5000px; }
.commande .seulement-auteur { display: none; }
.commande[data-formule=auteur] .seulement-auteur { display: block; }
.commande[data-formule=auteur] .seulement-magique { display: none; }
.commande small.inline { display: inline; }
.total { text-align: center; font-size: 1.2rem; margin: 10px 0 18px; }
.message-erreur { background: #fdecea; color: #a1413c; padding: 12px 16px; border-radius: 12px; display: none; margin-bottom: 16px; }

.faq details { background: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
footer { text-align: center; padding: 40px 20px; color: var(--doux); font-size: .9rem; }
footer a { color: var(--doux); margin: 0 8px; }

/* Pages internes */
.carte { background: #fff; border-radius: var(--rayon); padding: 26px; margin: 18px 0; box-shadow: 0 6px 24px rgba(74,59,54,.06); }
.centre { text-align: center; }
.mascotte-petite { width: 120px; border-radius: 50%; }
.piste { padding: 14px 0; border-bottom: 1px dashed #eee2da; }
.piste:last-child { border: 0; }
.piste h3 { margin: 0 0 8px; }
.piste audio { width: 100%; margin-bottom: 10px; }
.paroles p { font-size: 1.1rem; line-height: 1.8; }
.paroles .section { display: inline-block; margin-top: 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--sauge-fonce); font-weight: 800; padding: 0; }
.petit { font-size: .9rem; color: var(--doux); }
.texte-legal { max-width: 800px; }
.texte-legal h2 { text-align: left; font-size: 1.3rem; margin-top: 1.6em; }

/* Espace auteur */
.tableau { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.tableau th, .tableau td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f2e9e2; font-size: .95rem; }
.tableau th { background: #f7efe8; }
.statut-a_ecrire, .statut-a_valider { background: #fff8e1; }
.statut-erreur { background: #fdecea; }
.badge { background: var(--jaune); border-radius: 8px; padding: 1px 6px; font-size: .75rem; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stats .carte { flex: 1; text-align: center; margin: 0 0 18px; }
.stats b { font-size: 1.8rem; color: var(--rose); }
.infos { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; }
.infos dt { font-weight: 700; }
.infos dd { margin: 0; }
.erreur { color: #a1413c; }

@media (max-width: 760px) {
  .heros, .formules, .etapes, .deux, .choix-formule { grid-template-columns: 1fr; }
  .heros { text-align: center; padding-top: 10px; }
  .heros .mascotte { max-width: 220px; order: -1; }
  .barre nav { display: none; }
  .commande { padding: 22px; }
  .infos { grid-template-columns: 1fr; }
}
@media print {
  .barre, .non-imprime, audio, .piste, .bouton { display: none !important; }
  body { background: #fff; }
  .carte { box-shadow: none; }
}
