/* ==========================================================================
   ERENA — Cabinet conseil en rénovation énergétique
   Feuille de style principale
   --------------------------------------------------------------------------
   Système de tokens :
   - Couleurs   : voir :root
   - Typo       : Fraunces (titres, serif éditorial) / Work Sans (texte, UI)
   - Signature  : motif "toit / ligne de maison" en trait fin, réutilisé
                  dans les cadres photo, la section engagement et le logo
   ========================================================================== */

:root {
  /* Couleurs de fond */
  --cream: #f5efe2;
  --cream-soft: #fbf8f1;
  --sage-tint: #eaeee1;

  /* Verts */
  --green-deep: #1e3a2e;
  --green-mid: #2c4a38;
  --green-line: #3d5c47;

  /* Cuivre / brun */
  --copper: #a3673c;
  --copper-soft: #c48a5a;
  --copper-deep: #7f4f2e;

  /* Texte */
  --ink: #262319;
  --ink-soft: #58523f;
  --ink-on-dark: #f2ede0;
  --ink-on-dark-soft: #c9d2c4;

  /* Bordures / lignes */
  --border: #e0d5b8;
  --border-on-dark: rgba(242, 237, 224, 0.16);

  /* Ombres */
  --shadow-card: 0 1px 2px rgba(38, 35, 25, 0.04), 0 8px 24px rgba(38, 35, 25, 0.06);
  --shadow-photo: 0 20px 48px rgba(30, 58, 46, 0.16);

  /* Rythme */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --measure: 62ch;

  /* Typo */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

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

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--copper);
  display: inline-block;
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.section--soft {
  background: var(--cream-soft);
}

.section--tint {
  background: var(--sage-tint);
}

.section--dark {
  background: var(--green-deep);
  color: var(--ink-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--ink-on-dark);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  margin-top: 0.9rem;
}

.section-title em {
  font-style: italic;
  color: var(--copper-deep);
}

.section--dark .section-title em {
  color: var(--copper-soft);
}

.lede {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.section--dark .lede {
  color: var(--ink-on-dark-soft);
}

/* ------------------------------- Boutons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green-deep);
  color: var(--ink-on-dark);
  box-shadow: 0 10px 24px rgba(30, 58, 46, 0.22);
}

.btn-primary:hover {
  background: var(--green-mid);
}

.btn-on-dark {
  background: var(--copper);
  color: var(--cream-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-on-dark:hover {
  background: var(--copper-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-deep);
}

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 239, 226, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}

/*
  LOGO — zone prévue pour le fichier fourni par le client.
  Pour intégrer le logo définitif : remplacer le contenu de <a class="logo">
  par une image, ex. :
  <a class="logo" href="#top"><img src="assets/logo-erena.svg" alt="ERENA" height="34"></a>
  Le style ci-dessous garde alors sa cohérence (hauteur/alignement gérés par .logo).
*/
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
}

.logo-image {
  height: 46px;
  width: auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--green-deep);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-word {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-baseline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.2rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-top: 1.1rem;
  letter-spacing: -0.01em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--copper-deep);
}

.hero-lede {
  margin-top: 1.5rem;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero-microtrust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.hero-microtrust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-microtrust span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

.hero-visual {
  position: relative;
}

.hero-visual .photo-frame {
  aspect-ratio: 16 / 10;
  transform: rotate(1deg);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1.5px solid var(--copper);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero-visual .photo-frame {
  position: relative;
  z-index: 1;
}

/* Photo réelle à l'intérieur d'un .photo-frame : remplit le cadre en conservant
   les coins arrondis et l'ombre déjà définis sur .photo-frame */
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/*
  BADGE D'INCRUSTATION — petit médaillon qui vient "chevaucher" la photo,
  dans l'esprit d'un tampon éditorial. Réutilise le motif maison en signature.
*/
.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem 0.85rem 0.85rem;
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
}

.hero-badge-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--ink-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-icon svg {
  width: 19px;
  height: 19px;
}

.hero-badge-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.28;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero-badge {
    left: 1rem;
    bottom: -1.2rem;
  }
}

@media (max-width: 460px) {
  .hero-badge-text {
    white-space: normal;
    max-width: 9.5rem;
  }
}

/*
  CADRES PHOTO — encadrés neutres en attente des vraies photos.
  Chaque .photo-frame peut recevoir directement une balise <img class="photo-frame">
  ou garder un <div class="photo-frame"> autour d'une <img> insérée à la place
  du contenu placeholder (icône + légende).
*/
.photo-frame {
  background: linear-gradient(155deg, #e4ddc9 0%, #d8d0b6 55%, #cdc4a4 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-photo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--copper-deep);
  overflow: hidden;
  position: relative;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
}

.photo-frame svg {
  width: 15%;
  min-width: 32px;
  max-width: 56px;
  opacity: 0.55;
}

.photo-frame span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.photo-frame--wide {
  aspect-ratio: 16 / 10;
}

/* ------------------------------ Problème --------------------------------- */
.statement {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.statement .section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.statement .lede {
  margin-inline: auto;
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--copper);
  margin: 2.2rem auto 0;
}

/* ------------------------------- Solutions -------------------------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2.4rem;
  max-width: 52rem;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
}

.solution-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--ink-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-check svg {
  width: 13px;
  height: 13px;
}

/* ------------------------------ Engagement -------------------------------- */
.engagement {
  position: relative;
}

.engagement-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.engagement-visual .photo-frame--portrait {
  aspect-ratio: 4 / 5;
  transform: rotate(-1.2deg);
}

.engagement-mark {
  width: 70px;
  height: 70px;
  color: var(--copper-soft);
  opacity: 0.7;
}

.engagement-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--ink-on-dark);
}

