/*
 * Mise en page du site vitrine. Les rôles de couleur, la police et les mesures
 * viennent de /charte.css, chargée avant cette feuille et partagée avec Mon
 * compte : aucune valeur de la charte n'est recopiée ici.
 *
 * Les règles d'un composant suivent les règles générales : à spécificité égale,
 * la dernière l'emporte.
 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--police);
  line-height: 1.5;
  background: var(--fond);
  color: var(--texte);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--texte);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.9rem);
  margin: 0.6rem 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0.5rem 0 0.9rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

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

/* ── Mise en page ───────────────────────────────────────────── */

.contenant {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--creux {
  background: var(--panneau);
}

.section--centre {
  text-align: center;
}

.surtitre {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--texte);
}

.intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--texte-attenue);
}

.section--centre .intro {
  margin-left: auto;
  margin-right: auto;
}

.grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* ── Éléments ───────────────────────────────────────────────── */

.carte {
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.6rem;
}

.carte p {
  color: var(--texte-attenue);
  font-size: 0.92rem;
}

.carte p:last-child {
  margin-bottom: 0;
}

.bouton {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--rayon-bouton);
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: var(--texte);
}

.bouton--secondaire {
  background: var(--voile);
  border-color: var(--texte);
}

.bouton--blanc {
  background: var(--fond);
  border-color: var(--fond);
}

.bouton--whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.liste-nue {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.liste-nue li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.liste-nue li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--marque);
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq__item {
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}

.faq__item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.faq__item p {
  margin: 0;
  padding: 0 1.4rem 1.2rem;
  color: var(--texte-attenue);
}

.substitut {
  display: grid;
  place-items: center;
  min-height: 15rem;
  border: 2px dashed var(--bord);
  border-radius: var(--rayon);
  background: var(--panneau);
  color: var(--texte-attenue);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* ── En-tête ────────────────────────────────────────────────── */

.entete {
  background: var(--fond);
  border-bottom: 1px solid var(--bord);
  position: sticky;
  top: 0;
  z-index: 50;
}

.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.entete__marque {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--texte);
  text-decoration: none;
}

.entete__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.entete__nav a {
  color: var(--texte);
  opacity: 0.85;
  text-decoration: none;
}

.entete__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.entete__contact {
  padding: 0.55rem 1rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: var(--texte);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .entete__nav {
    order: 3;
    width: 100%;
  }
}

/* ── Pied de page ───────────────────────────────────────────── */

.pied {
  border-top: 1px solid var(--bord);
  padding: 2.2rem 0;
  text-align: center;
  color: var(--texte-attenue);
  font-size: 0.85rem;
}

.pied p {
  margin: 0 0 0.5rem;
}

.pied a {
  color: var(--texte-attenue);
  text-decoration: underline;
}

.pied a:hover {
  color: var(--texte);
}

.pied__marque {
  font-weight: 700;
  font-size: 1rem;
  color: var(--texte);
}

.pied .pied__appel {
  margin: 1.25rem 0;
}

.pied .bouton {
  color: var(--texte);
  text-decoration: none;
}

.pied__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
}

.pied__legal {
  margin-top: 1rem;
  font-size: 0.75rem;
}

/* ── Bannière ───────────────────────────────────────────────── */

.banniere {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  background: var(--marque);
}

.banniere__cercle {
  position: absolute;
  border-radius: 50%;
}

.banniere__cercle--haut {
  top: -5rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: var(--voile);
}

.banniere__cercle--bas {
  bottom: -6rem;
  left: -5rem;
  width: 14rem;
  height: 14rem;
  background: var(--voile);
}

.banniere__corps {
  position: relative;
  z-index: 2;
}

.banniere h1 {
  max-width: 42rem;
}

.banniere__intro {
  max-width: 35rem;
  margin-bottom: 0;
  font-size: 1.15rem;
}

.banniere__signature {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.boutons--centre {
  justify-content: center;
}

/* ── Cartes, étapes, pastilles, illustrations ───────────────── */

.carte__icone {
  margin-right: 0.5rem;
}

.carte__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 1.25rem;
  background: var(--marque);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.carte__etiquette {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.etape {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--bord);
}

.etape:last-child {
  border-bottom: none;
}

.etape__rang {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border-radius: 50%;
  background: var(--marque);
  font-size: 1.15rem;
  font-weight: 700;
}

.etape h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.etape p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--texte-attenue);
}

.pastille {
  padding: 1.1rem 0.6rem;
  text-align: center;
}

.pastille__rond {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--marque);
  font-size: 1.4rem;
  font-weight: 700;
}

.pastille h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.pastille p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--texte-attenue);
}

.illustration {
  margin: 1.25rem 0;
}

.illustration:last-child {
  margin-bottom: 0;
}

.illustration img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}

.illustration figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--texte-attenue);
}

/* ── Sections de l'accueil ──────────────────────────────────── */

