/* ============================================================
   KinAlert — Styles page d'accueil
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--secondary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232,49,26,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(245,166,35,.08) 0%, transparent 50%),
    linear-gradient(135deg, #0F1923 0%, #1A2535 50%, #1E2D42 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-content { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.85);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse-ring 1.5s ease infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.text-gradient {
  background: linear-gradient(135deg, #FF6B55, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-subtitle strong { color: rgba(255,255,255,.95); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-actions .btn-outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.hero-privacy {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-map-preview {
  position: relative;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-map-preview::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.map-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 60%, transparent 90%);
}
.map-label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 1;
}
.map-dot {
  position: absolute;
  border-radius: 50%;
  animation: float-dot 3s ease-in-out infinite;
}
.map-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: pulse-ring 2s ease infinite;
}
.map-dot-1 { width:12px;height:12px; background:#E8311A; top:30%; left:42%; animation-delay:0s; }
.map-dot-1::before { background:rgba(232,49,26,.2); }
.map-dot-2 { width:8px; height:8px; background:#F5A623; top:55%; left:60%; animation-delay:.4s; }
.map-dot-2::before { background:rgba(245,166,35,.2); }
.map-dot-3 { width:10px;height:10px; background:#3498DB; top:40%; left:25%; animation-delay:.8s; }
.map-dot-3::before { background:rgba(52,152,219,.2); }
.map-dot-4 { width:6px; height:6px; background:#27AE60; top:68%; left:38%; animation-delay:1.2s; }
.map-dot-4::before { background:rgba(39,174,96,.2); }
.map-dot-5 { width:8px; height:8px; background:#E8311A; top:22%; left:62%; animation-delay:1.6s; }
.map-dot-5::before { background:rgba(232,49,26,.2); }
@keyframes float-dot {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .25rem;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-divider { width: 1px; background: var(--border); margin: 1rem 0; flex-shrink: 0; }

/* ── Section headers ── */
.section-alt { background: var(--surface-2); }
.section-header { margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block;
  padding: .3rem .85rem;
  background: rgba(232,49,26,.1);
  color: var(--primary);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

/* ── How it works ── */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.step-card {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.step-1 { background: rgba(232,49,26,.1); }
.step-2 { background: rgba(52,152,219,.1); }
.step-3 { background: rgba(39,174,96,.1); }
.step-num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.step-card h3 { margin-bottom: .5rem; }
.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  align-self: center;
  flex-shrink: 0;
  display: none;
}
@media(min-width: 768px) { .step-arrow { display: block; } }

/* ── Categories ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: currentColor; }
.cat-icon { font-size: 1.75rem; }
.cat-name { font-size: .85rem; font-weight: 600; }

/* ── Recent alerts ── */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.alert-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.alert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.alert-card-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.alert-card-title { font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.alert-card-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; }
.alert-card-confirmations { margin-left: auto; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

/* ── Privacy ── */
.privacy-card {
  background: linear-gradient(135deg, var(--secondary), #2C3E50);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  color: #fff;
}
.privacy-icon { font-size: 3rem; }
.privacy-content h2 { color: #fff; margin-bottom: .75rem; }
.privacy-content p  { color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.privacy-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.privacy-list .check { color: #4ADE80; margin-right: .35rem; font-weight: 700; }
.privacy-cta { align-self: center; white-space: nowrap; }

/* ── Footer ── */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,.6);
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { margin-bottom: .75rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p   { font-size: .88rem; line-height: 1.6; }
.footer-links     { display: flex; flex-direction: column; gap: .4rem; }
.footer-links h4  { color: #fff; font-size: .9rem; margin-bottom: .5rem; }
.footer-links a   { font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding: 1.25rem 0;
  font-size: .8rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .privacy-card { grid-template-columns: 1fr; text-align: center; }
  .privacy-list { grid-template-columns: 1fr; }
  .privacy-cta  { width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stats-grid { flex-wrap: wrap; }
  .stat-item  { min-width: 45%; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .privacy-icon { display: none; }
}
