/* ===== Expert Climatisation — styles principaux (mobile d'abord) =====
   Les adaptations tablette / ordinateur sont dans responsive.css */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

picture { display: contents; }

:root {
  --ink: #1E2126;
  --ink-2: #4A545C;
  --mute: #6C767B;
  --line: #e1e9e4;
  --soft: #f4f8f5;
  --glacier: #c5eed8;
  --glacier-2: #e6f7ee;
  --brand: #17835F;
  --brand-d: #0F6B4C;
  --accent: #8CC63F;
  --brand-2: #2DAE8F;
  --brand-3: #61CA6D;
  --mist: #A9C4B5;
  --gold: #f2b134;
  --pad: 20px;
  --head: 68px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
html { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: transform .25s, background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 12px 28px -14px rgba(30, 33, 38, .7); }
.btn-dark:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(23, 131, 95, .8); }
.btn-line { background: rgba(255, 255, 255, .7); border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .88rem; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1.02rem; }

/* ---------- En-tête fixe ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: calc(var(--head) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; gap: 18px;
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled, .topbar.solid, .topbar.open {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.foot-logo { height: 44px; width: auto; margin-bottom: 10px; }

.menu {
  position: absolute; top: calc(var(--head) + env(safe-area-inset-top)); left: 0; right: 0;
  display: none; flex-direction: column; padding: 8px var(--pad) 20px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); box-shadow: 0 20px 30px -20px rgba(30, 33, 38, .25);
}
.topbar.open .menu { display: flex; }
.menu a { padding: 14px 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.top-cta { display: none; }

.burger { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; display: grid; place-content: center; gap: 6px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.topbar.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.topbar.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero 3D ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: var(--hero-min, 100svh);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--head) + env(safe-area-inset-top) + 20px) var(--pad) 26px;
  background: linear-gradient(180deg, #eaf4ee 0%, #f5faf7 46%, #ffffff 100%);
}
.hero { --heat: .43; --on: 1; }
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow::before, .hero-glow::after { content: ""; position: absolute; inset: 0; transition: opacity 1s ease; }
/* Ambiance froide : halo glacier sous la bouche de soufflage */
.hero-glow::before {
  background:
    radial-gradient(ellipse 52% 38% at var(--vx, 50%) var(--vy, 38%), rgba(97, 202, 109, .36), transparent 72%),
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(255, 255, 255, .9), transparent 70%);
  opacity: calc(clamp(0, 1.35 - var(--heat) * 2.2, 1) * var(--on));
}
/* Ambiance chaude : le fond se réchauffe */
.hero-glow::after {
  background:
    radial-gradient(ellipse 56% 40% at var(--vx, 50%) var(--vy, 38%), rgba(255, 150, 100, .34), transparent 72%),
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(180deg, #fbe9de 0%, #fdf4ee 46%, #ffffff 100%);
  opacity: calc(clamp(0, (var(--heat) - .4) * 2.2, 1) * var(--on));
}
.hero[data-mode="off"] .hero-glow::before { opacity: 0; }
#scene { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y pinch-zoom; outline: none; }
.hero.no3d #scene { display: none; }

.hero-copy { grid-row: 1; position: relative; z-index: 3; text-align: center; }
.hero-foot { grid-row: 3; position: relative; z-index: 3; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; margin-bottom: 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(140, 198, 63, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(140, 198, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); } }

.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 10.6vw, 3.3rem); line-height: 1; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero .sub { display: none; color: var(--ink-2); font-size: 1.08rem; max-width: 34rem; margin-top: 20px; }

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta .btn { width: 100%; padding: 0 12px; font-size: .9rem; min-height: 48px; }
.cta .long { display: none; }
.cta .short { display: inline; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px; font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Services portés par l'air */
.svc-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.svc-layer li {
  position: absolute; left: 0; top: 0; opacity: 0;
  transform: translate(calc(var(--ox, 50vw) - 50%), calc(var(--oy, 30vh) - 50%)) scale(.25);
  transition: transform 1.15s cubic-bezier(.2, 1.12, .3, 1) var(--d, 0s), opacity .5s ease var(--d, 0s);
}
.is-live .svc-layer li { opacity: 1; transform: translate(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%)) scale(1); }
html:not(.js) .svc-layer { display: none; }

