/* Groupe Demeure : noir sur blanc, une seule police. Pensé pour le cell d'abord. */

:root {
  --blanc: #FFFFFF;
  --noir: #111111;
  --gris: #6B6B6B;      /* 5,3:1 sur blanc : petit texte secondaire */
  --bulle: #F2F2F2;     /* bulles de texto, texte noir dessus : 17:1 */
  --filet: #E2E2E2;     /* bas de l'en-tête collant, décoratif */

  --police: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --logo: "Libre Caslon Display", Georgia, serif;

  --gouttiere: 16px;
  --espace-section: 88px;
  --hauteur-entete: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-entete) + 16px);
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 500; }

h1 {
  font-size: 2.75rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 { font-size: 1rem; line-height: 1.4; }

p { max-width: 58ch; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--noir);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gouttiere);
  top: -100px;
  background: var(--noir);
  color: var(--blanc);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.enveloppe {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.note {
  font-size: 0.875rem;
  color: var(--gris);
}

/* Liens pas encore remplis ([LIEN_CALENDRIER], tel:[NUMERO_DEMO]...) : cachés.
   Avec ?apercu dans l'adresse, main.js les montre avec un contour pointillé. */

html:not(.apercu) a[href^="["],
html:not(.apercu) a[href^="tel:["],
html:not(.apercu) a[href^="mailto:["],
html:not(.apercu) [data-trou]:has(a[href*="["]) { display: none; }

.apercu a[href*="["] {
  outline: 2px dashed var(--noir);
  outline-offset: 4px;
}

/* En-tête : collé en haut, le bouton de démo toujours à portée de pouce */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blanc);
  border-bottom: 1px solid var(--filet);
}

.entete__dedans {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--hauteur-entete);
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.marque__maison { width: 34px; height: 27px; flex: none; }

.marque__texte {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marque__nom {
  font-family: var(--logo);
  font-size: 1.1875rem;
  line-height: 1;
  white-space: nowrap;
}

.marque__metier {
  font-size: 0.75rem;
  line-height: 1;
  color: var(--gris);
  white-space: nowrap;
}

.entete__lien {
  padding-block: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Boutons : noirs, carrés */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--noir);
  color: var(--blanc);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--noir);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.bouton:hover { background: #333; border-color: #333; }

.appel { margin-top: 32px; }

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  padding-top: 40px;
}

.hero__sous { margin-top: 20px; font-size: 1.125rem; }
.hero .appel { margin-top: 28px; }
.hero .bouton { display: flex; width: 100%; }
.hero__demo { margin-top: 12px; }
.hero__demo a { display: inline-block; padding-block: 10px; }

/* Le téléphone d'exemple : un cadre, une bulle, rien d'autre */

.telephone {
  max-width: 360px;
  padding: 18px 16px 28px;
  border: 1px solid var(--noir);
  border-radius: 28px;
}

.telephone__contact {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--filet);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  max-width: none;
}

.telephone__fil {
  display: grid;
  gap: 8px;
  padding-top: 20px;
}

.systeme {
  max-width: none;
  font-size: 0.8125rem;
  color: var(--gris);
  text-align: center;
}

.systeme + .bulle { margin-top: 8px; }

.hero__exemple .note { margin-top: 12px; }

.bulle {
  justify-self: start;
  max-width: 34ch;
  padding: 10px 14px;
  background: var(--bulle);
  border-radius: 18px 18px 18px 4px;
  line-height: 1.4;
}

/* Sections : séparées par l'espace */

.section { padding-top: var(--espace-section); }

.section__intro { margin-top: 16px; }

/* Le problème : trois chiffres sourcés */

.chiffres {
  display: grid;
  margin-top: 40px;
}

.chiffre {
  padding: 28px 0;
  border-top: 1px solid var(--noir);
}

