/* ==========================================================================
   LAPI RENOV — feuille de style
   Mise en page : bandes pleine largeur alternant ivoire et bleu marine,
   la coupe d'un mur isolé comme signature, barre d'appel fixe sur mobile.
   ========================================================================== */

@font-face { font-family: "Lora"; src: url("../fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --marine: #18324B;
  --marine-fonce: #0F2335;
  --marine-clair: #2A4A68;
  --ivoire: #F7F5E6;
  --ivoire-fonce: #ECE8D3;
  --sable: #C4A266;
  --encre: #142231;
  --gris: #556270;
  --ligne: #DCD7BF;
  --blanc: #FFFEF8;
  --erreur: #9B2C2C;

  --f-titre: "Lora", Georgia, "Times New Roman", serif;
  --f-texte: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --r: 3px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sable); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--marine); color: var(--ivoire); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 860px; }

.eyebrow {
  font-family: var(--f-texte);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sable);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.01em; }
.section-intro { color: var(--gris); font-size: 1.1rem; max-width: 62ch; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 .98rem/1 var(--f-texte);
  letter-spacing: .01em;
  padding: 1em 1.5em;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1.15em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--marine); color: var(--ivoire); }
.btn-primary:hover { background: var(--marine-fonce); }
.btn-ivory { background: var(--ivoire); color: var(--marine); }
.btn-ivory:hover { background: var(--blanc); }
.btn-outline { border-color: var(--marine); color: var(--marine); background: transparent; }
.btn-outline:hover { background: var(--marine); color: var(--ivoire); }
.btn-ghost-light { border-color: rgba(247, 245, 230, .45); color: var(--ivoire); background: transparent; }
.btn-ghost-light:hover { border-color: var(--ivoire); background: rgba(247, 245, 230, .08); }
.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--sable); padding-bottom: 2px; }
.text-link svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.link-btn { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ----- En-tête ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 230, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--ligne); box-shadow: 0 6px 24px -18px rgba(15, 35, 53, .4); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--marine); flex: none; }
.brand img { height: 38px; width: auto; max-width: 62vw; }
@media (max-width: 420px) { .brand img { height: 30px; } }
.brand-name { font-family: var(--f-titre); font-weight: 700; font-size: 1.28rem; letter-spacing: .12em; }
.brand-name span { font-weight: 400; font-style: italic; letter-spacing: .06em; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.main-nav ul ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn), .sub-toggle {
  display: block; white-space: nowrap; padding: 8px 11px; text-decoration: none; color: var(--encre);
  font: 500 .93rem/1.4 var(--f-texte); border-radius: var(--r); position: relative; background: none; border: 0; cursor: pointer;
}
.main-nav > ul > li > a:not(.btn)::after, .sub-toggle::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 1.5px; background: var(--sable); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > ul > li > a:not(.btn):hover::after, .main-nav > ul > li > a[aria-current="page"]::after, .sub-toggle[data-current]::after, .sub-toggle:hover::after { transform: scaleX(1); }
.sub-toggle { display: inline-flex; align-items: center; gap: 6px; }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; margin-top: 6px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r);
  box-shadow: 0 20px 40px -24px rgba(15, 35, 53, .5);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.is-open .chev { transform: translateY(1px) rotate(-135deg); }
