/* Charte Solaïa — L’Instant Précieux. Mobile d’abord (390 px, gouttière 20 px). */
:root {
  --rose: #d97f76;        /* logo, aplats, soleils — jamais en texte sur fond clair */
  --rose-dark: #964943;   /* bouton principal, liens, accents */
  --rose-deep: #713b37;   /* sur-titres, texte sur rose-soft */
  --rose-soft: #ebc7be;   /* bouton secondaire, encadrés */
  --ivory: #fff9f5;       /* fond */
  --cream: #f8f0e8;
  --sand: #f2e5d8;
  --white: #ffffff;       /* cartes */
  --ink: #2d2320;         /* texte */
  --muted: #6b5953;       /* texte secondaire */
  --bronze-text: #83593a; /* tagline */
  --line: #dfd0c5;        /* filets 1 px */
  --alerte: #a3261c;
  --succes: #2f6b3a;
  --ombre-carte: 0 14px 40px rgba(74, 44, 37, 0.07);
  --ombre-bouton: 0 10px 28px rgba(113, 59, 55, 0.16);
  --rayon: 24px;
  --titre: "Bodoni Moda", "Didot", Georgia, serif;
  --texte: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--texte);
  font-weight: 430;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 100% 0, rgba(217, 127, 118, 0.18), rgba(217, 127, 118, 0) 55%),
    linear-gradient(135deg, var(--cream), var(--ivory));
  background-repeat: no-repeat;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--rose-dark);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--rose-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

/* En-tête */
.entete {
  padding: 22px 20px 6px;
}

.marque {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.marque-ligne {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.marque svg {
  width: 40px;
  height: auto;
}

.marque-nom {
  font-family: var(--titre);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
}

.marque-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bronze-text);
  font-variant: small-caps;
}

/* Mise en page */
.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1,
h2 {
  font-family: var(--titre);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 26px;
}

p {
  margin: 0;
}

.surtitre {
  font-size: 11.68px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 10px;
}

.chapeau {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.carte-blanche {
  background: var(--white);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-carte);
  padding: 24px 20px;
}

.encadre {
  background: var(--rose-soft);
  color: var(--rose-deep);
  border-radius: 18px;
  padding: 16px 18px;
}

/* Formulaires */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-weight: 700;
  font-size: 14px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facultatif {
  font-weight: 430;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="date"],
input:not([type]) {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
}

input:focus-visible {
  outline: 3px solid var(--rose-dark);
  outline-offset: 1px;
  border-color: var(--rose-dark);
}

.case {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 430;
  font-size: 14px;
  line-height: 1.5;
}

.case input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--rose-dark);
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.bouton:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bouton-principal {
  background: var(--rose-dark);
  color: var(--white);
  box-shadow: var(--ombre-bouton);
}

.bouton-secondaire {
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.bouton-wallet {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--ombre-bouton);
}

.bouton-large {
  width: 100%;
}

.lien-discret {
  background: none;
  border: 0;
  padding: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* Messages */
.message {
  font-size: 15px;
  border-radius: 14px;
}

.message:empty {
  display: none;
}

.message.erreur {
  color: var(--alerte);
  background: #fbeceb;
  padding: 12px 14px;
}

.message.succes {
  color: var(--succes);
  background: #edf5ee;
  padding: 12px 14px;
}

.message.info {
  color: var(--rose-deep);
  background: var(--rose-soft);
  padding: 12px 14px;
}

/* Soleils (tampons) */
.soleils {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 10px;
  margin: 18px 0 6px;
}

.soleils svg {
  width: 100%;
  height: auto;
}

.soleil-acquis {
  fill: var(--rose);
}

.soleil-restant {
  fill: var(--line);
}

/* Informations */
.infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 0;
}

.infos div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.infos dt {
  font-size: 11.68px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.infos dd {
  margin: 4px 0 0;
  font-weight: 700;
}

/* Crédit anniversaire, sous le solde fidélité */
.note-anniversaire {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--rose-deep);
  font-weight: 700;
}

.wallet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.qr {
  width: 220px;
  height: 220px;
  margin: 8px auto 14px;
  border-radius: 12px;
}

.rappel {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.bandeau-alerte {
  background: var(--alerte);
  color: var(--white);
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 700;
}

/* Règlement */
.reglement h2 {
  font-size: 22px;
  margin: 26px 0 8px;
}

.reglement p,
.reglement li {
  margin-bottom: 8px;
}

.reglement ul {
  padding-left: 20px;
  margin: 0 0 8px;
}

mark {
  background: var(--rose-soft);
  color: var(--rose-deep);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* Pied de page */
.pied {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 36px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (min-width: 720px) {
  h1 {
    font-size: 44px;
  }
  .entete {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 36px;
  }
}

/* Cures : barre d’avancement et liste des séances */
.avancement {
  margin: 20px 0 8px;
}

.barre {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.barre span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--rose);
}

.avancement-texte {
  margin-top: 8px;
  font-weight: 700;
}

.liste-seances {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  font-size: 15px;
}

.liste-seances li {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.seance-cure {
  margin-top: 14px;
  font-weight: 700;
}
