/* =========================================================
   ENTREPRISE PAUL MULTISERVICES — STYLE.CSS
   Palette basée sur le logo/flyer du client : bleu marine + orange
   ========================================================= */

:root {
  /* Couleurs de marque (issues du logo/flyer) */
  --navy: #0e1f35;
  --navy-light: #16304f;
  --navy-soft: #1c3a5e;
  --orange: #f4600e;
  --orange-light: #ff7a2e;
  --orange-dark: #d94f08;
  --orange-text: #b04405; /* variante foncée : texte orange sur fond clair (contraste WCAG AA) */

  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-300: #d3d8de;
  --gray-500: #5b6472; /* assombri pour respecter le contraste AA sur fond blanc et gris-50 */
  --gray-700: #3a4453;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 12px rgba(14, 31, 53, 0.08);
  --shadow-md: 0 12px 32px rgba(14, 31, 53, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 31, 53, 0.18);

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; font-weight: 700; }

/* Les <picture> ne modifient pas la mise en page : l'<img> reste l'enfant effectif */
picture { display: contents; }

/* Focus visible au clavier sur tous les éléments interactifs */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement (accessibilité clavier / lecteurs d'écran) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Reveal-on-scroll animation ----------
   L'état masqué n'est appliqué QUE si le JS s'exécute (classe .js posée par head.js).
   Sans JS, ou si script.js échoue, tout le contenu reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(244, 96, 14, 0.35); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(244, 96, 14, 0.45); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-3px); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--gray-300); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange-text); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Section titles ---------- */
.section-eyebrow {
  color: var(--orange-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section-subtitle { color: var(--gray-500); max-width: 620px; font-size: 1.02rem; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.text-accent { color: var(--orange); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(14, 31, 53, 0.0);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { flex: 0 0 auto; }
/* width:auto + max-width:none : la hauteur pilote seule le ratio, le logo ne se déforme
   jamais même si la barre de navigation devient à l'étroit. */
.header__logo img { height: 56px; width: auto; max-width: none; transition: var(--transition); }
.header.scrolled .header__logo img { height: 46px; }

.nav__list { display: flex; gap: 32px; }
.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}
.header.scrolled .nav__link { color: var(--navy); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--orange-text); }
/* Sur la barre de navigation bureau posée sur le hero sombre : orange clair.
   (Ne s'applique pas au panneau mobile, qui est sur fond blanc.) */
@media (min-width: 1025px) {
  .header:not(.scrolled) .nav__link:hover { color: var(--orange-light); }
}

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { color: var(--white); border-color: rgba(255,255,255,0.5); }
.header.scrolled .header__phone { color: var(--navy); border-color: var(--gray-300); }
.header__phone:hover { color: var(--orange-text) !important; border-color: var(--orange) !important; }
.header:not(.scrolled) .header__phone:hover { color: var(--orange-light) !important; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  z-index: 1100;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .burger span { background: var(--navy); }
.burger.active span { background: var(--navy); }
.burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* évite le saut lié à la barre d'URL mobile */
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,31,53,0.75) 0%, rgba(14,31,53,0.55) 45%, rgba(14,31,53,0.88) 100%);
}

.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); max-width: 800px; }
.hero__eyebrow {
  color: var(--orange-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero__title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 22px; }
.hero__subtitle { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 640px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 46px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero__badges li {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 600; font-size: 0.92rem;
}
.hero__badges i { color: var(--orange-light); font-size: 1.05rem; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--white); font-size: 1.3rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.4);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* =========================================================
   FEATURES STRIP
   ========================================================= */
.features { background: var(--navy); padding: 40px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.features__item { display: flex; align-items: center; gap: 16px; color: var(--white); }
.features__item i { font-size: 1.7rem; color: var(--orange); flex-shrink: 0; }
.features__item strong { display: block; font-family: var(--font-heading); font-size: 1.02rem; margin-bottom: 2px; }
.features__item span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 110px 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about__media-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--white); padding: 18px 22px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.about__media-badge i { font-size: 1.6rem; color: var(--orange); }
.about__media-badge span { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--navy); }

.about__text p { margin-bottom: 18px; color: var(--gray-500); }
/* L'eyebrow garde sa couleur d'accent même à l'intérieur de .about__text / .zone__text
   (sinon la règle "p" ci-dessus / plus bas l'emporte par ordre de cascade). */
.about__text p.section-eyebrow,
.zone__text p.section-eyebrow { color: var(--orange-text); }
.about__list { margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 600; }
.about__list i { color: var(--orange); background: rgba(244,96,14,0.1); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }

/* =========================================================
   VALUES
   ========================================================= */
