/* ===================================================================
   CleanNest — landing page
   Design tokens extracted from Figma (file WhJ1iZm22iqWET4ICSTtRZ)
   =================================================================== */
:root {
  --blue: #2868fd;
  --blue-light: #c2dffc;   /* accent bleu clair, détaché du bleu roi */
  --blue-tint: #e7eeff;    /* fonds légers (sur fond blanc) */
  --black: #191615;
  --off-white: #f1f0ee;
  --surface: #eff2f7;
  --card-border: #cdd0d3;
  --footer-bg: #1a1b1d;
  --muted: rgba(60, 60, 67, 0.5);

  --font-head: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --container: 1140px;
  --radius: 20px;
  --radius-sm: 10px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(56px, 9vw, 120px); }

/* ---------- typography ---------- */
.h-5xl { font-family: var(--font-head); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.0; letter-spacing: -0.05em; }
.h-4xl { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.0; letter-spacing: -0.05em; }
.h-3xl { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.05em; }
.h-2xl { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.0; letter-spacing: -0.05em; }
.h-xl  { font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.33; letter-spacing: -0.05em; }
.accent { color: var(--blue-light); }
.accent-blue { color: var(--blue); }
.eyebrow { text-transform: uppercase; font-size: 14px; letter-spacing: -0.05em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 8px 32px;
  border-radius: 32px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.008em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: #fff; color: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--blue); }
.btn--outline-blue { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline-blue:hover { background: var(--blue); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  color: #fff;
}
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--blue { color: var(--blue); }
.link-arrow--dark { color: var(--black); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.logo__img { height: 38px; width: auto; object-fit: contain; flex: none; }
.logo__text { height: 30px; width: auto; object-fit: contain; flex: none; }
.logo--light { color: #fff; }
.footer .logo--light { color: #fff; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 1200px;
  z-index: -1;
  background:
    radial-gradient(closest-side at 70% 30%, rgba(255,255,255,.18), transparent 70%),
    repeating-radial-gradient(circle at 60% 40%, rgba(255,255,255,.06) 0 1px, transparent 1px 70px);
  pointer-events: none;
}

/* nav */
.nav {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 16px; letter-spacing: -0.005em; }
.nav__links a { opacity: .9; }
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active { font-weight: 700; opacity: 1; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; position: relative; z-index: 70; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease, background .3s ease; }
.nav__scrim { display: none; }

/* hero content */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 487px) minmax(0, 587px);
  gap: 64px;
  align-items: stretch;
  padding-block: 32px 115px;
}
.hero__content { display: flex; flex-direction: column; gap: 88px; padding-top: 48px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(48px, 7.6vw, 92px);
  line-height: .87;
  letter-spacing: -0.055em;
}
.hero__lead { font-size: 16px; max-width: 487px; text-align: justify; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: -48px; }

.hero__statsblock { display: flex; flex-direction: column; gap: 18px; margin-top: -40px; }
.hero__stats { display: flex; align-items: center; gap: 32px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 10px; }
.stat__value { font-family: var(--font-head); font-size: 50px; line-height: 1; letter-spacing: -0.05em; color: var(--off-white); margin: 0; white-space: nowrap; }
.stat__value .accent { font-size: .75em; }
.stat__label { font-size: 12.5px; letter-spacing: -0.05em; color: var(--off-white); }
.stat__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.35); }
.hero__location { display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.hero__location-icon { flex: none; color: var(--blue-light); }
.hero__location-around { color: var(--blue-light); }

.hero__media { border-radius: var(--radius); overflow: hidden; align-self: center; aspect-ratio: 940 / 882; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Hero sans photo : une seule colonne, contenu centré */
.hero__inner--no-media { grid-template-columns: 1fr; padding-block: 40px 104px; }
.hero__inner--no-media .hero__content { gap: 36px; padding-top: 32px; align-items: center; text-align: center; }
.hero__inner--no-media .hero__text { align-items: center; }
.hero__inner--no-media .hero__title { max-width: 14ch; }
.hero__inner--no-media .hero__lead { max-width: 620px; margin-inline: auto; text-align: center; }
.hero__inner--no-media .hero__actions { margin-top: 0; justify-content: center; }
.hero__inner--no-media .hero__stats { margin-top: 8px; justify-content: center; }

/* =================================================================
   SERVICES
   ================================================================= */
.section__head { display: flex; flex-direction: column; gap: 24px; }
.section__head--center { align-items: center; text-align: center; max-width: 750px; margin-inline: auto; }
.section__lead { font-size: 16px; }

/* =================================================================
   HOW IT WORKS
   ================================================================= */
.process__steps { display: flex; flex-direction: column; gap: 64px; margin-top: 80px; }
.process__row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.process__row--reverse .process__media { order: 2; }
.process__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 532 / 460; }
.process__media img { width: 100%; height: 100%; object-fit: cover; }
.process__body { display: flex; flex-direction: column; gap: 24px; padding-block: 32px; }
.process__body .btn { align-self: flex-start; margin-top: 8px; }
.step-badge {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-head); font-size: 32px; color: var(--blue);
  margin-bottom: 8px;
}

