/* =========================================================
   CCM-GABON — Design system
   Comité de Coordination Multisectoriel
   ========================================================= */

:root{
  /* Couleurs de marque (issues du logo) */
  --blue:        #1C30E0;
  --blue-deep:   #121F94;
  --red:         #D6051A;
  --red-deep:    #9A0414;
  --stone:       #9C9492;
  --stone-deep:  #6E6764;

  /* Neutres */
  --ink:         #15171C;
  --ink-soft:    #4A4D55;
  --paper:       #F7F4EF;
  --paper-dim:   #EFEAE2;
  --white:       #FFFFFF;
  --navy-deep:   #0E1640;
  --navy-mid:    #182A78;

  /* Typo */
  --font-display: 'Source Serif 4', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Échelle */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --shadow-1: 0 1px 2px rgba(14,22,64,.06), 0 2px 8px rgba(14,22,64,.05);
  --shadow-2: 0 8px 24px rgba(14,22,64,.10), 0 2px 6px rgba(14,22,64,.06);
  --shadow-3: 0 24px 60px rgba(14,22,64,.16);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
section[id]{scroll-margin-top:90px;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

:focus-visible{
  outline:3px solid var(--red);
  outline-offset:3px;
  border-radius:4px;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.12;
  margin:0;
  color:var(--navy-deep);
  letter-spacing:-.01em;
}

p{margin:0;}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-body);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--red);
}
.eyebrow.blue{color:var(--blue);}
.eyebrow.on-dark{color:#FF8A93;}

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn:active{transform:translateY(0);}

.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:var(--shadow-1);
}
.btn-primary:hover{background:var(--red-deep); box-shadow:var(--shadow-2);}

.btn-navy{
  background:var(--navy-deep);
  color:#fff;
}
.btn-navy:hover{background:#08102E;}

.btn-outline{
  background:transparent;
  border-color:rgba(255,255,255,.55);
  color:#fff;
}
.btn-outline:hover{background:rgba(255,255,255,.12); border-color:#fff;}

.btn-outline-dark{
  background:transparent;
  border-color:rgba(14,22,64,.25);
  color:var(--navy-deep);
}
.btn-outline-dark:hover{background:var(--navy-deep); color:#fff; border-color:var(--navy-deep);}

.btn-ghost{
  background:transparent;
  color:var(--navy-deep);
  padding:14px 6px;
}
.btn-ghost svg{transition:transform .18s ease;}
.btn-ghost:hover svg{transform:translateX(4px);}

.btn-sm{padding:10px 20px; font-size:.85rem;}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(247,244,239,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(14,22,64,.08);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:84px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.brand-icon{width:60px; height:auto; flex-shrink:0;}
.brand-icon-badge{
  background:#fff;
  border-radius:12px;
  padding:6px 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.brand-icon-badge .brand-icon{width:40px;}
.brand-text{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.32rem;
  color:var(--navy-deep);
  letter-spacing:-.01em;
  line-height:1.05;
}
.brand-text span{
  display:block;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.5rem;
  letter-spacing:.09em;
  line-height:1.7;
  text-transform:uppercase;
  color:var(--stone-deep);
  padding:5px 0px;
}

.main-nav{display:flex; align-items:center; gap:2px;}
.main-nav > li{position:relative;}
.main-nav > li > a, .nav-dropdown-btn{
  display:flex;
  align-items:center;
  gap:6px;
  padding:12px 16px;
  font-size:.92rem;
  font-weight:600;
  color:var(--ink-soft);
  border-radius:999px;
  background:none;
  border:none;
  transition:color .16s ease, background .16s ease;
}
.main-nav > li > a:hover, .main-nav > li.active > a, .nav-dropdown-btn:hover{
  color:var(--navy-deep);
  background:rgba(14,22,64,.06);
}
.main-nav{list-style:none;}

.has-dropdown{position:relative;}
.dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:240px;
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-3);
  padding:10px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
  list-style:none;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform:translateY(0);
}
.dropdown li a{
  display:block;
  padding:11px 14px;
  border-radius:8px;
  font-size:.9rem;
  font-weight:500;
  color:var(--ink-soft);
}
.dropdown li a:hover{background:var(--paper); color:var(--navy-deep);}

.header-actions{display:flex; align-items:center; gap:10px;}

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border:none;
  background:transparent;
  border-radius:10px;
  align-items:center;
  justify-content:center;
}
.nav-toggle:hover{background:rgba(14,22,64,.06);}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--navy-deep);
  color:#C9CEE4;
  padding:80px 0 0;
}
.footer-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:48px;
  padding-bottom:56px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand{display:flex; align-items:flex-start; gap:12px; margin-bottom:18px;}
