/* ==========================================================================
   Landing artisan.everydaystudio.fr — charte : design.md
   Palette méditerranéenne : bleu marine (mer) / sable / soleil (CTA) / azur (accents)
   ========================================================================== */

:root {
  --marine: #17344E;
  --marine-fonce: #0F2438;
  --sable: #F8F3E8;
  --blanc-casse: #FDFBF6;
  --anthracite: #1F2B35;
  --soleil: #E9A13B;
  --soleil-fonce: #D18A1F;
  --azur: #256B9B;
  --azur-doux: #7FA9C4;
  --azur-clair: #9CCBEB;
  --gris-doux: rgba(31, 43, 53, 0.64);
  --ombre-carte: 0 4px 24px rgba(34, 40, 42, 0.06);
  --ombre-carte-hover: 0 12px 32px rgba(34, 40, 42, 0.12);
  --header-h: 72px;
  --radius-card: 16px;
  --font-titre: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-corps: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- Reset & base ------------------------------------------------------- */

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

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

body {
  font-family: var(--font-corps);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--anthracite);
  background: var(--sable);
}

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

h1, h2, h3 {
  font-family: var(--font-titre);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--anthracite);
}

h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem); font-weight: 700; margin-bottom: 48px; max-width: 22ch; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }

p { max-width: 65ch; }

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

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

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container.narrow { max-width: 820px; }

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-corps);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--soleil);
  color: var(--marine-fonce);
}
.btn-primary:hover { background: var(--soleil-fonce); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn-mini { padding: 12px 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; justify-content: center; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Header sticky ------------------------------------------------------ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 232, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 40, 42, 0.06);
  transition: box-shadow 0.25s ease;
}

header.scrolled { box-shadow: 0 2px 16px rgba(34, 40, 42, 0.07); }

header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; }
.logo img { display: block; height: 36px; width: auto; }

.menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-inline: auto;
}

.menu a {
  color: var(--anthracite);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.menu a:hover { color: var(--azur); border-bottom-color: var(--azur); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--anthracite);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sections : rythme & fonds ------------------------------------------ */

section { scroll-margin-top: var(--header-h); }

/* Effet « feuilles empilées » : chaque section recouvre la précédente
   avec un arrondi haut (sauf le hero, collé au header) */
main > section:not(:first-of-type),
footer {
  position: relative;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

.section {
  position: relative;
  padding-block: 96px;
  overflow: hidden;
}

.section-light { background: var(--sable); }
.section-lighter { background: var(--blanc-casse); }

.section-contrast {
  background: linear-gradient(180deg, #EFE7D8 0%, var(--sable) 100%);
}

.section-dark {
  background: var(--marine);
}
.section-dark h2, .section-dark p { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

/* Watermark de section (pattern Walt) */
.watermark {
  position: absolute;
  top: 12px;
  left: 8px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  color: var(--anthracite);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* --- Hero immersif (fond WebGL animé, repli dégradé CSS) ------------------ */

.hero {
  position: relative;
  padding-block: 80px 110px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(37, 107, 155, 0.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 15% 95%, rgba(127, 169, 196, 0.28) 0%, transparent 60%),
    linear-gradient(160deg, var(--marine-fonce) 0%, var(--marine) 60%, #1D4568 100%);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 { margin-bottom: 24px; color: #fff; }

h1 .accent, h2 .accent {
  font-style: normal;
  color: var(--azur);
}

.hero h1 .accent { color: var(--azur-clair); }

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero .geo-pills li {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(4, 12, 20, 0.45);
}

.geo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 24px;
}

.geo-pills li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--marine);
  background: rgba(37, 107, 155, 0.09);
  border: 1px solid rgba(37, 107, 155, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
}

/* --- Placeholders d'images (avant /ottho:generate-image) ----------------- */

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--marine);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  background:
    linear-gradient(145deg, rgba(127, 169, 196, 0.35) 0%, rgba(23, 52, 78, 0.18) 100%),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(23, 52, 78, 0.05) 14px 28px);
  border: 1px dashed rgba(23, 52, 78, 0.3);
  border-radius: var(--radius-card);
}

.img-placeholder code {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.hero-placeholder { aspect-ratio: 4 / 3; }

/* --- Bandeau chiffres clés ------------------------------------------------ */

.stat-band {
  background: var(--blanc-casse);
  border-bottom: 1px solid rgba(31, 43, 53, 0.06);
  padding-block: 48px;
}

.stat-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: start;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.stat-num {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--azur);
  flex: none;
  min-width: 3.2ch;
}

.stat p {
  color: var(--gris-doux);
  font-size: 0.9875rem;
  line-height: 1.5;
  max-width: 34ch;
}

.stat-source {
  grid-column: 1 / -1;
  color: rgba(31, 43, 53, 0.45);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

/* --- Cards (problème, offre) --------------------------------------------- */

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

.card {
  background: var(--blanc-casse);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--ombre-carte);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-carte-hover);
}

/* Cartes illustrées (Constat, Offre) : lévitation au survol */
.card:has(.card-illu):hover {
  transform: translateY(-14px) rotate(-1.2deg) scale(1.02);
  box-shadow: 0 36px 64px rgba(23, 52, 78, 0.18), 0 12px 24px rgba(23, 52, 78, 0.08);
}

.card:has(.card-illu):nth-child(2):hover {
  transform: translateY(-14px) rotate(1.2deg) scale(1.02);
}

.card .card-illu {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card:has(.card-illu):hover .card-illu {
  transform: scale(1.045);
}

.section-light .card { background: var(--blanc-casse); }
.section-lighter .card { background: #fff; }

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--azur);
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }

/* Illustrations pleine largeur en tête de carte (section Constat) */
.card-illu {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.card p { font-size: 0.9875rem; color: var(--gris-doux); }

.section-cta { margin-top: 48px; text-align: center; }

/* --- Pourquoi le SEO (pédagogie) ------------------------------------------- */

.seo-intro {
  font-size: 1.125rem;
  color: var(--gris-doux);
  max-width: 62ch;
  margin-top: -24px;
  margin-bottom: 48px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.data-card .data-num {
  display: block;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--azur);
  margin-bottom: 16px;
}

.seo-punch {
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--marine);
  max-width: 52ch;
  margin-top: 48px;
}

.data-source {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--gris-doux);
  letter-spacing: 0.03em;
}

