/* Landing PAC : mobile d'abord, police système, aucune ressource externe. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #0b0d0c;
  background: #f7f8f6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #0b0d0c;
  outline-offset: 2px;
}

.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffd000;
}

.conteneur {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.conteneur--etroit {
  max-width: 760px;
}

.visuellement-cache,
.hors-ecran {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* En-tête */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e3ebe6;
}

.site-header__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.marque {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.tel {
  font-weight: 700;
  text-decoration: none;
  background: #ffd000;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Hero */
.hero {
  background: #0b0d0c;
  color: #fff;
  padding: 40px 0 48px;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.mention {
  font-size: 1rem;
  line-height: 1.5;
  color: #f1f3f2;
  max-width: 760px;
  margin-bottom: 1.2em;
}

.hero__sous-titre {
  font-size: 1.15rem;
  max-width: 760px;
  color: #e5e9e7;
}

.bouton {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #0b0d0c;
  background: #ffd000;
  padding: 14px 26px;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.bouton:hover {
  background: #ffdd33;
  transform: translateY(-1px);
}

.bouton[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section--alt {
  background: #fff;
  border-top: 1px solid #e3ebe6;
  border-bottom: 1px solid #e3ebe6;
}

.cartes,
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.carte,
.etape {
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 16px;
  padding: 20px;
}

.section--alt .etape {
  background: #f7f8f6;
}

.etapes {
  counter-reset: etape;
}

.etape {
  counter-increment: etape;
}

.etape h3::before {
  content: counter(etape);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  background: #ffd000;
  font-weight: 800;
}

.etape p {
  margin: 0;
  color: #4b5563;
}

/* Offre */
.section--offre {
  background: #ffd000;
}

.offre {
  margin-bottom: 1em;
}

.mention--claire {
  color: #0b0d0c;
}

.section--offre .bouton {
  background: #0b0d0c;
  color: #fff;
}

.section--offre .bouton:hover {
  background: #26302b;
}

.section--offre :focus-visible {
  outline-color: #0b0d0c;
}

/* Formulaire */
.note {
  color: #4b5563;
  font-style: italic;
}

form {
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 16px;
  padding: 20px;
}

.grille {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.champ {
  margin: 0 0 16px;
}

.grille .champ {
  margin: 0;
}

label,
legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  /* Contour ≥ 3:1 sur blanc (WCAG 1.4.11) : #d8e3dc était à 1,3:1. */
  border: 1px solid #77827c;
  border-radius: 12px;
  background: #fff;
  color: #0b0d0c;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
}

.radio,
.case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.radio {
  display: inline-flex;
  margin-right: 24px;
}

input[type="radio"],
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: #0b0d0c;
}

.champ--consentement {
  margin-top: 16px;
}

.erreur {
  color: #a11717;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 6px 0 0;
}

.erreur[hidden] {
  display: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #a11717;
}

.statut {
  min-height: 1.5em;
  font-weight: 600;
}

.statut.erreur {
  color: #a11717;
}

.confirmation {
  background: #fff;
  border: 2px solid #ffd000;
  border-radius: 16px;
  padding: 24px;
}

.confirmation:focus {
  outline: 3px solid #0b0d0c;
}

.rgpd {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #4b5563;
}

.rgpd h3 {
  font-size: 1rem;
  color: #0b0d0c;
}

/* FAQ */
.faq__item {
  background: #f7f8f6;
  border: 1px solid #e3ebe6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq__item p {
  margin: 10px 0 0;
  color: #374151;
}

/* Pied de page */
.site-footer {
  background: #0b0d0c;
  color: #e5e9e7;
  padding: 28px 0;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.page-legale {
  padding-top: 32px;
  padding-bottom: 48px;
}

.texte-legal h2 {
  margin-top: 1.6em;
}

@media (min-width: 720px) {
  .grille {
    grid-template-columns: 1fr 1fr;
  }

  .cartes,
  .etapes {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 72px 0 80px;
  }

  .section {
    padding: 56px 0;
  }

  form {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bouton {
    transition: none;
  }
}

/* Petit écran : bouton d'envoi pleine largeur, plus facile à toucher. */
@media (max-width: 719px) {
  #lead-form .bouton {
    width: 100%;
  }
}
