/* Cœurlune : identité visuelle partagée par le site et l'application.
   Aucune police externe : rien n'est chargé depuis un service tiers. */

:root {
  --nuit: #141831;
  --nuit-2: #1d2244;
  --nuit-3: #282e58;
  --lune: #f6e7c8;
  --texte: #ece8f4;
  --texte-doux: #b4b2cc;
  --rose: #ef9f9a;
  --rose-fonce: #d9786f;
  --or: #e9c46a;
  --bordure: rgba(246, 231, 200, 0.14);
  --ombre: 0 10px 40px rgba(0, 0, 0, 0.35);
  --rayon: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(239, 159, 154, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(233, 196, 106, 0.08), transparent 60%),
    var(--nuit);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose); }
a:hover { color: var(--lune); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--lune); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }

.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton-principal { background: var(--rose); color: var(--nuit); }
.bouton-principal:hover { background: var(--lune); color: var(--nuit); }
.bouton-secondaire { background: transparent; color: var(--lune); border-color: var(--bordure); }
.bouton-secondaire:hover { border-color: var(--lune); color: var(--lune); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(20, 24, 49, 0.78); border-bottom: 1px solid var(--bordure); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.marque { display: flex; align-items: center; gap: 0.6rem; color: var(--lune); text-decoration: none; font: 600 1.35rem var(--serif); }
.marque img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--texte-doux); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--lune); }
.nav .bouton { padding: 0.55rem 1rem; font-size: 0.9rem; color: var(--nuit); }

/* Héros */
.heros { padding: clamp(3rem, 8vw, 6rem) 0 4rem; }
.heros .conteneur { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.heros .surtitre { color: var(--or); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.heros p.intro { font-size: 1.15rem; color: var(--texte-doux); max-width: 34rem; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.mention-ia { margin-top: 1.2rem; font-size: 0.9rem; color: var(--texte-doux); display: flex; align-items: center; gap: 0.5rem; }
.mention-ia::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--or); flex: none; }

.apercu { background: var(--nuit-2); border: 1px solid var(--bordure); border-radius: 24px; padding: 1.2rem; box-shadow: var(--ombre); }
.apercu-entete { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--bordure); margin-bottom: 1rem; }
.apercu-entete small { display: block; color: var(--texte-doux); font-size: 0.8rem; }
.bulle { padding: 0.75rem 1rem; border-radius: 18px; margin-bottom: 0.7rem; max-width: 88%; font-size: 0.95rem; }
.bulle em { color: var(--texte-doux); }
.bulle-perso { background: var(--nuit-3); border-bottom-left-radius: 6px; }
.bulle-moi { background: var(--rose); color: var(--nuit); margin-left: auto; border-bottom-right-radius: 6px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 1.15rem var(--serif); color: var(--nuit); flex: none; }

/* Sections */
section { padding: 4.5rem 0; }
.section-titre { max-width: 44rem; margin-bottom: 2.4rem; }
.section-titre p { color: var(--texte-doux); font-size: 1.1rem; margin: 0; }
.grille { display: grid; gap: 1.2rem; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: var(--nuit-2); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.5rem; }
.carte p { color: var(--texte-doux); margin: 0; }

.perso { display: flex; flex-direction: column; gap: 0.9rem; }
.perso .meta { color: var(--texte-doux); font-size: 0.88rem; }
.perso .accroche { color: var(--texte); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

.etapes { counter-reset: etape; }
.etapes .carte { position: relative; padding-top: 3.4rem; }
.etapes .carte::before { counter-increment: etape; content: counter(etape); position: absolute; top: 1.2rem; left: 1.5rem; width: 32px; height: 32px; border-radius: 50%; background: var(--nuit-3); color: var(--or); display: grid; place-items: center; font: 600 1rem var(--serif); }

.charte-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.4rem; }
.charte-liste li { padding-left: 2.2rem; position: relative; }
.charte-liste li::before { content: "☾"; position: absolute; left: 0; top: -0.1rem; color: var(--or); font-size: 1.3rem; }
.charte-liste strong { color: var(--lune); display: block; }
.charte-liste span { color: var(--texte-doux); font-size: 0.95rem; }

.prix { font: 600 2rem var(--serif); color: var(--lune); margin: 0.2rem 0 0.6rem; }
.prix small { font: 400 0.95rem var(--sans); color: var(--texte-doux); }
.carte ul { padding-left: 1.1rem; margin: 0.6rem 0 0; color: var(--texte-doux); }
.carte ul li { margin-bottom: 0.35rem; }
.carte-accent { border-color: rgba(239, 159, 154, 0.5); }

.confiance { background: linear-gradient(135deg, rgba(239, 159, 154, 0.14), rgba(233, 196, 106, 0.08)); border: 1px solid rgba(239, 159, 154, 0.35); border-radius: 24px; padding: clamp(1.6rem, 4vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.confiance p { color: var(--texte-doux); }

.faq details { border-bottom: 1px solid var(--bordure); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--lune); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--texte-doux); margin: 0.7rem 0 0; }

.inscription { text-align: center; }
.inscription form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 1.6rem auto 0; max-width: 34rem; }
.inscription input[type="email"] { flex: 1 1 16rem; padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid var(--bordure); background: var(--nuit-2); color: var(--texte); font: 1rem var(--sans); }
.inscription input[type="email"]:focus { outline: 2px solid var(--rose); outline-offset: 2px; }
.consentement { flex-basis: 100%; display: flex; gap: 0.6rem; align-items: flex-start; text-align: left; font-size: 0.85rem; color: var(--texte-doux); }
.consentement input { margin-top: 0.3rem; accent-color: var(--rose); }
.retour-form { min-height: 1.6rem; margin-top: 0.8rem; color: var(--or); }

.pied { border-top: 1px solid var(--bordure); padding: 2.5rem 0; color: var(--texte-doux); font-size: 0.9rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.pied a { color: var(--texte-doux); }
.aide-urgence { color: var(--lune); }

/* Pages de texte (charte, mentions) */
.page-texte { padding: 3rem 0 4rem; }
.page-texte .conteneur { max-width: 760px; }
.page-texte ol { padding-left: 1.3rem; }
.page-texte ol li { margin-bottom: 1.1rem; color: var(--texte-doux); }
.page-texte ol li strong { color: var(--lune); }
.page-texte p { color: var(--texte-doux); }
.a-completer { background: rgba(233, 196, 106, 0.15); color: var(--or); padding: 0 0.3rem; border-radius: 4px; }

@media (max-width: 900px) {
  .heros .conteneur, .confiance { grid-template-columns: 1fr; }
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .grille-3 { grid-template-columns: 1fr; }
  .charte-liste { grid-template-columns: 1fr; }
  .nav a:not(.bouton) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grille-4 { grid-template-columns: 1fr; }
  section { padding: 3.2rem 0; }
}

/* Bandeau d'annonce (texte géré dans l'admin) */
.annonce { background: var(--or); color: var(--nuit); text-align: center; padding: 0.5rem 16px; font-weight: 600; font-size: 0.92rem; }
