/* =========================================================
   H Systems — feuille de style
   Noir profond, typographie Inter, orange du logo par touches,
   photos traitées dans la même teinte, mouvements discrets.
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eeeeee;
  --muted: #9a9a9a;
  --dim: #636363;
  --orange: #e8780f;
  --orange-hi: #f39a4f;
  --orange-soft: rgba(232, 120, 15, 0.12);

  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--orange); color: #0a0a0a; }
:focus-visible { outline: 1.5px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -0.04em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; letter-spacing: -0.022em; }
p { margin: 0; }
.dim { color: var(--dim); }
.accent { color: var(--orange); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.62; color: var(--muted); max-width: 56ch; letter-spacing: -0.01em; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

section { position: relative; padding-block: clamp(80px, 10vw, 140px); }
section.tight { padding-top: 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5.5vw, 68px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px 60px; }
.section-head.center { text-align: center; justify-items: center; margin-inline: auto; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 22px; align-content: start; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: .94rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: #140800; }
.btn-primary:hover { background: var(--orange-hi); }
.btn-light { background: var(--text); color: #0a0a0a; }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.45); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 500; color: var(--text); }
.more svg { width: 14px; height: 14px; transition: transform .45s var(--ease); }
a:hover > .more svg, .more:hover svg { transform: translateX(4px); }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Apparition discrète ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.page-fade { animation: page-in .6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.is-leaving body { opacity: 0; transition: opacity .25s ease; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 80; transition: transform .6s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(10,10,10,.78); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.topbar { border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); overflow: hidden; max-height: 40px; transition: max-height .5s var(--ease), opacity .4s; }
.header.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; align-items: center; height: 39px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 13px; height: 13px; color: var(--orange); }
.topbar .right { display: flex; gap: 24px; }
.topbar a:hover { color: var(--text); }
@media (max-width: 920px) { .topbar { display: none; } }

.header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--text); flex: none; }
.brand svg { height: 21px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn), .dd > button { position: relative; padding: 10px 15px; font-size: .92rem; color: #c2c2c2; border-radius: 999px; transition: color .25s; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:not(.btn):hover, .dd > button:hover, .dd:focus-within > button { color: var(--text); }
.nav > a[aria-current="page"], .dd.is-current > button { color: var(--text); }
.nav > a[aria-current="page"]::after, .dd.is-current > button::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.nav .btn { margin-left: 14px; min-height: 42px; padding: 0 20px; font-size: .88rem; }
.dd { position: relative; }
.dd > button svg { width: 10px; height: 10px; transition: transform .4s var(--ease); }
.dd:hover > button svg, .dd:focus-within > button svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 50%; width: 380px; padding: 8px; border-radius: 18px; background: rgba(20,20,20,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-2); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.dd-menu::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dd-menu a { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; transition: background .25s; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: rgba(255,255,255,.05); }
.dd-menu img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; filter: grayscale(.3) brightness(.85); }
.dd-menu strong { display: block; font-weight: 500; font-size: .92rem; }
.dd-menu small { display: block; color: var(--muted); font-size: .79rem; line-height: 1.35; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; z-index: 2; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 24px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; position: fixed; inset: 0; z-index: 70; padding: calc(var(--header-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-open .header { background: var(--bg); border-color: var(--line); }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
  .mobile-menu nav a.sub { font-size: 1.05rem; color: var(--muted); padding: 12px 0 12px 16px; letter-spacing: -0.01em; }
  .mobile-menu nav a[aria-current="page"] { color: var(--orange); }
  .mobile-menu .meta { display: grid; gap: 14px; }
  .mobile-menu .meta p { color: var(--muted); font-size: .9rem; }
}

/* ---------- Barre d'action mobile ---------- */
.mobile-cta { display: none; }
@media (max-width: 920px) {
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; padding: 8px; border-radius: 999px; background: rgba(20,20,20,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); transform: translateY(140%); transition: transform .5s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; min-height: 46px; }
  .mobile-cta .btn-ghost { flex: 0 0 auto; padding: 0 18px; }
  .menu-open .mobile-cta { transform: translateY(140%); }
}