.engagement-body {
  margin-top: 1.6rem;
  max-width: var(--measure);
  color: var(--ink-on-dark-soft);
  font-size: 1.05rem;
}

/* ------------------------------ Diagnostic -------------------------------- */
.diagnostic-body {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2.2rem, 5vw, 3.5rem);
  align-items: center;
}

.diagnostic-visual {
  position: relative;
}

.diagnostic-visual .photo-frame--diagnostic {
  aspect-ratio: 16 / 11;
  transform: rotate(-1deg);
}

.diagnostic-visual::before {
  content: "";
  position: absolute;
  inset: -1.1rem 1.1rem 1.1rem -1.1rem;
  border: 1.5px solid var(--copper);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.diagnostic-visual .photo-frame--diagnostic {
  position: relative;
  z-index: 1;
}

.steps--compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--copper);
  font-style: italic;
}

.step h3 {
  font-size: 1.12rem;
  margin-top: 0.9rem;
}

.step p {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ------------------------------- Bénéfices -------------------------------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
}

.benefit-grid .card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--green-deep);
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ------------------------------ Pourquoi ERENA ----------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.why-grid .card {
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.why-grid h3 {
  font-size: 1.15rem;
}

.why-grid p {
  margin-top: 0.6rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------------------------------- FAQ ------------------------------------ */
.faq-list {
  max-width: 46rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--copper-deep);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
  transition: transform 0.25s ease;
}

.faq-item[data-open="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 1.6rem;
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 0.98rem;
}

/* ------------------------------- CTA final --------------------------------- */
.cta-final {
  text-align: center;
}

.cta-final .section-head {
  margin-inline: auto;
}

.cta-final .btn {
  margin-top: 2.2rem;
}

/* --------------------------------- Footer ---------------------------------- */
.site-footer {
  background: var(--green-deep);
  color: var(--ink-on-dark-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-on-dark);
}

.footer-brand .logo-word,
.footer-brand .logo-baseline {
  color: var(--ink-on-dark);
}

.footer-brand .logo-baseline {
  color: var(--ink-on-dark-soft);
  margin-top: 0.3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 26rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  font-weight: 600;
}

.footer-col ul {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--ink-on-dark);
}

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-legal-note {
  max-width: 40rem;
  font-size: 0.82rem;
  opacity: 0.8;
}

.footer-legal-note .legal-link {
  color: var(--copper-soft);
  opacity: 1;
}

.footer-legal-note .legal-link:hover {
  color: var(--ink-on-dark);
}

/* ------------------------------ Reveal au scroll ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------ Formulaire --------------------------------- */
.diagnostic-form {
  max-width: 44rem;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-inline {
  display: flex;
  gap: 0.9rem;
}

.field-inline-select {
  flex: 0 0 auto;
  width: 9.5rem;
}

.field-inline-input {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 480px) {
  .field-inline {
    flex-direction: column;
  }

  .field-inline-select {
    width: 100%;
  }
}

.field textarea {
  resize: vertical;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(163, 103, 61, 0.15);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1rem;
}

.radio-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.radio-item input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: var(--green-deep);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--green-deep);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checkbox-item--consent {
  font-size: 0.9rem;
  align-items: flex-start;
}

.form-submit {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.form-error {
  margin-top: 1.2rem;
  color: #a13c3c;
  font-size: 0.92rem;
}

.form-success {
  max-width: 44rem;
  text-align: center;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.form-success .section-title {
  margin-top: 0.9rem;
}

.form-success .lede {
  margin-inline: auto;
  margin-bottom: 2rem;
}

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

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ Page légale -------------------------------- */
.legal-body {
  max-width: var(--measure);
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2.4rem;
}

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

.legal-body p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-link {
  color: var(--copper-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover {
  color: var(--copper);
}

.legal-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.legal-updated {
  margin-top: 2.6rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------------------------------- Responsive ------------------------------ */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual .photo-frame {
    aspect-ratio: 16 / 11;
    transform: none;
  }

  .hero-visual::before {
    display: none;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .engagement-visual .photo-frame--portrait {
    aspect-ratio: 16 / 10;
    transform: none;
    max-width: 32rem;
  }

  .diagnostic-body {
    grid-template-columns: 1fr;
  }

  .diagnostic-visual {
    max-width: 26rem;
    margin-inline: auto;
  }

  .diagnostic-visual .photo-frame--diagnostic {
    aspect-ratio: 16 / 10;
    transform: none;
  }

  .diagnostic-visual::before {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .logo-image {
    height: 36px;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  .header-actions .btn-primary {
    padding: 0.75rem 1.2rem;
    font-size: 0.86rem;
  }

  .nav-toggle {
    display: flex;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