.values { padding: 100px 0; background: var(--gray-50); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.values__card {
  background: var(--white); padding: 40px 32px; border-radius: var(--radius-md);
  text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.values__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.values__icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; color: var(--white); font-size: 1.6rem;
}
.values__card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.values__card p { color: var(--gray-500); font-size: 0.95rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 110px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.service-card--featured { grid-column: span 2; }
.service-card__media { overflow: hidden; aspect-ratio: 16/10; }
.service-card--featured .service-card__media { aspect-ratio: 16/8; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__body { padding: 26px 28px; }
.service-card__body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card__body p { color: var(--gray-500); font-size: 0.94rem; }
.service-card__badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--orange); color: var(--white);
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   GALLERY / REALISATIONS
   ========================================================= */
.gallery { padding: 110px 0; background: var(--gray-50); }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 50px; }
.before-after__card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.before-after__card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.before-after__card img { width: 100%; height: 100%; object-fit: cover; }
.before-after__card figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(14,31,53,0.88), transparent);
  color: var(--white); padding: 40px 22px 18px;
  font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
}
.before-after__card i { color: var(--orange-light); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery__item {
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 1/1; box-shadow: var(--shadow-sm); position: relative;
}
.gallery__item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.4rem;
  background: rgba(14,31,53,0.45);
  opacity: 0; transition: var(--transition);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.12); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(14, 31, 53, 0.96);
  display: none; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.lightbox.active { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; color: var(--white); font-size: 1.4rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--orange); }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 110px 0; overflow: hidden; }
.testimonials__track {
  display: flex;
  gap: 28px;
  transition: transform 0.6s ease;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 34px;
  min-width: calc(25% - 21px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.testimonial-card__stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 24px; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white); font-family: var(--font-heading); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-card__author strong { display: block; color: var(--navy); font-size: 0.92rem; }
.testimonial-card__author span { font-size: 0.8rem; color: var(--gray-500); }

.testimonials__dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.testimonials__dots button {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); transition: var(--transition);
}
.testimonials__dots button.active { background: var(--orange); width: 26px; border-radius: 6px; }

/* =========================================================
   ZONE D'INTERVENTION
   ========================================================= */
.zone { padding: 110px 0; background: var(--gray-50); }
.zone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.zone__text p { color: var(--gray-500); margin-bottom: 26px; }
.zone__list { display: flex; flex-direction: column; gap: 16px; }
.zone__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--navy); }
.zone__list i { color: var(--orange); width: 20px; }
.zone__list a:hover { color: var(--orange); }
.zone__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.zone__map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Écran de consentement RGPD avant chargement de Google Maps */
.map-consent {
  height: 420px;
  background: var(--navy-light);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px 28px;
}
.map-consent i { font-size: 2.2rem; color: var(--orange-light); }
.map-consent p { max-width: 380px; font-size: 0.9rem; line-height: 1.55; }
.map-consent button { display: none; }          /* bouton inutile sans JS */
.js .map-consent button { display: inline-flex; }
.map-consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; font-size: 0.85rem; }
.map-consent a:hover { color: var(--orange-light); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 110px 0; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.contact__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.contact__card i { font-size: 1.8rem; color: var(--orange); margin-bottom: 16px; }
.contact__card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.contact__card span { color: var(--gray-500); font-size: 0.9rem; }
.contact__cta { text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding-top: 80px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { height: 60px; width: auto; max-width: none; margin-bottom: 18px; border-radius: 8px; background: var(--white); padding: 6px; }
.footer__brand p { font-size: 0.9rem; max-width: 280px; }
.footer__col h3 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col li { font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.footer__col a:hover { color: var(--orange); }
.footer__col i { color: var(--orange); width: 16px; }

.footer__bottom { padding: 26px 0; }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  text-align: center;
  font-size: 0.85rem;
}
.footer__credit a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--orange); }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.call-float {
  position: fixed; bottom: 26px; left: 26px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 10px 26px rgba(244, 96, 14, 0.45);
  transition: var(--transition);
  animation: pulse 2.4s ease-in-out infinite;
}
.call-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(244, 96, 14, 0.45); }
  50% { box-shadow: 0 10px 26px rgba(244, 96, 14, 0.75), 0 0 0 10px rgba(244, 96, 14, 0.12); }
}

.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .about__grid, .zone__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card { min-width: calc(50% - 14px); }

  /* --- Menu mobile : déclenché dès 1024px pour éviter le débordement du header entre 861 et 1024px --- */
  .nav {
    position: fixed; top: 0; right: -100%;
    width: min(340px, 84vw);
    height: 100vh; height: 100svh;
    background: var(--white);
    flex-direction: column;
    padding: 104px 32px 40px;
    overflow-y: auto;
    transition: right var(--transition), visibility var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    visibility: hidden; /* retire les liens de l'ordre de tabulation quand le menu est fermé */
  }
  .nav.active { right: 0; visibility: visible; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { color: var(--navy); font-size: 1.05rem; display: block; padding: 12px 4px; } /* cible tactile >= 44px */
  .burger { display: flex; }
  .header__phone span { display: none; }
  .header__phone { padding: 12px; }
  .header__phone i { margin: 0; }
}

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonial-card { min-width: 100%; }

  /* Badge "À propos" : repositionné pour ne pas être rogné par overflow-x:hidden */
  .about__media-badge {
    left: 12px; right: auto; bottom: 12px;
    max-width: min(260px, calc(100% - 24px));
  }
  /* Cibles tactiles des liens de pied de page */
  .footer__col a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 520px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__badges { flex-direction: column; gap: 12px; }
  .features__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lightbox__prev, .lightbox__next { width: 42px; height: 42px; font-size: 1.1rem; }
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .call-float, .back-to-top { width: 50px; height: 50px; font-size: 1.4rem; }
  .map-consent { height: 320px; }
  .zone__map iframe { height: 320px; }
}

/* =========================================================
   PRÉFÉRENCE : MOUVEMENT RÉDUIT
   Désactive animations, transitions et parallax pour les
   personnes sensibles au mouvement. Le contenu reste visible.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero__bg img { transform: none !important; }
}