/* ---------- Héros ---------- */
.hero { padding-top: calc(var(--header-h) + 40px + clamp(40px, 7vw, 100px)); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero .stack { gap: 26px; }
.hero h1 { max-width: 14ch; }
.hero.page h1 { max-width: 16ch; }
.hero-glow { position: absolute; left: 10%; top: 20%; width: min(900px, 120vw); aspect-ratio: 2 / 1; transform: translate(-30%, -30%); pointer-events: none; background: radial-gradient(closest-side, rgba(232,120,15,.13), transparent); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 26px; color: #cfcfcf; font-size: .92rem; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .checks { grid-template-columns: 1fr; } }

/* Photos : même traitement partout pour une teinte homogène */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05) brightness(.82); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,.55)); pointer-events: none; }
a:hover .media img, .media:hover img { transform: scale(1.035); filter: grayscale(.1) contrast(1.05) brightness(.9); }

.mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1.02; position: relative; }
.mosaic .media:first-child { grid-row: span 2; }
.float-card { position: absolute; left: -18px; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 16px; background: rgba(20,20,20,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.float-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--orange); color: #140800; display: grid; place-items: center; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card strong { display: block; font-weight: 500; font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .8rem; }
@media (max-width: 920px) { .mosaic { aspect-ratio: 4 / 3; } .float-card { left: 12px; bottom: 12px; } }
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr 1fr; aspect-ratio: 1 / 1; gap: 10px; } }

.hero-media { aspect-ratio: 4 / 3.4; }
@media (max-width: 920px) { .hero-media { aspect-ratio: 16 / 10; } }

/* ---------- Bandeau de réassurance ---------- */
.assure { border-block: 1px solid var(--line); background: var(--bg-2); }
.assure .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.assure-item { display: flex; align-items: center; gap: 14px; padding: 26px 20px 26px 0; }
.assure-item + .assure-item { padding-left: 24px; border-left: 1px solid var(--line); }
.assure-item .ico { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); color: var(--orange); display: grid; place-items: center; flex: none; }
.assure-item .ico svg { width: 18px; height: 18px; }
.assure-item strong { display: block; font-weight: 500; font-size: .95rem; }
.assure-item small { color: var(--muted); font-size: .82rem; }
@media (max-width: 960px) { .assure .wrap { grid-template-columns: 1fr 1fr; } .assure-item:nth-child(3) { padding-left: 0; border-left: 0; } .assure-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .assure .wrap { grid-template-columns: 1fr; } .assure-item, .assure-item + .assure-item { padding: 18px 0; border-left: 0; } .assure-item + .assure-item { border-top: 1px solid var(--line); } }

