/* ==========================================================================
   Harmony Plomberie — feuille de style (charte commune avec Harmony Home, accent bleu du logo)
   Palette : anthracite chaud, blanc cassé, rouge du logo.
   ========================================================================== */

/* Thème sombre : valeurs par défaut. Les zones listées ici restent sombres même en thème
   clair, parce que leur texte est posé sur une photo ou sur un fond noir (accueil, tuiles,
   en-tête au-dessus de l'accueil, menu mobile, visionneuse, barre mobile, pied de page). */
:root,
[data-theme="light"] .hero,
[data-theme="light"] .tile,
[data-theme="light"] .project__count,
[data-theme="light"] .header:not(.is-scrolled),
[data-theme="light"] .menu-open .header,
[data-theme="light"] .lightbox,
[data-theme="light"] .dock,
[data-theme="light"] .footer {
  --bg: #131312;
  --bg-alt: #1a1918;
  --surface: #242321;
  --card: #1a1918;
  --input-bg: #131312;
  --fg: #f3efe8;
  --fg-soft: rgba(243, 239, 232, .84);
  --muted: #a8a299;
  --line: rgba(243, 239, 232, .14);
  --ghost-border: rgba(243, 239, 232, .45);
  --ghost-hover: rgba(243, 239, 232, .08);
  --header-bg: rgba(19, 19, 18, .9);
  --accent: #1670b8;
  --accent-hover: #1c82d4;
  --accent-text: #5aa9e6;
}

/* Thème clair : papier chaud, texte encre, même bleu. */
[data-theme="light"] {
  --bg: #f5f1ea;
  --bg-alt: #ebe5da;
  --surface: #ddd6c9;
  --card: #fdfbf7;
  --input-bg: #ffffff;
  --fg: #191817;
  --fg-soft: #3b3834;
  --muted: #6a645b;
  --line: rgba(25, 24, 23, .16);
  --ghost-border: rgba(25, 24, 23, .4);
  --ghost-hover: rgba(25, 24, 23, .06);
  --header-bg: rgba(245, 241, 234, .93);
  --accent: #1670b8;
  --accent-hover: #125e9c;
  --accent-text: #1670b8;
}

[data-theme="light"] .hero,
[data-theme="light"] .tile,
[data-theme="light"] .project__count,
[data-theme="light"] .header:not(.is-scrolled),
[data-theme="light"] .menu-open .header,
[data-theme="light"] .dock,
[data-theme="light"] .footer { color: var(--fg); }

:root {
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(76px, 10vw, 148px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--fg); color: var(--bg);
  font-size: .85rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Typographie ---------- */

h1, h2 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.9vw, 3rem); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  color: var(--accent-text);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 1.9em;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--ghost-border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: var(--ghost-hover); }
.btn--full { width: 100%; }

/* ---------- En-tête ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .header__inner { height: 64px; }

.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
}
.brand img { width: auto; height: 44px; transition: height .35s var(--ease); }
.header.is-scrolled .brand img { height: 36px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  position: relative; padding: 8px 0;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.nav a:not(.nav__phone)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent-text); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .nav__phone {
  padding: .85em 1.5em; border: 1px solid var(--ghost-border); border-radius: 999px;
  letter-spacing: .12em; transition: background-color .25s, border-color .25s;
}
.nav .nav__phone:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.burger { display: none; }

/* ---------- Accueil ---------- */

.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 32px) var(--gutter) 120px;
  text-align: center;
  overflow: hidden;
}
.hero__panels { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__panel { position: relative; overflow: hidden; }
.hero__panel + .hero__panel { border-left: 1px solid rgba(243, 239, 232, .16); }
.hero__panel img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 2.4s var(--ease) both;
}
.hero__panel:nth-child(2) img { animation-delay: .12s; }
.hero__panel:nth-child(3) img { animation-delay: .24s; object-position: 40% 50%; }
.hero__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 13, .78) 0%, rgba(14, 14, 13, .5) 38%, rgba(14, 14, 13, .62) 70%, rgba(14, 14, 13, .9) 100%);
}
.hero__panel figcaption {
  position: absolute; left: 0; right: 0; bottom: 42px; z-index: 1;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase;
}
.hero__panel figcaption i { margin-right: 12px; color: var(--accent-text); font-style: normal; font-weight: 600; }

