/* ============================================================
   FANER — CSS Site Public
   Extrait fidèlement de index.html
   ============================================================ */

:root {
  --vert:   #006B3F;
  --vert2:  #009A5B;
  --orange:  #F69F22;
  --bleu:   #003DA5;
  --noir:   #0D1117;
  --gris:   #F4F5F7;
  --blanc:  #FFFFFF;
  --texte:  #1C2B3A;
  --ombre:  0 8px 40px rgba(0,107,63,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--texte); background: var(--blanc); overflow-x: hidden; }

/* TOPBAR */
.topbar { background: var(--noir); color: #aaa; font-size: .78rem; padding: .45rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #aaa; text-decoration: none; }
.topbar a:hover { color: var(--orange); }

/* HEADER */
header { background: var(--blanc); border-bottom: 3px solid var(--orange); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner { max-width: 1280px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: .8rem 2rem; gap: 1rem; }
.logo-block { display: flex; align-items: center; gap: 1rem; }
.logo-badge-link { text-decoration: none; }
.logo-badge { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; }
.logo-badge span:first-child { font-size: 1.35rem; font-weight: 900; color: var(--orange); letter-spacing: -1px; font-family: 'Playfair Display', serif; }
.logo-badge span:last-child { font-size: .52rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; }
.logo-text h1 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--vert); line-height: 1.2; }
.logo-text p { font-size: .7rem; color: #888; text-transform: uppercase; letter-spacing: .5px; }
nav { display: flex; align-items: center; gap: .2rem; }
nav a { font-size: .82rem; font-weight: 500; color: var(--texte); text-decoration: none; padding: .5rem .85rem; border-radius: 6px; transition: all .2s; white-space: nowrap; position: relative; }
nav a:hover, nav a.active { color: var(--vert); background: rgba(0,107,63,.07); }
nav a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--orange); border-radius: 2px; }
.nav-cta { background: var(--orange) !important; color: var(--blanc) !important; padding: .5rem 1.2rem !important; border-radius: 8px !important; }
.nav-cta:hover { background: var(--vert) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--texte); border-radius: 2px; transition: .3s; }

