:root{
  --bg:#0d0d0d; --fg:#fff; --muted:#b9b9b9; --orange:#f7931a; --card:#131313; --border:#2a2a2a;
  --good:#1aa179; --bad:#c43c3c; --link:#ffb25d;
}
html,body{background:var(--bg); color:var(--fg); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;}
a{ color:var(--link) }
.navbar-dark{ background:#0f0f0f !important; border-bottom:1px solid var(--border)}
.navbar-brand img{ width:40px; height:40px; object-fit:cover; border-radius:8px }
.section{ padding:2rem 1rem }
.section-title{ color:var(--orange); border-bottom:1px solid #f7931a44; padding-bottom:.5rem; margin-bottom:1.25rem }
.card-dark{ background:var(--card); border:1px solid var(--border); border-radius:14px }
.pill{ display:inline-flex; align-items:center; gap:.45rem; padding:.25rem .6rem; border-radius:999px; border:1px solid var(--border); background:#161616; color:#eee; font-size:.85rem }
.pill.good{ border-color:#17483b; background:#0f3228; color:#c6fff0 }
.pill.bad{ border-color:#4a1e1e; background:#341414; color:#ffc6c6 }
.muted{ color:var(--muted) }
code{ background:#222; color:var(--orange); padding:.25rem .5rem; border-radius:8px; user-select:all }
.btn, .form-control{ border-radius:10px }
.responsive-logo{ max-width:200px; width:100%; height:auto; border-radius:12px }
.kpi{ text-align:center }
.kpi .label{ color:var(--muted); font-size:.85rem }
.kpi .value{ font-weight:700; font-size:1.15rem }
.grid{ display:grid; gap:12px }
@media (min-width: 768px){
  .grid-cols-4{ grid-template-columns:repeat(4,1fr)}
  .grid-cols-3{ grid-template-columns:repeat(3,1fr)}
}
#embers{ position:fixed; inset:0; z-index:-1; pointer-events:none; background:transparent }
.statusbar{ display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; justify-content:center }
@media (min-width: 768px){ .statusbar{ justify-content:flex-start } }
.d-grid-cta{ display:grid; gap:.6rem; }
.text-center-md-start{ text-align:center; }
@media (min-width: 768px){ .text-center-md-start{ text-align:left; } }

/* Boutons de plage graphique */
.btn-range { border-color:#5c5c5c; color:#eaeaea }
.btn-range.active, .btn-range:focus { background: var(--orange); border-color: var(--orange); color:#111; }

/* --- Topologie réseau (centrée + styles) --- */
.net-wrap { display:flex; align-items:center; justify-content:center; }
#netSvg { max-width:700px; width:100%; height:auto; display:block; }
.net-link-ok   { stroke: var(--good);   stroke-width: 3; fill: none; }
.net-link-bad  { stroke: var(--bad);    stroke-width: 3; fill: none; stroke-dasharray: 6 6; }
.net-node rect { fill: #181818; stroke: var(--border); stroke-width: 1.5; rx: 12; }
.net-node.online  rect { stroke: #1aa179; }
.net-node.offline rect { stroke: #c43c3c; }
.net-title { font-weight: 600; fill: #fff; font-size: 14px; }
.net-sub   { fill: var(--muted); font-size: 12px; }

/* --- Flèche toggle --- */
.topo-toggle .chevron { display:inline-block; transition: transform .2s ease; }
.topo-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* --- LEDs statut header --- */
.status-leds{ display:flex; align-items:center; gap:10px }
.status-item{ display:inline-flex; align-items:center; gap:6px; padding:.2rem .5rem; border:1px solid var(--border); border-radius:999px; background:#111; }
.status-item .label{ font-size:.75rem; color:var(--muted) }
.status-item .state{ font-size:.75rem; font-weight:700 }
.led{ width:10px; height:10px; border-radius:50%; background:#444; display:inline-block }
.led.online{ background:#1aa179; animation: ledPulse 1.2s ease-in-out infinite }
.led.offline{ background:#c43c3c }
@keyframes ledPulse{
  0%{ opacity:.7; box-shadow:0 0 0 0 rgba(26,161,121,.6) }
  70%{ opacity:1; box-shadow:0 0 8px 4px rgba(26,161,121,.2) }
  100%{ opacity:.7; box-shadow:0 0 0 0 rgba(26,161,121,0) }
}




/* ===== Bestshare block ===== */
.bestshare { padding: 1rem; border-radius: 14px; position: relative; overflow: hidden; }
.bestshare::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(1200px 200px at 10% -30%, rgba(247,147,26,.12), transparent 60%),
              radial-gradient(800px 140px at 80% -20%, rgba(247,147,26,.07), transparent 65%);
}
.bestshare__wrap{ display:grid; gap:16px; align-items:stretch; }
@media (min-width: 768px){
  .bestshare__wrap{ grid-template-columns: 1fr 230px; gap:20px; }
}

/* Left / Right columns */
.bestshare__left{ display:flex; flex-direction:column; gap:.75rem; }
.bestshare__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bestshare__foot{ color:var(--muted); }

/* Sticky QR card on desktop */
@media (min-width: 768px){
  .bestshare__right{ position: sticky; top: 1rem; align-self: start; }
}
.bestshare__right{ display:flex; align-items:center; justify-content:center; }

/* Sats badge */
.sats-badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem; border-radius:999px;
  background:#1b140c; border:1px solid #3b2a16; color:#ffd9ad;
  box-shadow: inset 0 0 12px rgba(247,147,26,.15), 0 0 20px rgba(247,147,26,.06);
  font-weight:700;
}
.sats-badge i{ font-size:.9rem; }
.sats-badge strong{ color:#ffb25d; letter-spacing:.2px; }

/* Inline icon buttons */
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:10px;
  background:#161616; color:#ffb25d; border:1px solid #3b2b18;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.35); border-color:#6a4b2a; }
.icon-btn i{ font-size:1rem; line-height:1; }

/* Alert */
.bestshare__alert{
  background: linear-gradient(180deg, #19130c, #14110c);
  border:1px solid #3c2c1a;
  border-radius:12px; padding:.75rem .9rem;
}
.bestshare__line{ display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.bestshare__user{ color:#fff; }
.bestshare__diff{ color:#ffb25d; }
.bestshare .dot{ color:var(--muted) }
.bestshare__alert:focus-within{ outline:2px solid rgba(247,147,26,.35); outline-offset:2px; border-color:#6a4b2a; }

/* Ongoing pill + live dot */
.pill.glow{
  border-color:#543b1f; background:#20160a; color:#ffd9ad;
  box-shadow: 0 0 0 0 rgba(247,147,26,.55);
  animation: pulse 1.8s infinite;
}
.live-dot {
  width:.7rem; height:.7rem; border-radius:999px; background: var(--orange, #f7931a);
  display:inline-block; box-shadow:0 0 0 0 rgba(247,147,26,.7); animation:pulse 1.5s infinite;
}

/* QR card */
.qr-card{
  background:#161616; border:1px solid var(--border); border-radius:14px;
  padding:12px; width:210px; text-align:center;
  box-shadow: 0 6px 20px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.02);
}
.qr-card__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.35rem; }
.qr-card img{ width:180px; height:180px; object-fit:cover; border-radius:10px; border:1px solid #2b2b2b; background:#0f0f0f; }
.qr-card__addr{ display:flex; gap:.5rem; align-items:center; justify-content:center; margin-top:.6rem; flex-wrap:wrap; }
.qr-card code{ background:#1c1c1c; color:#ffb25d; border:1px solid #2b2b2b; padding:.2rem .4rem; border-radius:6px; }

/* Modal theming (dark) */
.modal-content.card-dark{ background:#131313; color:#fff; }
.modal-header{ border:0; }
.modal-footer{ border:0; }
/* Texte du modal en gris clair sur fond sombre */
.modal-body-light {
  color: #ccc; /* gris lisible */
}

.promo-banner .pill.glow {
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(247,147,26,.12);
  border: 1px solid rgba(247,147,26,.35);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .7rem;
}
.promo-item .fw-semibold { line-height: 1.2; }


/* Pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247,147,26,.7); }
  70% { box-shadow: 0 0 0 10px rgba(247,147,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(247,147,26,0); }
}


/* ===== BEF banner horizontal ===== */

.bef-banner-special {
  position: relative;
  overflow: hidden;
}

/* halo subtil */
.bef-banner-special::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    500px 160px at center left,
    rgba(247,147,26,0.18),
    transparent 70%
  );
  pointer-events: none;
}

.bef-banner-link {
  display: block;
}

.bef-banner-row {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Logo */
.bef-banner-logo {
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(247,147,26,0.45));
}

/* Textes */
.bef-banner-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bef-banner-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f7931a;
}

.bef-banner-sub {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* CTA */
.bef-banner-cta {
  margin-left: 8px;
  padding: 6px 18px;

  border-radius: 999px;
  border: 1px solid #f7931a55;

  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #f7931a;
  background: rgba(0,0,0,0.35);

  transition: transform .2s ease, background .2s ease;
}

/* Hover global */
.bef-banner-special:hover .bef-banner-cta {
  background: rgba(247,147,26,0.15);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 576px) {
  .bef-banner-row {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .bef-banner-cta {
    margin-left: 0;
  }
}


/* Texte "Nous hébergeons" */
.bef-banner-left {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Mobile : empilement propre */
@media (max-width: 576px) {
  .bef-banner-left {
    order: 1;
  }

  .bef-banner-logo {
    order: 2;
  }

  .bef-banner-text {
    order: 3;
  }

  .bef-banner-cta {
    order: 4;
  }
}


/* ===============================
   PARTENAIRES – blocs + cartes
   =============================== */

.partners-grid__head{
  margin-bottom: .75rem;
  text-align: center;
}
@media (min-width: 768px){
  .partners-grid__head{ text-align: left; }
}

.partners-grid__wrap{
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px){
  .partners-grid__wrap{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px){
  .partners-grid__wrap{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.partner-card{
  height: 100%;
}

.partner-card__link{
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: inherit;
}

/* logo de carte */
.partner-card__logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding: .35rem;
}

/* gélule cliquable (intégrée à la carte) */
.partner-pill{
  flex: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: color-mix(in srgb, rgba(255,255,255,.08) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.partner-card__link:hover .partner-pill{
  transform: translateY(-1px);
  background: color-mix(in srgb, rgba(255,255,255,.12) 85%, transparent);
  border-color: color-mix(in srgb, var(--upec-red) 40%, var(--border));
}

.partner-card__link:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--upec-red) 55%, white);
  outline-offset: 3px;
  border-radius: 16px;
}

.partner-pill__name{
  font-weight: 750;
  letter-spacing: .2px;
}

.partner-pill__deal{
  font-size: .92rem;
  opacity: .95;
}

.partner-pill code{
  padding: .12rem .35rem;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  color: inherit;
}

/* Mobile: stack propre */
@media (max-width: 575.98px){
  .partner-card__link{
    flex-direction: column;
    align-items: center;
    gap: .65rem;
  }
  .partner-pill{
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

.new-site-banner {
  background: rgba(255, 193, 7, 0.12);
  border-top: 1px solid rgba(255, 193, 7, 0.25);
  border-bottom: 1px solid rgba(255, 193, 7, 0.25);
  color: #f8f9fa;
  padding: 10px 0;
  font-size: 0.95rem;
}

.new-site-banner a {
  color: #ffc107;
  font-weight: 700;
  text-decoration: none;
}

.new-site-banner a:hover {
  text-decoration: underline;
}