/* =========================
   Thème et variables
   ========================= */
:root{
  --bg:#0b1020;
  --panel:#0f1530;
  --muted:#99a2b6;
  --text:#e6edf6;

  /* Teintes marque (bleu) */
  --brand:#0ea5e9;
  --brand-600:#0284c7;
  --brand-700:#0369a1;

  /* Teintes logo (corail) */
  --accent:#ff6f61;
  --accent-600:#ff7f72;
  --accent-700:#ff9388;

  --border:rgba(255,255,255,.10);
  --surface:rgba(255,255,255,.06);
  --surface-2:rgba(255,255,255,.10);
  --shadow:0 8px 28px rgba(2,8,20,.35);
}

/* =========================
   Reset léger & base
   ========================= */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#0a1021 0%,#0b1427 100%) fixed;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1080px;margin:0 auto;padding:0 18px}

/* =========================
   Header fixed
   ========================= */
.site-header{
  position:fixed !important;
  top:0; left:0; right:0;
  z-index:1000;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg, rgba(8,14,30,.72), rgba(8,14,30,.40));
  border-bottom:1px solid var(--border);
}
.header-row{
  display:grid; grid-template-columns:auto 1fr auto 40px; align-items:center; gap:14px;
  min-height:66px; padding:10px 0;
}
.brand{display:flex;align-items:center;gap:.7rem}
.brand__img{
  height:64px; width:auto; display:block;
  filter:drop-shadow(0 8px 18px rgba(255,111,97,.25));
}
@media (max-width: 980px){ .brand__img{ height:56px } }
@media (max-width: 840px){ .brand__img{ height:44px } }
.brand__text{font-weight:800;letter-spacing:.3px}

/* Navigation */
.nav{display:flex;gap:.6rem;justify-content:center}
.nav__link{
  color:#f1f5f9; padding:.46rem .85rem; border-radius:12px; transition:.2s;
}
.nav__link:hover{ background:var(--surface-2); color:#ffffff }
.nav__link.is-active{ background:rgba(14,165,233,.22); color:#f0f9ff }

/* Auth */
.auth{display:flex;align-items:center;gap:.6rem}
.avatar{
  width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);color:#0b1427;font-weight:800
}
.username{font-weight:600}

/* Boutons */
.btn,.hg-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  padding:.5rem 1rem;border-radius:12px;border:1px solid var(--border);
  background:var(--surface); color:#e6edf6; font-weight:700; cursor:pointer;
  transition:background .2s, border-color .2s, color .2s, transform .05s;
}
.btn:hover,.hg-btn:hover{ background:var(--surface-2) }
.btn:active,.hg-btn:active{ transform:translateY(1px) }

/* Primaires bleus */
.btn--primary,.hg-btn--primary{
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  border:0; color:#021428; font-weight:800;
}
.btn--primary:hover,.hg-btn--primary:hover{
  background:linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
}

/* Variante CTA corail */
.btn--accent,.hg-btn--accent{
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  border:0; color:#1a0a06; font-weight:800; text-shadow:0 1px 0 rgba(255,255,255,.25);
}
.btn--accent:hover,.hg-btn--accent:hover{
  background:linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
}

/* Ghost très contrasté (secondaire) */
.btn--ghost,.hg-btn--ghost{
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.32);
  color:#ffffff;
}
.btn--ghost:hover,.hg-btn--ghost:hover{ background:rgba(255,255,255,.28) }

/* Burger */
.nav-toggle{display:none;width:40px;height:36px;border:none;background:transparent;position:relative;cursor:pointer}
.nav-toggle span{position:absolute;left:7px;right:7px;height:2px;background:#cbd5e1;transition:.25s}
.nav-toggle span:nth-child(1){top:10px}.nav-toggle span:nth-child(2){top:17px}.nav-toggle span:nth-child(3){top:24px}
body.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
body.nav-open .nav-toggle span:nth-child(2){opacity:0}
body.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* =========================
   Layout principal / cartes
   ========================= */
.site-main{
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  margin:18px auto; box-shadow:var(--shadow); color:var(--text); padding:1.4rem;
  margin-top: 90px !important; /* espace net sous header fixe + logo */
}
#map{ position:relative; z-index:1 } /* évite tout recouvrement par le header en scroll */

.intro{margin-bottom:1rem}
.muted{color:var(--muted)}

/* =========================
   Accueil (Hero + Grid)
   ========================= */
.home-hero{
  position:relative; border-radius:16px; padding:2.4rem 1.6rem; margin-bottom:1.6rem; overflow:hidden; isolation:isolate;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255,111,97,.18) 0%, rgba(255,111,97,0) 70%),
    radial-gradient(800px 400px at 110% 10%, rgba(27,79,127,.42) 0%, rgba(27,79,127,0) 65%),
    linear-gradient(135deg, #173457 0%, #1c4a79 60%, #25639d 100%);
  color:#ffffff; box-shadow:var(--shadow); border:1px solid var(--border);
}
.home-hero__title{
  margin:0 0 .35rem 0; font-size:2rem; line-height:1.15; letter-spacing:.2px; font-weight:800;
  color:#ffffff; text-shadow:0 3px 10px rgba(0,0,0,.35);
}
.home-hero__subtitle{ margin:.25rem 0 1.15rem 0; color:#f2f7ff; max-width:62ch }
.home-hero__actions{ display:flex; gap:.8rem; flex-wrap:wrap }

/* Grille de cartes */
.home-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; margin:1.6rem 0;
}
.home-card{
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.12));
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px; padding:1rem; color:#eff5fb;
  box-shadow:0 6px 22px rgba(14,42,71,.18);
}
.home-card h3{ margin:.2rem 0 .5rem 0; color:#ffffff; letter-spacing:.2px }
.home-card p{ color:#d9e6f2 }
.home-card__link{ display:inline-block; margin-top:.55rem; font-weight:700; color:#ffd0c7 }
.home-card__link:hover{ color:#ffe3dd }

/* Bloc à propos */
.home-about{
  margin-top:1.6rem;
  background:linear-gradient(180deg, rgba(255,248,244,.85), rgba(255,248,244,.75));
  border:1px solid rgba(255,111,97,.28);
  border-radius:14px; padding:1rem; color:#0e2a47;
}
.home-about h3{ color:#0e2a47; margin:.2rem 0 .5rem 0 }
.home-about p{ color:#183a5e }

/* =========================
   Footer
   ========================= */
.site-footer{ margin:24px 0 32px 0 }
.footer-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0; border-top:1px solid var(--border) }
.footer-left{ display:flex; align-items:center; gap:12px }
.footer-right{ display:flex; gap:12px; flex-wrap:wrap }
.footer-link{ color:#aab6cc; padding:.25rem .5rem; border-radius:8px; transition:.2s }
.footer-link:hover{ color:#e6edf6; background:var(--surface) }

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .brand__img{ height:56px }
}
@media (max-width: 840px){
  .header-row{ grid-template-columns:auto 1fr auto 40px }
  .nav{ display:none }
  body.nav-open .nav{
    display:flex; position:absolute; left:0; right:0; top:66px; padding:10px 18px;
    background:rgba(7,12,26,.92); border-bottom:1px solid var(--border); flex-direction:column; gap:8px;
  }
  .nav-toggle{ display:inline-flex }
  .home-hero{ padding:1.9rem 1.2rem }
  .home-hero__title{ font-size:1.65rem }
}

/* =========================
   Compat anciennes classes
   ========================= */
.hg-header{ }
.hg-header .inner{ }
.hg-title{margin:0;font-weight:900;font-size:1.3rem;letter-spacing:1px}