/* ---------- Cartes de services ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .4s var(--ease), transform .6s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card .media { border-radius: 0; aspect-ratio: 16 / 9; }
.card-body { padding: 26px 28px 28px; display: grid; gap: 14px; align-content: start; }
.card-body .top { display: flex; align-items: center; gap: 12px; }
.card-body .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.card-body .ico svg { width: 17px; height: 17px; }
.card-body h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.card-body p { color: var(--muted); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; color: #c8c8c8; }
.card .more { margin-top: 4px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.three .card-body { padding: 20px 22px 24px; }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }

/* ---------- Blocs texte + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.top { align-items: start; }
.split .media { aspect-ratio: 4 / 4.4; }
.prose { display: grid; gap: 18px; color: var(--muted); font-size: 1.03rem; }
.prose strong { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .media { aspect-ratio: 16 / 11; } .split.reverse .media { order: -1; } }

.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sectors li { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sectors li:nth-child(odd) { padding-right: 14px; }
.sectors svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
@media (max-width: 480px) { .sectors { grid-template-columns: 1fr; } }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.figure { padding: 22px 16px 0 0; display: grid; gap: 4px; }
.figure + .figure { padding-left: 20px; border-left: 1px solid var(--line); }
.figure b { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.figure b sup { color: var(--orange); font-size: .5em; vertical-align: top; position: relative; top: .25em; }
.figure span { color: var(--muted); font-size: .85rem; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 28px 24px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.step-n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(232,120,15,.5); color: var(--orange); display: grid; place-items: center; font-size: .82rem; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Grille de prestations ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--bg); padding: 30px 28px 34px; display: grid; gap: 12px; align-content: start; transition: background .4s; }
.feature:hover { background: var(--bg-2); }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); color: var(--orange); display: grid; place-items: center; }
.feature .ico svg { width: 18px; height: 18px; }
.feature p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features, .features.two { grid-template-columns: 1fr; } }

/* ---------- Carte du Var ---------- */
.zone-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .zone-grid { grid-template-columns: 1fr; } }
.map-wrap { position: relative; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 22% 82%, rgba(232,120,15,.1), transparent 70%), var(--bg-2); padding: clamp(10px, 2.4vw, 26px); }
.var-map { width: 100%; height: auto; overflow: hidden; }
.var-map .land { fill: #151515; stroke: rgba(255,255,255,.22); stroke-width: 1.2; stroke-linejoin: round; }
.var-map .dots { fill: rgba(255,255,255,.07); }
.var-map .ring { fill: none; stroke: rgba(232,120,15,.45); stroke-width: 1; stroke-dasharray: 3 5; }
.var-map .ring-fill { fill: rgba(232,120,15,.06); }
.var-map .ring-label { fill: var(--orange-hi); font: 500 11px var(--font); letter-spacing: .04em; }
.var-map .town circle { fill: var(--orange-hi); stroke: var(--bg-2); stroke-width: 2; }
.var-map .town text, .var-map .city text { font: 500 12.5px var(--font); fill: #d6d6d6; paint-order: stroke; stroke: #0f0f0f; stroke-width: 4px; stroke-linejoin: round; }
.var-map .town .hover-label { opacity: 0; transition: opacity .3s; }
.var-map .town.on .hover-label { opacity: 1; }
.var-map .town circle { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.var-map .town.on circle { transform: scale(1.5); }
.var-map .city circle { fill: #5a5a5a; }
.var-map .city text { fill: #7a7a7a; font-size: 11.5px; }
.var-map .home text { font: 600 15px var(--font); fill: #fff; }
.var-map .home .core { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.var-map .home .halo { fill: none; stroke: var(--orange); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-out infinite; }
@keyframes halo { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; padding: 0 6px; font-size: .8rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-hi); }
.map-legend i.ring { width: 16px; height: 0; border-radius: 0; border-top: 1px dashed var(--orange); background: none; }
.map-legend i.city { background: #5a5a5a; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.towns li { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: #d2d2d2; cursor: default; transition: border-color .3s, color .3s, background .3s; }
.towns li:hover, .towns li.on { border-color: rgba(232,120,15,.6); color: var(--text); background: var(--orange-soft); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: clamp(1.02rem, 1.4vw, 1.16rem); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #140800; }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 50px 26px 0; color: var(--muted); max-width: 68ch; }

/* ---------- Appel à l'action ---------- */
.cta { padding-block: clamp(40px, 6vw, 80px); }
.cta-box { position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; min-height: 380px; background: var(--surface); }
.cta-box .copy { padding: clamp(36px, 6vw, 72px); display: grid; gap: 22px; align-content: center; position: relative; z-index: 1; }
.cta-box .media { border-radius: 0; }
.cta-box .media::after { background: linear-gradient(90deg, var(--surface) 0%, rgba(20,20,20,.2) 40%, transparent); }
.cta-box h2 { max-width: 15ch; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } .cta-box .media { aspect-ratio: 16 / 8; order: -1; } .cta-box .media::after { background: linear-gradient(0deg, var(--surface), transparent 60%); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info small { color: var(--muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.info a:hover { color: var(--orange-hi); }
.todo { color: var(--orange-hi); font-style: italic; }
.form-card { border-radius: 26px; border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .82rem; color: var(--muted); padding: 0; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,120,15,.14); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.choices label { cursor: pointer; }
.choices label { position: relative; }
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: #d0d0d0; transition: all .3s var(--ease); }
.choices label:hover span { border-color: rgba(255,255,255,.35); }
.choices input:checked + span { background: var(--text); border-color: var(--text); color: #0a0a0a; }
.choices input:focus-visible + span { outline: 1.5px solid var(--orange); outline-offset: 3px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-size: .92rem; }
.form-msg.ok { color: #57d396; } .form-msg.err { color: #ff8577; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .info li { grid-template-columns: 1fr; gap: 4px; } .form-foot .btn { width: 100%; } }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(60px, 8vw, 90px); margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-top p { color: var(--muted); max-width: 32ch; margin-top: 18px; font-size: .94rem; }
.footer h4 { margin: 0 0 16px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; color: #c6c6c6; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(50px, 7vw, 80px); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .84rem; color: var(--dim); }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 920px) { .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Pages secondaires ---------- */
.legal .wrap { max-width: 820px; display: grid; gap: 20px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.025em; margin-top: 18px; }
.legal p { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 500; }
.notfound { min-height: 78vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: clamp(6rem, 20vw, 13rem); font-weight: 500; letter-spacing: -0.07em; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Carte lisible sur petit écran */
@media (max-width: 600px) {
  .var-map .town text { font-size: 21px; stroke-width: 7px; }
  .var-map .home text { font-size: 25px; }
  .var-map .ring-label { font-size: 18px; }
  .var-map .city { display: none; }
  .var-map .town circle { r: 6px; }
}

/* Menu Services : icônes */
.dd-menu .ico { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--orange); }
.dd-menu .ico svg { width: 17px; height: 17px; }

/* ---------- Onglets de services (accueil) ---------- */
:root { --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .3s; }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #140800; }
.tab-pill { position: absolute; z-index: 0; border-radius: 999px; background: var(--orange); box-shadow: 0 0 0 3px rgba(232,120,15,.25), 0 8px 30px -8px rgba(232,120,15,.6); transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
@media (max-width: 780px) { .tabs { width: 100%; border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; } .tab { justify-content: center; padding: 12px 10px; } }

.panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(22px, 4.5vw, 64px); border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(110% 130% at 100% 0%, rgba(232,120,15,.09), transparent 50%), var(--surface); }
.panel[hidden] { display: none; }
.panel.enter .panel-copy > *, .panel.enter .visual { animation: panel-in .6s var(--ease) both; }
.panel.enter .panel-copy > *:nth-child(2) { animation-delay: .04s; } .panel.enter .panel-copy > *:nth-child(3) { animation-delay: .08s; } .panel.enter .panel-copy > *:nth-child(n+4) { animation-delay: .12s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-copy { display: grid; gap: 20px; min-width: 0; }
.panel-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.1; }
.panel-copy p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: #d6d6d6; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }

.visual { position: relative; min-width: 0; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); padding: 18px; font-family: var(--mono); font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; color: #cfcfcf; }
.v-dots { display: flex; gap: 6px; } .v-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.v-state { color: #4ccf90; display: inline-flex; align-items: center; gap: 7px; letter-spacing: .04em; }
.v-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px), radial-gradient(circle at 30% 70%, rgba(255,255,255,.04), transparent 50%), #121212; }
.cam::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(to bottom, transparent, rgba(232,120,15,.16), transparent); animation: scan 6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes scan { to { top: 110%; } }
.cam-label { position: absolute; left: 10px; top: 8px; color: #dadada; font-size: .7rem; }
.cam-rec { position: absolute; right: 10px; top: 8px; color: #ff6a5a; font-size: .68rem; display: inline-flex; gap: 5px; align-items: center; }
.cam-rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cam-box { position: absolute; border: 1.5px solid var(--orange); border-radius: 3px; width: 22%; height: 38%; left: var(--x); top: var(--y); }
.sensors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.sensor { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6px; }
.sensor b { color: #4ccf90; font-weight: 500; }
.net { width: 100%; height: auto; }
.net .link { stroke: rgba(255,255,255,.12); stroke-width: 1; fill: none; }
.net .pulse { stroke: var(--orange); stroke-width: 2; fill: none; stroke-dasharray: 6 220; animation: dash 3.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes dash { to { stroke-dashoffset: -226; } }
.net .node rect { fill: #161616; stroke: rgba(255,255,255,.14); }
.net .node text { fill: #d0d0d0; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.net .core rect { stroke: var(--orange); }
.meter { margin-top: 14px; display: grid; gap: 7px; }
.meter-row { display: flex; justify-content: space-between; }
.meter-track { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); }
.meter-fill.loop { animation: fill-loop 6s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes fill-loop { 0% { width: 0; } 70%, 100% { width: 100%; } }
.queue, .tickets { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.job-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.job-ico svg { width: 17px; height: 17px; }
.job-name { color: var(--text); margin-bottom: 7px; }
.ink { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ink div { display: grid; gap: 6px; justify-items: center; }
.ink span { width: 100%; height: 54px; border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; }
.ink span::after { content: ""; position: absolute; inset: auto 0 0 0; height: var(--lvl); background: var(--c); opacity: .8; }
.ticket { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.tag { padding: 3px 9px; border-radius: 99px; font-size: .68rem; letter-spacing: .05em; }
.tag.done { background: rgba(76,207,144,.12); color: #4ccf90; }
.tag.plan { background: var(--orange-soft); color: var(--orange-hi); }
.ticket .t { color: var(--text); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; text-align: center; }
.calendar b { font-weight: 500; padding: 8px 0; border-radius: 8px; border: 1px solid transparent; }
.calendar b.on { border-color: var(--orange); color: var(--text); background: var(--orange-soft); }
@media (max-width: 480px) { .visual { padding: 12px; font-size: .68rem; } .sensors { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .sensor { padding: 8px; flex-direction: column; } }

/* ---------- Lueur qui suit la souris ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; z-index: 1; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(232,120,15,.085), transparent); opacity: 0; transition: opacity .5s; will-change: transform; }
.cursor-glow.on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Frise animée (À propos) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.tl-fill { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(232,120,15,.6); }
.tl-item { position: relative; padding-top: 44px; display: grid; gap: 10px; align-content: start; }
.tl-item::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--orange); box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(232,120,15,.45); }
.tl-year { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-item p { color: var(--muted); font-size: .96rem; max-width: 34ch; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 30px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl-fill { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
  .tl-item { padding-top: 0; }
  .tl-item::before { left: -30px; top: 6px; }
}

/* ---------- Valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 28px 24px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.value .n { font-family: var(--mono); font-size: .78rem; color: var(--orange); letter-spacing: .1em; }
.value p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Blocs détaillés des services ---------- */
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; color: #d6d6d6; }
.bullets svg { width: 18px; height: 18px; color: var(--orange); flex: none; margin-top: 3px; }
.split.detail .detail-media { aspect-ratio: 4 / 3.6; }
.detail-visual { padding: clamp(14px, 3vw, 30px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(90% 120% at 100% 0%, rgba(232,120,15,.09), transparent 55%), var(--surface); }
@media (max-width: 900px) { .split.detail.reverse > div:last-child { order: -1; } }

/* ---------- Matériel ---------- */
.equips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.equip { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: .95rem; transition: border-color .3s, background .3s; }
.equip:hover { border-color: rgba(232,120,15,.45); background: var(--surface-2); }
.equip .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex: none; }
.equip .ico svg { width: 19px; height: 19px; }

/* ---------- Grand logo du pied de page ---------- */
.footer-mark { position: relative; margin-top: clamp(50px, 7vw, 90px); user-select: none; }
.footer-mark svg { width: 100%; height: auto; }
.fm-base { color: #161616; }
.fm-base .o { stroke: #2a1a0c; }
.fm-shine { position: absolute; inset: 0; color: var(--orange);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent);
  -webkit-mask-size: 28% 100%; mask-size: 28% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: fm-shine 7s linear infinite; opacity: .75; }
.fm-shine .o { stroke: var(--orange-hi); }
@keyframes fm-shine { from { -webkit-mask-position: -40% 0; mask-position: -40% 0; } to { -webkit-mask-position: 140% 0; mask-position: 140% 0; } }
.footer-mark + .footer-bottom { margin-top: clamp(30px, 4vw, 50px); }

/* ---------- Retour en haut ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 61; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,20,20,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); color: var(--text); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease), border-color .3s, visibility 0s .4s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--orange); color: var(--orange-hi); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 920px) { .to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 46px; height: 46px; } }

/* ---------- Carte : tout le Var ---------- */
.var-map .land { fill: #131313; stroke: rgba(232,120,15,.45); stroke-width: 1.2; }
.var-map .route { fill: none; stroke: rgba(232,120,15,.38); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.var-map .town circle { fill: var(--orange-hi); stroke: #0f0f0f; stroke-width: 2; }
.var-map .town:not(.main) circle { fill: #c0661a; }
.map-legend i.home { width: 10px; height: 10px; background: var(--orange); box-shadow: 0 0 0 3px rgba(232,120,15,.25); }
.map-legend i.area { width: 14px; height: 10px; border-radius: 3px; background: rgba(232,120,15,.18); border: 1px solid rgba(232,120,15,.5); }
.towns li.all { border-style: dashed; color: var(--muted); }
@media (max-width: 600px) {
  .var-map .town[data-town="le-luc"] text, .var-map .town[data-town="saint-maximin"] text, .var-map .town[data-town="bandol"] text { display: none; }
}

/* ---------- Comparateur avant / après ---------- */
.ba { position: relative; aspect-ratio: 4 / 3.2; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; user-select: none; touch-action: pan-y; }
.ba .ba-img { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.ba .ba-img::after { display: none; }
.ba .ba-img img { filter: grayscale(.2) contrast(1.05) brightness(.85); }
.ba:hover .ba-img img { transform: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { filter: grayscale(.55) contrast(1.05) brightness(.8) !important; }
.ba-tag { position: absolute; top: 16px; z-index: 3; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: rgba(10,10,10,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.ba-tag.left { left: 16px; } .ba-tag.right { right: 16px; color: #140800; background: var(--orange); border-color: var(--orange); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.6); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #0a0a0a; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ba-handle svg { width: 13px; height: 13px; }
.ba-handle svg:first-child { transform: rotate(90deg); } .ba-handle svg:last-child { transform: rotate(-90deg); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + * , .ba:has(.ba-range:focus-visible) { outline: 1.5px solid var(--orange); outline-offset: 4px; }
.ba-note { margin-top: 12px; font-size: .82rem; color: var(--dim); }

/* ---------- Encart vers la page Réseau ---------- */
.teaser { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: 14px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); transition: border-color .4s; }
.teaser:hover { border-color: rgba(232,120,15,.45); }
.teaser .media { aspect-ratio: 16 / 10; border-radius: 16px; }
.teaser h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.03em; max-width: 24ch; }
.teaser .stack { padding: 10px 20px 10px 0; gap: 16px; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } .teaser .stack { padding: 8px 10px 14px; } }

/* Plus épuré : halos plus discrets */
.hero-glow { opacity: .7; }

/* ---------- Grille en perspective (accueil, comme le site Framer) ---------- */
.hero.has-floor .wrap { position: relative; z-index: 2; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -8%; height: 58%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 72%, transparent);
  animation: floor-run 6s linear infinite;
}
@keyframes floor-run { to { background-position: 0 84px; } }
@media (max-width: 920px) { .grid-floor { height: 40%; bottom: -4%; } }
@media (prefers-reduced-motion: reduce) { .grid-floor { animation: none; } }

/* Lien « Site créé par Kelyan » */
.credit { color: var(--text); text-decoration: underline; text-decoration-color: rgba(232,120,15,.6); text-underline-offset: 3px; transition: color .3s; }
.credit:hover { color: var(--orange-hi); }

/* Très petits écrans (≤ 420 px) : rien ne dépasse */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
.footer-top > *, .stack, .split > *, .zone-grid > *, .contact-grid > *, .hero-grid > *, .section-head > * { min-width: 0; }
.footer ul li, .info li span, .info li a { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Textes : alignés à gauche, lignes équilibrées ----------
   La justification crée des trous sur des paragraphes courts (mesuré : jusqu'à 5× l'espace normal).
   On aligne à gauche et on laisse le navigateur équilibrer les fins de ligne (pas de mot seul en fin de paragraphe). */
p, li, .lead { text-align: left; text-wrap: pretty; hyphens: manual; -webkit-hyphens: manual; }
.section-head.center .lead, .notfound p { text-align: center; }
.cta-box .lead { text-align: left; margin-inline: 0; max-width: 46ch; }

/* =========================================================
   Mode clair (positif) — activé avec le bouton soleil/lune.
   Le mode sombre reste celui par défaut.
   ========================================================= */
.bar-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: border-color .3s, background .3s, transform .5s var(--ease); }
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
html[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: none; }
@media (min-width: 921px) { .bar-actions { order: 3; } .nav { margin-left: auto; margin-right: 12px; } }

/* Les écrans de démonstration (caméras, réseau…) restent sombres dans les deux modes */
.visual {
  --bg: #0a0a0a; --surface-2: #1b1b1b; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15);
  --text: #eeeeee; --muted: #9a9a9a; color-scheme: dark;
}

html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important;
}

html[data-theme="light"] {
  --bg: #f6f6f4;
  --bg-2: #eeeeeb;
  --surface: #ffffff;
  --surface-2: #f1f1ef;
  --line: rgba(10, 10, 10, 0.09);
  --line-2: rgba(10, 10, 10, 0.16);
  --text: #121212;
  --muted: #555555;
  --dim: #8c8c8c;
  --orange-hi: #cf6a0a;
  --orange-soft: rgba(232, 120, 15, 0.12);
  color-scheme: light;
}
html[data-theme="light"] ::selection { color: #ffffff; }
html[data-theme="light"] .btn-light { background: #121212; color: #ffffff; }
html[data-theme="light"] .btn-light:hover { background: #000000; }
html[data-theme="light"] .btn-ghost:hover { border-color: rgba(10,10,10,.45); }
html[data-theme="light"] .header.is-scrolled { background: rgba(246,246,244,.85); }
html[data-theme="light"] .nav > a:not(.btn), html[data-theme="light"] .dd > button { color: #3d3d3d; }
html[data-theme="light"] .nav > a:not(.btn):hover, html[data-theme="light"] .dd > button:hover { color: #000000; }
html[data-theme="light"] .dd-menu { background: rgba(255,255,255,.98); box-shadow: 0 24px 50px -20px rgba(0,0,0,.25); }
html[data-theme="light"] .dd-menu a:hover, html[data-theme="light"] .dd-menu a[aria-current="page"] { background: rgba(10,10,10,.04); }
html[data-theme="light"] .mobile-cta, html[data-theme="light"] .to-top { background: rgba(255,255,255,.92); }
html[data-theme="light"] .checks, html[data-theme="light"] .bullets li { color: #2b2b2b; }
html[data-theme="light"] .tags li, html[data-theme="light"] .chips li, html[data-theme="light"] .towns li,
html[data-theme="light"] .choices span, html[data-theme="light"] .footer ul { color: #3a3a3a; }
html[data-theme="light"] .choices label:hover span { border-color: rgba(10,10,10,.35); }
html[data-theme="light"] .choices input:checked + span { color: #ffffff; }
html[data-theme="light"] .media img { filter: grayscale(.2) contrast(1.02) brightness(.97); }
html[data-theme="light"] .media::after { background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18)); }
html[data-theme="light"] .float-card { background: rgba(255,255,255,.94); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
html[data-theme="light"] .cta-box .media::after { background: linear-gradient(90deg, var(--surface) 0%, rgba(255,255,255,.15) 40%, transparent); }
@media (max-width: 860px) { html[data-theme="light"] .cta-box .media::after { background: linear-gradient(0deg, var(--surface), transparent 60%); } }
html[data-theme="light"] .grid-floor {
  background-image: linear-gradient(to right, rgba(10,10,10,.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(10,10,10,.12) 1px, transparent 1px);
}
html[data-theme="light"] .hero-glow { opacity: .55; }
html[data-theme="light"] .var-map .land { fill: #ffffff; stroke: rgba(232,120,15,.55); }
html[data-theme="light"] .var-map .dots { fill: rgba(10,10,10,.08); }
html[data-theme="light"] .var-map .town text { fill: #1d1d1d; stroke: var(--bg-2); }
html[data-theme="light"] .var-map .town circle { stroke: #ffffff; }
html[data-theme="light"] .var-map .home text { fill: #0a0a0a; stroke: var(--bg-2); stroke-width: 4px; paint-order: stroke; }
html[data-theme="light"] .var-map .route { stroke: rgba(232,120,15,.55); }
html[data-theme="light"] .fm-base { color: #e4e4e1; }
html[data-theme="light"] .fm-base .o { stroke: #f2d6bc; }
html[data-theme="light"] .ba-tag.left { background: rgba(255,255,255,.88); color: #121212; }
html[data-theme="light"] .feature:hover { background: var(--surface-2); }
html[data-theme="light"] .panel { background: radial-gradient(110% 130% at 100% 0%, rgba(232,120,15,.10), transparent 50%), var(--surface); }

/* ---------- Mode clair : la zone d'intervention reste en noir ---------- */
html[data-theme="light"] #zone {
  --bg: #0a0a0a; --bg-2: #0f0f0f; --surface: #141414; --surface-2: #1b1b1b;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15);
  --text: #eeeeee; --muted: #9a9a9a; --dim: #636363; --orange-hi: #f39a4f;
  color-scheme: dark; background: var(--bg); color: var(--text);
}
html[data-theme="light"] #zone .towns li { color: #d2d2d2; }
html[data-theme="light"] #zone .btn-ghost:hover { border-color: rgba(255,255,255,.45); }
html[data-theme="light"] #zone .var-map .land { fill: #131313; stroke: rgba(232,120,15,.45); }
html[data-theme="light"] #zone .var-map .dots { fill: rgba(255,255,255,.07); }
html[data-theme="light"] #zone .var-map .town text { fill: #d6d6d6; stroke: #0f0f0f; }
html[data-theme="light"] #zone .var-map .town circle { stroke: #0f0f0f; }
html[data-theme="light"] #zone .var-map .home text { fill: #ffffff; stroke: #0f0f0f; }
html[data-theme="light"] #zone .var-map .route { stroke: rgba(232,120,15,.38); }
/* Mode clair : de l'espace entre la bande noire de la zone et la section suivante */
html[data-theme="light"] #zone + section { padding-top: clamp(80px, 10vw, 140px); }
html[data-theme="light"] section:has(+ #zone) { padding-bottom: clamp(80px, 10vw, 140px); }
