/* Arvige – site vitrine, design « Lueur » (v13).
   Idée : la page est froide (neige, nuit alpine), seule la chaleur ressort — comme sur la caméra thermique.
   L'orange est réservé à ce qui compte : appeler, écrire, l'animal retrouvé.
   Polices auto-hébergées (CSP font-src 'self') :
   - Bricolage Grotesque : titres (SIL OFL)
   - Atkinson Hyperlegible Next : texte, conçue pour la lisibilité (SIL OFL) */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2?v=1") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/assets/fonts/atkinson-next.woff2?v=1") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  /* surfaces froides */
  --paper: #f3f6f8;      /* neige */
  --mist: #e7edf1;       /* givre, surfaces secondaires */
  --card: #ffffff;
  --ink: #132232;        /* encre bleu nuit */
  --ink-2: #4f6072;      /* pierre */
  --line: #d3dde5;
  --field: #ffffff;
  --field-line: #b9c6d2;
  /* nuit alpine (en-tête, accueil, bande drone) */
  --night: #0d1a2a;
  --night-2: #16283c;
  --night-line: #263b52;
  --night-ink: #eef3f8;
  --night-2ink: #a9bccd;
  /* chaleur */
  --primary: #ff6b1a;    /* bouton principal */
  --primary-d: #ff8a3d;
  --on-primary: #1b0c03;
  --link: #b4410a;       /* orange lisible sur fond clair */
  --accent: #ff6b1a;
  --core: #ffc23d;
  --accent-soft: #ffe6d4;
  --accent-ink: #8a3108;
  --iron: linear-gradient(90deg, #2a0b4a, #8a1a5c 30%, #e0452b 60%, #ff9a1a 82%, #ffe08a);
  /* états */
  --ok: #1d6b45; --ok-soft: #e1f3e8; --ok-band: #17603d;
  --err: #b42318; --err-soft: #fde8e6;
  --warn-ink: #8a3108; --warn-soft: #ffeedd; --warn-band: #a3400f;
  /* compatibilité ancienne feuille (thème, éditeur) */
  --t0: #060122; --t5: #ffc23d; --t6: #fff4c4;
  --f-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px;
  --gut: 40px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --radius: 12px;
  --shadow: 0 30px 60px -34px rgba(13, 26, 42, .55);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.125rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #1e6fd9; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 750; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); letter-spacing: -.028em; }
h3 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.muted { color: var(--ink-2); }
.fine { font-size: .94rem; margin-top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { top: 10px; color: var(--on-primary); }
@media (max-width: 900px) { :root { --gut: 20px; } }
@media (max-width: 420px) { :root { --gut: 16px; } body { font-size: 1.0625rem; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700; font-size: 1.04rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--primary-d); border-color: var(--primary-d); color: var(--on-primary); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost, .btn.wa { background: transparent; color: var(--ink); border: 1.5px solid var(--field-line); }
.btn.ghost:hover, .btn.wa:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.ghost[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.warn { background: transparent; color: var(--err); border: 1.5px solid #e7a59e; }
.btn.warn:hover { background: var(--err-soft); color: var(--err); border-color: var(--err); }
.btn.sm { min-height: 42px; padding: 8px 16px; font-size: .97rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
/* boutons sur fond nuit */
.night .btn.ghost, .night .btn.wa { color: var(--night-ink); border-color: #3a5470; }
.night .btn.ghost:hover, .night .btn.wa:hover { background: var(--night-2); border-color: var(--night-ink); color: #fff; }
/* le bouton d'appel « rayonne » comme une source de chaleur */
.btn.hot { box-shadow: 0 0 0 6px rgba(255, 107, 26, .18), 0 14px 34px -10px rgba(255, 107, 26, .75); }
.btn .num { font-variant-numeric: tabular-nums; font-weight: 400; opacity: .85; }

/* ---------- En-tête (nuit) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--night-ink); }
.top::after { content: ""; display: block; height: 3px; background: var(--iron); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.brand small { display: block; color: var(--night-2ink); font-size: .82rem; margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--night-ink); text-decoration: none; padding: 6px 0; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a svg { display: none; }
.top .call { min-height: 44px; padding: 8px 18px 8px 14px; font-size: .98rem; }
.top .call .lbl { font-variant-numeric: tabular-nums; }
.admin-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; padding: 8px 13px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.6); white-space: nowrap; }
.admin-link:hover { color: #fff; background: var(--night-2); }
.admin-link svg { width: 14px; height: 14px; }
.admin-link small { font-weight: 400; opacity: .8; }

@media (max-width: 1000px) {
  .top .call .lbl { display: none; }
  .top .call { width: 44px; height: 44px; padding: 0; }
}
@media (max-width: 900px) {
  .top .wrap { gap: 8px; min-height: 64px; }
  .brand small { display: none; }
  .nav { gap: 6px; }
  .nav a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--night-line); background: var(--night-2); }
  .nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); text-decoration: none; }
  .nav a svg { display: block; width: 20px; height: 20px; }
  .nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .call { width: 42px; height: 42px; min-height: 42px; }
  .admin-link { font-size: 0; gap: 0; width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .admin-link svg { width: 16px; height: 16px; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 1.1rem; }
  .nav { gap: 4px; }
  .nav a, .top .call, .admin-link { width: 38px; height: 38px; min-height: 38px; }
  .nav a svg { width: 18px; height: 18px; }
}
@media (max-width: 340px) { .brand b { display: none; } }

/* ---------- Bandeau de disponibilité ---------- */
.avail-band { color: #fff; font-size: .98rem; }
.avail-band.on { background: var(--ok-band); }
.avail-band.off { background: var(--warn-band); }
.avail-band .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.avail-band .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.avail-band.on .dot { background: #86efac; }
.avail-band.off .dot { background: #fdba74; }
.avail-band .avail-val { font-weight: 700; }
.avail-band .avail-note { opacity: .9; }
@media (max-width: 600px) { .avail-band .wrap { justify-content: flex-start; text-align: left; font-size: .93rem; } }
.off-note { padding: 12px 16px; border-radius: var(--r-s); background: var(--warn-soft); color: var(--warn-ink); font-weight: 700; }

/* ---------- Bandes nuit ---------- */
.night { background: var(--night); color: var(--night-ink); }
.night h1, .night h2, .night h3 { color: #fff; }
.night .lead, .night .muted, .night p { color: var(--night-2ink); }
.night a:not(.btn) { color: #fff; }

/* ---------- Accueil : premier écran ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { /* lueur derrière l'image thermique */
  content: ""; position: absolute; right: -8%; top: -4%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 26, .22), rgba(138, 26, 92, .12) 55%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; align-items: center; }
.hero-txt { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero-txt h1, .hero-txt .lead, .hero-txt p { margin: 0; }
.hero h1 { max-width: 9.5em; }
.hero .lead { color: #c7d5e2; font-size: 1.3rem; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .alt-link { font-size: 1rem; }
.hero .alt-link a { font-weight: 700; }
.proof { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 10px 26px; width: 100%; font-size: .98rem; color: var(--night-ink); }
.proof li { display: inline-flex; align-items: center; gap: 9px; }
.proof svg { width: 18px; height: 18px; color: var(--core); flex: none; }
.sos-line { font-size: .92rem; color: var(--night-2ink); }
.sos-line a { font-weight: 700; }
@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero::before { right: -40%; top: auto; bottom: -10%; width: 120%; }
}
@media (max-width: 600px) {
  .hero .row { width: 100%; }
  .hero .row .btn { width: 100%; }
  .hero .lead { font-size: 1.15rem; }
}

/* ---------- Comparateur visible / thermique ---------- */
.cmp { margin: 0; }
.cmp-box { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 40px 80px -40px #000; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; aspect-ratio: 4 / 3; background: #0d140f; }
.cmp-box::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3; background: var(--iron); pointer-events: none; }
.cmp-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.cmp-box picture, .cmp-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmp-box img { pointer-events: none; -webkit-user-drag: none; }
.cmp-ir { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); box-shadow: 0 0 6px rgba(0,0,0,.8); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.cmp-knob svg { width: 22px; height: 22px; }
.cmp-range { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cmp-box:focus-within .cmp-knob { outline: 3px solid var(--core); outline-offset: 3px; }
.cmp-cap { margin-top: 12px; font-size: .92rem; color: var(--night-2ink); text-align: center; }
.hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font: 700 clamp(.58rem, 1.05vw, .78rem)/1 ui-monospace, Menlo, Consolas, "Courier New", monospace; letter-spacing: .06em; text-shadow: 0 0 4px rgba(0,0,0,.9), 0 0 1px #000; }
.hud-frame { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 2px rgba(0,0,0,.8)); }
.hud-ret { position: absolute; left: 50%; top: 50%; width: 22%; max-width: 130px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 2px rgba(0,0,0,.9)); opacity: .9; }
.hud-t { position: absolute; white-space: nowrap; }
.hud-t.tl { left: 6%; top: 9%; }
.hud-t.tr { right: 6%; top: 9%; }
.hud-t.tc { left: 50%; transform: translateX(-50%); top: calc(4% + 14px); }
.hud-t.bl { left: 6%; bottom: 8%; }
.hud-t.br { right: 6%; bottom: 8%; }
.hud-t.bc { left: 50%; bottom: 8%; transform: translateX(-50%); }
.rec { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: #ff3b30; margin-right: .5em; vertical-align: -.05em; animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }
@media (max-width: 520px) { .hud-t.tc, .hud-t.bc { display: none; } .hud-t.br { max-width: 48%; white-space: normal; text-align: right; line-height: 1.25; } .cmp-box { border-radius: var(--r-m); } }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec.tight { padding-top: 0; }
.sec.alt { background: var(--mist); }
.sec.bt { border-top: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: 40px; }
.sec-head h2, .sec-head h1 { margin-bottom: 14px; }
.sec-head p { margin: 0; }
.sec-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.sec-head.split h2 { margin: 0; max-width: 13em; }
.sec-head.split p { max-width: 28em; }
@media (max-width: 900px) { .sec { padding: 68px 0; } .sec-head { margin-bottom: 30px; } }

/* ---------- « En attendant » : liste à cocher ---------- */
.wait { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.wait-intro { position: sticky; top: 140px; }
.wait-intro p { color: var(--ink-2); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.todo li { margin: 0; }
.todo label { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.todo label:hover { border-color: var(--field-line); }
.todo input { appearance: none; -webkit-appearance: none; margin: 2px 0 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--field-line); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.todo input::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.todo input:checked { background: var(--ok); border-color: var(--ok); }
.todo input:checked::after { opacity: 1; }
.todo input:focus-visible { outline: 3px solid #1e6fd9; outline-offset: 3px; }
.todo b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.todo .d { display: block; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.todo label:has(input:checked) { background: var(--ok-soft); border-color: #a6d8bb; }
.todo label:has(input:checked) b { text-decoration: line-through; text-decoration-color: var(--ok); text-decoration-thickness: 2px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.share-row .muted { font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .wait { grid-template-columns: 1fr; gap: 28px; } .wait-intro { position: static; } }
@media (max-width: 600px) { .todo label { padding: 16px; gap: 12px; grid-template-columns: 28px 1fr; } .todo input { width: 28px; height: 28px; } }

/* ---------- Déroulement d'une recherche ---------- */
.steps2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps2 li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 28px 0 0; }
.steps2 .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font-family: var(--f-display); font-weight: 750; font-size: 1.05rem; margin-bottom: 10px; position: relative; z-index: 1; }
.steps2 li:last-child .n { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 6px rgba(255, 107, 26, .18); }
.steps2 li::before { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: var(--line); }
.steps2 li:last-child::before { display: none; }
.steps2 h3, .steps2 p { margin: 0; }
.steps2 p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (max-width: 860px) {
  .steps2 { grid-template-columns: 1fr; gap: 26px; }
  .steps2 li { padding: 0 0 0 64px; min-height: 44px; }
  .steps2 .n { position: absolute; left: 0; top: -4px; margin: 0; }
  .steps2 li::before { left: 21px; right: auto; top: 44px; bottom: -26px; width: 2px; height: auto; }
}

/* Ce que la caméra voit bien / mal */
.sees { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.see { padding: 28px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
.see h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.see h3 i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.see.good h3 i { background: var(--core); box-shadow: 0 0 14px var(--primary); }
.see.hard h3 i { background: #7c93aa; }
.see ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.see li { margin: 6px 0; }
.see li::marker { color: var(--field-line); }
@media (max-width: 760px) { .sees { grid-template-columns: 1fr; margin-top: 40px; } .see { padding: 22px; } }

/* ---------- Prestations ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tile { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.tile + .tile { padding-left: 28px; border-left: 1px solid var(--line); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.heat { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 6px; }
.heat.h1 { background: #ffe08a; box-shadow: 0 0 16px #ff9a1a; }
.heat.h2 { background: #ff9a1a; box-shadow: 0 0 16px #e0452b; }
.heat.h3 { background: #e0452b; box-shadow: 0 0 16px #8a1a5c; }
.heat.h4 { background: #8a1a5c; box-shadow: 0 0 16px #2a0b4a; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile + .tile { padding: 24px 20px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .tile:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(even) { padding-left: 0; border-left: 0; }
  .tile, .tile + .tile { padding: 22px 0; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; }
  .tile .heat { grid-row: span 2; margin-top: 7px; }
}

/* ---------- Le drone (bande nuit) ---------- */
.drone-band { padding: 96px 0; position: relative; }
.drone-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--iron); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.stack h2, .stack p { margin: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 44px; }
.stack-lg h2 { margin: 0; }
.photo { margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--night-2); }
.photo.sq { aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kpi2 { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.kpi2 div { border-top: 1px solid var(--night-line); padding-top: 14px; }
.kpi2 dt { color: var(--night-2ink); font-size: .95rem; }
.kpi2 dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.9rem; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (max-width: 900px) { .drone-band { padding: 64px 0; } .two { grid-template-columns: 1fr; gap: 36px; } .kpi2 dd { font-size: 1.45rem; } }

/* ---------- Qui intervient ---------- */
.who { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.who p { color: var(--ink-2); max-width: 34em; }
.creds { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.creds li span:first-child { color: var(--ink-2); }
.creds li span:last-child { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .creds li { grid-template-columns: 1fr; gap: 2px; } .creds li span:last-child { text-align: left; } }

/* ---------- Questions fréquentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--f-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--field-line);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover::after { border-color: var(--ink); }
.qa .ans { padding: 0 52px 22px 0; color: var(--ink-2); }
.qa .ans p:last-child { margin: 0; }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 20px; } .qa .ans { padding-right: 0; } .qa summary { font-size: 1.1rem; } }

/* ---------- Appel final ---------- */
.cta-sec { padding: 64px 0 72px; }
.cta-box { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 64px 56px; background: var(--night); color: var(--night-ink); display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta-box::before { content: ""; position: absolute; left: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 26, .28), transparent); pointer-events: none; }
.cta-num { position: relative; display: flex; flex-direction: column; gap: 14px; }
.cta-num p { margin: 0; font-size: 1.1rem; color: var(--night-2ink); }
.big-tel { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; color: #fff; font-family: var(--f-display); font-size: clamp(2.1rem, 5.4vw, 4.2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.night .big-tel, .big-tel:hover { color: #fff; }
.tel-ico { flex: none; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 0 0 .14em rgba(255, 107, 26, .2); }
.tel-ico svg { width: 48%; height: 48%; }
.cta-box .row { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-box .btn.ghost, .cta-box .btn.wa { color: var(--night-ink); border-color: #3a5470; }
.cta-box .btn.ghost:hover, .cta-box .btn.wa:hover { background: var(--night-2); color: #fff; border-color: #fff; }
@media (max-width: 900px) { .cta-box { padding: 40px 24px; border-radius: var(--r-m); } .big-tel { gap: 12px; } }
@media (max-width: 600px) { .cta-box .row, .cta-box .row .btn { width: 100%; } }

/* ---------- Barre d'appel fixe (mobile) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 26, 42, .96); border-top: 1px solid var(--night-line);
    grid-template-columns: 1.15fr 1fr 1fr;
    transform: translateY(110%); transition: transform .25s ease; }
  @supports (backdrop-filter: blur(10px)) { .dock { background: rgba(13, 26, 42, .86); backdrop-filter: blur(10px); } }
  .dock.show { transform: none; }
  .dock .btn { min-height: 50px; padding: 10px 8px; font-size: .98rem; gap: 6px; }
  .dock .btn svg { width: 18px; height: 18px; }
  .dock .btn.wa { color: var(--night-ink); border-color: #3a5470; }
  body.has-dock .foot { padding-bottom: 116px; }
  .ed-on .dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ---------- Pied de page ---------- */
.foot { background: var(--night); color: var(--night-2ink); padding: 44px 0; font-size: .94rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.foot a { color: var(--night-ink); }
.foot a:hover { color: #fff; }
.foot-links { display: flex; gap: 22px; }

/* ---------- Page « Le drone » ---------- */
.mhero { background: var(--night); color: var(--night-ink); padding: 64px 0; position: relative; overflow: hidden; }
.mhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--iron); }
.mhero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mhero h1 { color: #fff; }
.mhero p, .mhero .lead { color: var(--night-2ink); }
.mhero img { width: 100%; height: auto; border-radius: var(--r-l); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 860px) { .mhero { padding: 40px 0 48px; } .mhero .wrap { grid-template-columns: 1fr; gap: 28px; } }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; border-top: 1px solid var(--line); }
.uses > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.uses dt { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.uses dd { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }
.specs table { align-self: start; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; }
.specs caption { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; padding-bottom: 12px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--line); }
.specs th { font-weight: 400; color: var(--ink-2); width: 42%; padding-right: 16px; }
.specs td { font-weight: 700; }
.specs .therm caption::after { content: ""; display: block; height: 5px; width: 64px; margin-top: 8px; border-radius: 3px; background: var(--iron); }
.pal-h { margin-top: 56px; }
.palettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.palettes figure { margin: 0; }
.palettes .sw { height: 48px; border-radius: var(--r-s); border: 1px solid var(--line); }
.palettes figcaption { margin-top: 10px; font-weight: 700; }
.palettes figcaption span { display: block; font-weight: 400; color: var(--ink-2); font-size: .97rem; }
.sw.iron { background: var(--iron); }
.sw.white { background: linear-gradient(90deg, #000, #fff); }
.sw.black { background: linear-gradient(90deg, #fff, #000); }
@media (max-width: 700px) { .palettes { grid-template-columns: 1fr; } }
.src { font-size: .95rem; color: var(--ink-2); margin-top: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-row .btn { width: 100%; } }

/* ---------- Contact ---------- */
.contact-page .sec-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.direct { position: sticky; top: 130px; padding: 26px; border-radius: var(--r-m); background: var(--night); color: var(--night-ink); }
.direct h2, .direct h3 { color: #fff; font-size: 1.3rem; margin-bottom: 16px; }
.direct .btn { width: 100%; margin-bottom: 10px; }
.direct .btn.ghost, .direct .btn.wa { color: var(--night-ink); border-color: #3a5470; }
.direct .btn.ghost:hover, .direct .btn.wa:hover { background: var(--night-2); color: #fff; border-color: #fff; }
.direct p { font-size: .97rem; color: var(--night-2ink); margin: 12px 0 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } .direct { order: -1; position: static; } }
.sos { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r-s); background: var(--err-soft); border: 1px solid #f3b8b1; color: #6e1a12; font-size: 1rem; max-width: 46em; }
.sos b { color: #561008; }
.sos a { color: #561008; font-weight: 700; }

form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { form .grid { grid-template-columns: 1fr; } }
.f { margin-bottom: 18px; }
.f label, .f legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.f .opt { font-weight: 400; color: var(--ink-2); }
.f input, .f select, .f textarea {
  width: 100%; font: inherit; font-size: 1.03rem; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--field-line); border-radius: var(--r-s); padding: 12px 14px; min-height: 52px;
}
.f input::placeholder, .f textarea::placeholder { color: #7a8a9a; }
.f input[type=file] { padding: 9px; }
.f textarea { min-height: 150px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid rgba(30, 111, 217, .25); border-color: #1e6fd9; outline-offset: 0; }
.f [aria-invalid="true"] { border-color: var(--err); }
.f .err { display: block; color: var(--err); font-size: .94rem; margin-top: 4px; }
.f .err:empty { display: none; }
.f .hint { display: block; color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
fieldset.f { border: 0; margin: 0 0 18px; padding: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0 0 16px; padding: 0; }
.types legend { margin-bottom: 8px; }
.types label { position: relative; margin: 0; font-weight: 400; }
.types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.types span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--field-line); border-radius: 999px; cursor: pointer; background: var(--field); }
.types input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.types input:focus-visible + span { outline: 3px solid #1e6fd9; outline-offset: 2px; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); }
.thumbs button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-s); font-weight: 700; }
.form-msg:empty { display: none; }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.bad { background: var(--err-soft); color: var(--err); }
.ts { margin: 4px 0 16px; }
fieldset.mapf { border: 0; padding: 0; margin: 4px 0 20px; min-width: 0; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 10px; }
.map-search { position: relative; margin-bottom: 10px; }
.map-search input { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line); border-radius: var(--r-s); padding: 10px 14px; min-height: 48px; }
.map-res { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); }
.map-res button { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.map-res button:hover, .map-res button:focus-visible { background: var(--mist); }
.map { height: 360px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--mist); z-index: 0; }
.map-sum { margin: 8px 0 0; color: var(--ink-2); font-size: .97rem; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 11px; }
.radius { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.radius label { font-weight: 700; margin: 0; }
.radius output { color: var(--link); }
.radius input[type=range] { flex: 1 1 200px; accent-color: var(--primary); min-height: 32px; }
.map-err { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-s); background: var(--err-soft); color: var(--err); font-weight: 700; font-size: .97rem; }
.drop { position: relative; border: 2px dashed var(--field-line); border-radius: var(--r-m); padding: 24px 16px; text-align: center; background: var(--field); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--primary); background: var(--accent-soft); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop p { margin: 0; }
.drop .hint { margin-top: 6px; }
.drop-link { color: var(--link); text-decoration: underline; }
.drop:focus-within { outline: 3px solid #1e6fd9; outline-offset: 2px; }
@media (max-width: 600px) { .map { height: 300px; } .map-tools .btn { flex: 1 1 calc(50% - 8px); } #cSend { width: 100%; } }

/* ---------- Pages de texte, accès, page supprimée ---------- */
.text { max-width: 780px; padding: 56px var(--gut) 80px; margin: 0 auto; }
.text h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.text h2 { font-size: 1.45rem; margin-top: 2em; }
.text address { font-style: normal; }
body.gone main { max-width: 640px; margin: 0 auto; padding: 18vh 20px; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--night); }
.gate form { width: 100%; max-width: 400px; padding: 32px 28px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); border-top: 6px solid; border-image: var(--iron) 1; }
.gate h1 { font-size: 1.7rem; }
.gate .btn { width: 100%; margin-top: 4px; }
.gate .err { color: var(--err); font-weight: 700; }

/* ---------- Don (désactivé, gardé pour plus tard) ---------- */
.don { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 16px; }
.amounts label { position: relative; margin: 0; }
.amounts input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amounts span { display: inline-grid; place-items: center; min-width: 84px; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-s); background: var(--field); font-weight: 700; cursor: pointer; }
.amounts input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.don-box { padding: 26px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
@media (max-width: 860px) { .don { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Page de gestion ---------- */
.manage { max-width: 840px; }
.mg-card { margin: 28px 0; padding: 24px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
.mg-card > h2 { margin-top: 0; font-size: 1.6rem; }
.mg-card h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.state-now { margin: 18px 0 14px; padding: 16px 18px; border-radius: var(--r-s); font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--ink-2); }
.state-now.on { background: var(--ok-band); }
.state-now.off { background: var(--warn-band); }
.btn.big { width: 100%; min-height: 64px; font-size: 1.15rem; }
.btn.big.to-off { background: var(--warn-band); border-color: var(--warn-band); color: #fff; }
.btn.big.to-on { background: var(--ok-band); border-color: var(--ok-band); color: #fff; }
.note-form { margin-top: 28px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.seg button { font: inherit; font-weight: 700; color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.seg.small button { padding: 7px 13px; font-size: .92rem; }
.cal-now { margin: 0; padding: 14px 16px; border-radius: var(--r-s); background: var(--mist); border: 1px solid var(--line); font-weight: 700; }
.cal-now .muted { display: block; font-weight: 400; margin-top: 4px; }
label.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; cursor: pointer; }
label.chk input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; min-height: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost.danger { color: var(--err); border-color: #e7a59e; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-list li { display: grid; grid-template-columns: 210px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.cal-list li.now { color: var(--accent-ink); font-weight: 700; }
.cal-list .when { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cal-list li.now .when { color: var(--accent-ink); }
.help { margin-top: 18px; }
.help summary { cursor: pointer; font-weight: 700; }
.help ol { padding-left: 20px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi-t { padding: 14px; border-radius: var(--r-s); background: var(--mist); border: 1px solid var(--line); }
.kpi-t .v { display: block; font-family: var(--f-display); font-size: 1.8rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-t .l { display: block; color: var(--ink-2); font-size: .88rem; margin-top: 4px; }
.chart { position: relative; margin: 0 0 18px; padding: 14px 14px 6px; border-radius: var(--r-s); background: var(--mist); border: 1px solid var(--line); }
.chart figcaption { font-weight: 700; margin-bottom: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--field-line); stroke-width: 1; }
.chart .ax { fill: var(--ink-2); font-size: 11px; }
.chart .bar path { fill: var(--primary); }
.chart .bar .hit { fill: transparent; cursor: pointer; }
.chart .bar.on path { fill: #c94a0c; }
.chart-tip { position: absolute; top: 34px; transform: translateX(-50%); pointer-events: none; padding: 8px 10px; border-radius: var(--r-s); background: var(--night); color: #fff; font-size: .88rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.chart-tip b, .chart-tip span { display: block; }
.stat-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-list { padding: 14px; border-radius: var(--r-s); background: var(--mist); border: 1px solid var(--line); }
.stat-list h3 { margin-top: 0; }
.stat-list ul { list-style: none; margin: 0; padding: 0; }
.stat-list li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; margin: 3px 0; font-size: .94rem; border-radius: 6px; overflow: hidden; }
.stat-list .sbar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); border-radius: 6px; z-index: 0; }
.stat-list .k, .stat-list .v { position: relative; z-index: 1; }
.stat-list .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-list .v { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 760px) {
  .mg-card { padding: 16px; }
  .seg { display: flex; flex-wrap: nowrap; }
  .seg button { flex: 1 1 auto; padding: 9px 8px; }
  .seg.small button { padding: 7px 4px; font-size: .86rem; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis .kpi-t:first-child { grid-column: 1 / -1; }
  .stat-lists { grid-template-columns: 1fr; }
  .cal-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Ancienne fenêtre (plus utilisée) ---------- */
dialog.off-dlg { border: 0; border-radius: var(--r-m); padding: 24px; max-width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog.off-dlg::backdrop { background: rgba(13, 26, 42, .6); }

/* ---------- v14 : vidéo, position WhatsApp, galerie ---------- */
.clip { margin: 6px 0 22px; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-m); background: var(--night); object-fit: cover; }
.clip figcaption { margin-top: 10px; font-size: .94rem; color: var(--ink-2); }
.wait-intro { position: static; }

/* position : seulement sur mobile (le GPS du téléphone est précis, celui d'un ordinateur non) */
.loc-btn { display: none; }
.loc-msg { margin: 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--night-2); color: var(--night-ink); font-size: .97rem; }
.loc-msg.bad { background: #3a1714; color: #ffd9d4; }
.dock [data-loc] { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  .loc-btn { display: inline-flex; }
  .dock [data-loc] { display: inline-flex; }
}
@media (max-width: 760px) { .dock { grid-template-columns: 1.15fr 1fr 1fr; } }
[data-loc][aria-busy="true"] { opacity: .7; cursor: progress; }

/* galerie « Ils sont rentrés » */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.pet { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.pet-media { display: grid; gap: 4px; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--night); }
.pet-media.two { grid-template-columns: 1fr 1fr; }
.pet-media > a, .pet-media > video { display: block; min-height: 0; height: 100%; }
.pet-media img, .pet-media video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--night); }
.pet h3 { margin: 0; font-size: 1.5rem; }
.pet .where { display: block; color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.pet p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.gal-empty { padding: 24px; border-radius: var(--r-m); border: 2px dashed var(--field-line); color: var(--ink-2); }

/* gestion de la galerie */
.lbl-like { display: block; font-weight: 700; margin-bottom: 6px; }
.gal-keep { display: flex; flex-wrap: wrap; gap: 12px; }
.gal-keep label.chk { align-items: center; }
.gal-keep img, .gal-keep video, .gal-thumbs img, .gal-thumbs video { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--night); display: block; }
.gal-admin { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.gal-admin > li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.gal-admin > li.off .gal-thumbs { opacity: .45; }
.gal-thumbs { display: flex; gap: 6px; }
.gal-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gal-txt .row-btns { margin-top: 8px; }
@media (max-width: 600px) { .gal-admin > li { grid-template-columns: 1fr; } }

/* ---------- v15 : nouveau logo, lecteur vidéo simple ---------- */
.brand { gap: 14px; align-items: flex-end; }
.brand img.logo { display: block; height: 58px; width: auto; }
.brand small { display: block; color: var(--night-2ink); font-size: .82rem; margin: 0 0 9px; white-space: nowrap; }
@media (max-width: 900px) { .brand img.logo { height: 48px; } .brand small { display: none; } }
@media (max-width: 420px) { .brand img.logo { height: 42px; } }

/* lecteur : gros bouton lecture au centre, comme YouTube */
.hero-vid { margin: 0; }
.hero-vid figcaption { margin-top: 12px; font-size: .92rem; color: var(--night-2ink); text-align: center; }
.vplayer { position: relative; border-radius: var(--r-l); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px #000; }
.vplayer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; cursor: pointer; }
.vplayer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--iron); pointer-events: none; }
.vplayer.playing::after { display: none; }
.vplay { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%;
  background: rgba(13, 26, 42, .72); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 12px 30px rgba(0,0,0,.45); transition: transform .15s, background .15s; }
.vplay svg { width: 40px; height: 40px; margin-left: 5px; }
.vplay:hover, .vplay:focus-visible { background: var(--primary); color: var(--on-primary); transform: scale(1.06); }
.vplayer.playing .vplay { opacity: 0; pointer-events: none; }
.vplayer.small .vplay { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.vplayer.small .vplay svg { width: 28px; height: 28px; margin-left: 4px; }
.pet-media .vplayer { border-radius: 0; box-shadow: none; height: 100%; }
.pet-media .vplayer video { height: 100%; aspect-ratio: auto; }
.pet-media .vplayer::after { display: none; }
@media (prefers-reduced-motion: reduce) { .vplay { transition: none; } }
@media (max-width: 520px) { .vplay { width: 68px; height: 68px; margin: -34px 0 0 -34px; } .vplay svg { width: 32px; height: 32px; } .vplayer { border-radius: var(--r-m); } }

/* comparateur dans « En attendant que j'arrive » */
.wait-intro .cmp { margin: 6px 0 22px; }
.wait-intro .cmp-box { border-radius: var(--r-m); box-shadow: var(--shadow); }
.wait-intro .cmp-cap { color: var(--ink-2); text-align: left; }
/* gestion : images et vidéos */
.med-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.med-list > li { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.med-prev img, .med-prev video { display: block; width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--night); }
.med-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.med-txt .muted { font-size: .94rem; }
.med-state { align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); }
.med-state.on { background: var(--ok-soft); color: var(--ok); }
.med-txt .row-btns { margin-top: 8px; }
@media (max-width: 600px) { .med-list > li { grid-template-columns: 1fr; } .med-prev img, .med-prev video { width: 100%; } }
.wait-intro .hud-t.tc, .wait-intro .hud-t.bc { display: none; }
.wait-intro .hud { font-size: clamp(.58rem, .8vw, .72rem); }
@media (min-width: 901px) { .top > .wrap { min-height: 78px; } .brand img.logo { height: 56px; } }

/* ======================= v16 : catégories ======================= */
/* menu principal : « Prestations » déroulant (ordinateur), panneau (mobile) */
.menu-btn { display: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav .nav-link { color: var(--night-ink); text-decoration: none; padding: 6px 0; font-size: 1rem; }
.nav .nav-link:hover, .nav .nav-link[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 1rem; color: var(--night-ink); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.dd-btn svg { width: 18px; height: 18px; transition: transform .15s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-btn:hover { color: #fff; }
.dd-panel { display: none; position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); width: 420px; padding: 8px;
  background: var(--card); border-radius: var(--r-m); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); border: 1px solid var(--line); z-index: 40; }
.dd.open .dd-panel { display: block; }
.dd:focus-within .dd-panel { display: block; }
.dd-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); }
.dd-item:hover, .dd-item:focus-visible, .dd-item[aria-current="page"] { background: var(--mist); color: var(--ink); }
.dd-item .heat { margin: 6px 0 0; width: 12px; height: 12px; }
.dd-item b { display: block; font-size: 1.02rem; }
.dd-item small { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.top .wrap .nav a svg { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line);
    background: var(--night-2); color: #fff; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn[aria-expanded="true"] { border-color: var(--accent); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 35; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gut) 18px; background: var(--card); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); max-height: calc(100vh - 70px); overflow: auto; }
  .top.menu-open .nav { display: flex; }
  .top > .wrap { position: relative; }
  .dd-btn { display: none; }
  .dd-panel { display: block; position: static; transform: none; width: auto; padding: 0 0 8px; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-link { display: block; color: var(--ink); padding: 14px; font-weight: 700; width: auto; height: auto; border: 0; border-radius: var(--r-s); background: none; }
  .nav .nav-link:hover, .nav .nav-link[aria-current="page"] { color: var(--ink); background: var(--mist); text-decoration: none; }
  .nav .nav-link span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}
@media (max-width: 420px) { .menu-btn span { display: none; } .menu-btn { width: 38px; height: 38px; padding: 0; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .dd-btn svg { transition: none; } }

/* barre de catégories en haut des pages de prestation */
.cat-hero { padding-top: 22px; }
.cat-wrap { margin-bottom: 44px; position: relative; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--night-line);
  color: var(--night-ink); text-decoration: none; font-size: .95rem; white-space: nowrap; background: rgba(255,255,255,.02); }
.cat-tabs a:hover { border-color: #5b7593; color: #fff; }
.cat-tabs a[aria-current="page"] { background: #fff; color: var(--night); border-color: #fff; font-weight: 700; }
.cat-tabs .heat { width: 10px; height: 10px; margin: 0; }
@media (max-width: 900px) { .cat-hero { padding-top: 16px; } .cat-wrap { margin-bottom: 28px; } .cat-tabs { margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); } }

/* accueil : cartes des prestations */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cat-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border-radius: var(--r-l); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--field-line); box-shadow: var(--shadow); color: var(--ink); }
.cat-card picture, .cat-card img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; background: var(--night); }
.cat-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px; }
.cat-meta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.cat-meta .heat { width: 10px; height: 10px; margin: 0; }
.cat-title { font-family: var(--f-display); font-weight: 750; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.cat-line { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.cat-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); padding-top: 6px; }
.cat-go svg { width: 18px; height: 18px; transition: transform .15s; }
.cat-card:hover .cat-go svg { transform: translateX(4px); }
@media (max-width: 1100px) { .cats { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cat-card { grid-template-columns: 1fr; } .cat-card img, .cat-card picture { aspect-ratio: 16 / 9; } .cat-body { padding: 18px 18px 20px; } .cat-title { font-size: 1.35rem; } }
@media (prefers-reduced-motion: reduce) { .cat-card, .cat-go svg { transition: none; } }

.steps2.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps2.three { grid-template-columns: 1fr; } }
.see-two .cmp-cap { color: var(--ink-2); text-align: left; }
.see-two .stack p { color: var(--ink-2); font-size: 1.12rem; }
.sees + .panel { margin-top: 16px; }

/* formulaire : type de demande */
.types.req { margin-bottom: 18px; }
.types.req span { display: inline-flex; align-items: center; gap: 8px; }
.types.req .heat { width: 10px; height: 10px; margin: 0; }
.nav a.dd-item { color: var(--ink); text-decoration: none; padding: 12px 14px; background: none; }
.nav a.dd-item:hover, .nav a.dd-item:focus-visible, .nav a.dd-item[aria-current="page"] { background: var(--mist); color: var(--ink); text-decoration: none; }
@media (max-width: 900px) {
  .nav a.dd-item { display: grid; width: auto; height: auto; border: 0; border-radius: var(--r-s); }
  .nav a.dd-item span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}
.med-list > li.med-group { display: block; padding: 22px 0 6px; border-bottom: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.hero .cat-wrap { display: block; }

/* ======================= v17 : direct du drone ======================= */
.live-link { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7d8ea3; flex: none; }
[data-live="on"] .live-dot { background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
@media (prefers-reduced-motion: reduce) { [data-live="on"] .live-dot { animation: none; } }
.live-tip { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); z-index: 45; white-space: nowrap;
  padding: 7px 11px; border-radius: 8px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.live-tip::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); }
.live-link:hover .live-tip, .live-link:focus-visible .live-tip { opacity: 1; visibility: visible; }
.live-link[data-live="on"] .live-tip { color: #b42318; }
@media (max-width: 900px) {
  .nav .live-link { display: flex; align-items: center; gap: 10px; }
  .nav .live-link .live-tip { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; background: none; box-shadow: none; font-weight: 400; color: var(--ink-2); margin-left: auto; }
  .nav .live-link .live-tip::before { display: none; }
  .nav .live-link[data-live="on"] .live-tip { color: #b42318; font-weight: 700; }
  .top.is-live .menu-btn { position: relative; }
  .top.is-live .menu-btn::after { content: ""; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; border: 2px solid var(--night); }
}
@media (prefers-reduced-motion: reduce) { .live-tip { transition: none; } }

.live-hero { padding: 56px 0 72px; }
.live-wrap { max-width: 1100px; }
.live-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.live-head h1 { margin: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-ink); font-weight: 700; font-size: .95rem; }
.live-badge[data-live="on"] { background: #ff3b30; border-color: #ff3b30; color: #fff; }
.live-badge[data-live="on"] .live-dot { background: #fff; }
.live-hero .lead { margin-bottom: 30px; }
.live-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: #05090f; border: 1px solid var(--night-line); }
.live-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--night-2ink); }
.live-off svg { width: 56px; height: 56px; color: #5b7593; margin-bottom: 6px; }
.live-off b { color: #fff; font-family: var(--f-display); font-size: 1.5rem; }
.live-off p { margin: 0; max-width: 30em; }
.live-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.live-list li { margin: 8px 0; }
.live-cta { padding: 40px 36px; }
.live-cta .big-tel { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
@media (max-width: 900px) { .live-hero { padding: 36px 0 48px; } .live-player { border-radius: var(--r-m); } }

/* gestion : direct */
.live-url { display: block; margin: 8px 0 4px; padding: 12px 14px; border-radius: var(--r-s); background: var(--mist); border: 1px solid var(--line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; overflow-wrap: anywhere; user-select: all; }
.hero .live-wrap { display: block; }
@media (max-width: 520px) { .live-off svg { display: none; } .live-off b { font-size: 1.25rem; } }

/* v19 : direct protégé, spectateurs */
.live-viewers { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--night-2); color: var(--night-ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.live-viewers svg { width: 18px; height: 18px; color: var(--night-2ink); }
.live-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--night-2ink); background: #05090f; z-index: 2; }
.live-lock svg { width: 48px; height: 48px; color: var(--core); margin-bottom: 4px; }
.live-lock b { color: #fff; font-family: var(--f-display); font-size: 1.5rem; }
.live-lock p { margin: 0; }
.live-lock-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; width: 100%; max-width: 440px; }
.live-lock-row input { flex: 1 1 200px; min-height: 52px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid #3a5470; background: #0d1a2a; color: #fff; font: inherit; }
.live-lock-row input:focus { outline: 3px solid rgba(255, 194, 61, .35); border-color: var(--core); }
.live-lock-err { color: #ffb4ab; font-weight: 700; min-height: 1.4em; }
@media (max-width: 520px) { .live-lock svg { display: none; } .live-lock b { font-size: 1.2rem; } .live-lock-row .btn { width: 100%; } }

/* v20 : pastille LIVE à côté du logo, visible en permanence */
.live-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1.5px solid #3f5672; color: #9fb2c4; background: rgba(255,255,255,.03); text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-size: .85rem; letter-spacing: .08em; line-height: 1; transition: background .2s, border-color .2s, color .2s; }
.live-pill .live-dot { width: 8px; height: 8px; }
.live-pill:hover { color: #fff; border-color: #6c87a6; }
.live-pill[data-live="on"] { background: #e5261c; border-color: #e5261c; color: #fff; box-shadow: 0 0 0 4px rgba(229, 38, 28, .22), 0 8px 22px -8px rgba(229, 38, 28, .9); }
.live-pill[data-live="on"] .live-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: livepulse-w 1.6s infinite; }
@keyframes livepulse-w { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.live-pill:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; }
.top > .wrap > .live-pill { margin-right: auto; }
.top > .wrap:has(> .live-pill) > .brand { margin-right: 0; }
.top > .wrap:has(> .live-pill) { gap: 16px; }
@media (max-width: 900px) { .top > .wrap:has(> .live-pill) { gap: 8px; } .live-pill { height: 30px; padding: 0 10px 0 9px; font-size: .78rem; } }
@media (max-width: 380px) { .live-pill { padding: 0 8px; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .live-pill, .live-pill[data-live="on"] .live-dot { animation: none; transition: none; } }

/* v26 : icône YouTube à droite de la pastille LIVE (lien vers la chaîne) */
.yt-link { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #3f5672; color: #9fb2c4; background: rgba(255,255,255,.03); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.yt-link svg { width: 18px; height: 18px; display: block; }
.yt-link:hover { color: #fff; background: #e5261c; border-color: #e5261c; }
.yt-link:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; }
.top > .wrap > .live-pill:has(+ .yt-link) { margin-right: 0; }
.top > .wrap > .yt-link { margin-right: auto; margin-left: -6px; }
@media (max-width: 900px) { .yt-link { width: 30px; height: 30px; } .yt-link svg { width: 17px; height: 17px; } .top > .wrap > .yt-link { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .yt-link { transition: none; } }

/* ---------- Direct : message du pilote, bouton du son ---------- */
.live-msg { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-s);
  background: rgba(13, 26, 42, .9); border: 1px solid var(--night-line); color: #fff; font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.live-msg::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--core); }
.live-msg[data-kind="battery"]::before, .live-msg[data-kind="pause"]::before { background: #ffb020; }
.live-off .live-msg { position: static; margin-top: 8px; max-width: 34em; text-align: left; }
.live-sound { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px;
  border-radius: 999px; border: 0; background: #fff; color: var(--night); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); }
.live-sound svg { width: 22px; height: 22px; }
.live-sound:hover { background: #ffe9db; }
.live-sound:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; }
.live-pill[data-live="pause"], .live-badge[data-live="pause"] { background: #8a5a00; border-color: #b07800; color: #fff; }
.live-pill[data-live="pause"] .live-dot, .live-badge[data-live="pause"] .live-dot { background: #ffcf5c; }
@media (max-width: 520px) { .live-msg { font-size: .94rem; padding: 10px 12px; left: 8px; right: 8px; top: 8px; } .live-sound { bottom: 56px; font-size: .98rem; min-height: 46px; } }

/* ---------- Espace pilote (page Live) ---------- */
.pl-bar { display: flex; justify-content: flex-end; margin-top: 14px; }
.pl-open { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--night-2ink); font: inherit; font-size: .92rem; cursor: pointer; }
.pl-open svg { width: 16px; height: 16px; }
.pl-open:hover { color: #fff; border-color: #6c87a6; }
.pl-open:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; }
.pl-zone { margin-top: 18px; scroll-margin-top: 90px; }
.pl-app { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-items: start; }
.pl-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.pl-head h2, .pl-login h2 { margin: 0; color: #fff; font-size: 1.4rem; }
.pl-quick { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 8px; }
.pl-quick span { display: grid; padding: 8px 12px; border-radius: var(--r-s); background: var(--night-2); border: 1px solid var(--night-line); text-align: center; }
.pl-quick b { color: #fff; font-family: var(--f-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pl-quick small { color: var(--night-2ink); font-size: .8rem; }
.pl-card h3 { color: #fff; margin: 0 0 12px; font-size: 1.15rem; }
.pl-ig-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pl-ig-head h3 { margin: 0; }
.pl-igbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); box-shadow: 0 6px 18px -6px rgba(214, 36, 159, .7); }
.pl-igbtn svg { width: 26px; height: 26px; }
.pl-igbtn:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; }
.pl-igstate { margin: 0 0 10px; font-weight: 700; color: var(--night-ink) !important; }
.pl-igstate.ok { color: #7be0a6 !important; } .pl-igstate.bad { color: #ffb4ab !important; }
.pl-igform { display: grid; gap: 6px; }
.pl-igform label { color: var(--night-2ink); font-size: .9rem; margin-top: 4px; }
.pl-igform .btn, #igStop { width: 100%; margin-top: 8px; }
.pl-close { width: 100%; margin-top: 12px; }
.pl-login { max-width: 460px; display: grid; gap: 12px; }
.pl-login .btn { width: 100%; }
@media (max-width: 900px) { .pl-app { grid-template-columns: 1fr; } .pl-head { flex-direction: column; align-items: stretch; } }
/* ---------- Espace pilote : direct, destinataires ---------- */
.pl-live { grid-column: auto; }
.pl-stat { grid-column: 1 / -1; }
.pl-big { margin: 0 0 6px; font-family: var(--f-display); font-weight: 750; font-size: 1.45rem; color: #fff !important; }
.pl-big.ok { color: #7be0a6 !important; } .pl-big.warn { color: #ffcf5c !important; }
.pl-live .muted { margin: 0 0 12px; }
.pl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-row .btn { min-height: 56px; padding: 12px 26px; font-size: 1.05rem; }
.pl-stop { background: #e5261c; border-color: #e5261c; color: #fff; }
.pl-stop:not([disabled]):hover { background: #c81f16; border-color: #c81f16; }
.pl-stop[disabled] { opacity: .4; cursor: not-allowed; }
.pl-opts { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--night-line); }
.pl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 10px 0 4px; border: 1.5px solid #3a5470; border-radius: 999px; overflow: hidden; }
.pl-seg button { min-height: 46px; border: 0; background: transparent; color: var(--night-ink); font: inherit; font-weight: 700; cursor: pointer; }
.pl-seg button[aria-checked="true"] { background: #fff; color: var(--night); }
.pl-seg button:focus-visible { outline: 3px solid var(--core); outline-offset: -3px; }
.pl-pick { margin: 6px 0 4px; padding: 10px; border-radius: var(--r-s); background: var(--night); border: 1px solid var(--night-line); }
.pl-pick-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-pick-tools input { flex: 1 1 160px; min-height: 42px !important; }
.pl-pick-tools .btn.sm { min-height: 42px; }
.pl-pick-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 230px; overflow-y: auto; }
.pl-pick-list li { padding: 2px 0; overflow-wrap: anywhere; }
.pl-pick-list .chk { min-height: 40px; }
/* ---------- Direct : surimpression pendant une pause, chat ---------- */
.live-hold { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; background: rgba(5, 9, 15, .55); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); text-align: center; }
.live-hold.is-frozen { background: rgba(5, 9, 15, .62); }
.live-hold-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; background: #05090f; }
.live-hold-img:not([src]) { display: none; }
.live-hold-box { max-width: 34em; display: grid; gap: 8px; justify-items: center; color: #fff; }
.live-hold-box svg { width: 54px; height: 54px; color: #ffcf5c; }
.live-hold-box b { font-family: var(--f-display); font-size: clamp(1.25rem, 3.2vw, 1.9rem); line-height: 1.25; }
.live-hold-box p { margin: 0; font-size: 1.1rem; font-weight: 700; color: #ffe9b0; }
.live-hold-box small { color: var(--night-2ink); font-size: .95rem; }
@media (max-width: 520px) { .live-hold-box svg { width: 38px; height: 38px; } .live-hold-box small { display: none; } }
.live-chat { margin-top: 18px; padding: 16px; border-radius: var(--r-m); background: var(--night-2); border: 1px solid var(--night-line); }
.live-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.live-chat-head h2 { margin: 0; color: #fff; font-size: 1.2rem; }
.live-chat-pop { color: var(--night-ink); font-size: .92rem; }
.live-chat-slot { height: min(420px, 60vh); border-radius: var(--r-s); overflow: hidden; background: #0f0f0f; }
.live-chat-frame { display: block; width: 100%; height: 100%; border: 0; }
.live-chat .fine { margin: 10px 0 0; color: var(--night-2ink); font-size: .88rem; }
/* ---------- Page pilote ---------- */
.pl-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-m); padding: 20px; }
.pl-card p, .pl-card .muted { color: var(--night-2ink); }
.pl-card .fine { font-size: .88rem; margin: 10px 0 0; }
.pl-card a { color: #fff; }
.pl-card .btn.ghost { color: var(--night-ink); border-color: #3a5470; }
.pl-card .btn.ghost:hover { background: var(--night); border-color: var(--night-ink); color: #fff; }
.pl-card input[type="text"], .pl-card input[type="password"] { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid #3a5470; background: var(--night); color: #fff; font: inherit; }
.pl-card input:focus { outline: 3px solid rgba(255, 194, 61, .35); border-color: var(--core); }
.pl-login { max-width: 420px; margin: 40px auto; display: grid; gap: 12px; }
.pl-login .btn { width: 100%; }
.pl-micbtn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; min-height: 72px; padding: 12px 20px; border-radius: var(--r-m); border: 2px solid #3a5470;
  background: var(--night); color: #fff; font: inherit; font-weight: 800; font-size: 1.2rem; cursor: pointer; }
.pl-micbtn svg { width: 28px; height: 28px; }
.pl-micbtn:not([disabled]):hover { border-color: #fff; }
.pl-micbtn[aria-pressed="true"] { background: #e5261c; border-color: #e5261c; box-shadow: 0 0 0 5px rgba(229, 38, 28, .25); }
.pl-micbtn[data-busy] { opacity: .8; cursor: progress; }
.pl-micbtn[disabled] { opacity: .45; cursor: not-allowed; }
.pl-micbtn:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; }
.pl-meter { height: 10px; margin-top: 12px; border-radius: 999px; background: var(--night); overflow: hidden; border: 1px solid var(--night-line); }
.pl-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2bb673, #ffcf5c 70%, #ff3b30); transition: width .08s linear; }
.pl-micstate { margin: 10px 0 0; font-weight: 700; color: var(--night-ink) !important; }
.pl-micstate.ok { color: #7be0a6 !important; }
.pl-micstate.bad { color: #ffb4ab !important; }
.pl-cur { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--night); border: 1px dashed #3a5470; font-weight: 700; color: var(--night-ink) !important; }
.pl-cur.on { border-style: solid; border-color: var(--core); color: #fff !important; }
.pl-msgbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-msgbtns .btn, .pl-clear { width: 100%; min-height: 52px; padding: 10px 12px; font-size: .98rem; }
.pl-msgbtns .btn[aria-pressed="true"] { background: #8a5a00; border-color: #b07800; color: #fff; }
.pl-custom { display: grid; gap: 6px; margin: 12px 0 8px; }
.pl-custom label { color: var(--night-2ink); font-size: .9rem; }
.pl-custom-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-custom-row input { flex: 1 1 200px; min-width: 0; }
.pl-custom-row .btn { flex: none; min-height: 50px; padding: 10px 16px; }
.pl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 14px; }
.pl-stats div { border-top: 1px solid var(--night-line); padding-top: 8px; min-width: 0; }
.pl-stats dt { color: var(--night-2ink); font-size: .85rem; }
.pl-stats dd { margin: 2px 0 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pl-card label.chk { color: var(--night-ink); }
.pl-card .form-msg.ok { background: #123a28; color: #7be0a6; }
.pl-card .form-msg.bad { background: #3a1512; color: #ffb4ab; }
.live-msg.live-msg-under { position: static; margin: 12px 0 0; }
.live-sound { white-space: nowrap; bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.live-off:has(> .live-msg:not([hidden])) > p[data-edit] { display: none; }

.ed-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-pages .btn { min-height: 44px; padding: 8px 16px; font-size: .97rem; }

/* ---------- Gestion : menu des sections ---------- */
.manage { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.mg-nav { position: sticky; top: 96px; }
.mg-title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 750; font-size: 1.5rem; }
.mg-title small { display: block; font-family: inherit; font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.mg-tabs { display: flex; flex-direction: column; gap: 4px; }
.mg-tabs a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 600; }
.mg-tabs a svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.mg-tabs a:hover { background: var(--card); }
.mg-tabs a[aria-current="page"] { background: var(--night); color: #fff; }
.mg-tabs a[aria-current="page"] svg { color: var(--core); }
.mg-tabs a:focus-visible { outline: 3px solid var(--core); outline-offset: 2px; }
.mg-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; margin-left: auto; box-shadow: 0 0 0 3px rgba(255, 59, 48, .2); }
.mg-body { min-width: 0; }
.mg-phead { margin-bottom: 6px; }
.mg-phead h1 { margin: 0 0 4px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.mg-phead h1:focus { outline: none; }
.mg-phead p { margin: 0; }
.mg-panel .mg-card { margin: 20px 0; }
.mg-panel .mg-card > h2 { font-size: 1.3rem; }
.f-grow { flex: 1 1 240px; margin: 0; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mg-chips button { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--field-line); background: transparent; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.mg-chips button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.med-prev { display: grid; gap: 6px; }
.med-poster { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-2); }
.med-poster img { width: 64px !important; aspect-ratio: 16 / 9 !important; border-radius: 6px; object-fit: cover; }
.frame-dlg { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 22px; border: 0; border-radius: var(--r-m); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.frame-dlg::backdrop { background: rgba(13, 26, 42, .7); }
.frame-dlg h2 { margin: 0 0 4px; font-size: 1.4rem; }
.frame-dlg video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: var(--r-s); margin-top: 12px; }
.frame-ctl { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.frame-ctl input { flex: 1; accent-color: var(--accent); min-height: 32px; }
.frame-ctl output { min-width: 4.5em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.frame-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.frame-end { margin-top: 14px; }
@media (max-width: 900px) {
  .manage { display: block; padding: 0 0 48px; }
  .mg-nav { position: sticky; top: 60px; z-index: 15; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 12px 0; }
  .mg-title { font-size: 1.1rem; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
  .mg-title small { display: inline; }
  .mg-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; padding-bottom: 8px; }
  .mg-tabs::-webkit-scrollbar { display: none; }
  .mg-tabs a { flex: none; min-height: 40px; padding: 6px 12px; font-size: .94rem; white-space: nowrap; }
  .mg-tabs a svg { width: 18px; height: 18px; }
  .mg-dot { margin-left: 2px; }
  .mg-body { padding: 18px 12px 0; }
}

/* ---------- Live : notifications par e-mail ---------- */
.notif-sec { padding-bottom: 0; }
.notif-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 32px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); scroll-margin-top: 100px; }
.notif-txt h2 { margin: 0 0 8px; }
.notif-txt p { margin: 0; color: var(--ink-2); }
.notif-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notif-row input { flex: 1 1 220px; min-height: 54px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--field-line); background: #fff; font: inherit; color: var(--ink); }
.notif-row input:focus { outline: 3px solid rgba(255, 107, 26, .3); border-color: var(--accent); }
.notif-form #ts:not(:empty) { margin-top: 10px; }
.notif-form .fine { margin-top: 10px; }
.live-notif-link { margin-top: 10px; }
#notif { scroll-margin-top: 90px; }
@media (max-width: 800px) { .notif-box { grid-template-columns: 1fr; padding: 22px; gap: 16px; } .notif-row .btn { width: 100%; } }
.nt-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.nt-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nt-drop { margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.nt-drop > summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.nt-drop .nt-list { margin: 0; max-height: 360px; overflow-y: auto; }
.nt-mail { font-weight: 700; overflow-wrap: anywhere; }
.nt-list .muted { font-size: .88rem; flex: 1 1 200px; }
.nt-list .btn { margin-left: auto; }
.pl-notify { grid-column: auto; }
.live-player .live-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- Accueil : direct en cours ---------- */
.home-live { padding: 26px 0 30px; border-bottom: 1px solid var(--night-line); }
.hl-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 20px 32px; align-items: center; }
.hl-wrap:has(> .hl-player[hidden]) { grid-template-columns: 1fr; }
.hl-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hl-side h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; }
.hl-txt { margin: 0; color: var(--night-2ink); }
.hl-wrap:has(> .hl-player[hidden]) .hl-txt { display: none; }
.home-live .live-msg-under { margin: 0; align-self: stretch; }
@media (max-width: 900px) {
  .hl-wrap { grid-template-columns: 1fr; gap: 14px; }
  .hl-side { gap: 10px; }
  .hl-open { width: 100%; }
  .home-live { padding: 16px 0 20px; }
}

/* ---------- v32 : carte du drone, écran de pause 3D, replays, carnet de vol, état du système ---------- */
.live-hold-3d { position: absolute; inset: 0 0 auto 0; width: 100%; height: 62%; z-index: 0; display: none; pointer-events: none; }
.live-hold.has-3d { place-items: end center; }
.live-hold.has-3d .live-hold-3d { display: block; }
.live-hold.has-3d .live-hold-box { position: relative; z-index: 1; gap: 4px; padding-top: 6px; }
.live-hold.has-3d .live-hold-box svg { display: none; }
.live-hold.has-3d .live-hold-box b { font-size: clamp(1.05rem, 2.6vw, 1.5rem); }
.live-hold.has-3d { padding-bottom: 14px; }
@media (max-width: 520px) { .live-hold.has-3d .live-hold-box b { font-size: 1rem; } .live-hold.has-3d .live-hold-box p { font-size: .95rem; } .live-hold.has-3d { padding: 8px 12px 10px; } }
.live-map { margin-top: 18px; padding: 16px; border-radius: var(--r-m); background: var(--night-2); border: 1px solid var(--night-line); }
.live-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.live-map-head h2 { margin: 0; color: #fff; font-size: 1.2rem; }
.live-map-box { height: clamp(260px, 45vw, 420px); border-radius: var(--r-s, 10px); overflow: hidden; background: #0b1420; }
.live-map .fine { margin: 8px 0 0; }
.dm { background: none; border: 0; }
.dm svg { width: 40px; height: 40px; display: block; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); transition: transform .8s linear; }
.dm-ring { fill: rgba(255, 107, 26, .22); stroke: #ff6b1a; stroke-width: 2; }
.dm-arrow { fill: #ff6b1a; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.dm.is-stale svg { opacity: .55; filter: grayscale(.7); }
.live-replays .rp-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.rp-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: #0b1420; cursor: pointer; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(13, 26, 42, .78); border: 2px solid #fff; }
.rp-play::after { content: ""; position: absolute; left: 22px; top: 16px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.rp-thumb:hover .rp-play, .rp-thumb:focus-visible .rp-play { background: #ff6b1a; }
.rp-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-m); background: #000; display: block; }
.rp-cap { margin: 8px 0 0; display: grid; gap: 2px; }
.rp-cap span { color: var(--muted, #5a6b7d); font-size: .92rem; }
.pl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pl-card-head h3 { margin: 0; }
.pl-flights-list { display: grid; gap: 8px; margin-top: 10px; }
.pl-fl { border: 1px solid var(--night-line); border-radius: var(--r-s, 10px); background: rgba(255, 255, 255, .03); }
.pl-fl > summary { cursor: pointer; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; list-style: none; }
.pl-fl > summary::-webkit-details-marker { display: none; }
.pl-fl > summary b { color: #fff; }
.pl-fl > summary span { color: var(--night-2ink); font-size: .92rem; }
.pl-fl .tag { padding: 1px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255, 107, 26, .18); color: #ffb98a; }
.pl-fl .tag.pub { background: rgba(60, 200, 120, .18); color: #8ee6b4; }
.pl-fl form { padding: 4px 14px 14px; display: grid; gap: 8px; }
.pl-fl label { font-size: .92rem; color: var(--night-2ink); }
.pl-fl input[type=text], .pl-fl select, .pl-fl textarea { width: 100%; }
.pl-fl textarea { min-height: 84px; resize: vertical; }
.pl-fl-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .92rem; color: var(--night-ink); }
.pl-ops-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.pl-ops-list li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; align-items: start; }
.pl-ops-list i { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: #3cc878; }
.pl-ops-list li.bad i { background: #ff4d4d; }
.pl-ops-list li.warn i { background: #ffb020; }
.pl-ops-list small { grid-column: 2; color: var(--night-2ink); overflow-wrap: anywhere; }
.pl-card select, .pl-card textarea { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid #3a5470; background: var(--night); color: #fff; font: inherit; }
.pl-card select:focus, .pl-card textarea:focus { outline: 3px solid rgba(255, 194, 61, .35); border-color: var(--core); }

/* v33 : micro du pilote sous le chat du direct */
.live-mic { margin-top: 0; }
.pl-gain { margin-top: 12px; display: grid; gap: 6px; }
.pl-gain label { color: var(--night-ink); font-weight: 700; }
.pl-gain input[type="range"] { width: 100%; min-height: 36px; accent-color: var(--core); }

/* v33 : espace pilote en menus déroulants, micro allumé par défaut */
.pl-msgs { grid-column: auto; }
.pl-fold { grid-column: 1 / -1; padding: 0; }
.pl-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 20px; border-radius: var(--r-m); }
.pl-fold > summary::-webkit-details-marker { display: none; }
.pl-fold > summary h3 { margin: 0; }
.pl-fold > summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2.5px solid var(--night-ink); border-bottom: 2.5px solid var(--night-ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.pl-fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.pl-fold > summary:focus-visible { outline: 3px solid var(--core); outline-offset: -3px; }
.pl-fold[open] > summary { padding-bottom: 6px; }
.pl-fold > :not(summary) { margin-left: 20px; margin-right: 20px; }
.pl-fold > :last-child { margin-bottom: 20px; }
.pl-fold .pl-ig-head { justify-content: flex-start; }
.pl-micbtn.on { border-color: #2bb673; }

/* v33 : chat à droite de la vidéo (grand écran) */
.live-stage { display: block; }
.live-main { min-width: 0; }
@media (min-width: 1000px) {
  .live-stage.has-chat { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: stretch; }
  .live-stage.has-chat .live-chat { position: relative; margin-top: 0; min-height: 320px; padding: 0; }
  .live-stage.has-chat .live-chat-head { position: absolute; top: 12px; left: 14px; right: 14px; margin: 0; }
  .live-stage.has-chat .live-chat-slot { position: absolute; inset: 52px 12px 12px 12px; height: auto; }
}

/* v33 : icône YouTube rouge d'origine ; accueil : téléphone en icône seule */
.yt-link { border: 0; background: transparent; color: #ff0000; width: 36px; height: 36px; border-radius: 8px; }
.yt-link svg { width: 30px; height: 30px; }
.yt-link:hover { background: rgba(255,255,255,.08); color: #ff0000; border-color: transparent; transform: scale(1.06); }
@media (max-width: 900px) { .yt-link { width: 34px; height: 34px; } .yt-link svg { width: 28px; height: 28px; } }
.top .call .lbl { display: none; }
.top .call { width: 44px; height: 44px; padding: 0; justify-content: center; }
.vplayer.is-yt { aspect-ratio: 16 / 9; }
.vplayer.is-yt::after { display: none; }
.yt-face { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-face-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(13, 26, 42, .78); border: 2px solid #fff; transition: transform .15s, background .15s; }
.yt-face-play::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -9px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }
.yt-face:hover .yt-face-play, .yt-face:focus-visible .yt-face-play { background: var(--primary, #ff6b1a); transform: scale(1.06); }
.yt-face:focus-visible { outline: 3px solid var(--core, #ffc23d); outline-offset: -3px; }
.vplayer.is-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* v34 : carte sous le menu, boutons de zoom lisibles, 2 colonnes dans l'espace pilote */
.pl-fold.pl-notify { grid-column: auto; }
.pl-app .live-map { grid-column: 1 / -1; }
.live-map, .live-map-box { position: relative; z-index: 0; isolation: isolate; }
.live-map { margin-top: 18px; }
.leaflet-bar a, .leaflet-bar a:hover { background: #fff; color: #0b1420 !important; border-bottom: 1px solid #c8d0d8; text-decoration: none; }
.leaflet-bar a.leaflet-disabled { background: #e8ecf0; color: #8a96a3 !important; }
.leaflet-control-layers, .leaflet-control-layers label { color: #0b1420; }
.leaflet-container .leaflet-control-attribution, .leaflet-control-attribution a { color: #0b1420; background: rgba(255,255,255,.85); }

/* v35 : tarifs */
.tarifs-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.tarifs-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 18px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.tarifs-list .t-l { display: grid; gap: 2px; font-weight: 600; }
.tarifs-list .t-l small { font-weight: 400; color: var(--muted, #5b6877); font-size: .88rem; }
.tarifs-list .t-p { font-family: var(--f-display); font-weight: 750; font-size: 1.1rem; white-space: nowrap; color: var(--accent-ink, inherit); }
.tarifs-note { margin-top: 12px; }
@media (max-width: 520px) { .tarifs-list li { flex-direction: column; gap: 4px; } }
/* gestion : tarifs */
.tf-group { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); }
.tf-group > h3 { margin: 0 0 10px; }
.tf-row { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.tf-row input { min-width: 0; }
@media (max-width: 800px) { .tf-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--line); } }
.tf-row input, #tfNote { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; border: 1.5px solid var(--line-strong, #b8c4d0); border-radius: var(--r-s); background: #fff; color: var(--ink); }

/* v40 : présentation avec photo */
.pres { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
.pres-ph { margin: 0; }
.pres-ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m, 14px); display: block; }
@media (max-width: 900px) { .pres { grid-template-columns: 1fr; gap: 24px; } .pres-ph { max-width: 300px; } }


/* v42 : espacement accueil */
.sec[data-edit-section="acc-s5"] { padding: 72px 0 40px; }
.sec[data-edit-section="acc-s2"] { padding: 56px 0 88px; }
.pres { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; }
@media (max-width: 900px) {
  .sec[data-edit-section="acc-s5"] { padding: 48px 0 24px; }
  .sec[data-edit-section="acc-s2"] { padding: 40px 0 56px; }
  .cta-sec { padding: 40px 0 48px; }
  .pres { grid-template-columns: 1fr; gap: 24px; }
}

/* v43 : galerie « Ils sont rentrés » sur l'accueil */
.home-gal { padding: 56px 0 40px; }
@media (max-width: 900px) { .home-gal { padding: 40px 0 24px; } }

/* v44 : tarifs plus près de la section précédente */
.tarifs-sec { padding-top: 40px; padding-bottom: 72px; }
@media (max-width: 900px) { .tarifs-sec { padding-top: 24px; padding-bottom: 48px; } }

/* ================= v45 : design sobre, mode sombre automatique, transitions, langue ================= */
/* --- sobre : un seul orange, plus de dégradé thermique ni de lueurs --- */
.top::after { height: 1px; background: var(--night-line); }
.hero::before, .cta-box::before { display: none; }
.drone-band::after, .mhero::after, .vplayer::after, .cmp-box::before { display: none; }
.specs .therm caption::after { background: var(--accent); }
.heat.h1, .heat.h2, .heat.h3, .heat.h4 { background: var(--accent); box-shadow: none; }
.see.good h3 i { background: var(--accent); box-shadow: none; }
.proof svg { color: var(--accent); }
.tel-ico { box-shadow: none; }
.cta-box { border-radius: 20px; }
.vplayer { border-radius: 20px; box-shadow: none; border: 1px solid var(--night-line); }
.hero h1::after, .mhero h1::after { content: ""; display: block; width: 96px; height: 3px; border-radius: 2px; margin-top: 18px; background: var(--accent); transform-origin: left center; }
/* --- apparition discrète des sections (classe posée par site.js) --- */
.rv { opacity: 0; transform: translateY(12px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1::after, .mhero h1::after { animation: h1line .7s ease-out .15s backwards; }
  .hero-txt > *, .hero-vid { animation: fadeup .55s ease-out backwards; }
  .hero-txt > :nth-child(2) { animation-delay: .08s; } .hero-txt > :nth-child(3) { animation-delay: .16s; }
  .hero-txt > :nth-child(n+4) { animation-delay: .24s; } .hero-vid { animation-delay: .2s; }
  /* transition douce entre les pages (navigateurs récents) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@keyframes h1line { from { transform: scaleX(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
.top { view-transition-name: arv-top; }
/* --- sélecteur de langue (à droite du bouton LIVE) --- */
.lang { display: inline-flex; flex: none; height: 32px; border: 1.5px solid #3f5672; border-radius: 999px; overflow: hidden; }
.lang-a { display: grid; place-items: center; min-width: 36px; padding: 0 9px; color: #9fb2c4; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: .8rem; letter-spacing: .06em; line-height: 1; }
.lang-a[aria-current="true"] { background: #23394f; color: #fff; }
.lang-a:hover { color: #fff; }
.lang-a:focus-visible { outline: 3px solid var(--core); outline-offset: -3px; }
.top > .wrap > .live-pill:has(+ .lang) { margin-right: 0; }
@media (max-width: 720px) { .lang-a[aria-current="true"] { display: none; } .lang-a { min-width: 34px; padding: 0 7px; } }
/* --- mode sombre automatique (réglage du téléphone ou de l'ordinateur) ; pas dans la gestion --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-light]) {
    color-scheme: dark;
    --paper: #0b1420; --mist: #101d2d; --card: #142436; --ink: #eef3f8; --ink-2: #a9bccd; --line: #263b52;
    --field: #0f1c2b; --field-line: #3f5672; --link: #ff9a5c; --accent-soft: #3a2314; --accent-ink: #ffc9a3;
    --ok: #86d9a8; --ok-soft: #12301f; --err: #ff9b93; --err-soft: #3a1715; --warn-ink: #ffc9a3; --warn-soft: #3a2314;
    --shadow: 0 30px 60px -34px rgba(0, 0, 0, .8);
  }
  :root:not([data-light]) .btn.ghost[aria-pressed="true"], :root:not([data-light]) .types input:checked + span,
  :root:not([data-light]) .seg button[aria-checked="true"], :root:not([data-light]) .thumbs button { background: #eef3f8; border-color: #eef3f8; color: #0d1a2a; }
  :root:not([data-light]) .sos { border-color: #7a2a24; color: #ffd2cd; }
  :root:not([data-light]) .sos b, :root:not([data-light]) .sos a { color: #ffe3df; }
  :root:not([data-light]) .cta-box, :root:not([data-light]) .direct { border: 1px solid var(--line); }
}
.btn.hot { box-shadow: none; }

/* ================= v47 : cartes de l'accueil en mosaïque (photo pleine carte, texte posé dessus) ================= */
.cats.mosaic { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 250px; gap: 20px; }
.cats.mosaic .cat-card { position: relative; display: block; border: 0; border-radius: 22px; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; box-shadow: none; }
.cats.mosaic .cat-card:hover { color: #fff; box-shadow: none; }
.cats.mosaic .cat-card:nth-child(1) { grid-row: span 2; }
.cats.mosaic .cat-card:nth-child(2) { grid-column: span 2; }
.cats.mosaic .cat-card picture, .cats.mosaic .cat-card picture img, .cats.mosaic .cat-heat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cats.mosaic .cat-card picture img, .cats.mosaic .cat-heat { transition: transform .5s ease-out, opacity .35s ease-out; }
.cats.mosaic .cat-heat { opacity: 0; z-index: 1; }
.cats.mosaic .cat-card picture:not([data-def]) ~ .cat-heat { display: none; }
.cats.mosaic .cat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(13, 26, 42, 0), rgba(13, 26, 42, .82) 55%, rgba(13, 26, 42, .95)); }
.cats.mosaic .cat-body { position: absolute; inset: 0; z-index: 3; padding: 20px 76px 20px 20px; justify-content: flex-end; gap: 6px; }
.cats.mosaic .cat-meta { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--night); color: #fff; font-size: .8rem; font-weight: 700; }
.cats.mosaic .cat-meta .heat { width: 8px; height: 8px; }
.cats.mosaic .cat-title { color: #fff; font-size: 1.4rem; }
.cats.mosaic .cat-line { color: #d6e0ea; font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cats.mosaic .cat-go { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; justify-content: center; background: var(--accent); color: var(--on-primary); }
.cats.mosaic .cat-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cats.mosaic .cat-go svg { width: 20px; height: 20px; }
.cats.mosaic .cat-card:nth-child(1) .cat-body { padding: 28px 96px 28px 28px; gap: 8px; }
.cats.mosaic .cat-card:nth-child(1) .cat-meta { left: 24px; top: 24px; font-size: .85rem; }
.cats.mosaic .cat-card:nth-child(1) .cat-title { font-size: 2.3rem; }
.cats.mosaic .cat-card:nth-child(1) .cat-line { font-size: 1.05rem; max-width: 30em; -webkit-line-clamp: 3; line-clamp: 3; }
.cats.mosaic .cat-card:nth-child(1) .cat-go { right: 26px; bottom: 26px; width: 52px; height: 52px; }
.cats.mosaic .cat-card:nth-child(2) .cat-title { font-size: 1.75rem; }
.cats.mosaic .cat-card:focus-visible .cat-heat, .cats.mosaic .cat-card.heat-on .cat-heat { opacity: 1; }
@media (min-width: 1101px) { .cats.mosaic .cat-card:nth-child(n+3) .cat-line { display: none; } }
@media (hover: hover) {
  .cats.mosaic .cat-card:hover .cat-heat { opacity: 1; }
  .cats.mosaic .cat-card:hover picture img, .cats.mosaic .cat-card:hover .cat-heat { transform: scale(1.04); }
}
@media (max-width: 1100px) {
  .cats.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 16px; }
  .cats.mosaic .cat-card:nth-child(1) { grid-row: auto; grid-column: span 2; }
  .cats.mosaic .cat-card:nth-child(1) .cat-title { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  .cats.mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 236px; }
  .cats.mosaic .cat-card:nth-child(1), .cats.mosaic .cat-card:nth-child(2) { grid-column: auto; }
  .cats.mosaic .cat-card:nth-child(1) { grid-row: span 1; }
  .cats.mosaic .cat-card .cat-body, .cats.mosaic .cat-card:nth-child(1) .cat-body { padding: 18px 72px 18px 18px; }
  .cats.mosaic .cat-card .cat-title, .cats.mosaic .cat-card:nth-child(1) .cat-title, .cats.mosaic .cat-card:nth-child(2) .cat-title { font-size: 1.45rem; }
  .cats.mosaic .cat-card:nth-child(1) .cat-meta { left: 16px; top: 16px; font-size: .8rem; }
  .cats.mosaic .cat-card:nth-child(1) .cat-go { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .cats.mosaic .cat-card picture img, .cats.mosaic .cat-heat { transition: none; transform: none !important; } }

/* ================= v49 : design « Forêt » — sombre partout, menu à gauche, arrondi, scène du drone sur l'accueil ================= */
/* Police : Plus Jakarta Sans (SIL OFL, auto-hébergée) pour les titres et le texte */
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta.woff2?v=1") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta-ext.woff2?v=1") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root, :root[data-light] {
  color-scheme: dark;
  --paper: #0d1a2a; --mist: #10203a; --card: #132437; --ink: #eaf1f7; --ink-2: #a9bccd; --line: #27405a;
  --field: #0d1a2a; --field-line: #3d5a78; --link: #ff9a5c; --accent-soft: #3a2314; --accent-ink: #ffc9a3;
  --ok: #86d9a8; --ok-soft: #12301f; --err: #ff9b93; --err-soft: #3a1715; --warn-ink: #ffc9a3; --warn-soft: #3a2314;
  --night: #0d1a2a; --night-2: #132437; --night-line: #27405a; --night-ink: #eaf1f7; --night-2ink: #a9bccd;
  --rail: #0a1522;
  --shadow: 0 30px 60px -34px rgba(0, 0, 0, .8);
  --f-display: "Jakarta", "Segoe UI", system-ui, sans-serif;
  --f-body: "Jakarta", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1680px;
  --r-s: 14px; --r-m: 22px; --r-l: 28px; --radius: 18px;
}
body { font-size: 1.0625rem; }
h1, h2, h3 { font-weight: 800; }
:focus-visible { outline-color: var(--core); }
a:hover { color: #fff; }
/* contrastes repris de l'ancien mode sombre automatique */
.btn.ghost[aria-pressed="true"], .types input:checked + span, .seg button[aria-checked="true"], .thumbs button { background: #eaf1f7; border-color: #eaf1f7; color: #0d1a2a; }
.sos { border-color: #7a2a24; color: #ffd2cd; }
.sos b, .sos a { color: #ffe3df; }
.cta-box, .direct { border: 1px solid var(--line); }
.sec.alt { background: #0f1f31; }

/* boutons et cartes : arrondis, légère animation */
.btn { transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.mg-card, .cta-box, .direct, .notif-box, .live-map, .vplayer, .photo img, .gallery img, .rp-thumb { border-radius: var(--r-m); }
.cat-card, .gallery > *, .rp-list > li { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
@media (hover: hover) { .cat-card:hover, .rp-list > li:hover { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .btn, .cat-card, .gallery > *, .rp-list > li { transition: none; } .btn:hover, .cat-card:hover, .rp-list > li:hover { transform: none; } }

/* ---- menu principal à gauche (ordinateur) : le fond va jusqu'en bas, le contenu reste visible en défilant ---- */
@media (min-width: 1001px) {
  body[data-page]:has(> header.top) { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  body[data-page]:has(> header.top) > * { grid-column: 2; min-width: 0; }
  body[data-page]:has(> header.top) > header.top { grid-column: 1; grid-row: 1 / span 60; align-self: stretch; position: relative; top: auto; background: var(--rail); box-shadow: inset -1px 0 0 var(--night-line); }
  body[data-page]:has(> header.top) > header.top::after { display: none; }
  .top > .wrap { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 22px 16px 24px;
    display: grid; grid-template-columns: auto auto 1fr; grid-auto-rows: min-content; align-content: start; align-items: center; gap: 14px 10px; }
  .top > .wrap > * { grid-column: 1 / -1; }
  .top .brand { grid-row: 1; padding: 0 8px 4px; }
  .top .brand img.logo { height: 60px; width: auto; }
  .top .nav { grid-row: 2; }
  .top .live-pill { grid-row: 3; grid-column: 1; margin-left: 8px; }
  .top .lang { grid-row: 3; grid-column: 2; }
  .top .yt-link { grid-row: 3; grid-column: 3; justify-self: start; }
  .top .call { grid-row: 4; width: 100%; }
  .top .call .lbl { display: inline; }
  .top .menu-btn { display: none; }
  .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav .nav-link, .dd-btn { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--r-s); color: var(--night-ink); font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
  .nav .nav-link:hover, .dd-btn:hover { background: var(--night-2); color: #fff; text-decoration: none; transform: translateX(4px); }
  .nav .nav-link[aria-current="page"] { background: var(--night-2); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px var(--night-line); }
  .dd-btn svg { display: none; }
  .dd-panel, .dd.open .dd-panel, .dd:focus-within .dd-panel { display: block; position: static; transform: none; width: auto; padding: 0 0 6px; background: none; border: 0; box-shadow: none; }
  .dd-item { grid-template-columns: 10px 1fr; gap: 10px; align-items: center; min-height: 40px; padding: 4px 14px 4px 22px; color: #c8d6e3; border-radius: var(--r-s); }
  .dd-item b { font-size: .92rem; font-weight: 600; }
  .dd-item small { display: none; }
  .dd-item .heat { margin: 0; width: 8px; height: 8px; }
  .dd-item:hover, .dd-item:focus-visible, .dd-item[aria-current="page"] { background: var(--night-2); color: #fff; }
  .admin-link { grid-row: 5; justify-self: start; margin-left: 8px; }
  /* bandeau « Urgence animaux » : en haut de la colonne de contenu, collé en défilant */
  body[data-page] > .avail-band { position: sticky; top: 0; z-index: 25; }
  .foot { background: var(--rail); }
}
@media (max-width: 1000px) { .top .wrap .nav a svg { display: none; } }

/* ---- accueil : scène forêt en fond du haut de page, fondu vers le bas ---- */
.hero.has-scene { padding: 0 0 64px; background: transparent; overflow: hidden; isolation: isolate; }
.hero.has-scene::before { display: none; }
.scene { position: absolute; left: 0; right: 0; top: 0; height: 880px; z-index: -1; overflow: hidden; pointer-events: none; background: #0b1826;
  -webkit-mask-image: linear-gradient(#000 0, #000 52%, transparent 96%); mask-image: linear-gradient(#000 0, #000 52%, transparent 96%); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .sc-prop { transform-box: fill-box; transform-origin: center; animation: sc-spin .5s linear infinite; }
.scene .sc-hot { transform-box: fill-box; transform-origin: center; animation: sc-hot 2.2s ease-in-out infinite; }
.scene.still .sc-prop, .scene.still .sc-hot { animation: none; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-hot { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.7); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scene .sc-prop, .scene .sc-hot { animation: none; } }
.hero.has-scene .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero.has-scene .hero-txt { padding-top: var(--scene-top, 420px); text-shadow: 0 2px 18px rgba(13, 26, 42, .9); }
.hero.has-scene h1 { max-width: 14em; }
.hero.has-scene .lead { max-width: 38em; color: #d6e0ea; }
.hero.has-scene .proof { border-top: 0; padding-top: 4px; gap: 8px; }
.hero.has-scene .proof li { padding: 6px 14px; border-radius: 999px; background: rgba(10, 21, 34, .82); box-shadow: inset 0 0 0 1px var(--night-line); text-shadow: none; }
.hero.has-scene .hero-vid { max-width: 1100px; width: 100%; padding: 14px; border-radius: var(--r-l); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.hero.has-scene .hero-vid figcaption { text-align: left; padding: 0 6px; }
@media (max-width: 760px) {
  .scene { height: 700px; }
  .hero.has-scene .hero-vid { padding: 8px; }
}

/* ---- gestion : groupes du menu et rubrique Apparence ---- */
.mg-group { display: block; margin: 14px 12px 2px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mg-group:first-child { margin-top: 0; }
.mg-tabs a { border-radius: var(--r-s); transition: background-color .2s ease, transform .2s ease; }
.mg-tabs a:hover { transform: translateX(3px); }
.mg-tabs a[aria-current="page"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent); }
.mg-new { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-primary); font-size: .7rem; font-weight: 800; }
.manage { max-width: 1600px; }
.mg-card { background: var(--card); border: 1px solid var(--line); }
@media (max-width: 900px) { .mg-group { display: none; } }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .ap-grid { grid-template-columns: 1fr; } }
.ap-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 4px; }
.ap-sw button { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; transition: transform .2s ease; }
.ap-sw button:hover { transform: scale(1.1); }
.ap-sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px #eaf1f7; }
.ap-sw .c1 { background: #ff6b1a; } .ap-sw .c2 { background: #ffc23d; } .ap-sw .c3 { background: #7db8f0; } .ap-sw .c4 { background: #86efac; } .ap-sw .c5 { background: #f0a6c8; }
.ap-sw input[type="color"] { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.ap-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-opts label { flex: 1 1 170px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.ap-opts label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.ap-opts input { margin-top: 4px; accent-color: var(--accent); }
.ap-opts small { display: block; color: var(--ink-2); }
.ap-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 52px; padding: 6px 14px; border-radius: var(--r-s); background: var(--paper); margin-top: 8px; }
.ap-line > :first-child { flex: 1 1 200px; }
.ap-line input[type="range"] { width: 200px; accent-color: var(--accent); }
.ap-line select { min-height: 42px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--field-line); background: var(--field); color: var(--ink); font: inherit; }
.ap-line output { min-width: 4.5em; text-align: right; font-weight: 700; }
.ap-line input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.ap-prev { position: sticky; top: 20px; }
.ap-mini { overflow: hidden; border-radius: var(--ap-r, 22px); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ap-mini .b { padding: 6px; background: var(--ok-band); color: #fff; font-size: .75rem; text-align: center; }
.ap-mini .s { position: relative; height: 160px; background: #10263a; }
.ap-mini .s.none { background: var(--paper); }
.ap-mini .s svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-mini .t { position: absolute; left: 14px; bottom: 40px; font-weight: 800; font-size: 1.05rem; }
.ap-mini .k { position: absolute; left: 14px; bottom: 12px; padding: 3px 12px; border-radius: 999px; background: var(--ap-a, #ff6b1a); color: #0d1a2a; font-size: .72rem; font-weight: 800; }
.ap-mini .d { position: absolute; right: 22%; top: 64px; width: 16px; height: 16px; border-radius: 50%; background: var(--ap-a, #ff6b1a); }
.ap-mini .c { margin: 10px; padding: 12px; border-radius: calc(var(--ap-r, 22px) * .6); background: var(--card); font-size: .8rem; }

/* ================= v50 ================= */
/* Météo défavorable sous le bandeau « Urgence animaux » */
.avail-band .avail-meteo { background: #ff8a3d; color: #1b0c03; font-size: .9rem; }
.avail-band .avail-meteo .wrap { min-height: 30px; padding-top: 4px; padding-bottom: 4px; gap: 10px; }
.avail-band .avail-meteo .mt-ico { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1b0c03; color: #ff8a3d; font-weight: 800; font-size: .78rem; line-height: 1; }
.avail-band .avail-meteo small { opacity: .8; font-size: .82rem; }
@media (max-width: 600px) { .avail-band .avail-meteo { font-size: .8rem; line-height: 1.3; } .avail-band .avail-meteo .wrap { min-height: 0; padding-top: 5px; padding-bottom: 5px; } .avail-band .avail-meteo small { font-size: .74rem; } }

/* Mosaïque des prestations quand certaines sont masquées */
.cats.mosaic[data-n="3"] .cat-card:nth-child(2) { grid-column: span 2; }
.cats.mosaic[data-n="3"] .cat-card:nth-child(3) { grid-column: span 2; }
.cats.mosaic[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; }
.cats.mosaic[data-n="2"] .cat-card:nth-child(1), .cats.mosaic[data-n="2"] .cat-card:nth-child(2) { grid-row: auto; grid-column: auto; }
.cats.mosaic[data-n="2"] .cat-card .cat-title { font-size: 2rem; }
.cats.mosaic[data-n="2"] .cat-card .cat-line { display: -webkit-box; }
.cats.mosaic[data-n="1"] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 360px; }
.cats.mosaic[data-n="1"] .cat-card:nth-child(1) { grid-row: auto; }
@media (max-width: 1100px) { .cats.mosaic[data-n="3"] .cat-card:nth-child(3) { grid-column: span 2; } .cats.mosaic[data-n="2"] { grid-auto-rows: 260px; } }
@media (max-width: 600px) {
  .cats.mosaic[data-n] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 236px; }
  .cats.mosaic[data-n] .cat-card:nth-child(n) { grid-column: auto; }
  .cats.mosaic[data-n="2"] .cat-card .cat-title { font-size: 1.45rem; }
}

/* Galerie : données de la mission et plan de vol */
.pet-mission { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 18px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.pet-mission div { min-width: 0; }
.pet-mission dt { color: var(--ink-2); font-size: .8rem; }
.pet-mission dd { margin: 2px 0 0; font-weight: 700; font-size: .98rem; overflow-wrap: anywhere; }
.pet-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.pet-acts .btn { gap: 8px; }
.pet-acts .btn svg { width: 18px; height: 18px; flex: none; }
.pet-acts .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Vue 3D du plan de vol (CesiumJS) */
.k3d-dlg { width: min(1200px, calc(100vw - 24px)); height: min(820px, calc(100vh - 24px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); overflow: hidden; }
.k3d-dlg[open] { display: flex; flex-direction: column; }
.k3d-dlg::backdrop { background: rgba(5, 12, 20, .78); }
.k3d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.k3d-head h2 { margin: 0; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k3d-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; }
.k3d-close:hover { border-color: var(--accent); color: var(--accent); }
.k3d-close svg { width: 20px; height: 20px; }
.k3d-view { display: block; flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #0a1522; }
.k3d-foot { margin: 0; padding: 8px 20px 12px; color: var(--ink-2); font-size: .82rem; }
html.k3d-open { overflow: hidden; }
@media (max-width: 600px) { .k3d-dlg { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } .k3d-foot { display: none; } }
/* page /vol3d.html (dans le cadre du dialogue) */
.v3d-page { margin: 0; height: 100vh; overflow: hidden; background: #0a1522; }
.v3d-view, .v3d-view .cesium-viewer { position: absolute; inset: 0; }
.v3d-view .cesium-viewer-bottom, .v3d-view .cesium-widget-credits { display: none !important; }
.v3d-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 12px 18px; border-radius: 14px; background: rgba(13, 26, 42, .9); color: #eaf1f7; font-size: .95rem; text-align: center; max-width: 80%; z-index: 3; }
.v3d-msg[hidden] { display: none; }
.v3d-credits { position: absolute; left: 8px; bottom: 6px; z-index: 2; font-size: .7rem; color: #cfd9e3; pointer-events: none; }
.v3d-credits img { display: none; }
.v3d-credits a { pointer-events: auto; color: #cfd9e3; }
/* Gestion › Page d'accueil (v50) */
.hl-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.hl-list > li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--r-s); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.hl-list > li.off .hl-t, .hl-list > li.off .hl-n { opacity: .45; }
.hl-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: .85rem; }
.hl-t b { display: block; }
.hl-t small { display: block; font-size: .82rem; }
.hl-mv { display: flex; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .3; cursor: default; }
input.sw, .ap-line input.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; min-height: 0; margin: 0; padding: 0; border-radius: 999px; border: 0; background: #3a5470; cursor: pointer; transition: background .2s; }
input.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #eaf1f7; transition: transform .2s; }
input.sw:checked { background: var(--accent); }
input.sw:checked::after { transform: translateX(20px); background: #1b0c03; }
input.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#svcList { display: grid; gap: 8px; margin-bottom: 16px; }
#svcList .ap-line { margin: 0; cursor: pointer; }
#svcList .ap-line.off > span { opacity: .5; text-decoration: line-through; }
.hv-now { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 10px; border-radius: var(--r-s); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); min-height: 70px; }
.hv-now img { width: 128px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--night); }
.hv-now b { display: block; }
.hv-now small { display: block; font-size: .85rem; }
.hv-link { display: flex; gap: 8px; }
.hv-link input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) {
  .hl-list > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t sw" "mv mv"; }
  .hl-list > li .hl-n { display: none; }
  .hl-t { grid-area: t; } .hl-list input.sw { grid-area: sw; } .hl-mv { grid-area: mv; }
  .hv-now img { width: 96px; height: 54px; }
}
.gal-mission { margin: 6px 0 14px; padding: 14px 16px 6px; border-radius: var(--r-s); border: 1px solid var(--line); }
.gal-mission legend { padding: 0 6px; font-weight: 700; }
.gal-mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.mt-cities { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mt-cities li { padding: 8px 12px; border-radius: var(--r-s); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mt-cities b { display: block; }
.mt-cities span { font-size: .85rem; }
#mtNow { font-size: 1rem; } #mtNow.off { background: #ff8a3d; color: #1b0c03; }

/* ================= v54 : réseaux sociaux sous le logo (logos seuls), bouton LIVE, sélecteur FR/EN/DE ================= */
.soc { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; text-decoration: none;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.soc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soc svg { width: 24px; height: 24px; display: block; flex: none; }
.soc-yt { background: #e00000; } .soc-yt .soc-cut { fill: #e00000; }
.soc-ig { background: linear-gradient(45deg, #f9a825 0%, #e1306c 50%, #833ab4 100%); }
.soc-fb { background: #1877f2; }
.soc:hover { color: #fff; text-decoration: none; transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8); }
.soc:focus-visible { outline: 3px solid var(--core); outline-offset: 2px; }
/* bouton LIVE : pourtour rouge seulement, sans fond ; pendant un direct, seul le point rouge à gauche clignote */
.live-pill, .live-pill:hover, .live-pill[data-live="on"], .live-pill[data-live="pause"] { background: transparent; border: 2px solid #e5261c; color: #fff; box-shadow: none; }
.live-pill:hover { border-color: #ff5a4f; }
.live-pill .live-dot { background: #6f8196; box-shadow: none; animation: none; }
.live-pill .live-st { display: none; }
.live-pill[data-live="on"] .live-dot { background: #ff2a1f; box-shadow: none; animation: live-blink 1s steps(1, end) infinite; }
.live-pill[data-live="pause"] .live-dot { background: #ffb020; }
@keyframes live-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-pill[data-live="on"] .live-dot { animation: none; } .soc { transition: none; } .soc:hover { transform: none; } }
.mbar { display: none; }

/* ordinateur : menu de gauche */
@media (min-width: 1001px) {
  .top .brand { grid-row: 1; }
  .top .social { grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .top .social .soc { height: 50px; border-radius: var(--r-s); }
  .top .social .soc svg { width: 26px; height: 26px; }
  .top .live-pill { grid-row: 3; grid-column: 1 / -1; margin: 0; height: 48px; padding: 0 16px; gap: 10px; font-size: 1.02rem; border-radius: 999px; }
  .top .live-pill .live-dot { width: 12px; height: 12px; }
  .top .live-pill .live-st { display: inline; margin-left: auto; font-family: var(--f-body, inherit); font-weight: 600; font-size: .8rem; letter-spacing: 0; color: #a9bccd; }
  .top .nav { grid-row: 4; }
  .top .lang { grid-row: 5; grid-column: 1 / -1; justify-self: start; margin-left: 8px; height: 34px; }
  .top .lang-a { min-width: 42px; }
  .top .call { grid-row: 6; }
  .admin-link { grid-row: 7; }
}

/* téléphone et tablette : en-tête allégé, barre « réseaux + langue » sous l'en-tête */
@media (max-width: 1000px) {
  .top .social, .top .lang { display: none; }
  .top > .wrap > .live-pill, .top > .wrap > .live-pill:has(+ .lang) { margin-right: auto; }
  .live-pill { height: 34px; padding: 0 13px 0 11px; font-size: .86rem; }
  .live-pill .live-dot { width: 10px; height: 10px; }
  .mbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px max(16px, env(safe-area-inset-left)); background: var(--rail, #0a1522); border-bottom: 1px solid var(--night-line); }
  .mbar .social { display: flex; gap: 8px; min-width: 0; }
  .mbar .soc { width: 40px; height: 36px; border-radius: 12px; }
  .mbar .soc svg { width: 21px; height: 21px; }
  .mbar .lang { display: inline-flex; height: 34px; }
  .mbar .lang-a[aria-current="true"] { display: grid; }
}
