/* =============================================================
   RESPONSIVE.CSS — Présidence de la République du Niger
   Système complet : Mobile → Tablette → Desktop
   ============================================================= */

/* ==================== IMPORT FONTS ========================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Barlow:wght@300;400;500;600&display=swap');

/* ==================== RESET + BASE ========================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --or: #C9A84C; --or-light: #E8D28A; --or-dark: #8B6914;
  --vert: #027901; --vert-fonce: #1C2B1E;
  --blanc: #FAFAF7; --texte: #1A1A18; --texte-2: #4A4A42;
  --bordure: #E0D8B8;
  --nav-h: 50px;
  --header-logo: 220px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--blanc);
  color: var(--texte);
  overflow-x: clip; /* "hidden" casse position:sticky sur Safari mobile ; "clip" évite le débordement horizontal sans casser le menu fixe */
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ==================== DRAPEAU ============================== */
.drapeau {
  display: flex;
  height: 6px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
}
.drapeau span { flex: 1; }
.d-orange { background: #E76F1A; }
.d-blanc {
  background: #FFF;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  position: relative;
}
.d-blanc::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: #E76F1A;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.d-vert { background: #2D6A4F; }

/* ==================== TOPBAR =============================== */
.topbar {
  background: #fff;
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  z-index: 1050;
}
.topbar ul { display: flex; gap: 24px; list-style: none; }
.topbar a {
  color: var(--vert-fonce);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.topbar a:hover { color: var(--or-dark); }
.topbar-right { font-size: 11px; color: #5A5A52; letter-spacing: .05em; white-space: nowrap; }

/* ==================== HEADER =============================== */
header {
  background: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 24px;
}
.header-inner img { width: var(--header-logo); height: auto; }
.header-text .eyebrow {
  font-size: clamp(14px, 2vw, 22px);
  letter-spacing: .2em;
  color: var(--or-dark);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 4px;
  opacity: .8;
}
.header-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: #184a1c;
  line-height: 1.1;
}
.header-text .devise {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 300;
  color: rgba(126,95,12,.91);
  margin-top: 4px;
  font-style: italic;
}

/* ==================== HAMBURGER ============================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--or-light);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==================== NAV ================================== */
nav {
  background: #1A2720;
  padding: 0 40px;
  border-top: 1px solid rgba(201,168,76,.15);
  border-bottom: 1px solid rgba(201,168,76,.15);
  position: sticky;
  top: 6px;
  z-index: 1000;
}
.nav-list {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  list-style: none;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-list a {
  display: block;
  padding: 14px 15px;
  color: var(--blanc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all .2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a.active {
  color: var(--or-light);
  border-bottom-color: var(--or);
}

/* ==================== BAND ================================= */
.band {
  background: var(--or);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.band-div { width: 1px; height: 18px; background: rgba(0,0,0,.2); }
.band b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1200;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.band i {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(26,18,0,.65);
  letter-spacing: .05em;
}

/* ==================== PAGE HERO (sous-pages) =============== */
.page-hero {
  background: linear-gradient(135deg, #027901, #014f01);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,168,76,.08), transparent);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.page-hero-inner { max-width: 1360px; margin: 0 auto; }
.page-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--or-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: .8;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: #FAFAF7;
  line-height: 1.05;
}
.page-sub {
  font-size: 14px;
  color: rgba(250,250,247,.5);
  margin-top: 10px;
  font-weight: 300;
}

/* ==================== HERO (index) ========================= */
.hero {
  position: relative;
  height: clamp(360px, 60vw, 580px);
  overflow: hidden;
  background: #1C2B1E;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/pr.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(.55) saturate(.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,43,30,.72) 0%, rgba(45,106,79,.55) 40%, rgba(45,106,79,.30) 70%, rgba(13,26,15,.80) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
  max-width: 1360px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}
.hero-text { max-width: 560px; position: relative; z-index: 2; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-eyebrow-line { width: 36px; height: 1px; background: var(--or); }
.hero-eyebrow-text {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--or-light);
  text-transform: uppercase;
  font-weight: 400;
}
.hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  color: #FAFAF7;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero h2 em { color: var(--or-light); font-style: italic; }
.hero p {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  color: rgba(250,250,247,.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 420px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-pres-label {
  position: absolute;
  bottom: 32px; right: 80px;
  z-index: 2;
  text-align: right;
  border-left: 2px solid var(--or);
  padding-left: 16px;
}
.hero-pres-label .pres-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #FAFAF7;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-pres-label .pres-titre {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--or-light);
  text-transform: uppercase;
  opacity: .8;
  margin-top: 4px;
}

/* ==================== BOUTONS ============================== */
.btn-p {
  background: var(--or);
  color: #0D1200;
  padding: 13px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-p:hover { background: var(--or-light); }
.btn-s {
  border: 1px solid rgba(201,168,76,.6);
  color: var(--or-light);
  padding: 13px 26px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.btn-s:hover { border-color: var(--or); background: rgba(201,168,76,.15); }

/* ==================== STATS ================================ */
.stats {
  background: #F5F2E8;
  border-top: 3px solid var(--or);
  border-bottom: 1px solid var(--bordure);
}
.stats-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 30px;
  border-right: 1px solid var(--bordure);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--vert);
  line-height: 1;
  margin-bottom: 3px;
}
.stat-l {
  font-size: 11px;
  font-weight: 400;
  color: var(--texte-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stat-d {
  font-size: 12px;
  color: #8a8070;
  margin-top: 3px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* ==================== SECTIONS ============================= */
.sec { padding: 72px 40px; }
.sec-inner { max-width: 1360px; margin: 0 auto; }
.sec-head { margin-bottom: 44px; }
.sec-ey { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec-ey-line { width: 28px; height: 1.5px; background: var(--or); }
.sec-ey-t {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--or-dark);
  text-transform: uppercase;
  font-weight: 500;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--texte);
  line-height: 1.1;
}
.sec-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--texte-2);
  font-style: italic;
  margin-top: 6px;
}

/* ==================== ACTUALITES ========================== */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.news-feat {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #027901, #014f01);
  min-height: 380px;
  cursor: pointer;
}
.news-feat-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #027901; }
.news-feat-img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.news-feat-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,26,15,.1), rgba(13,26,15,.92) 70%);
}
.news-feat-c { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; }
.badge {
  display: inline-block;
  background: var(--or);
  color: #0D1200;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 12px;
}
.news-feat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: #FAFAF7;
  line-height: 1.2;
  margin-bottom: 10px;
}
.news-feat-meta { font-size: 11px; color: rgba(250,250,247,.45); letter-spacing: .05em; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-card {
  background: #FAFAF7;
  border: 1px solid var(--bordure);
  padding: 18px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.news-card:hover { border-color: var(--or); box-shadow: 0 2px 10px rgba(201,168,76,.1); }
.news-cat {
  font-size: 9px;
  letter-spacing: .15em;
  color: var(--or-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 7px;
}
.news-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color:#027901;
  line-height: 1.3;
  margin-bottom: 7px;
}
.news-meta { font-size: 11px; color: #8a8070; }

/* ==================== AGENDA ============================== */
.agenda-sec { background: #F5F2E8; }
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--bordure);
}
.ag-item {
  padding: 24px 28px;
  border-bottom: 1px solid var(--bordure);
  border-right: 1px solid var(--bordure);
  display: flex;
  gap: 18px;
  cursor: pointer;
  transition: background .2s;
}
.ag-item:hover { background: #EDE8D8; }
.ag-item:nth-child(even) { border-right: none; }
.ag-date {
  width: 48px;
  flex-shrink: 0;
  background: var(--vert);
  padding: 9px 7px;
  text-align: center;
}
.ag-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #FAFAF7;
  line-height: 1;
  display: block;
}
.ag-month {
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(250,250,247,.65);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
.ag-content { flex: 1; }
.ag-time {
  font-size: 10px;
  color: var(--or-dark);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.ag-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color:#027901;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ag-lieu { font-size: 12px; color: var(--texte-2); }

/* ==================== DISCOURS =========================== */
.disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.disc-card {
  border: 1px solid var(--bordure);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: #FAFAF7;
}
.disc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.disc-top {
  background: linear-gradient(135deg, #027901, #014f01);
  padding: 28px 22px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.disc-top::after {
  content: '';
  position: absolute;
  bottom: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.disc-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  color: rgba(201,168,76,.22);
  font-weight: 600;
  position: absolute;
  top: 12px; left: 20px;
  line-height: 1;
}
.disc-type {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--or-light);
  text-transform: uppercase;
  opacity: .65;
}
.disc-body { padding: 18px 22px; }
.disc-date {
  font-size: 10px;
  color: var(--or-dark);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 500;
}
.disc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color:#027901;
  line-height: 1.3;
  margin-bottom: 10px;
}
.disc-link {
  font-size: 11px;
  color: var(--vert);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
}

/* ==================== SERVICES ============================ */
.serv-sec {
  background: #f5f2e8;
  position: relative;
  overflow: hidden;
}
.serv-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}
.serv-sec .sec-title { color: var(--texte); }
.serv-sec .sec-ey-line { background: var(--or-dark); }
.serv-sec .sec-ey-t { color: var(--or-dark); }
.serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(201,168,76,.12);
}
.serv-item {
  background: linear-gradient(135deg, #027901, #014f01);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  position: relative;
}
.serv-item:hover { background: linear-gradient(135deg, #028f01, #016302); transform: translateY(-4px); box-shadow: 0 10px 26px rgba(1,79,1,.35); }
.serv-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: border-color .25s, background .25s;
}
.serv-item:hover .serv-icon { border-color: var(--or); background: rgba(255,255,255,.2); }
.serv-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: #FAFAF7;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.serv-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: #FAFAF7;
  margin-bottom: 7px;
}
.serv-desc { font-size: 12px; color: rgba(250,250,247,.4); line-height: 1.6; font-weight: 300; }

/* ==================== NEWSLETTER ========================= */
.newsletter-sec {
  background: linear-gradient(135deg, #027901, #014f01);
  padding: 56px 64px;
  box-sizing: border-box;
  width: 100%;
  display: block;
}
.newsletter-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.newsletter-text .nl-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--or-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: .8;
}
.newsletter-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: #FAFAF7;
  line-height: 1.1;
}
.newsletter-text p { font-size: 13px; color: rgba(250,250,247,.5); margin-top: 6px; font-weight: 300; }
.newsletter-form { display: flex; gap: 0; flex-wrap: wrap; }
.newsletter-input {
  width: 280px;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(255,255,255,.06);
  color: #FAFAF7;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  outline: none;
}
.newsletter-input::placeholder { color: rgba(250,250,247,.35); }
.newsletter-input:focus { border-color: var(--or); }
.newsletter-submit {
  background: var(--or);
  color: #0D1200;
  padding: 13px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Barlow', sans-serif;
}
.newsletter-submit:hover { background: var(--or-light); }

/* ==================== FOOTER ============================= */
footer {
  background: #FFFFFF;
  padding: 64px 40px 0;
  border-top: 3px solid var(--or);
}
.foot-inner { max-width: 1360px; margin: 0 auto; }
.foot-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.foot-brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--texte);
  line-height: 1.2;
  margin-bottom: 8px;
}
.foot-brand p {
  font-size: 12px;
  color: var(--texte-2);
  line-height: 1.8;
  max-width: 260px;
  font-weight: 300;
  margin-top: 10px;
}
.foot-brand-devise {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--or-dark);
  font-style: italic;
  margin-top: 14px;
}
.foot-col-title {
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--vert);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-links a {
  font-size: 13px;
  color: var(--texte-2);
  text-decoration: none;
  font-weight: 300;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.foot-links a::before { content: ''; width: 4px; height: 1px; background: var(--or); flex-shrink: 0; }
.foot-links a:hover { color: var(--vert); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--bordure);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--texte-2);
}
.foot-social-btn:hover { border-color: var(--or); color: var(--vert); }
.foot-social-btn svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.foot-mid {
  border-top: 1px solid var(--bordure);
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 40px;
}
.foot-contact-item { display: flex; align-items: flex-start; gap: 12px; flex: 0 1 320px; text-align: left; }
.foot-contact-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--bordure);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.foot-contact-icon svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--or-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.foot-contact-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte-2);
  font-weight: 500;
  margin-bottom: 3px;
}
.foot-contact-val { font-size: 13px; color: var(--texte); font-weight: 400; }
.foot-bottom {
  background: #F5F2E8;
  margin: 0 -40px;
  padding: 18px 40px;
}
.foot-bottom-inner {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom p { font-size: 11px; color: var(--texte-2); letter-spacing: .04em; }
.foot-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom-links a {
  font-size: 11px;
  color: var(--texte-2);
  text-decoration: none;
  transition: color .2s;
}
.foot-bottom-links a:hover { color: var(--vert); }
.foot-bottom-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-bottom-social { display: flex; gap: 8px; }
.foot-bottom-social a {
  width: 30px; height: 30px;
  border: 1px solid var(--bordure);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--texte-2);
  transition: all .2s;
}
.foot-bottom-social a:hover { border-color: var(--or); background: rgba(201,168,76,.12); color: var(--vert); }
.foot-bottom-social a svg { width: 13px; height: 13px; }

