/* Site de guérison — feuille de style autonome (aucune compilation requise). */
:root {
    --nuit: #12183a;
    --indigo: #1e2a5e;
    --brume: #dce1f1;
    --ciel: #f2f4fa;
    --laiton: #b58b33;
    --texte: #1a1f3d;
    --attenue: #505779;
    --erreur: #a3261d;
    --titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ciel);
    color: var(--texte);
    font-family: var(--corps);
    font-size: 1.0625rem;
    line-height: 1.6;
}

h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--laiton); outline-offset: 2px; }

.enveloppe { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete { background: var(--nuit); color: #fff; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.entete-nom { font-family: var(--titre); font-size: 1.15rem; color: #fff; text-decoration: none; }
.entete-liens { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.entete-liens a, .lien-bouton { color: var(--brume); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Ouverture ---------- */
.entete { position: relative; z-index: 1; }

/* Ciel de nuit : une lueur dorée et un semis d'étoiles, sans aucune image. */
.ouverture {
    color: #fff;
    padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(3rem, 9vw, 6rem);
    background-color: var(--nuit);
    background-image:
        radial-gradient(ellipse 60% 55% at 78% 28%, rgba(181, 139, 51, 0.2), transparent 70%),
        radial-gradient(ellipse 70% 60% at 10% 100%, rgba(62, 82, 170, 0.35), transparent 70%),
        radial-gradient(1.5px 1.5px at 40px 60px, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(1px 1px at 130px 20px, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 210px 150px, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 300px 90px, rgba(230, 200, 130, 0.9) 50%, transparent 51%),
        radial-gradient(1px 1px at 90px 230px, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 260px 280px, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 350px 210px, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 170px 330px, rgba(255, 255, 255, 0.8) 50%, transparent 51%);
    background-size: 100% 100%, 100% 100%, 380px 380px, 380px 380px, 380px 380px, 380px 380px, 380px 380px, 380px 380px, 380px 380px, 380px 380px;
}
.ouverture .enveloppe { display: grid; gap: 3rem; align-items: center; }
.ouverture p { color: var(--brume); font-size: 1.15rem; }
@media (min-width: 56rem) { .ouverture .enveloppe { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }

.bouton {
    display: inline-block; border: 0; border-radius: 0.3rem; cursor: pointer;
    background: var(--laiton); color: var(--nuit);
    font: 600 1.05rem/1.2 var(--corps); text-decoration: none;
    padding: 0.95rem 1.5rem;
}
.bouton:hover { background: #c79a3d; }
.bouton-discret { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.bouton-discret:hover { background: var(--brume); }

/* Le schéma des deux issues : l'élément central de la page. */
.issues { font-size: 0.98rem; position: relative; padding-top: 3.2rem; }
/* Étoile à huit branches (deux carrés croisés) autour du point de départ. */
.issues::before, .issues::after {
    content: ""; position: absolute; top: 0; left: 50%;
    width: 8.6rem; height: 8.6rem; margin-left: -4.3rem;
    border: 1px solid rgba(181, 139, 51, 0.5);
}
.issues::after { transform: rotate(45deg); }
.issues-depart {
    position: relative; z-index: 1;
    width: fit-content; margin-inline: auto; padding: 0.7rem 1.3rem;
    border: 1px solid var(--laiton); border-radius: 999px; background: var(--nuit);
    font-family: var(--titre); font-size: 1.15rem; color: #fff;
    box-shadow: 0 0 2.2rem rgba(181, 139, 51, 0.45);
    animation: lueur 7s ease-in-out infinite;
}
@keyframes lueur {
    50% { box-shadow: 0 0 3.4rem rgba(181, 139, 51, 0.75); }
}
.issues-tronc { position: relative; z-index: 1; width: 1px; height: 4.4rem; margin-inline: auto; background: var(--laiton); }
.issues-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; padding-top: 2.2rem; }
.issues-branches::before { content: ""; position: absolute; top: 0; left: calc(25% - 0.25rem); right: calc(25% - 0.25rem); height: 1px; background: var(--laiton); }
.issue { position: relative; background: rgba(30, 42, 94, 0.85); border: 1px solid rgba(181, 139, 51, 0.35); border-radius: 0.4rem; padding: 1.1rem 1rem; }
.issue::before { content: ""; position: absolute; top: -2.2rem; left: 50%; width: 1px; height: 2.2rem; background: var(--laiton); }
.issue strong { display: block; font-family: var(--titre); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 0.35rem; }
.issue span { color: var(--brume); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
.partie { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.partie-claire { background: #fff; }

.etapes { list-style: none; counter-reset: etape; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; }
.etapes li { counter-increment: etape; padding-left: 3.4rem; position: relative; }
.etapes li::before {
    content: counter(etape); position: absolute; left: 0; top: -0.2rem;
    font: 600 2.4rem/1 var(--titre); color: var(--laiton);
}
.etapes p { color: var(--attenue); margin: 0; }
@media (min-width: 56rem) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* ---------- Le don ---------- */
.don {
    background-color: var(--indigo); color: #fff; text-align: center;
    padding-block: clamp(3rem, 8vw, 5rem);
    background-image: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(181, 139, 51, 0.22), transparent 70%);
}
.don h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.don p { color: var(--brume); margin-inline: auto; max-width: 54ch; font-size: 1.12rem; }
.don .don-appel { color: #fff; font-weight: 600; margin-top: 1.6rem; }
.etoile { width: 3rem; height: 3rem; margin-bottom: 1.2rem; fill: none; stroke: var(--laiton); stroke-width: 1.2; }

.reperes { margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: 46rem; }
.reperes li { padding: 1rem 0; border-top: 1px solid var(--brume); }
.reperes li:last-child { border-bottom: 1px solid var(--brume); }
.reperes strong { display: block; }
.reperes span { color: var(--attenue); }

.tarifs { margin: 1.5rem 0 0; max-width: 46rem; }
.tarifs div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--brume); }
.tarifs div:last-child { border-bottom: 1px solid var(--brume); }
.tarifs dt { color: var(--texte); }
.tarifs dd { margin: 0; font: 600 1.5rem/1.1 var(--titre); color: var(--indigo); white-space: nowrap; }

.avis-medical { border-left: 4px solid var(--laiton); background: #fff; padding: 1.5rem 1.5rem 0.75rem; max-width: 46rem; }
.avis-medical h2 { font-size: 1.4rem; }

/* ---------- Formulaires ---------- */
.formulaire { background: #fff; border-radius: 0.5rem; padding: clamp(1.25rem, 4vw, 2.25rem); max-width: 46rem; box-shadow: 0 1px 0 var(--brume), 0 12px 32px -18px rgba(18, 24, 58, 0.35); }
.formulaire-etroit { max-width: 28rem; }
.champs { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .champs-deux { grid-template-columns: 1fr 1fr; } }
.champ label, .champ legend { display: block; font-weight: 600; margin-bottom: 0.3rem; padding: 0; }
.champ small { display: block; color: var(--attenue); font-size: 0.9rem; margin-top: 0.3rem; }
.champ input:not([type="checkbox"]):not([type="radio"]), .champ select, .champ textarea {
    width: 100%; font: inherit; color: inherit; background: var(--ciel);
    border: 1px solid #b9c0db; border-radius: 0.3rem; padding: 0.7rem 0.8rem;
}
.champ textarea { min-height: 9rem; resize: vertical; }
fieldset.champ { border: 0; margin: 0; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.choix label, .case label { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; }
.choix input, .case input { margin-top: 0.35rem; accent-color: var(--indigo); }
.erreur { color: var(--erreur); font-size: 0.93rem; margin: 0.3rem 0 0; }
.sous-titre { font-family: var(--titre); font-size: 1.25rem; margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--brume); }
.leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.message { background: #e7efe4; border-left: 4px solid #3f6b35; padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; max-width: 46rem; }
.message-erreur { background: #f8e9e7; border-left-color: var(--erreur); }

/* ---------- Espace client ---------- */
.fiche { background: #fff; border-radius: 0.5rem; padding: 1.25rem 1.4rem; margin-bottom: 1rem; max-width: 46rem; }
.fiche-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: baseline; margin-bottom: 0.5rem; }
.fiche dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
.fiche dt { color: var(--attenue); }
.fiche dd { margin: 0; }
.etat { display: inline-block; background: var(--brume); color: var(--indigo); border-radius: 999px; padding: 0.15rem 0.75rem; font-size: 0.9rem; font-weight: 600; }
.note { border-top: 1px solid var(--brume); margin-top: 0.9rem; padding-top: 0.9rem; white-space: pre-line; }
.note time { display: block; color: var(--attenue); font-size: 0.9rem; }
.vide { color: var(--attenue); }

.reglement { border-top: 1px solid var(--brume); margin-top: 0.9rem; padding-top: 0.9rem; }
.reglement p { margin-bottom: 0.7rem; }
.reglement-boutons { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.reglement .bouton { font-size: 0.98rem; padding: 0.8rem 1.1rem; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid rgba(181, 139, 51, 0.5); background: var(--nuit); color: var(--brume); padding-block: 2rem; font-size: 0.93rem; }
.pied p { margin: 0 0 0.4em; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .issues-depart { animation: none; }
}
