/* Reset de base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
.bn-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617);
}

/* Liens */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Conteneur global */
.bn-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO 2050 */
.bn-hero-2050 {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.32), transparent 55%),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.24), transparent 60%),
    #020617;
}

.bn-hero-2050-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.bn-hero-2050-copy h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.9rem;
}

.bn-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(148, 163, 184, 0.95);
}

.bn-sub-soft {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

.bn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.bn-link {
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.95);
}

.bn-link:hover {
  color: #e5e7eb;
}

.bn-hero-2050-card {
  border-radius: 1.4rem;
  padding: 1.6rem 1.5rem 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.32), transparent 60%),
    rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(129, 140, 248, 0.8);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
}

.bn-hero-2050-card h2 {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.bn-hero-2050-card p {
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.94);
}

.bn-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bn-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.bn-chip-soft {
  border-color: rgba(45, 212, 191, 0.9);
}

/* HEADER – style "magazine tech" */
.bn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(14px);
}

.bn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.bn-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #f9fafb;
}

.bn-badge {
  font-size: 0.7rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.85);
  color: #c7d2fe;
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.8), rgba(15, 23, 42, 0.95));
}

.bn-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.85rem;
}

.bn-nav a {
  color: rgba(209, 213, 219, 0.8);
  position: relative;
  padding-bottom: 0.2rem;
}

.bn-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #22c55e, #38bdf8);
  transition: width 0.18s ease-out;
}

.bn-nav a:hover {
  color: #f9fafb;
}

.bn-nav a:hover::after {
  width: 100%;
}

/* BOUTONS */
.bn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  color: #052e16;
  box-shadow:
    0 0 0 1px rgba(21, 128, 61, 0.4),
    0 10px 30px rgba(34, 197, 94, 0.25);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.bn-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #16a34a, #84cc16);
  box-shadow:
    0 0 0 1px rgba(22, 163, 74, 0.6),
    0 14px 38px rgba(22, 163, 74, 0.35);
}

.bn-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  cursor: pointer;
  transition:
    border-color 0.12s ease-out,
    background 0.12s ease-out,
    color 0.12s ease-out;
}

.bn-btn-outline:hover {
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
  color: #f9fafb;
}

.bn-btn-full {
  width: 100%;
}

/* SECTION PRINCIPALE (catalogue) */
.bn-section {
  padding: 2.5rem 0 3.5rem;
}

.bn-section-alt {
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.38), transparent 60%),
              rgba(2, 6, 23, 1);
}

/* GRID : article + sidebar */
.bn-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .bn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ARTICLE */
.bn-article {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 60%),
              rgba(15, 23, 42, 0.98);
  border-radius: 1.3rem;
  padding: 1.8rem 1.9rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.6);
}

/* Titre + intro */
.bn-article-header {
  margin-bottom: 1.5rem;
}

.bn-article-header h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0.35rem 0 0.4rem;
  letter-spacing: 0.01em;
}

.bn-sub {
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.9);
}

/* Corps de l’article (Markdown rendu) */
.bn-article-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(229, 231, 235, 0.95);
}

/* Paragraphes */
.bn-article-body p {
  margin: 0.4rem 0 0.6rem;
}

/* Titres H2 / H3 / H4 */
.bn-article-body h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #f9fafb;
}

.bn-article-body h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
}

.bn-article-body h4 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Listes */
.bn-article-body ul,
.bn-article-body ol {
  padding-left: 1.15rem;
  margin: 0.45rem 0 0.8rem;
}

.bn-article-body li {
  margin-bottom: 0.3rem;
}

/* Blocs de code (si un jour tu en ajoutes) */
.bn-article-body pre {
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.8);
  overflow-x: auto;
  font-size: 0.85rem;
}

/* SOMMAIRE – stylé “boîte” au début de l’article
   On repère : le premier H2 + la liste qui suit */
.bn-article-body h2:first-of-type {
  margin-top: 1.5rem;
}

.bn-article-body h2:first-of-type + ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 55%),
              rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow:
    0 15px 40px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.7);
  padding: 0.9rem 1.1rem;
}

.bn-article-body h2:first-of-type + ul li {
  margin-bottom: 0.25rem;
}

.bn-article-body h2:first-of-type + ul a {
  color: #c7d2fe;
  font-size: 0.9rem;
}

.bn-article-body h2:first-of-type + ul a:hover {
  color: #e5e7ff;
}

/* PANELS (dans article & sidebar) */
.bn-panel {
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.85);
}

.bn-panel h2,
.bn-panel h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.bn-panel p {
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.92);
}

.bn-panel-info {
  margin-top: 2rem;
  border-color: rgba(59, 130, 246, 0.8);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.98);
}

.bn-panel-soft {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.98);
}

/* DOMAINES & CATALOGUES */
.bn-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.bn-domain-card {
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.85);
  font-size: 0.9rem;
}

.bn-domain-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.bn-section-spacer {
  height: 2.3rem;
}

.bn-section-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.9rem;
}

.bn-grid-catalogues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.bn-card {
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.85);
  font-size: 0.88rem;
}

.bn-card h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.bn-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.95);
}

.bn-card-link:hover {
  color: #e5e7eb;
}

/* DIFFERENCE SECTION */
.bn-diff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: flex-start;
}

.bn-diff-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.bn-diff-col {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.bn-diff-col-neo {
  border-color: rgba(45, 212, 191, 0.9);
  box-shadow:
    0 18px 46px rgba(15, 118, 110, 0.6),
    0 0 0 1px rgba(15, 23, 42, 0.85);
}

/* SIDEBAR */
.bn-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bn-sidebar h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

/* FOOTER */
.bn-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 1);
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  padding: 1rem 0 2rem;
}

.bn-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bn-footer a {
  color: rgba(129, 140, 248, 0.9);
}

.bn-footer a:hover {
  color: rgba(196, 181, 253, 0.95);
}

/* RESPONSIVE TWEAKS */
@media (max-width: 720px) {
  .bn-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bn-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

   .bn-hero-2050-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bn-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bn-grid-catalogues {
    grid-template-columns: minmax(0, 1fr);
  }

  .bn-diff-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bn-diff-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .bn-article {
    padding: 1.4rem 1.3rem 1.7rem;
    border-radius: 1rem;
  }

  .bn-article-header h1 {
    font-size: 1.55rem;
  }
}