/* ==================== CONTENU PRINCIPAL ================== */
.main-content { max-width: 1360px; margin: 0 auto; padding: 60px 40px; }

/* ==================== SKELETON =========================== */
.skeleton {
  background: linear-gradient(90deg, #e8e3d0 25%, #f5f2e8 50%, #e8e3d0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==================== GRILLES PAGES ====================== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ==================== SCROLL REVEAL ====================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* =============================================================
   RESPONSIVE — TABLETTE (≤ 1024px)
   ============================================================= */
@media (max-width: 1024px) {
  :root { --header-logo: 180px; }

  .topbar { padding: 7px 24px; }
  .topbar ul { gap: 16px; }

  header { padding: 4px 24px; }

  nav { padding: 0 24px; }
  .nav-list a { padding: 14px 11px; font-size: 12px; font-weight: 700; }

  .sec { padding: 56px 24px; }
  .main-content { padding: 48px 24px; }

  .hero-content { padding: 0 48px; }
  .hero-pres-label { right: 48px; }

  .foot-top { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { margin: 0 -24px; padding: 18px 24px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--bordure); }

  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .disc-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  .newsletter-inner { flex-direction: column; text-align: center; align-items: center; }
  .newsletter-form { justify-content: center; }
  .newsletter-input { width: 260px; }

  .band { padding: 10px 24px; }
  .newsletter-sec { padding: 40px 24px; }
  footer { padding: 48px 24px 0; }
}

/* =============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================= */
@media (max-width: 768px) {
  :root { --header-logo: 80px; }

  /* ---------- BARRE SUPÉRIEURE FIXE (topbar + header + nav) ----------
     Les 3 blocs sont fixés en haut de l'écran, empilés les uns sous les
     autres grâce à des variables CSS calculées en JS (voir common.js /
     updateMobileFixedHeader). Le contenu de la page reçoit un padding-top
     équivalent pour ne pas passer sous ce bloc fixe. */
  .topbar, header, nav {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }
  .topbar { top: 6px; z-index: 960; }
  header  { top: calc(6px + var(--mobile-topbar-h, 34px)); z-index: 955; }
  nav     { top: var(--mobile-fixed-top, 96px); z-index: 950; }

  body {
    padding-top: var(--mobile-body-pad, 150px) !important;
  }

  /* TOPBAR : masquer liens secondaires */
  .topbar { padding: 6px 16px; }
  .topbar ul { display: none; }
  .topbar-right {
    font-size: 10px;
    overflow: visible;
  }
  #topbar-date {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }

  /* HEADER */
  header { padding: 4px 16px; }
  .header-inner { gap: 14px; flex-wrap: nowrap; }
  .header-text .eyebrow { font-size: 11px; letter-spacing: .1em; }
  .header-text h1 { font-size: 22px; }
  .header-text .devise { font-size: 13px; }

  /* HAMBURGER visible */
  .hamburger { display: flex; }

  /* NAV MOBILE : menu déroulant, avec défilement interne propre */
  nav { padding: 0; }
  .nav-list {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap; /* évite que le menu se scinde en colonnes invisibles sur mobile */
    width: 100%;
    background: #f5f2e8;
    border-top: 1px solid rgba(201,168,76,.3);
  }
  .nav-list.open {
    display: flex;
    flex-wrap: nowrap;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--mobile-fixed-top, 96px) + var(--mobile-nav-h, 52px));
    max-height: calc(100vh - var(--mobile-fixed-top, 96px) - var(--mobile-nav-h, 52px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 945;
    box-shadow: 0 14px 24px rgba(0,0,0,.18);
  }
  .nav-list li { border-bottom: 1px solid rgba(28,43,30,.1); }
  .nav-list a {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: none;
    border-left: 3px solid transparent;
    color: var(--vert-fonce);
  }
  .nav-list a:hover, .nav-list a.active {
    border-left-color: var(--or);
    border-bottom-color: transparent;
    background: rgba(2,121,1,.07);
    color: var(--vert-fonce);
  }

  /* SOUS-MENUS : visibles en permanence, en liste imbriquée sur mobile */
  .dropdown-menu {
    display: block;
    position: static;
    min-width: 0;
    background: rgba(28,43,30,.04);
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .dropdown-menu li a { padding: 11px 20px 11px 36px; font-size: 11px; color: var(--texte-2); }
  .nav-list .caret { display: none; }

  /* Le panneau qui enveloppe chaque sous-menu (+ le bloc "mega-feature" à
     côté sur ordinateur) n'avait aucune règle mobile : il restait positionné
     en absolu et large de 420px minimum, donc plus large que n'importe quel
     écran de téléphone, et ne s'affichait que par un effet :hover peu fiable
     au toucher. On le rend statique et pleine largeur comme le reste du
     menu mobile, et on masque le bloc décoratif "mega-feature" qui n'a pas
     sa place dans une liste compacte. */
  .mega-panel {
    display: block !important;
    position: static !important;
    min-width: 0;
    max-width: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .mega-feature { display: none !important; }

  

  /* BAND */
  .band { padding: 10px 16px; flex-direction: column; gap: 6px; }
  .band-div { display: none; }
  .band b, .band i { font-size: 12px; letter-spacing: .08em; }

  /* HERO */
  .hero { height: auto; min-height: 400px; }
  .hero-content { padding: 60px 20px 100px; position: relative; left: auto; transform: none; display: block; }
  .hero-text { max-width: 100%; }
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 13px; max-width: 100%; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .btn-p, .btn-s { text-align: center; }
  .hero-pres-label { bottom: 20px; right: 20px; }
  .hero-pres-label .pres-nom { font-size: 16px; }
  .hero-pres-label .pres-titre { font-size: 9px; }

  /* STATS */
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--bordure); border-top: 1px solid var(--bordure); }
  .stat:nth-child(4) { border-top: 1px solid var(--bordure); }

  /* SECTIONS */
  .sec { padding: 48px 16px; }
  .main-content { padding: 32px 16px; }

  /* NEWS */
  .news-grid { grid-template-columns: 1fr; }
  .news-feat { min-height: 280px; }

  /* AGENDA */
  .agenda-grid { grid-template-columns: 1fr; }
  .ag-item { border-right: none !important; }
  .ag-item:nth-child(even) { border-right: none; }

  /* DISCOURS */
  .disc-grid { grid-template-columns: 1fr; }

  /* SERVICES */
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .serv-item { padding: 24px 16px; }

  /* ARTICLES */
  .articles-grid { grid-template-columns: 1fr; }

  /* NEWSLETTER */
  .newsletter-sec { padding: 36px 16px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; }
  .newsletter-submit { width: 100%; }

  /* FOOTER : bloc "marque" en pleine largeur, les 3 colonnes de liens côte à côte */
  footer { padding: 40px 16px 0; }
  .foot-top { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { max-width: 100%; }
  .foot-top > div:not(.foot-brand) .foot-col-title { font-size: 9px; margin-bottom: 10px; }
  .foot-top > div:not(.foot-brand) .foot-links { gap: 8px; }
  .foot-top > div:not(.foot-brand) .foot-links a { font-size: 11px; line-height: 1.4; }
  .foot-mid { grid-template-columns: 1fr; gap: 20px; }
  .foot-bottom { margin: 0 -16px; padding: 16px; }
  .foot-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-bottom-links { gap: 12px; }

  /* PAGE HERO */
  .page-hero { padding: 40px 16px; }
  .page-title { font-size: 32px; }

  /* FILTRES ACTUAITES */
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 10px; }
}

/* =============================================================
   RESPONSIVE — PETIT MOBILE (≤ 480px)
   ============================================================= */
@media (max-width: 480px) {
  :root { --header-logo: 60px; }

  .header-text h1 { font-size: 18px; }
  .header-text .eyebrow { display: none; }

  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; border-top: 1px solid var(--bordure); }
  .stat:first-child { border-top: none; }
  .stat:nth-child(3) { border-right: none; }

  .serv-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 26px; }

  .sec-title { font-size: 26px; }
  .foot-bottom-links { flex-direction: column; gap: 8px; }

  .newsletter-input { font-size: 14px; }
}

