/* ==========================================================================
   LG PLOMBERIE — Pertuis (84)
   Direction artistique : bleu / blanc, rouge réservé aux informations clés.
   ========================================================================== */

:root {
  /* Noir et rouge repris du logo ; le bleu reste en couleur secondaire. */
  --black-900: #0d0e11;
  --black-800: #16181d;
  --black-700: #23262c;

  --red:      #d42027;
  --red-dark: #a8161c;
  --red-50:   #fdeeee;

  --blue-900: #06305f;
  --blue-800: #083d78;
  --blue-700: #0b4f9e;
  --blue-600: #1263c0;
  --blue-500: #1a72d4;
  --blue-100: #d6e6fa;
  --blue-50:  #eef5fd;

  --ink:      #15171b;
  --ink-soft: #565d68;
  --line:     #e3e5e9;
  --white:    #ffffff;
  --paper:    #f7f8f9;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 14, 17, .05), 0 2px 8px rgba(13, 14, 17, .06);
  --shadow-md: 0 4px 12px rgba(13, 14, 17, .07), 0 12px 32px rgba(13, 14, 17, .10);
  --shadow-lg: 0 10px 24px rgba(13, 14, 17, .10), 0 28px 60px rgba(13, 14, 17, .16);

  --wrap: 1160px;
  --header-h: 80px;

  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17 px ; suit la racine, agrandie sur grand écran */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 5vw, 24px); }
.section { padding: clamp(38px, 4.6vw, 62px) 0; }
.section--tint { background: var(--paper); }
.section-intro { max-width: 70ch; }
.section--blue {
  background: linear-gradient(165deg, var(--blue-900), var(--blue-700));
  color: #eaf2fd;
}
.section--blue h2, .section--blue h3 { color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--red); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eyebrow + intro ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--red);
}
.section--blue .eyebrow { color: #ffd0d0; }
.section--blue .eyebrow::before { background: #ffd0d0; }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--blue .lead { color: #c9dcf5; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; border: 2px solid transparent;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  font-family: inherit; line-height: 1.2; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--call {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(214, 40, 40, .35);
}
.btn--call:hover { background: var(--red-dark); box-shadow: 0 10px 26px rgba(214, 40, 40, .42); }

.btn--ghost {
  background: transparent; color: var(--ink); border-color: #d3d6dc;
}
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f1f2f4; }