/* voile central : le titre reste lisible quelle que soit la photo derrière */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 52%, rgba(14, 14, 13, .62) 0%, rgba(14, 14, 13, .34) 55%, rgba(14, 14, 13, 0) 100%);
}
.hero__content { max-width: 900px; animation: rise 1.1s .25s var(--ease) both; }
.hero h1 span { display: block; font-weight: 500; }
.hero__lead {
  max-width: 600px; margin: 26px auto 0;
  font-size: clamp(.98rem, 1.5vw, 1.1rem); color: var(--fg-soft);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

@keyframes heroZoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- Repères ---------- */

.facts { border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: clamp(34px, 4.5vw, 62px) clamp(18px, 3vw, 44px); }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__key {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-weight: 300;
  letter-spacing: .1em; text-transform: uppercase;
}
.fact__text { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 5.5vw, 76px); text-align: center; }
.section__intro { margin-top: 22px; color: var(--muted); }

/* ---------- Savoir-faire : tuiles décalées ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); padding-bottom: 56px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.tile:nth-child(even) { top: 56px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 14, 13, 0) 38%, rgba(14, 14, 13, .88) 100%);
  transition: background-color .5s;
}
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2vw, 28px); }
.tile h3 { font-size: clamp(1.1rem, 1.55vw, 1.4rem); font-style: italic; font-weight: 500; line-height: 1.25; }
.tile p { margin-top: 10px; color: rgba(243, 239, 232, .84); font-size: .84rem; line-height: 1.55; }

@media (hover: hover) and (min-width: 720px) {
  .tile p { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin-top .5s var(--ease); }
  .tile:hover p, .tile:focus-within p { max-height: 8em; margin-top: 10px; opacity: 1; }
  .tile:hover img { transform: scale(1.06); }
  .tile:hover::after { background-color: rgba(14, 14, 13, .28); }
}

/* ---------- Réalisations ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 54px); }
.chip {
  padding: .8em 1.4em; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--muted); cursor: pointer;
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .25s, color .25s, background-color .25s;
}
.chip:hover { border-color: var(--ghost-border); color: var(--fg); }
.chip.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px) clamp(16px, 2vw, 30px); }
.project--wide { grid-column: span 2; }
.projects.is-filtered .project--wide { grid-column: auto; }
.project[hidden] { display: none; }

.project__link { display: block; text-decoration: none; }
.project__img { position: relative; display: block; height: clamp(300px, 35vw, 480px); overflow: hidden; background: var(--surface); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.project__link:hover .project__img img { transform: scale(1.05); filter: brightness(.82); }
.project__count {
  position: absolute; right: 14px; bottom: 14px;
  padding: .55em 1em; border-radius: 999px;
  background: rgba(14, 14, 13, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.project__meta { display: block; padding-top: 18px; }
.project__title { display: block; font-size: 1.08rem; font-style: italic; font-weight: 500; line-height: 1.35; }
.project__place { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- L'entreprise ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__team { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about__duo { position: absolute; right: 0; bottom: 0; width: 44%; border: 8px solid var(--bg); background: var(--bg); }
.about__duo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about__duo figcaption { padding: 10px 4px 2px; color: var(--muted); font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.about__text p { color: var(--fg-soft); }
.about__text h2 { margin-bottom: 28px; }
.about__text p + p { margin-top: 16px; }

.quote { margin: 36px 0; padding-left: 26px; border-left: 1px solid var(--accent-text); }
.quote p { color: var(--fg); font-size: clamp(1.3rem, 2.3vw, 1.85rem); font-style: italic; font-weight: 400; line-height: 1.3; }
.quote footer { margin-top: 12px; color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }

.poles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.poles li { padding: 20px 16px; }
.poles li + li { border-left: 1px solid var(--line); }
.poles strong { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.poles span { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
/* case cliquable vers le site d'un autre pôle ; le pôle du site en cours est en rouge */
.poles li:has(> a) { padding: 0; }
.poles a { display: block; height: 100%; padding: 20px 16px; text-decoration: none; transition: background-color .25s; }
.poles a:hover { background: var(--ghost-hover); }
.poles a strong::after { content: "\00a0→"; color: var(--accent-text); font-weight: 400; }
.poles .is-here strong { color: var(--accent-text); }
.tile p a, .hero__lead a, .about__text p a, .duo__text p a { color: inherit; text-underline-offset: 3px; }