/* FLASH */
.flash { padding: .8rem 2rem; font-size: .88rem; font-weight: 600; text-align: center; }
.flash-success { background: rgba(0,107,63,.1); color: var(--vert); border-bottom: 2px solid var(--vert); }
.flash-error   { background: rgba(220,38,38,.1); color: #dc2626; border-bottom: 2px solid #dc2626; }
.alert-success { background: rgba(0,107,63,.1); color: var(--vert); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .88rem; }
.form-error { display: block; color: #dc2626; font-size: .75rem; margin-top: .25rem; }

/* HERO */
.hero { background: linear-gradient(135deg,var(--vert) 0%,#003d22 55%,var(--bleu) 100%); min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-road { position: absolute; bottom: 0; left: 0; right: 0; height: 140px; background: linear-gradient(to top,rgba(0,0,0,.5),transparent); }
.hero-road::after { content: ''; position: absolute; bottom: 20px; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg,var(--orange) 0,var(--orange) 60px,transparent 60px,transparent 100px); animation: dash 2s linear infinite; }
@keyframes dash { from{background-position:0 0} to{background-position:160px 0} }
.hero-inner { max-width: 1280px; margin: auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(252,209,22,.15); border: 1px solid rgba(252,209,22,.4); border-radius: 100px; padding: .4rem 1rem; font-size: .75rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.hero-badge::before { content: '●'; font-size: .5rem; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,3.4rem); color: var(--blanc); line-height: 1.15; margin-bottom: 1.5rem; }
.hero h2 em { color: var(--orange); font-style: normal; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--orange); color: var(--blanc); font-weight: 700; font-size: .9rem; padding: .85rem 2rem; border-radius: 10px; text-decoration: none; border: none; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: .5rem; }
.btn-primary:hover { background: #006B3F; color: var(--blanc); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(252,209,22,.4); }
.btn-outline { background: transparent; color: var(--blanc); font-weight: 600; font-size: .9rem; padding: .85rem 2rem; border-radius: 10px; text-decoration: none; border: 2px solid rgba(255,255,255,.35); cursor: pointer; transition: all .25s; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.stat-card { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 1.5rem; text-align: center; transition: transform .3s; }
.stat-card:hover { transform: translateY(-4px); }
.stat-card .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-card .lbl { color: rgba(255,255,255,.65); font-size: .8rem; margin-top: .4rem; line-height: 1.4; }

/* ══════════════════════════════════════════════════════
   CAROUSEL HERO — PLEIN ÉCRAN SANS BANDE NOIRE
   ══════════════════════════════════════════════════════ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
    background: #0a1a0e;
}

/* ── Chaque slide occupe exactement le même espace ── */
.hc-slide {
    position: absolute;
    inset: 0;                  /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hc-slide.active  { z-index: 2; opacity: 1; }
.hc-slide.leaving { z-index: 3; }

/* ── Image de fond — couvre TOUT sans bande ── */
.hc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* remplit sans déformer */
    object-position: center;
    display: block;
    will-change: transform;
}

/* ── Overlay dégradé — couvre TOUT ── */
.hc-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Contenu centré par-dessus ── */
.hc-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ════════════════════════════════════════════════════
   TRANSITIONS VARIÉES — 4 effets différents
   ════════════════════════════════════════════════════ */

/* EFFET 1 : Fondu simple */
.hc-slide[data-transition="fade"].entering {
    animation: hc-fade-in .9s ease forwards;
}
.hc-slide[data-transition="fade"].leaving {
    animation: hc-fade-out .9s ease forwards;
}
@keyframes hc-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes hc-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* EFFET 2 : Zoom entrant (Ken Burns) */
.hc-slide[data-transition="zoom"].entering {
    animation: hc-zoom-in .9s ease forwards;
}
.hc-slide[data-transition="zoom"].leaving {
    animation: hc-zoom-out .9s ease forwards;
}
@keyframes hc-zoom-in  { from { opacity:0; transform:scale(1.06); } to { opacity:1; transform:scale(1); } }
@keyframes hc-zoom-out { from { opacity:1; transform:scale(1);    } to { opacity:0; transform:scale(.96); } }

/* EFFET 3 : Glissement depuis le bas */
.hc-slide[data-transition="slide-up"].entering {
    animation: hc-up-in .85s cubic-bezier(.22,1,.36,1) forwards;
}
.hc-slide[data-transition="slide-up"].leaving {
    animation: hc-up-out .85s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes hc-up-in  { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes hc-up-out { from { opacity:1; transform:translateY(0);    } to { opacity:0; transform:translateY(-30px); } }

/* EFFET 4 : Flash + zoom */
.hc-slide[data-transition="flash"].entering {
    animation: hc-flash-in 1s cubic-bezier(.16,1,.3,1) forwards;
}
.hc-slide[data-transition="flash"].leaving {
    animation: hc-flash-out .6s ease forwards;
}
@keyframes hc-flash-in  {
    0%   { opacity:0; transform:scale(1.12) rotate(.5deg); }
    60%  { opacity:1; transform:scale(.99)  rotate(0deg);  }
    100% { opacity:1; transform:scale(1)    rotate(0deg);  }
}
@keyframes hc-flash-out {
    0%   { opacity:1; filter:brightness(1);   }
    40%  { opacity:1; filter:brightness(1.8); }
    100% { opacity:0; filter:brightness(1);   }
}

/* Ken Burns continu sur l'image active */
.hc-slide.active .hc-bg {
    animation: kenburns 8s ease-in-out forwards;
}
@keyframes kenburns {
    0%   { transform: scale(1)    translate(0,0); }
    100% { transform: scale(1.08) translate(-1%,-1%); }
}

/* ══ SLIDE 1 — Fond dégradé (pas d'image) ══ */
.hc-slide-1 { background: linear-gradient(135deg, #081208 0%, #003DA5 100%); }
.hc-slide-1::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hc-slide-1 .hc-road {
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 5px;
    background: repeating-linear-gradient(
        90deg, var(--orange) 0, var(--orange) 40px, transparent 40px, transparent 80px
    );
    opacity: .5; z-index: 5;
}

/* ══ SLIDE 2 — Fond dégradé bleu/vert ══ */
.hc-slide-2 { background: linear-gradient(135deg, #003DA5 0%, #001a6b 50%, #006B3F 100%); }

/* ══ Contenu Slide 1 ══ */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(252,209,22,.12); border: 1px solid rgba(252,209,22,.3);
    color: var(--orange); font-size: .78rem; font-weight: 700;
    padding: .4rem 1rem; border-radius: 100px;
    margin-bottom: 1.2rem; letter-spacing: .5px;
}
.hero-badge::before { content: '●'; font-size:.5rem; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900; color: #fff; line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero-title em { color: var(--orange); font-style: normal; }
.hero-desc { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
    background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
    padding: 1.4rem; text-align: center;
}
.stat-card .num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 900; color: var(--orange);
    display: block; margin-bottom: .3rem;
}
.stat-card .lbl { font-size: .75rem; color: rgba(255,255,255,.65); line-height: 1.4; }

/* ══ Contenu Slide 2 ══ */
.hc-s2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hc-logo-giant { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hc-logo-badge {
    width: 100%; height: 100%;
    /* background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
    border: 3px solid rgba(252,209,22,.4); border-radius: 30px; */
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    /* box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15); */
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.lb-faner {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem; font-weight: 900;
    color: var(--orange); letter-spacing: -3px;
    line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.lb-sub { font-size: .6rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 2px; text-align: center; line-height: 1.5; }
.hc-s2-label {
    font-size: .72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2px; color: var(--orange); margin-bottom: 1rem;
    display: flex; align-items: center; gap: .5rem;
}
.hc-s2-label::before { content: ''; width: 24px; height: 2px; background: var(--orange); border-radius: 2px; }
.hc-items { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.hc-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-left: 3px solid var(--orange); border-radius: 10px; padding: 1rem 1.2rem;
}
.hc-item h4 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.hc-item p  { font-size: .78rem; color: rgba(255,255,255,.65); line-height: 1.5; margin: 0; }

/* ══ Slides image : caption bas gauche ══ */
.hc-slide-image .hc-inner {
    display: flex; align-items: flex-end;
    height: 100%; padding-bottom: 4rem;
}
.hc-caption { max-width: 640px; }
.hc-caption-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--orange); color: #000;
    font-size: .72rem; font-weight: 800;
    padding: .35rem .9rem; border-radius: 100px;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem;
}
.hc-caption h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900; color: #fff; line-height: 1.25;
    margin-bottom: .75rem; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hc-caption p {
    font-size: .95rem; color: rgba(255,255,255,.82);
    line-height: 1.7; margin-bottom: 1.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ══ Contenu entrant animé ══ */
.hc-slide.active .hc-caption h2,
.hc-slide.active .hero-title {
    animation: slideUp .7s .2s both;
}
.hc-slide.active .hc-caption p,
.hc-slide.active .hero-desc {
    animation: slideUp .7s .35s both;
}
.hc-slide.active .hero-btns,
.hc-slide.active .hc-caption .btn-primary {
    animation: slideUp .7s .5s both;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(22px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ══ Flèches ══ */
.hc-arrow {
    position: absolute; top: 50%; z-index: 10;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 1.5rem;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .25s;
}
.hc-arrow:hover { background: var(--vert); border-color: var(--vert); transform: translateY(-50%) scale(1.08); }
.hc-arrow-prev { left: 1.5rem; }
.hc-arrow-next { right: 1.5rem; }

/* ══ Barre de progression ══ */
.hc-progress {
    position: absolute; bottom: 0; left: 0;
    height: 4px; background: var(--orange);
    z-index: 10; border-radius: 0 2px 2px 0;
}

/* ══ Responsive ══ */
@media(max-width: 900px) {
    .hero-carousel { height: 80vh; }
    .hero-grid, .hc-s2-grid { grid-template-columns: 1fr; }
    .hc-logo-giant { display: none; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 540px) {
    .hero-carousel { height: 70vh; min-height: 480px; }
    .hc-arrow { display: none; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .stat-card { padding: 1rem; }
}

/* TICKER */
.ticker-wrap { background: var(--orange); overflow: hidden; padding: .65rem 0; }
.ticker { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker span { font-size: .8rem; font-weight: 600; color: var(--noir); padding: 0 3rem; display: flex; align-items: center; gap: .5rem; }
.ticker span::before { content: '▶'; font-size: .5rem; color: var(--vert); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── MODAL ── */

/* ── Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  box-sizing: border-box;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal ── */
.modal {
  background: var(--blanc);
  border-radius: 20px;
  padding: 2rem;
  width: min(720px, 100%);
  box-sizing: border-box;
  position: relative;
  transform: scale(.94);
  transition: transform .3s;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

/* ── Sous-titre ── */
.modal-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .4rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}

/* ── Titre ── */
.modal-header .modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* ── Bouton fermer ── */
.modal-header .modal-close {
  position: static;   /* ← annule le position:absolute */
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ── Layout photo + texte ── */
.modal-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* ── Photo ── */
.modal-photo {
  position: relative;
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
}

.modal-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.modal-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: .75rem 1rem;
  border-radius: 0 0 12px 12px;
}

.modal-photo-caption .caption-name {
  font-weight: 600;
  font-size: .85rem;
  color: #fff;
  margin: 0;
}

.modal-photo-caption .caption-poste {
  font-size: .75rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ── Texte ── */
.modal-text {
  flex: 1;
  font-size: .88rem;
  line-height: 1.75;
  color: #64748b;
  max-height: 240px;
  overflow-y: auto;       
}

/* Mobile : on ajuste la hauteur */
@media (max-width: 480px) {
  .modal-text {
    max-height: 200px;
  }
}

/* ── Tablette ── */
@media (max-width: 640px) {
  .modal { padding: 1.5rem; }
  .modal-photo { width: 150px; min-width: 150px; }
  .modal-photo img { height: 200px; }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .modal { padding: 1.2rem; border-radius: 14px; }
  .modal-inner { flex-direction: column; }
  .modal-photo { width: 100%; min-width: unset; }
  .modal-photo img { height: 200px; }
}

/* ═══════════════════════════ MODAL ═══════════════════════════ */
.pdf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.pdf-overlay.actif { display: flex; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.pdf-boite {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: slideUp .25s ease;
}

/* En-tête modal */
.pdf-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}
.pdf-entete-info {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--texte);
  font-size: .95rem;
  min-width: 0;
}
.pdf-entete-info svg { flex-shrink: 0; }
#pdf-titre-modal { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pdf-entete-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.btn-telecharger {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--vert);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-telecharger:hover { background: var(--vert-bord); }

.btn-fermer {
  background: #f3f4f6;
  border: none;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gris);
  transition: background .2s, color .2s;
}
.btn-fermer:hover { background: #fee2e2; color: #dc2626; }

/* Corps modal */
.pdf-corps { flex: 1; position: relative; overflow: hidden; }

.pdf-chargement {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gris);
  font-size: .9rem;
  background: #fafafa;
  z-index: 2;
}
.pdf-chargement.cache { display: none; }

.spinner {
  width: 36px; height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--vert);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

#pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .pdf-boite { height: 95vh; border-radius: 10px; }
  .btn-telecharger span { display: none; }
  .btn-telecharger { padding: .5rem .7rem; }
}

/* SECTIONS */
section { padding: 5rem 2rem; }
#mission { background: var(--gris); }
#ressources { background: var(--noir); color: var(--blanc); }
#actualites { background: var(--gris); }
#gouvernance { background: var(--blanc); }
#documents { background: var(--gris); }
#contact { background: var(--blanc); }
.container { max-width: 1280px; margin: auto; }
.section-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--vert); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--orange); display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem,3vw,2.5rem); color: var(--texte); line-height: 1.25; margin-bottom: 1rem; }
.section-sub { color: #64748b; font-size: 1rem; line-height: 1.7; max-width: 600px; }

/* MISSION */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mission-visual { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg,var(--vert),var(--bleu)); padding: 3rem 2rem; text-align: center; box-shadow: var(--ombre); }
.mission-visual-road { width: 100%; height: 200px; background: #2d2d2d; border-radius: 12px; position: relative; overflow: hidden; margin: 1.5rem 0; }
.road-line { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: repeating-linear-gradient(90deg,var(--orange) 0,var(--orange) 40px,transparent 40px,transparent 70px); animation: road 1.5s linear infinite; }
@keyframes road { from{background-position:0} to{background-position:110px 0} }
.mission-items { display: flex; flex-direction: column; gap: 1.5rem; }
.mission-item { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: var(--blanc); border-radius: 14px; box-shadow: 0 2px 16px rgba(0,0,0,.05); border-left: 4px solid var(--orange); transition: transform .25s, box-shadow .25s; }
.mission-item:hover { transform: translateX(6px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.mission-icon { width: 44px; height: 44px; background: rgba(0,107,63,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.mission-item h4 { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--vert); }
.mission-item p { color: #64748b; font-size: .85rem; line-height: 1.55; }

/* PROJETS */
.projets-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.project-card { border-radius: 16px; overflow: hidden; background: var(--blanc); box-shadow: 0 2px 20px rgba(0,0,0,.07); transition: transform .3s, box-shadow .3s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.13); }
.project-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; overflow: hidden; }
.project-body { padding: 1.4rem; }
.project-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: .25rem .7rem; border-radius: 100px; margin-bottom: .75rem; }
.tag-en-cours, .tag-en_cours { background: rgba(0,154,91,.12); color: #009A5B; }
.tag-planifie  { background: rgba(0,61,165,.1); color: #003DA5; }
.tag-termine   { background: rgba(252,209,22,.2); color: #7a6500; }
.tag-pause, .tag-annule { background: rgba(255,92,92,.1); color: #e53e3e; }
.project-body h4 { font-weight: 700; font-size: .98rem; margin-bottom: .5rem; }
.project-body p { color: #64748b; font-size: .83rem; line-height: 1.6; margin-bottom: 1rem; }
.project-footer { display: flex; justify-content: space-between; align-items: center; }
.project-progress-bar { flex: 1; height: 5px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin-right: .75rem; }
.project-progress-fill { height: 100%; background: var(--vert); border-radius: 10px; transition: width .8s ease; }
.project-pct { font-size: .75rem; font-weight: 700; color: var(--vert); }

/* ACTUALITES */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.news-featured { border-radius: 18px; overflow: hidden; background: var(--blanc); box-shadow: var(--ombre); cursor: pointer; transition: transform .3s; text-decoration: none; color: inherit; display: block; }
.news-featured:hover { transform: translateY(-4px); }
.news-featured-img { height: 260px; background: linear-gradient(135deg,var(--vert),var(--bleu)); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.news-featured-body { padding: 2rem; }
.news-date { font-size: .75rem; color: #94a3b8; margin-bottom: .5rem; }
.news-featured-body h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: .75rem; }
.news-featured-body p { color: #64748b; line-height: 1.7; font-size: .9rem; }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item { background: var(--blanc); border-radius: 12px; padding: 1.2rem; cursor: pointer; transition: all .25s; box-shadow: 0 1px 8px rgba(0,0,0,.05); display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit; }
.news-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(0,0,0,.1); border-left: 3px solid var(--orange); }
.news-item-icon { font-size: 1.6rem; flex-shrink: 0; }
.news-item h4 { font-size: .88rem; font-weight: 600; margin-bottom: .3rem; line-height: 1.4; }

/* RESSOURCES */
.ressources-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.ressource-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; transition: all .3s; }
.ressource-card:hover { background: rgba(252,209,22,.08); border-color: rgba(252,209,22,.3); transform: translateY(-4px); }
.ressource-card .icon { font-size: 2.4rem; margin-bottom: 1rem; }
.ressource-card .amount { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--orange); font-weight: 900; }
.ressource-card .label { color: rgba(255,255,255,.55); font-size: .8rem; margin-top: .4rem; line-height: 1.5; }

/* GOUVERNANCE */
.gov-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.gov-card { text-align: center; padding: 2.5rem 1.5rem; border-radius: 18px; background: var(--gris); transition: all .3s; }
.gov-card:hover { background: var(--vert); color: var(--blanc); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,107,63,.2); }
/* .gov-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--vert),var(--bleu)); margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--blanc); } */
/* ── Avatar gouvernance ── */
.gov-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    overflow: hidden;          /* ← ESSENTIEL : coupe ce qui dépasse */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: transform .3s;
    border: 3px solid rgba(255,255,255,.8);
    flex-shrink: 0;
    position: relative;        /* ← pour l'img absolute */
}

/* ← AJOUTER CES RÈGLES --*/
.gov-avatar img {
    position: absolute;
    inset: 0;                  /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;         /* recadre sans déformer */
    object-position: center top; /* centre sur le visage */
    border-radius: 50%;        /* double sécurité */
    display: block;
}
.gov-card h4 { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.gov-card p { font-size: .82rem; color: #64748b; }
.gov-card:hover p { color: rgba(255,255,255,.7); }

/* MAP */
.map-section { background: var(--vert); padding: 3rem 2rem; }
.map-inner { max-width: 1280px; margin: auto; }
.map-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--blanc); margin-bottom: .5rem; }
.map-sub { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 2rem; }
.provinces-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .75rem; }
.province-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: .7rem 1rem; text-align: center; cursor: pointer; transition: all .25s; text-decoration: none; display: block; }
.province-pill:hover { background: rgba(252,209,22,.15); border-color: var(--orange); }
.province-pill h5 { color: var(--blanc); font-size: .82rem; font-weight: 600; }
.province-pill p { color: rgba(255,255,255,.55); font-size: .7rem; margin-top: .2rem; }

/* DOCUMENTS */
/* .docs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.doc-card { background: var(--blanc); border-radius: 14px; padding: 1.5rem; text-align: center; cursor: pointer; transition: all .3s; box-shadow: 0 2px 12px rgba(0,0,0,.05); border: 2px solid transparent; text-decoration: none; color: inherit; display: block; }
.doc-card:hover { border-color: var(--vert); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.doc-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.doc-card h4 { font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.doc-card p { font-size: .75rem; color: #94a3b8; }
.doc-type { display: inline-block; font-size: .65rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; margin-top: .5rem; background: rgba(0,107,63,.1); color: var(--vert); text-transform: uppercase; letter-spacing: 1px; } */
/* ── Hero ── */
.docs-hero {
    background: linear-gradient(135deg, var(--vert) 0%, var(--bleu) 100%);
    padding: 3.5rem 2rem 5rem;
    color: #fff;
    text-align: center;
}
.docs-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: .75rem;
}
.docs-hero p {
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── Barre de filtres ── */
.docs-filters-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    margin: -2.5rem auto 2rem;
    max-width: 960px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.docs-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem 1rem;
}
.docs-search input {
    border: none;
    background: none;
    outline: none;
    font-size: .9rem;
    color: var(--texte);
    width: 100%;
}
.filter-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.filter-pill {
    padding: .4rem 1rem;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    color: #64748b;
}
.filter-pill:hover,
.filter-pill.active {
    border-color: var(--vert);
    color: var(--vert);
    background: rgba(0,107,63,.06);
}

/* ── Grille documents ── */
.docs-main { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }

.docs-count {
    font-size: .82rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}
.docs-count strong { color: var(--vert); }

.docs-grid-full {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.2rem;
}

/* ── Carte document ── */
.doc-card-full {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.doc-card-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: var(--vert);
}
.doc-card-full .dc-top {
    padding: 1.8rem 1.5rem 1rem;
    text-align: center;
    flex: 1;
}
.doc-card-full .dc-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 1rem;
}
.doc-card-full .dc-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: .35rem;
    line-height: 1.4;
}
.doc-card-full .dc-desc {
    font-size: .78rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: .75rem;
}
.doc-card-full .dc-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .65rem;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 800;
    background: #f0fdf4;
    color: var(--vert);
    border: 1px solid rgba(0,107,63,.2);
}
.dc-badge.xlsx { background: #f0f9ff; color: #0369a1; border-color: rgba(3,105,161,.2); }
.dc-badge.docx { background: #eff6ff; color: #1d4ed8; border-color: rgba(29,78,216,.2); }
.dc-badge.annee { background: #f8fafc; color: #64748b; border-color: #e5e7eb; }
.dc-badge.telechargements { background: #fff7ed; color: #c2410c; border-color: rgba(194,65,12,.2); }

/* ── Actions bas de carte ── */
.doc-card-full .dc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f0f0f0;
}
.dc-btn {
    padding: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    border: none;
    background: none;
    text-decoration: none;
    color: var(--texte);
}
.dc-btn:first-child { border-right: 1px solid #f0f0f0; }
.dc-btn.preview:hover { background: rgba(0,107,63,.06); color: var(--vert); }
.dc-btn.download:hover { background: rgba(252,209,22,.1); color: #92400e; }

/* ── Aucun résultat ── */
.docs-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    grid-column: 1/-1;
}
.docs-empty .icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── MODALE PDF ── */
.pdf-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}
.pdf-overlay.open { display: flex; }
.pdf-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 920px;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
    overflow: hidden;
    animation: popIn .3s cubic-bezier(.22,1,.36,1);
}
@keyframes popIn {
    from { opacity:0; transform:translateY(24px) scale(.97); }
    to   { opacity:1; transform:none; }
}
.pdf-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}
.pdf-header-left {
    display: flex; align-items: center;
    gap: .75rem; min-width: 0;
}
.pdf-header-left span:first-child { font-size: 1.3rem; flex-shrink: 0; }
.pdf-header-left .pdf-title {
    font-size: .95rem; font-weight: 700;
    color: var(--texte);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdf-header-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.pdf-dl-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--vert); color: #fff;
    font-weight: 700; font-size: .82rem;
    padding: .5rem 1.1rem; border-radius: 8px;
    text-decoration: none; transition: background .2s;
}
.pdf-dl-btn:hover { background: #009A5B; }
.pdf-close-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e5e7eb; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; color: #374151; transition: .2s;
}
.pdf-close-btn:hover { background: #dc2626; color: #fff; }
.pdf-toolbar {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: .5rem 1.2rem;
    background: #3d4451;
    border-bottom: 1px solid #2d3141;
    gap: .75rem; flex-wrap: wrap;
}
.pdf-nav-group { display: flex; align-items: center; gap: .5rem; }
.pdf-tool-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.pdf-tool-btn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.pdf-tool-btn:disabled { opacity: .35; cursor: not-allowed; }
.pdf-page-info {
    font-size: .8rem; color: rgba(255,255,255,.7);
    min-width: 90px; text-align: center; font-family: monospace;
}
.pdf-zoom-info {
    font-size: .78rem; color: rgba(255,255,255,.6);
    min-width: 46px; text-align: center;
}
.pdf-fullscreen-link {
    font-size: .75rem; color: rgba(255,255,255,.4);
    text-decoration: none; transition: color .2s;
}
.pdf-fullscreen-link:hover { color: #fff; }
.pdf-viewer {
    background: #525659;
    overflow-y: auto;
    max-height: min(72vh, 680px);
    min-height: 400px;
}
.pdf-footer {
    padding: .8rem 1.4rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: .78rem; color: #64748b;
    flex-wrap: wrap; gap: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media(max-width:640px) {
    .docs-filters-wrap { flex-direction: column; }
    .docs-grid-full { grid-template-columns: 1fr 1fr; }
    .pdf-toolbar { justify-content: center; }
}
@media(max-width:400px) {
    .docs-grid-full { grid-template-columns: 1fr; }
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item-icon { width: 44px; height: 44px; background: rgba(0,107,63,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h5 { font-weight: 600; font-size: .85rem; color: var(--vert); margin-bottom: .2rem; }
.contact-item p { font-size: .85rem; color: #64748b; line-height: 1.5; }
.contact-form { background: var(--gris); border-radius: 20px; padding: 2.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { font-size: .82rem; font-weight: 600; display: block; margin-bottom: .5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .8rem 1rem; border: 2px solid #e5e7eb; border-radius: 10px; font-family: inherit; font-size: .9rem; background: var(--blanc); color: var(--texte); transition: border-color .2s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--vert); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit { background: var(--orange); color: var(--blanc); font-weight: 700; font-size: .9rem; padding: .9rem 2.5rem; border-radius: 10px; border: none; cursor: pointer; width: 100%; transition: all .25s; letter-spacing: .5px; }
.btn-submit:hover { background: var(--vert); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,107,63,.3); }

/* FOOTER */
footer { background: var(--noir); color: rgba(255,255,255,.6); padding: 4rem 2rem 1.5rem; }
.footer-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { color: var(--blanc); font-size: .9rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-col a { display: block; color: rgba(255,255,255,.55); font-size: .84rem; text-decoration: none; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.social-links { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: .85rem; transition: all .2s; color: rgba(255,255,255,.6); }
.social-link:hover { background: var(--vert); transform: translateY(-2px); }
.footer-bottom { max-width: 1280px; margin: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: rgba(255,255,255,.4); font-size: .78rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.flag-gabon { display: inline-flex; gap: 2px; margin-left: .5rem; vertical-align: middle; }
.flag-gabon span { width: 14px; height: 9px; display: inline-block; }

/* BLOC PRÉSIDENT */
.president-bloc {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 380px;
    background: #1a1a2e;
    margin-bottom: 3rem;
}

/* ── Photo plein cadre centrée ── */
.president-bloc .pb-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── Dégradé sur les côtés (fondu latéral comme image 2) ── */
.president-bloc .pb-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(15,20,40,.92) 0%,
            rgba(15,20,40,.45) 25%,
            transparent 45%,
            transparent 55%,
            rgba(15,20,40,.45) 75%,
            rgba(15,20,40,.92) 100%
        ),
        linear-gradient(to bottom,
            transparent 50%,
            rgba(0,0,0,.75) 100%
        );
}

/* ── Logo gauche ── */
.president-bloc .pb-logo-left {
    position: absolute;
    top: 30%;
    left: 2.5rem;
    transform: translateY(-60%);
    z-index: 3;
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

/* ── Texte bas gauche/centre ── */
.president-bloc .pb-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 1.2rem 2.5rem 1.5rem;
}

/* "Félicitations" en script */
.president-bloc .pb-felicitations {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--jaune, #F69F22);
    display: inline;
    margin-right: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Nom de la personne */
.president-bloc .pb-nom {
    display: inline;
    font-size: 1.55rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.president-bloc .pb-nom strong {
    font-weight: 900;
}

/* Bandeau jaune titre */
.president-bloc .pb-titre {
    display: inline-block;
    background: var(--jaune, #F69F22);
    color: #000;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .45rem 1.2rem;
    border-radius: 3px;
    margin-top: .6rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Responsive */
@media (max-width: 768px) {
    .president-bloc { min-height: 260px; }
    .president-bloc .pb-logo-left  { max-width: 80px; max-height: 70px; left: 1rem; }
    .president-bloc .pb-bottom     { padding: .8rem 1rem 1.2rem; }
    .president-bloc .pb-felicitations { font-size: 1.1rem; }
    .president-bloc .pb-nom        { font-size: 1rem; }
    .president-bloc .pb-titre      { font-size: .65rem; padding: .35rem .8rem; }
}

/* ANIMATIONS */
 #gouvernance .gov-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
  }

  #gouvernance .gov-card {
      position: relative;
      border-radius: 18px;
      overflow: hidden;
      aspect-ratio: 4 / 3;
      background: #e5e7eb;
      box-shadow: 0 4px 20px rgba(0,0,0,.10);
      transition: transform .35s, box-shadow .35s;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      text-decoration: none;
      color: inherit;
  }
  #gouvernance .gov-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(0,0,0,.20);
  }

  /* Image plein cadre */
  #gouvernance .gov-card-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      transition: transform .4s ease;
  }
  #gouvernance .gov-card:hover .gov-card-img {
      transform: scale(1.05);
  }

  /* Fallback fond coloré si pas de photo */
  #gouvernance .gov-card-bg {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
  }

  /* Dégradé sombre en bas */
  #gouvernance .gov-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
          to bottom,
          transparent 30%,
          rgba(0,0,0,.25) 55%,
          rgba(0,0,0,.80) 100%
      );
      transition: background .35s;
  }
  #gouvernance .gov-card:hover .gov-card-overlay {
      background: linear-gradient(
          to bottom,
          transparent 20%,
          rgba(0,107,63,.3) 55%,
          rgba(0,0,0,.88) 100%
      );
  }

  /* Texte en bas sur la photo */
  #gouvernance .gov-card-body {
      position: relative;
      z-index: 2;
      padding: 1.2rem 1.4rem 1.4rem;
      color: #fff;
      text-align: center !important; width: 100% !important;
  }
  #gouvernance .gov-card-titre {
      font-size: .68rem;
      font-weight: 700;
      color: rgba(255,255,255,.75);
      text-transform: uppercase;
      letter-spacing: .8px;
      margin-bottom: .35rem;
      display: block;
  }
  #gouvernance .gov-card h4 {
      font-weight: 800;
      font-size: 1rem;
      line-height: 1.35;
      color: #fff;
      margin: 0 0 .3rem;
      text-shadow: 0 1px 4px rgba(0,0,0,.5);
  }
  #gouvernance .gov-card p {
      font-size: .8rem;
      color: rgba(255,255,255,.7);
      line-height: 1.5;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  /* Badge "Voir →" en haut à droite */
  #gouvernance .gov-detail-badge {
      position: absolute;
      top: .85rem; right: .85rem;
      z-index: 3;
      background: rgba(255,255,255,.18);
      backdrop-filter: blur(6px);
      color: #fff;
      font-size: .65rem;
      font-weight: 800;
      padding: .28rem .65rem;
      border-radius: 100px;
      letter-spacing: .5px;
      border: 1px solid rgba(255,255,255,.3);
      transition: all .3s;
  }
  #gouvernance .gov-card:hover .gov-detail-badge {
      background: var(--vert);
      border-color: var(--vert);
  }

  /* Flèche animée */
  #gouvernance .gov-arrow {
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      margin-top: .5rem;
      font-size: .75rem;
      font-weight: 700;
      color: rgba(255,255,255,.6);
      opacity: 0;
      transform: translateX(-6px);
      transition: all .3s;
      justify-content: center !important;
  }
  #gouvernance .gov-card:hover .gov-arrow {
      opacity: 1;
      transform: translateX(0);
      color: #fff;
  }

  /* Responsive */
  @media(max-width: 900px) {
      #gouvernance .gov-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media(max-width: 540px) {
      #gouvernance .gov-grid { grid-template-columns: 1fr; }
      #gouvernance .gov-card { aspect-ratio: 4 / 3; }
  }

/* SCROLL / TOAST */
#scrollTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--vert);
    color: var(--blanc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;              /* ← AJOUTER */
    pointer-events: none;            /* ← AJOUTER */
    transform: translateY(20px);
    transition: opacity .3s, visibility .3s, transform .3s;
    border: none;
    box-shadow: 0 4px 16px rgba(0,107,63,.4);
}

#scrollTop.visible {
    opacity: 1;
    visibility: visible;             /* ← AJOUTER */
    pointer-events: auto;            /* ← AJOUTER */
    transform: translateY(0);
}

#scrollTop:hover {
    background: var(--vert2);
    transform: translateY(-3px);
}

.toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--vert); color: var(--blanc); padding: 1rem 1.5rem; border-radius: 12px; font-size: .9rem; font-weight: 500; transform: translateY(120px); opacity: 0; transition: all .4s; box-shadow: 0 8px 30px rgba(0,107,63,.4); }
.toast.show { transform: translateY(0); opacity: 1; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* TABS */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab-btn { padding: .55rem 1.3rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; border: 2px solid #e5e7eb; background: transparent; color: #64748b; transition: all .2s; }
.tab-btn.active { background: var(--vert); color: var(--blanc); border-color: var(--vert); }

/* RESPONSIVE */
@media(max-width:960px){
  .hero-inner{grid-template-columns:1fr}
  .hero-stats{grid-template-columns:repeat(2,1fr)}
  .mission-grid,.contact-grid,.news-grid{grid-template-columns:1fr}
  .projects-grid,.ressources-grid,.gov-grid,.docs-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .provinces-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:640px){
  .hamburger{display:flex}
  nav{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--blanc);padding:1rem;box-shadow:0 8px 24px rgba(0,0,0,.1)}
  nav.open{display:flex}
  .header-inner{position:relative}
  .projects-grid,.ressources-grid,.gov-grid,.docs-grid,.provinces-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}

/* DOCUMENTS */

.pdf-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    display: none; align-items: flex-start; justify-content: center;
    padding: 2rem 1rem; overflow-y: auto;
}
.pdf-modal-overlay.open { display: flex; }
.pdf-modal {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 900px;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    overflow: hidden;
    animation: modalIn .3s cubic-bezier(.22,1,.36,1);
}
@keyframes modalIn {
    from { opacity:0; transform:translateY(30px) scale(.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.pdf-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.4rem;
    background: #f8fafc; border-bottom: 1px solid #e5e7eb; gap: 1rem;
}
.pdf-modal-title {
    display: flex; align-items: center; gap: .75rem;
    font-size: .95rem; font-weight: 700; color: var(--texte);
    min-width: 0;
}
.pdf-modal-title span:first-child { font-size: 1.3rem; flex-shrink: 0; }
.pdf-modal-title .titre-txt {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdf-modal-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.pdf-modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e5e7eb; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #374151; transition: .2s;
}
.pdf-modal-close:hover { background: #dc2626; color: #fff; }
.pdf-modal-body {
    position: relative; background: #525659; min-height: 400px;
}
.pdf-modal-footer {
    padding: .85rem 1.4rem;
    background: #f8fafc; border-top: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: #64748b; flex-wrap: wrap; gap: .5rem;
}
.doc-card {
    background: var(--blanc); border-radius: 16px;
    padding: 1.8rem 1.5rem; text-align: center;
    border: 1px solid #e5e7eb;
    cursor: pointer; transition: all .25s;
    position: relative; overflow: hidden;
}
.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: var(--vert);
}
.doc-card::after {
    content: '🔍 Prévisualiser';
    position: absolute; inset: 0;
    background: rgba(0,107,63,.88);
    color: #fff; font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s; border-radius: 16px;
}
.doc-card:hover::after { opacity: 1; }
.doc-card .doc-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; }
.doc-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--texte); }
.doc-card p  { font-size: .8rem; color: #64748b; margin-bottom: .75rem; line-height: 1.5; }
.doc-card .doc-type {
    display: inline-block; background: #f0fdf4;
    color: var(--vert); font-size: .7rem; font-weight: 800;
    padding: .2rem .65rem; border-radius: 100px;
    border: 1px solid rgba(0,107,63,.2);
}
.doc-card .doc-type.xlsx { background: #f0f9ff; color: #0369a1; border-color: rgba(3,105,161,.2); }
@keyframes spin { to { transform: rotate(360deg); } }


/* ══════════════════════════════════════════════
   ORGANIGRAMME FANER
   ══════════════════════════════════════════════ */
.org-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Niveaux ── */
.org-level {
    width: 100%;
    display: flex;
    justify-content: center;
}
.org-level--split {
    justify-content: flex-end;
    padding-right: 15%;
}
.org-level--dirs {
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

/* ── Connecteur vertical ── */
.org-connector {
    width: 2px;
    height: 36px;
    background: linear-gradient(to bottom, var(--vert), var(--bleu));
    flex-shrink: 0;
}

/* ── Nœud principal ── */
.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.org-node-inner {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: .85rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    position: relative;
    z-index: 1;
    text-align: center;      
}
.org-node--top .org-node-inner {
    background: linear-gradient(135deg, var(--vert) 0%, var(--bleu) 100%);
    color: #fff;
}
.org-node--dg .org-node-inner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5986 100%);
    color: #fff;
}
.org-node--dga .org-node-inner {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #fff;
    min-width: 220px;
}
.org-node-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.org-node-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.3;
}

/* ── Assistants sous les nœuds ── */
.org-sub-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.org-sub-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.org-sub-line {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
}
.org-assistant {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .45rem .85rem;
    font-size: .72rem;
    color: #374151;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── Directions ── */
.org-direction {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-dir-node {
    display: flex;
    align-items: center;
    justify-content: center;  
    gap: .75rem;
    padding: .9rem 1.5rem;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    text-align: center;       
}

.org-dir-node--tech {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #fff;
}
.org-dir-node--daf {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    color: #fff;
}
.org-dir-icon { font-size: 1.2rem; flex-shrink: 0; }
.org-dir-title {
    font-weight: 700;
    font-size: .82rem;
    line-height: 1.35;
}

/* ── Services en ligne horizontale ── */
.org-dir-connector {
    width: 2px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 auto;
}

/* Ligne horizontale reliant les services */
.org-services-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
}

/* Ligne horizontale au-dessus des colonnes */
.org-services-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: #cbd5e1;
}

.org-service-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 3px;
}

