/* ==========================================================================
   FP CHAUFFAGE — feuille de style
   Palette issue du logo : marine #0F2A45 · orange #E8580C · bleu #2D7FCE
   ========================================================================== */

:root {
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --navy: #0F2A45;
  --navy-deep: #091B2E;
  --navy-soft: #1C3D61;
  --orange: #E8580C;
  --orange-dark: #C94A08;
  --orange-soft: #FDEBE0;
  --blue: #2D7FCE;
  --blue-dark: #1F63A6;
  --blue-soft: #E3EFFA;
  --ice: #F3F6F9;
  --line: #E1E7EE;
  --text: #16304A;
  --muted: #5D6B7B;
  --white: #FFFFFF;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 78px;
  --shadow: 0 18px 40px -22px rgba(9, 27, 46, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-soft); color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy); color: #DCE6F0; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* Titre de section : le trait "thermomètre" du logo devient la signature du site */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.thermo {
  display: inline-block; width: 5px; height: 54px; border-radius: 3px; margin-bottom: 18px;
  background: linear-gradient(to bottom, var(--orange) 0 50%, var(--blue) 50% 100%);
}
.thermo--warm { background: linear-gradient(to bottom, var(--orange) 0 70%, var(--blue) 70% 100%); }
.thermo--cool { background: linear-gradient(to bottom, var(--orange) 0 30%, var(--blue) 30% 100%); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section-head p { color: #B9C8D8; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(232, 88, 12, .7); }
.btn--orange:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 16px 30px -12px rgba(232, 88, 12, .8); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--ice); color: var(--navy); }
.btn--sm { padding: 11px 18px; font-size: .76rem; }
.btn--lg { padding: 19px 34px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.link-more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-more:hover { color: var(--orange); }
.link-more:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Loader (animation du logo au chargement)
   -------------------------------------------------------------------------- */
#loader {
  position: fixed; inset: 0; z-index: 1000; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s var(--ease), visibility .55s;
}
#loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; align-items: center; gap: 28px; }
.loader-bar { position: relative; width: 6px; height: 120px; border-radius: 3px; overflow: hidden; background: var(--ice); }
.loader-bar span { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.loader-bar .b1 { background: var(--blue); animation: rise 0.55s var(--ease) 0.1s forwards; }
.loader-bar .b2 { background: var(--orange); bottom: 50%; animation: rise 0.55s var(--ease) 0.6s forwards; }
.loader-logo { width: clamp(200px, 40vw, 320px); opacity: 0; transform: translateX(10px); animation: logo-in .7s var(--ease) 1.05s forwards; }
@keyframes rise { to { height: 50%; } }
@keyframes logo-in { to { opacity: 1; transform: none; } }
body.loading { overflow: hidden; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(9, 27, 46, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 10px; font-weight: 700; font-size: .88rem; color: var(--navy); border-radius: 8px;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue)); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--navy); }
.header__cta { flex: none; padding: 12px 20px; font-size: .78rem; }
.burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 10px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1440px) {
  .nav a { padding: 10px 8px; font-size: .82rem; }
  .brand img { height: 40px; }
  .header__inner { gap: 14px; }
  .header__cta { padding: 11px 16px; font-size: .74rem; }
}
@media (max-width: 1199px) {
  :root { --header-h: 66px; }
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand img { height: 38px; }
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; overflow: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .nav__cta { margin-top: 20px; border: 0; padding: 0; }
  .nav .nav__cta .btn { width: 100%; }
}
@media (min-width: 1200px) { .nav__cta { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-zoom 12s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(9, 27, 46, .88) 0%, rgba(9, 27, 46, .7) 45%, rgba(9, 27, 46, .35) 100%); }
.hero__inner { padding: clamp(80px, 12vw, 140px) 0 clamp(120px, 14vw, 170px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.hero__bar { width: 6px; height: clamp(160px, 24vw, 260px); border-radius: 3px; margin-top: 10px; background: linear-gradient(to bottom, var(--orange) 0 50%, var(--blue) 50% 100%); }
.hero__brand { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: #fff; opacity: .85; margin-bottom: 18px; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 20px; }
.hero__services { font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #FFD7BE; margin-bottom: 18px; }
.hero__services span { color: #B7D5F5; }
.hero p.hero__text { max-width: 58ch; font-size: 1.1rem; color: rgba(255, 255, 255, .88); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.reassure { position: relative; z-index: 2; margin-top: clamp(-64px, -6vw, -90px); }
.reassure__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.reassure__item { display: flex; align-items: center; gap: 14px; padding: 24px 26px; border-right: 1px solid var(--line); }
.reassure__item:last-child { border-right: 0; }
.reassure__item svg { width: 28px; height: 28px; flex: none; color: var(--blue); }
.reassure__item strong { font-weight: 800; color: var(--navy); font-size: .98rem; }

@media (max-width: 1024px) { .reassure__grid { grid-template-columns: repeat(2, 1fr); } .reassure__item:nth-child(2) { border-right: 0; } .reassure__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 640px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 110px; }
  .hero__bar { display: none; }
  .hero__actions .btn { width: 100%; }
  .reassure__grid { grid-template-columns: 1fr; }
  .reassure__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 22px; }
  .reassure__item:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(6, 1fr);
}
.service { grid-column: span 2; }
.service--wide { grid-column: span 3; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__icon {
  position: absolute; left: 20px; bottom: -22px; width: 54px; height: 54px; border-radius: 14px;
  background: #fff; display: grid; place-items: center; color: var(--navy); box-shadow: 0 10px 24px -12px rgba(9, 27, 46, .5);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--warm { color: var(--orange); }
.card__icon--cool { color: var(--blue); }
.card__body { padding: 38px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); margin-bottom: 16px; }
.card__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__list li { font-size: .78rem; font-weight: 700; color: var(--navy-soft); background: var(--ice); padding: 5px 10px; border-radius: 999px; }
.card__body .btn, .card__body .link-more { margin-top: auto; align-self: flex-start; }
.service--wide .card { flex-direction: row; }
.service--wide .card__media { width: 44%; aspect-ratio: auto; flex: none; }
.service--wide .card__icon { left: auto; right: -22px; bottom: 20px; }
.service--wide .card__body { padding: 30px 30px 30px 40px; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service, .service--wide { grid-column: span 1; }
  .service--wide .card { flex-direction: column; }
  .service--wide .card__media { width: 100%; aspect-ratio: 3 / 2; }
  .service--wide .card__icon { left: 20px; right: auto; bottom: -22px; }
  .service--wide .card__body { padding: 38px 26px 26px; }
}
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; gap: 20px; } }

/* --------------------------------------------------------------------------
   Bandeau dépannage
   -------------------------------------------------------------------------- */
.urgence { position: relative; overflow: hidden; }
.urgence::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 88, 12, .28), transparent 70%);
}
.urgence__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.urgence h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; }
.urgence p { font-size: 1.1rem; color: #C6D3E1; max-width: 56ch; }
.urgence__contact { display: grid; gap: 14px; }
.contact-pill {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  transition: background .25s, border-color .25s;
}
.contact-pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.contact-pill svg { width: 24px; height: 24px; color: var(--orange); flex: none; }
.contact-pill small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9FB3C8; font-weight: 700; }
.contact-pill strong { font-size: 1.15rem; font-weight: 700; word-break: break-all; }
@media (max-width: 900px) { .urgence__inner { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   Pourquoi FP Chauffage
   -------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(to bottom, var(--orange), var(--blue)); }
.why__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 18px; }
.why__icon svg { width: 26px; height: 26px; }
.why h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.why p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Réalisations
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-weight: 700; font-size: .84rem; transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--navy); }
.filters button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; border: 0; padding: 0;
  background: var(--ice); text-align: left; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work:hover img { transform: scale(1.05); }
