/* Thème : Jet d'Eau Plomberie (démo) */
:root { --bg: #ffffff; --bg-alt: #f1f6fc; --ink: #0d2240; --muted: #56677d; --accent: #0a6cff; --accent-soft: #e4efff; --hot: #ff5a36; --hot-soft: #fff0eb; }

.brand .drop { width: 30px; height: 30px; }
.topbar { background: var(--ink); color: #fff; font-size: 13px; padding: 8px var(--gutter); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.topbar .status { background: rgba(255,255,255,.1); color: #fff; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.top .btn { background: var(--hot); }

/* Héro */
.hero { padding: clamp(50px, 8vw, 100px) var(--gutter) clamp(60px, 8vw, 100px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; overflow: hidden; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(44px, 7vw, 86px); font-weight: 900; margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--accent-soft); z-index: -1; border-radius: 4px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.55; margin-top: 20px; max-width: 46ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn.hot { background: var(--hot); box-shadow: 0 14px 30px -12px rgba(255,90,54,.8); }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.trust b { display: block; color: var(--ink); font-size: 16px; }
.trust .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; flex: none; }

.orb-wrap { position: relative; justify-self: center; width: min(100%, 440px); }
.orb { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(10,108,255,.35)); }
.wave { animation: wave 7s linear infinite; }
.wave.back { animation-duration: 11s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-400px); } }
.bubble { animation: bubble 5s ease-in infinite; opacity: 0; }
.bubble:nth-of-type(2) { animation-delay: 1.4s; }
.bubble:nth-of-type(3) { animation-delay: 2.6s; }
.bubble:nth-of-type(4) { animation-delay: 3.7s; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-170px); opacity: 0; } }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 20px 40px -18px rgba(13,34,64,.45); font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; animation: floaty 5s ease-in-out infinite; }
.float-card b { display: block; color: var(--ink); font-size: 15px; }
.float-card.a { left: -4%; top: 12%; }
.float-card.b { right: -2%; bottom: 10%; animation-delay: -2.5s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .float-card.a { left: 0; } .float-card.b { right: 0; } }