.footer-brand .brand-text{color:#fff;}
.footer-brand .brand-text span{color:#8A91B5;}
.footer-about p{color:#A8AFD0; font-size:.92rem; max-width:320px;}
.footer-address{
  margin-top:20px;
  font-size:.92rem;
  color:#A8AFD0;
  font-style:normal;
  line-height:1.7;
}
.footer-col h5{
  color:#fff;
  font-family:var(--font-body);
  font-size:.82rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:18px;
}
.footer-col ul{list-style:none; display:flex; flex-direction:column; gap:11px;}
.footer-col a{font-size:.92rem; color:#A8AFD0; transition:color .15s ease;}
.footer-col a:hover{color:#fff;}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:26px 0;
  font-size:.85rem;
  color:#8A91B5;
}
.footer-legal{display:flex; gap:24px;}
.footer-legal a:hover{color:#fff;}
.social-row{display:flex; gap:10px;}
.social-row a{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  transition:background .15s ease, transform .15s ease;
}
.social-row a:hover{background:var(--red); transform:translateY(-2px);}

/* =========================================================
   UTILITIES / SHARED SECTIONS
   ========================================================= */
section{padding:96px 0;}
.section-tight{padding:64px 0;}
.text-center{text-align:center;}
.section-head{max-width:680px; margin-bottom:56px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(1.8rem, 3.4vw, 2.6rem); margin-top:14px;}
.section-head p{margin-top:16px; font-size:1.05rem; color:var(--ink-soft);}

.bg-navy{background:var(--navy-deep); color:#D6DAEF;}
.bg-navy h2, .bg-navy h3{color:#fff;}
.bg-paper-dim{background:var(--paper-dim);}
.bg-white{background:#fff;}

/* Séparateur "ruban de coordination" — signature graphique */
.ribbon-divider{
  width:100%;
  height:46px;
  display:block;
}
.ribbon-divider path{vector-effect:non-scaling-stroke;}

/* Breadcrumb / page header (pages secondaires) */
.page-hero{
  background:var(--navy-deep);
  color:#fff;
  padding:64px 0 56px;
  position:relative;
  overflow:hidden;
}
.page-hero .container{position:relative; z-index:2;}
.page-hero .crumb{
  font-size:.85rem;
  color:#8A91B5;
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:18px;
}
.page-hero .crumb a:hover{color:#fff;}
.page-hero h1{color:#fff; font-size:clamp(2rem,4vw,2.9rem);}
.page-hero p{color:#B7BCDA; margin-top:14px; max-width:620px; font-size:1.05rem;}
.page-hero-decor{
  position:absolute; inset:0; z-index:1; opacity:.5;
}
.hero-orb{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  animation:float-drift 16s ease-in-out infinite;
}
.hero-orb.o1{width:90px; height:90px; background:radial-gradient(circle, rgba(28,48,224,.35), transparent 70%); top:18%; right:12%; animation-delay:0s;}
.hero-orb.o2{width:60px; height:60px; background:radial-gradient(circle, rgba(214,5,26,.32), transparent 70%); bottom:22%; right:28%; animation-delay:-4s; animation-duration:12s;}
.hero-orb.o3{width:46px; height:46px; background:radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); top:38%; left:8%; animation-delay:-8s; animation-duration:18s;}

/* Illustration dans une bannière (coin droit, discrète) */
.hero-illustration{
  position:absolute;
  right:4%;
  top:50%;
  transform:translateY(-42%);
  width:190px;
  z-index:1;
  opacity:.95;
  pointer-events:none;
}
@media (max-width:1180px){
  .hero-illustration{width:150px;}
}
@media (max-width:980px){
  .hero-illustration{display:none;}
}

/* Section avec illustration à côté du texte */
.illu-feature{
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:48px;
  align-items:center;
}
.illu-feature .illu-visual{
  background:linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  border-radius:var(--radius-lg);
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-2);
  position:relative;
  overflow:hidden;
}
.illu-feature .illu-visual img{width:100%; max-width:280px;}
.illu-feature .illu-visual img{border-radius:var(--radius-md); object-fit:cover;}
.illu-feature.illu-photo .illu-visual{background:transparent; padding:0; box-shadow:none;}
.illu-feature.illu-photo .illu-visual img{max-width:100%; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-lg); box-shadow:var(--shadow-2);}
@media (max-width:980px){
  .illu-feature{grid-template-columns:1fr;}
  .illu-feature .illu-visual{order:-1; max-width:360px; margin:0 auto;}
}

/* Cards */
.card{
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-1);
  transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover{box-shadow:var(--shadow-2); transform:translateY(-3px);}

/* Tag / badge */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 13px; border-radius:999px;
  font-size:.76rem; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase;
}
.badge-blue{background:rgba(28,48,224,.1); color:var(--blue-deep);}
.badge-red{background:rgba(214,5,26,.1); color:var(--red-deep);}
.badge-stone{background:rgba(156,148,146,.16); color:var(--stone-deep);}

/* Form feedback */
#form-feedback.show{
  display:block !important;
  padding:14px 18px;
  background:rgba(28,48,224,.08);
  border-radius:10px;
  border-left:3px solid var(--blue);
}

/* =========================================================
   NEWSLETTER BAND
   ========================================================= */
.newsletter-band{
  background:
    linear-gradient(120deg, rgba(10,18,58,.88), rgba(26,42,140,.78) 60%, rgba(214,5,26,.55)),
    url("../img/newsletter-bg.jpg") center/cover no-repeat;
  padding:84px 0;
  position:relative;
  overflow:hidden;
}
.newsletter-band::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(ellipse at top right, rgba(214,5,26,.18), transparent 60%);
  pointer-events:none;
}
.newsletter-inner{
  position:relative; z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}
.newsletter-text h3{color:#fff; font-size:1.4rem;}
.newsletter-text p{color:#B7BCDA; margin-top:8px; max-width:420px; font-size:.94rem;}
.newsletter-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  flex-shrink:0;
}
.newsletter-form input{
  width:280px;
  padding:14px 18px;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
  color:#fff;
  font-family:inherit;
  font-size:.92rem;
}
.newsletter-form input::placeholder{color:#8A91B5;}
.newsletter-form input:focus-visible{outline:2px solid var(--red); outline-offset:2px;}
.newsletter-feedback{
  position:relative; z-index:2;
  max-width:var(--container);
  margin:14px auto 0;
  padding:0 24px;
  color:#9CD9B4;
  font-size:.88rem;
  font-weight:600;
  min-height:18px;
}
@media (max-width:640px){
  .newsletter-inner{flex-direction:column; align-items:flex-start;}
  .newsletter-form{width:100%;}
  .newsletter-form input{width:100%;}
  .newsletter-form button{width:100%;}
}

/* =========================================================
   BANNER BACKGROUNDS (decorative, animated)
   ========================================================= */
.banner-decor{
  position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none;
}
.banner-decor img{width:100%; height:100%; object-fit:cover;}
.banner-decor .float-shape{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  animation:float-drift 14s ease-in-out infinite;
}
@keyframes float-drift{
  0%, 100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(18px,-22px) scale(1.06);}
}
@media (prefers-reduced-motion: reduce){
  .banner-decor .float-shape{animation:none;}
}
.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--red); color:#fff; padding:10px 18px; z-index:999; border-radius:0 0 8px 0;
}
.skip-link:focus{left:0;}

/* Reveal-on-scroll */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}

/* =========================================================
   GRID HELPERS (responsive)
   ========================================================= */
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.grid-3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:28px;}
.grid-hero{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;}
.grid-presidente{display:grid; grid-template-columns:.85fr 1.6fr; gap:56px; align-items:center;}

@media (max-width:980px){
  .grid-3{grid-template-columns:1fr 1fr;}
  .grid-hero{grid-template-columns:1fr; gap:40px;}
  .grid-presidente{grid-template-columns:1fr; gap:32px;}
}
@media (max-width:640px){
  .grid-2, .grid-3{grid-template-columns:1fr;}
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:980px){
  .main-nav, .header-actions .btn{display:none;}
  .nav-toggle{display:flex;}
  .footer-top{grid-template-columns:1fr 1fr;}
}

@media (max-width:640px){
  section{padding:64px 0;}
  .footer-top{grid-template-columns:1fr; gap:36px;}
  .footer-bottom{flex-direction:column; align-items:flex-start; gap:14px;}
}

/* Mobile drawer nav */
.mobile-nav{
  position:fixed; inset:0; z-index:300;
  background:var(--navy-deep);
  transform:translateX(100%);
  transition:transform .28s ease;
  overflow-y:auto;
}
.mobile-nav.open{transform:translateX(0);}
.mobile-nav-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 24px; border-bottom:1px solid rgba(255,255,255,.1);
}
.mobile-nav-close{
  width:44px; height:44px; border-radius:10px; border:none;
  background:rgba(255,255,255,.08); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.mobile-nav ul{list-style:none; padding:18px 12px; display:flex; flex-direction:column; gap:2px;}
.mobile-nav li a, .mobile-nav .mn-group-label{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 14px; color:#fff; font-weight:600; font-size:1.02rem;
  border-radius:10px;
}
.mobile-nav li a:hover{background:rgba(255,255,255,.06);}
.mobile-nav .mn-sub{padding-left:14px; display:none; flex-direction:column; gap:0;}
.mobile-nav .mn-sub.open{display:flex;}
.mobile-nav .mn-sub a{font-weight:500; font-size:.95rem; color:#B7BCDA; padding:13px 14px;}
.mobile-nav-cta{padding:10px 24px 30px;}
.nav-backdrop{
  position:fixed; inset:0; background:rgba(8,12,30,.5); z-index:290;
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
.nav-backdrop.open{opacity:1; visibility:visible;}

/* ============ Hero banner photo (injected via JS) ============ */
.hero-photo-bg{
  position:absolute; inset:0; z-index:0; overflow:hidden;
  opacity:0; transition:opacity 1s ease;
}
.hero-photo-bg.is-visible{opacity:1;}
.hero-photo-bg img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.08); transition:transform 8s ease;
  filter:saturate(1.05);
}
.hero-photo-bg.is-visible img{transform:scale(1);}
.hero-photo-bg::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,12,30,.86) 0%, rgba(8,12,30,.72) 45%, rgba(8,12,30,.45) 100%),
    linear-gradient(180deg, rgba(8,12,30,.35) 0%, rgba(8,12,30,.55) 100%);
}
/* Hide the decorative circuit pattern + orbs when a hero photo is shown */
.has-hero-photo .hero > img[src*="banner-health-pattern"],
.has-hero-photo .hero > img[alt=""]:not(.hero-photo-bg img),
.has-hero-photo .page-hero-decor,
.has-hero-photo .hero-illustration,
.has-hero-photo .hero-orb{display:none !important;}