/* =============================================================
   UTILITAIRES
   ============================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Smooth image loading */
img { transition: opacity .3s; }
img[loading] { opacity: 0; }
img.loaded { opacity: 1; }

/* =============================================================
   PAGES SECONDAIRES — Cards, grilles, layouts spécifiques
   ============================================================= */

/* --- Discours page --- */
.disc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.disc-card { border: 1px solid var(--bordure); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; background: #FAFAF7; }
.disc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; align-items: center; }
.filter-btn { padding: 8px 18px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: 1px solid var(--bordure); background: transparent; color: var(--texte-2); font-family: 'Barlow',sans-serif; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--vert-fonce); color: var(--or-light); border-color: var(--vert-fonce); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-num { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bordure); font-size: 13px; cursor: pointer; transition: all .2s; color: var(--texte-2); }
.page-num.active, .page-num:hover { background: var(--vert-fonce); color: var(--or-light); border-color: var(--vert-fonce); }

/* --- Président page --- */
.bio-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.page-hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 60px 80px; max-width: 1360px; margin: 0 auto; left: 50%; transform: translateX(-50%); }

/* --- Inline grids dans diplomatie / institutions --- */
.inline-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.inline-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.inline-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }

/* =============================================================
   TABLETTE ≤ 1024px — pages secondaires
   ============================================================= */
