/*
Theme Name: Bomoko na Mindule
Theme URI: https://bomokonamindule.com
Author: Bomoko na Mindule
Description: Theme WordPress officiel de Bomoko na Mindule, concu pour fonctionner avec le plugin Bomoko API Bridge.
Version: 0.2.0
Text Domain: bomoko-na-mindule
*/

:root {
  --bnm-violet-950: #170a42;
  --bnm-violet-900: #23125a;
  --bnm-violet-800: #2f1a73;
  --bnm-violet-700: #3d2591;
  --bnm-violet-500: #6e4af3;
  --bnm-gold-500: #f6a23a;
  --bnm-gold-600: #d78a26;
  --bnm-cream: #fffaf0;
  --bnm-bg: #f8f6fc;
  --bnm-surface: #ffffff;
  --bnm-ink: #21104d;
  --bnm-muted: #6e6391;
  --bnm-border: rgba(35, 18, 90, 0.12);
  --bnm-shadow: 0 18px 45px rgba(35, 18, 90, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 162, 58, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(61, 37, 145, 0.14), transparent 26rem),
    linear-gradient(180deg, #fff 0%, var(--bnm-bg) 44%, #f2eef9 100%);
  color: var(--bnm-ink);
  font-family: Inter, Montserrat, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  min-height: 100vh;
}

body::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(61, 37, 145, 0.18), transparent 18rem),
    linear-gradient(120deg, transparent 18%, rgba(246, 162, 58, 0.12) 19%, transparent 20%);
  content: "";
  inset: 0 auto auto 0;
  height: 580px;
  opacity: 0.09;
  pointer-events: none;
  position: fixed;
  width: 720px;
  z-index: -1;
}

a {
  color: var(--bnm-violet-800);
}

img {
  height: auto;
  max-width: 100%;
}

.bnm-site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(35, 18, 90, 0.08);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.bnm-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.bnm-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--bnm-violet-900), var(--bnm-violet-700));
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(35, 18, 90, 0.16);
  display: grid;
  height: 52px;
  justify-items: center;
  padding: 7px;
  width: 52px;
}

.bnm-brand-mark img {
  display: none;
}

.bnm-brand-mark::before {
  color: #fff;
  content: "BNM";
  font-weight: 950;
}

.bnm-brand-text {
  display: grid;
  gap: 2px;
}

.bnm-brand-name {
  color: var(--bnm-violet-900);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.bnm-brand-subtitle {
  color: var(--bnm-muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.bnm-site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bnm-site-nav ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bnm-site-nav a {
  border-radius: 999px;
  color: var(--bnm-ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 13px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bnm-site-nav a:hover,
.bnm-site-nav .current-menu-item > a {
  background: rgba(61, 37, 145, 0.09);
  color: var(--bnm-violet-900);
  transform: translateY(-1px);
}

.bnm-site-nav a[href*="connexion"] {
  background: linear-gradient(135deg, var(--bnm-violet-900), var(--bnm-violet-500));
  color: #fff;
  padding-inline: 18px;
}

.bnm-site-main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 22px clamp(14px, 3vw, 34px) 72px;
}

.bnm-site-footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 162, 58, 0.24), transparent 22rem),
    linear-gradient(135deg, var(--bnm-violet-950), var(--bnm-violet-800));
  color: rgba(255, 255, 255, 0.78);
  padding: 36px clamp(18px, 4vw, 56px);
}

.bnm-footer-inner {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
}

.bnm-footer-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.bnm-footer-brand img {
  display: none;
}

.bnm-footer-brand::before {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  color: #fff;
  content: "BNM";
  display: inline-grid;
  flex: 0 0 54px;
  font-weight: 950;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.bnm-footer-brand strong {
  color: #fff;
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.bnm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bnm-footer-links a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.bnm-footer-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
}

@media (max-width: 900px) {
  .bnm-site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .bnm-site-nav,
  .bnm-site-nav ul {
    justify-content: flex-start;
    width: 100%;
  }

  .bnm-footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .bnm-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .bnm-brand-mark {
    border-radius: 15px;
    height: 46px;
    width: 46px;
  }

  .bnm-brand-name {
    font-size: 0.85rem;
  }

  .bnm-site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bnm-site-nav a {
    justify-content: center;
    padding-inline: 10px;
    width: 100%;
  }
}