.has-sub .sub a { padding: 10px 12px; }
.has-sub .sub a:hover, .has-sub .sub a[aria-current="page"] { background: var(--ivoire); color: var(--marine); }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--marine); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 8px 4px; }
.header-phone svg { width: 18px; height: 18px; }
.header-devis { padding: .8em 1.15em; font-size: .92rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ligne); background: transparent; border-radius: var(--r); cursor: pointer; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--marine); content: ""; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle .bars { top: 21px; }
.menu-toggle .bars::before { top: -6px; left: 0; }
.menu-toggle .bars::after { top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1480px) {
  .header-phone span { display: none; }
  .header-phone { border: 1px solid var(--ligne); border-radius: var(--r); width: 44px; height: 44px; justify-content: center; }
}
@media (max-width: 1240px) {
  /* le flou d'arrière-plan enfermait le menu dans la bande du haut : supprimé sur mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivoire); }
  .menu-toggle { display: block; }
  .header-devis { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    z-index: 80; background: var(--ivoire); margin: 0;
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav:not(.is-open) { pointer-events: none; overflow: hidden; }
  .main-nav:not(.is-open) * { visibility: hidden !important; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a:not(.btn), .sub-toggle {
    width: 100%; text-align: left; font-family: var(--f-titre); font-size: 1.3rem; font-weight: 500;
    padding: 13px 0; border-bottom: 1px solid var(--ligne); border-radius: 0; justify-content: space-between;
  }
  .main-nav > ul > li > a[aria-current="page"] { color: var(--marine); font-weight: 600; }
  .main-nav > ul > li > a:not(.btn)::after, .sub-toggle::after { display: none; }
  .has-sub .sub { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; background: none; margin: 0; padding: 4px 0 10px 14px; min-width: 0; display: none; border-bottom: 1px solid var(--ligne); }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .chev { transform: translateY(-2px) rotate(45deg); }
  .has-sub.is-open .chev { transform: translateY(1px) rotate(-135deg); }
  .has-sub .sub a { font-size: 1.02rem; padding: 9px 0; color: var(--gris); }
  .has-sub .sub a[aria-current="page"] { background: none; color: var(--marine); font-weight: 600; }
  .main-nav .nav-cta { display: grid; gap: 10px; margin-top: 22px; }
  .main-nav .nav-cta .btn { width: 100%; padding: 1.05em; }
  body.menu-open { overflow: hidden; }
  body.menu-open .callbar, body.menu-open .whatsapp { display: none; }
}

/* ----- Accueil : hero ----- */
.hero {
  background-color: var(--marine);
  background-image:
    linear-gradient(180deg, rgba(15, 35, 53, .62) 0%, rgba(24, 50, 75, .78) 50%, rgba(15, 35, 53, .94) 100%),
    url("../../uploads/realisations/maison-terrasse-bois-apres-800.jpg");
  background-size: cover;
  background-position: center 35%;
  color: var(--ivoire);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(15, 35, 53, .92) 0%, rgba(24, 50, 75, .72) 45%, rgba(24, 50, 75, .25) 100%),
      url("../../uploads/realisations/maison-terrasse-bois-apres.jpg");
  }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(196, 162, 102, .16), transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(15, 35, 53, .5));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 500; letter-spacing: -.02em; margin-top: 20px; }
.hero .hero-title { font-size: clamp(1.75rem, 8.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.01em; }
.hero .hero-title span { display: block; white-space: nowrap; }
.hero .hero-title b { font-weight: inherit; }
.hero .hero-title .hero-lieu { font-size: .42em; letter-spacing: .02em; margin-top: .7em; color: var(--sable); white-space: normal; }
.hero .eyebrow-brand { color: var(--ivoire); letter-spacing: .24em; font-size: .85rem; }
.hero .eyebrow-brand::before { background: var(--sable); }
.hero h1 em { font-style: italic; color: var(--sable); font-weight: 500; }
.hero .lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(247, 245, 230, .82); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: rgba(247, 245, 230, .86); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--sable); flex: none; }