/* --- Diagnostic ----------------------------------------------------------- */

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.diagnostic-grid h2 { margin-bottom: 24px; }
.diagnostic-grid p { margin-bottom: 32px; color: var(--gris-doux); }

.check-list-title {
  font-weight: 600;
  color: var(--anthracite) !important;
  margin-bottom: 16px !important;
}

.check-list {
  list-style: none;
  background: var(--blanc-casse);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--ombre-carte);
}

.check-list li {
  position: relative;
  padding-left: 36px;
  padding-block: 10px;
  font-weight: 500;
}

.check-list li + li { border-top: 1px solid rgba(34, 40, 42, 0.07); }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azur-doux);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 70% no-repeat, linear-gradient(#000 0 0);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 70% no-repeat;
  background-color: var(--soleil);
}

/* --- Méthode (steps) ------------------------------------------------------ */

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

.step {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--ombre-carte);
}

.step-num {
  display: block;
  font-family: var(--font-titre);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--azur);
  opacity: 0.85;
  margin-bottom: 16px;
}

.step p { font-size: 0.9875rem; color: var(--gris-doux); }

/* --- Pourquoi (badges) ---------------------------------------------------- */

.pourquoi-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  align-items: center;
}

.pourquoi-photo img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(4, 12, 20, 0.45);
}

.pourquoi-caption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55) !important;
  text-align: center;
}

@media (max-width: 960px) {
  .pourquoi-grid { grid-template-columns: 1fr; gap: 40px; }
  .pourquoi-photo { max-width: 380px; margin-inline: auto; }
}

#pourquoi h2 { margin-bottom: 24px; }
#pourquoi p { color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; }
#pourquoi strong { color: #fff; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.badges li {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 20px;
  border-radius: 999px;
}

/* --- Preuve : slider avant/après ------------------------------------------ */

.demo-label {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  color: var(--gris-doux);
  font-size: 0.9375rem;
}

.demo-badge {
  display: inline-block;
  background: var(--marine);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--ombre-carte-hover);
  touch-action: pan-y;
  user-select: none;
}

.ba-after, .ba-before {
  position: absolute;
  inset: 0;
}