.chiffre__nombre {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.chiffre__texte { margin-top: 12px; font-size: 1.125rem; }
.chiffre__source { margin-top: 12px; }
.chiffre__source a { display: inline-block; padding-block: 12px; }

.chiffres__note { padding-top: 16px; border-top: 1px solid var(--noir); }

/* Exemples de textos */

.textos {
  display: grid;
  gap: 36px;
  margin-top: 40px;
}

.texto h3 { margin-bottom: 12px; }

/* Étapes */

.etapes {
  counter-reset: etape;
  display: grid;
  margin-top: 40px;
}

.etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 12px;
  padding: 18px 0;
  border-top: 1px solid var(--noir);
}

.etapes li::before {
  content: counter(etape);
  color: var(--gris);
}

.etapes__total {
  padding-top: 18px;
  border-top: 1px solid var(--noir);
  font-weight: 500;
}

/* Deux colonnes de texte */

.deux-colonnes {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

.deux-colonnes h3 { margin-bottom: 12px; }

.recu { font-size: 1.125rem; }
.recu li + li { margin-top: 14px; }

/* Prix : une ligne par montant */

.tarifs { margin-top: 40px; }

.tarif {
  display: grid;
  gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--noir);
}
.tarif:last-child { border-bottom: 1px solid var(--noir); }

.tarif__nom { font-size: 1.25rem; letter-spacing: -0.01em; }

.tarif__detail { color: var(--gris); }

.tarif__prix {
  margin-top: 8px;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tarif__prix span {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gris);
}

.tarifs__note { margin-top: 12px; }

.engagements { margin-top: 40px; }

.lancement {
  padding: 24px;
  border: 2px solid var(--noir);
}

.lancement h3,
.garantie h3 { margin-bottom: 8px; }

/* FAQ */

.faq { margin-top: 40px; }

.faq details { border-top: 1px solid var(--noir); }
.faq details:last-child { border-bottom: 1px solid var(--noir); }

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }

.faq details p { padding-bottom: 20px; }

/* Dernier appel à l'action */

.final__titre { max-width: 16ch; font-size: 2.25rem; }
.final .bouton { display: flex; width: 100%; }

/* Pied de page */

.pied {
  display: grid;
  gap: 8px;
  margin-top: var(--espace-section);
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--noir);
  font-size: 0.875rem;
}

.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  max-width: none;
}
.pied__liens a { display: inline-block; padding-block: 12px; }

/* Page texte (confidentialité) */

.page-texte { padding-top: 40px; padding-bottom: 32px; }
.page-texte h2 { font-size: 1.25rem; margin-top: 40px; }
.page-texte p { margin-top: 12px; }
.page-texte ul { margin-top: 12px; padding-left: 1.25em; list-style: disc; }
.page-texte li + li { margin-top: 6px; }
.page-texte .page-texte__maj { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .bouton { transition: none; }
}

/* Tablette et plus */

@media (min-width: 720px) {
  :root { --gouttiere: 32px; --espace-section: 128px; --hauteur-entete: 72px; }

  h1 { font-size: 3.5rem; }

  .hero .bouton,
  .final .bouton { display: inline-flex; width: auto; }

  .chiffres { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .chiffres__note { border-top: 0; padding-top: 0; }

  .textos { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 64px; }

  .tarif {
    grid-template-columns: 1fr 2fr auto;
    gap: 32px;
    align-items: baseline;
  }
  .tarif__prix { margin-top: 0; text-align: right; }

  .engagements { align-items: start; }

  .final__titre { font-size: 3rem; }
}

/* Desktop */

@media (min-width: 1024px) {
  :root { --gouttiere: 40px; --espace-section: 160px; }

  h1 { font-size: 4.5rem; }
  h2 { font-size: 2.75rem; }

  .hero {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 64px;
    padding-top: 72px;
  }

  .hero__exemple { justify-self: end; width: 100%; max-width: 380px; }
  .telephone { max-width: none; min-height: 480px; padding: 22px 20px 32px; }

  .section > h2 { max-width: 22ch; }

  .etapes {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
  .etapes li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    padding-top: 20px;
  }

  .etapes__total { border-top: 0; padding-top: 32px; }

  .final__titre { font-size: 4.5rem; }
}