/* Coupe ITE */
.coupe { margin: 0; background: rgba(15, 35, 53, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(247, 245, 230, .14); padding: clamp(18px, 3vw, 28px); border-radius: var(--r); min-width: 0; }
.coupe svg { width: 100%; height: auto; display: block; }
.c-mur { fill: #8D8676; }
.c-joint { stroke: #6E6858; stroke-width: 1.5; fill: none; }
.c-colle { fill: #A9A08A; }
.c-iso { fill: #E3D7B4; }
.c-iso2 { fill: #D5C69C; }
.c-sous { fill: #DAD6C8; }
.c-mesh { stroke: #A88B52; stroke-width: 1; fill: none; }
.c-fin { fill: var(--ivoire); }
.c-cheville rect, .c-cheville circle { fill: #F1EEE2; stroke: #8D8676; stroke-width: 1; }
.c-label text { fill: var(--ivoire); font: 600 13px var(--f-texte); letter-spacing: .1em; text-transform: uppercase; }
.c-arrow { stroke: var(--sable); stroke-width: 2; }
.coupe-legende { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px; font-size: .88rem; color: rgba(247, 245, 230, .82); }
.coupe-legende li { display: flex; align-items: center; gap: 10px; }
.k { width: 14px; height: 14px; border-radius: 2px; flex: none; border: 1px solid rgba(247, 245, 230, .3); }
.k-mur { background: #8D8676; } .k-colle { background: #A9A08A; } .k-iso { background: #E3D7B4; } .k-sous { background: #DAD6C8; } .k-fin { background: var(--ivoire); }
.page-body .coupe { background: var(--marine); }

/* Bandeau confiance */
.engagements { background: var(--marine-fonce); color: var(--ivoire); }
.engagements ul { list-style: none; margin: 0; padding-block: 26px; display: grid; gap: 18px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.engagements li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: .95rem; color: rgba(247, 245, 230, .86); }
.engagements strong { display: block; color: var(--ivoire); font-weight: 600; }
.engagements svg { width: 22px; height: 22px; color: var(--sable); margin-top: 2px; }

/* ----- Prestations ----- */
.services-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
  text-decoration: none; color: var(--encre);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  min-width: 0;
}
.service-card:hover { border-color: var(--marine); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(15, 35, 53, .55); }
.service-card .tag { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sable); }
.service-card h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.service-card p { color: var(--gris); }
.service-card .go { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--marine); }
.service-card .go svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.service-card:hover .go svg { transform: translateX(4px); }
.service-card.is-feature { background: var(--marine); color: var(--ivoire); border-color: var(--marine); }
.service-card.is-feature p { color: rgba(247, 245, 230, .78); }
.service-card.is-feature .go { color: var(--ivoire); }

/* ----- Méthode (étapes) ----- */
.methode { background: var(--ivoire-fonce); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }
.steps li { counter-increment: etape; border-top: 1px solid var(--marine); padding: 22px 0 32px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(etape, decimal-leading-zero); font-family: var(--f-titre); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--sable); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--gris); font-size: .98rem; }

/* ----- Pourquoi / argumentaire ----- */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.arguments { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.arguments li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
.arguments svg { width: 26px; height: 26px; color: var(--marine); background: var(--ivoire-fonce); border-radius: 50%; padding: 4px; }
.arguments h3 { font-family: var(--f-texte); font-size: 1.08rem; font-weight: 600; margin-bottom: 4px; }
.arguments p { color: var(--gris); }
.signature { border-left: 2px solid var(--sable); padding-left: 24px; }
.signature p { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--marine); }
.signature cite { display: block; margin-top: 14px; font-style: normal; font-size: .95rem; color: var(--gris); }

/* ----- Réalisations ----- */
.chantier-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.chantier-card { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.chantier-link { display: block; text-decoration: none; color: inherit; }
.chantier-visuel { aspect-ratio: 4 / 3; background: var(--ivoire-fonce); position: relative; overflow: hidden; max-width: 100%; }
.chantier-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.chantier-link:hover img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--marine); color: var(--ivoire); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.chantier-texte { padding: 20px 22px 24px; display: grid; gap: 6px; }
.chantier-lieu { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sable); }
.chantier-texte h3 { font-size: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font-size: .8rem; background: var(--ivoire); border: 1px solid var(--ligne); padding: 3px 9px; border-radius: 99px; color: var(--gris); }
.more { margin-top: 36px; }

.empty-state { display: grid; gap: 28px; align-items: center; background: var(--blanc); border: 1px dashed var(--ligne); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); }
@media (min-width: 820px) { .empty-state { grid-template-columns: 320px 1fr; gap: 44px; } .empty-avis { grid-template-columns: 1fr; } }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-state p { color: var(--gris); margin-bottom: 20px; max-width: 58ch; }
.empty-visuel { aspect-ratio: 4 / 3; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; max-width: 100%; }
.empty-visuel span { display: flex; align-items: flex-end; padding: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.empty-visuel span:first-child { background: repeating-linear-gradient(135deg, #D9D3BC 0 7px, #CEC7AD 7px 14px); color: var(--encre); }
.empty-visuel span:last-child { background: var(--marine); color: var(--ivoire); }

/* Comparateur avant / après */
.compare { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--ivoire-fonce); max-width: 100%; --pos: 50%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.compare.compare-portrait { aspect-ratio: 3 / 4; max-width: 560px; }
.compare.compare-carre { aspect-ratio: 13 / 14; max-width: 640px; }
.compare .compare-avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .compare-ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ivoire); transform: translateX(-1px); pointer-events: none; }
.compare .compare-ligne::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--ivoire); color: var(--marine); display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.compare { touch-action: pan-y; cursor: ew-resize; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.compare:focus-within { outline: 2px solid var(--marine); outline-offset: 3px; }
.compare-tag { position: absolute; bottom: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: rgba(15, 35, 53, .78); color: var(--ivoire); padding: 4px 10px; border-radius: 2px; pointer-events: none; }
.compare-tag.t-avant { left: 12px; } .compare-tag.t-apres { right: 12px; }
.chantier-photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 32px; }
.chantier-photos img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--r); }
.chantier-photos a { display: block; }
.photo-principale { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.photo-principale.photo-portrait { aspect-ratio: 3 / 4; max-width: 560px; display: block; }
.chantier-fiche .prose { margin-top: 28px; }
.figure-chantier { margin: 0; }
.figure-chantier img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.figure-chantier figcaption { font-size: .9rem; color: var(--gris); margin-top: 8px; }
.chantier-fiche { display: grid; gap: 40px; }
@media (min-width: 960px) { .chantier-fiche { grid-template-columns: 1.4fr 1fr; } }
.fiche-infos { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 26px; align-self: start; display: grid; gap: 14px; }
.fiche-infos dl { margin: 0; display: grid; gap: 12px; }
.fiche-infos dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.fiche-infos dd { margin: 2px 0 0; font-weight: 500; }

/* ----- Avis ----- */
.avis { background: var(--ivoire-fonce); }
.avis-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.avis-card { margin: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; align-content: start; }
.stars { color: var(--sable); letter-spacing: .15em; }
.avis-card blockquote { margin: 0; font-family: var(--f-titre); font-size: 1.1rem; line-height: 1.55; }
.avis-card figcaption { font-size: .92rem; color: var(--gris); }
.avis-card figcaption strong { color: var(--encre); }
.avis-source { display: block; font-size: .8rem; margin-top: 2px; }

/* ----- Zones ----- */
.zones-band { background: var(--marine); color: var(--ivoire); }
.zones-band .section-title { color: var(--ivoire); }
.zones-band .section-intro { color: rgba(247, 245, 230, .78); }
.zones-band .text-link { color: var(--ivoire); }
.zones-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zones-list li { border: 1px solid rgba(247, 245, 230, .25); padding: 8px 16px; border-radius: 99px; font-size: .95rem; }
.zones-list li.is-base { background: var(--ivoire); color: var(--marine); border-color: var(--ivoire); font-weight: 600; }
.zones-page .zones-list li { border-color: var(--ligne); }
.zones-page .zones-list li.is-base { background: var(--marine); color: var(--ivoire); border-color: var(--marine); }

/* ----- FAQ ----- */
.faq-list { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--f-titre); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--marine); border-bottom: 2px solid var(--marine); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--gris); max-width: 68ch; }
.faq .section-title { margin-bottom: 28px; }