/* Diagnostic */
.diag { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .diag { grid-template-columns: 1fr; } }
.diag .choice button { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.diag .choice button span { font-size: 26px; }
.diag-result { min-height: 290px; position: relative; overflow: hidden; }
.diag-result .lvl { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: var(--hot-soft); color: var(--hot); }
.diag-result .lvl.mid { background: var(--accent-soft); color: var(--accent); }
.diag-result h3 { font-size: 26px; margin-top: 14px; }
.diag-result ol { margin: 14px 0 0 20px; color: var(--muted); line-height: 1.6; }
.diag-result .price { margin-top: 16px; font-weight: 800; font-size: 20px; }
.diag-result .price small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.diag-empty { color: var(--muted); display: grid; place-items: center; text-align: center; min-height: 240px; }
.diag-empty span { font-size: 48px; display: block; margin-bottom: 10px; }
.fade-in { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Services : panneaux extensibles */
.panels { display: flex; gap: 12px; height: 420px; }
.panel { position: relative; flex: 1; border-radius: 24px; overflow: hidden; cursor: pointer; transition: flex .6s var(--ease); color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; border: none; text-align: left; }
.panel.active { flex: 4; }
.panel .emoji { position: absolute; top: 18px; left: 20px; font-size: 40px; transition: transform .6s var(--ease); }
.panel.active .emoji { transform: scale(1.4) translate(10px, 10px); }
.panel h3 { font-size: 22px; white-space: nowrap; }
@media (min-width: 761px) {
  .panel:not(.active) h3 { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; font-size: 20px; }
}
.panel .more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.panel.active .more { max-height: 200px; opacity: 1; }
.panel .more p { color: rgba(255,255,255,.85); line-height: 1.5; margin-top: 8px; max-width: 40ch; }
.panel .more b { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 99px; font-size: 14px; }
.p1 { background: linear-gradient(160deg, #3b8cff, #0a3f99); }
.p2 { background: linear-gradient(160deg, #19b5a5, #0b5e57); }
.p3 { background: linear-gradient(160deg, #ff7a45, #b83211); }
.p4 { background: linear-gradient(160deg, #7a6cff, #33259b); }
@media (max-width: 760px) {
  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 84px; flex: none; }
  .panel.active { flex: none; }
  .panel h3 { padding-left: 56px; white-space: normal; }
  .panel .emoji { top: 20px; font-size: 32px; }
  .panel.active .emoji { transform: none; }
}

/* Avant / après */
.ba { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; --pos: 50%; box-shadow: 0 30px 60px -30px rgba(13,34,64,.45); user-select: none; }
@media (max-width: 600px) { .ba { aspect-ratio: 4 / 3; } }
.ba .layer { position: absolute; inset: 0; display: grid; place-items: center; }
.ba .before { background: repeating-linear-gradient(0deg, #b9b2a3 0 2px, transparent 2px 46px), repeating-linear-gradient(90deg, #b9b2a3 0 2px, transparent 2px 46px), #d8d0bf; filter: saturate(.5) brightness(.92); }
.ba .after { background: repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 2px, transparent 2px 30px), repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, transparent 2px 60px), linear-gradient(135deg, #1b4f8a, #3fa0d9 60%, #8fd3f4); clip-path: inset(0 0 0 var(--pos)); }
.ba .before { place-items: center start; padding-left: 10%; }
.ba .after { place-items: center end; padding-right: 10%; }
.ba .layer span { font-size: clamp(70px, 12vw, 140px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.ba .tag { position: absolute; top: 16px; padding: 7px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; }
.ba .before .tag { left: 16px; }
.ba .after .tag { right: 16px; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats strong { display: block; font-size: clamp(40px, 5.4vw, 62px); font-weight: 900; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; }

/* Process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process::before, .process::after { content: ""; position: absolute; top: 28px; left: 12%; height: 3px; border-radius: 3px; }
.process::before { right: 12%; background: var(--line); }
.process::after { width: 0; background: var(--accent); transition: width 1.6s var(--ease) .3s; }
.process.in::after { width: 76%; }
.process .st { text-align: center; position: relative; z-index: 1; }
.process .n { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 3px var(--accent); font-weight: 900; font-size: 20px; color: var(--accent); }
.process h3 { font-size: 19px; margin-top: 16px; }
.process p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 6px; }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; text-align: left; }
  .process::before, .process::after { display: none; }
  .process .st { display: grid; grid-template-columns: 58px 1fr; gap: 0 16px; text-align: left; }
  .process .n { grid-row: span 2; }
  .process h3 { margin-top: 6px; }
}

/* Zones : carte */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }
.map { width: 100%; max-width: 460px; justify-self: center; }
.map .ring { fill: none; stroke: var(--accent); stroke-dasharray: 4 6; opacity: .45; }
.map .ring-fill { fill: var(--accent); opacity: .05; }
.map .ring-label { font-size: 11px; fill: var(--muted); font-weight: 700; }
.map .town circle { fill: #fff; stroke: var(--accent); stroke-width: 3; transition: r .2s; }
.map .town text { font-size: 12px; font-weight: 700; fill: var(--ink); }
.map .town:hover circle, .map .town.hit circle { r: 9; fill: var(--accent); }
.map .center { fill: var(--hot); }
.map .center-pulse { fill: var(--hot); opacity: .3; transform-origin: 200px 200px; animation: cpulse 2s infinite; }
@keyframes cpulse { from { transform: scale(.5); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.checker { display: flex; gap: 10px; margin-top: 18px; }
.checker input { flex: 1; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); min-width: 0; }
.check-msg { margin-top: 14px; font-weight: 600; min-height: 24px; }
.check-msg.ok { color: #12884a; }
.check-msg.ko { color: var(--hot); }

/* Réservation */
.book { max-width: 720px; margin: 0 auto; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.days button { flex: none; width: 74px; border: none; border-radius: 14px; padding: 12px 6px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); text-align: center; }
.days button b { display: block; font-size: 22px; }
.days button small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.days button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--accent); background: var(--accent-soft); }
.moments { margin-top: 14px; }

.callbar .btn:first-child { background: var(--hot); }
