:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --muted:#5a6b84;
  --text:#0b1220;
  --line:rgba(15, 23, 42, .10);

  --primary:#2563eb;
  --primarySoft:rgba(37, 99, 235, .10);

  --danger:#e11d48;
  --dangerSoft:rgba(225, 29, 72, .10);

  --ok:#0ea5e9;
  --okSoft:rgba(14, 165, 233, .10);

  --shadow: 0 10px 24px rgba(15, 23, 42, .08);
  --radius:14px;
  --pad:18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(14,165,233,.10), transparent 60%),
    var(--bg);
}

a{color:var(--primary); text-decoration:none}
a:hover{opacity:.9}

.topbar{
  position:sticky; top:0; z-index:10;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar .wrap{
  max-width:1100px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  color:#B6FF2E;
}
.brand span:first-child{
  color:var(--text);
}
.badge{
  font-size:12px;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background: rgba(255,255,255,.75);
}

.nav{
  display:flex; gap:10px; flex-wrap:wrap;
}
.pill{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background: rgba(255,255,255,.7);
}
.pill.active{
  color:var(--primary);
  border-color: rgba(37,99,235,.35);
  background: var(--primarySoft);
}

.container{
  max-width:1100px;
  margin:22px auto;
  padding:0 18px 30px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media(min-width: 900px){
  .grid.two{ grid-template-columns: 1fr 1fr; }
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
}

.card h2, .card h3{margin:0 0 10px 0}
.sub{color:var(--muted); font-size:14px; margin-top:6px; line-height:1.4}

hr.sep{
  border:0;
  height:1px;
  background: var(--line);
  margin:16px 0;
}

.input{
  width:100%;
  background: rgba(2, 6, 23, .03);
  border:1px solid var(--line);
  border-radius: 12px;
  padding:10px 12px;
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.row{display:grid; gap:10px}
@media(min-width: 700px){
  .row.cols2{ grid-template-columns: 1fr 1fr; }
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.8);
  color: var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.btn:hover{opacity:.95}
.btn.primary{
  background: var(--primary);
  border-color: rgba(37,99,235,.65);
  color: #fff;
}
.btn.danger{
  background: var(--dangerSoft);
  border-color: rgba(225,29,72,.35);
  color: var(--danger);
}
.btn.small{padding:7px 10px; border-radius:10px; font-size:13px}

.table{
  width:100%;
  border-collapse: collapse;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.table th{
  font-size:12px;
  color:var(--muted);
  background: rgba(2, 6, 23, .03);
  text-transform:uppercase;
  letter-spacing:.4px;
}
.table tr:hover td{ background: rgba(2, 6, 23, .02); }

.kpi{
  display:flex; gap:12px; flex-wrap:wrap;
}
.kpi .item{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(2, 6, 23, .02);
}
.dot{display:inline-block; width:8px; height:8px; border-radius:99px; margin-right:8px; background: var(--muted);}
.dot.ok{ background: var(--ok); }
.dot.no{ background: var(--danger); }

details summary{
  cursor:pointer;
  color: var(--primary);
  font-weight:600;
}
details summary:hover{opacity:.9}
/* =========================================================
   THEME V2 — Premium Luxe (bleu profond + doré)
   ========================================================= */

/* Fond global plus doux */
body{
  background:#f6f3ef; /* beige très léger premium */
}

/* ---------------- TOPBAR ---------------- */
.topbar{
  background:linear-gradient(135deg, #1e1b4b, #0f172a);
  color:#ffffff;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

/* Brand plus premium */
.topbar .brand{
  font-weight:700;
  letter-spacing:0.4px;
}

/* Badge tenant style premium */
.topbar .badge{
  background:rgba(255,215,0,0.15);
  border:1px solid rgba(255,215,0,0.35);
  color:#facc15;
}

/* Nav */
.topbar .nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Pills premium */
.topbar .pill{
  color:rgba(255,255,255,0.85);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  transition:all .2s ease;
}

.topbar .pill:hover{
  background:rgba(250,204,21,0.15);
  border-color:rgba(250,204,21,0.45);
  color:#facc15;
}

/* Active premium */
.topbar .pill.active{
  background:#facc15;
  color:#1e1b4b;
  border-color:#facc15;
  font-weight:700;
}

/* ---------------- CARDS ---------------- */
.card{
  background:#ffffff;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.05);
  box-shadow:0 12px 30px rgba(15,23,42,0.08);
}

/* Boutons premium */
.btn.primary{
  background:#1e1b4b;
  border:none;
}

.btn.primary:hover{
  background:#312e81;
}

.btn.danger{
  background:#7f1d1d;
}

/* Badges premium */
.badge{
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  color:#1e1b4b;
}
.badge-tenant{
  color:#ffffff;          /* vert citron lisible */
  font-weight:700;
  letter-spacing:.2px;
}
/* links */
/* ===== LIENS SMARTM ===== */
.link-primary{
    color:#2563eb;
    font-weight:700;
    text-decoration:none;
}

.link-primary:hover{
    text-decoration:underline;
}

/* ---------------- MOBILE PREMIUM ---------------- */
@media (max-width: 768px){

  .topbar{
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 14px 40px rgba(0,0,0,0.25);
  }

  .topbar .nav{
    overflow-x:auto;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }

  .topbar .pill{
    white-space:nowrap;
    padding:10px 14px;
  }

  body{
    background:#f3efe8;
  }
}
/* =========================================================
   FIX MOBILE NAV — éviter le menu horizontal à scroller
   -> menu sur 2 lignes (wrap) + pills plus compactes
   ========================================================= */
@media (max-width: 768px){

  /* On désactive le scroll horizontal et on autorise le retour à la ligne */
  .topbar .nav{
    overflow-x: visible !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-bottom: 0 !important;
  }

  /* Pills plus petites pour tenir sur 2 lignes */
  .topbar .pill{
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  /* On laisse respirer la topbar */
  .topbar .wrap{
    gap: 10px;
  }
}
/* =========================
   RecoIA Highlight
========================= */

#recoia {
    scroll-margin-top: 80px;
}

#recoia:target {
    animation: flash 1s ease;
}

@keyframes flash {
    0% { background:#eef2ff; }
    100% { background:white; }
}
/* SMARTM page de vente */
.slide { display:none; }
.slide.active { display:block; }

#smartm-slider img {
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
}
.badge-country {
  background:#f1f5f9;
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
}