/* ----- Bandeau d'appel ----- */
.cta-band { background: var(--marine); color: var(--ivoire); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; padding-block: clamp(48px, 7vw, 80px); }
.cta-inner h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 500; }
.cta-inner p { color: rgba(247, 245, 230, .78); margin-top: 10px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- Formulaire ----- */
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.devis-form { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 30px 60px -48px rgba(15, 35, 53, .6); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .93rem; }
.opt { font-weight: 400; color: var(--gris); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--ivoire); border: 1px solid var(--ligne); border-radius: var(--r);
  padding: .85em .95em; width: 100%;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--marine); background: var(--blanc); outline: none; box-shadow: 0 0 0 3px rgba(24, 50, 75, .12); }
.field textarea { resize: vertical; min-height: 120px; }
.field.check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.field.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--marine); }
.field.check label { font-weight: 400; font-size: .92rem; color: var(--gris); }
.form-note { text-align: center; font-size: .95rem; color: var(--gris); }
.form-note a { font-weight: 600; white-space: nowrap; }
.form-alert { background: #FBEDEA; border: 1px solid #E4B4AB; color: var(--erreur); padding: 14px 18px; border-radius: var(--r); font-size: .95rem; }
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.coordonnees { display: grid; gap: 28px; }
.coordonnees dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.coordonnees dd { margin: 6px 0 0; font-size: 1.1rem; }
.coordonnees .big { font: inherit; font-weight: 600; text-decoration: none; color: var(--marine); font-variant-numeric: tabular-nums; }
.coordonnees dd a { color: var(--marine); font-weight: 600; }
.coordonnees dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.copy-btn { font: 600 .8rem var(--f-texte); color: var(--gris); background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 6px 12px; cursor: pointer; min-height: 32px; }
.copy-btn:hover { border-color: var(--marine); color: var(--marine); }
.apres-envoi { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: suite; }
.apres-envoi li { counter-increment: suite; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--gris); }
.apres-envoi li::before { content: counter(suite); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--marine); color: var(--marine); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }

