/* ============================================================
   Macky Sall — Site officiel · mackysall.net
   Design « journal diplomatique » (maquette Site Mackysall.dc.html) :
   crème #FBFAF7, marine #0C1B29/#10202E, or #B08D3E, bleu ONU #009EDB,
   serif Newsreader / sans Public Sans, angles droits, ombres douces.
   Propriétés logiques (inline-start/end) pour le miroir RTL (arabe).
   ============================================================ */
:root {
  --bg: #FBFAF7;
  --bg-hover: #F4F1E9;
  --ink: #16283A;
  --heading: #10202E;
  --navy: #0C1B29;          /* header, footer, bandeaux sombres */
  --navy-2: #10202E;        /* héros de pages */
  --blue: #009EDB;          /* bleu ONU */
  --blue-light: #33B4E4;
  --gold: #B08D3E;
  --gold-light: #C9A455;
  --gold-muted: #8A7B57;
  --grey: #47596B;
  --line: #E4E0D6;
  --on-dark: #C8D4DE;
  --on-dark-muted: #9FB2C2;
  --on-dark-faint: #8FA6B8;
  --red: #C0392B;
  --green: #1F8A5B;
  --shadow: 0 1px 3px rgba(16, 32, 46, 0.06);
  --shadow-hover: 0 12px 30px rgba(16, 32, 46, 0.13);
  --serif: "Newsreader", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { inset-inline-start: 0; }

/* Titres */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--heading); line-height: 1.15; }

/* Kicker (sur-titre) */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker.gold { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-badge { width: 40px; height: 40px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 1px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 2.5px; color: #fff; }
.brand-sub { font-size: 10px; letter-spacing: 1.8px; color: var(--on-dark-faint); text-transform: uppercase; }
.main-nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.main-nav a { text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: 0.4px; color: #AEC2D2; padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; font-weight: 700; border-bottom-color: var(--gold); }
.main-nav .nav-cta { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--navy); background: var(--gold); padding: 10px 18px; border-bottom: 0; transition: background 0.2s ease; }
.main-nav .nav-cta:hover { background: var(--gold-light); color: var(--navy); }
.lang-switch { display: flex; gap: 8px; font-size: 11px; letter-spacing: 0.3px; white-space: nowrap; }
.lang-switch a { color: #6E8399; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { color: #fff; font-weight: 600; border-bottom-color: var(--gold); }

/* ---------- Hero accueil ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0.85; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,20,32,0.97) 0%, rgba(9,20,32,0.88) 36%, rgba(9,20,32,0.42) 64%, rgba(9,20,32,0.1) 100%); }
[dir="rtl"] .hero-overlay { background: linear-gradient(270deg, rgba(9,20,32,0.97) 0%, rgba(9,20,32,0.88) 36%, rgba(9,20,32,0.42) 64%, rgba(9,20,32,0.1) 100%); }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 120px 32px 110px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.07; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 28px rgba(9,20,32,0.6); }
.hero .sub { margin-top: 26px; font-size: 17px; line-height: 1.65; max-width: 52ch; color: var(--on-dark); }
.btn-row { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.4px; padding: 15px 28px; transition: background 0.2s ease, border-color 0.2s ease; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* Bandeau de stats sous le hero */
.hero-stats { position: relative; border-top: 1px solid rgba(176,141,62,0.45); background: rgba(9,20,32,0.74); backdrop-filter: blur(8px); }
.hero-stats .container { padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hero-stat { border-inline-start: 2px solid var(--gold); padding-inline-start: 16px; }
.hero-stat .num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; }
.hero-stat .label { font-size: 12.5px; color: var(--on-dark-muted); line-height: 1.4; margin-top: 3px; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 90px 32px 80px; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; max-width: 24ch; }
.section > .lead, .page-hero .lead { font-size: 16px; line-height: 1.7; color: var(--grey); max-width: 66ch; }

/* Bandeau sombre pleine largeur */
.band { background: var(--navy-2); color: #fff; border-bottom: 2px solid var(--gold); }
.band h2 { color: #fff; }

/* Lien fléché */
.arrow-link { display: inline-block; margin-top: 36px; text-decoration: none; color: var(--blue); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--blue); padding-bottom: 2px; transition: color 0.2s ease; }
.arrow-link:hover { color: var(--navy); }

/* ---------- Cartes piliers (accueil) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.card { border-top: 3px solid var(--blue); background: #fff; padding: 28px 26px 30px; box-shadow: var(--shadow); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card .roman { font-family: var(--serif); font-size: 15px; color: var(--gold); margin-bottom: 12px; }
.card h3 { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--grey); }

/* ---------- Actualité à la une (accueil, bandeau sombre) ---------- */
.featured-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.featured-news .date { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 8px; }
.featured-news h2 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
.featured-news .summary { font-size: 15px; line-height: 1.7; color: var(--on-dark); margin-bottom: 28px; }
.featured-news img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.featured-news .btn { font-size: 13.5px; padding: 13px 24px; }
.featured-news .btn-ghost:hover { border-color: var(--gold); }

/* ---------- Presse (accueil) ---------- */
.press-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 36px; }
.press-item { display: flex; gap: 20px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 0.2s ease; }
.press-item:hover { background: var(--bg-hover); }
.press-item .date { flex: 0 0 88px; font-size: 12px; color: var(--gold-muted); letter-spacing: 0.3px; }
.press-item .title { flex: 1; font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--heading); }
.press-item .source { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); white-space: nowrap; }

/* ---------- Héros des pages intérieures ---------- */
.page-hero { background: var(--navy-2); color: #fff; border-bottom: 2px solid var(--gold); }
.page-hero .container { padding-top: 80px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1; }
.page-hero .lead { margin-top: 20px; color: var(--on-dark); }
.page-hero .lead.gold-quote { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }

/* Stats dans le héros (biographie) */
.hero-grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 46px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 30px; }
.hero-grid-stats .num { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--gold); }
.hero-grid-stats .label { font-size: 13px; color: var(--on-dark-muted); margin-top: 4px; }

