/* =====================================================================
   ECO HABITAT CONSTRUCTION — feuille de style du site vitrine
   Base : maquette VC4 (teal #1B6E86, Figtree / Outfit), rendue responsive.
   ===================================================================== */

:root {
  --teal: #1B6E86;
  --teal-dark: #14556A;
  --teal-deeper: #124E60;
  --ink: #16262B;
  --ink-70: rgba(22, 38, 43, .7);
  --ink-66: rgba(22, 38, 43, .66);
  --ink-55: rgba(22, 38, 43, .55);
  --ink-50: rgba(22, 38, 43, .5);
  --ink-10: rgba(22, 38, 43, .1);
  --ink-08: rgba(22, 38, 43, .08);
  --light: #EDF5F8;
  --light-2: #E5F1F5;
  --light-3: #DAEAF0;
  --mint: #C9EADB;
  --green: #3E8F70;
  --cream: #F6F2EA;
  --white: #fff;
  --radius: 24px;
  --radius-s: 16px;
  --shadow: 0 24px 60px rgba(27, 110, 134, .14);
  --shadow-s: 0 6px 20px rgba(27, 110, 134, .08);
  --max: 1280px;
  --pad: clamp(20px, 5vw, 60px);
  --font: 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', 'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.875rem); text-wrap: balance; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linklike:hover { color: var(--mint); }
.muted { color: var(--ink-55); }
.small { font-size: .82rem; }
.hidden, [hidden] { display: none !important; }
.check { color: var(--green); font-weight: 800; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-10); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 18px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }
.cta-band .btn, .page-hero .actions .btn { white-space: normal; text-align: center; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97); /* pas de backdrop-filter : il ferait de l'en-tête le bloc conteneur du tiroir mobile en position fixed */
  border-bottom: 1px solid var(--ink-08);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.brand-sub { font-size: 10.5px; letter-spacing: .22em; color: var(--teal); margin-top: 4px; font-weight: 600; }
.brand-light { margin-bottom: 18px; }
.brand-light img { width: 52px; }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-name { font-size: 15px; }
.brand-light .brand-sub { font-size: 10px; color: var(--mint); }
.nav { display: flex; align-items: center; justify-content: center; gap: 32px; flex: 1; font-size: .95rem; font-weight: 500; color: rgba(22, 38, 43, .8); }
.nav > a, .nav-item > a { padding: 8px 0; transition: color .25s; position: relative; }
.nav > a:hover, .nav-item > a:hover, .nav a.is-active { color: var(--teal); }
.nav-item { position: relative; }
.nav-item > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.sub {
  position: absolute; left: -16px; top: 100%; min-width: 260px;
  background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow);
  border: 1px solid var(--ink-08); display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.sub a { padding: 10px 14px; border-radius: 9px; font-weight: 500; }
.sub a:hover { background: var(--light); color: var(--teal); }
.nav-item:hover .sub, .nav-item:focus-within .sub, .nav-item.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.header-cta { display: flex; align-items: center; gap: 22px; }
.header-cta .phone, .nav-cta .phone { font-weight: 700; color: var(--teal); }
a[href^="tel:"] { white-space: nowrap; }
.nav-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

@media (max-width: 1180px) {
  .nav { gap: 20px; font-size: .9rem; }
  .header-cta .phone { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; order: 3; }
  .nav {
    position: fixed; inset: 73px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px var(--pad) 40px; gap: 4px; font-size: 1.05rem; overflow: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility 0s .3s; z-index: 99;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s, visibility 0s; }
  .nav > a, .nav-item > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ink-08); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { padding: 10px 16px; font-size: .85rem; }
  .nav-cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 20px 0 0; }
  .nav-cta .phone { display: block; text-align: center; font-size: 1.1rem; }
  html.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 480px) {
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 9px; }
  .header-cta .btn { padding: 9px 13px; font-size: .8rem; }
}
@media (max-width: 340px) {
  .header-cta { display: none; }
}

