/*
 * Pages légales statiques (/cgv-malodo-html.html, /droit-retractation.html)
 * dans le langage de malodo.fr (figue.ai, novembre 2026). Chargée après la
 * feuille propre à chaque page, elle n'en change que la peau : aucun texte,
 * aucune structure. Couleurs alignées sur les variables --m-* de
 * src/index.css, à reprendre ici si la charte change.
 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --lf-ink: #1f2a37;
  --lf-sombre: #0d1b26;
  --lf-texte: #4b5866;
  --lf-doux: #5f6b75;
  --lf-teal: #2a9d8f;
  --lf-teal-ink: #1b6f65;
  --lf-mint: #e8f4f2;
  --lf-ligne: #dfe7e4;
  --lf-papier: #f6f9f8;
  --lf-rose: #db2777;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--lf-ink);
}

/* En-tête : pilule flottante, comme sur le reste de malodo.fr. */
body > nav {
  top: 12px;
  margin: 12px auto 0;
  width: calc(100% - 32px);
  max-width: 1060px;
  height: 60px;
  padding: 0 10px 0 22px;
  border: 1px solid var(--lf-ligne);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px -18px rgba(13, 27, 38, .35);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lf-sombre); font-weight: 700; font-size: 18px; letter-spacing: -.02em;
}
.nav-logo::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lf-teal);
}
.nav-back {
  min-height: 44px; padding: 10px 18px; gap: 10px;
  border: 0; background: var(--lf-sombre); color: #fff; font-weight: 600;
  transition: background-color .18s ease, transform .18s ease;
}
.nav-back:hover { background: var(--lf-rose); color: #fff; border: 0; transform: translateY(-1px); }

/* Premier écran : fond clair, lueur vert d'eau, titre serré. */
.hero {
  background: radial-gradient(60% 90% at 15% 0%, rgba(42, 157, 143, .16), transparent 70%), #fff;
  padding: 64px 24px 48px;
}
.hero-blob { display: none; }
.hero-pill {
  background: #fff; border: 1px solid var(--lf-ligne); color: var(--lf-sombre);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 14px;
}
.hero h1 {
  color: var(--lf-sombre); font-weight: 600; letter-spacing: -.045em; line-height: 1.06;
  font-size: clamp(30px, 5vw, 48px);
}
.hero p { color: var(--lf-texte); }
.hero-badge {
  background: var(--lf-papier); border: 1px solid var(--lf-ligne); color: var(--lf-doux);
}

/* Sommaire. */
.sidebar-title { color: var(--lf-doux); }
.sidebar-link { color: var(--lf-texte); }
.sidebar-link:hover { background: var(--lf-papier); color: var(--lf-teal-ink); border-left-color: var(--lf-teal); }
.sidebar-link.active { background: var(--lf-mint); color: var(--lf-teal-ink); border-left-color: var(--lf-teal); }
.sidebar-link.active .sidebar-num { color: var(--lf-teal-ink); }
.sidebar-num { color: var(--lf-doux); }
.sidebar-info { border-color: var(--lf-ligne); border-radius: 20px; }
.sidebar-info a, footer a { color: var(--lf-teal-ink); }

/* Cartes et textes. */
.article-card, .preambule, .section-card {
  border: 1px solid var(--lf-ligne); border-radius: 24px;
  box-shadow: 0 1px 0 rgba(13, 27, 38, .02);
}
.article-header, .section-card-header { border-bottom-color: var(--lf-ligne); }
.article-title, .card-title, .preambule h2 { color: var(--lf-sombre); font-weight: 600; letter-spacing: -.02em; }
.article-card p, .section-card p, .info-item { color: var(--lf-texte); }
.article-card strong, .section-card strong { color: var(--lf-sombre); }
.article-num, .step-num {
  background: var(--lf-sombre); color: #fff; font-weight: 600;
}
.dot, .info-dot { background: var(--lf-teal); }
.card-icon { border-radius: 14px; }
.icon-teal, .icon-green, .icon-blue { background: var(--lf-mint); }

.highlight, .checkbox-preview, .guarantee-item, .legal-quote, .mini-faq-item, .formule-card {
  background: var(--lf-papier); border-color: var(--lf-ligne);
}
.highlight { color: var(--lf-teal-ink); }
.highlight strong { color: var(--lf-teal-ink); }
.legal-quote { border-left-color: var(--lf-teal); }
.checkbox-box { background: var(--lf-teal); border-color: var(--lf-teal); }
.mini-faq-item.open .mini-faq-q svg { color: var(--lf-teal-ink); }
.formule-card.featured, .accomp-card { background: var(--lf-mint); border-color: var(--lf-ligne); }
.formule-price, .accomp-price, .accomp-title { color: var(--lf-teal-ink); }
.formule-badge { background: var(--lf-sombre); }
.data-table th { background: var(--lf-papier); border-bottom-color: var(--lf-ligne); color: var(--lf-sombre); }

/* Dernier appel : bloc sombre, bouton clair à point vert d'eau. */
.contact-card { background: var(--lf-sombre); border-radius: 28px; }
.contact-card::after { display: none; }
.contact-text h3 { font-weight: 600; letter-spacing: -.02em; }
.contact-text a { color: #9fd9d0; }
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; background: #fff; color: var(--lf-sombre); font-weight: 600;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.contact-btn::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lf-teal); }
.contact-btn:hover { background: var(--lf-rose); color: #fff; transform: translateY(-1px); }
.contact-btn:hover::after { background: #fff; }

footer { border-top-color: var(--lf-ligne); color: var(--lf-doux); }

@media (max-width: 768px) {
  body > nav { padding: 0 6px 0 18px; }
  .hero { padding: 44px 16px 32px; }
  .sidebar-link { border-color: var(--lf-ligne); }
  .sidebar-link.active { border-color: var(--lf-teal); }
}

/* La feuille des CGV stylait tout `nav`, sommaire compris : hauteur fixe de
   64 px, d'où des liens qui débordaient sur l'encadré de contact. */
.sidebar-nav {
  position: static; height: auto; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  justify-content: flex-start; align-items: stretch;
}
@media (min-width: 769px) { .sidebar-nav { padding: 0; } }

/* Les emojis ont été retirés des deux pages : une pastille vert d'eau tient
   la place de l'icône de carte, les autres emplacements disparaissent. */
.card-icon:empty::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lf-teal); }
.alert-icon:empty, .guarantee-icon:empty { display: none; }