/* Injected mid-page section photo */
.section-photo{
  position:relative; width:100%;
  margin:0 auto; max-width:1180px;
  border-radius:var(--radius-lg, 18px);
  overflow:hidden; aspect-ratio: 16/7;
  background:#0b1130;
  box-shadow:0 30px 60px -30px rgba(8,12,30,.45);
}
.section-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.04); transition:transform 1.2s ease, opacity .8s ease;
  opacity:0;
}
.section-photo.is-visible img{transform:scale(1); opacity:1;}
.section-photo::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, transparent 55%, rgba(8,12,30,.45) 100%);
}
@media (max-width: 720px){ .section-photo{aspect-ratio: 4/3;} }
.has-hero-photo .hero, .has-hero-photo .page-hero{
  position:relative; min-height:460px;
  background:var(--navy-deep);
}
.has-hero-photo .hero .container,
.has-hero-photo .page-hero .container{position:relative; z-index:2;}
.has-hero-photo .grid-hero{grid-template-columns:1fr; gap:0;}
.has-hero-photo .grid-hero > div:last-child{display:none;}

/* ============ Animations auto-reveal blocks ============ */
.reveal-up{opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease;}
.reveal-up.is-visible{opacity:1; transform:translateY(0);}
.reveal-left{opacity:0; transform:translateX(-28px); transition:opacity .7s ease, transform .7s ease;}
.reveal-left.is-visible{opacity:1; transform:translateX(0);}
.reveal-right{opacity:0; transform:translateX(28px); transition:opacity .7s ease, transform .7s ease;}
.reveal-right.is-visible{opacity:1; transform:translateX(0);}
.reveal-zoom{opacity:0; transform:scale(.96); transition:opacity .7s ease, transform .7s ease;}
.reveal-zoom.is-visible{opacity:1; transform:scale(1);}

