/* ===========================================================
   Anti-Nuisibles IDF — Landing styles
   Author: Senior dev refactor — 2026-05-26
   =========================================================== */

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:target, section[id], main[id] { scroll-margin-top: 104px; }
@media (max-width: 640px) { :target, section[id], main[id] { scroll-margin-top: 84px; } }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* -------- Design tokens -------- */
:root {
  --c-primary: #D9444A;
  --c-primary-600: #B83339;
  --c-primary-soft: #FCEAEB;
  --c-secondary: #4CAF50;
  --c-secondary-600: #3D8B40;
  --c-secondary-soft: #E8F5E9;
  --c-ink: #0E3047;
  --c-text: #4A5562;
  --c-muted: #94A3B8;
  --c-surface: #F4F6F8;
  --c-border: #E5E9EE;
  --c-white: #FFFFFF;
  --c-star: #FACC15;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(11, 22, 32, 0.04), 0 1px 3px rgba(11, 22, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 22, 32, 0.06), 0 2px 4px rgba(11, 22, 32, 0.04);
  --shadow-lg: 0 16px 40px rgba(11, 22, 32, 0.12), 0 4px 12px rgba(11, 22, 32, 0.06);
  --shadow-primary: 0 8px 20px rgba(217, 68, 74, 0.28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- Base typography -------- */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--c-text); }
strong { color: var(--c-ink); font-weight: 600; }

::selection { background: var(--c-primary); color: white; }

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); }
.section--soft { background: var(--c-secondary-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.125rem;
  color: var(--c-text);
  max-width: 56ch;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }

.btn--primary {
  background: var(--c-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--c-primary-600); }

.btn--secondary {
  background: white;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn--secondary:hover { background: var(--c-ink); color: white; }

.btn--ghost {
  color: var(--c-ink);
  font-weight: 600;
}
.btn--ghost:hover { color: var(--c-primary); }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* -------- Utility -------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* -------- Header -------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding-block: 8px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 72px; width: auto; display: block; }
@media (max-width: 640px) {
  .header__inner { min-height: 72px; }
  .header__logo img { height: 56px; }
}

.header__nav ul {
  display: flex; gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.header__nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-ink);
  position: relative;
  padding: 8px 0;
}
.header__nav a:hover { color: var(--c-primary); }
.header__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px; background: var(--c-primary);
  transition: width var(--transition);
}
.header__nav a:hover::after { width: 100%; }

.header__cta {
  display: flex; align-items: center; gap: 16px;
}
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--c-ink);
}
.header__phone:hover { color: var(--c-primary); }
.header__phone .icon { width: 18px; height: 18px; }

.header__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: var(--r-sm);
}
.header__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-ink); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 88px 0 0 0;
  background: white; padding: 32px var(--gutter);
  z-index: 90;
}
@media (max-width: 640px) {
  .mobile-menu { inset: 72px 0 0 0; }
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu ul {
  display: flex; flex-direction: column; gap: 4px;
  list-style: none; padding: 0; margin: 0 0 24px 0;
}
.mobile-menu li a {
  display: block; padding: 14px 0;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.5rem;
  color: var(--c-ink); border-bottom: 1px solid var(--c-border);
}

@media (max-width: 1023px) {
  .header__nav { display: none; }
  .header__devis { display: none; }
  .header__burger { display: flex; }
}
@media (max-width: 640px) {
  .header__phone span { display: none; }
  .header__phone .icon { width: 22px; height: 22px; }
}

/* -------- Badge -------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.8125rem; font-weight: 600;
}
.badge--primary { background: var(--c-primary-soft); color: var(--c-primary-600); }
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,68,74,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(217,68,74,0); }
}

.text-accent { color: var(--c-primary); }

/* -------- Hero -------- */
.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
  background:
    radial-gradient(60% 80% at 100% 0%, var(--c-secondary-soft) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, var(--c-primary-soft) 0%, transparent 55%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__content > * + * { margin-top: 24px; }
.hero h1 { letter-spacing: -0.025em; }

.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero__checks {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.9375rem; color: var(--c-ink); font-weight: 500;
}
.hero__checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__checks .icon { width: 18px; height: 18px; color: var(--c-secondary); }

.hero__media { position: relative; }
.hero__media > img {
  width: 100%; height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 8 / 6;
  object-fit: cover;
}

.hero__floating-card {
  position: absolute;
  left: -16px; bottom: -24px;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  max-width: 240px;
}
.hero__floating-card--cert {
  padding: 12px 18px;
  max-width: 220px;
}
.hero__floating-card--cert img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .hero__floating-card--cert { max-width: 180px; padding: 10px 14px; }
}
.hero__floating-card-stars {
  display: flex; gap: 2px; color: var(--c-star);
}
.hero__floating-card-stars svg { width: 18px; height: 18px; }
.hero__floating-card strong {
  display: block; font-size: 1.125rem; color: var(--c-ink);
}
.hero__floating-card span {
  font-size: 0.8125rem; color: var(--c-muted);
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; margin-inline: auto; }
}

