:root{
  --bg: #070b14;
  --panel: rgba(10, 16, 30, .70);
  --panel-2: rgba(12, 18, 34, .86);
  --stroke: rgba(255,255,255,.10);

  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --blue: #143a73;     /* bleu républicain */
  --navy: #0b1220;     /* bleu institution */
  --red: #b11226;      /* rouge drapeau */
  --gold: #d7b35a;     /* doré “insigne” */

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --r: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--txt);
  background: radial-gradient(1200px 700px at 10% 10%, rgba(20,58,115,.28), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(177,18,38,.14), transparent 55%),
              linear-gradient(180deg, #050712, var(--bg));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; }

.bg-glow{
  position:fixed; inset:-30%;
  background: radial-gradient(circle at 30% 30%, rgba(215,179,90,.10), transparent 52%),
              radial-gradient(circle at 70% 20%, rgba(20,58,115,.18), transparent 55%),
              radial-gradient(circle at 50% 80%, rgba(177,18,38,.12), transparent 60%);
  filter: blur(20px);
  pointer-events:none;
  z-index:-1;
}

/* TOPBAR */
.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--stroke);
  background: rgba(6,10,18,.58);
}

.topbar__inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}

.brand__mark{
  width:38px; height:38px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(20,58,115,.55), rgba(10,16,30,.55));
  border:1px solid rgba(215,179,90,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.cocarde{
  width:18px; height:18px;
  border-radius:999px;
  background:
    radial-gradient(circle, #fff 0 28%, transparent 29% 100%),
    radial-gradient(circle, var(--red) 0 52%, transparent 53% 100%),
    radial-gradient(circle, var(--blue) 0 78%, transparent 79% 100%);
  opacity:.98;
}

.brand__logo{
  width:38px; height:38px;
  object-fit:contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}

.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__name{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight:800;
  letter-spacing:.4px;
  font-size:18px;
}
.brand__tag{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.35px;
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 8px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background: rgba(8,12,22,.55);
}

.nav a{
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  color: rgba(255,255,255,.86);
}
.nav a:hover{
  background: rgba(215,179,90,.10);
  border:1px solid rgba(215,179,90,.18);
}

/* Burger */
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(8,12,22,.55);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(255,255,255,.86);
  margin:4px auto;
  border-radius:2px;
}

/* Ribbon tricolore */
.ribbon{
  height:4px;
  display:flex;
  width:100%;
}
.ribbon__b{ flex:1; background: var(--blue); }
.ribbon__w{ flex:1; background: #fff; opacity:.95; }
.ribbon__r{ flex:1; background: var(--red); }

/* Baseline */
.topbar__baseline{
  max-width:1120px;
  margin:0 auto;
  padding:10px 16px 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.baseline__pill{
  font-size:12px;
  color: rgba(255,255,255,.84);
  padding:8px 10px;
  border-radius:999px;
  background: rgba(12,18,34,.60);
  border:1px solid rgba(215,179,90,.20);
}

/* Container */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:20px 16px 60px;
}

/* Footer */
.footer{
  border-top:1px solid var(--stroke);
  background: rgba(6,10,18,.55);
}
.footer__inner{
  max-width:1120px;
  margin:0 auto;
  padding:18px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.footer__title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight:800;
  letter-spacing:.5px;
}
.footer__small{ margin-top:6px; color:var(--muted); font-size:13px; }
.footer__tiny{ margin-top:6px; color:rgba(255,255,255,.58); font-size:12px; }
.footer__links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.footer__links a{
  color: rgba(255,255,255,.80);
  font-size:13px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(12,18,34,.35);
}
.footer__links a:hover{
  border-color: rgba(215,179,90,.22);
  background: rgba(215,179,90,.08);
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: min(620px, calc(100vw - 24px));
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(215,179,90,.20);
  background: rgba(10,16,30,.82);
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible{
  opacity:1;
  transform: translateX(-50%) translateY(-4px);
}

/* Mobile */
.nav--mobile{
  display:none;
  max-width:1120px;
  margin:0 auto;
  padding:12px 16px 16px;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  background: rgba(8,12,22,.55);
}
.nav--mobile a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(12,18,34,.35);
}

@media (max-width: 860px){
  .nav{ display:none; }
  .burger{ display:block; }
  .nav--mobile.is-open{ display:flex; flex-direction:column; }
}