@media (max-width: 1024px) {
  .disc-grid { grid-template-columns: repeat(2,1fr); }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-portrait { position: static; }
  .page-hero-content { padding: 40px 40px; }
  .inline-grid-4 { grid-template-columns: repeat(2,1fr); }
  .inline-grid-3 { grid-template-columns: repeat(2,1fr); }
  .inline-grid-2-1 { grid-template-columns: 1fr; gap: 32px; }
}

/* =============================================================
   MOBILE ≤ 768px — pages secondaires
   ============================================================= */
@media (max-width: 768px) {
  /* Discours cards */
  .disc-grid { grid-template-columns: 1fr; }
  
  /* Actualités cards */
  .articles-grid { grid-template-columns: 1fr; }
  .article-img { height: 180px; }
  .article-modal-body { padding: 24px 20px; }
  .article-modal-header { padding: 28px 20px; }
  .article-modal-title { font-size: 24px; }

  /* Filtres */
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 10px; }
  .filter-label { display: none; }

  /* Discours modal */
  .disc-modal { width: 95vw !important; max-height: 90vh; }
  .disc-modal-header { padding: 28px 20px; }
  .disc-modal-body { padding: 24px 20px; }

  /* Président page */
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-portrait { position: static !important; top: auto !important; }
  .page-hero-content { padding: 32px 20px; left: 0; transform: none; position: relative; }

  /* Diplomatie / Institutions grilles inline */
  .inline-grid-4,
  .inline-grid-3,
  .inline-grid-2-1,
  [style*="grid-template-columns: repeat(4"] ,
  [style*="grid-template-columns:repeat(4"] ,
  [style*="grid-template-columns: repeat(3"] ,
  [style*="grid-template-columns:repeat(3"] ,
  [style*="grid-template-columns: 2fr 1fr"] ,
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Agenda page spécifique */
  .ag-event { flex-direction: column; gap: 12px; }
  .ag-date-box { width: 100%; flex-direction: row; gap: 12px; padding: 10px 16px; justify-content: flex-start; }
  .tab-switch { overflow-x: auto; }

  /* Pagination */
  .pagination { gap: 6px; }
  .page-num { width: 32px; height: 32px; font-size: 12px; }

  /* Page hero sur mobile */
  .page-hero { padding: 36px 16px; }
  .page-title { font-size: 30px; }
  .page-sub { font-size: 13px; }

  /* Main content padding */
  .main-content { padding: 28px 16px; }

  /* Empty states */
  .empty-state { padding: 48px 16px; }
}

/* =============================================================
   PETIT MOBILE ≤ 480px — pages secondaires
   ============================================================= */
@media (max-width: 480px) {
  .disc-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
  .filter-bar { justify-content: flex-start; }
  .filter-btn { padding: 6px 10px; font-size: 10px; }

  /* Agenda */
  .ag-event { padding: 16px; }
  .ag-date-box { width: 56px; }
}

.mega-panel .mega-feature,
.mega-panel .mega-feature *{
  white-space:normal !important;
}
.mega-feature-title{
  overflow-wrap:break-word;
  word-break:break-word;
  min-width:0;
}