/* ══════════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════════ */
:root {
  --bg:           #fafaf9;
  --bg-card:      #ffffff;
  --bg-subtle:    #f5f5f4;
  --bg-hover:     #eeeceb;
  --border:       #e7e5e4;
  --border-light: #f5f5f4;
  --text:         #1c1917;
  --text-muted:   #57534e;
  --text-subtle:  #a8a29e;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
  --nav-h:        70px;
  --header-h:     58px;
}
body.dark {
  --bg:           #0c0a09;
  --bg-card:      #1c1917;
  --bg-subtle:    #292524;
  --bg-hover:     #3a3330;
  --border:       #292524;
  --border-light: #1c1917;
  --text:         #fafaf9;
  --text-muted:   #d6d3d1;
  --text-subtle:  #78716c;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.7);
}

/* ══════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; }

/* ══════════════════════════════════════════════════
   BODY — MOBILE FIRST
══════════════════════════════════════════════════ */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  transition: background 0.25s, color 0.25s;
}

/* ══════════════════════════════════════════════════
   PAGE LAYOUT — mobile = transparent wrapper
══════════════════════════════════════════════════ */
.page-layout  { display: contents; }
.pres-panel   { display: none; }
.phone-col    { display: contents; }
.phone-frame  { display: contents; }
.phone-screen { display: contents; }
.phone-notch,
.phone-btn-vol,
.phone-btn-pwr { display: none; }

/* ══════════════════════════════════════════════════
   APP SHELL — mobile = plein écran
══════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  transition: background 0.25s;
  position: relative; /* contient les position:fixed via transform sur desktop */
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  z-index: 200;
  transition: background 0.25s, border-color 0.25s;
}
.header-left  { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(59,130,246,0.4);
  flex-shrink: 0;
}
.header-brand { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-size: 20px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--text); line-height: 1;
}
.brand-city {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pulse-dot {
  width: 6px; height: 6px; background: #22c55e; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.8); }
}
.dark-toggle {
  width: 38px; height: 38px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.dark-toggle:hover  { background: var(--bg-hover); }
.dark-toggle:active { transform: scale(0.9); }

/* ══════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-active { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.badge-city   { background:#eff6ff; color:#3b82f6; border:1px solid #bfdbfe; }
body.dark .badge-active { background:#14532d22; border-color:#16a34a55; }
body.dark .badge-city   { background:#1e3a5f22; border-color:#3b82f655; }

/* ══════════════════════════════════════════════════
   MAIN & SCREENS
══════════════════════════════════════════════════ */
main { flex:1; min-height:0; overflow:hidden; }
.screen       { display:none; height:100%; flex-direction:column; }
.screen.active { display:flex; }
.screen-scroll { overflow-y:auto; }
.screen-scroll::-webkit-scrollbar { width:3px; }
.screen-scroll::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }

/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-card); border-bottom:1px solid var(--border);
  padding: 7px 16px; display:flex; align-items:center;
  flex-shrink:0; transition:background 0.25s, border-color 0.25s;
}
.stat { display:flex; flex-direction:column; align-items:center; flex:1; }
.stat-value { font-size:15px; font-weight:700; color:var(--text); line-height:1.1; }
.stat-label { font-size:10px; color:var(--text-subtle); margin-top:1px; }
.stat-divider { width:1px; height:24px; background:var(--border); }

/* ══════════════════════════════════════════════════
   CARTE
══════════════════════════════════════════════════ */
#map { flex:1; z-index:1; min-height:0; }
.leaflet-container { font-family:'Inter',sans-serif; }
.leaflet-popup-content-wrapper {
  border-radius:12px; box-shadow:var(--shadow-md); font-family:'Inter',sans-serif;
}
.leaflet-control-attribution { font-size:9px !important; }

/* Légende — position:fixed est contenu dans .app-shell quand transform est actif (desktop) */
.legend {
  position: fixed;
  bottom: calc(var(--nav-h) + 156px);
  right: 10px;
  background: var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:9px 13px;
  display:flex; flex-direction:column; gap:5px;
  z-index:500; box-shadow:var(--shadow-md);
  transition:background 0.25s, border-color 0.25s;
}
.legend-title { font-size:9px; font-weight:700; color:var(--text-subtle); text-transform:uppercase; letter-spacing:0.07em; margin-bottom:2px; }
.legend-item  { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--text-muted); font-weight:500; }
.legend-dot   { width:8px; height:8px; border-radius:50%; flex-shrink:0; box-shadow:0 1px 3px rgba(0,0,0,0.2); }

