@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================================
   Zero Punaise — Design System (v2)
   Traitement des punaises de lit en Île-de-France
   Palette : bleu nuit / bleu électrique / corail
   ========================================================================= */

:root {
  /* Couleurs de marque */
  --navy-950: #080d1a;
  --navy-900: #0e172f;
  --navy-800: #16233f;
  --navy-700: #1e3050;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --accent:     #f43f5e;
  --accent-600: #e11d48;
  --accent-100: #ffe4e6;

  --ink:        #0f172a;
  --slate-700:  #334155;
  --slate-600:  #475569;
  --slate-500:  #64748b;
  --slate-400:  #94a3b8;
  --slate-300:  #cbd5e1;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;

  --bg:         #ffffff;
  --bg-soft:    #f6f8fd;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(8, 13, 26, 0.06), 0 1px 3px rgba(8, 13, 26, 0.08);
  --shadow-md: 0 10px 30px rgba(14, 23, 47, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 23, 47, 0.22);

  --font-heading: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --header-h: 72px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-600);
}

ul,
ol {
  padding-left: 1.25rem;
}

/* ------------------------------------------------------------------ Layout */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section__head {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section__head--left {
  margin-left: 0;
  text-align: left;
}

/* ------------------------------------------------------------------ Typo */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.28rem; }

.lead {
  font-size: 1.12rem;
  color: var(--slate-600);
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

.btn--primary:hover {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.45);
}

.btn--green {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn--green:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-500);
}

.btn--ghost:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn--outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-500);
}

.btn--outline:hover {
  background: var(--blue-50);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.08rem;
}

.btn--block {
  width: 100%;
}

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue-500), var(--blue-600));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--navy-900); }

.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand em {
  font-style: normal;
  color: var(--blue-600);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.98rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue-600);
}

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

.header-phone {
  font-weight: 700;
  color: var(--blue-700);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px auto;
  border-radius: 2px;
}

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(600px 400px at -5% 110%, rgba(244, 63, 94, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 5.5rem 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero__trust li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero__media {
  position: relative;
}

.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--blue-600);
}

.hero__card span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ------------------------------------------------------------------ Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--blue-600);
}

.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--slate-600); font-size: 0.98rem; }

/* ------------------------------------------------------------------ Services */
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.service-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.service-list li strong {
  color: var(--navy-900);
  font-size: 1.05rem;
}

.service-list li p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.service-list .num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ Process */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.step h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step p { color: var(--slate-600); font-size: 0.95rem; }

/* ------------------------------------------------------------------ CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--blue-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 1.75rem; }

/* ------------------------------------------------------------------ Forms */
.form {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

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

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate-700);
}

.field label span { color: var(--accent-600); }

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field textarea { resize: vertical; min-height: 120px; }

.field .hint {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-600); }
.form-status.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ Blog */
.blog-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.post-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.post-card__cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-600);
}

.post-card h3 { font-size: 1.15rem; }

.post-card h3 a { color: var(--navy-900); }
.post-card h3 a:hover { color: var(--blue-600); }

.post-card p { color: var(--slate-600); font-size: 0.95rem; flex: 1; }

.post-card__meta {
  font-size: 0.82rem;
  color: var(--slate-500);
  display: flex;
  gap: 1rem;
}

/* Article */
.article-hero {
  background: var(--navy-950);
  color: #fff;
  padding: 3.5rem 0;
}

.article-hero .breadcrumb { color: rgba(255, 255, 255, 0.6); margin-bottom: 1.5rem; }
.article-hero .breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.article-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1rem; }

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}

.article-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
}

.article-body h3 { margin: 1.75rem 0 0.75rem; }

.article-body p { margin-bottom: 1.1rem; color: var(--slate-700); }

.article-body ul,
.article-body ol { margin-bottom: 1.25rem; color: var(--slate-700); }
.article-body li { margin-bottom: 0.5rem; }

.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius); width: 100%; }
.article-body figcaption {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: 0.6rem;
}

.article-body .lead-para {
  font-size: 1.18rem;
  color: var(--slate-700);
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}

.toc strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.toc a { color: var(--slate-700); }

.toc a::before {
  content: counter(toc) ". ";
  color: var(--blue-600);
  font-weight: 700;
}

.callout {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--navy-700);
}

.callout--danger {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #7f1d1d;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq summary {
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-600);
}

.faq details[open] summary::after { content: "–"; }

.faq .faq__body { padding: 0 1.5rem 1.25rem; color: var(--slate-600); }

/* ------------------------------------------------------------------ Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.breadcrumb a { color: var(--blue-700); }

.breadcrumb .sep { margin: 0 0.4rem; color: var(--slate-400); }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: var(--blue-500); }

.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer__brand em { color: var(--blue-500); font-style: normal; }

.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 620px;
  margin: 0 auto;
  z-index: 1000;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--blue-600);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.75rem;
  display: none;
  animation: slide-up 0.4s ease;
}

.cookie-banner.is-visible { display: block; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-banner__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cookie-banner__icon svg { width: 24px; height: 24px; }

.cookie-banner__title { display: flex; flex-direction: column; gap: 0.1rem; }

.cookie-banner__title strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy-900);
}

.cookie-banner__title span { font-size: 0.8rem; color: var(--slate-500); }

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.cookie-banner p a { font-weight: 600; }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cookie-banner .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

.cookie-banner__prefs {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.cookie-banner__prefs[hidden] { display: none; }

.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.cookie-pref__text { display: flex; flex-direction: column; gap: 0.15rem; }

.cookie-pref__text strong { font-size: 0.95rem; color: var(--navy-900); }
.cookie-pref__text span { font-size: 0.82rem; color: var(--slate-500); }

.cookie-banner__prefs .btn { margin-top: 1.1rem; }

/* Interrupteur (toggle switch) */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--slate-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch__track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .switch__track { background: var(--blue-600); }
.switch input:checked + .switch__track::before { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: 0.55; cursor: not-allowed; }

/* Bouton texte */
.btn--text {
  background: transparent;
  color: var(--slate-600);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}
.btn--text:hover { color: var(--blue-700); text-decoration: underline; }

/* ------------------------------------------------------------------ Stats */
.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}

.stat {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--blue-600);
  line-height: 1.1;
}

.stat span { color: var(--slate-600); font-size: 0.95rem; }

/* ------------------------------------------------------------------ Tag list */
.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--blue-100);
}

/* ------------------------------------------------------------------ Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--slate-500); }

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .main-nav li { width: 100%; }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--slate-100);
  }

  .header-cta .btn--primary { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