.ba-before {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

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

.ba-tag {
  position: absolute;
  top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.ba-tag-before {
  left: 16px;
  background: rgba(31, 43, 53, 0.75);
  color: #fff;
}

.ba-tag-after {
  right: 16px;
  background: var(--soleil);
  color: var(--marine-fonce);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--marine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Bénéfices de la refonte, sous le comparateur */
.refonte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}

.refonte-grid h3 { margin-bottom: 12px; }
.refonte-grid p { color: var(--gris-doux); font-size: 0.9875rem; }

@media (max-width: 768px) {
  .refonte-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
}

/* --- FAQ ------------------------------------------------------------------ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ombre-carte);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 20px 24px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chevron {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--azur);
  border-bottom: 2px solid var(--azur);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}

.faq-item[open] .chevron { transform: rotate(225deg); margin-top: 4px; }

.faq-item p {
  padding: 0 24px 24px;
  color: var(--gris-doux);
}

/* --- CTA final + formulaire ------------------------------------------------ */

.cta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.cta-text h2 { margin-bottom: 24px; color: #fff; }
.cta-text p { margin-bottom: 32px; }

.cta-form {
  background: var(--blanc-casse);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

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

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.form-field .optional { font-weight: 400; color: var(--gris-doux); }

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-corps);
  font-size: 1rem;
  color: var(--anthracite);
  background: #fff;
  border: 1px solid rgba(34, 40, 42, 0.18);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--azur);
  box-shadow: 0 0 0 3px rgba(37, 107, 155, 0.18);
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-block: 8px 24px;
}

.form-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--azur);
}

.form-consent label {
  font-size: 0.875rem;
  color: var(--gris-doux);
  line-height: 1.5;
}

/* Sélecteurs renforcés : ces <p> vivent dans la section sombre,
   dont la règle .section-dark p écraserait la couleur sinon */
.section-dark .form-confirmation,
.form-confirmation {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: #E3F0E6;
  border: 1px solid #79A886;
  color: #1C4A2A;
  font-weight: 500;
}

.section-dark .form-error,
.form-error {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: #F9E8E2;
  border: 1px solid #C4744D;
  color: #8C2F14;
  font-weight: 500;
}

/* --- Pages légales (mentions, confidentialité) -------------------------------- */

.page-legal h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin-bottom: 16px;
}

.page-legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  max-width: none;
}

.page-legal p {
  margin-bottom: 10px;
  color: var(--gris-doux);
  line-height: 1.7;
}

.page-legal p:last-child { margin-top: 40px; }

/* --- Footer ----------------------------------------------------------------- */

footer {
  background: var(--marine-fonce);
  padding-block: 48px;
  padding-bottom: calc(48px + 76px); /* espace pour le CTA sticky mobile */
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.footer-brand img { display: block; height: 48px; width: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-block: 12px;
}
.footer-links a:hover { color: #fff; }

.copyright {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
}

/* --- CTA sticky mobile -------------------------------------------------------- */

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 36, 56, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sticky-cta .btn { flex: 1; justify-content: center; padding: 15px 16px; font-size: 0.9375rem; }

.btn-tel {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-tel svg { width: 22px; height: 22px; }

/* --- Entrée du hero (CSS pur, indépendant du JS — protège le LCP) ---------------- */

@keyframes enter-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.enter { animation: enter-up 0.6s ease both; }
.enter-delay { animation-delay: 0.15s; }

/* --- Reveal au scroll ----------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Cascade sur les grilles de cartes */
.cards-3 > :nth-child(2), .steps > :nth-child(2) { transition-delay: 0.12s; }
.cards-3 > :nth-child(3), .steps > :nth-child(3) { transition-delay: 0.24s; }
.cards-2 > :nth-child(2) { transition-delay: 0.15s; }

/* Invitation au glissement sur le comparateur avant/après */
@keyframes ba-nudge {
  0%, 100% { transform: translateX(-50%); }
  30% { transform: translateX(calc(-50% - 18px)); }
  70% { transform: translateX(calc(-50% + 18px)); }
}
.ba-slider.nudge .ba-handle { animation: ba-nudge 1.6s ease 0.5s 1; }

/* Watermarks : déplacés en douceur au scroll (JS, transform only) */
.watermark { will-change: transform; }

/* Sans JS, tout reste visible */
.no-observer .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive -------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid,
  .diagnostic-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards-3, .cards-2, .steps { grid-template-columns: 1fr; }

  .section { padding-block: 72px; }
}

@media (max-width: 768px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 40px 64px; }

  h2 { margin-bottom: 32px; }

  /* Menu burger */
  .menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--sable);
    border-bottom: 1px solid rgba(34, 40, 42, 0.08);
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(34, 40, 42, 0.08);
  }

  .menu.open { display: flex; }

  .menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    border-bottom: none;
  }

  .burger { display: flex; margin-left: auto; }

  header nav { gap: 16px; }
  header nav .btn-mini { display: none; }

  .sticky-cta { display: flex; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-form { padding: 28px 20px; }

  .ba-slider { aspect-ratio: 4 / 3; }

  .stat-band { padding-block: 40px; }
  .stat-band-grid { grid-template-columns: 1fr; gap: 24px; }

  main > section:not(:first-of-type),
  footer {
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
  }

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