/* ----- Pages intérieures ----- */
.page-hero { background: var(--marine); color: var(--ivoire); padding-block: clamp(44px, 7vw, 90px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(196, 162, 102, .25); border-radius: 50%; pointer-events: none; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 500; margin-top: 18px; max-width: 20ch; letter-spacing: -.015em; }
.page-hero .lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(247, 245, 230, .8); max-width: 60ch; }
.page-hero .hero-actions { margin-top: 30px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: rgba(247, 245, 230, .65); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ivoire); }

.page-body { display: grid; gap: 56px; }
@media (min-width: 1000px) { .page-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }
.prose { max-width: 70ch; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--sable); }
.prose blockquote { margin-left: 0; border-left: 2px solid var(--sable); padding-left: 20px; font-family: var(--f-titre); font-style: italic; font-size: 1.15rem; color: var(--marine); }
.prose img { border-radius: var(--r); }
.prose .lede { font-size: 1.2rem; color: var(--encre); }
.prose strong { color: var(--marine); }
.encart { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 22px 24px; }
.encart h3 { font-family: var(--f-texte); font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.encart p { color: var(--gris); }

.aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1000px) { .aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--marine); color: var(--ivoire); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; }
.aside-card h2 { font-size: 1.5rem; font-weight: 500; }
.aside-card p { color: rgba(247, 245, 230, .78); font-size: .97rem; }
.aside-card .btn { width: 100%; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; }
.aside-list svg { width: 18px; height: 18px; color: var(--sable); margin-top: 4px; }

.points-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 1.6em; }
.point { border-top: 2px solid var(--marine); padding-top: 16px; }
.point h3 { font-size: 1.15rem; margin: 0 0 6px; }
.point p { color: var(--gris); font-size: .97rem; }

.autres { background: var(--ivoire-fonce); padding-block: clamp(48px, 7vw, 80px); }
.autres .section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 26px; }
.autres-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.autre-card { display: grid; grid-template-columns: 1fr 24px; gap: 4px 12px; align-items: center; padding: 22px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); text-decoration: none; color: var(--encre); transition: border-color .2s; }
.autre-card strong { font-family: var(--f-titre); font-size: 1.2rem; }
.autre-card span { grid-column: 1; color: var(--gris); font-size: .93rem; }
.autre-card svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--marine); transition: transform .2s var(--ease); }
.autre-card:hover { border-color: var(--marine); }
.autre-card:hover svg { transform: translateX(4px); }

