/* AEROTHAU OS - design "SaaS clean" 2026 (Tailwind gere l'essentiel) */

:root {
  --bg-page: #F6F7FB;
  --bg-card: #FFFFFF;
  --bg-card-2: #EEF0F7;
  --bg-input: #F8FAFC;
  --border-color: rgba(15, 23, 55, 0.08);
  --input-border: #E2E8F0;
  --text-primary: #161B3D;
  --text-secondary: #5B6478;
  --sheen: rgba(255, 255, 255, 0.5);
  --shadow-card: 0 1px 1px rgba(15,23,55,0.05), 0 3px 6px -2px rgba(15,23,55,0.07), 0 18px 32px -14px rgba(15,23,55,0.2);
  --shadow-lift: 0 2px 2px rgba(15,23,55,0.06), 0 8px 16px -4px rgba(15,23,55,0.12), 0 28px 48px -18px rgba(15,23,55,0.3);
  --watermark-img: url('/assets/img/bg-watermark-light.png');
}

html.dark {
  --bg-page: #0B0E1F;
  --bg-card: #151A30;
  --bg-card-2: #1B2242;
  --bg-input: #1D2440;
  --border-color: rgba(255, 255, 255, 0.08);
  --input-border: #2A3252;
  --text-primary: #E5E9F5;
  --text-secondary: #93A0C2;
  --sheen: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 1px 1px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.25), 0 22px 40px -16px rgba(0,0,0,0.55);
  --shadow-lift: 0 2px 2px rgba(0,0,0,0.35), 0 8px 16px rgba(0,0,0,0.3), 0 32px 56px -20px rgba(0,0,0,0.65);
  --watermark-img: url('/assets/img/bg-watermark-dark.png');
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color .2s;
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
}
/* Filigrane discret, ancre au coin bas-droit de la zone de contenu (pas de
   "background-attachment: fixed" sur le body : ca provoque un bug de rendu
   - page blanche - dans ce contexte de mise en page). */
body::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  width: clamp(200px, 30vw, 460px);
  height: clamp(200px, 30vw, 460px);
  background-image: var(--watermark-img);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 900px) {
  body::after { width: clamp(140px, 48vw, 260px); height: clamp(140px, 48vw, 260px); }
}

/* Icones vectorielles (voir partials/icons.php) - remplacent les emojis */
.icon {
  width: 1em; height: 1em;
  stroke: currentColor !important; fill: none !important;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Animations d'entree */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .anim-in { animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .anim-pop { animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-in, .anim-pop { animation: none; }
}

.glass-card {
  background: linear-gradient(165deg, var(--bg-card), var(--bg-card-2) 200%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--sheen);
  border-radius: 1rem;
  color: var(--text-primary);
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s cubic-bezier(0.16, 1, 0.3, 1);
}
a.glass-card:hover, .glass-card.hoverable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 var(--sheen);
}