.card, .feature{transition:transform .35s ease, box-shadow .35s ease;}
.card:hover, .feature:hover{transform:translateY(-4px);}

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-zoom, .hero-photo-bg, .hero-photo-bg img{
    opacity:1 !important; transform:none !important; transition:none !important;
  }
}

/* ---------- Section backgrounds ---------- */
/* Allow section bg images to show through solid bg classes */
.has-section-bg.bg-white, .has-section-bg.bg-paper-dim, .has-section-bg.bg-navy { background: transparent !important; }

.has-section-bg{position:relative; isolation:isolate;}
.has-section-bg::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.section-bg-gc7::before{background-image:linear-gradient(135deg, rgba(11,20,58,.88), rgba(28,48,224,.78)), url("../img/bg-gc7.jpg");}
.section-bg-domaines::before{background-image:linear-gradient(rgba(247,243,233,.55), rgba(247,243,233,.55)), url("../img/bg-domaines.jpg");}
.section-bg-recrute::before{background-image:linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)), url("../img/bg-recrute.jpg");}
.section-bg-cycle::before{background-image:linear-gradient(rgba(240,236,224,.55), rgba(240,236,224,.55)), url("../img/bg-cycle.jpg");}
.section-bg-partenaire::before{background-image:linear-gradient(135deg, rgba(11,20,58,.86), rgba(11,20,58,.78)), url("../img/bg-partenaire.jpg");}

