/* IMGAM — bleu nuit, bleu clair, jaune ; Playfair Display sur Inter (même famille que les documents IMGAM). */
:root {
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font-family: "Playfair Display", Georgia, serif;
  --heading-weight: 800;
  --heading-tracking: -0.01em;
  --primary: #00456d;
  --accent: #fcd34d;
  --imgam-sky: #96c4e1;
  --imgam-night: #062a45;
  --imgam-ink: #17142b;
  --bg: #ffffff;
  --surface-alt: #eef5fa;
  --text: #2a2840;
  --muted: #5d6b7a;
  --heading-color: #0b2438;
  --border-color: #d5e3ec;
  --radius: 14px;
  --radius-sm: 10px;
  --btn-radius: 10px;
  --nav-bg: rgba(255, 255, 255, .94);
  --footer-bg: #062a45;
  --footer-text: #e3eef6;
  --footer-muted: #9fbcd1;
}

/* Trame de points des documents IMGAM */
.imgam-dots { background-image: radial-gradient(rgba(255,255,255,.13) 1.1px, transparent 1.3px); background-size: 12px 12px; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav { border-bottom: 1px solid var(--border-color); }
.site-nav .navbar-brand img { border-radius: 50%; background: #fff; }
.site-nav .navbar-brand span { font: 900 1.35rem/1 var(--heading-font-family); color: var(--primary); letter-spacing: -.01em; }
.site-nav .navbar-brand span::after { content: "."; color: #f2b705; }
.site-nav .nav-link { font-weight: 600; color: var(--heading-color); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--primary); }
.site-nav .btn-primary { font-weight: 700; padding: .5rem 1rem; }

/* ── Verset du jour : carte jaune, en haut à droite ─────────── */
.imgam-verse-zone { position: relative; z-index: 20; }
.imgam-verse {
  display: none; max-width: 400px; margin: .75rem .75rem 0 auto;
  background: #fcd34d; color: #3b2a00; border-radius: 14px; padding: .85rem 1rem .8rem 1rem;
  box-shadow: 0 14px 34px rgba(6, 42, 69, .22); border: 1px solid #f2b705;
  font-size: .9rem; line-height: 1.45;
}
.imgam-verse.is-ready { display: block; animation: imgam-verse-in .5s ease-out; }
.imgam-verse-head { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6b4e00; margin-bottom: .35rem; }
.imgam-verse-head i { font-size: .95rem; color: #00456d; }
.imgam-verse-text { margin: 0; font-family: var(--heading-font-family); font-style: italic; font-weight: 700; font-size: .98rem; color: #241a00; }
.imgam-verse-ref { display: block; margin-top: .35rem; font-weight: 700; font-size: .8rem; color: #00456d; text-align: right; }
@media (min-width: 992px) {
  .imgam-verse-zone { position: absolute; top: 76px; right: 0; left: 0; pointer-events: none; }
  .imgam-verse-zone .container { display: flex; justify-content: flex-end; }
  .imgam-verse { pointer-events: auto; margin: 1rem 0 0 auto; width: 360px; }
  /* Laisser la place à la carte dans les en-têtes */
  .imgam-hero .imgam-hero-copy { padding-right: 1rem; }
  .page-hero .container { padding-right: 390px; }
}
@media (min-width: 992px) { .imgam-hero .imgam-badge-col { padding-top: 8.5rem; } }
@keyframes imgam-verse-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Accueil : bannière ─────────────────────────────────────── */
.imgam-hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #062a45 0%, #00456d 55%, #0b6fa4 100%); }
.imgam-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.1px, transparent 1.3px); background-size: 12px 12px; }
.imgam-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #fcd34d, #ff7900); }
.imgam-hero .container { position: relative; z-index: 1; }
.imgam-hero-inner { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.imgam-eyebrow { font-weight: 800; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #fcd34d; }
.imgam-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.02; font-weight: 900; margin: .9rem 0 1.1rem; }
.imgam-hero h1 em { font-style: normal; color: #fcd34d; }
.imgam-hero .lead { color: #d8e7f2; font-size: 1.12rem; max-width: 38rem; }
.imgam-hero .btn-warning { background: #fcd34d; border-color: #fcd34d; color: #062a45; font-weight: 800; }
.imgam-hero .btn-warning:hover { background: #ffdf6e; border-color: #ffdf6e; }
.imgam-hero .btn-outline-light { font-weight: 700; border-width: 2px; }
.imgam-badge { width: min(280px, 70vw); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.05), 0 30px 60px rgba(0,0,0,.35); margin-inline: auto; }
.imgam-badge img { width: 82%; height: auto; }
.imgam-hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; color: #cfe2ef; font-size: .9rem; }
.imgam-hero-facts i { color: #fcd34d; margin-right: .35rem; }

/* ── Composants ─────────────────────────────────────────────── */
.section-eyebrow { color: #b07d00; font-weight: 800; letter-spacing: .14em; font-size: .74rem; text-transform: uppercase; }
.section-title { font-weight: 900; color: var(--heading-color); }
.cmp-band { background: var(--surface-alt); }
.icon-bubble { background: var(--primary); color: #fcd34d; }
.cmp-feature.card { border: 1px solid var(--border-color); border-top: 4px solid var(--primary); }
.cmp-step-num { background: #fcd34d; color: #062a45; font-weight: 900; box-shadow: 0 0 0 4px rgba(252,211,77,.28); }
.cmp-step { border-left: 3px solid var(--imgam-sky); }
.cmp-stats { background: linear-gradient(135deg, #00456d, #062a45); position: relative; overflow: hidden; }
.cmp-stats::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1.1px, transparent 1.3px); background-size: 12px 12px; pointer-events: none; }
.cmp-stat-value { font-family: var(--heading-font-family); font-weight: 900; color: #fcd34d; position: relative; }
.cmp-stat-label { color: #d8e7f2; font-weight: 600; position: relative; }
.cmp-note-warning { background: #fff8e1; border-color: #f2b705; }
.cmp-note-info { background: #eef5fa; border-color: var(--primary); }
.cmp-cta, .cmp-cta.card { background: linear-gradient(120deg, #00456d, #062a45) !important; color: #fff; }

/* ── En-tête des pages internes ─────────────────────────────── */
.hero-banner-section, .page-hero { position: relative; overflow: hidden; color: #fff !important;
  background: linear-gradient(115deg, #062a45, #00456d 60%, #0b6fa4) !important; border: 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.1px, transparent 1.3px); background-size: 12px 12px; }
.page-hero .container { position: relative; z-index: 1; min-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.page-hero h1, .page-hero .page-title { color: #fff !important; font-weight: 900; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .page-lead, .page-hero p { color: #d8e7f2 !important; }
.page-hero .page-crumbs, .page-hero .page-crumbs a, .page-hero .page-meta, .page-hero .bi { color: #9fc3da !important; }
.page-hero .page-meta { display: none; }

/* ── Pied de page ───────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #fcd34d, #ff7900); }
.site-footer h5 { color: #fff; font-family: var(--heading-font-family); font-weight: 800; }
.site-footer a { color: #e3eef6; text-decoration: none; }
.site-footer a:hover { color: #fcd34d; }
.imgam-footer-brand { font: 900 1.6rem/1 var(--heading-font-family); color: #fff; }
.imgam-footer-brand::after { content: "."; color: #fcd34d; }
.imgam-footer-logo { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }

/* Liens lisibles dans les bandeaux bleus ; encadrés rapprochés */
.cmp-cta a:not(.btn), .imgam-hero a:not(.btn), .page-hero a { color: #fcd34d; }
.page-blocks .cmp-section:has(.cmp-note) { padding-block: .6rem; }
.page-blocks .cmp-section:has(.cmp-note) + .cmp-section:has(.cmp-note) { padding-top: 0; }