/* =================================================================
   CLEANER FUTURE
   ================================================================= */
.future__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.future__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.future__media img { width: 100%; height: 100%; object-fit: cover; }
.future__body { display: flex; flex-direction: column; gap: 24px; padding-block: 32px; }
.future__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin: 8px 0; }
.fstat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.fstat dd { font-family: var(--font-head); font-size: 40px; line-height: 1; letter-spacing: -0.05em; }
.fstat dd .accent-blue { font-size: .9em; }
.fstat dt { font-size: 16px; margin-top: 4px; }
.future__body .btn { align-self: flex-start; }

.future--center .future__body { text-align: center; align-items: center; max-width: 820px; margin: 0 auto; }
.future--center .future__stats { width: 100%; }
.future--center .fstat dt { text-align: center; }
.future--center .future__body .btn { align-self: center; }

.future__stats--thirds { grid-template-columns: repeat(3, 1fr); gap: 16px 32px; }
.future--center .future__stats--thirds .fstat { text-align: center; }

.future--compact.section { padding-block: clamp(48px, 7vw, 96px); }
.future--compact + .section { padding-top: 0; }
.future--compact .future__body { gap: 0; padding-block: 0; }

/* =================================================================
   MARQUEE — bandeau fin des appareils réparés
   ================================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--blue-tint);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee-scroll 32s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 56px;
  margin: 0;
  padding: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--black);
}
.marquee__item svg { color: var(--blue); flex: none; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =================================================================
   DEVICES — sélecteur d'appareils
   ================================================================= */
.devices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.device-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--card-border);
  color: var(--black);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease, color .35s ease;
}
/* voile bleu qui monte depuis le bas au survol */
.device-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
/* couleurs/ombre gérées en CSS ; le mouvement (lift, icône) est piloté par GSAP */
.device-card:hover,
.device-card:focus-visible {
  box-shadow: 0 18px 34px -18px rgba(40,104,253,.55);
  border-color: var(--blue);
  color: #fff;
  outline: none;
}
.device-card:hover::before,
.device-card:focus-visible::before { transform: translateY(0); }

.device-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
  flex: none;
  will-change: transform;
  transition: background .35s ease, color .35s ease;
}
.device-card:hover .device-card__icon,
.device-card:focus-visible .device-card__icon {
  background: #fff;
  color: var(--blue);
}

.device-card__title { font-family: var(--font-head); font-weight: 400; font-size: 19px; line-height: 1.15; letter-spacing: -0.03em; }

