/* Gabarit commun aux 3 pages de test. Mobile d'abord, aucune police distante,
   aucune image externe : rien qui puisse servir de mouchard, rien a declarer
   dans un bandeau cookies. Le seul reglage a changer par site est --accent. */

:root {
  --encre: #16202e;
  --gris: #5b6878;
  --trait: #e2e7ee;
  --fond: #f5f7fa;
  --accent: #1d5fd8;
  --accent-sombre: #17499f;
  --vert: #0f7a4d;
  --vert-clair: #e6f4ed;
  --rouge: #b3241f;
  --ambre: #8a5a00;
  --ambre-clair: #fdf3e0;
  --largeur: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--fond);
  color: var(--encre);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.enveloppe { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* Entete : la marque seule, pas de menu de navigation. */
.entete { background: #fff; border-bottom: 1px solid var(--trait); }
.entete .enveloppe { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; flex: none;
}
.marque { font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }

section { padding: 34px 0; }
section + section { border-top: 1px solid var(--trait); }
.sur-blanc { background: #fff; }

h1 {
  font-size: 30px; line-height: 1.22; letter-spacing: -0.7px; font-weight: 800;
  margin-bottom: 14px;
}
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.4px; margin-bottom: 14px; }
h3 { font-size: 17px; line-height: 1.4; margin-bottom: 5px; }

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.chapeau { font-size: 18px; color: var(--gris); margin-bottom: 22px; }
.chapeau strong { color: var(--encre); }
.sous { font-size: 14px; color: var(--gris); }

.hero { background: #fff; padding-top: 40px; }

/* Boutons */
.btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 15px 20px; font-size: 17px; font-weight: 650; line-height: 1.3;
  cursor: pointer; text-decoration: none;
  font-family: inherit;
}
.btn:hover { background: var(--accent-sombre); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.secondaire { background: #fff; color: var(--encre); border: 1px solid var(--trait); }
.btn.secondaire:hover { background: var(--fond); }
.sous-bouton { font-size: 14px; color: var(--gris); text-align: center; margin-top: 10px; }

/* Listes de douleurs */
.douleurs { list-style: none; margin-top: 8px; }
.douleurs li {
  background: #fff; border: 1px solid var(--trait); border-left: 4px solid var(--ambre);
  border-radius: 10px; padding: 15px 17px; margin-bottom: 12px; font-size: 16px;
}
.douleurs li:last-child { margin-bottom: 0; }
.douleurs strong { font-weight: 700; }

/* Apercu du produit : la maquette, mise a l'echelle dans un cadre */
.apercu-cadre {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid var(--trait); border-radius: 12px; height: 260px;
}
.apercu-cadre iframe {
  width: 1200px; height: 900px; border: 0; display: block;
  transform-origin: top left; transform: scale(var(--zoom, 0.3));
}
.apercu-voile { position: absolute; inset: 0; }
.legende { font-size: 14px; color: var(--gris); margin-top: 10px; }

/* Benefices */
.benefices { display: grid; gap: 14px; }
.benefice {
  background: #fff; border: 1px solid var(--trait); border-radius: 11px; padding: 17px 18px;
}
.benefice p { font-size: 15.5px; color: var(--gris); margin: 0; }

/* Prix */
.prix-bloc {
  background: #fff; border: 1px solid var(--trait); border-radius: 12px;
  padding: 22px 20px; text-align: center;
}
.prix-chiffre { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.prix-chiffre span { font-size: 18px; font-weight: 600; color: var(--gris); letter-spacing: 0; }
.prix-second { font-size: 16px; color: var(--gris); margin-top: 6px; }
.prix-argument { font-size: 15.5px; margin-top: 14px; }
.prix-bloc .btn { margin-top: 18px; }

/* Preuve */
.preuves { list-style: none; }
.preuves li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 16px; }
.preuves li:last-child { margin-bottom: 0; }
.preuves li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--vert);
}

/* Formulaire d'inscription */
.inscription { background: #fff; }
.inscription .sous { margin-bottom: 18px; }
.champ { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
#email {
  width: 100%; font-family: inherit; font-size: 17px; padding: 14px 15px;
  border: 1px solid #c8d1de; border-radius: 10px; background: #fff; color: var(--encre);
}
#email:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.consentement {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 16px 0 18px; font-size: 15px; line-height: 1.5; cursor: pointer;
}
.consentement input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.message { font-size: 15px; margin-top: 12px; line-height: 1.5; }
.message:empty { display: none; }
.message.ok { color: var(--vert); }
.message.erreur { color: var(--rouge); }
.mention { font-size: 13px; color: var(--gris); line-height: 1.55; margin-top: 16px; }
.mention a { color: var(--gris); }

.note-prix {
  display: none; background: var(--ambre-clair); border: 1px solid #f0dcb4;
  border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-bottom: 18px;
}
.note-prix.visible { display: block; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--trait); border-radius: 10px;
  padding: 0 17px; margin-bottom: 11px;
}
.faq details[open] { padding-bottom: 15px; }
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 16px; padding: 15px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: 15.5px; color: var(--gris); }

/* Pied de page */
.pied { background: #fff; border-top: 1px solid var(--trait); padding: 26px 0 34px; }
.pied p { font-size: 14px; color: var(--gris); margin-bottom: 8px; }
.pied a { color: var(--gris); }

a { color: var(--accent); }

/* Pages de texte : merci, mentions legales */
.texte { max-width: 720px; margin: 0 auto; padding: 34px 20px 50px; }
.texte h1 { font-size: 26px; }
.texte h2 { font-size: 19px; margin-top: 30px; }
.texte h3 { font-size: 16px; margin-top: 20px; font-weight: 700; }
.texte p, .texte li { font-size: 16px; color: var(--encre); }
.texte ul { margin: 0 0 14px 20px; }
.texte li { margin-bottom: 7px; }
.carte-texte {
  background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 24px 22px;
}
.bandeau-ok {
  background: var(--vert-clair); border: 1px solid #bfe3d1; border-radius: 12px;
  padding: 20px 22px; margin-bottom: 22px;
}
.bandeau-ok h1 { color: var(--vert); margin-bottom: 8px; }
.bandeau-ok p { margin-bottom: 0; }

@media (min-width: 640px) {
  h1 { font-size: 38px; }
  h2 { font-size: 25px; }
  section { padding: 46px 0; }
  .hero { padding-top: 54px; }
  .btn { width: auto; min-width: 320px; }
  .prix-bloc .btn { width: 100%; }
  .benefices { grid-template-columns: repeat(3, 1fr); }
  .apercu-cadre { height: 460px; }
  .texte { padding-top: 46px; }
}