/* -------- Trust strip -------- */
.trust {
  background: var(--c-secondary-soft);
  padding-block: 28px;
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0; padding: 0; list-style: none;
  text-align: center;
}
.trust__list li {
  position: relative;
}
.trust__list li + li::before {
  content: "";
  position: absolute; left: 0; top: 10%;
  width: 1px; height: 80%;
  background: rgba(20, 184, 166, 0.25);
}
.trust__list strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.375rem; font-weight: 800;
  color: var(--c-ink);
  line-height: 1.1;
}
.trust__list span {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-secondary-600);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .trust__list li + li::before { display: none; }
}

/* -------- Section head -------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-head h2 { margin-top: 4px; }
.section-head .lead { margin: 16px auto 0; }

/* -------- Services -------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.card-service {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card-service:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.card-service__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-secondary-soft);
  color: var(--c-secondary-600);
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}
.card-service__icon svg,
.card-service__icon iconify-icon { width: 32px; height: 32px; font-size: 32px; }
.card-service__icon iconify-icon { display: inline-block; line-height: 1; color: inherit; }
.card-service:hover .card-service__icon {
  background: var(--c-primary);
  color: white;
}
.card-service h3 { margin-bottom: 8px; }
.card-service p {
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: 16px;
}
.card-service__link {
  font-weight: 600;
  color: var(--c-primary);
  font-size: 0.9375rem;
  align-self: flex-start;
}
.card-service__link:hover { color: var(--c-primary-600); text-decoration: underline; }

@media (max-width: 1023px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services__grid { grid-template-columns: 1fr; } }

/* -------- Pourquoi (text + image) -------- */
.pourquoi__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.pourquoi__media {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pourquoi__media img {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}
.pourquoi__content > * + * { margin-top: 20px; }
.pourquoi__content h2 { margin-top: 4px; }
.pourquoi__content p { line-height: 1.7; }
.pourquoi__content .btn { margin-top: 28px; }

@media (max-width: 1023px) {
  .pourquoi__grid { grid-template-columns: 1fr; }
  .pourquoi__media { max-width: 720px; margin-inline: auto; }
  .pourquoi__media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .pourquoi__media { max-width: none; }
  .pourquoi__media img { aspect-ratio: 4 / 3; }
}


/* -------- Galerie -------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.gallery__item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 32px 16px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(180deg, rgba(11,22,32,0) 0%, rgba(11,22,32,0.75) 100%);
}

@media (max-width: 1023px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery { grid-template-columns: 1fr; } }

/* -------- Avis -------- */
.avis__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.avis__head h2 { margin-top: 8px; }
.avis__score {
  display: flex; align-items: center; gap: 12px;
}
.avis__stars { display: flex; gap: 2px; color: var(--c-star); }
.avis__stars svg { width: 22px; height: 22px; }
.avis__score strong {
  font-family: 'Manrope', sans-serif; font-size: 1.5rem; color: var(--c-ink);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.review {
  position: relative;
  background: white;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.review__quote-mark {
  position: absolute; top: 8px; right: 20px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 5rem; line-height: 1;
  color: var(--c-primary);
  opacity: 0.15;
  pointer-events: none;
}
.review__stars { display: flex; gap: 2px; color: var(--c-star); margin-bottom: 14px; }
.review__stars svg { width: 16px; height: 16px; }
.review p {
  font-size: 0.9375rem;
  color: var(--c-ink);
  flex-grow: 1;
  margin-bottom: 20px;
}
.review__author {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem;
}
.review__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-secondary);
  color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.875rem;
}

@media (max-width: 1023px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .reviews { grid-template-columns: 1fr; } }

/* -------- Contact -------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__info > * + * { margin-top: 16px; }
.contact__info .lead { margin-bottom: 16px; }

.contact__list {
  display: flex; flex-direction: column; gap: 20px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.contact__list li {
  display: flex; gap: 16px; align-items: flex-start;
}
.contact__list strong {
  display: block;
  color: var(--c-ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact__list a {
  color: var(--c-text);
}
.contact__list a:hover { color: var(--c-primary); }
.contact__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-secondary-soft);
  color: var(--c-secondary-600);
  display: grid; place-items: center;
  flex: none;
}
.contact__icon svg { width: 20px; height: 20px; }

/* Form */
.contact-form {
  background: white;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 16px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
}
.field__label span { color: var(--c-primary); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: white;
  font-size: 0.9375rem;
  color: var(--c-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--c-muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(217, 68, 74, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  align-self: stretch;
  justify-content: center;
  padding: 16px 24px;
  margin-top: 8px;
  font-size: 1rem;
}
.contact-form__rgpd {
  font-size: 0.75rem;
  color: var(--c-muted);
  text-align: center;
  margin-top: 4px;
}
.contact-form__feedback {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
}
.contact-form__feedback.is-success {
  background: var(--c-secondary-soft);
  color: var(--c-secondary-600);
}
.contact-form__feedback.is-error {
  background: #FEE2E2;
  color: #B91C1C;
}

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

/* -------- Footer -------- */
.footer {
  background: var(--c-ink);
  color: #B6C2CC;
  padding-block: clamp(48px, 6vw, 72px) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 48px;
}
.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 0.9375rem; }
.footer a { color: #B6C2CC; }
.footer a:hover { color: var(--c-primary); }
.footer p { font-size: 0.9375rem; line-height: 1.7; color: #B6C2CC; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__brand p { max-width: 36ch; }
.footer__brand a { line-height: 1.9; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 20px;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

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

/* -------- Mobile call bar -------- */
.mobile-callbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: white;
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(11,22,32,0.1);
  gap: 10px;
}
.mobile-callbar:not([hidden]) { display: flex; }
.mobile-callbar a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: var(--r-full);
  font-weight: 600; font-size: 0.9375rem;
}
.mobile-callbar svg { width: 18px; height: 18px; }
.mobile-callbar__call {
  background: var(--c-secondary);
  color: white;
}
.mobile-callbar__devis {
  background: var(--c-primary);
  color: white;
}

@media (max-width: 767px) {
  body { padding-bottom: 72px; } /* leave room for the bar */
}
@media (min-width: 768px) {
  .mobile-callbar { display: none !important; }
}

/* -------- Reveal on scroll -------- */
/* Animation appliquée UNIQUEMENT quand JS confirme le scroll-reveal (.js-anim sur <html>).
   Sans JS, les éléments restent visibles par défaut → fallback safe sur in-app browsers. */
.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* -------- Insurers / Agréments marquee -------- */
.insurers {
  padding-block: clamp(56px, 7vw, 88px);
  background: white;
  border-block: 1px solid var(--c-border);
  overflow: hidden;
}
.insurers__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.insurers__head h2 { margin-top: 4px; }
.insurers__head .lead { margin: 16px auto 0; }

.insurers__marquee {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.insurers__track {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: none;
  animation: insurers-scroll 36s linear infinite;
}
.insurers__track li {
  flex: none;
  width: 160px;
  height: 90px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.insurers__track li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-secondary);
}
.insurers__track img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--transition);
}
.insurers__track li:hover img {
  filter: grayscale(0) opacity(1);
}
.insurers__marquee:hover .insurers__track {
  animation-play-state: paused;
}

@keyframes insurers-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  .insurers__track { animation: none; }
  .insurers__marquee { overflow-x: auto; }
}