/* ---------- Agenda animated background ---------- */
.agenda-anim{position:relative; isolation:isolate; overflow:hidden;}
.agenda-anim::before{
  content:""; position:absolute; inset:-20%; z-index:-1;
  background:
    radial-gradient(circle at 20% 30%, rgba(28,48,224,.18), transparent 40%),
    radial-gradient(circle at 75% 65%, rgba(214,5,26,.16), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(28,48,224,.12), transparent 40%);
  animation: agenda-float 18s ease-in-out infinite alternate;
}
@keyframes agenda-float{
  0%{transform:translate(0,0) scale(1);}
  50%{transform:translate(-3%,2%) scale(1.05);}
  100%{transform:translate(3%,-2%) scale(1.02);}
}
@media (prefers-reduced-motion: reduce){
  .agenda-anim::before{animation:none;}
}


/* Partner logos */
.partners-logos img{height:80px;width:auto;object-fit:contain;transition:transform .25s ease, filter .25s ease;filter:grayscale(15%);}
.partners-logos img:hover{transform:translateY(-3px);filter:grayscale(0);}
@media (max-width: 640px){.partners-logos img{height:60px;}}

/* Global h2 size override */
h2,
.section-head h2,
.newsletter-text h2 { font-size: 37px !important; line-height: 1.15; white-space: nowrap; }
.newsletter-text h2 { color: #fff; }

.section-bg-ressources::before{background-image:linear-gradient(rgba(247,243,233,.78), rgba(247,243,233,.78)), url("../img/bg-ressources.jpg");}

/* =========================================================
   OVERRIDES — fixes (juin 2026)
   ========================================================= */
/* #5 Nav items on a single line */
.main-nav > li > a,
.main-nav .nav-dropdown-btn { white-space: nowrap; }
.main-nav { flex-wrap: nowrap; }

/* #3 Allow h2 to wrap (was forced to nowrap globally) */
h2,
.section-head h2,
.newsletter-text h2 { white-space: normal !important; }

/* #7 Remove decorative separator line under titles / above copyright */
.footer-top { border-bottom: none !important; }
.section-head { border-bottom: none !important; }
hr { display: none !important; }

/* #6 Pagination on actualités */
.pagination{
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .pg-num,
.pagination .pg-btn{
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(14,22,64,.12);
  color: var(--navy-deep);
  font-weight: 600; font-size: .9rem;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.pagination .pg-num:hover,
.pagination .pg-btn:hover{
  background: var(--navy-deep); color: #fff; transform: translateY(-1px);
}
.pagination .pg-num.is-active{
  background: var(--red); color: #fff; border-color: var(--red);
}
.pagination .pg-dots{ padding: 0 8px; color: var(--stone-deep); }

/* Recrute card — bold split visual */
.recrute-card{
  position:relative;
  max-width:980px;
  margin:0 auto;
  padding:56px 48px 52px;
  text-align:center;
  border-radius:28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(214,30,52,.08), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(31,55,160,.08), transparent 55%),
    linear-gradient(180deg,#FFF8F5 0%,#FFFFFF 100%);
  border:1px solid rgba(14,22,64,.08);
  box-shadow:0 30px 60px -30px rgba(14,22,64,.18), 0 8px 24px -12px rgba(214,30,52,.12);
  overflow:hidden;
}
.recrute-deco{position:absolute;border-radius:50%;filter:blur(40px);opacity:.55;pointer-events:none;}
.recrute-deco-1{width:280px;height:280px;background:#FFD3D8;top:-90px;left:-90px;}
.recrute-deco-2{width:240px;height:240px;background:#D8DEF7;bottom:-80px;right:-70px;}
.recrute-ribbon{
  position:absolute;top:24px;right:24px;width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,var(--red),#B81530);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 20px -6px rgba(214,30,52,.45);
}
.recrute-inner{position:relative;z-index:2;}
.recrute-lead{color:var(--ink-soft);margin:18px auto 0;font-size:1.05rem;max-width:620px;}
.recrute-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:30px;}
.recrute-btn{display:inline-flex;align-items:center;}
.recrute-meta{
  display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;
  margin-top:28px;padding-top:22px;border-top:1px dashed rgba(14,22,64,.12);
  color:var(--ink-soft);font-size:.88rem;
}
.recrute-meta strong{color:var(--navy-deep);}
.recrute-dot{width:4px;height:4px;border-radius:50%;background:rgba(14,22,64,.25);}

/* Recrute full-width banner */
.recrute-section-full{padding:0;}
.recrute-card-full{
  width:100%;
  max-width:none;
  margin:0;
  border-radius:0;
  padding:64px 24px 60px;
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 15% 20%, rgba(214,30,52,.08), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(31,55,160,.08), transparent 55%),
    linear-gradient(180deg,#FFF8F5 0%,#FFFFFF 100%);
  border-top:1px solid rgba(14,22,64,.08);
  border-bottom:1px solid rgba(14,22,64,.08);
}
.recrute-card-full .recrute-inner{width:100%; max-width:980px; margin:0 auto;}
@media (max-width: 640px){
  .recrute-card{padding:40px 22px;border-radius:22px;}
  .recrute-ribbon{top:14px;right:14px;width:36px;height:36px;}
  .recrute-card-full{padding:48px 20px 44px; min-height:auto;}
}

/* Aligner les boutons "Savoir plus" des cartes actualités */
.grid-3 > a.card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}
.grid-3 > a.card > div:last-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.grid-3 > a.card > div:last-child > p:last-child {
  margin-top: auto;
}

/* ============ Ajustements institutionnels ============ */
/* Photo "Aux côtés du personnel de santé" — visage entier visible */
.illu-feature.illu-photo .illu-visual img{
  object-position: center 20%;
  aspect-ratio: 4/5;
}

/* Réduire l'espace en haut de la section illustration + soigner le bouton */
.illu-feature{padding-top: 8px;}
section.bg-white:has(.illu-photo){padding-top: 40px;}

.btn-outline-dark{
  border-radius: 999px;
  padding: 14px 30px;
  border-width: 1.5px;
  font-weight: 600;
  letter-spacing:.01em;
  box-shadow: 0 1px 3px rgba(14,22,64,.06);
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-outline-dark:hover{
  background: var(--navy-deep);
  color:#fff;
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* Global Fund logo size aligned with the other partner logos (height:44px, set inline) */

/* Masquer les fleches du slider partenaires */
.partners-arrow{ display:none !important; }

/* Cartes actualites - alignement des boutons */
.news-card{ display:flex; flex-direction:column; height:100%; }
.news-card-body{ display:flex; flex-direction:column; flex:1; }
.news-card-desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.7em;
}
.news-card-cta{ margin-top:auto; }

/* ---------- Scroll to top FAB ---------- */
.scroll-top-fab{position:fixed;right:22px;bottom:22px;width:46px;height:46px;border-radius:50%;background:var(--red,#e4002b);color:#fff;border:none;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;box-shadow:0 8px 22px rgba(228,0,43,.35);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s ease, transform .25s ease, visibility .25s;z-index:9999}
.scroll-top-fab:hover{background:#b8001f}
.scroll-top-fab.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
@media (max-width:640px){.scroll-top-fab{right:14px;bottom:14px;width:42px;height:42px;font-size:18px}}

/* Reduce inline 'CCM GABON' occurrences inside section titles */
h1 .ccm-word,h2 .ccm-word,h3 .ccm-word{font-size:.78em;letter-spacing:.02em}

/* ---------- Hero slider ---------- */
.hero-slider{position:absolute; inset:0; z-index:0; overflow:hidden;}
.hero-slide{position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.1s ease;}
.hero-slide.is-active{opacity:.35;}
.hero-slide-overlay{position:absolute; inset:0; background:linear-gradient(120deg, rgba(14,22,64,.85) 0%, rgba(14,22,64,.55) 60%, rgba(14,22,64,.75) 100%);}
.hero-dots{position:absolute; left:0; right:0; bottom:22px; z-index:3; display:flex; justify-content:center; gap:10px;}
.hero-dot{width:10px; height:10px; border-radius:50%; border:none; background:rgba(255,255,255,.35); cursor:pointer; padding:0; transition:background .25s ease, transform .25s ease;}
.hero-dot.is-active{background:#fff; transform:scale(1.2);}