.svc {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px 6px 6px; border-radius: 999px; border: 1px solid rgba(176, 220, 196, .9);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 32px -14px rgba(15, 80, 58, .5), 0 2px 6px rgba(15, 80, 58, .06);
  font-weight: 600; font-size: .86rem; letter-spacing: .005em; white-space: nowrap; color: var(--ink);
  animation: bob 5.2s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
  transition: box-shadow .25s, border-color .25s, background .25s;
}
@keyframes bob { to { transform: translateY(-8px); } }
.svc:hover, .svc:focus-visible { background: #fff; border-color: var(--brand); box-shadow: 0 18px 38px -14px rgba(23, 131, 95, .6); }
.svc-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--glacier), var(--glacier-2)); }
.svc-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--brand-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fenêtre de détail ---------- */
.panel {
  margin: auto; border: 0; padding: 20px 20px 18px; width: min(350px, calc(100vw - 40px)); max-height: 80svh; overflow: auto;
  border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 70px -28px rgba(30, 33, 38, .55), 0 0 0 1px rgba(30, 33, 38, .06);
}
.panel::backdrop { background: rgba(30, 33, 38, .22); }
.panel[open] { animation: pop .32s cubic-bezier(.2, 1.3, .3, 1); }
.panel[open]::backdrop { animation: fadein .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes fadein { from { opacity: 0; } }
.panel-head { display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.panel .ico { width: 44px; height: 44px; border-radius: 14px; }
.panel .ico svg { width: 22px; height: 22px; }
.panel h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.panel-head p { font-size: .84rem; color: var(--mute); margin-top: 2px; }
.panel ul { margin: 14px 0 16px; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.panel li { position: relative; padding: 4px 0 4px 22px; font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.panel li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 9px; height: 5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.panel-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.3rem; line-height: 1; }
.panel-x:hover { background: var(--glacier); }
.panel-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.panel-row .btn { padding: 0 10px; }

/* ---------- Bandeau de confiance ---------- */
.reassure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 30px var(--pad); }
.reassure ul { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.reassure li { display: flex; gap: 12px; align-items: flex-start; }
.reassure svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--glacier-2); fill: none; stroke: var(--brand-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reassure b { display: block; font-size: .92rem; line-height: 1.3; }
.reassure span { display: block; font-size: .78rem; color: var(--mute); line-height: 1.4; margin-top: 2px; }

/* ---------- Sections ---------- */
.block { padding: clamp(4.2rem, 9vw, 8rem) var(--pad); }
.block.soft { background: var(--soft); }
.wrap { max-width: 1180px; margin: 0 auto; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.eyebrow { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -.015em; max-width: 19ch; }
.lead { color: var(--ink-2); max-width: 58ch; margin-top: 20px; font-size: 1.04rem; }
.fine { font-size: .78rem; color: var(--mute); margin-top: 14px; line-height: 1.5; }
.fine a { color: var(--brand-d); }

.html-js .rv, html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
html.js .rv.in { opacity: 1; transform: none; }

/* Services */
.cards { display: grid; gap: 22px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s, border-color .35s; }
.card-main { overflow: hidden; box-shadow: 0 24px 50px -36px rgba(15, 80, 58, .5); }
.card-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 22px 22px; }
.ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, var(--glacier), var(--glacier-2)); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-d); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-main .ico { margin-top: -27px; border: 3px solid #fff; width: 60px; height: 60px; border-radius: 20px; box-shadow: 0 12px 24px -14px rgba(30, 33, 38, .5); }
.card-main:nth-child(1) .ico { background: var(--brand); }
.card-main:nth-child(1) .ico svg { stroke: #fff; }
.card-main:nth-child(3) .ico { background: var(--accent); }
.card-main:nth-child(3) .ico svg { stroke: var(--ink); }
.card h3 { font-size: 1.2rem; margin: 16px 0 6px; line-height: 1.3; }
.card-tag { color: var(--ink-2); font-size: .95rem; }
.card-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 14px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); font-weight: 600; font-size: .9rem; color: var(--ink); }
.card-toggle span { position: relative; width: 14px; height: 14px; }
.card-toggle span::before, .card-toggle span::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .3s; }
.card-toggle span::after { transform: rotate(90deg); }
.card-toggle[aria-expanded="true"] span::after { transform: rotate(0); }
.card ul { color: var(--ink-2); font-size: .93rem; }
.card-main ul { display: none; margin-top: 12px; }
.card-main.open ul { display: block; }
.card li { position: relative; padding: 5px 0 5px 20px; }
.card li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 2px; background: var(--brand); }
.card-main .more { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; background: var(--ink); color: #fff; }
.cards-also { margin-top: 34px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.cards-mini { display: grid; gap: 12px; margin-top: 14px; }
.card-mini { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px; border-radius: 22px; background: var(--soft); }
.card-mini h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card-mini p { color: var(--ink-2); font-size: .9rem; }
.card-mini .more { display: inline-block; margin-top: 8px; }
@media (min-width: 700px) {
  .card-toggle { display: none; }
  .card-main ul { display: block; flex: 1; }
  .card-main .more { background: none; color: var(--brand-d); justify-content: flex-start; min-height: 0; }
  .cards-mini { grid-template-columns: 1fr 1fr; }
}
@media (hover: hover) {
  .card-main:hover { transform: translateY(-6px); border-color: #d0e5d9; box-shadow: 0 28px 54px -28px rgba(15, 80, 58, .4); }
}
.more { margin-top: 22px; font-weight: 600; font-size: .9rem; color: var(--brand-d); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* L'artisan */
.split { display: grid; gap: 44px; }
.sign { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.2; }
.sign span { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--mute); margin-top: 6px; }
.values { display: grid; gap: 10px; align-content: start; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 56px; position: relative; font-size: .98rem; }
.values li::before { content: ''; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--glacier-2); }
.values li::after { content: ''; position: absolute; left: 26px; top: 50%; width: 8px; height: 5px; margin-top: -4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Avant / après */
.gallery { display: grid; gap: 20px; margin-top: 52px; }
.ba { position: relative; --p: 50%; }
.ba-view { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #dfece4; border: 1px solid var(--line); }
.ba-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-after { background-image: linear-gradient(135deg, #e9f7ef, #d7eee1); }
.ba-before { background-image: repeating-linear-gradient(45deg, #e2ebe6 0 14px, #eaf2ed 14px 28px); clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.ba-tag.t-b { left: 14px; } .ba-tag.t-a { right: 14px; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(30, 33, 38, .25); }
.ba-line::after { content: '↔'; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 8px 20px -6px rgba(30, 33, 38, .4); }
.ba input { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 3; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within .ba-view { outline: 3px solid var(--brand); outline-offset: 3px; }
.ba figcaption { margin-top: 12px; font-size: .84rem; color: var(--mute); }

/* Avis */
.reviews { display: grid; gap: 34px; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(26px, 5vw, 60px); box-shadow: 0 40px 80px -50px rgba(15, 80, 58, .45); }
.score-n { font-family: var(--serif); font-size: clamp(6rem, 18vw, 9rem); line-height: .85; }
.score-n small { font-size: .26em; color: var(--mute); }
.stars.big { font-size: 1.5rem; margin: 10px 0 4px; }
.score p { color: var(--ink-2); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.chips li { padding: 7px 15px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.reviews h2 { max-width: 20ch; }

/* Contact */
.contact { display: grid; gap: 40px; }
.big-tel { display: inline-block; margin-top: 28px; font-family: var(--serif); font-size: clamp(2.5rem, 9vw, 3.6rem); line-height: 1; text-decoration: none; }
.big-tel:hover { color: var(--brand); }
address { font-style: normal; color: var(--ink-2); margin-top: 18px; }
.zone { margin-top: 28px; }
.zone b { font-size: .86rem; }
.zone .chips { margin: 12px 0 0; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -50px rgba(15, 80, 58, .5); }
.form-title { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-bottom: 18px; }
.f-need { border: 0; padding: 0; margin: 0; min-width: 0; }
.f-need legend { padding: 0; margin-bottom: 10px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.need { position: relative; cursor: pointer; }
.need input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.need span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 16px; background: var(--soft); border: 1.5px solid transparent; font-size: .82rem; font-weight: 600; color: var(--ink-2); text-align: center; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.need svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.need input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.need input:checked + span svg { stroke: var(--accent); }
.need input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.need:active span { transform: scale(.97); }
.f-grid { display: grid; gap: 0 14px; }
.field { display: grid; gap: 8px; margin-top: 18px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .lab em { font-style: normal; font-weight: 400; color: var(--mute); }
.field input, .field textarea { background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; padding: 0 16px; min-height: 52px; outline: none; transition: border-color .2s, background .2s; width: 100%; font-size: 1rem; font-weight: 500; color: var(--ink); }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa79f; font-weight: 400; }
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.field input[aria-invalid="true"] { border-color: #b3261e; background: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-submit { width: 100%; margin-top: 22px; position: relative; }
.f-wait { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: fspin .8s linear infinite; }
.f-submit.is-sending .f-send { opacity: .6; }
.f-submit.is-sending .f-wait { display: inline-block; margin-left: 10px; }
@keyframes fspin { to { transform: rotate(360deg); } }
#devis .fine { margin-top: 12px; }
@media (min-width: 560px) { .f-grid { grid-template-columns: 1fr 1fr; } .need span { flex-direction: row; min-height: 56px; gap: 8px; } }
.form-err { margin-top: 14px; color: #b3261e; font-size: .88rem; font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #bdd1c5; padding: 54px var(--pad) 26px; font-size: .88rem; }
.footer-content { max-width: 1180px; margin: 0 auto; display: grid; gap: 30px; }
.site-footer h3 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--glacier); }
.legal-links li { padding: 4px 0; }
.footer-bottom { max-width: 1180px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; }

/* ---------- Pages légales ---------- */
.legal-page { padding: calc(var(--head) + 56px) var(--pad) 90px; }
.legal-page .container { max-width: 820px; margin: 0 auto; }
.legal-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.04; margin-bottom: 8px; }
.legal-page h2 { font-size: 1.35rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; max-width: none; margin: 44px 0 12px; line-height: 1.3; }
.legal-page h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.legal-page p, .legal-page li { color: var(--ink-2); margin-top: 10px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page a { color: var(--brand-d); }
.legal-page em { color: var(--mute); }
.todo { background: #fff3c4; color: #6b4e00; padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: .92em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc, .kicker .dot { animation: none; }
  .svc-layer li, html.js .rv { transition: none; }
  html.js .rv { opacity: 1; transform: none; }
  .panel[open], .panel[open]::backdrop { animation: none; }
}

/* ---------- Commandes de la clim : boutons 3D sur la façade, doublons accessibles masqués ---------- */
.climate { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Réalisations : séries de photos en carrousel ---------- */
.reals { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; }
.real-group { min-width: 0; }
.real-group { --h: 340px; }
.real-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.real-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.real-head p { color: var(--mute); font-size: .92rem; margin-top: 4px; }
.car-nav { display: flex; gap: 8px; flex: none; }
.car-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.15rem; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.car-nav button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.car-nav button:disabled { opacity: .35; cursor: default; }
.real-group.no-scroll .car-nav { display: none; }
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 16px; }
.slide { flex: none; scroll-snap-align: start; margin: 0; }
.slide .photo-btn { display: block; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--soft); cursor: zoom-in; box-shadow: 0 14px 34px -18px rgba(30, 33, 38, .45); }
.slide .photo-btn img { height: var(--h); width: auto; max-width: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.slide .photo-btn:hover img { transform: scale(1.04); }
.slide .photo-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.slide.ba { width: calc(var(--h) * 4 / 3); max-width: 86vw; }
.slide figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-2); padding-left: 4px; max-width: 46ch; }
.slide figcaption::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 3px; background: var(--accent); margin-right: 8px; vertical-align: middle; }
@media (min-width: 900px) { .real-group { --h: 420px; } }
.lightbox { border: 0; padding: 0; margin: auto; background: transparent; max-width: min(94vw, 960px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 33, 38, .86); }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border-radius: 16px; }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox .panel-x { top: -14px; right: -6px; background: #fff; z-index: 2; }

/* À propos (portrait) */
.about { display: grid; gap: 40px; align-items: start; }
.about-photo { position: relative; max-width: 420px; width: calc(100% - 28px); margin: 0 auto 44px; }
.about-ring { position: relative; aspect-ratio: 4 / 5; border-radius: 40px; padding: 7px; background: linear-gradient(160deg, var(--brand), var(--brand-2) 38%, var(--accent) 100%); box-shadow: 0 50px 80px -45px rgba(23, 131, 95, .6); }
.about-ring::before { content: ''; position: absolute; inset: -14px; border-radius: 52px; border: 1.5px dashed rgba(23, 131, 95, .28); }
.about-frame { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; border: 5px solid #fff; }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.about-dot { position: absolute; top: 7%; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(140, 198, 63, .18); }
.about-badge { position: absolute; left: 18px; bottom: -34px; width: max-content; max-width: calc(100% - 36px); display: grid; gap: 2px; padding: 12px 22px 12px 26px; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(30, 33, 38, .45); }
.about-badge b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--ink); }
.about-badge span { font-size: .84rem; color: var(--mute); }
.about-badge::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--accent); }
.about-quote { margin: 22px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 18px; }
.about-stats li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; text-align: center; }
.about-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--brand); line-height: 1.1; }
.about-stats span { display: block; margin-top: 4px; font-size: .78rem; color: var(--mute); line-height: 1.3; }
.about .values { grid-template-columns: 1fr; }
@media (min-width: 640px) { .about .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; } .about-photo { margin: 0 0 0 22px; max-width: none; width: calc(100% - 22px); } }
#lbCap:empty { display: none; }

/* Notification après envoi */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; width: min(420px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -18px rgba(30, 33, 38, .65); transform: translate(-50%, 0); opacity: 1; transition: transform .45s cubic-bezier(.2, 1.2, .3, 1), opacity .3s; }
.toast[hidden] { display: flex; visibility: hidden; opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: transform .3s, opacity .3s, visibility 0s .3s; }
.toast-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); }
.toast-ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.toast p { flex: 1; display: grid; gap: 2px; font-size: .88rem; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.toast p b { font-size: .98rem; color: #fff; }
.toast-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .toast, .toast[hidden] { transition: none; } }

.big-mail { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brand-d); word-break: break-all; }

/* ---------- Barre d'appel fixe (téléphone et tablette) ---------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(30, 33, 38, .55), 0 0 0 1px rgba(30, 33, 38, .06);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), opacity .25s, visibility 0s;
}
.callbar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.callbar-tel { flex: 1.4; background: var(--brand); color: #fff; }
.callbar-tel svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.callbar-num { display: none; font-weight: 500; }
.callbar-quote { flex: 1; background: var(--ink); color: #fff; }
.callbar a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Masquée tant que les boutons de l'accueil ou la section contact sont à l'écran, et pendant la notification */
.js .callbar:not(.show), .toast:not([hidden]) ~ .callbar {
  visibility: hidden; opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none;
  transition: transform .3s, opacity .25s, visibility 0s .3s;
}
@media (min-width: 420px) { .callbar-num { display: inline; } }
@media (min-width: 640px) { .callbar { left: 50%; right: auto; width: 480px; transform: translateX(-50%); } .js .callbar:not(.show), .toast:not([hidden]) ~ .callbar { transform: translate(-50%, calc(100% + 24px)); } }
@media (min-width: 1100px) { .callbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .callbar, .js .callbar:not(.show) { transition: none; } }