.work__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(to top, rgba(9, 27, 46, .85), transparent);
}
.work__cap strong { display: block; font-size: .98rem; }
.work__cap span { font-size: .78rem; opacity: .8; }
.work__tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; background: var(--orange); color: #fff;
}
.work.is-hidden { display: none; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(9, 27, 46, .96); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__inner { position: relative; width: min(1100px, 100%); padding-top: 58px; }
.lightbox__inner > img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 0; right: 0; }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav { top: calc(50% + 29px); transform: translateY(-50%); }
.lightbox__nav--prev { left: -60px; } .lightbox__nav--next { right: -60px; }
@media (max-width: 1240px) { .lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; } }
@media (max-width: 720px) {
  .lightbox__inner { padding-bottom: 64px; }
  .lightbox__nav { top: auto; bottom: 0; transform: none; }
  .lightbox__nav--prev { left: 0; } .lightbox__nav--next { right: 0; }
  .lightbox__cap { padding: 0 56px; }
}

/* Avant / Après */
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none;
}
.compare__handle::after {
  content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__label { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(9, 27, 46, .8); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.compare__label--before { left: 14px; } .compare__label--after { right: 14px; }

/* --------------------------------------------------------------------------
   Sections métier (chauffage, clim, sanitaire, entretien)
   -------------------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; isolation: isolate; }
.feature__media img { border-radius: var(--radius-lg); aspect-ratio: 6 / 5; object-fit: cover; width: 100%; }
.feature__media::after {
  content: ""; position: absolute; z-index: -1; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg);
  background: var(--ice);
}
.feature--warm .feature__media::after { background: var(--orange-soft); }
.feature--cool .feature__media::after { background: var(--blue-soft); }
.feature__body h2 { max-width: 18ch; }
.feature__body.prose h2 { max-width: 26ch; }
.feature__body .lead { margin-bottom: 26px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--navy); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--blue-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F63A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center / 12px no-repeat;
}
.feature--warm .checks li::before { background-color: var(--orange-soft); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C94A08' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>"); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media::after { inset: 16px -12px -12px 16px; }
}
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Avis
   -------------------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.review__sample { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--ice); padding: 4px 9px; border-radius: 999px; }
.stars { color: #F5A623; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 12px; }
.review p { color: var(--text); margin-bottom: 18px; }
.review__meta strong { display: block; color: var(--navy); }
.review__meta span { font-size: .86rem; color: var(--muted); }
.reviews-note { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.gallery-note { margin-top: 18px; margin-bottom: 0; }
#google-reviews:empty { display: none; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.quote { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote__aside .section-head { margin-bottom: 28px; }
.quote__facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.fact strong { display: block; color: var(--navy); }
.fact span, .fact a { color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #FBFCFD; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2A45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #FBFCFD;
  transition: border-color .2s, background .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: var(--blue-soft); }
.dropzone svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--blue); }
.dropzone strong { color: var(--navy); }
.dropzone input { display: none; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.previews figure { position: relative; margin: 0; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(9, 27, 46, .8); color: #fff; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-msg { display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 4px; }
.form-msg.is-ok { display: block; background: #E6F6EC; color: #1B6B3A; }
.form-msg.is-err { display: block; background: #FDECEC; color: #A32626; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success svg { width: 64px; height: 64px; color: #1B6B3A; margin: 0 auto 18px; }
.form-success h3 { margin-bottom: 6px; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pages internes
   -------------------------------------------------------------------------- */
.page-hero { position: relative; color: #fff; padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); isolation: isolate; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(9, 27, 46, .92), rgba(9, 27, 46, .55)); }
.page-hero h1 { color: #fff; max-width: 22ch; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.page-hero .lead { color: rgba(255, 255, 255, .86); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero--simple { background: var(--navy); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose p { color: var(--text); }

.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sub { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.sub svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 14px; }
.sub--warm svg { color: var(--orange); }
.sub h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; }
.sub p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .sub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sub-grid { grid-template-columns: 1fr; } }

.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 800; color: var(--navy); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 70ch; }

.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(to bottom, var(--orange) 0 50%, var(--blue) 50% 100%); }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 0; color: #C6D3E1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 20px; }
.contact-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.contact-item svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.contact-item strong { display: block; color: var(--navy); margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--blue); }
.contact-item .todo { color: var(--muted); font-style: italic; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-deep); color: #B9C8D8; padding: 72px 0 0; font-size: .95rem; }
.footer a { color: #DCE6F0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand img { width: 220px; margin-bottom: 20px; }
.footer__brand p { max-width: 36ch; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--orange); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social a:hover { background: var(--orange); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 22px 0; font-size: .84rem; color: #8DA2B8; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------------------------
   Barre mobile fixe
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; padding: 15px 10px; }
@media (max-width: 1199px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .footer { padding-bottom: 8px; }
}

/* --------------------------------------------------------------------------
   Apparition au scroll (discrète)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #loader { display: none; }
}
@media print { .header, .mobile-bar, #loader, .hero__media { display: none !important; } }

/* ajustements */
.prose .thermo + h2 { margin-top: 0; }
[hidden] { display: none !important; }
main, .footer { overflow-x: hidden; overflow-x: clip; }
.service--wide .card__icon { left: 20px; right: auto; bottom: 20px; }
.urgence h2 { max-width: 20ch; }
.urgence__inner { grid-template-columns: 1.2fr 1fr; }
.card__icon--navy { color: var(--navy); }

/* Le site reste en thème clair (identité de marque), quel que soit le réglage de l'appareil */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: light; --white: #FFFFFF; --text: #16304A; }
}
:root[data-theme="dark"] { color-scheme: light; --white: #FFFFFF; --text: #16304A; }
