/* Inter est servie par BBD pour garder une typographie identique sur macOS et Windows. */
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("/css/fonts/inter-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

: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;
}

/* Hero éditorial V2 — activé page par page avec data-eyebrow. */
.bbd-page-hero[data-eyebrow] {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 32px 36px;
  background:
    radial-gradient(circle at 88% 12%, rgba(17,103,216,.64), transparent 31%),
    radial-gradient(circle at 68% 115%, rgba(237,41,57,.22), transparent 32%),
    linear-gradient(135deg,#06142b,#0a2348 62%,#092d60);
  text-align: left;
  box-shadow: 0 18px 44px rgba(6,22,47,.17);
}

.bbd-page-hero[data-eyebrow]::before {
  content: attr(data-eyebrow);
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  padding-left: 16px;
  color: #8dc9ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .15em;
  background: radial-gradient(circle at 4px 50%,#ed2939 0 4px,rgba(237,41,57,.16) 4.5px 8px,transparent 8.5px);
}

.bbd-page-hero[data-eyebrow]::after {
  content: 'BBD';
  position: absolute;
  right: -12px;
  top: -38px;
  color: rgba(255,255,255,.035);
  font-size: 180px;
  font-weight: 1000;
  line-height: 1;
}

.bbd-page-hero[data-eyebrow] .bbd-page-hero__title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 9px;
  font-size: clamp(38px,5vw,56px);
  font-weight: 1000;
  line-height: .96;
  letter-spacing: -.055em;
}

.bbd-page-hero[data-eyebrow] .bbd-page-hero__title span { color: #70b9ff; }
.bbd-page-hero[data-eyebrow] .bbd-page-hero__sub { position: relative; z-index: 1; max-width: 760px; font-size: 13px; font-weight: 650; }

@media (max-width:640px) {
  .bbd-page-hero[data-eyebrow] { min-height: 160px; padding: 25px 20px; }
  .bbd-page-hero[data-eyebrow]::after { right: -8px; top: -10px; font-size: 110px; }
  .bbd-page-hero[data-eyebrow] .bbd-page-hero__title { font-size: 37px; }
}

/* ===== 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); }

/* Drapeau français universel, sans emoji de région dépendant de l’OS. */
.bbd-article-flag-fr{display:inline-flex;width:1.15em;height:.78em;vertical-align:-.04em;margin:0 .08em;overflow:hidden;border:1px solid rgba(15,35,55,.16);border-radius:3px;background:#fff;box-shadow:0 1px 2px rgba(7,24,45,.14)}
.bbd-article-flag-fr i{display:block;width:33.333%;height:100%;flex:0 0 33.333%}
.bbd-article-flag-fr i:first-child{background:#0055a4}
.bbd-article-flag-fr i:nth-child(2){background:#fff}
.bbd-article-flag-fr i:last-child{background:#ef4135}