.glass-card-dark {
  background: rgba(11, 31, 58, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(11, 31, 58, 0.2); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.kanban-column { min-height: 200px; }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card.dragging { opacity: 0.4; }
.kanban-column.drop-hover { outline: 2px dashed #2FD9A8; outline-offset: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="password"], input[type="url"],
select, textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2FD9A8;
  box-shadow: 0 0 0 3px rgba(47, 217, 168, 0.2);
}
label.field-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.3rem; }

/* Relief sur les boutons pleine-couleur deja utilises dans les vues (retrofit global, sans toucher a chaque page) */
a.bg-mint, button.bg-mint, input[type="submit"].bg-mint {
  background: linear-gradient(165deg, #2ED7A2, #159372) !important;
  box-shadow: 0 8px 18px -6px rgba(21,147,114,0.5), inset 0 1px 0 rgba(255,255,255,0.45) !important;
  transition: transform .15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .15s ease;
}
a.bg-mint:hover, button.bg-mint:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(21,147,114,0.6), inset 0 1px 0 rgba(255,255,255,0.45) !important; }
a.bg-mint:active, button.bg-mint:active { transform: translateY(0); }

a.bg-navy, button.bg-navy {
  background: linear-gradient(165deg, #14335C, #0B1F3A 55%, #071528) !important;
  box-shadow: 0 8px 18px -6px rgba(7,21,40,0.45), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  transition: transform .15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .15s ease;
}
a.bg-navy:hover, button.bg-navy:hover { transform: translateY(-1px); }
a.bg-navy:active, button.bg-navy:active { transform: translateY(0); }

/* Liseré lumineux sur les badges/pills existants (bg-*-50, bg-navy/5, etc.) */
.rounded-full[class*="bg-"] { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
html.dark .rounded-full[class*="bg-"] { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }

/* Boutons/liens : leger effet d'appui au clic sur toute l'appli */
button, a.rounded-xl, a.rounded-lg { transition: transform .12s cubic-bezier(0.16, 1, 0.3, 1); }
button:active, a.rounded-xl:active, a.rounded-lg:active { transform: scale(0.98); }

/* Bascule des textes/fonds Tailwind hardcodes les plus frequents en mode sombre */
html.dark .text-slate-700, html.dark .text-slate-800, html.dark .text-navy { color: var(--text-primary); }
html.dark .text-slate-400, html.dark .text-slate-500, html.dark .text-slate-600 { color: var(--text-secondary); }
html.dark .bg-white { background-color: var(--bg-card); }
html.dark .bg-slate-50, html.dark .bg-navy\/5, html.dark .bg-navy\/10 { background-color: var(--bg-input); }
html.dark .border-slate-200 { border-color: var(--border-color); }
html.dark .divide-slate-200\/60 > * + * { border-color: var(--border-color); }
html.dark table thead tr { border-color: var(--border-color); }

/* Avatar rond "neon" pour les fiches (clients, flotte) */
.avatar-neon {
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px #2FD9A8, 0 0 16px 2px rgba(47, 217, 168, 0.55);
}
.avatar-neon-sm {
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3px #2FD9A8, 0 0 8px 1px rgba(47, 217, 168, 0.5);
}

/* =====================================================================
   THEME "HORIZON" (v53) - fond photo, logo en filigrane, panneaux de verre.
   Limite aux pages de l'application (html.hz) : la signature de devis, le
   portail client et le mode terrain gardent leur habillage actuel.
   Nuit = html.hz.dark, jour = html.hz.
   ===================================================================== */
html.hz {
  --hz-veil: linear-gradient(180deg, rgba(233,241,250,.52), rgba(233,241,250,.80));
  --hz-glass: rgba(255,255,255,.64);
  --hz-glass2: rgba(255,255,255,.84);
  --hz-solid: #F4F8FC;
  --hz-edge: rgba(10,26,51,.11);
  --hz-edge2: rgba(10,26,51,.22);
  --hz-soft: rgba(10,26,51,.05);
  --hz-ink3: #7A8DA9;
  --hz-accent: #0C9C72;
  --hz-accent-soft: rgba(12,156,114,.14);
  --hz-mark: .13;
  --hz-shadow: 0 16px 44px rgba(10,26,51,.14);

  --bg-page: transparent;
  --bg-card: var(--hz-glass);
  --bg-card-2: rgba(255,255,255,.5);
  --bg-input: rgba(255,255,255,.72);
  --border-color: var(--hz-edge);
  --input-border: rgba(10,26,51,.16);
  --text-primary: #0A1A33;
  --text-secondary: #465A78;
  --sheen: rgba(255,255,255,.55);
  --shadow-card: var(--hz-shadow);
  --shadow-lift: 0 22px 56px rgba(10,26,51,.22);
  color-scheme: light;
}
html.hz.dark {
  --hz-veil: linear-gradient(180deg, rgba(3,9,20,.36), rgba(3,9,20,.70));
  --hz-glass: rgba(10,20,40,.52);
  --hz-glass2: rgba(10,20,40,.72);
  --hz-solid: #0C1628;
  --hz-edge: rgba(255,255,255,.11);
  --hz-edge2: rgba(255,255,255,.22);
  --hz-soft: rgba(255,255,255,.06);
  --hz-ink3: #71839F;
  --hz-accent: #3EE6B0;
  --hz-accent-soft: rgba(62,230,176,.16);
  --hz-mark: .12;
  --hz-shadow: 0 18px 50px rgba(0,0,0,.45);

  --bg-card: var(--hz-glass);
  --bg-card-2: rgba(10,20,40,.4);
  --bg-input: rgba(255,255,255,.07);
  --input-border: rgba(255,255,255,.16);
  --text-primary: #EAF2FF;
  --text-secondary: #AABBD6;
  --sheen: rgba(255,255,255,.06);
  --shadow-card: var(--hz-shadow);
  --shadow-lift: 0 26px 64px rgba(0,0,0,.6);
  color-scheme: dark;
}
html.hz { background: #0a1424; }
html.hz body {
  background: transparent;
  font-family: 'Figtree', 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
}
html.hz body::after { display: none; }

/* Fond : photo aerienne de la region + voile + logo en filigrane */
.hz-bg { position: fixed; inset: 0; z-index: -3; background: #0a1424 url('/assets/img/bg-horizon.jpg') center / cover no-repeat; }
.hz-veil { position: fixed; inset: 0; z-index: -2; background: var(--hz-veil); }
.hz-mark {
  position: fixed; z-index: -1; right: -5vw; bottom: -7vh;
  width: min(60vw, 720px); aspect-ratio: 1;
  background: url('/assets/img/logo-mark.png') center / contain no-repeat;
  opacity: var(--hz-mark); pointer-events: none;
}
@media (max-width: 900px) { .hz-mark { width: 86vw; right: -18vw; bottom: -4vh; } }

/* Panneaux de verre */
html.hz .glass-card,
html.hz .glass-card-dark {
  background: var(--hz-glass);
  border: 1px solid var(--hz-edge);
  box-shadow: var(--hz-shadow);
  border-radius: 1.25rem;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: var(--text-primary);
}
html.hz a.glass-card:hover, html.hz .glass-card.hoverable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
html.hz .bg-white,
html.hz [class~="bg-white/95"], html.hz [class~="bg-white/90"], html.hz [class~="bg-white/80"],
html.hz [class~="bg-white/70"], html.hz [class~="bg-white/60"], html.hz [class~="bg-white/50"] {
  background-color: var(--hz-glass) !important;
}
/* Classes a "!" de Tailwind (champs de recherche) */
html.hz .\!bg-white, html.hz .\!bg-white\/70 { background-color: var(--bg-input) !important; }
/* Pistes de barres de progression ecrites en style inline */
html.hz.dark [style*="background: #E2E8F0"], html.hz.dark [style*="background:#E2E8F0"], html.hz.dark [style*="background: #e2e8f0"] { background: rgba(255,255,255,.14) !important; }
html.hz .rounded-2xl.bg-white, html.hz .rounded-xl.bg-white.shadow-card { border: 1px solid var(--hz-edge); box-shadow: var(--hz-shadow) !important; }
html.hz #notif-panel, html.hz #quick-new-menu, html.hz #global-search-results, html.hz #doc-viewer-overlay > div {
  background-color: var(--hz-solid) !important;
  border: 1px solid var(--hz-edge2);
}
html.hz [class*="bg-slate-50"], html.hz [class*="bg-slate-100"], html.hz [class*="bg-gray-50"], html.hz [class*="bg-gray-100"] { background-color: var(--hz-soft) !important; }
html.hz [class*="border-slate-"], html.hz [class*="border-gray-"] { border-color: var(--hz-edge) !important; }
html.hz [class*="divide-slate-"] > * + * { border-color: var(--hz-edge) !important; }
html.hz table thead tr { border-color: var(--hz-edge); }

/* Barre laterale : verre flottant */
html.hz .hz-side {
  top: .75rem; left: .75rem; bottom: .75rem; height: auto; width: 16rem;
  border-radius: 1.5rem;
  background: var(--hz-glass2);
  border: 1px solid var(--hz-edge);
  box-shadow: var(--hz-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  color: var(--text-primary);
}
html.hz .hz-logo-tile { background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
html.hz .hz-brand { font-family: 'Sora', 'Figtree', sans-serif; letter-spacing: .14em; font-size: 14px; font-weight: 600; color: var(--text-primary); }
html.hz .hz-nav-item { color: var(--text-secondary); }
html.hz .hz-nav-item:hover { background: var(--hz-soft); color: var(--text-primary); }
html.hz .hz-nav-item.is-active {
  background: var(--hz-accent-soft); color: var(--hz-accent); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--hz-accent-soft), 0 0 22px -6px var(--hz-accent);
}
html.hz .hz-nav-badge { background: var(--hz-accent); color: #03231B; }
html.hz .hz-user { background: var(--hz-soft); }
html.hz .hz-user:hover { background: var(--hz-edge); }
html.hz .hz-user .hz-user-name { color: var(--text-primary); }
html.hz .hz-user .hz-user-role { color: var(--hz-ink3); }

/* Barre du haut : verre */
html.hz .hz-topbar {
  background: var(--hz-glass2) !important;
  border: 1px solid var(--hz-edge) !important;
  box-shadow: var(--hz-shadow);
  border-radius: 1.25rem;
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

/* Champs */
html.hz input[type="text"], html.hz input[type="email"], html.hz input[type="tel"], html.hz input[type="number"],
html.hz input[type="date"], html.hz input[type="datetime-local"], html.hz input[type="password"], html.hz input[type="url"],
html.hz input[type="search"], html.hz select, html.hz textarea {
  background: var(--bg-input); border-color: var(--input-border); color: var(--text-primary);
  border-radius: .85rem;
}
html.hz input::placeholder, html.hz textarea::placeholder { color: var(--hz-ink3); }
html.hz input:focus, html.hz select:focus, html.hz textarea:focus {
  border-color: var(--hz-accent); box-shadow: 0 0 0 3px var(--hz-accent-soft);
}
html.hz select option { background: var(--hz-solid); color: var(--text-primary); }
html.hz label.field-label { color: var(--text-secondary); }

/* Boutons deja utilises dans les vues */
html.hz a.bg-mint, html.hz button.bg-mint, html.hz input[type="submit"].bg-mint {
  background: linear-gradient(165deg, #46F0BB, #17B58A) !important; color: #03231B !important;
  box-shadow: 0 10px 26px -8px rgba(31,190,142,.65), inset 0 1px 0 rgba(255,255,255,.5) !important;
}
html.hz.dark a.bg-navy, html.hz.dark button.bg-navy {
  background: rgba(255,255,255,.12) !important; color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2) !important;
}
html.hz.dark a.bg-navy:hover, html.hz.dark button.bg-navy:hover { background: rgba(255,255,255,.2) !important; }

/* Textes et pastilles : lisibles sur verre, en nuit comme en jour */
html.hz.dark .text-slate-300, html.hz.dark .text-slate-400, html.hz.dark .text-slate-500, html.hz.dark .text-slate-600 { color: var(--text-secondary); }
html.hz.dark .text-slate-700, html.hz.dark .text-slate-800, html.hz.dark .text-slate-900, html.hz.dark .text-navy, html.hz.dark .text-ink { color: var(--text-primary); }
html.hz.dark .text-mint-dark, html.hz.dark .text-emerald-600, html.hz.dark .text-green-600 { color: #3EE6B0; }
html.hz.dark .text-red-400, html.hz.dark .text-red-500, html.hz.dark .text-red-600 { color: #FF8A82; }
html.hz.dark .text-gold-dark, html.hz.dark .text-amber-600, html.hz.dark .text-amber-500, html.hz.dark .text-orange-600 { color: #F5B841; }
html.hz.dark .text-sky-600, html.hz.dark .text-skyblue { color: #8DBBFF; }
html.hz.dark .text-purple-600, html.hz.dark .text-violet-600, html.hz.dark .text-indigo { color: #C9A2FF; }
html.hz.dark .bg-mint-light, html.hz.dark .bg-emerald-50, html.hz.dark .bg-green-50 { background-color: rgba(62,230,176,.16) !important; }
html.hz.dark .bg-gold-light, html.hz.dark .bg-amber-50, html.hz.dark .bg-orange-50 { background-color: rgba(245,184,65,.17) !important; }
html.hz.dark .bg-skyblue-light, html.hz.dark .bg-sky-50, html.hz.dark .bg-blue-50 { background-color: rgba(108,165,255,.18) !important; }
html.hz.dark .bg-indigo-soft, html.hz.dark .bg-purple-50, html.hz.dark .bg-violet-50 { background-color: rgba(178,132,255,.18) !important; }
html.hz.dark .bg-red-50 { background-color: rgba(255,107,98,.17) !important; }
html.hz.dark .hover\:bg-white\/50:hover, html.hz.dark .hover\:bg-white\/60:hover, html.hz.dark .hover\:bg-white\/40:hover,
html.hz.dark .hover\:bg-slate-50:hover, html.hz.dark .hover\:bg-slate-100:hover { background-color: rgba(255,255,255,.07) !important; }
html.hz.dark .border-slate-200, html.hz.dark .border-slate-100, html.hz.dark .border-white { border-color: var(--hz-edge); }
html.hz .rounded-full[class*="bg-"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }

/* Cartes Leaflet : bords arrondis, controles en verre */
html.hz .leaflet-container { border-radius: 1rem; }
html.hz .leaflet-bar a { background: var(--hz-glass2); color: var(--text-primary); border-color: var(--hz-edge); }
html.hz .leaflet-control-attribution { background: var(--hz-glass) !important; color: var(--text-secondary) !important; }
html.hz .leaflet-popup-content-wrapper, html.hz .leaflet-popup-tip { background: var(--hz-solid); color: var(--text-primary); }

/* Barres de defilement */
html.hz ::-webkit-scrollbar-thumb { background: var(--hz-edge2); }
html.hz footer { color: var(--hz-ink3); }

@media (prefers-reduced-motion: reduce) { html.hz * { scroll-behavior: auto !important; } }

/* =====================================================================
   REFONTE v198 - jour "Horizon clair" : on garde la photo aerienne, le logo en filigrane, le verre et le
   menu flottant, mais avec un voile plus clair, des cartes plus opaques et des textes plus contrastes.
   La nuit (html.hz.dark) est inchangee.
   ===================================================================== */
html.hz:not(.dark) {
  --hz-veil: linear-gradient(180deg, rgba(240,246,252,.58), rgba(236,243,250,.86));
  --hz-glass: rgba(255,255,255,.80); --hz-glass2: rgba(255,255,255,.90);
  --hz-edge: rgba(10,26,51,.12); --hz-ink3: #5B6B82;
  --hz-accent: #0A8A66; --hz-accent-soft: rgba(10,138,102,.13);
  --bg-card: rgba(255,255,255,.80); --text-secondary: #3D5070;
}
html.hz:not(.dark) .hz-mark { opacity: .16; }

/* Textes pales du mode jour : contraste suffisant sur fond blanc (les tout petits textes etaient illisibles) */
html.hz:not(.dark) .text-slate-300 { color: #7C8BA1; }
html.hz:not(.dark) .text-slate-400 { color: #5B6B82; }
html.hz:not(.dark) .text-slate-500 { color: #475569; }
html.hz:not(.dark) .text-mint-dark { color: #0B7A5A; }
html.hz:not(.dark) .text-amber-500 { color: #B45309; }
html.hz:not(.dark) .text-skyblue { color: #1D5FD1; }
html.hz:not(.dark) .text-red-400, html.hz:not(.dark) .text-red-500 { color: #C62828; }
/* Tailles minimales (nuit et jour) : 10 px -> 11 px, 11 px -> 12 px */
html.hz .text-\[10px\] { font-size: 11px; }
html.hz .text-\[11px\] { font-size: 12px; }

html.hz :focus-visible { outline: 2px solid var(--hz-accent); outline-offset: 2px; }

/* Menu : sections toujours depliees par defaut, lignes plus compactes */
html.hz .hz-nav-gsum { padding-top: .5rem; padding-bottom: .35rem; letter-spacing: .08em; font-weight: 600; color: var(--hz-ink3); }
html.hz .hz-nav-item { padding-top: .45rem; padding-bottom: .45rem; }
html.hz .hz-side-out { color: var(--hz-ink3); }
html.hz .hz-side-out:hover { color: var(--text-primary); background: var(--hz-soft); }

/* Tableau de bord : "a faire" + chiffres */
.db-card { background: var(--hz-glass); border: 1px solid var(--hz-edge); border-radius: 1.25rem; box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.db-h { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--text-primary); display: flex; align-items: center; gap: .4rem; }
.db-alert { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.db-alert b { font-weight: 800; }
.db-alert.is-red { background: #FDECEC; color: #B42318; border-color: #F9CFCB; }
.db-alert.is-amber { background: #FEF3DC; color: #8A5300; border-color: #F6DFA8; }
.db-alert.is-blue { background: #E8F0FE; color: #1D4FB8; border-color: #C9DAFB; }
html.hz.dark .db-alert.is-red { background: rgba(255,107,98,.16); color: #FF9A93; border-color: rgba(255,107,98,.3); }
html.hz.dark .db-alert.is-amber { background: rgba(245,184,65,.16); color: #F5B841; border-color: rgba(245,184,65,.3); }
html.hz.dark .db-alert.is-blue { background: rgba(108,165,255,.16); color: #9CC3FF; border-color: rgba(108,165,255,.3); }
.db-stat { padding: .85rem 1.1rem; min-width: 0; }
.db-stat + .db-stat { border-left: 1px solid var(--hz-edge); }
@media (max-width: 639px) { .db-stat:nth-child(odd) { border-left: 0; } .db-stat:nth-child(n+3) { border-top: 1px solid var(--hz-edge); } }
.db-stat p:first-child { font-size: 12px; color: var(--hz-ink3); }
.db-stat p:nth-child(2) { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.db-ca-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; font-size: 14px; }
.db-ca-row + .db-ca-row { border-top: 1px solid var(--hz-edge); }
.db-ca-row i { width: .6rem; height: .6rem; border-radius: 99px; display: inline-block; margin-right: .5rem; }
.db-ca-row b { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.db-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; font-size: 13px; font-weight: 600; color: var(--hz-ink3); padding: .6rem .25rem; }
.db-more > summary::-webkit-details-marker { display: none; }
.db-more > summary::before { content: "▸"; transition: transform .15s; }
.db-more[open] > summary::before { transform: rotate(90deg); }

/* ---- Correctifs de lisibilite (mode nuit) ---- */
html.hz.dark [style*="color: #121212"], html.hz.dark [style*="color:#121212"] { color: var(--text-primary) !important; }
html.hz.dark [class*="text-navy/"], html.hz.dark [class*="text-ink/"] { color: var(--text-secondary) !important; }

/* =====================================================================
   POSTE DE VOL (page Gestion vol UAS) : verdict, coupe des plafonds, cartes d'alerte
   ===================================================================== */
.hz-cockpit { display: grid; gap: 16px; }
.hz-eyebrow { font: 600 11px 'Sora', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--hz-ink3); margin: 0 0 6px; }
.hz-sub { font-size: 12.5px; color: var(--text-secondary); margin: 0; max-width: 62ch; }
.hz-cp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; }
.hz-verdict { display: flex; align-items: center; gap: 18px; }
.hz-ring { position: relative; width: 104px; height: 104px; flex: none; }
.hz-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.hz-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 22px 'Sora', sans-serif; }
.hz-vtitle { font: 600 clamp(20px, 3vw, 26px)/1.15 'Sora', sans-serif; letter-spacing: -.02em; margin: 0; }
.hz-vsub { margin: 4px 0 0; color: var(--text-secondary); font-size: 13.5px; }
.hz-cp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hz-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12px 'JetBrains Mono', monospace; padding: 5px 12px; border-radius: 99px; background: var(--hz-soft); color: var(--text-secondary); border: 1px solid var(--hz-edge); }
.hz-chip b { color: var(--text-primary); font-weight: 600; }
.hz-btn { font: 600 13px 'Figtree', sans-serif; color: var(--text-primary); background: var(--hz-soft); border: 1px solid var(--hz-edge2); border-radius: 12px; padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.hz-btn:hover { border-color: var(--hz-accent); }
.hz-btn:disabled { opacity: .5; cursor: not-allowed; }
.hz-btn-pri { background: var(--hz-accent); color: #03231B; border-color: transparent; box-shadow: 0 10px 26px -10px var(--hz-accent); }
.hz-btn-pri:hover { filter: brightness(1.06); }
.hz-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 10px; }

.hz-cp-corr { padding: 18px 22px 14px; }
.hz-cp-corr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hz-slide { display: flex; align-items: center; gap: 12px; }
.hz-slide label { font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.hz-slide output { font: 600 18px 'Sora', sans-serif; min-width: 5ch; }
.hz-slide input[type=range] { width: 220px; max-width: 46vw; padding: 0; accent-color: var(--hz-accent); background: none; border: 0; box-shadow: none; }
.hz-corr-wrap { overflow-x: auto; }
.hz-corr-wrap svg { display: block; width: 100%; height: auto; min-width: 520px; }
.hz-sim { margin: 6px 0 0; font: 500 12px 'JetBrains Mono', monospace; color: var(--text-secondary); min-height: 18px; }

.hz-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.hz-ccard {
  position: relative; display: grid; gap: 10px; padding: 16px 16px 12px; border-radius: 20px;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 55%), var(--hz-glass);
  border: 1px solid var(--hz-edge); box-shadow: var(--hz-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.hz-ccard:hover { transform: translateY(-2px); }
.hz-ccard.st-todo { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.hz-ccard.is-strict { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 20px 50px -20px var(--c); }
.hz-ccard.st-done { border-color: var(--hz-accent-soft); }
.hz-ccard.st-clear, .hz-ccard.is-clear { opacity: .6; }
.hz-cc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hz-cc-type { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.hz-cc-type i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hz-cc-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hz-state { font: 500 11px 'JetBrains Mono', monospace; color: var(--text-secondary); font-style: normal; }
.hz-sw { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.hz-sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.hz-sw span { position: absolute; inset: 0; border-radius: 99px; background: var(--hz-edge2); transition: background .2s; }
.hz-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.hz-sw input:checked + span { background: var(--hz-accent); }
.hz-sw input:checked + span::after { transform: translateX(18px); }
.hz-sw input:focus-visible + span { outline: 2px solid #6CA5FF; outline-offset: 2px; }
.hz-cc-title { font: 600 16px/1.25 'Sora', sans-serif; letter-spacing: -.01em; margin: 0; color: var(--text-primary); }
.hz-cc-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hz-rpill { font: 700 11px 'Figtree', sans-serif; background: var(--r); color: #fff; border-radius: 99px; padding: 3px 11px; }
.hz-mono { font: 500 12px 'JetBrains Mono', monospace; color: var(--text-secondary); }
.zs-hide { display: none !important; }
.hz-cc-zones { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -2px 0 2px; }
.hz-cc-zones-k { font: 600 10px 'Figtree', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.hz-zchip { font: 500 12px 'Figtree', sans-serif; background: var(--hz-soft); color: var(--text-primary); border-radius: 8px; padding: 3px 9px; }
.hz-zchip b { font-weight: 700; }
.hz-gauge { position: relative; height: 8px; border-radius: 99px; background: var(--hz-soft); margin: 4px 0 16px; }
.hz-gauge-floor { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 99px 99px 0; background: color-mix(in srgb, var(--c) 45%, transparent); }
.hz-gauge-h { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 3px; background: var(--hz-accent); box-shadow: 0 0 10px var(--hz-accent); transition: left .15s; }
.hz-gauge small { position: absolute; top: 12px; font: 500 10px 'JetBrains Mono', monospace; color: var(--hz-ink3); }
.hz-gauge-a { left: 0; } .hz-gauge-b { right: 0; }
.hz-cc-desc { display: grid; gap: 6px; }
.hz-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.hz-help { margin: 0; padding: 9px 11px; border-radius: 12px; background: var(--hz-soft); font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.hz-cc-links { display: flex; gap: 14px; flex-wrap: wrap; }
.hz-link { background: none; border: 0; padding: 0; cursor: pointer; font: 600 12px 'Figtree', sans-serif; color: #6CA5FF; }
html.hz:not(.dark) .hz-link { color: #2B6BDB; }
.hz-link:hover { text-decoration: underline; }
.hz-contact { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--hz-soft); border: 1px solid var(--hz-edge); }
.hz-ct-name { font: 600 13px 'Figtree', sans-serif; color: var(--text-primary); }
.hz-ct-note { margin: 0; font-size: 12px; color: #F5B841; }
html.hz:not(.dark) .hz-ct-note { color: #9C6A00; }
/* Onglets des pages Generateurs / documents */
.hz-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 18px; background: var(--hz-glass2); border: 1px solid var(--hz-edge2); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.hz-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--text-primary); background: var(--hz-soft); border: 1px solid var(--hz-edge); }
.hz-tab:hover { border-color: var(--hz-accent); }
.hz-tab.is-on { color: #04231a; background: var(--hz-accent); border-color: transparent; box-shadow: 0 6px 18px rgba(23, 180, 137, .3); }
@media (max-width: 720px) { .hz-tabs { flex-wrap: nowrap; overflow-x: auto; } }
/* Sous-entrees de la barre laterale (Suivi de mail, Bibliotheque) */
html.hz .hz-nav-sub { margin-left: 18px; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }

/* Navigation par sections (fiche mission) */
.hz-secnav { position: sticky; top: 8px; z-index: 25; display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-radius: 16px; background: var(--hz-glass2); border: 1px solid var(--hz-edge2); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); scrollbar-width: none; }
.hz-secnav::-webkit-scrollbar { display: none; }
.hz-secnav:empty { display: none; }
.hz-secnav a { flex: none; padding: 7px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--text-secondary); background: var(--hz-soft); border: 1px solid transparent; }
.hz-secnav a:hover { color: var(--text-primary); border-color: var(--hz-edge2); }
.hz-secnav a.is-on { color: #04231a; background: var(--hz-accent); }
@media (max-width: 720px) { .hz-secnav { top: 4px; border-radius: 14px; } .hz-secnav a { padding: 9px 14px; } }

/* Vols de la mission (briefing) */
.hz-vol-count { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--hz-accent, #2ED7A2); }
.hz-vols { display: grid; gap: 12px; margin-top: 12px; }
.hz-vol { border: 1px solid var(--hz-edge2, rgba(148, 163, 184, .3)); border-radius: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s; }
.hz-vol.is-done { border-color: rgba(46, 215, 162, .55); background: rgba(46, 215, 162, .07); }
.hz-vol-head { display: flex; align-items: center; gap: 12px; }
.hz-vol-check { position: relative; width: 30px; height: 30px; flex: none; cursor: pointer; }
.hz-vol-check input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hz-vol-check span { position: absolute; inset: 0; border-radius: 10px; border: 2px solid var(--hz-edge2, #94a3b8); transition: all .15s; }
.hz-vol-check input:checked + span { background: var(--hz-accent, #2ED7A2); border-color: var(--hz-accent, #2ED7A2); }
.hz-vol-check input:checked + span::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #06231b; }
.hz-vol-check input:focus-visible + span { outline: 2px solid #6CA5FF; outline-offset: 2px; }
.hz-vol .hz-vol-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; background: transparent !important; border: 1px solid transparent !important; padding: 6px 8px; border-radius: 10px; }
.hz-vol .hz-vol-title:hover, .hz-vol .hz-vol-title:focus { border-color: var(--hz-edge2, #94a3b8) !important; }
.hz-vol-state { font-size: 11px; font-weight: 600; white-space: nowrap; opacity: .7; }
.hz-vol.is-done .hz-vol-state { color: var(--hz-accent, #2ED7A2); opacity: 1; }
.hz-vol-del { flex: none; width: 30px; height: 30px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; opacity: .5; cursor: pointer; }
.hz-vol-del:hover { opacity: 1; color: #FF6B62; border-color: rgba(255, 107, 98, .4); }
.hz-vol-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.hz-vol-col { display: grid; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
.hz-vol-col textarea { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 720px) { .hz-vol-body { grid-template-columns: 1fr; } .hz-vol-state { display: none; } }
.hz-sent { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 2px 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #5DE0B4; background: rgba(46, 215, 162, .14); border: 1px solid rgba(46, 215, 162, .35); }
html.hz:not(.dark) .hz-sent { color: #0F766E; background: rgba(31, 190, 142, .12); }
.hz-ct-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hz-pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12px 'JetBrains Mono', monospace; padding: 4px 10px; border-radius: 99px; background: var(--hz-soft); border: 1px solid var(--hz-edge); color: var(--text-primary); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-pill:hover { border-color: var(--hz-accent); color: var(--hz-accent); }
.hz-contact .hz-btn { justify-self: start; }
.hz-cc-foot { display: flex; gap: 6px 16px; flex-wrap: wrap; border-top: 1px solid var(--hz-edge); padding-top: 8px; }
.hz-fold summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px 'Figtree', sans-serif; color: var(--text-primary); padding: 7px 12px; border-radius: 10px; background: var(--hz-soft); border: 1px solid var(--hz-edge2); }
.hz-fold summary::before { content: "✎"; font-size: 13px; opacity: .8; }
.hz-fold summary::-webkit-details-marker { display: none; }
.hz-fold summary:hover { border-color: var(--hz-accent); color: var(--hz-accent); }
.hz-fold[open] summary { border-color: var(--hz-accent); }
.hz-fold[open] { flex-basis: 100%; }
.hz-form { display: grid; gap: 8px; margin-top: 8px; }
.hz-form input, .hz-form textarea { font-size: 12.5px !important; padding-top: .45rem !important; padding-bottom: .45rem !important; }
.hz-hint { margin: 0; font-size: 11px; color: var(--hz-ink3); }
.hz-cp-empty { padding: 26px; text-align: center; }
.hz-cp-empty p:first-child { font: 600 16px 'Sora', sans-serif; margin: 0 0 6px; }
.hz-manual-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.hz-mchip { display: grid; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--text-primary); transition: transform .2s; }
.hz-mchip:hover { transform: translateY(-2px); }
.hz-mchip-cat { font: 600 10px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--hz-ink3); }
.hz-mchip b { font: 600 14px 'Figtree', sans-serif; }
.hz-mchip span:not(.hz-mchip-cat) { font-size: 12px; color: var(--text-secondary); }
.hz-mchip em { font: 600 12px 'Figtree', sans-serif; font-style: normal; color: #6CA5FF; }
html.hz:not(.dark) .hz-mchip em { color: #2B6BDB; }
@media (max-width: 640px) { .hz-cgrid { grid-template-columns: minmax(0, 1fr); } .hz-cp-head { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .hz-ccard, .hz-mchip, .hz-gauge-h { transition: none; } }

/* =====================================================================
   TACHES LOGISTIQUES
   ===================================================================== */
.hz-tasks { display: grid; gap: 16px; }
.hz-tk-head { padding: 20px 24px; display: grid; gap: 16px; }
.hz-tk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hz-tk-title { font: 600 clamp(22px, 3vw, 30px)/1.1 'Sora', sans-serif; letter-spacing: -.02em; margin: 0 0 6px; }
.hz-tk-kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.hz-chip.is-late { background: rgba(255,107,98,.16); color: #FF8A82; border-color: transparent; }
html.hz:not(.dark) .hz-chip.is-late { color: #C0362C; }
.hz-quick { display: grid; grid-template-columns: minmax(220px, 2.2fr) repeat(2, minmax(130px, 1fr)) 140px 110px 120px auto; gap: 8px; align-items: center; }
.hz-quick > * { min-width: 0; }
@media (max-width: 1180px) { .hz-quick { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .hz-q-title { grid-column: 1 / -1; } }
.hz-tk-nav { display: grid; gap: 10px; }
.hz-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--hz-glass); border: 1px solid var(--hz-edge); flex-wrap: wrap; width: max-content; max-width: 100%; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hz-seg a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font: 600 13px 'Figtree', sans-serif; color: var(--text-secondary); text-decoration: none; }
.hz-seg a:hover { color: var(--text-primary); }
.hz-seg a.is-on { background: var(--hz-accent); color: #03231B; }
.hz-seg a span { font: 600 11px 'JetBrains Mono', monospace; background: var(--hz-soft); border-radius: 99px; padding: 1px 8px; color: var(--text-primary); }
.hz-seg a.is-on span { background: rgba(3,35,27,.18); color: #03231B; }
.hz-seg a span.is-late { background: #FF6B62; color: #2E0805; }
.hz-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.hz-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--hz-edge); background: var(--hz-soft); font: 500 12px 'Figtree', sans-serif; color: var(--text-secondary); text-decoration: none; }
.hz-cats a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hz-cats a:hover { border-color: var(--hz-edge2); color: var(--text-primary); }
.hz-cats a.is-on { border-color: var(--hz-accent); color: var(--text-primary); background: var(--hz-accent-soft); }
.hz-tk-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .hz-tk-grid { grid-template-columns: minmax(0, 1fr); } }
.hz-tk-main, .hz-tk-side { display: grid; gap: 14px; min-width: 0; }
.hz-group { padding: 6px 0 4px; overflow: hidden; }
.hz-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 8px; }
.hz-group-head h3 { font: 600 15px 'Sora', sans-serif; margin: 0; letter-spacing: -.01em; }
.hz-group-head h3 a { color: inherit; text-decoration: none; }
.hz-group-head h3.is-late { color: #FF8A82; }
html.hz:not(.dark) .hz-group-head h3.is-late { color: #C0362C; }
.hz-count { font: 600 11px 'JetBrains Mono', monospace; background: var(--hz-soft); border-radius: 99px; padding: 1px 8px; margin-left: 6px; color: var(--text-secondary); }
.hz-group-prog { display: flex; align-items: center; gap: 10px; font: 500 12px 'JetBrains Mono', monospace; color: var(--text-secondary); }
.hz-bar { width: 110px; height: 6px; border-radius: 99px; background: var(--hz-soft); overflow: hidden; }
.hz-bar i { display: block; height: 100%; border-radius: 99px; background: var(--hz-accent); }
.hz-list { display: grid; }
.hz-task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--hz-edge); }
.hz-task:first-child { border-top: 0; }
.hz-task:hover { background: var(--hz-soft); }
.hz-check { width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--c, var(--hz-edge2)); background: transparent; color: #03231B; font-weight: 800; font-size: 13px; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .15s; }
.hz-check:hover { background: color-mix(in srgb, var(--c) 30%, transparent); }
.hz-task.is-done .hz-check { background: var(--hz-accent); border-color: var(--hz-accent); }
.hz-task-main { flex: 1; min-width: 0; }
.hz-task-title { margin: 0 0 6px; font: 600 14px/1.35 'Figtree', sans-serif; color: var(--text-primary); }
.hz-task.is-done .hz-task-title { text-decoration: line-through; color: var(--hz-ink3); }
.hz-task-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hz-tag { display: inline-flex; align-items: center; font: 500 11px 'JetBrains Mono', monospace; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c, #71839F) 18%, transparent); color: var(--text-secondary); text-decoration: none; border: 1px solid var(--hz-edge); }
.hz-tag[style] { color: var(--text-primary); }
.hz-tag-link { --c: #6CA5FF; }
.hz-tag-link:hover { border-color: var(--hz-accent); }
.hz-tag.is-late { background: rgba(255,107,98,.2); color: #FF8A82; border-color: transparent; font-weight: 600; }
html.hz:not(.dark) .hz-tag.is-late { color: #C0362C; }
.hz-tag.is-today { background: rgba(245,184,65,.2); color: #F5B841; border-color: transparent; font-weight: 600; }
html.hz:not(.dark) .hz-tag.is-today { color: #9C6A00; }
.hz-tag.is-high { background: rgba(178,132,255,.2); color: #C9A2FF; border-color: transparent; }
html.hz:not(.dark) .hz-tag.is-high { color: #6D3BC4; }
.hz-task-desc { margin: 6px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.hz-task-del { background: none; border: 0; color: var(--hz-ink3); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.hz-task-del:hover { color: #FF6B62; }
.hz-task-form { max-width: 460px; }
.hz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hz-empty { padding: 30px; text-align: center; }
.hz-empty p:first-child { font: 600 17px 'Sora', sans-serif; margin: 0 0 6px; }
.hz-side-card { padding: 18px 20px; display: grid; gap: 10px; }
.hz-prep { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--hz-edge); }
.hz-prep-name a { font: 600 13px 'Figtree', sans-serif; color: var(--text-primary); text-decoration: none; }
.hz-prep-name a:hover { color: var(--hz-accent); }
.hz-prep-name small { display: block; font: 500 11px 'JetBrains Mono', monospace; color: var(--hz-ink3); }
.hz-sugg { padding-top: 10px; border-top: 1px solid var(--hz-edge); display: grid; gap: 6px; }
.hz-sugg-title { margin: 0; font: 600 13px/1.35 'Figtree', sans-serif; display: flex; gap: 8px; align-items: flex-start; }
.hz-sugg-title i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-top: 5px; flex: none; box-shadow: 0 0 10px var(--c); }
.hz-sugg-why { margin: 0 0 0 17px; font-size: 12px; color: var(--text-secondary); }
.hz-sugg-act { margin-left: 17px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hz-sugg-act form { margin: 0; }

/* =====================================================================
   VIGNETTES DE PROJETS (tableau de bord) : photo aerienne de la zone de vol
   ===================================================================== */
.hz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hz-tile {
  position: relative; overflow: hidden; min-height: 210px; border-radius: 20px; display: flex; align-items: flex-end;
  border: 1px solid var(--hz-edge); box-shadow: var(--hz-shadow); color: #EAF2FF; text-decoration: none;
  background: linear-gradient(135deg, #0d1b33, #16305a);
}
.hz-tile::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/logo-mark.png') center / 46% no-repeat; opacity: .12; }
.hz-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hz-tile:hover img { transform: scale(1.05); }
.hz-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,9,20,.04) 25%, rgba(3,9,20,.88)); }
.hz-tile-in { position: relative; z-index: 2; padding: 16px; width: 100%; }
.hz-tile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hz-st { display: inline-flex; align-items: center; gap: 6px; font: 600 11px 'JetBrains Mono', monospace; background: rgba(3,9,20,.62); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 3px 10px; color: #EAF2FF; }
.hz-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.hz-tile b { display: block; font: 600 16px/1.25 'Sora', sans-serif; letter-spacing: -.01em; margin: 8px 0 2px; color: #fff; }
.hz-tile small { color: #B7C6DE; font-size: 12.5px; }
.hz-tile-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.22); margin-top: 10px; overflow: hidden; }
.hz-tile-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
@media (prefers-reduced-motion: reduce) { .hz-tile img { transition: none; } }

/* =====================================================================
   GESTION VOL UAS : haut de page en poste de pilotage (bandeau, carte, couches, verdict, checklist)
   ===================================================================== */
.hz-mhead { padding: 16px 20px; display: grid; gap: 12px; }
.hz-mhead-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hz-mhead-t h2 { font: 600 clamp(20px, 2.6vw, 26px)/1.15 'Sora', sans-serif; letter-spacing: -.02em; margin: 0 6px 0 0; }
.hz-mhead-a { display: flex; gap: 8px; flex-wrap: wrap; }
.hz-btn.is-on { background: var(--hz-accent-soft); color: var(--hz-accent); border-color: transparent; cursor: default; }
a.hz-btn { text-decoration: none; }
.hz-chip.is-amber { background: rgba(245,184,65,.18); color: #F5B841; border-color: transparent; }
html.hz:not(.dark) .hz-chip.is-amber { color: #9C6A00; }
.hz-chip.is-sky { background: rgba(108,165,255,.18); color: #6CA5FF; border-color: transparent; }
html.hz:not(.dark) .hz-chip.is-sky { color: #2B6BDB; }
.hz-chip.is-ok { background: var(--hz-accent-soft); color: var(--hz-accent); border-color: transparent; }
.hz-chip.is-red { background: rgba(255,107,98,.18); color: #FF8A82; border-color: transparent; }
html.hz:not(.dark) .hz-chip.is-red { color: #C0362C; }
.hz-eyebrow.sm { font-size: 10px; margin: 12px 0 2px; }

.hz-ftop { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .hz-ftop { grid-template-columns: minmax(0, 1fr); } }
.hz-fcol { display: grid; gap: 16px; min-width: 0; align-content: start; }
.hz-fmap { padding: 0; overflow: hidden; }
.hz-fmap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; }
.hz-basesw { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--hz-soft); border: 1px solid var(--hz-edge); }
.hz-basesw button { font: 600 12px 'Figtree', sans-serif; color: var(--text-secondary); background: none; border: 0; border-radius: 9px; padding: 6px 14px; cursor: pointer; }
.hz-basesw button[aria-pressed="true"] { background: var(--text-primary); color: var(--hz-solid); }
.hz-fmap-frame { position: relative; isolation: isolate; margin: 0 12px 12px; border-radius: 16px; overflow: hidden; }
.hz-fmap-frame #zone-map { height: 540px; border-radius: 16px; }
.hz-layers { position: absolute; z-index: 1000; left: 12px; top: 12px; bottom: 12px; width: 216px; padding: 12px 12px 8px; overflow: auto; line-height: 1.4; background: var(--hz-glass2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hz-layers h5 { font: 600 10px 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--hz-ink3); margin: 10px 0 4px; }
.hz-layers h5:first-child { margin-top: 0; }
.hz-lr { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 5px 2px; color: var(--text-primary); font: 500 12.5px 'Figtree', sans-serif; cursor: pointer; text-align: left; border-radius: 8px; text-decoration: none; }
.hz-lr .sw { width: 14px; height: 14px; border-radius: 5px; flex: none; border: 2px solid var(--hz-ink3); background: transparent; }
.hz-lr[aria-pressed="true"] .sw, .hz-lr .sw.on { background: var(--c); border-color: var(--c); }
.hz-lr .n { margin-left: auto; font: 500 11px 'JetBrains Mono', monospace; color: var(--hz-ink3); }
.hz-lr .ext { margin-left: auto; font: 500 10px 'JetBrains Mono', monospace; color: #6CA5FF; }
.hz-lr.is-zero { opacity: .55; }
.hz-lr.is-static { cursor: default; }
.hz-coord { position: absolute; z-index: 1000; left: 240px; bottom: 12px; font: 500 12px 'JetBrains Mono', monospace; padding: 5px 12px; border-radius: 99px; background: var(--hz-glass2); border: 1px solid var(--hz-edge); color: var(--text-secondary); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hz-vbadge { position: absolute; z-index: 1000; right: 12px; top: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; line-height: 1.3; background: var(--hz-glass2); max-width: min(320px, calc(100% - 260px)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hz-vbadge strong { display: block; font: 600 14px 'Sora', sans-serif; }
.hz-vbadge span { font-size: 12px; color: var(--text-secondary); }
.hz-ring.sm { width: 54px; height: 54px; }
.hz-ring.sm svg { width: 54px; height: 54px; }
.hz-ring.sm b { font-size: 13px; }
@media (max-width: 1180px) {
  .hz-layers { position: static; width: auto; margin: 10px 0 0; max-height: 260px; }
  .hz-coord { left: 12px; }
  .hz-vbadge { max-width: calc(100% - 24px); }
  .hz-fmap-frame { overflow: visible; }
  .hz-fmap-frame #zone-map { height: 420px; }
}
.hz-checks { padding: 18px 20px; }
.hz-checks-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.hz-checks-head .hz-eyebrow { margin: 0; }
.hz-crow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hz-crow .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--hz-edge2); color: transparent; font-size: 12px; font-weight: 700; }
.hz-crow.st-done .dot { background: var(--hz-accent); border-color: var(--hz-accent); color: #03231B; }
.hz-crow.is-block .dot { border-color: #FF6B62; background: rgba(255,107,98,.18); color: #FF6B62; }
.hz-crow .tx { flex: 1; min-width: 0; }
.hz-crow .tx a, .hz-crow .tx span { font: 600 13.5px/1.3 'Figtree', sans-serif; color: var(--text-primary); text-decoration: none; }
.hz-crow .tx a:hover { color: var(--hz-accent); }
.hz-crow .tx small { display: block; font-size: 12px; color: var(--hz-ink3); }
.hz-crow-act { font: 600 12px 'Figtree', sans-serif; color: #6CA5FF; white-space: nowrap; text-decoration: none; }
html.hz:not(.dark) .hz-crow-act { color: #2B6BDB; }
.hz-crow-act.is-done { color: var(--hz-ink3); }
.hz-crow-sw { margin: 0; }
.hz-day-card { padding: 18px 20px; }
.hz-day { position: relative; height: 48px; margin: 6px 0 2px; }
.hz-day .track { position: absolute; left: 0; right: 0; top: 20px; height: 8px; border-radius: 99px; background: var(--hz-soft); }
.hz-day .seg { position: absolute; top: 20px; height: 8px; border-radius: 99px; background: var(--hz-accent); }
.hz-day .tick { position: absolute; top: 34px; font: 500 11px 'JetBrains Mono', monospace; color: var(--hz-ink3); transform: translateX(-50%); }
.hz-day .tick.sun { color: #F5B841; }
.hz-day .flag { position: absolute; top: 2px; font: 500 11px 'JetBrains Mono', monospace; color: var(--text-secondary); transform: translateX(-50%); white-space: nowrap; }
.hz-wind { width: 100%; display: block; margin-top: 8px; }
.hz-wind-legend { display: flex; justify-content: space-between; font: 500 11px 'JetBrains Mono', monospace; color: var(--hz-ink3); }
.hz-cp-corr .hz-sim { margin-top: 8px; }
/* =====================================================================
   Mode terrain (theme Horizon) : gros boutons, une colonne, lisible en plein soleil
   ===================================================================== */
.fd-body { min-height: 100vh; font-family: 'Figtree', system-ui, sans-serif; color: var(--text-primary); -webkit-tap-highlight-color: transparent; padding-bottom: env(safe-area-inset-bottom, 0); }
.fd { max-width: 560px; margin: 0 auto; padding-bottom: 96px; }
.fd button, .fd a { touch-action: manipulation; }
.fd-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0)) 14px 10px; background: var(--hz-glass2); border-bottom: 1px solid var(--hz-edge); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.fd-back, .fd-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-primary); background: var(--hz-soft); border: 1px solid var(--hz-edge); text-decoration: none; cursor: pointer; }
.fd-top-txt { flex: 1; min-width: 0; display: grid; }
.fd-top-txt span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--hz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-top-txt strong { font-family: 'Sora', 'Figtree', sans-serif; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-stage { flex: none; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); max-width: 34vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-main { display: grid; gap: 14px; padding: 14px; }
.fd-card, .fd-hero { background: var(--hz-glass); border: 1px solid var(--hz-edge); border-radius: 22px; box-shadow: var(--hz-shadow); padding: 16px; -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.fd h2 { margin: 0; font-family: 'Sora', 'Figtree', sans-serif; font-size: 15px; font-weight: 700; }
.fd-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fd-sec-head small { color: var(--hz-ink3); font-weight: 600; }
.fd-empty { margin: 0; color: var(--hz-ink3); font-size: 14px; }
.fd-ok { margin: 0; text-align: center; color: var(--hz-accent); font-weight: 700; }

/* Itineraire + meteo */
.fd-hero { display: grid; gap: 12px; }
.fd-go { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 18px; text-decoration: none; color: #04231a; background: linear-gradient(160deg, #3EE6B0, #17B489); box-shadow: 0 10px 26px rgba(23, 180, 137, .35); }
.fd-go-ico { font-size: 26px; }
.fd-go span:last-child { display: grid; min-width: 0; }
.fd-go b { font-size: 17px; }
.fd-go small { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-wx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fd-wx-cell { text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--hz-soft); border: 1px solid var(--hz-edge); }
.fd-wx-cell small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--hz-ink3); }
.fd-wx-cell b { font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.fd-wx.is-bad .fd-wx-cell { border-color: rgba(255, 107, 98, .6); background: rgba(255, 107, 98, .12); }
.fd-wx-note { margin: 0; font-size: 12px; color: var(--hz-ink3); }

/* Boutons */
.fd-btn { width: 100%; min-height: 56px; padding: 0 18px; border-radius: 16px; font: 700 15px 'Figtree', sans-serif; color: var(--text-primary); background: var(--hz-soft); border: 1px solid var(--hz-edge2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s; }
.fd-btn:active { transform: scale(.97); }
.fd-btn-xl { min-height: 68px; font-size: 18px; }
.fd-btn-pri { color: #04231a; background: linear-gradient(160deg, #3EE6B0, #17B489); border-color: transparent; box-shadow: 0 10px 24px rgba(23, 180, 137, .3); }
.fd-btn-danger { color: #FF6B62; background: rgba(255, 107, 98, .12); border-color: rgba(255, 107, 98, .4); }
.fd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-clock { display: grid; gap: 14px; }
.fd-timer { text-align: center; }
.fd-timer b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 44px; letter-spacing: .02em; color: var(--hz-accent); font-variant-numeric: tabular-nums; }
.fd-timer small { color: var(--hz-ink3); }

/* Briefing */
.fd-brief { border-color: rgba(245, 184, 65, .5); background: linear-gradient(180deg, rgba(245, 184, 65, .14), var(--hz-glass)); }
.fd-brief h2 { color: #F5B841; margin-bottom: 8px; }
html.hz:not(.dark) .fd-brief h2 { color: #9C6A00; }
.fd-brief p { margin: 0; font-size: 15px; line-height: 1.5; }

/* Vols */
.fd-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--hz-accent) calc(var(--p) * 1%), var(--hz-edge2) 0); position: relative; }
.fd-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--hz-solid); }
.fd-ring b { position: relative; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.fd-vols { display: grid; gap: 10px; }
.fd-vol { border: 1px solid var(--hz-edge2); border-radius: 18px; background: var(--hz-soft); overflow: hidden; }
.fd-vol.is-done { border-color: rgba(62, 230, 176, .55); background: var(--hz-accent-soft); }
.fd-vol-row { display: flex; align-items: center; gap: 12px; padding: 10px; }
.fd-check { flex: none; width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--hz-edge2); background: transparent; color: transparent; font-size: 28px; font-weight: 800; cursor: pointer; }
.fd-vol.is-done .fd-check { background: var(--hz-accent); border-color: var(--hz-accent); color: #04231a; }
.fd-vol-name { flex: 1; min-width: 0; min-height: 56px; display: grid; align-content: center; text-align: left; background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer; padding: 0 4px; }
.fd-vol-name b { font-size: 17px; font-family: 'Sora', 'Figtree', sans-serif; }
.fd-vol-name small { color: var(--hz-ink3); font-weight: 600; }
.fd-vol.is-done .fd-vol-name small { color: var(--hz-accent); }
.fd-vol-detail { display: none; padding: 0 12px 12px; gap: 10px; }
.fd-vol.is-open .fd-vol-detail { display: grid; }
.fd-block { border-radius: 14px; padding: 12px 14px; background: var(--hz-soft); border: 1px solid var(--hz-edge); }
.fd-block small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hz-ink3); }
.fd-block p { margin: 0; font-size: 16px; line-height: 1.5; }
.fd-block-warn { border-color: rgba(245, 184, 65, .5); background: rgba(245, 184, 65, .1); }

/* Listes (contraintes, equipe) */
.fd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fd-cons, .fd-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--hz-soft); border: 1px solid var(--hz-edge); min-height: 56px; }
.fd-cons > div, .fd-person > div { flex: 1; min-width: 0; display: grid; }
.fd-cons b, .fd-person b { font-size: 14px; }
.fd-cons small, .fd-person small { color: var(--hz-ink3); font-size: 12px; }
.fd-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #F5B841; box-shadow: 0 0 0 4px rgba(245, 184, 65, .2); }
.fd-cons.is-ok .fd-dot { background: var(--hz-accent); box-shadow: 0 0 0 4px var(--hz-accent-soft); }
.fd-call { flex: none; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; color: #04231a; background: linear-gradient(160deg, #3EE6B0, #17B489); }
.fd-chip { flex: none; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-transform: capitalize; }
.fd-chip.ok { color: var(--hz-accent); background: var(--hz-accent-soft); }
.fd-chip.warn { color: #F5B841; background: rgba(245, 184, 65, .14); }

/* Formulaires */
.fd-form, .fd-note { display: grid; gap: 10px; }
.fd-note { grid-template-columns: 1fr auto; margin-top: 10px; }
.fd-note .fd-btn { width: auto; }
.fd input[type="text"], .fd input[type="number"] { width: 100%; min-height: 54px; padding: 0 14px; border-radius: 14px; font-size: 16px; }
.fd-file { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 14px; border-radius: 14px; border: 2px dashed var(--hz-edge2); color: var(--hz-ink3); font-weight: 600; text-align: center; cursor: pointer; }
.fd-file input { display: none; }
.fd-more { display: block; text-align: center; padding: 10px; color: var(--hz-ink3); font-size: 14px; text-decoration: none; }

/* Urgence */
.fd-sos { position: fixed; z-index: 30; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0)); max-width: 532px; margin: 0 auto; min-height: 60px; border-radius: 20px; border: 0; color: #fff; font: 800 17px 'Figtree', sans-serif; letter-spacing: .04em; background: linear-gradient(160deg, #FF5A50, #D63A31); box-shadow: 0 14px 34px rgba(214, 58, 49, .5); cursor: pointer; }
.fd-sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.fd-sheet[hidden] { display: none; }
.fd-sheet-bg { position: absolute; inset: 0; background: rgba(2, 8, 18, .6); }
.fd-sheet-panel { position: relative; width: 100%; max-width: 560px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0)); border-radius: 26px 26px 0 0; background: var(--hz-solid); border: 1px solid var(--hz-edge2); display: grid; gap: 10px; }
.fd-sos-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 18px; border-radius: 18px; text-decoration: none; color: #FF6B62; background: rgba(255, 107, 98, .12); border: 1px solid rgba(255, 107, 98, .35); font-weight: 700; }
.fd-sos-row b { font-family: 'JetBrains Mono', monospace; font-size: 26px; }
@media (prefers-reduced-motion: reduce) { .fd-btn { transition: none; } }
/* Mode terrain : carte hybride + position reelle */
.fd-mapwrap { position: relative; margin: 14px 14px 0; height: 42vh; min-height: 260px; max-height: 520px; border-radius: 22px; overflow: hidden; border: 1px solid var(--hz-edge2); box-shadow: var(--hz-shadow); background: #0a1424; }
#fd-map { position: absolute; inset: 0; background: #0a1424; }
.fd-map-tools { position: absolute; z-index: 500; top: 10px; right: 10px; display: grid; gap: 8px; }
.fd-map-tools button { width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(8, 16, 32, .78); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fd-map-tools button[aria-pressed="true"] { background: var(--hz-accent); color: #04231a; border-color: transparent; }
.fd-map-tools button:active { transform: scale(.94); }
.fd-map-chip { position: absolute; z-index: 500; left: 10px; bottom: 10px; max-width: calc(100% - 78px); padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(8, 16, 32, .8); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fd-map-chip.is-in { background: rgba(23, 180, 137, .9); color: #04231a; }
.fd-map-chip.is-err { background: rgba(214, 58, 49, .88); }
.fd-mapwrap.is-full { position: fixed; z-index: 60; inset: 0; margin: 0; height: auto; max-height: none; border-radius: 0; border: 0; }
.fd-mapwrap .leaflet-control-attribution { font-size: 9px; background: rgba(8, 16, 32, .55); color: #cbd5e1; }
.fd-mapwrap .leaflet-control-attribution a { color: #cbd5e1; }
/* Ta position : logo Aerothau dans un rond, avec halo qui pulse */
.fd-me { background: none; border: 0; }
.fd-me img { position: absolute; inset: 4px; width: 32px; height: 32px; padding: 3px; border-radius: 50%; background: #fff; border: 2px solid #4C8DFF; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); object-fit: contain; }
.fd-me i { position: absolute; inset: 0; border-radius: 50%; background: rgba(76, 141, 255, .45); animation: fd-pulse 2s ease-out infinite; }
@keyframes fd-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fd-me i { animation: none; } }

/* Tablette en portrait : colonne un peu plus large */
@media (min-width: 700px) and (orientation: portrait) { .fd { max-width: 760px; } .fd-mapwrap { height: 46vh; } }

/* Paysage : la carte occupe la moitie gauche (fixe), les panneaux defilent a droite */
@media (orientation: landscape) and (min-width: 600px) {
  .fd { max-width: none; padding-bottom: 0; }
  .fd-top { padding-top: calc(6px + env(safe-area-inset-top, 0)); padding-bottom: 6px; }
  .fd-back, .fd-icon { width: 42px; height: 42px; }
  .fd-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 0; align-items: start; }
  .fd-mapwrap { position: sticky; top: 64px; height: calc(100vh - 76px); min-height: 0; max-height: none; margin: 10px 0 10px 10px; }
  .fd-mapwrap.is-full { position: fixed; top: 0; height: auto; margin: 0; }
  .fd-main { padding: 10px 12px 96px; }
  .fd-hero { padding: 12px; }
  .fd-go { min-height: 54px; }
  .fd-timer b { font-size: 34px; }
  .fd-sos { left: auto; right: 12px; width: min(calc(40vw - 24px), 420px); max-width: none; min-height: 54px; }
}
/* Grand ecran paysage (tablette 10") : carte plus large */
@media (orientation: landscape) and (min-width: 1000px) { .fd-shell { grid-template-columns: minmax(0, 1.5fr) minmax(380px, .9fr); } }
/* =====================================================================
   Taches : actions rapides (coche instantanee, report, check-list)
   ===================================================================== */
.tq-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 14px; font: 600 14px 'Figtree', system-ui, sans-serif; color: #EAF2FF; background: rgba(8, 16, 32, .94); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); transition: transform .2s, opacity .2s; }
.tq-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.tq-toast.is-error { background: rgba(160, 30, 30, .95); }
.tq-toast button { border: 0; background: rgba(62, 230, 176, .18); color: #5DE0B4; font: 700 13px inherit; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
[data-task-row] { transition: opacity .25s, transform .25s, max-height .26s; }
[data-task-row].is-leaving { opacity: 0; transform: translateX(16px); }
[data-task-row][hidden] { display: none !important; }
.hz-task.is-done .hz-task-title, .tq-line.is-done .tq-title { text-decoration: line-through; opacity: .55; }
/* Report rapide sous une tache */
.tq-snooze { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tq-snooze button { border: 1px solid var(--hz-edge2, rgba(148, 163, 184, .4)); background: var(--hz-soft, rgba(255, 255, 255, .06)); color: var(--text-secondary, inherit); font: 600 11.5px 'Figtree', sans-serif; padding: 4px 10px; border-radius: 99px; cursor: pointer; }
.tq-snooze button:hover { border-color: var(--hz-accent, #2ED7A2); color: var(--text-primary, inherit); }
.hz-task.is-done .tq-snooze { display: none; }
/* Ligne de tache compacte (tableau de bord, fiche mission) */
.tq-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.tq-line .tq-box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--hz-edge2, #94a3b8); background: transparent; color: transparent; font-weight: 800; font-size: 14px; line-height: 1; cursor: pointer; }
.tq-line.is-done .tq-box { background: var(--hz-accent, #2ED7A2); border-color: var(--hz-accent, #2ED7A2); color: #04231a; }
.tq-line .tq-title { flex: 1; min-width: 0; font-size: 14px; }
.tq-line .tq-date { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--hz-soft, rgba(148, 163, 184, .18)); }
.tq-line .tq-date.is-late { color: #FF6B62; background: rgba(255, 107, 98, .14); }
.tq-line .tq-snz { flex: none; border: 0; background: none; color: inherit; opacity: .5; cursor: pointer; font-size: 13px; padding: 4px; }
.tq-line .tq-snz:hover { opacity: 1; }
/* Mode terrain : taches de la mission, gros boutons */
.fd-task { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: var(--hz-soft); border: 1px solid var(--hz-edge); text-align: left; color: inherit; font: inherit; cursor: pointer; }
.fd-task .fd-tbox { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--hz-edge2); display: grid; place-items: center; font-size: 22px; font-weight: 800; color: transparent; }
.fd-task.is-done { background: var(--hz-accent-soft); border-color: rgba(62, 230, 176, .5); }
.fd-task.is-done .fd-tbox { background: var(--hz-accent); border-color: var(--hz-accent); color: #04231a; }
.fd-task .fd-tt { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.fd-task.is-done .fd-tt { text-decoration: line-through; opacity: .6; }
.fd-task small { display: block; font-weight: 500; color: var(--hz-ink3); }

/* Check-list plein ecran */
.cl { max-width: 720px; margin: 0 auto; padding: 0 14px 40px; }
.cl-hero { display: flex; align-items: center; gap: 16px; margin: 14px 0; padding: 16px; border-radius: 22px; background: var(--hz-glass); border: 1px solid var(--hz-edge); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cl-hero h1 { margin: 0; font: 700 18px 'Sora', 'Figtree', sans-serif; }
.cl-hero small { color: var(--hz-ink3); }
.cl-bar { height: 10px; border-radius: 99px; background: var(--hz-edge2); overflow: hidden; margin-top: 8px; }
.cl-bar > i { display: block; height: 100%; width: 0; background: var(--hz-accent); transition: width .25s; }
.cl-ready { display: none; margin: 0 0 14px; padding: 16px; border-radius: 18px; text-align: center; font: 700 18px 'Sora', 'Figtree', sans-serif; color: #04231a; background: linear-gradient(160deg, #3EE6B0, #17B489); }
.cl.is-complete .cl-ready { display: block; }
.cl-group { margin: 16px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-ink3); font-weight: 700; }
.cl-list { display: grid; gap: 8px; }
.cl-empty { padding: 18px; border-radius: 18px; background: var(--hz-soft); text-align: center; color: var(--hz-ink3); }
/* Barre laterale : sections repliables */
html.hz .hz-nav-gsum { list-style: none; color: var(--hz-ink3, var(--text-secondary)); font-weight: 700; letter-spacing: .1em; }
html.hz .hz-nav-gsum::-webkit-details-marker { display: none; }
html.hz .hz-nav-gsum:hover { background: var(--hz-soft); color: var(--text-primary); }
html.hz .hz-nav-chev { transition: transform .15s ease; opacity: .7; }
html.hz .hz-nav-group[open] > .hz-nav-gsum .hz-nav-chev { transform: rotate(180deg); }
html.hz .hz-nav-group[open] > .hz-nav-gsum .group-open-hide { display: none; }

/* Barre d'etapes d'une mission */
.hz-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; border-radius: 18px; background: var(--hz-glass2); border: 1px solid var(--hz-edge2); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.hz-step { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hz-step-l { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hz-ink3, var(--text-secondary)); padding-left: 4px; }
.hz-step-i { display: flex; gap: 6px; flex-wrap: wrap; }
.hz-steps .hz-tab { padding: 7px 12px; font-size: 13px; }
@media (max-width: 720px) { .hz-steps { flex-wrap: nowrap; overflow-x: auto; } .hz-step { flex: none; } .hz-step-i { flex-wrap: nowrap; } }

/* Badge des contraintes (barre d'etapes) : orange = a traiter, vert + pouce leve = tout est valide */
.hz-cbadge { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; }
.hz-cbadge.is-todo { background: #F59E0B; color: #2B1A00; }
.hz-cbadge.is-ok { background: #16A34A; color: #fff; font-size: 12px; }
.hz-tab.is-on .hz-cbadge.is-todo { background: #B45309; color: #fff; }

/* ============================================================================================================================
 * Menu de la mission (v262) : 4 entrees + sous-menu du groupe courant, bandeau « Prochaine action », resume fixe a droite,
 * barre du bas et mode tablette. Jetons : --hz-glass2 / --hz-edge / --hz-soft / --hz-ink3 / --hz-accent (themes clair et sombre).
 * ========================================================================================================================== */
.hz-mnav { display: flex; flex-direction: column; gap: 10px; }
.hz-mnav-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; border-radius: 18px; background: var(--hz-glass2); border: 1px solid var(--hz-edge2); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.hz-mi { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 12px; font: 600 15px/1.2 'Figtree', sans-serif; color: var(--text-primary); text-decoration: none; background: var(--hz-soft); border: 1px solid var(--hz-edge); white-space: nowrap; }
.hz-mi .icon { width: 20px; height: 20px; flex: none; }
.hz-l-s { display: none; }
@media (max-width: 480px) { .hz-l-f { display: none; } .hz-l-s { display: inline; } }
@media (hover: hover) and (pointer: fine) { .hz-mi:hover { border-color: var(--hz-accent); } }
.hz-mi.is-on { color: #04231a; background: var(--hz-accent); border-color: transparent; box-shadow: 0 6px 18px rgba(23, 180, 137, .3); }
.hz-mi.is-on .hz-cbadge.is-todo { background: #B45309; color: #fff; }
.hz-mnav-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.hz-si { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font: 600 14px/1.2 'Figtree', sans-serif; color: var(--text-primary); text-decoration: none; border: 1px solid var(--hz-edge); background: transparent; white-space: nowrap; }
.hz-si .icon { width: 16px; height: 16px; flex: none; opacity: .75; }
@media (hover: hover) and (pointer: fine) { .hz-si:hover { border-color: var(--hz-accent); background: var(--hz-soft); } }
.hz-si.is-on { border-color: var(--hz-accent); background: var(--hz-accent-soft); }
.hz-si .hz-cbadge { margin-left: 2px; }
@media (max-width: 720px) {
  .hz-mnav-main { gap: 6px; padding: 6px; }
  .hz-mi { flex-direction: column; gap: 4px; min-height: 58px; padding: 8px 4px; min-width: 0; font-size: 12px; line-height: 1.15; text-align: center; white-space: normal; }
  .hz-mnav-sub { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}

.hz-next { --nx: #64748B; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--hz-edge2); border-left: 6px solid var(--nx); background: var(--hz-glass2); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hz-next.is-ok { --nx: #16A34A; } .hz-next.is-info { --nx: #3B82F6; } .hz-next.is-warn { --nx: #F59E0B; } .hz-next.is-bad { --nx: #DC2626; }
.hz-next-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--nx) 16%, transparent); color: var(--nx); }
.hz-next-i .icon { width: 22px; height: 22px; }
.hz-next-b { flex: 1 1 0; min-width: 0; }
.hz-next-k { margin: 0 0 4px; font: 700 10px/1 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--hz-ink3); }
.hz-next-t { margin: 0; font: 600 17px/1.25 'Sora', sans-serif; color: var(--text-primary); overflow-wrap: anywhere; text-wrap: balance; }
.hz-next-d { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-secondary); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
@media (max-width: 720px) { .hz-next { flex-wrap: wrap; } .hz-next .hz-btn { width: 100%; justify-content: center; } }
@media (max-width: 480px) { .hz-next { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; } .hz-next-i { width: auto; height: auto; justify-content: flex-start; background: none; } .hz-next-t { font-size: 16px; } }

.hz-aside { margin-top: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--hz-edge2); background: var(--hz-glass2); box-shadow: var(--hz-shadow); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.hz-aside-k, .hz-aside-h { margin: 0 0 8px; font: 700 10px/1 'Sora', sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--hz-ink3); }
.hz-aside-h { margin-top: 16px; }
.hz-aside-h small { margin-left: 4px; font-size: 10px; opacity: .8; }
.hz-aside-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hz-edge); }
.hz-aside-l { font-size: 13px; color: var(--text-secondary); }
.hz-aside-v { min-width: 0; font-size: 14px; font-weight: 700; color: var(--text-primary); text-decoration: none; text-align: right; font-variant-numeric: tabular-nums; }
.hz-aside-v small { font-weight: 500; color: var(--text-secondary); }
.hz-aside-v em { font-weight: 500; color: #B45309; }
.hz-pill { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.hz-pill.is-go { background: #16A34A; color: #fff; } .hz-pill.is-att { background: #F59E0B; color: #2B1A00; } .hz-pill.is-nogo { background: #DC2626; color: #fff; }
.hz-aside-dl { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hz-aside-dl li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--hz-soft); font-size: 13px; color: var(--text-secondary); }
.hz-aside-dl li b { min-width: 0; font-weight: 700; color: var(--text-primary); text-align: right; overflow-wrap: anywhere; text-wrap: balance; font-variant-numeric: tabular-nums; }
.hz-aside-dl li.is-late b { color: #DC2626; } .hz-aside-dl li.is-soon b { color: #B45309; } .hz-aside-dl li.is-done b { color: #16A34A; }
.hz-aside-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.hz-aside-note:empty { display: none; }
/* selecteur de zones vertical (une zone par ligne) dans le resume */
.hz-aside .zsel.zv { flex-direction: column; gap: 4px; margin: 0; overflow: visible; }
.hz-aside .zsel.zv .zsel-chip { width: 100%; align-items: flex-start; justify-content: flex-start; white-space: normal; text-align: left; padding: 9px 10px; border-bottom: 0; border-left: 4px solid transparent; border-radius: 10px; opacity: .85; }
.hz-aside .zsel.zv .zsel-chip .zsel-sub { margin-left: auto; white-space: nowrap; }
.hz-aside .zsel.zv .zsel-dot { margin-top: 4px; }
.hz-aside .zsel.zv .zsel-chip[aria-selected=true] { opacity: 1; border-left-color: var(--zc, var(--hz-accent)); background: color-mix(in srgb, var(--zc, #888) 14%, transparent); }
@media (max-width: 1479px) { .hz-aside .zsel.zv { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; } }
/* grand ecran : le resume reste visible a droite pendant qu'on defile */
@media (min-width: 1480px) {
  html.has-maside main { padding-right: 340px; }
  .hz-aside { position: fixed; top: 92px; right: 24px; z-index: 12; width: 288px; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px); margin: 0 !important; overflow-y: auto; overscroll-behavior: contain; }
}

/* barre du bas (mode tablette) */
.hz-bottom { display: none; }
html.ui-tablet .hz-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--hz-glass2); border-top: 1px solid var(--hz-edge2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hz-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 60px; padding: 4px 2px; text-align: center; border-radius: 14px; font: 600 13px/1.1 'Figtree', sans-serif; color: var(--text-secondary); text-decoration: none; }
.hz-bottom a .icon { width: 26px; height: 26px; }
.hz-bottom a.is-on { color: var(--hz-accent); background: var(--hz-accent-soft); }

/* mode tablette : textes et zones tactiles plus grands, menu en bas, resume en carte, un seul niveau de menu a l'ecran */
html.ui-tablet { font-size: 17.5px; }
html.ui-tablet body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
html.ui-tablet .hz-mnav-main { display: none; }
html.ui-tablet .hz-si { min-height: 52px; padding: 10px 18px; font-size: 16px; }
html.ui-tablet .hz-si .icon { width: 20px; height: 20px; }
html.ui-tablet button, html.ui-tablet .hz-btn { min-height: 48px; }
html.ui-tablet input:not([type=checkbox]):not([type=radio]):not([type=file]), html.ui-tablet select, html.ui-tablet textarea { min-height: 48px; font-size: 16px; }
html.ui-tablet .zsel-chip { padding: 13px 16px; font-size: 15px; }
html.ui-tablet .hz-next-t { font-size: 19px; }
html.ui-tablet .hz-next-d, html.ui-tablet .hz-aside-l, html.ui-tablet .hz-aside-dl li { font-size: 15px; }
html.ui-tablet .hz-aside { position: static !important; width: auto !important; max-height: none !important; margin-top: 12px; }
html.has-maside.ui-tablet main { padding-right: 1rem; }
#ui-mode-btn[aria-pressed=true] { background: var(--hz-accent); color: #04231a; border-color: transparent; }

/* tactile (tablette, telephone) : retour immediat au toucher, pas de surlignage gris du navigateur, libelles de boutons non selectionnables */
.hz-mi, .hz-si, .hz-bottom a, .zsel-chip, .hz-next .hz-btn { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform 100ms ease-out, background-color 100ms, border-color 100ms; }
.hz-mi:active, .hz-si:active, .hz-bottom a:active, .zsel-chip:active, .hz-next .hz-btn:active { transform: scale(.97); }
button, a, [role="button"], select, summary, label { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@media (pointer: coarse) {
  /* iOS zoome la page quand on touche un champ de moins de 16 px : on corrige la cause (jamais user-scalable=no) */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), textarea, select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hz-mi, .hz-si, .hz-bottom a, .zsel-chip, .hz-next .hz-btn { transition: none; } .hz-mi:active, .hz-si:active, .hz-bottom a:active, .zsel-chip:active, .hz-next .hz-btn:active { transform: none; } }