/* carte d'appel à l'action — bleue pleine par défaut */
.device-card--cta { background: var(--blue); border-color: var(--blue); color: #fff; }
.device-card--cta .device-card__icon { background: rgba(255,255,255,.18); color: #fff; }

@media (max-width: 760px) {
  .devices__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .devices__grid { grid-template-columns: 1fr; }
}

/* =================================================================
   CTA
   ================================================================= */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  background: var(--blue);
  border-radius: 40px;
  padding: 32px;
  color: #fff;
  align-items: stretch;
}
.cta__body { display: flex; flex-direction: column; gap: 48px; padding: 48px 0 48px 24px; justify-content: center; }
.cta__body p { max-width: 449px; }
.cta__media { border-radius: 24px; overflow: hidden; min-height: 360px; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================
   QUI SUIS-JE (fond bleu, profil centré)
   ================================================================= */
.about {
  position: relative;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.about::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 50% 30%, rgba(255,255,255,.14), transparent 70%),
    repeating-radial-gradient(circle at 50% 40%, rgba(255,255,255,.05) 0 1px, transparent 1px 70px);
  pointer-events: none;
}
.about__inner {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.about__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 4px solid rgba(255,255,255,.25);
  margin-bottom: 8px;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__name { font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; }
.about__role { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--blue-light); letter-spacing: -0.01em; }
.about__bio { font-size: 15px; color: rgba(255,255,255,.9); max-width: 440px; margin-top: 8px; }
.about .link-arrow { margin-top: 12px; color: #fff; }
.about .link-arrow:hover { color: var(--blue-light); }

/* En-tête profil (page « Qui suis-je ») */
.profile { display: flex; gap: 36px; align-items: center; margin-bottom: 44px; padding: 36px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); }
.profile__photo { width: 184px; height: 184px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; border: 5px solid #fff; box-shadow: 0 16px 36px -16px rgba(20,30,60,.45); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__intro { display: flex; flex-direction: column; gap: 8px; }
.profile__name { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 4.6vw, 44px); line-height: 1; letter-spacing: -0.05em; }
.profile__role { font-family: var(--font-ui); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--blue); }
.profile__tagline { font-size: 16px; line-height: 1.6; color: #3a3c40; margin-top: 4px; max-width: 460px; }
@media (max-width: 600px) {
  .profile { flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 28px 22px; margin-bottom: 32px; }
  .profile__photo { width: 158px; height: 158px; }
  .profile__tagline { max-width: none; }
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials__track-wrap {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.testimonials__track {
  display: flex;
  width: max-content;
  gap: 32px;
  will-change: transform;
}
.review {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 24px;
  width: 344px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

/* flèches de navigation */
.testimonials__nav { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
.tcar-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.tcar-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.tcar-btn:active { transform: translateY(0); }
.review__tag { align-self: flex-start; border: 1px solid var(--blue); color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 4px 16px; border-radius: 20px; }
.review__rating { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--blue); padding: 5px 13px; border-radius: 20px; }
.review__rating svg { fill: var(--blue-light); width: 18px; height: 18px; }
.review__rating span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; }
.review blockquote { font-size: 16px; }
.review__author { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.review__author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review__author span { display: flex; flex-direction: column; }
.review__author strong { font-family: var(--font-head); font-size: 14px; color: #0f2e15; }
.review__handle { font-size: 14px; color: var(--muted); }

/* photos de l'atelier (réutilise le carrousel des avis) */
.photo { margin: 0; flex: none; width: min(420px, 80vw); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =================================================================
   BLOG
   ================================================================= */
.blog__head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.blog__head .h-4xl { max-width: 542px; }
.blog__head-aside { display: flex; align-items: center; gap: 16px; max-width: 542px; }
.blog__head-aside p { font-size: 16px; }
.blog__head-aside .btn { flex: none; }
.blog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 64px; }
.post-card { border: 1px solid var(--card-border); border-radius: 32px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card__img { order: -1; width: 100%; height: 240px; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.post-card__body .link-arrow { margin-top: auto; }
.chip { align-self: flex-start; background: var(--blue-tint); color: var(--blue); font-family: var(--font-ui); font-size: 12px; padding: 4px 8px; border-radius: 40px; }

/* =================================================================
   ARTICLES / CONSEILS (style Figma : titre + 3 cartes)
   ================================================================= */
.articles__head { max-width: 620px; }
.articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.acard { display: flex; flex-direction: column; gap: 14px; }
.acard__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.acard:hover .acard__media img { transform: scale(1.05); }
.acard h3 { line-height: 1.2; }
.acard p { font-size: 15px; color: #44464a; flex: 1; }
.acard .link-arrow { margin-top: 2px; }

/* titres d'articles cliquables (carte d'accueil, page conseils, "à lire aussi") */
.acard h3 a, .post-card h3 a { color: inherit; text-decoration: none; transition: color .2s ease; }
.acard h3 a:hover, .post-card h3 a:hover { color: var(--blue); }

.articles__more { display: flex; justify-content: center; margin-top: 48px; }

/* grille de la page liste d'articles (les cartes s'empilent, pas de masquage) */
.conseils__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .conseils__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .conseils__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* photos d'atelier cliquables */
.atelier .photo { cursor: zoom-in; }

/* ===== Lightbox (affichage plein écran des photos) ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 14, 30, .9);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--radius-sm); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn--prev { left: 4%; }
.lightbox__btn--next { right: 4%; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); cursor: pointer; transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-family: var(--font-ui); font-size: 14px; }
@media (max-width: 640px) {
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
}

/* sur petits formats, UNIQUEMENT sur l'accueil : on réduit le NOMBRE d'articles (3 → 2 → 1).
   La page « Conseils » (.conseils__grid) garde tous les articles et les fait passer dessous. */
@media (max-width: 980px) {
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .articles__grid .acard:nth-child(3) { display: none; }
}
@media (max-width: 620px) {
  .articles__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .articles__grid .acard:nth-child(2) { display: none; }
}

/* =================================================================
   FAQ (fond bleu, comme le hero)
   ================================================================= */
.faq {
  position: relative;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.faq::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 70% 25%, rgba(255,255,255,.14), transparent 70%),
    repeating-radial-gradient(circle at 60% 35%, rgba(255,255,255,.05) 0 1px, transparent 1px 70px);
  pointer-events: none;
}
.faq__grid { display: grid; grid-template-columns: 335px 1fr; gap: 64px; align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 24px; }
.faq__intro p { color: rgba(255,255,255,.85); }
.faq__list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.2); padding: 24px 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-head); font-size: 18px; letter-spacing: -0.02em; color: #fff;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; width: 24px; height: 24px; flex: none; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 2px; background: var(--blue-light); border-radius: 2px; transition: transform .2s ease;
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { margin-top: 12px; color: rgba(255,255,255,.85); font-size: 15px; max-width: 549px; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--footer-bg); color: #fff; padding-block: 80px; }
.footer__inner { display: flex; flex-direction: column; gap: 64px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 80px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 420px; }
.footer__brand .btn { align-self: flex-start; }
.footer__tag { font-size: 16px; }

.footer__cols { display: flex; gap: 64px; }
.footer__col h4 { font-family: var(--font-head); font-size: 16px; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a, .footer__hours { font-size: 14px; color: rgba(255,255,255,.85); }
.footer__col a:hover { color: #fff; }
.footer__social a { display: flex; align-items: center; gap: 8px; }

.footer__bottom hr { border: 0; height: 1px; background: #4d4d4d; margin-bottom: 40px; }
.footer__bottom-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { text-decoration: underline; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 992px) {
  .nav { padding-block: 18px; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; padding-block: 16px 48px; }
  .hero__content { gap: 24px; padding-top: 8px; }
  .hero__text { gap: 16px; }
  .hero__actions { margin-top: 0; }
  .hero__statsblock { margin-top: 0; }
  /* image téléphones : taille raisonnable et centrée en colonne unique (sinon géante sur tablette) */
  .hero__media { max-width: 360px; margin-inline: auto; }
  .future__grid { grid-template-columns: 1fr; }
  .future__media { aspect-ratio: 16 / 10; }
  .cta { grid-template-columns: 1fr; }
  .cta__body { padding: 24px; }
  .cta__media { min-height: 280px; }
  .blog__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }

  /* ===== menu latéral mobile (panneau blanc arrondi) ===== */
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 12px; right: 12px; bottom: 12px;
    width: min(82vw, 320px);
    z-index: 60;
    flex-direction: column; align-items: stretch; gap: 24px;
    justify-content: flex-start;
    background: #fff;
    color: var(--black);
    border-radius: 22px;
    padding: 80px 28px 28px;
    box-shadow: 0 30px 70px -20px rgba(20,30,60,.45);
    transform: translateX(calc(100% + 16px));
    transition: transform .42s cubic-bezier(.22,.8,.2,1);
    overflow-y: auto;
  }
  body.nav-open .nav__menu { transform: translateX(0); }

  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; font-size: 18px; }
  .nav__menu .nav__links a { color: var(--black); opacity: 1; display: block; padding: 12px 14px; border-radius: 12px; transition: background .2s ease, color .2s ease; }
  .nav__menu .nav__links a:hover,
  .nav__menu .nav__links a.is-active { background: var(--surface); color: var(--blue); font-weight: 700; }
  .nav__menu .btn--primary { background: var(--blue); color: #fff; height: 48px; margin-top: 8px; }

  /* voile sombre derrière le menu */
  .nav__scrim {
    display: block;
    position: fixed; inset: 0; z-index: 50;
    background: rgba(15,23,42,.45);
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  body.nav-open .nav__scrim { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  /* hamburger → croix */
  body.nav-open .nav__toggle span { background: var(--black); }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  /* sur téléphone, on resserre encore pour que les téléphones tiennent entiers à l'écran */
  .hero__content { gap: 20px; }
  .hero__media { max-width: 286px; }
  .process__row, .process__row--reverse .process__media { grid-template-columns: 1fr; }
  .process__row--reverse .process__media { order: 0; }
  .process__row { grid-template-columns: 1fr; }
  .future__stats, .future__stats--thirds { grid-template-columns: 1fr; gap: 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .blog__head-aside { flex-direction: column; align-items: flex-start; }
}

/* petits écrans : garder les 3 chiffres sur une ligne en resserrant juste l'espacement */
@media (max-width: 480px) {
  .hero__stats { gap: 16px; }
}
@media (max-width: 400px) {
  .hero__stats { gap: 10px; }
}

/* =================================================================
   FORMULAIRE PROGRESSIF (wizard)
   ================================================================= */
.wizard {
  max-width: 720px;
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 30px 60px -40px rgba(25,22,21,.4);
}
.wizard__head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.wizard__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.wizard__bar-fill { display: block; height: 100%; width: 20%; border-radius: 6px; background: var(--blue); transition: width .4s ease; }
.wizard__count { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* viewport : une seule étape visible, hauteur fluide */
.wizard__viewport { position: relative; }
.wizard[hidden] { display: none !important; }
.wstep { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.wstep.is-active { display: block; }
.wstep > * + * { margin-top: 18px; }
.wstep__q { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: -0.04em; padding: 0; }
.wstep__q + .wstep__hint { margin-top: 6px; }
.wstep__hint { font-size: 14px; color: var(--muted); }

/* cartes de sélection (appareils) */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--blue); transition: background .2s ease, color .2s ease; }
.choice__label { font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.choice::after {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: transparent center / 12px no-repeat;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(40,104,253,.5); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.choice:has(input:checked) .choice__icon { background: var(--blue); color: #fff; }
.choice:has(input:checked)::after {
  border-color: var(--blue); background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* puces (marque, symptômes, préférences) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-choice {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--card-border);
  border-radius: 30px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease;
}
.chip-choice input { position: absolute; opacity: 0; pointer-events: none; }
.chip-choice:hover { border-color: var(--blue); transform: translateY(-1px); }
.chip-choice:has(input:checked) { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip-choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* champs texte */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--black); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--black); background: #fff;
  border: 1.5px solid var(--card-border); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,104,253,.15); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* récapitulatif */
.recap { display: flex; flex-direction: column; gap: 0; margin: 0; border: 1px solid var(--card-border); border-radius: var(--radius-sm); overflow: hidden; }
.recap__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 18px; }
.recap__row:nth-child(odd) { background: var(--surface); }
.recap__row dt { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); }
.recap__row dd { margin: 0; font-size: 14px; color: var(--black); }

/* navigation */
.wizard__nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.wizard__nav .btn { height: 46px; }
.btn[hidden] { display: none !important; }

.wizard__nav [data-next], .wizard__submit { margin-left: auto; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--card-border); }
.btn--ghost:hover { background: var(--surface); }

.wstep__error { margin-top: 14px; font-size: 14px; font-weight: 600; color: #d83a3a; text-align: center; }
.cf-status { margin-top: 14px; font-size: 14px; color: var(--blue); text-align: center; font-weight: 600; }
.cf-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.cf-note a { text-decoration: underline; }

/* numéro de téléphone cliquable (appel à l'action, hérite de la couleur du contexte) */
.tel-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tel-link:hover { opacity: .8; }

/* bloc « appelez-moi » sous le formulaire */
.contact-call { max-width: 640px; margin: 64px auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.contact-call h3 { line-height: 1.15; }
.contact-call__btn { height: 52px; padding-inline: 28px; gap: 10px; font-size: 18px; }

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

@media (max-width: 560px) {
  .wizard { padding: 22px; }
  .wizard__head { margin-bottom: 22px; }

  /* cartes appareils → lignes verticales pleine largeur (icône · libellé · coche) */
  .choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; padding-right: 46px; }
  .choice__icon { width: 42px; height: 42px; flex: none; }
  .choice__label { flex: 1; }
  .choice::after { top: 50%; right: 16px; transform: translateY(-50%); }

  .field-row { grid-template-columns: 1fr; }
  .recap__row { grid-template-columns: 1fr; gap: 2px; }

  /* navigation : boutons côte à côte, sans débordement */
  .wizard__nav { gap: 8px; }
  .wizard__nav .btn { flex: 1; min-width: 0; padding: 8px 12px; }
}

/* =================================================================
   ARTICLE PAGES
   ================================================================= */
.hero--article { padding-bottom: 0; }
.article-hero { padding-block: 16px 56px; max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.article-hero__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: rgba(255,255,255,.85); }
.article-hero__back svg { transition: transform .15s ease; }
.article-hero__back:hover { color: #fff; }
.article-hero__back:hover svg { transform: translateX(-3px); }
.article-hero__title { color: #fff; font-family: var(--font-head); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.05em; }
.article-hero__meta { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.82); font-size: 14px; }
.article-hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.article { padding-top: 0; }
.article__wrap { max-width: 760px; }
.article__cover { width: 100%; height: clamp(240px, 38vw, 420px); object-fit: cover; border-radius: var(--radius); margin-top: 40px; margin-bottom: 48px; box-shadow: 0 30px 60px -40px rgba(25,22,21,.45); }
.article__body { display: flex; flex-direction: column; gap: 22px; }
.article__lead { font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--black); }
.article__body h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.04em; margin-top: 18px; }
.article__body p { font-size: 16px; line-height: 1.75; color: #3a3c40; }
.article__body ul { display: flex; flex-direction: column; gap: 12px; padding-left: 22px; }
.article__body li { font-size: 16px; line-height: 1.6; color: #3a3c40; }
.article__body li::marker { color: var(--blue); }
.article__body a.inline { color: var(--blue); font-weight: 600; text-decoration: underline; }
.article__cta { margin-top: 32px; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article__cta h3 { font-family: var(--font-head); font-weight: 400; font-size: 26px; letter-spacing: -0.04em; }
.article__cta p { font-size: 15px; color: rgba(255,255,255,.9); max-width: 520px; }
.article__cta .btn--primary { margin-top: 4px; }
.article__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.article-more { background: var(--surface); }
.article-more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 40px; }

@media (max-width: 640px) {
  .article-hero { padding-block: 8px 72px; }
  .article__cta { padding: 28px; }
  .article-more__grid { grid-template-columns: 1fr; }
}
