:root{
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #dbe2ea;

  --primary: #1d4ed8;
  --primary-2: #2563eb;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 8px 22px rgba(15,23,42,.08);
  --shadow-lg: 0 16px 36px rgba(15,23,42,.10);

  --site-max: 1240px;
  --content-max: 1240px;
  --content-pad: 16px;

  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.4;
}

img{
  display: block;
  max-width: 100%;
}

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea{
  font: inherit;
}

button{
  cursor: pointer;
}

.hidden{
  display: none !important;
}

.h1-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.bbd-shell{
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.bbd-main{
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad) 32px;
}

@media (max-width: 640px){
  :root{
    --content-pad: 12px;
  }
}

/* ── Carte titre de page – commune à toutes les pages BBD ── */
.bbd-page-hero {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 32px 28px 28px;
  background: linear-gradient(135deg, #07162c 0%, #0d2a52 55%, #1a4b9a 100%);
  border-radius: 18px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 24px rgba(7,22,44,.12);
}

@media (max-width: 1272px) {
  .bbd-page-hero {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 640px) {
  .bbd-page-hero {
    margin-left: 12px;
    margin-right: 12px;
    padding: 24px 18px 22px;
    border-radius: 14px;
  }
}

.bbd-page-hero__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
}

.bbd-page-hero__title span {
  color: #f5b800;
}

.bbd-page-hero__sub {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== BOTTOM NAV (mobile only) ===== */
.bbd-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #07162c;
  border-top: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 -4px 20px rgba(0,0,0,.30);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 800px) {
  .bbd-bottom-nav { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}
.bbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  font-family: system-ui, sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.bbn-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.bbn-item.active { color: #de670b; }
.bbn-item:not(.active):active { color: rgba(255,255,255,.75); }