/* Connecteur vertical de chaque colonne */
.org-service-col::before {
    content: '';
    width: 1px;
    height: 20px;
    background: #cbd5e1;
    display: block;
    margin-bottom: 0;
}

.org-service {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .55rem;
    font-size: .73rem;
    color: #374151;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: all .2s;
}
.org-service:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.org-service--tech {
    border-top: 3px solid var(--vert);
}
.org-service--daf {
    border-top: 3px solid var(--bleu);
}
.org-service-label { line-height: 1.4; }

/* Sous-enfants ingénieurs */
.org-children-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: center;
    width: 90%;
}
.org-service-child {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .3rem .65rem;
    font-size: .65rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* ── Responsive ── */
@media(max-width: 768px) {
    .org-level--dirs { flex-direction: column; align-items: center; gap: 2rem; }
    .org-level--split { justify-content: center; padding-right: 0; }
    .org-node-inner { min-width: 240px; padding: .85rem 1.2rem; }
    .org-sub-row { gap: .5rem; }
    .org-assistant { font-size: .65rem; padding: .35rem .6rem; }
    .org-direction { max-width: 100%; width: 100%; }
}
@media(max-width: 480px) {
    .org-node-inner { min-width: 200px; }
    .org-sub-row { display: none; }
}

.gov-section-title {
    font-size: .72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2px; color: var(--vert); margin: 2.5rem 0 1.2rem;
    display: flex; align-items: center; gap: .75rem;
}
.gov-section-title::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.gov-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
  }