/* ----- Blog ----- */
.blog-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.post-card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--encre); background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 28px; transition: border-color .2s, transform .25s var(--ease); }
.post-card:hover { border-color: var(--marine); transform: translateY(-2px); }
.post-meta { font-size: .85rem; color: var(--gris); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.post-card h2, .post-card h3 { font-size: 1.45rem; }
.post-card p { color: var(--gris); }
.article-head { max-width: 760px; }
.article-head .post-meta { color: rgba(247, 245, 230, .7); margin-top: 18px; }

/* ----- Pied de page ----- */
.site-footer { background: var(--marine-fonce); color: rgba(247, 245, 230, .72); font-size: .95rem; }
.footer-top { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 820px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 380px; }
.brand-footer { color: var(--ivoire); }
.brand-footer img { height: 44px; }
.footer-phone { color: var(--ivoire); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-mail { color: rgba(247, 245, 230, .8); }
.footer-address { font-style: normal; line-height: 1.5; }
.footer-horaires { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .9rem; line-height: 1.6; color: rgba(247, 245, 230, .8); }
.footer-horaires span { color: var(--ivoire); font-weight: 600; }
.footer-reseaux { margin: .6rem 0 0; font-size: .9rem; }
.footer-reseaux a { color: var(--ivoire); }
.horaires-liste { list-style: none; margin: 0; padding: 0; width: 100%; }
.horaires-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.horaires-liste li span:first-child { font-weight: 600; }
.footer-title { font-family: var(--f-texte); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sable); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(247, 245, 230, .82); text-decoration: none; }
.footer-links a:hover { color: var(--ivoire); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(247, 245, 230, .12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 22px; font-size: .86rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: inherit; }

/* ----- Barre d'appel mobile ----- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
  background: var(--ivoire);
  border-top: 1px solid var(--ligne);
  box-shadow: 0 -10px 30px -20px rgba(15, 35, 53, .5);
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
}
.callbar .btn { padding: .95em .8em; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ----- Bouton WhatsApp flottant (toutes les pages) ----- */
.whatsapp {
  position: fixed; z-index: 65;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 16px; justify-content: center;
  background: #25D366; color: #fff; border-radius: 999px;
  text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 28px -10px rgba(15, 35, 53, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp svg { width: 28px; height: 28px; flex: none; }
.whatsapp:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px -10px rgba(15, 35, 53, .6); }
.whatsapp-label { display: none; }
@media (min-width: 900px) {
  .whatsapp { bottom: 24px; right: 24px; padding: 0 22px 0 18px; }
  .whatsapp-label { display: inline; }
}

/* ----- Bandeau cookies ----- */
.cookie-banner { position: fixed; z-index: 75; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin-left: auto; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 20px; box-shadow: 0 20px 50px -20px rgba(15, 35, 53, .45); display: grid; gap: 14px; font-size: .93rem; }
@media (min-width: 900px) { .cookie-banner { bottom: 20px; right: 20px; } }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { padding: .75em 1.2em; }

/* ----- 404 / merci ----- */
.message-page { padding-block: clamp(80px, 12vw, 160px); text-align: left; }
.message-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
.message-page p { margin-top: 18px; color: var(--gris); font-size: 1.12rem; max-width: 56ch; }
.message-page .hero-actions { margin-top: 30px; }

/* ----- Animations discrètes ----- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .hero-copy > * { animation: monte .8s var(--ease) both; }
.hero .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero .coupe rect { animation: couche .9s var(--ease) both; transform-box: fill-box; transform-origin: left; }
.hero .coupe rect:nth-of-type(2) { animation-delay: .35s; }
.hero .coupe rect:nth-of-type(3) { animation-delay: .5s; }
.hero .coupe rect:nth-of-type(4) { animation-delay: .65s; }
.hero .coupe rect:nth-of-type(5) { animation-delay: .8s; }
.hero .coupe pattern rect, .hero .coupe .c-cheville rect { animation: none; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes couche { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .callbar, .cookie-banner, .cta-band, .site-footer { display: none; }
  body { background: #fff; padding: 0; }
}
@media (max-width: 959px) { .hero .coupe { max-width: 480px; } }
@media (min-width: 900px) { .footer-bottom { padding-bottom: 96px; } }

.chantier-voir { display: inline-flex; align-items: center; gap: .45em; margin-top: 10px; font-weight: 600; font-size: .95rem; color: var(--marine); }
.chantier-voir svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.chantier-link:hover .chantier-voir svg { transform: translateX(4px); }
.compare-aide { margin: 0 0 10px; font-size: .92rem; font-weight: 600; color: var(--marine); display: flex; align-items: center; gap: 8px; }
.compare-aide::before { content: "⟷"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--marine); color: var(--ivoire); font-size: .8rem; }
.compare .compare-ligne::after { animation: invite 2.4s var(--ease) 1s 2; }
@keyframes invite { 0%,100% { transform: translate(-50%, -50%); } 30% { transform: translate(-90%, -50%); } 60% { transform: translate(-10%, -50%); } }

/* Avis : bandeau qui défile doucement, pause au survol */
.avis-defile { overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.avis-piste { display: flex; align-items: flex-start; gap: 20px; width: max-content; will-change: transform; backface-visibility: hidden; animation: defile var(--duree, 40s) linear infinite; }
.avis-defile:hover .avis-piste, .avis-defile:focus-within .avis-piste { animation-play-state: paused; }
.avis-piste .avis-card { width: min(340px, 82vw); flex: none; }
.avis-actions { margin-top: 28px; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .avis-defile { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .avis-piste { animation: none; padding-inline: 20px; }
  .avis-piste [aria-hidden="true"] { display: none; }
}

.avis-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--gris); }
.avis-note strong { color: var(--encre); }
.avis-piste blockquote { font-size: 1rem; }

/* Téléphone et tablette : effets coûteux retirés pour un défilement fluide */
@media (max-width: 899px) {
  .coupe { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 35, 53, .9); }
  .avis-defile { -webkit-mask-image: none; mask-image: none; }
}