/* ---------- Méthode ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: clamp(30px, 3.4vw, 48px) clamp(18px, 2.2vw, 34px) 0; }
.step + .step { border-left: 1px solid var(--line); }
.step__num {
  display: block; margin-bottom: 22px;
  font-size: clamp(3rem, 5.4vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px var(--accent-text);
}
.step h3 { margin-bottom: 12px; font-size: .92rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Zone ---------- */

.places { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; max-width: 1040px; margin-inline: auto; }
.places li {
  display: flex; align-items: center;
  font-size: clamp(1.1rem, 2.4vw, 1.85rem); font-weight: 300;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}
.places li:not(:last-child)::after { content: ""; width: 5px; height: 5px; margin-inline: clamp(12px, 1.8vw, 24px); border-radius: 50%; background: var(--accent-text); }
.zone__note { max-width: 660px; margin: 40px auto 0; color: var(--muted); text-align: center; }
.zone__note a { color: var(--fg); text-underline-offset: 4px; }

/* ---------- Instagram ---------- */

.insta h2 a { text-decoration: none; transition: color .25s; }
.insta h2 a:hover { color: var(--accent-text); }
.insta h2 { text-transform: none; letter-spacing: .04em; overflow-wrap: anywhere; }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, .9vw, 12px); }
.insta__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: filter .4s, transform .6s var(--ease); }
.insta__grid:hover img { filter: brightness(.7); }
.insta__grid img:hover { filter: none; transform: scale(1.03); }
.insta__cta { margin-top: 40px; text-align: center; }

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

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__info h2 { margin-bottom: 26px; }
.contact__info > p { color: var(--fg-soft); max-width: 30em; }
.contact__phone {
  display: inline-block; margin: 36px 0 34px;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 300; letter-spacing: .04em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid var(--accent-text); padding-bottom: 8px;
  transition: color .25s;
}
.contact__phone:hover { color: var(--accent-text); }
.contact__list { display: grid; gap: 22px; }
.contact__list dt { margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.contact__list a { text-underline-offset: 4px; }

.form { padding: clamp(24px, 3.4vw, 46px); border: 1px solid var(--line); background: var(--card); }
.form__title { margin-bottom: 26px; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.field b { color: var(--accent-text); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--input-bg); color: var(--fg);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); }
.field ::placeholder { color: #77726a; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent-text); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.6em; margin-top: 16px; font-size: .9rem; }
.form__status.is-error { color: var(--accent-text); }
.form__legal { margin-top: 6px; color: var(--muted); font-size: .76rem; }
.form__legal a { text-underline-offset: 3px; }

/* ---------- Pied de page ---------- */

.footer { border-top: 1px solid var(--line); background: #0d0d0c; padding-top: clamp(48px, 6vw, 84px); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.footer__logo { width: clamp(150px, 16vw, 210px); height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; }
.footer__nav a, .footer__contact a { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: color .25s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent-text); }
.footer__contact { display: grid; gap: 10px; justify-items: end; text-align: right; }
.footer__contact span { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(36px, 5vw, 64px); padding-block: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .76rem;
}
.footer__legal a { text-underline-offset: 3px; }

/* ---------- Barre d'action mobile ---------- */

.dock { display: none; }

/* ---------- Visionneuse ---------- */

.lightbox {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: #0b0b0a; color: var(--fg);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.lightbox::backdrop { background: #0b0b0a; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 24px; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 48px); object-fit: contain; transition: opacity .25s; }
.lightbox__stage img.is-loading { opacity: 0; }
.lightbox__nav, .lightbox__close {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(14, 14, 13, .7); cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__panel { display: flex; flex-direction: column; align-items: flex-start; padding: 92px 34px 34px; border-left: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
.lightbox__place { color: var(--accent-text); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.lightbox__title { margin: 12px 0 18px; font-size: 1.5rem; font-style: italic; font-weight: 500; line-height: 1.25; }
.lightbox__desc { color: rgba(243, 239, 232, .84); font-size: .94rem; }
.lightbox__credit { margin-top: 14px; color: var(--muted); font-size: .78rem; }
.lightbox__credit:empty { display: none; }
.lightbox__caption { width: 100%; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }
.lightbox__caption span:first-child { margin-right: 14px; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .16em; }
.lightbox__panel .btn { margin-top: auto; }

/* ---------- Apparition au défilement ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Adaptations
   ========================================================================== */

@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--wide { grid-column: span 2; }
  .project__img { height: clamp(280px, 52vw, 460px); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; border-top: 0; }
  .step { border-top: 1px solid var(--line); }
  .step:nth-child(odd) { border-left: 0; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .about, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__contact { justify-items: center; text-align: center; }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox__stage { padding: 64px 12px 12px; }
  .lightbox__stage img { max-height: 100%; }
  .lightbox__panel { max-height: 42dvh; padding: 20px var(--gutter) 24px; border-left: 0; border-top: 1px solid var(--line); }
  .lightbox__title { font-size: 1.2rem; margin: 8px 0 10px; }
  .lightbox__caption { order: -1; margin: 0 0 14px; padding-top: 0; border-top: 0; }
  .lightbox__panel .btn { margin-top: 0; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 10px; right: 10px; width: 42px; height: 42px; }
}

@media (max-width: 899px) {
  :root { --header-h: 68px; }

  /* Menu mobile */
  .burger {
    position: relative; z-index: 2; display: grid; place-items: center; gap: 0;
    width: 46px; height: 46px; margin-right: -8px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .burger span { grid-area: 1 / 1; width: 24px; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease); }
  .burger span:first-child { transform: translateY(-4px); }
  .burger span:last-child { transform: translateY(4px); }
  .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .brand { position: relative; z-index: 2; }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: 90px var(--gutter) 40px;
    background: #0d0d0c;
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { padding: 12px 0; font-size: 1.05rem; font-weight: 300; letter-spacing: .18em; }
  .nav .nav__phone { margin-top: 22px; font-size: .9rem; font-weight: 500; }
  body.menu-open { overflow: hidden; }
  /* Le flou de l'en-tête enfermerait le menu plein écran dans la bande du haut : on le coupe menu ouvert. */
  .menu-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* Accueil : les trois panneaux s'enchaînent en fondu */
  .hero { padding-bottom: 104px; }
  .hero__panels { display: block; }
  .hero__panel { position: absolute; inset: 0; opacity: 0; animation: heroFade 18s infinite both; }
  .hero__panel + .hero__panel { border-left: 0; }
  .hero__panel:nth-child(1) { animation-delay: -1.1s; }
  .hero__panel:nth-child(2) { animation-delay: 4.9s; }
  .hero__panel:nth-child(3) { animation-delay: 10.9s; }
  .hero__panel img { animation: none; }
  .hero__panel figcaption { bottom: 34px; }
  .hero::before { background: radial-gradient(ellipse 110% 44% at 50% 50%, rgba(14, 14, 13, .5) 0%, rgba(14, 14, 13, 0) 100%); }
  .hero .eyebrow { gap: 10px; letter-spacing: .2em; font-size: .68rem; white-space: nowrap; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 18px; }
}

@media (max-width: 719px) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact { padding-inline: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }

  /* Savoir-faire : défilement horizontal */
  .tiles {
    display: flex; gap: 14px; padding: 0 var(--gutter) 18px;
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 74%; scroll-snap-align: start; }
  .tile:nth-child(even) { top: 0; }

  .filters { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .projects { grid-template-columns: 1fr; }
  .project--wide { grid-column: auto; }
  .project__img { height: auto; aspect-ratio: 4 / 5; }
  .project--wide .project__img { aspect-ratio: 3 / 2; }

  .poles { grid-template-columns: 1fr; }
  .poles li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { border-left: 0 !important; padding: 28px 0 30px; }
  .form__row { grid-template-columns: 1fr; }

  /* Barre d'action */
  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1.5fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg); border-top: 1px solid var(--line);
    transform: translateY(105%); transition: transform .4s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .dock a { padding: 17px 10px; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
  .dock a:last-child { background: var(--accent); color: #fff; }
  .footer__legal { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__panel { opacity: 0; }
  .hero__panel:nth-child(2) { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .hero__panel { opacity: 1; }
}

/* ---------- Page mentions légales ---------- */

.legal { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 40px; }
.legal h2 { margin: 44px 0 14px; font-size: .86rem; font-weight: 600; letter-spacing: .2em; color: var(--accent-text); }
.legal p, .legal li { color: var(--fg-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: none; display: grid; gap: 6px; }
.legal a { text-underline-offset: 4px; }
.header .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .header .btn { padding: .85em 1.1em; font-size: .66rem; letter-spacing: .1em; }
  .header__inner:has(> .btn) .brand span { font-size: .72rem; letter-spacing: .2em; }
}
.todo { padding: 2px 8px; background: #f5c400; color: #131312; font-weight: 600; font-size: .86em; }


/* ==========================================================================
   Harmony Plomberie — composants repris de Harmony Elec
   (tout ce qui précède est la charte commune avec Harmony Home)
   ========================================================================== */

.nav a[aria-current="page"]::after { transform: scaleX(1); }
.footer__contact a.plain, .footer__legal a.plain { letter-spacing: .04em; text-transform: none; font-size: .84rem; }

/* ---------- Haut de page : une seule photo plein cadre ---------- */

.hero--solo .hero__panels { display: block; }
.hero--solo .hero__panel { position: absolute; inset: 0; opacity: 1; animation: none; }
.hero--solo .hero__panel img { object-position: 50% 22%; animation: heroZoom 2.4s var(--ease) both; }
.hero--page { min-height: 70vh; min-height: 70svh; padding-bottom: 76px; }
.hero--page h1 { font-size: clamp(1.9rem, 4.8vw, 3.6rem); }
/* le contenu ne dépasse jamais la largeur de l'écran, même avec la rangée de pastilles défilante */
.hero--solo .hero__content { width: 100%; min-width: 0; }
/* voile plus dense sur les pages intérieures : le texte passe devant des photos claires */
.hero--page .hero__panel::after { background: linear-gradient(180deg, rgba(14, 14, 13, .84) 0%, rgba(14, 14, 13, .7) 45%, rgba(14, 14, 13, .92) 100%); }
.hero__phone {
  display: inline-block; margin-top: 30px; padding-bottom: 8px;
  border-bottom: 1px solid var(--accent-text);
  font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 300; letter-spacing: .04em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.hero__phone:hover { color: var(--accent-text); }
.hero__note { margin-top: 22px; color: var(--fg-soft); font-size: .95rem; }

.page-top { padding-top: calc(var(--header-h) + clamp(44px, 6vw, 90px)); }

/* ---------- Tuiles cliquables ---------- */

a.tile { display: block; color: inherit; text-decoration: none; }
/* espace insécable + flèche : la flèche ne passe jamais seule à la ligne */
a.tile h3::after { content: "\00a0→"; font-style: normal; font-weight: 400; transition: color .3s; }
a.tile:hover h3::after { color: var(--accent-text); }
.tile--wide img { object-position: 50% 30%; }

/* ---------- Ancres en pastilles ---------- */

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.pill {
  padding: .8em 1.4em; border: 1px solid var(--ghost-border); border-radius: 999px;
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: border-color .25s, background-color .25s, color .25s;
}
.pill:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- Bloc prestation : présentation à gauche, détail à droite ---------- */

.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; scroll-margin-top: 90px; }
.service + .service { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }
.service__num {
  display: block; margin-bottom: 18px;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 600; line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px var(--accent-text);
}
.service__intro h2 { margin-bottom: 22px; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.service__intro p { color: var(--fg-soft); }
.service__intro .btn { margin-top: 28px; }

.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.blocks--stack { grid-template-columns: 1fr; }
/* nombre impair de blocs : le dernier prend toute la largeur, pas de case vide */
.blocks > .block:last-child:nth-child(odd) { grid-column: 1 / -1; }
.block { padding: clamp(22px, 2.6vw, 34px); background: var(--bg); }
.section--alt .block { background: var(--bg-alt); }
.block h3 { margin-bottom: 14px; font-size: .86rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.block p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.block ul, .ticks { display: grid; gap: 8px; }
.block li, .ticks li { position: relative; padding-left: 22px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.block li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .74em; width: 11px; height: 1px; background: var(--accent-text); }
.ticks { margin-top: 22px; }
.ticks li { color: var(--fg-soft); font-size: .96rem; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); margin-top: clamp(14px, 1.6vw, 22px); }
.shots--2 { grid-template-columns: repeat(2, 1fr); }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.shots figcaption { margin-top: 8px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; }

/* ---------- Trois colonnes encadrées ---------- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.trio > * { padding: clamp(24px, 3vw, 42px); }
.trio > * + * { border-left: 1px solid var(--line); }
.trio h3 { margin-bottom: 12px; font-size: .92rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.trio p { color: var(--muted); font-size: .94rem; }

/* ---------- Texte + image ---------- */

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.duo__img img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.duo__text h2 { margin-bottom: 26px; }
.duo__text p { color: var(--fg-soft); }
.duo__text p + p { margin-top: 16px; }
.duo__text .poles { margin-top: 34px; }

/* ---------- Bandeau d'appel ---------- */

.band { text-align: center; }
.band h2 { margin-bottom: 18px; }
.band > .wrap > p { max-width: 640px; margin-inline: auto; color: var(--fg-soft); }
.band__phone { display: inline-block; margin-top: 30px; padding-bottom: 6px; border-bottom: 1px solid var(--accent-text); font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 300; letter-spacing: .04em; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: color .25s; }
.band__phone:hover { color: var(--accent-text); }
.band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* ---------- Encadré de sécurité ---------- */

.notice { max-width: 820px; margin: clamp(36px, 5vw, 64px) auto 0; padding: 24px 28px; border-left: 2px solid var(--accent-text); background: var(--card); }
.notice strong { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.notice p { color: var(--fg-soft); font-size: .95rem; }

.steps--5 { grid-template-columns: repeat(5, 1fr); }

.error-page { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; text-align: center; }
.error-page p { margin: 20px auto 34px; max-width: 520px; color: var(--fg-soft); }

@media (max-width: 1023px) {
  .service, .duo { grid-template-columns: 1fr; }
  .duo__img { max-width: 560px; }
  .steps--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 719px) {
  .blocks { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots > :nth-child(3) { display: none; }
  .steps--5 { grid-template-columns: 1fr; }
  .pills { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .hero--page { min-height: 62svh; }
}

/* ---------- Harmony Plomberie ---------- */

.shots--4 { grid-template-columns: repeat(4, 1fr); }
.shots--4 img { aspect-ratio: 3 / 4; }
.duo__img figcaption { margin-top: 10px; color: var(--muted); font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

@media (max-width: 719px) {
  .shots--4 { grid-template-columns: repeat(2, 1fr); }
  .shots--4 > :nth-child(3) { display: block; }
}