/* ── Carte gouvernance — image plein cadre + texte overlay ── */
.gov-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;       /* Format portrait */
    background: #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    transition: transform .35s, box-shadow .35s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* texte en bas */
      text-decoration: none;
      color: inherit;
}
.gov-card.cliquable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
}
.gov-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.20);
}

/* ── Image de fond plein cadre ── */
.gov-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;  /* privilégie le haut (visage) */
    display: block;
    transition: transform .4s ease;
}
.gov-card:hover .gov-card-img {
    transform: scale(1.05);       /* léger zoom au survol */
}

/* ── Fallback fond coloré si pas de photo ── */
.gov-card-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* ── Dégradé sombre en bas pour lisibilité du texte ── */
.gov-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0,0,0,.25) 55%,
        rgba(0,0,0,.75) 100%
    );
    transition: background .35s;
}
.gov-card:hover .gov-card-overlay {
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(0,107,63,.3) 55%,
        rgba(0,0,0,.85) 100%
    );
}

/* ── Texte positionné en bas ── */
.gov-card-body {
    position: relative;
    z-index: 2;
    padding: 1.2rem 1.4rem 1.4rem;
    color: #fff;
    text-align: left;
}

.gov-card h4 {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 .3rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.gov-card .gov-titre {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: .4rem;
    display: block;
}

.gov-card p {
    font-size: .8rem;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Badge "Voir →" en haut à droite ── */
.gov-detail-badge {
    position: absolute;
    top: .85rem; right: .85rem;
    z-index: 3;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: .28rem .65rem;
    border-radius: 100px;
    letter-spacing: .5px;
    border: 1px solid rgba(255,255,255,.35);
    transition: all .3s;
}
.gov-card:hover .gov-detail-badge {
    background: var(--vert);
    border-color: var(--vert);
}

/* ── Flèche animée ── */
.gov-arrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .5rem;
    font-size: .75rem;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s;
}
.gov-card:hover .gov-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #fff;
}

/* Cadre juridique */
.cadre-juridique { margin-top: 4rem; background: #f4f5f7; border-radius: 20px; padding: 2.5rem; }
.cadre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.cadre-item { background: #fff; padding: 1.5rem; border-radius: 12px; border-left: 4px solid var(--vert); }
.cadre-item h5 { color: var(--vert); font-size: .9rem; font-weight: 700; margin-bottom: .5rem; }
.cadre-item p { font-size: .85rem; color: #64748b; line-height: 1.6; }

@media(max-width:768px) {
    .gov-grid  { grid-template-columns: repeat(2, 1fr); }
    .cadre-grid{ grid-template-columns: 1fr; }
}
@media(max-width:480px) { .gov-grid { grid-template-columns: 1fr; } }