.btn--sm { padding: 11px 20px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Barre haute ---------- */
.topbar {
  background: #08090b; color: #9aa1ac;
  font-size: .87rem; letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #e8eaee; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { opacity: .8; flex: none; }
@media (max-width: 720px), (max-height: 560px) { .topbar { display: none; } }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 14, 17, .95);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.header.is-stuck { box-shadow: 0 4px 22px rgba(0,0,0,.28); }
.header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { display: block; height: 46px; width: auto; }
.footer .brand img { height: 66px; }
@media (max-width: 420px) { .brand img { height: 38px; } }

.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 11px; white-space: nowrap; border-radius: 8px;
  font-size: .96rem; font-weight: 650; color: #d7dae0; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav a.is-active { color: #fff; background: rgba(212,32,39,.22); }

.header__cta { display: inline-flex; }

/* Le bouton d'appel du menu déroulant n'existe qu'en version mobile */
.nav__cta { display: none; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22);
  background: transparent; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  position: relative; transition: background-color .15s ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav__cta { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 1px) 0 auto 0;
    background: var(--black-900); border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav.is-open { max-height: 82vh; overflow-y: auto; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px 22px; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; font-size: 1.05rem; }
  .nav li:last-child a { border-bottom: 0; }
  .nav__cta { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 440px at 88% -10%, rgba(212,32,39,.07), transparent 62%),
    linear-gradient(180deg, var(--paper), #fff 74%);
  padding: clamp(34px, 4.5vw, 60px) 0 clamp(40px, 5vw, 66px);
  overflow: hidden;
}
.hero__grid { display: block; }
.hero__text {
  max-width: 900px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__text .eyebrow { justify-content: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .u {
  position: relative; white-space: nowrap; color: var(--red);
}
.hero h1 .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em;
  background: rgba(214, 40, 40, .28); border-radius: 3px; z-index: -1;
}
.hero__text p { font-size: clamp(1.05rem, 1.65vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; margin-inline: auto; }
.hero__text p strong { color: var(--ink); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 24px; }
.hero__actions .btn { min-width: 232px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; padding: 0; margin: 0; list-style: none; }
.hero__badges li {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: .92rem; font-weight: 650; color: var(--ink-soft);
}
.hero__badges svg { color: var(--blue-600); flex: none; margin-top: 3px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
      /* sur petit écran, l'encart passe sous la photo au lieu de la masquer */
  }

/* ---------- Bandeau urgence ---------- */
.alert {
  background: var(--red); color: #fff;
}
.alert .wrap {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-block: 18px;
}
.alert__icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
}
.alert__text { flex: 1 1 320px; }
.alert__text strong { display: block; font-size: 1.1rem; letter-spacing: -.01em; }
.alert__text span { font-size: .96rem; color: #ffe1e1; }
.alert .btn--white { flex: none; }

/* ---------- Services ---------- */
.service { padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.service:nth-of-type(even) { background: var(--paper); }
.service__head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-bottom: 24px;
}
.service__body {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
@media (max-width: 880px) {
  .service__head { grid-template-columns: 1fr; align-items: start; }
  .service__body { grid-template-columns: 1fr; }
}

.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.checklist li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  font-size: 1rem; color: var(--ink);
}
.checklist li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4f9e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.checklist li > span { grid-column: 2; }
.checklist a {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--red); text-decoration-thickness: 2px;
  text-underline-offset: 3px; transition: color .15s ease;
}
.checklist a:hover { color: var(--red); }

/* Encart rouge « à retenir » */
.highlight {
  margin: 20px 0 0; padding: 16px 20px;
  background: var(--red-50); border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
}
.highlight svg { color: var(--red); margin-top: 3px; flex: none; }
.highlight p { margin: 0; font-size: .98rem; color: #7d1c1c; }
.highlight strong { color: var(--red-dark); }

/* ---------- Galeries ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 480px) { .gallery { gap: 9px; } }
.gallery__item {
  margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); line-height: 0;
}
.gallery__item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,48,95,.35), transparent 45%);
  opacity: 0; transition: opacity .25s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item[hidden] { display: none; }

.gallery__tag {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: rgba(13,14,17,.88); color: #fff; font-size: .69rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; padding: 5px 10px; border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gallery__tag--after { background: var(--red); }

.gallery-more {
  margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.gallery-more__hint { font-size: .89rem; color: var(--ink-soft); }
.gallery-toggle svg { transition: transform .25s ease; }
.gallery-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Zone d'intervention ---------- */
.zone__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(26px, 4vw, 56px); align-items: center;
}
@media (max-width: 880px) { .zone__grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.chips li {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #eaf2fd; padding: 8px 15px; border-radius: 100px;
  font-size: .93rem; font-weight: 600;
}
.chips li.is-home {
  background: var(--red); border-color: var(--red); color: #fff; font-weight: 800;
}
.zone__note {
  margin-top: 22px; font-size: .96rem; color: #c9dcf5;
  border-left: 3px solid var(--red); padding-left: 16px;
}

/* ---------- Atouts ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px;
}
.card h3 { font-size: 1.13rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* ---------- Bloc « pourquoi » avec le camion ---------- */
.why {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px, 3.5vw, 44px); align-items: start; margin-top: 34px;
}
.why__media { margin: 0; }
.why__img {
  display: block; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.why__img img { aspect-ratio: 4 / 3; }
.why__media figcaption {
  margin-top: 14px; font-size: .95rem; color: var(--ink-soft);
  border-left: 3px solid var(--red); padding-left: 14px;
}
.cards--paire { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .cards--paire { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-top: 26px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; color: var(--blue-900); list-style: none; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--blue-700); }
.faq__answer { padding: 0 20px 20px; color: var(--ink-soft); font-size: .99rem; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact__intro { max-width: 62ch; margin-inline: auto; }
.contact__intro .lead { margin-inline: auto; }
.contact__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px;
}
@media (max-width: 900px) { .contact__actions { max-width: 440px; margin-inline: auto; } }

.contact-list {
  list-style: none; padding: 0; margin: 30px 0 0; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.contact-list a { text-decoration: none; }
.contact-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease;
}
a .contact-item:hover { border-color: var(--red); transform: translateY(-3px); }
.contact-item__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-50); color: var(--red);
}
.contact-item__icon--blue { background: var(--blue-50); color: var(--blue-700); }
.contact-item small { display: block; font-size: .84rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .03em; }
.contact-item strong { font-size: 1.06rem; color: var(--blue-900); letter-spacing: -.01em; word-break: break-word; }
.contact-item strong.is-phone { color: var(--red); font-size: 1.26rem; font-weight: 900; }

/* ---------- Pied de page ---------- */
.footer {
  background: var(--black-900); color: #9aa1ac;
  padding: clamp(44px, 6vw, 68px) 0 26px; font-size: .93rem;
}
.footer a { color: #dfe2e7; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 26px; } }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__phone {
  display: inline-block; margin-top: 16px;
  font-size: 1.45rem; font-weight: 900; color: #fff !important;
  letter-spacing: -.01em; text-decoration: none;
}
.footer__phone:hover { color: #ffc9c9 !important; text-decoration: none; }
.footer__legal {
  padding-top: 22px; display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: .86rem; color: #7d848f;
}
.footer details { margin-top: 18px; }
.footer details summary {
  cursor: pointer; font-weight: 700; color: #dfe2e7; font-size: .88rem;
}
.footer details .legal-text {
  margin-top: 12px; font-size: .85rem; line-height: 1.6; color: #99a0ab;
  max-height: 260px; overflow-y: auto; padding-right: 10px;
}
.footer details .legal-text h4 { color: #fff; font-size: .9rem; margin: 15px 0 5px; }
/* Repères jaunes : informations que Léo doit fournir avant la mise en ligne */
.todo {
  background: #ffe98a; color: #4a3800; padding: 1px 6px; border-radius: 4px;
  font-weight: 700; font-style: italic;
}

/* ---------- Barre d'appel mobile ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(6,48,95,.10);
}
.callbar .btn { flex: 1; padding: 14px 12px; font-size: .98rem; }
@media (max-width: 1000px) {
  .callbar { display: flex; }
  body { padding-bottom: 78px; }
}

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6,26,48,.94); padding: 20px;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px); max-height: 84vh; width: auto;
  border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  color: #d8e6f7; font-size: .92rem; padding: 0 24px;
}
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background-color .16s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .lightbox__btn { width: 42px; height: 42px; }
}

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   ADAPTATION AUX ÉCRANS
   Du téléphone 320 px au grand moniteur : centrages, largeurs de boutons
   homogènes et tailles de texte planchers.
   ========================================================================== */

/* ---------- Grands écrans : on respire un peu plus ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; font-size: 17px; }
}
@media (min-width: 1900px) {
  :root { font-size: 17.6px; }
}

/* ---------- Tablette et en dessous : accueil centré ---------- */
@media (max-width: 900px) {
  /* aucun texte ne descend sous ~13,5 px */
  .eyebrow { font-size: .85rem; }
  /* accroche sur deux lignes : le trait passe au-dessus, sinon il décale le texte */
  .eyebrow { flex-direction: column; gap: 9px; }
  .contact-item small { font-size: .86rem; }
    .gallery-more__hint { font-size: .9rem; }
  .footer__legal, .footer details summary { font-size: .89rem; }
  .footer details .legal-text { font-size: .87rem; }
  .card p, .faq__answer, .highlight p { font-size: 1rem; }

  .hero__grid { text-align: center; }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero .eyebrow { justify-content: center; }
  .hero__text p { max-width: 46ch; margin-inline: auto; }
  .hero__actions { justify-content: center; width: 100%; max-width: 440px; }
  .hero__actions .btn, .contact__actions .btn { flex: 1 1 0; min-width: 0; }
  .hero__badges { justify-content: center; max-width: 420px; }
  .hero__badges li { text-align: left; }
}

/* ---------- Mobile : en-têtes centrés, corps de texte aligné à gauche ---- */
@media (max-width: 760px) {
  .service__head, .section-intro, .contact__intro { text-align: center; }
  .section-intro { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .lead { margin-inline: auto; }
  .service__head { justify-items: center; }
  .service__head .btn { width: 100%; max-width: 380px; }
  .service__body h3 { text-align: center; }

  .alert .wrap {
    flex-direction: column; align-items: center; text-align: center;
    padding-block: 22px;
  }
  .alert__text { flex: initial; }
  .alert .btn { width: 100%; max-width: 380px; }

  .card { text-align: center; }
  .card__icon { margin-inline: auto; }
  .why__media figcaption {
    border-left: 0; padding: 0; margin-top: 18px; text-align: center;
  }
  .why__media figcaption::before {
    content: ""; display: block; width: 40px; height: 3px; border-radius: 3px;
    background: var(--red); margin: 0 auto 12px;
  }

  .zone__grid { text-align: center; }
  .chips { justify-content: center; }
  .zone__note {
    border-left: 0; padding: 0; margin: 26px auto 0;
    max-width: 46ch; text-align: center;
  }
  .zone__note::before {
    content: ""; display: block; width: 40px; height: 3px; border-radius: 3px;
    background: var(--red); margin: 0 auto 14px;
  }

  .footer__grid { text-align: center; }
  .footer .brand { justify-content: center; }
  .footer__legal { justify-content: center; text-align: center; }
  .footer details .legal-text { text-align: left; }
  .contact-item { text-align: left; }
}

/* ---------- Petit mobile : tous les boutons pleine largeur -------------- */
@media (max-width: 560px) {
  .hero__actions, .contact__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .contact__actions .btn { width: 100%; }
  .hero__badges { flex-direction: column; align-items: center; gap: 11px; }
  .gallery-more { flex-direction: column; align-items: center; text-align: center; }
  .gallery-toggle { width: 100%; max-width: 340px; justify-content: center; }
}

/* ---------- Très petits écrans (≤ 380 px) ------------------------------ */
@media (max-width: 380px) {
  .gallery { gap: 8px; }
        .contact-item { grid-template-columns: 42px 1fr; gap: 12px; padding: 15px; }
  .contact-item__icon { width: 42px; height: 42px; }
  .btn { padding: 14px 20px; font-size: .98rem; }
  .faq summary { padding: 16px 44px 16px 16px; font-size: .98rem; }
  .faq__answer { padding: 0 16px 18px; }
}

/* ---------- Téléphone tenu à l'horizontale ------------------------------ */
@media (max-height: 560px) and (orientation: landscape) {
  :root { --header-h: 60px; }
  .hero { padding-block: 20px 26px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero__actions { margin: 18px 0 14px; }
  .brand img { height: 34px; }
  .callbar { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
  .callbar .btn { padding-block: 10px; font-size: .94rem; }
  body { padding-bottom: 66px; }
  .lightbox { padding: 12px; }
  .lightbox img { max-height: 74vh; }
}