/* ---------- Sections génériques ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-light { background: var(--light); }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal); color: #fff; }
.section-ink { background: var(--ink); color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow { display: block; margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.section-teal .eyebrow, .section-ink .eyebrow { color: var(--mint); }
.section-head h2 { margin-bottom: 16px; }
.section-head p:not(.eyebrow) { font-size: 1.06rem; line-height: 1.6; color: var(--ink-66); text-wrap: pretty; }
.section-teal .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .75); }
.lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-70); text-wrap: pretty; }
.prose { max-width: 800px; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.prose p, .prose li { color: rgba(22, 38, 43, .8); line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-10); vertical-align: top; }
.prose th { background: var(--light); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* ---------- Hero accueil ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--light) 0%, #fff 100%); padding: clamp(48px, 7vw, 80px) 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: -320px; width: 900px; height: 600px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(191, 235, 216, .45), rgba(191, 235, 216, 0) 70%); animation: ehDrift 24s ease-in-out infinite alternate; pointer-events: none; }
.hero-in { position: relative; max-width: 920px; margin: 0 auto; }
.badge-live { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ink-08); padding: 9px 16px 9px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--teal); box-shadow: var(--shadow-s); margin-bottom: 26px; }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ehPulse 2.4s ease-in-out infinite; }
.hero h1 { margin-bottom: 22px; }
.hero h1 span { color: var(--teal); }
.hero .lead { max-width: 700px; margin: 0 auto 38px; font-size: clamp(1.05rem, 1.6vw, 1.19rem); }
.quick-form { display: flex; gap: 10px; align-items: stretch; background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow); border: 1px solid rgba(22, 38, 43, .06); text-align: left; }
.quick-form label { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 8px 14px; border-right: 1px solid var(--ink-10); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-50); min-width: 0; }
.quick-form label:nth-child(1) { flex: 1.2; }
.quick-form label:nth-child(2) { flex: .8; }
.quick-form label:last-of-type { border-right: 0; }
.quick-form input, .quick-form select { border: 0; background: none; font-size: .95rem; font-weight: 600; color: var(--ink); outline: none; padding: 0; width: 100%; text-transform: none; letter-spacing: 0; }
.quick-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.quick-form input:focus, .quick-form select:focus { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.quick-form .btn { flex: none; }
.hero-note { margin-top: 16px; font-size: .82rem; color: var(--ink-55); }
.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin: 40px 0 0; font-size: .9rem; font-weight: 600; color: rgba(22, 38, 43, .75); }
.hero-checks span { display: inline-flex; align-items: center; gap: 9px; }
.hero-checks i { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: .75rem; font-weight: 800; font-style: normal; }
.hero-visual { position: relative; height: clamp(240px, 36vw, 440px); margin: clamp(36px, 5vw, 56px) auto 0; max-width: 1160px; border-radius: 28px 28px 0 0; overflow: hidden; background: repeating-linear-gradient(135deg, var(--light-3) 0 14px, var(--light-2) 14px 28px); }
.hero-visual picture, .hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 20px 50px rgba(27, 110, 134, .16); text-align: left; animation: ehFloat 7s ease-in-out infinite; }
.float-card.tl { left: 40px; top: 40px; }
.float-card.br { right: 40px; bottom: 40px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px rgba(22, 38, 43, .25); animation: ehFloat 9s ease-in-out infinite reverse; }
.float-card small { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); }
.float-card.br small { color: rgba(255, 255, 255, .55); }
.float-card strong { font-family: var(--font-title); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--teal); }
.float-card.br strong { color: #fff; }
.float-card.br .from { color: rgba(255, 255, 255, .5); }
.float-card.br .to { color: var(--mint); }

@media (max-width: 900px) {
  .quick-form { flex-wrap: wrap; }
  .quick-form label { flex: 1 1 45% !important; border-right: 0; border-bottom: 1px solid var(--ink-10); padding: 10px 8px; }
  .quick-form .btn { flex: 1 1 100%; margin-top: 4px; }
  .float-card { padding: 12px 14px; }
  .float-card.tl { left: 16px; top: 16px; }
  .float-card.br { right: 16px; bottom: 16px; }
  .float-card strong { font-size: 1.4rem; }
}
@media (max-width: 560px) {
  .quick-form label { flex: 1 1 100% !important; }
  .hero-visual { border-radius: 18px 18px 0 0; }
  .float-card.br { display: none; }
}

/* ---------- Grille expertises ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--light); border-radius: var(--radius); padding: 34px 32px; display: flex; flex-direction: column; gap: 16px; transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(27, 110, 134, .12); }
.card-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); display: grid; place-items: center; }
.card-icon i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.card-icon i.sq { border-radius: 4px; }
.card-icon i.dia { width: 16px; height: 16px; border-radius: 0; transform: rotate(45deg); background: var(--mint); }
.card h3 { margin-top: 10px; font-size: 1.55rem; line-height: 1.15; }
.card p { font-size: .95rem; line-height: 1.55; color: rgba(22, 38, 43, .68); text-wrap: pretty; }
.card ul { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .9rem; font-weight: 600; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--teal); transition: color .25s; }
.card .more:hover { color: var(--teal-dark); }
.card.dark { background: var(--teal); color: #fff; }
.card.dark .card-icon { background: rgba(255, 255, 255, .14); }
.card.dark p { color: rgba(255, 255, 255, .78); }
.card.dark .check { color: var(--mint); }
.card.dark .more { color: var(--mint); }
.card.dark .more:hover { color: #fff; }
.card.dark:hover { box-shadow: 0 24px 50px rgba(27, 110, 134, .3); }
.card-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; margin: -8px 0 4px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-3 > :nth-child(3):last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } .card { padding: 28px 24px; } }

/* ---------- Aides ---------- */
.aides-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.aide-list { display: flex; flex-direction: column; gap: 12px; }
.aide { display: grid; grid-template-columns: 190px 1fr auto; gap: 22px; align-items: center; background: #fff; border-radius: 18px; padding: 22px 26px; }
.aide h3 { font-size: 1.3rem; }
.aide p { font-size: .92rem; line-height: 1.5; color: rgba(22, 38, 43, .65); }
.pill { background: var(--light); color: var(--teal); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.footnote { margin-top: 16px; font-size: .8rem; color: var(--ink-50); }
.finance-box { background: var(--teal); color: #fff; border-radius: 28px; padding: 36px 38px; box-shadow: 0 30px 70px rgba(27, 110, 134, .25); position: sticky; top: 100px; }
.finance-box .eyebrow { color: var(--mint); font-size: .72rem; margin-bottom: 8px; }
.finance-box h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 24px; }
.finance-rows { font-size: .98rem; }
.finance-rows div { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.finance-rows div.minus { color: var(--mint); }
.finance-rows div.total { align-items: baseline; padding: 18px 0 0; border-top: 2px solid rgba(255, 255, 255, .5); font-weight: 700; }
.finance-rows .total strong { font-family: var(--font-title); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.bar { margin: 18px 0 10px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--mint); }
.finance-box .note { margin-bottom: 26px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 960px) { .aides-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .finance-box { position: static; } }
@media (max-width: 640px) { .aide { grid-template-columns: 1fr; gap: 8px; } .pill { justify-self: start; } .finance-box { padding: 28px 22px; } }

/* ---------- Financement ---------- */
.finance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.finance-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fin { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 28px 26px; }
.fin .big { font-family: var(--font-title); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--mint); margin-bottom: 14px; }
.fin .big small { font-size: 1.4rem; }
.fin h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fin p { font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .7); }
@media (max-width: 960px) { .finance-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 640px) { .finance-cards { grid-template-columns: 1fr; } }

/* ---------- Étapes ---------- */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 26px; height: 2px; background: rgba(27, 110, 134, .15); }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; text-align: center; position: relative; }
.step .num { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-weight: 600; font-size: 1.3rem; box-shadow: 0 0 0 8px #fff; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .92rem; line-height: 1.55; color: var(--ink-66); }
@media (max-width: 900px) { .steps::before { display: none; } .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.stat .big { font-family: var(--font-title); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--teal); }
.stat p:last-child { margin-top: 6px; font-size: .95rem; color: var(--ink-66); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Avant / après ---------- */
.ba-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.ba-head .hint { font-size: .9rem; color: var(--ink-55); }
.ba { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 8.5; background: var(--light-3); user-select: none; }
.ba img, .ba picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 55%); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 55%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.ba .handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 1.1rem; color: var(--teal); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.ba .tag { position: absolute; bottom: 18px; background: rgba(22, 38, 43, .8); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px); pointer-events: none; }
.ba .tag.l { left: 18px; }
.ba .tag.r { right: 18px; background: rgba(27, 110, 134, .9); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; -webkit-appearance: none; }
.ba input[type=range]:focus-visible + .handle { outline: 3px solid var(--teal); }
.ba-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.ba-item { display: flex; gap: 16px; align-items: center; background: var(--light); border-radius: 18px; padding: 16px 18px; }
.ba-item .thumb { width: 84px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: var(--light-3); }
.ba-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ba-item strong { display: block; font-size: 1rem; }
.ba-item span { font-size: .86rem; color: var(--ink-66); }
@media (max-width: 900px) { .ba-list { grid-template-columns: 1fr; } .ba { border-radius: 18px; aspect-ratio: 4 / 3; } .ba-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Avis ---------- */
.avis-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 14px; }
.rating .big { font-family: var(--font-title); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--teal); }
.rating .stars { color: #F4B63F; letter-spacing: 2px; font-size: 1rem; }
.rating small { display: block; font-size: .82rem; color: var(--ink-55); }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avis { background: #fff; border: 1px solid var(--ink-08); border-radius: 22px; padding: 28px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.avis .stars { color: #F4B63F; letter-spacing: 2px; }
.avis blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(22, 38, 43, .85); flex: 1; }
.avis figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; font-size: .88rem; }
.avis figcaption .city { color: var(--ink-55); }
.avis figcaption .type { background: var(--light); color: var(--teal); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .75rem; white-space: nowrap; }
@media (max-width: 900px) { .avis-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--ink-08); border-radius: 16px; overflow: hidden; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-item button span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--light); color: var(--teal); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s; }
.faq-item[open] button span, .faq-item.is-open button span { transform: rotate(45deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 22px 20px; font-size: .96rem; line-height: 1.6; color: rgba(22, 38, 43, .75); }
.faq-panel a { color: var(--teal); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-points { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; font-size: .98rem; }
.contact-points div { display: flex; gap: 12px; align-items: flex-start; }
.contact-points .check { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: .75rem; flex: none; }
.rgpd-note { background: var(--light); border-radius: 16px; padding: 18px 20px; font-size: .86rem; line-height: 1.55; color: rgba(22, 38, 43, .75); }
.rgpd-note strong { color: var(--ink); }
.form-card { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid rgba(22, 38, 43, .06); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--ink-70); }
.field input, .field select, .field textarea { border: 1.5px solid var(--ink-10); border-radius: 12px; padding: 13px 14px; font-size: 1rem; font-weight: 500; color: var(--ink); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(27, 110, 134, .12); }
.field textarea { resize: vertical; min-height: 96px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C0392B; }
.field .error { display: none; color: #C0392B; font-weight: 600; font-size: .78rem; }
.field.is-invalid .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; font-weight: 500; line-height: 1.5; color: rgba(22, 38, 43, .8); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.consent a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid { color: #C0392B; }
.form-foot { font-size: .8rem; color: var(--ink-55); text-align: center; }
.form-alert { display: none; background: #FDECEA; color: #8F2418; border-radius: 12px; padding: 14px 16px; font-size: .92rem; }
.form-alert.is-visible { display: block; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 1.6rem; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--ink-66); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Pages expertises ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, var(--light) 0%, #fff 100%); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 18px; }
.page-hero .lead { margin-bottom: 26px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.page-hero .visual { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.page-hero .visual img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.simple .wrap { display: block; max-width: 820px; }
.breadcrumb { font-size: .82rem; color: var(--ink-55); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 8px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.two-col .visual { border-radius: 24px; overflow: hidden; }
.two-col .visual img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.checklist .check { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: .75rem; flex: none; margin-top: 2px; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.benefit { background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--ink-08); }
.benefit .big { font-family: var(--font-title); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--teal); margin-bottom: 10px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 6px; }
.benefit p { font-size: .92rem; color: var(--ink-66); line-height: 1.55; }
.cta-band { background: var(--teal); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .78); }
@media (max-width: 900px) { .page-hero .wrap, .two-col { grid-template-columns: minmax(0, 1fr); } .benefits { grid-template-columns: minmax(0, 1fr); } .page-hero .visual { aspect-ratio: 16 / 10; } }

/* ---------- Galerie réalisations ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.realisation { background: #fff; border: 1px solid var(--ink-08); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.realisation .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-3); }
.realisation .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.realisation:hover .thumb img { transform: scale(1.04); }
.realisation .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.realisation .body h3 { font-size: 1.15rem; }
.realisation .body p { font-size: .9rem; color: var(--ink-66); }
.realisation .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--light); color: var(--teal); padding: 5px 10px; border-radius: 999px; }
.chip.classe { background: var(--mint); color: var(--green); }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- En bref (fiche entreprise) ---------- */
.enbref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.enbref dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: .95rem; }
.enbref dt { font-weight: 700; color: var(--teal); }
.enbref dd { margin: 0; color: rgba(22, 38, 43, .8); }
.enbref .lead { margin-top: 16px; }
@media (max-width: 900px) { .enbref { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 480px) { .enbref dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .enbref dd { margin-bottom: 8px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: clamp(48px, 6vw, 72px) 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { line-height: 1.6; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.footer-grid a { transition: color .25s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover, .footer-bottom button:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; padding: 16px; }
.cookie-in { max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(22, 38, 43, .25); border: 1px solid var(--ink-08); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.cookie-text p { font-size: .9rem; line-height: 1.5; color: rgba(22, 38, 43, .8); }
.cookie-text p + p { margin-top: 6px; }
.cookie-text a { color: var(--teal); text-decoration: underline; }
.cookie-prefs { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 14px 0 4px; border-top: 1px solid var(--ink-08); }
.switch { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--teal); }
.switch small { font-weight: 400; color: var(--ink-55); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { padding: 12px 20px; font-size: .9rem; }
@media (max-width: 600px) { .cookie-actions .btn { flex: 1 1 100%; } }

/* ---------- Page cookies : tableau de préférences ---------- */
.prefs-panel { background: var(--light); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.prefs-panel .status { font-size: .88rem; color: var(--ink-66); }

/* ---------- Animations ---------- */
@keyframes ehFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ehDrift { 0% { transform: translate(-50%, 0) scale(1); } 100% { transform: translate(calc(-50% + 70px), -50px) scale(1.18); } }
@keyframes ehPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