@media (max-width: 640px) {
  .insurers__track { gap: 16px; }
  .insurers__track li { width: 130px; height: 76px; padding: 12px 16px; }
  .insurers__track img { max-height: 36px; }
  .insurers__marquee { gap: 16px; }
  @keyframes insurers-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100% - 16px)); }
  }
}

/* -------- Legal page (mentions légales, CGV, politique conf.) -------- */
.legal {
  padding-block: clamp(56px, 8vw, 96px);
}
.legal > .container {
  max-width: 760px;
}
.legal__head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.legal__head h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.legal__updated {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.legal__content section + section {
  margin-top: clamp(28px, 4vw, 40px);
}
.legal__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 12px;
}
.legal__content p {
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal__content p:last-child {
  margin-bottom: 0;
}
.legal__content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal__content a:hover {
  color: var(--c-primary-600);
}
.legal__content strong {
  color: var(--c-ink);
  font-weight: 600;
}
.legal__content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 14px;
  line-height: 1.75;
}
.legal__content ul li {
  margin-bottom: 4px;
}
.legal__content ul li::marker {
  color: var(--c-primary);
}

/* -------- Quick form (mobile only — lead capture sous le hero) -------- */
.quick-form { display: none; }

@media (max-width: 767px) {
  /* Hero : on resserre le bas car le quick form prend le relais */
  .hero { padding-block: clamp(40px, 7vw, 64px) 32px; }

  .quick-form {
    display: block;
    /* Fond gris clair pour séparer visuellement hero (blanc) et trust strip (vert) */
    background: var(--c-surface);
    padding-block: 36px 44px;
    padding-inline: 16px;
  }
  .quick-form > .container {
    padding-inline: 0;
    max-width: 560px;
  }
  .quick-form__card.contact-form {
    padding: 22px 20px;
    gap: 14px;
  }
  .quick-form__card.contact-form .contact-form__submit {
    padding: 14px 20px;
    margin-top: 4px;
  }
}
@media (max-width: 380px) {
  .quick-form {
    padding-block: 32px 40px;
    padding-inline: 12px;
  }
  .quick-form__card.contact-form { padding: 20px 18px; }
}