/* ══════════════════════════════════════════════════
   PANNEAU ALERTES
══════════════════════════════════════════════════ */
.alert-panel {
  background:var(--bg-card); border-top:1px solid var(--border);
  padding:10px 12px 12px; flex-shrink:0;
  box-shadow:0 -4px 20px rgba(0,0,0,0.05); z-index:100;
  transition:background 0.25s, border-color 0.25s;
}
.alert-panel-title { font-size:9px; font-weight:700; color:var(--text-subtle); text-transform:uppercase; letter-spacing:0.07em; margin-bottom:8px; }
.alert-buttons { display:flex; gap:7px; }
.alert-btn {
  flex:1; display:flex; align-items:center; gap:7px;
  padding:9px 8px; border-radius:13px; cursor:pointer;
  transition:transform 0.13s, box-shadow 0.13s; text-align:left;
  font-family:'Inter',sans-serif;
}
.alert-btn:hover  { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.alert-btn:active { transform:translateY(0); }
.btn-inquietude { background:#fff7ed; border:1.5px solid #fb923c; color:#9a3412; }
.btn-agression  { background:#fff3e0; border:1.5px solid #ea580c; color:#7c2d12; }
.btn-urgence    { background:#fef2f2; border:1.5px solid #dc2626; color:#991b1b; }
body.dark .btn-inquietude { background:#431407aa; border-color:#fb923c77; color:#fdba74; }
body.dark .btn-agression  { background:#431407aa; border-color:#ea580c77; color:#f97316; }
body.dark .btn-urgence    { background:#450a0aaa; border-color:#dc262677; color:#fca5a5; }
.btn-icon     { font-size:17px; flex-shrink:0; line-height:1; }
.btn-text     { display:flex; flex-direction:column; min-width:0; }
.btn-title    { font-size:11px; font-weight:700; line-height:1.2; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.btn-subtitle { font-size:9px; opacity:0.65; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ══════════════════════════════════════════════════
   ÉCRANS SECONDAIRES
══════════════════════════════════════════════════ */
.screen-header {
  padding:18px 16px 12px; border-bottom:1px solid var(--border);
  background:var(--bg-card); flex-shrink:0;
  transition:background 0.25s, border-color 0.25s;
}
.screen-title    { font-size:18px; font-weight:700; color:var(--text); }
.screen-subtitle { font-size:12px; color:var(--text-subtle); margin-top:2px; }

/* Filtres */
.filter-bar {
  display:flex; gap:7px; padding:12px 14px;
  background:var(--bg-card); border-bottom:1px solid var(--border);
  overflow-x:auto; flex-shrink:0; transition:background 0.25s, border-color 0.25s;
}
.filter-bar::-webkit-scrollbar { display:none; }
.filter-btn {
  padding:5px 13px; border-radius:20px; border:1.5px solid var(--border);
  background:transparent; color:var(--text-muted); font-size:11px; font-weight:600;
  font-family:'Inter',sans-serif; cursor:pointer; white-space:nowrap;
  transition:all 0.13s; flex-shrink:0;
}
.filter-btn:hover  { background:var(--bg-subtle); }
.filter-btn.active { background:#1c1917; color:white; border-color:#1c1917; }
body.dark .filter-btn.active { background:#fafaf9; color:#1c1917; border-color:#fafaf9; }

/* Liste alertes */
.alerts-list { padding:10px 14px 20px; display:flex; flex-direction:column; gap:9px; }
.alert-item {
  background:var(--bg-card); border:1px solid var(--border); border-radius:13px;
  padding:12px 14px; display:flex; align-items:flex-start; gap:11px; cursor:pointer;
  transition:background 0.25s, border-color 0.25s; animation:fadeSlideIn 0.2s ease;
}
@keyframes fadeSlideIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.alert-dot        { width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.alert-item-content { flex:1; min-width:0; }
.alert-item-header  { display:flex; align-items:center; justify-content:space-between; margin-bottom:3px; }
.alert-item-type    { font-size:11px; font-weight:700; color:var(--text); }
.alert-item-time    { font-size:10px; color:var(--text-subtle); }
.alert-item-lieu    { font-size:12px; font-weight:600; color:var(--text); margin-bottom:2px; }
.alert-item-desc    { font-size:11px; color:var(--text-muted); line-height:1.4; }

/* Liste veilleurs */
.veilleurs-list { padding:10px 14px 20px; display:flex; flex-direction:column; gap:9px; }
.veilleur-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:13px;
  padding:12px 14px; display:flex; align-items:center; gap:11px;
  transition:background 0.25s, border-color 0.25s;
}
.veilleur-avatar {
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; flex-shrink:0;
}
.veilleur-info  { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.veilleur-name  { font-size:13px; font-weight:600; color:var(--text); }
.veilleur-dist  { font-size:11px; color:var(--text-subtle); }
.veilleur-badge { padding:3px 9px; border-radius:20px; font-size:10px; font-weight:600; white-space:nowrap; flex-shrink:0; }
.badge-disponible  { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.badge-deplacement { background:#fffbeb; color:#b45309; border:1px solid #fde68a; }
.badge-alerte      { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
body.dark .badge-disponible  { background:#14532d22; border-color:#16a34a44; }
body.dark .badge-deplacement { background:#78350f22; border-color:#d9770044; }
body.dark .badge-alerte      { background:#450a0a22; border-color:#dc262644; }
.veilleur-cta {
  background:linear-gradient(135deg,#eff6ff,#f0fdf4); border:1.5px dashed #93c5fd;
  border-radius:14px; padding:16px; text-align:center; margin-top:4px;
}
body.dark .veilleur-cta { background:linear-gradient(135deg,#1e3a5f22,#14532d22); border-color:#3b82f655; }
.cta-text { font-size:12px; color:var(--text-muted); line-height:1.5; margin-bottom:10px; }
.btn-cta {
  background:#3b82f6; color:white; border:none; border-radius:9px;
  padding:9px 20px; font-size:12px; font-weight:600; font-family:'Inter',sans-serif;
  cursor:pointer; transition:background 0.15s, transform 0.1s;
}
.btn-cta:hover  { background:#2563eb; }
.btn-cta:active { transform:scale(0.97); }

/* Profil */
.profil-hero {
  background:linear-gradient(160deg,#eff6ff 0%,#f0fdf4 100%);
  padding:24px 18px 20px; display:flex; flex-direction:column; align-items:center;
  text-align:center; border-bottom:1px solid var(--border); flex-shrink:0;
  transition:border-color 0.25s;
}
body.dark .profil-hero { background:linear-gradient(160deg,#1e3a5f1a,#14532d1a); }
.profil-avatar {
  width:64px; height:64px; border-radius:50%;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:white;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:700; margin-bottom:10px;
  box-shadow:0 4px 16px rgba(59,130,246,0.35);
}
.profil-name  { font-size:18px; font-weight:700; color:var(--text); margin-bottom:3px; }
.profil-since { font-size:11px; color:var(--text-subtle); margin-bottom:10px; }
.profil-badges { display:flex; gap:7px; }
.profil-section { padding:14px 14px 0; }
.section-label  { font-size:9px; font-weight:700; color:var(--text-subtle); text-transform:uppercase; letter-spacing:0.07em; margin-bottom:9px; }
.info-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:14px;
  overflow:hidden; transition:background 0.25s, border-color 0.25s;
}
.info-row     { display:flex; align-items:center; gap:11px; padding:12px 14px; }
.info-icon    { font-size:16px; flex-shrink:0; }
.info-content { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.info-label   { font-size:10px; color:var(--text-subtle); }
.info-value   { font-size:13px; font-weight:500; color:var(--text); }
.info-divider { height:1px; background:var(--border-light); margin:0 14px; }
.contact-avatar {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; flex-shrink:0;
}
.call-btn {
  padding:5px 11px; background:#eff6ff; color:#3b82f6;
  border-radius:8px; font-size:11px; font-weight:600; flex-shrink:0;
  transition:background 0.15s; border:1px solid #bfdbfe;
}
.call-btn:hover { background:#dbeafe; }
body.dark .call-btn { background:#1e3a5f33; border-color:#3b82f655; }
.stats-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:0;
}
.stat-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:13px;
  padding:14px 8px; display:flex; flex-direction:column; align-items:center; gap:3px;
  transition:background 0.25s, border-color 0.25s;
}
.stat-big        { font-size:22px; font-weight:800; color:var(--text); line-height:1; }
.stat-card-label { font-size:10px; color:var(--text-subtle); text-align:center; line-height:1.3; }
.btn-logout {
  width:100%; padding:13px; background:#fef2f2; border:1.5px solid #fecaca;
  border-radius:13px; color:#dc2626; font-size:13px; font-weight:600;
  font-family:'Inter',sans-serif; cursor:pointer; margin-bottom:22px;
  transition:background 0.15s;
}
.btn-logout:hover { background:#fee2e2; }
body.dark .btn-logout { background:#450a0a33; border-color:#dc262655; color:#fca5a5; }

/* ══════════════════════════════════════════════════
   BARRE DE NAVIGATION MOBILE
══════════════════════════════════════════════════ */
.bottom-nav {
  height: var(--nav-h);
  background:var(--bg-card); border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-around;
  padding:0 4px; flex-shrink:0; z-index:300;
  box-shadow:0 -2px 16px rgba(0,0,0,0.06);
  transition:background 0.25s, border-color 0.25s;
}
.nav-item {
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:7px 10px; border:none; background:transparent;
  color:var(--text-subtle); cursor:pointer; border-radius:11px;
  transition:color 0.15s, background 0.15s; font-family:'Inter',sans-serif;
  min-width:52px;
}
.nav-item span { font-size:10px; font-weight:600; letter-spacing:0.02em; }
.nav-item svg  { transition:transform 0.15s; }
.nav-item:hover { color:var(--text); background:var(--bg-subtle); }
.nav-item.active { color:#3b82f6; }
.nav-item.active svg { transform:scale(1.1); }

.nav-sos {
  width: 54px; height:54px; border-radius:50%;
  background:linear-gradient(135deg,#ef4444,#b91c1c); border:none;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(220,38,38,0.5), 0 0 0 4px rgba(220,38,38,0.12);
  transition:transform 0.15s, box-shadow 0.15s;
  flex-shrink:0; position:relative; top:-10px;
}
.nav-sos:hover  { transform:scale(1.08); box-shadow:0 6px 24px rgba(220,38,38,0.6), 0 0 0 6px rgba(220,38,38,0.15); }
.nav-sos:active { transform:scale(0.95); }
.sos-label { color:white; font-size:13px; font-weight:800; letter-spacing:0.04em; font-family:'Inter',sans-serif; }

/* ══════════════════════════════════════════════════
   MODALES — bottom sheet
══════════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(12,10,9,0.5);
  display:flex; align-items:flex-end; justify-content:center;
  z-index:10000; backdrop-filter:blur(3px);
  animation:fadeIn 0.15s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-card {
  background:var(--bg-card); border-radius:24px 24px 0 0;
  width:100%; max-width:500px;
  box-shadow:var(--shadow-lg); overflow:hidden;
  animation:slideUp 0.22s cubic-bezier(0.34,1.4,0.64,1);
  transition:background 0.25s;
}
@keyframes slideUp { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px 12px; border-bottom:1px solid var(--border-light);
}
.modal-badge { padding:4px 12px; border-radius:20px; font-size:12px; font-weight:700; }
.modal-close {
  background:var(--bg-subtle); border:none; border-radius:8px;
  width:28px; height:28px; cursor:pointer; font-size:12px; color:var(--text-muted);
  display:flex; align-items:center; justify-content:center; transition:background 0.12s;
}
.modal-close:hover { background:var(--bg-hover); }
.modal-body  { padding:14px 18px; }
.modal-lieu  { font-size:17px; font-weight:700; color:var(--text); margin-bottom:7px; }
.modal-meta  { margin-bottom:10px; }
.modal-tag   { display:inline-block; font-size:11px; color:var(--text-subtle); background:var(--bg-subtle); padding:3px 8px; border-radius:6px; font-weight:500; }
.modal-desc  { font-size:13px; color:var(--text-muted); line-height:1.6; }
.modal-footer { padding:12px 18px 22px; display:flex; gap:9px; border-top:1px solid var(--border-light); }
.confirm-title { font-size:14px; font-weight:700; color:var(--text); }
.btn-secondary {
  flex:1; padding:11px; background:var(--bg-subtle); border:none; border-radius:11px;
  font-size:13px; font-weight:600; color:var(--text-muted);
  cursor:pointer; font-family:'Inter',sans-serif; transition:background 0.12s;
}
.btn-secondary:hover { background:var(--bg-hover); }
.btn-primary {
  flex:1; padding:11px; background:#3b82f6; border:none; border-radius:11px;
  font-size:13px; font-weight:600; color:white;
  cursor:pointer; font-family:'Inter',sans-serif; transition:background 0.12s;
}
.btn-primary:hover { background:#2563eb; }
#confirm-action-btn {
  flex:1; padding:11px; border:none; border-radius:11px;
  font-size:13px; font-weight:600; color:white;
  cursor:pointer; font-family:'Inter',sans-serif; transition:opacity 0.12s;
}
#confirm-action-btn:hover { opacity:0.87; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.toast {
  position:fixed;
  bottom:calc(var(--nav-h) + 12px);
  left:50%; transform:translateX(-50%);
  background:#1c1917; color:#fafaf9;
  padding:10px 18px; border-radius:13px;
  font-size:12px; font-weight:500; z-index:20000;
  box-shadow:var(--shadow-lg); white-space:nowrap;
  animation:toastIn 0.2s ease;
  max-width:calc(100% - 32px); text-align:center;
}
body.dark .toast { background:#fafaf9; color:#1c1917; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }


/* ══════════════════════════════════════════════════
   ████  DESKTOP — MISE EN PAGE PRÉSENTATION  ████
══════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* Fond animé desktop */
  body {
    height: 100vh;
    overflow: hidden;
    background:
      radial-gradient(ellipse 80% 60% at 20% 50%, #0d1f4f 0%, transparent 70%),
      radial-gradient(ellipse 60% 80% at 80% 30%, #0a1a3d 0%, transparent 60%),
      linear-gradient(135deg, #050c1a 0%, #091428 50%, #050c1a 100%);
  }
  body.dark {
    background:
      radial-gradient(ellipse 80% 60% at 20% 50%, #0a1835 0%, transparent 70%),
      radial-gradient(ellipse 60% 80% at 80% 30%, #07122b 0%, transparent 60%),
      linear-gradient(135deg, #030710 0%, #060e1f 50%, #030710 100%);
  }

  /* Grille desktop : présentation | téléphone */
  .page-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 40px 60px;
  }

  /* ── Panneau de présentation (gauche) ─────── */
  .pres-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    max-width: 480px;
    color: white;
  }

  .pres-header {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .pres-logo {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(59,130,246,0.5);
    flex-shrink: 0;
  }
  .pres-name {
    font-size: 42px; font-weight: 900; letter-spacing: -1.5px;
    color: white; line-height: 1;
  }
  .pres-sub {
    font-size: 14px; color: #64748b; margin-top: 4px; font-weight: 500;
  }

  .pres-pitch {
    font-size: 16px; line-height: 1.65;
    color: #94a3b8;
    padding-bottom: 4px;
    border-bottom: 1px solid #1e2d4a;
  }
  .pres-pitch strong { color: #7dd3fc; font-weight: 600; }

  /* Stats chiffres clés */
  .pres-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .pres-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    backdrop-filter: blur(8px);
  }
  .pstat-num { font-size: 26px; font-weight: 900; color: #7dd3fc; line-height: 1; }
  .pstat-lbl { font-size: 10px; color: #64748b; text-align: center; line-height: 1.4; }

  /* Fonctionnalités */
  .pres-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pres-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 13px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
  }
  .pres-feat:hover { background: rgba(255,255,255,0.06); }
  .feat-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  .feat-map    { background: rgba(59,130,246,0.15); }
  .feat-alert  { background: rgba(251,146,60,0.15); }
  .feat-people { background: rgba(34,197,94,0.15); }
  .feat-sos    { background: rgba(220,38,38,0.15); }
  .feat-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
  .feat-desc  { font-size: 11px; color: #64748b; line-height: 1.4; }

  /* Stack technique */
  .pres-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .tech-badge {
    padding: 5px 13px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    color: #7dd3fc;
  }

  .pres-footer {
    font-size: 11px;
    color: #334155;
    font-weight: 500;
  }

  /* ── Colonne téléphone (droite) ────────────── */
  .phone-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Cadre physique du téléphone */
  .phone-frame {
    display: block;
    position: relative;
    width: 317px;  /* phone-screen 293px + bezel 12px*2 */
    height: 690px; /* phone-screen 634px + top 30px + bottom 26px */
    background: #0c0b14;
    border-radius: 52px;
    box-shadow:
      inset 0 0 0 1px #1e1c2e,
      0 0 0 1px #090812,
      0 40px 120px rgba(0,0,0,0.9),
      0 0 80px rgba(59,130,246,0.06),
      inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 30px 12px 26px;
  }

  /* Dynamic Island */
  .phone-notch {
    display: block;
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 88px; height: 24px;
    background: #0c0b14;
    border-radius: 0 0 16px 16px;
    z-index: 10;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
  }

  /* Bouton volume (gauche) */
  .phone-btn-vol {
    display: block;
    position: absolute;
    left: -13px; top: 100px;
    width: 4px; height: 28px;
    background: #0e0d1a;
    border-radius: 2px 0 0 2px;
    box-shadow:
      0 38px 0 #0e0d1a,
      0 74px 0 #0e0d1a;
  }

  /* Bouton power (droite) */
  .phone-btn-pwr {
    display: block;
    position: absolute;
    right: -13px; top: 128px;
    width: 4px; height: 56px;
    background: #0e0d1a;
    border-radius: 0 2px 2px 0;
  }

  /* Écran du téléphone */
  .phone-screen {
    display: block;
    width: 293px;  /* 390 * 0.7513 */
    height: 634px; /* 844 * 0.7513 */
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: #fafaf9;
  }

  /* App shell réduite dans le téléphone */
  .app-shell {
    width: 390px;
    height: 844px;
    transform: scale(0.7513);   /* 293/390 = 0.7513 */
    transform-origin: top left;
    overflow: hidden;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE (très grand écran)
══════════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .page-layout { gap: 100px; padding: 40px 100px; }
  .pres-panel  { max-width: 560px; }
}

/* ══════════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, #0d1f4f 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 30%, #0a1a3d 0%, transparent 60%),
    linear-gradient(135deg, #050c1a 0%, #091428 50%, #050c1a 100%);
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#splash.exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* ── Anneaux radar ───────────────────────────── */
.radar {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  animation: radarPulse 3.5s ease-out infinite;
}

.r1 { width: 90px;  height: 90px;  animation-delay: 0s;    border-color: rgba(59,130,246,0.5); }
.r2 { width: 160px; height: 160px; animation-delay: 0.7s;  border-color: rgba(59,130,246,0.3); }
.r3 { width: 230px; height: 230px; animation-delay: 1.4s;  border-color: rgba(59,130,246,0.18); }
.r4 { width: 300px; height: 300px; animation-delay: 2.1s;  border-color: rgba(59,130,246,0.08); }

@keyframes radarPulse {
  0%   { transform: scale(0.5); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ── Centre splash ───────────────────────────── */
.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 8px rgba(59,130,246,0.12),
    0 0 0 16px rgba(59,130,246,0.06),
    0 12px 40px rgba(59,130,246,0.5);
  margin-bottom: 6px;
}

.splash-title {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -2px;
  color: white;
  line-height: 1;
  text-shadow: 0 4px 32px rgba(59,130,246,0.3);
}

.splash-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.03em;
}

.splash-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Points flottants décoratifs ─────────────── */
.float-alert {
  position: absolute;
  border-radius: 50%;
  animation: floatDot 4s ease-in-out infinite;
}

.fa1 { width:12px; height:12px; background:#fb923c; top:18%; left:15%; animation-delay:0s; }
.fa2 { width: 9px; height: 9px; background:#dc2626; top:30%; right:12%; animation-delay:1.1s; }
.fa3 { width:14px; height:14px; background:#ea580c; bottom:32%; left:10%; animation-delay:0.6s; }
.fa4 { width: 8px; height: 8px; background:#fb923c; bottom:20%; right:18%; animation-delay:1.8s; }
.fa5 { width:10px; height:10px; background:#dc2626; top:12%; right:30%; animation-delay:0.3s; }

@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1);   opacity: 0.6; }
  50%       { transform: translateY(-14px) scale(1.2); opacity: 1; }
}

/* ── Pied du splash ──────────────────────────── */
.splash-footer {
  position: absolute;
  bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeUp 1s 0.4s ease both;
}

.splash-tagline {
  font-size: 15px;
  color: #475569;
  text-align: center;
  line-height: 1.65;
}
.splash-tagline strong { color: #7dd3fc; font-weight: 700; }

.splash-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: white;
  color: #0f172a;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(255,255,255,0.15);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.splash-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255,255,255,0.25);
  background: #f0f9ff;
}
.splash-btn:active { transform: scale(0.97); }

.splash-hint {
  font-size: 11px;
  color: #1e3a5f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════════════════
   MOBILE PETITS ÉCRANS
══════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .btn-subtitle { display: none; }
  .alert-btn    { padding: 8px 6px; gap: 5px; }
  .brand-name   { font-size: 18px; }
}