.outil__cartes {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.outil__incluses {
  margin: 1.25rem 0 2.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.benefices__pastilles {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.compare__tete {
  padding: 0.6rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.compare__tete--avant {
  background: var(--avant-fond);
  color: var(--texte-attenue);
}

.compare__tete--apres {
  background: var(--marque);
}

.compare__case {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bord);
  border-top: none;
  font-size: 0.9rem;
}

.compare__case--avant {
  color: var(--texte-attenue);
}

.compare__case--apres {
  background: var(--apres-fond);
  font-weight: 700;
}

.offres__cartes {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.offres__devis {
  margin-top: 2.1rem;
  text-align: center;
}

.offres__devis p {
  color: var(--texte-attenue);
}

.lancement {
  padding: 2.4rem 1.9rem;
  border-radius: 1rem;
  background: var(--accent);
  text-align: center;
}

.lancement h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.lancement p {
  max-width: 32rem;
  margin: 0 auto 1.4rem;
}

.lancement .lancement__note {
  margin: 1rem auto 0;
  font-size: 0.9rem;
}

.histoire p:last-child {
  max-width: 42rem;
  color: var(--texte-attenue);
}

/* Le récit de la page Notre histoire : des paragraphes de lecture. */
.recit p {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: var(--texte-attenue);
}

/* ── Appels en bas de page ──────────────────────────────────── */

.appel__boutons {
  justify-content: center;
}

.essai__client {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ── Contact ────────────────────────────────────────────────── */

.demande {
  max-width: 35rem;
  margin: 0 auto;
  text-align: center;
}

.demande__numero {
  font-size: 1.4rem;
  font-weight: 700;
}

.formulaire {
  max-width: 35rem;
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--fond);
}

.formulaire__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.9rem;
}

@media (max-width: 520px) {
  .formulaire__duo {
    grid-template-columns: 1fr;
  }
}

.formulaire .champ {
  margin-bottom: 1rem;
}

.formulaire .champ label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.champ__requis {
  color: var(--texte);
}

.formulaire__aide {
  margin: -0.3rem 0 1rem;
  color: var(--texte-attenue);
  font-size: 0.85rem;
}

.formulaire__piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire input[type='text'],
.formulaire input[type='email'],
.formulaire input[type='tel'],
.formulaire select,
.formulaire textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bord-champ);
  border-radius: var(--rayon-bouton);
  background: var(--fond);
  color: var(--texte);
  font-family: inherit;
  font-size: 0.9rem;
}

.formulaire textarea {
  min-height: 6rem;
  resize: vertical;
}

.formulaire__lancement {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: var(--rayon-bouton);
  background: var(--panneau);
  font-size: 0.85rem;
}

.formulaire__lancement input {
  margin-top: 0.2rem;
  accent-color: var(--texte);
}

.formulaire button {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.9rem;
  border: none;
  border-radius: var(--rayon-bouton);
  background: var(--accent);
  color: var(--texte);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ── Consentement (page des annonces) ───────────────────────── */

.consentement {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--fond);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
}

.consentement[hidden] {
  display: none;
}

.consentement p {
  margin: 0 0 0.8rem;
}

.consentement .boutons {
  margin: 0;
}

.consentement .bouton {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consentement__gerer {
  padding: 0;
  border: none;
  background: none;
  color: var(--texte-attenue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consentement__gerer[hidden] {
  display: none;
}

/* ── Mesure d'audience (politique de confidentialité) ───────── */

/* Le bouton « Ne pas être compté », que le script montre. */
.mesure__refus {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mesure__refus[hidden] {
  display: none;
}

.contact__direct {
  display: flex;
  justify-content: center;
}

/* ── Guides ─────────────────────────────────────────────────── */

.fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0.9rem 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--texte-attenue);
}

.fil li + li::before {
  content: '›';
  margin-right: 0.5rem;
}

.fil a {
  color: var(--texte-attenue);
}

.guide__corps {
  max-width: 46rem;
}

.guide__corps h2 {
  margin-top: 2rem;
}

.guide__corps h2:first-child {
  margin-top: 0;
}

.guide__video {
  display: block;
  width: 100%;
  margin-top: 2rem;
}

.video-youtube {
  margin: 2rem 0 0;
}

.video-youtube__lancer,
.video-youtube__lecteur {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-youtube__lancer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-youtube__bouton {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
}

.video-youtube__mention {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.maillage h2:not(:first-child) {
  margin-top: 2.5rem;
}

/* ── Pages légales ──────────────────────────────────────────── */

.legale {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.legale h2 {
  font-size: 1.4rem;
}

.liste {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.liste dt {
  color: var(--texte-attenue);
}

.liste dd {
  margin: 0;
  color: var(--texte);
}

/* Plus spécifique que .liste dd, qu'elle doit surpasser. */
.liste .manque {
  justify-self: start;
  padding: 0 0.5rem;
  border-radius: 0.25rem;
  background: var(--manque-fond);
  color: var(--manque);
  font-weight: 700;
}