/* ---------- Biographie ---------- */
.diplo-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: center 30%; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 34px; margin-top: 40px; padding: 26px 30px; background: #fff; box-shadow: var(--shadow); }
.logo-strip img { height: 42px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s ease, opacity 0.25s ease; }
.logo-strip img:hover { filter: grayscale(0); opacity: 1; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.col-title { font-size: 28px; margin-bottom: 8px; }
.col-range { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 28px; }
.youth-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 25%; margin-bottom: 24px; }

/* Frises (lignes date / contenu) */
.timeline { display: flex; flex-direction: column; list-style: none; }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline .date { font-size: 12.5px; font-weight: 600; color: var(--gold-muted); }
.timeline h4 { font-family: var(--serif); font-size: 17.5px; font-weight: 600; color: var(--heading); line-height: 1.3; margin-bottom: 5px; }
.timeline .role { display: block; font-size: 12.5px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.timeline p { font-size: 13.5px; line-height: 1.6; color: var(--grey); }

/* Frise diplomatique par thème */
.tl-cat { margin-top: 54px; }
.tl-cat h3 { font-size: 23px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

/* ---------- Vision ---------- */
.pillars { display: flex; flex-direction: column; gap: 56px; }
.pillar { display: grid; grid-template-columns: 300px 1fr; gap: 50px; border-top: 1px solid var(--line); padding-top: 46px; }
.pillar .stat-num { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; color: var(--blue); }
.pillar .stat-label { font-size: 13.5px; line-height: 1.55; color: var(--grey); margin-top: 10px; }
.pillar .roman { font-family: var(--serif); font-size: 15px; color: var(--gold); margin-bottom: 10px; }
.pillar h2 { font-size: 28px; font-weight: 600; margin-bottom: 14px; }
.pillar .body { font-size: 15px; line-height: 1.7; color: var(--grey); max-width: 66ch; margin-bottom: 20px; }
.pillar ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.pillar ul li { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.pillar ul li::before { content: "—"; color: var(--gold); flex: 0 0 auto; }

.pdf-band { background: var(--navy); color: #fff; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.pdf-band p { font-family: var(--serif); font-size: 20px; }
.pdf-band .btn { font-size: 13.5px; padding: 13px 26px; white-space: nowrap; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.why { background: #fff; padding: 28px 26px; border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.why .num { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--heading); }
.why .label { font-size: 13.5px; line-height: 1.5; color: var(--grey); margin-top: 8px; }

/* ---------- Fact-checking ---------- */
.facts-wrap { max-width: 980px; margin: 0 auto; padding: 70px 32px 90px; display: flex; flex-direction: column; gap: 40px; }
.fact-item { background: #fff; box-shadow: var(--shadow); }
.fact-head { display: flex; align-items: center; gap: 18px; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.fact-num { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold); flex: none; }
.fact-head h3 { font-size: 22px; font-weight: 600; }
.fact-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 22px; }
.alleged { border-inline-start: 3px solid var(--red); padding-inline-start: 20px; }
.the-facts { border-inline-start: 3px solid var(--green); padding-inline-start: 20px; }
.alleged .tag, .the-facts .tag { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.alleged .tag { color: var(--red); }
.the-facts .tag { color: var(--green); }
.alleged p { font-size: 14.5px; line-height: 1.65; color: var(--grey); }
.the-facts p { font-size: 14.5px; line-height: 1.7; color: var(--ink); }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gallery-grid figure { background: #fff; box-shadow: var(--shadow); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.gallery-grid figure:hover { box-shadow: 0 14px 34px rgba(16,32,46,0.15); transform: translateY(-4px); }
.gallery-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.gallery-grid figcaption { padding: 14px 18px 18px; font-size: 13px; line-height: 1.5; color: var(--grey); }

/* ---------- Actualités ---------- */
.news-featured { display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: box-shadow 0.25s ease; }
.news-featured:hover { box-shadow: var(--shadow-hover); }
.news-featured img { width: 100%; height: 100%; object-fit: cover; }
.news-featured .txt { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.news-featured .date { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-muted); font-weight: 600; margin-bottom: 10px; }
.news-featured h2 { font-size: 27px; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }
.news-featured .summary { font-size: 15px; line-height: 1.7; color: var(--grey); margin-bottom: 26px; }
.news-featured .more { color: var(--blue); font-size: 14px; font-weight: 600; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.news-card { background: #fff; box-shadow: var(--shadow); text-decoration: none; display: block; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card-media { position: relative; display: block; }
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: rgba(12,27,41,0.35); }
.news-card-body { padding: 24px 26px 28px; }
.news-card-body .date { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-muted); font-weight: 600; }
.news-card-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--heading); margin: 8px 0 10px; }
.news-card-body p { font-size: 14.5px; line-height: 1.65; color: var(--grey); }

/* Article */
.article-media { width: 100%; margin: 0 0 36px; display: block; background: var(--navy); }
video.article-media { aspect-ratio: 16/9; max-height: 620px; }
.article-wrap { max-width: 860px; margin: 0 auto; padding: 60px 32px 90px; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--ink); margin-top: 18px; max-width: 66ch; }
.article-body a { color: var(--blue); }
.back-link { display: inline-block; margin-top: 40px; text-decoration: none; border: 1px solid var(--line); color: var(--heading); font-size: 13.5px; font-weight: 600; padding: 13px 24px; transition: border-color 0.2s ease; }
.back-link:hover { border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-top: 64px; }
.site-footer .tagline { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { text-decoration: none; font-size: 14px; color: var(--on-dark-muted); transition: color 0.2s ease; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #6E8399; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-stats .container, .hero-grid-stats, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .press-list, .featured-news, .two-col, .pillar, .news-featured, .news-grid { grid-template-columns: 1fr; }
  .featured-news { gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-inner { padding: 80px 32px 70px; }
  .section { padding: 64px 24px 56px; }
  .container { padding: 0 24px; }
  .news-featured .txt { padding: 30px 26px; }
}
@media (max-width: 560px) {
  .hero-stats .container, .hero-grid-stats, .why-grid, .gallery-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 84px 1fr; gap: 14px; }
  .pdf-band { padding: 26px 24px; }
  .main-nav { order: 3; width: 100%; }
}

/* ---------- Page « Dans les médias » ---------- */
.press-group { margin-top: 44px; }
.press-group:first-child { margin-top: 0; }
.press-group-title { font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-muted); border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; max-width: none; }
.press-group-title .count { color: var(--grey); font-weight: 600; font-size: 13px; }