/* -------- Pages landing Ads (header simplifié + footer mini) -------- */
.landing-approach {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.landing-approach .section-head { margin-bottom: 32px; }
.landing-approach__cta { margin-top: 4px; }

.footer--landing {
  background: var(--c-ink);
  color: rgba(255,255,255,0.7);
  padding-block: 32px;
  margin-top: 0; /* collé à la section précédente */
}
.footer--landing .footer__landing {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer--landing .footer__landing p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  word-break: break-word; /* email long ne déborde plus */
}
.footer--landing .footer__landing strong,
.footer--landing .footer__landing-brand strong {
  color: #ffffff !important;
  font-weight: 700;
}
.footer--landing .footer__landing a { color: rgba(255,255,255,0.92); text-decoration: none; }
.footer--landing .footer__landing a:hover { color: var(--c-primary); }
.footer--landing .footer__landing-links {
  font-size: 0.8125rem !important;
  color: rgba(255,255,255,0.58) !important;
}

/* Ligne brand : flex-wrap pour tablette, stack pour mobile */
.footer--landing .footer__landing-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}
.footer__landing-sep { color: rgba(255,255,255,0.32); }

/* Mobile < 560px : on empile chaque info sur sa propre ligne */
@media (max-width: 560px) {
  .footer--landing .footer__landing-brand { flex-direction: column; gap: 6px; }
  .footer--landing .footer__landing-brand .footer__landing-sep { display: none; }
  .footer--landing .footer__landing-links {
    line-height: 1.7;
  }
}
