@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;700&display=swap');

:root {
  /* Couleurs principales */
  --vert: #0F766E;
  --vert-dark: #134e4a;
  --vert-light: #E1F5EE;
  --vert-mid: #9FE1CB;
  --vert-text: #C9D95B;

  /* Couleurs UI */
  --bg: #f0f4f3;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Texte */
  --text: #1e293b;
  --muted: #64748b;
  --hint: #94a3b8;
  --danger: #8b6161;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --nav-height: 80px;

  /* Layout internes */
        --avatar-size: 72px;
        --avatar-overlap: 36px;

        --shadow-card: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
        --shadow-hover: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
        --transition: .2s cubic-bezier(.4, 0, .2, 1);

  /* Boutons */
  --btn-h: 30px;
  --btn-min-w: 100px;
  --btn-font: 0.74rem;
  --btn-px: 12px;

  /*  Alias branding (CIMES) */
  --cimes-bg: var(--vert-dark);
  --cimes-hover: var(--vert);
  --cimes-accent: var(--vert-mid);
  --cimes-light: var(--vert-light);
  --cimes-gray: var(--bg);


  /* --- Variables spécifiques aux formulaires de projet --- */

    --header-height: 80px;
    --green-dark: #0F6E56;
    --green: #1D9E75;
    --green-light: #eef5f2;
    --green-ring: rgba(29, 158, 117, 0.20);
    --surface-alt: #f7f9f8;
    --border-md: rgba(0, 0, 0, 0.16);
    --text-hint: #9aada6;
    --red: #A32D2D;
    --red-light: #fcebeb;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);

}

/*********************************************************************************
General
**************************************************************************************/

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Oswald', sans-serif;
}


p{
  text-align: justify;
  
  margin: 0;

}

body{
background-color:var(--surface);
font-family: 'Oswald', sans-serif;
}
body, html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;

}
ul, nav{
  list-style: none;
}

a{
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  opacity: 0.9;
}
a:hover{
  opacity: 9;
  text-decoration: none;
  
}
#breadcrumb-container nav {
  width: auto;
}




@media (max-width: 768px) {
  .titre_page {
    font-size: 2em;
    padding-top: 150px;
  }
}

@media (max-width: 480px) {
  .titre_page {
    font-size: 1.5em;
    padding-top: 100px;
  }
}
section h2:not(.container_slider h2, .presentation_texte h2, ){
  
  font-weight: 900;
  text-align: center;
  
  margin-top: 100px;
}
 h2:not(.container_slider h2, .presentation_texte h2, .mission-title ){
  
  font-weight: 900;
  text-align: center;
  font-size: 20px;
  
}

.titre_gros{
  text-align: center;
  
  font-size: 90px;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}
/********************************************header***************************************/
/********************* NAVBAR *********************/

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
nav { position:fixed; z-index:999; width:100%; top:0; }

nav input { display:none; }
.sub-toggle { display:none; }

nav .wrapper {
 
  width:100%; min-width:0;
  padding:0 20px; height:72px;
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;                         
  background-color:var(--bg);
  box-shadow:0 1px 0 rgba(0,0,0,.09);
}

/* ── Logo ── */
.wrapper .logo {
  flex-shrink:0;                    
  display:flex; align-items:center;
}
.wrapper .logo a { display:flex; align-items:center; text-decoration:none; }
.wrapper .logo a img { width:120px; height: 65px; }

/* ── UL DESKTOP ── */
.wrapper .nav-links {
  display:flex; align-items:center;
  gap:2px; list-style:none;
  flex:1; min-width:0;              
  justify-content:flex-end;         
  flex-wrap:nowrap;
  margin:0; padding:0;
  overflow:visible;
}

.nav-links > li {
  position:relative; flex-shrink:0; list-style:none;
}

/* ── Liens niveau 1 desktop ──
   clamp plus agressif : descend jusqu'à 9px
   padding latéral aussi clampé très bas                         */
.nav-links > li > a.desktop-item {
  display:inline-flex; align-items:center; gap:4px;
  color:var(--vert);
  font-size:clamp(9px, 0.95vw, 13px);         
  padding:6px clamp(4px, 0.55vw, 12px);        
  font-weight:700; text-transform:uppercase; text-decoration:none;
  white-space:nowrap; border-radius:3px;
  transition:background .2s, color .2s;
}
.nav-links > li > a.desktop-item:hover,
.nav-links > li:hover > a.desktop-item {
  background:var(--vert-dark); color:#fff;
}
.nav-links > li > a.desktop-item i { color:var(--vert-text); font-size:.85em; }
.nav-links > li > a.desktop-item .chev-icon {
  font-size:.6em; color:var(--vert); transition:transform .2s;
}
.nav-links > li:hover > a.desktop-item .chev-icon {
  transform:rotate(180deg); color:#fff;
}

/* Pill Se connecter */
.nav-links > li > a.login-link {
  border:1.5px solid var(--vert); border-radius:5px;
}
.nav-links > li > a.login-link:hover {
  background:var(--vert); color:#fff;
}

/* ── MEGA BOX desktop ── */
.mega-box {
  position:absolute;
  top:calc(100% + 6px); left:0;
  min-width:200px; width:max-content;
  background:var(--vert-dark); border-radius:3px;
  padding:0;
  opacity:0; visibility:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
  transition:opacity .2s, visibility .2s, top .2s;
  z-index:200;
}
.nav-links > li:hover .mega-box {
  opacity:1; visibility:visible; top:calc(100% + 2px);
}
.mega-box .content { display:flex; flex-direction:column; }
.mega-box .mega-links { display:flex; flex-direction:column; list-style:none; padding:0; margin:0; }
.mega-box .mega-links li { list-style:none; width:100%; }
.mega-box .mega-links li a {
  display:block; width:100%;
  color:#e1f5ee; font-size:12px; font-weight:500;
  padding:10px 18px; text-decoration:none; white-space:nowrap;
  border-left:3px solid transparent;
  transition:background .15s, border-color .15s, color .15s;
}
.mega-box .mega-links li a:hover {
  background:rgba(255,255,255,.08);
  border-left-color:var(--vert-mid);
  color:#fff;
  
}

/* ── Hamburger — masqué en desktop ── */
.wrapper .btn {
  color:var(--vert); font-size:22px;
  cursor:pointer; display:none;
  flex-shrink:0;                   
  margin-left:8px;                  
}
.wrapper .btn.close-btn {
  position:absolute; right: -15px; top: -10px;
  transform:none;                             
  z-index:300;
}

/* Mobile items masqués en desktop */
.nav-links > li > .mobile-item { display:none; }

/* ── Overlay ── */
.nav-overlay {
  display:none; position:fixed;
  inset:0; top:72px;
  background:rgba(0,0,0,.45); z-index:190;
}
.nav-overlay.open { display:block; }

::-webkit-scrollbar { width:5px; border-radius:50px; }
::-webkit-scrollbar-thumb { background-color:#091b23; }

/* ═══════════════════════════════════════════════════
   BREAKPOINT INTERMÉDIAIRE — évite le débordement
   Entre 860px et 1080px : on réduit encore plus
═══════════════════════════════════════════════════ */
@media screen and (min-width:861px) and (max-width:1080px) {
  .nav-links > li > a.desktop-item {
    font-size:9px;                   
    padding:5px 4px;                 
    gap:2px;
    letter-spacing:0;
  }
  .wrapper .logo a img { width:90px; }
  nav .wrapper { padding:0 12px; }
}

/* ═══════════════════════════════════════════════════
   BREAKPOINT MOBILE ≤ 860px
═══════════════════════════════════════════════════ */
@media screen and (max-width:860px) {

  /* Hamburger visible */
  .wrapper .btn { display:flex; align-items:center; }

  
  .wrapper .nav-links {
    position:fixed;
    top:72px; left:-100%;
    width:min(280px, 80vw);
    height:calc(100vh - 72px);
    background:var(--vert-dark);
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    flex-wrap:nowrap; gap:0;
    flex:none;                       
    overflow-y:auto;
    box-shadow:4px 0 20px rgba(0,0,0,.3);
    transition:left .3s ease;
    z-index:200;
    padding:8px 0 40px;
  }

  #menu-btn:checked ~ .nav-links { left:0; }
  #menu-btn:checked ~ .btn.menu-btn { display:none; }
  #close-btn:checked ~ .btn.menu-btn { display:flex; }

  .nav-links > li { width:100%; flex-shrink:0; }

  .nav-links > li > a.desktop-item { display:none; }

  .nav-links > li > .mobile-item {
    display:flex; align-items:center; justify-content:space-between;
    color:#e1f5ee; font-size:14px; font-weight:600; text-transform:uppercase;
    padding:14px 20px; text-decoration:none; width:100%;
    border-left:3px solid transparent;
    cursor:pointer;
    transition:background .15s, border-color .15s;
  }
  .nav-links > li > .mobile-item:hover {
    background:rgba(255,255,255,.08);
    border-left-color:var(--vert-mid);
  }

  .mobile-chev { font-size:.8em; transition:transform .25s; }
  .sub-toggle:checked ~ .mobile-item .mobile-chev { transform:rotate(180deg); }

  .mega-box {
    position:static;
    opacity:1; visibility:visible;
    max-height:0; overflow:hidden;
    box-shadow:none; border-radius:0;
    width:100%; min-width:0; padding:0;
    background:rgba(0,0,0,.2);
    transition:max-height .35s ease;
    top:auto; left:auto;
  }
  .sub-toggle:checked ~ .mega-box { max-height:600px; }

  .mega-box .content {
    display:flex; flex-direction:column;
    padding:0; background:transparent; box-shadow:none;
  }
  .mega-box .mega-links li a {
    padding:11px 20px 11px 32px;
    font: size 12px; white-space:normal;
    border-left:3px solid transparent;
  }
  .mega-box .mega-links li a:hover {
    background:rgba(255,255,255,.08);
    border-left-color:var(--vert-mid);
    color:#fff;
  }

  .nav-links > li > label.mobile-item.login-link,
  .nav-links > li > a.mobile-item.login-link {
    margin:14px 20px;
    width:calc(100% - 40px);
    border:1.5px solid var(--vert-mid);
    border-radius:5px;
    justify-content:center;
    color:var(--vert-mid);
  }

  .row_image { display:none; }
}

@media screen and (max-width:400px) {
  .logo img { width:80px !important; }
  nav .wrapper { padding:0 10px; gap:4px; }
}






/**********************************************index.php***********************************************/


 /* ========== HERO ========== */
    .hero-slider {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        background: var(--text);
    }

    .carousel-track-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .carousel-track {
        display: flex;
        height: 100%;
        transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    .carousel-slide {
        flex: 0 0 100%;
        position: relative;
        height: 100%;
        list-style: none;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .carousel-slide img.img-loaded {
        opacity: 1;
    }

    .slide-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .3));
        z-index: 2;
    }

    .slide-content {
        position: absolute;
        top: 58%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        text-align: center;
        color: white;
        width: 100%;
     
    }

    .slide-content h2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
        font-weight:0;
        text-transform: uppercase;
        margin-bottom: 1rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    }

    .slide-content h1 {
        font-size: 2rem;
        font-weight: 00;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 0 2px 15px rgba(0, 0, 0, .4);
    }

    .btn-hero {
        display: inline-block;
        background: var(--cimes-bg);
        color: white;
        padding: 14px 38px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: 5px;
        transition: .3s;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    }

    .btn-hero:hover {
        background: var(--cimes-hover);
        transform: translateY(-3px);
        color: white;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(17, 45, 58, .7);
        backdrop-filter: blur(4px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 30;
        transition: .2s;
        border: 1px solid rgba(255, 255, 255, .4);
    }

    .carousel-btn i {
        font-size: 1.8rem;
        color: white;
    }

    .carousel-btn:hover {
        background: var(--cimes-hover);
        transform: translateY(-50%) scale(1.05);
    }

    .btn-prev {
        left: 25px;
    }

    .btn-next {
        right: 25px;
    }

    .carousel-indicators {
        position: absolute;
        bottom: 25px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 14px;
        z-index: 30;
    }

    .indicator-dot {
        width: 12px;
        height: 12px;
        background: rgba(255, 255, 255, .5);
        border-radius: 50%;
        cursor: pointer;
        border: none;
    }

    .indicator-dot.active {
        background: white;
        transform: scale(1.2);
        box-shadow: 0 0 8px white;
    }

    .hero-scroll {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1.8rem;
        animation: bounce 1.8s infinite;
        z-index: 30;
        background: rgba(17, 45, 58, .7);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: .2s;
    }

    .hero-scroll:hover {
        background: var(--cimes-hover);
    }

    @keyframes bounce {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        50% {
            transform: translateX(-50%) translateY(12px);
        }
    }

    

    /* ========== PRÉSENTATION ========== */
    .presentation-section {
        padding: 80px 0;
        background: var(--surface);
    }

    .presentation-container {
        width: 90%;
        margin: 0 auto;

    }

    .presentation-grid {
        display: flex;
        gap: 70px;
        align-items: center;
        padding-top: 100px;
    }

    .presentation-text {
        flex: 1.2;
        min-width: 0;
    }

    .presentation-image {
        flex: 1;
        min-width: 0;
        height: 370px;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    }

    .presentation-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .section-label {
        display: inline-block;
        background: rgba(17, 45, 58, .1);
        color: var(--cimes-bg);
        font-weight: 600;
        padding: 5px 16px;
        border-radius: 30px;
        font-size: .8rem;
        margin-bottom: 20px;
    }

    .presentation-text h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        letter-spacing: 2px;
        font-weight: 700;
        text-transform: uppercase;


    }

    .divider-custom {
        width: 70px;
        height: 4px;
        background: var(--cimes-accent);
        margin: 10px auto;
        margin-bottom: 20px;
    }

    .presentation-text p {
        line-height: 1.6;
        color: var(--text);
        max-height: 300px;
        overflow-y: auto;
        display: block;
        padding-right: 10px;
        font-size: .85rem;
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--cimes-bg);
        color: white;
        padding: 10px 28px;
        border-radius: 5px;
        text-decoration: none;
        transition: .3s;
        margin-top: 20px;
    }

    .btn-primary:hover {
        background: var(--cimes-hover);
        gap: 15px;
        color: white;
    }

    /* ========== SECTIONS COMMUNES ========== */
    .actualites-section,
    .evenements-section,
    .activites-section,
    .programme-section {
        padding: 70px 20px;
        background-color: var(--vert-mid);
    }

    .section-header {
        text-align: center;
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        text-transform: uppercase;
        font-weight: 900;
        color: var(--vert-dark);
    }

    .section-header p {
        text-align: center;
        margin: 0 auto;
        color: var(--muted);
        font-size: 1.1rem;
    }

    .voir-plus {
        text-align: center;
        margin-top: 40px;
    }

    .btn-outline {
        display: inline-block;
        padding: 12px 32px;
        background: transparent;
        border: 2px solid var(--cimes-bg);
        color: var(--cimes-bg);
        border-radius: 5px;
        text-decoration: none;
        font-weight: 600;
        transition: .3s;
    }

    .btn-outline:hover {
        background: var(--cimes-bg);
        color: white;
    }

    /* ========== GRILLE ACTU — VERSION UNIQUE ========== */
.actu-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

    .lieu {
        font-size: 14px;
        color: #666;
        margin: 5px 0 10px;
    }

    /* ===== MODAL ===== */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .7);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999999;
    }

    .modal-content {
        background: #fff;
        width: 90%;
        max-width: 700px;
        max-height: 100vh;
        overflow-y: auto;
        padding: 20px;
        border-radius: 12px;
        position: relative;
    }

    .modal-close {
        position: absolute;
        top: 10px;
        right: 15px;
        cursor: pointer;
    }

    #modalTitle {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    #modalDate {
        color: gray;
        font-size: .9rem;
        margin-bottom: 10px;
    }

    #modalImg {
        width: 100%;
        max-height: 45vh;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    #modalText {
        font-size: .95rem;
        line-height: 1.5;
        white-space: pre-line;
        max-height: 150px;
        overflow-y: auto;
        margin-right: 10px;
    }

    #modalLieu {
        margin-top: 10px;
        color: #555;
    }
    #modalTextActivite{
      max-height: 500px;
      margin: 0 auto;
      overflow-y: auto;
      text-align: justify;

    }

    /* ========== CARTES ACTU ========== */
    .card_actu,
    .event-card {
        display: flex;
        flex-direction: row;
        /* bande date à gauche, contenu à droite */
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
        transition: transform .3s, box-shadow .3s;
        padding: 0;
        min-width: 0;
        min-height: 220px;
        width: 100%;
        box-sizing: border-box;
    }

    .card_actu:hover,
    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    }

    /* Bande date — barre verticale à gauche comme l'original */
   

    .card-side-date span {
        writing-mode: vertical-rl;
       
        color: #fff;
       
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .card-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        align-items: center;
        text-align: center;
    }

    .card-thumb {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
    }

    .card-content {
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 8px;
        width: 100%;
    }

    .card-content h3 {
        font-size: .9rem;
        font-weight: 700;
        color: var(--cimes-bg);
        line-height: 1.4;
        margin: 0;
        flex: 1;
    }

    .card-content p {
        font-size: .85rem;
        line-height: 1.4;
        max-height: 60px;
        overflow: hidden;
    }

    .actu-link,
    .actu-link-activite {
        font-size: .78rem;
        font-weight: 600;
        color: var(--cimes-hover);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        transition: gap .2s, color .2s;
        margin: 0 auto;
    }

    .actu-link:hover,
    .actu-link-activite:hover {
        gap: 10px;
        color: var(--cimes-bg);
    }




    /* ========== AXES DE RECHERCHE ========== */
    .axes-container {
        width: 90%;
        /* Conteneur très large pour de grandes cartes */
        margin: 0 auto;
        padding: 0 25px;
    }

    .axes-grid-main {
        display: grid;
        /* 4 colonnes sur desktop */
        grid-template-columns: repeat(4, 2fr);
        gap: 40px;
        margin-bottom: 50px;
    }

    .axe-card {
        background: #fff;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

        display: flex;
        flex-direction: column;
        height: 100%;
        border: 1px solid var(--border);
    }



    /* Image des cartes des axes */
    .axe-img-wrapper {
        width: 100%;
        height: 240px;
        /* Hauteur augmentée */
        overflow: hidden;
    }

    .axe-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }



    /* Contenu des cartes des axes */
    .axe-content {
        padding: 10px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        text-align: center;
        /* Centre le titre */
    }

    .axe-content h3 {
        margin: 0 0 15px 0;
        color: var(--vert-dark);
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.3;
        min-height: 3.2rem;
        /* Aligne les titres sur 2 lignes */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .axe-content p {
        font-size: 0.95rem;
        color: var(--muted);
        line-height: 1.6;
        margin: 0;
        text-align: justify;
        /* Justifie le texte */
        hyphens: auto;
        max-height: 120px;
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Bouton Voir Plus */
    .voir-plus {
        text-align: center;
        margin-top: 40px;
    }

    .btn-outline {
        display: inline-block;
        padding: 14px 36px;
        background: transparent;
        border: 2px solid var(--vert-dark);
        color: var(--vert-dark);
        border-radius: 5px;
        text-decoration: none;
        font-weight: 700;
        transition: 0.3s;
    }

    .btn-outline:hover {
        background: var(--vert-dark);
        color: white;
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1200px) {
        .axes-grid-main {
            grid-template-columns: repeat(2, 1fr);
            /* 2 colonnes sur tablettes */
        }
    }

    @media (max-width: 768px) {
        .axes-grid-main {
            grid-template-columns: 1fr;
            /* 1 colonne sur mobile */
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .section-header h2 {
            font-size: 1.8rem;
        }

        .axe-img-wrapper {
            height: 200px;
        }
    }

    /* ========== ALTERNANCE SECTIONS ========== */
    .actualites-section {
        background: var(--surface);
    }

    .evenements-section {
        background: var(--cimes-light);
    }

    .activites-section {
        background: var(--surface);
        padding: 80px 0;
    }

    .programme-section {
        background: var(--vert-mid);
    }

    /* ========== CARROUSEL PROGRAMMES ========== */
   

    .prog-carousel {
        overflow: hidden;
        border-radius: 14px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    }
    .prog-slide-content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 40px;
        text-align: center;
        color: #fff;
    }

    .prog-year {
        font-size: 2.8rem;
        font-weight: 800;
        color: var(--vert-mid);
        line-height: 1;
        margin-bottom: 14px;
    }

    .prog-slide-content p {
        font-size: .95rem;
        line-height: 1.6;
        max-width: 440px;
        margin: 0 auto;
        text-align: center;
        color: rgba(255, 255, 255, .92);
    }

    .prog-badge {
        display: inline-block;
        background: rgba(159, 225, 203, .2);
        border: 1px solid rgba(159, 225, 203, .45);
        color: var(--vert-mid);
        font-size: .68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        padding: 3px 12px;
        border-radius: 20px;
        margin-bottom: 10px;
    }

   

    .prog-nav-btn:hover {
        background: var(--vert);
    }

    .prog-prev {
        left: -20px;
    }

    .prog-next {
        right: -20px;
    }

    

    .prog-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--vert-mid);
        opacity: .35;
        border: none;
        cursor: pointer;
        transition: opacity .2s, transform .2s;
    }

    .prog-dot.active {
        opacity: 1;
        transform: scale(1.25);
        background: var(--vert-dark);
    }

/* ========== GRILLE PROGRAMMES ========== */
.prog-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.prog-card {
    background: var(--surface);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}

.prog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.prog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.prog-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.prog-card-badge {
    display: inline-block;
    background: var(--vert-light);
    color: var(--vert);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
}

.prog-card-body h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--vert-dark);
    line-height: 1.35;
    margin: 0;
    text-align: center;
}

.prog-card-body p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    text-align: justify;
    max-height: 120px;
    overflow-y: auto;
    margin-right: 10px;

}

.prog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--vert);
    text-decoration: none;
    margin-top: 4px;
    transition: gap .2s, color .2s;
}

.prog-card-link:hover {
    gap: 10px;
    color: var(--vert-dark);
}

@media (max-width: 1100px) {
    .actu-grid,
    .events-grid,
    .prog-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .actu-grid,
    .events-grid,
    .prog-cards-grid {
        grid-template-columns: 1fr;
    }
}





    /* ========== BANDE LOGOS PARTENAIRES ========== */
    .partners-section {
        padding: 40px 0;
        overflow: hidden;
        background-color: #fff;
        /* À ajuster selon votre design */
    }

    .partners-section h3 {
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 30px;
        font-weight: bolder;
        color: #333;
    }

    .partners-marquee {
        width: 100%;
        overflow: hidden;
        position: relative;
        display: flex;
    }

    .partners-track {
        display: flex;
        align-items: center;
        gap: 50px;
        /* Espace entre les logos */
        animation: scroll 30s linear infinite;
        width: max-content;
    }

    .partner-logo {
        flex: 0 0 auto;
    }

    .partner-logo img {
        height: 60px;
        /* Hauteur uniforme des logos */
        width: auto;

        transition: filter 0.3s ease;
        opacity: 0.8;
    }

    .partner-logo img:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

    

    /* Animation du défilement */
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    /* Pause au survol pour laisser le temps de cliquer/voir */
    .partners-marquee:hover .partners-track {
        animation-play-state: paused;
    }

 

    /* ── Tablette large ≤ 992px : présentation empilée ─────────── */
    @media (max-width: 992px) {
        .presentation-grid {
            flex-direction: column;
            gap: 30px;
        }

        .presentation-text {
            order: 2;
            flex: unset;
            width: 100%;
        }

        .presentation-image {
            order: 1;
            flex: unset;
            width: 100%;
            max-height: 350px;
        }
    }

    /* ── Tablette ≤ 900px : grille 2 colonnes ───────────────────── */
    @media (max-width: 900px) {

        .actu-grid,
        .events-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            padding: 0 16px;
        }
    }

    /* ── Mobile ≤ 768px ─────────────────────────────────────────── */
    @media (max-width: 768px) {

        /* Hero */
        .slide-content h1 {
            font-size: 1.9rem;
        }

        .slide-content h2 {
            font-size: .9rem;
        }

        .btn-hero {
            padding: 10px 22px;
        }

        .carousel-btn {
            width: 36px;
            height: 36px;
        }

        /* Présentation */
        .presentation-section {
            padding: 50px 0;
        }

        .presentation-text h2 {
            font-size: 1.6rem;
            text-align: center;
        }

        .divider-custom {
            margin: 15px auto;
        }

        .presentation-text p {
            font-size: 0.95rem;
            text-align: justify;
        }

        .btn-primary {
            display: flex;
            justify-content: center;
            width: fit-content;
            margin: 20px auto 0;
        }

        /* Grille : 1 colonne */
        .actu-grid,
        .events-grid {
            grid-template-columns: 1fr;
            padding: 0 16px;
            gap: 16px;
        }

        /* Axes */
        .axe-row,
        .axe-row:nth-child(even) {
            flex-direction: column;
            height: auto;
        }

        .axe-row-img {
            flex: 0 0 200px;
            height: 200px;
        }

        .axe-row-body {
            padding: 20px 24px;
        }
    }

    /* ── Mobile strict ≤ 600px : carrousel programmes ───────────── */
    @media (max-width: 600px) {
        .prog-prev {
            left: 6px;
        }

        .prog-next {
            right: 6px;
        }

        .prog-year {
            font-size: 2rem;
        }

        .prog-slide {
            height: 280px;
        }
    }

    /* ── Mobile strict ≤ 480px ──────────────────────────────────── */
    @media (max-width: 480px) {

        .actu-grid,
        .events-grid {
            padding: 0 12px;
            gap: 12px;
        }

        .card-thumb {
            height: 140px;
        }

        .card-content h3 {
            font-size: 0.9rem;
        }

        .card-content p {
            font-size: 0.85rem;
        }

        .presentation-image {
            max-height: 220px;
        }

        .presentation-text h2 {
            font-size: 1.25rem;
        }
    }


    /* ============================================
   ANIMATIONS DE RÉVÉLATION AU SCROLL
   ============================================ */

/* ============================================
   ANIMATION GLISSEMENT AU SCROLL (vanilla)
   ============================================ */
.reveal-element {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up    { transform: translateY(30px); }

.reveal-element.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ============================================
   ANIMATIONS D'ENTRÉE DE SECTION (page d'accueil)
   Alterne gauche -> droite entre les sections
   ============================================ */
.section-anim {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.section-anim--left {
  transform: translateX(-90px);
}

.section-anim--right {
  transform: translateX(90px);
}

.section-anim.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Respecte les préférences d'accessibilité : pas d'animation si demandé */
@media (prefers-reduced-motion: reduce) {
  .section-anim,
  .section-anim--left,
  .section-anim--right {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
}






















/********************************************misssions**************************************/

.missions-rows{
  padding: 100px 60px;
  display: flex;
  align-items: center;
}

.missions-img{
  margin: 0;
  width: 100%;
}
.missions-img img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  border-radius: 5px;
}

.missions-text:nth-of-type(odd){
  margin-left: 11%;
  width: 100%;
}
.missions-text:nth-of-type(even){
  margin-right: 14%;
  width: 100%;
}
.missions-rows:nth-of-type(odd) {
  background-color: white;
  width: 100%;
}

.missions-rows:nth-of-type(even) {
  background-color: var(--vert-light);
  width: 100%;
}
@media (max-width: 1000px){
  .missions-rows{
    flex-direction: column;
  }
  .missions-rows:nth-of-type(even){
    flex-direction: column-reverse;
  }
  .missions-text:nth-of-type(even){
    margin-right: 0;
  }
  .missions-text:nth-of-type(odd){
    margin-left: 0;
  }
  .missions-rows h1{
    padding: 30px 0;
    padding-right: 0 ;
  }
  .missions-text{
    margin: 20px 0;

  }
  .missions-img img{
    width: 350px;
  }
}


/********************************************à propos**************************************/
.container_apropos1,.container_apropos2{
  margin-top: 50px;
}
.container_apropos1{
  width: 80%;
  margin: 50px auto;
  background-color: var(--surface);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.colonnes_texte_apropos{
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
}
.colonnes_texte_apropos p{
  text-align: justify;
  width: 47%;
}
.container_apropos2{
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 50px;
}

.container_apropos2 h2{
  width: 100%;
  margin-bottom: 20px;
}
.image_apropos{
  width: 100%;
  margin-top: 60px;
}

.image_apropos img{
  width: 100%;
  height: 300px;
  object-fit: cover;
}
@media screen and (max-width:800px) {
  .container_apropos1 div, .container_apropos2 div{
    width: 100%;
  }
  .container_apropos2 img{
    margin-bottom: 20px;
  }
}
/********************************************programme**************************************/
.programme-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.prog-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--cimes-hover);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap .2s, color .2s;
    margin: 0 auto;
}

.prog-link:hover {
    gap: 10px;
    color: var(--cimes-bg);
}
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.programme-card {
  background-color: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.programme-card:hover {
  
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.programme-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.programme-title {
  font-size: 3em;
  margin: 0 0 10px 0;
  color: var(--text);
}

.programme-description {
  font-size: 1em;
  color: var(--muted);
  flex-grow: 1;
}

.btn-more {
  display: inline-block;
  padding: 10px 20px;
  
  background-color: white;
  color: var(--vert);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  align-self: center;
  margin-top: auto;
  
}

.btn-more:hover {
  
  color:rgb(118, 130, 119) ;
  
}

@media screen and (max-width: 700px) {
  .programme-card {
      text-align: center;
  }
}
/**********************************************partenaires************************************/
.container_partenaires1{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 50px 5%;
}
.container_partenaires2{
  margin: 50px 5%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


.container_partenaires2 .logo {
  width: 100px;
  height: 100px;
  margin: 20px;
  display: inline-block;
}
.container_partenaires2 .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/********************************************gouvernance**************************************/
.container_membres_gouvernance {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.membre-card {
  background-color: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
}

.membre-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.membre-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--vert);
}

.membre-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.membre-name {
  font-size: 3em;
  margin: 10px 0;
  color: var(--text);
}


.membre-description {
  font-size: 1em;
  color: #777;
  margin-top: auto;
  margin-bottom: 20px;
}


/********************************************index**************************************/
.container-card {
  width: 100%;
  
}
.container_actu {
  margin-top: 2%;
}
.container_actu h3 {
  font-size: 16px;
  font-weight: bold;
}
.heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 50px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-top: 50px;
}

.card_actu {
  width: 100%;          
  background: var(--surface);
  margin-bottom: 0;    
  padding: 0;
  display: flex;
  flex-direction: row;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  width: 100%;
  padding-left: 10px;    
}

.card-header {
  text-align: center;
  padding: 0;
  color: #fff;
  background-size: cover;
  height: 200px;
  width: 100%;
}
.card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  
}

.card-body {
  padding: 0;           
  text-align: center;
  font-size: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.card-body h3, .card-body p {
  margin: 10px 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  max-height: 4.5em;
  word-wrap: break-word;
  white-space: pre-wrap;
  width: 100%;
  text-align: center;
  overflow-y: auto;
}

.card-date {
  writing-mode: vertical-rl;
  color: white;
  background-color: var(--vert);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 60px;
  position: absolute;
  top: 0;
  bottom: 0;
   display: none; 
  
}
.savoir-btn{
  display: flex;
  justify-content: center;
}
.card_actu a  {
  
  color: var(--vert);
  
  display: inline-block; 
  justify-content: center;
  padding: 10px 15px;
  
  text-decoration: none; 
  margin-top: 10px;
}
.card_actu a:hover  {
  color: #000;
}
.button-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-right: 13px;
}

.voir-button-container {
  position: absolute;
  
}

.voir-toutes-btn, .first a {
  padding: 10px 20px;
  background-color: var(--vert-dark);
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.voir-toutes-btn:hover, .first a:hover {
  background-color: var(--vert);
  color :white;
  
}

.info_actu {
  display: flex;
  flex-direction: row;
  text-align: center;
  margin: auto;
  width: 100%;
}
.po {
  width: 100%;
  font-size: 30px;
  
}
.button-container {
  text-align: right;
  margin-top: 20px;
}
@media screen and (max-width: 1000px) {
  .card_actu {
    width: 100%;
  }
}

@media screen and (max-width: 820px) {
  .container-card {
    width: 100%;
  }
  .container_actu {
    justify-content: center;
  }
  .heading {
    padding: 20px;
    font-size: 20px;
  }
  .card_actu {
    width: 100%;        
  }
}

/* boutons actu/event */
#controls{
  margin: 0 auto;
text-align: center;}
#toggle-actualite, #toggle-evenement{
  padding: 10px 20px;
    background-color: var(--vert-dark);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
}
#toggle-actualite:hover, #toggle-evenement:hover{
  background-color: var(--vert);
}

@media screen and (max-width: 451px) {
  #controls{
    display: flex;
    flex-direction: column;
  }
  #toggle-actualite, #toggle-evenement{
    margin:5px;
  }
}





/*******************************************Enjeux***************************************/
section.enjeux {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.line {
  display: flex;
  flex-direction: row-reverse; 
  justify-content: space-between;
  gap: 30px;
  margin: 50px auto;
}

.first {
  flex: 1;
}
.first h1{
  padding-bottom: 20px;
}
.first p{
  padding-bottom:20px;
}
.sec {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px; 
  height: fit-content;
  
}
.sec h1 {
  font-size: calc(1.375rem + 0.5vw);
  letter-spacing: 5px;
  color: white;;
}

.card-enj {
  flex: 1 1 calc(33.333% - 20px); 
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  height: fit-content;
}

.card-enj-header {
  width: 100%;
  height: 250px; 
  object-fit: cover;
}
.card-enj-header2 {
  width: 100%;
  height: 200px; 
  object-fit: cover;
}

.card-enj-body {
  padding: 15px;
  text-align: center;
  background-color: var(--vert-dark);
}


@media (max-width: 1450px) {
  .sec h1 {
    font-size: 1rem;
  }
}

@media (max-width: 1100px) {
  .line {
    flex-direction: column;
  }
  
}

@media (max-width: 800px) {
  .line {
    flex-direction: column; 
  }
  
  .sec, .first {
    flex: 1;
  }
  
  .card-enj {
    flex: 1 1 100%;
  }
}

/*******************************************detail projet*********************************/

.container_publications{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: 5%;
  margin-right: 5%;
}
.container_texte_projet{
  margin-left: 5%;
  margin-right: 5%;
  text-align: justify;
}
.container_publications div{
  width: 30%;
  margin-top: 5%;
}
.container_publications h2{
  width: 100%;
}
.container_actu{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding : 5%;
  padding-top: 3%;
}
.container_actu h2{
  width: 100%;
}
.container_actu .image_actu_projet{
  width: 30%;
}
.image_actu_projet img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.container_actu .texte_actu_projet{
  width: 100%;
  text-align: justify;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 5%;
  margin-bottom: 5%;
}
.container_actu .texte_actu_projet a{
  width: 33%;
  text-align: center;
  border-bottom: 2px solid var(--vert);
  padding-bottom: 10px;
}
.container_actu .texte_actu_projet a:hover{
  border-bottom: 2px solid transparent;
  color: black;
}
@media screen and (max-width: 820px) {
  
.container_actu{
  justify-content: center;
}

  
}
@media screen and (max-width: 1000px) {
  
  .button-wrapper{
    justify-content: center;
    margin-right: 0;
  }
    
  }

/*******************************************presentation*********************************/
#presentation, #activites {
  padding: 60px 20px;
  text-align: center;
}

/* Conteneurs centraux */
#presentation .container, #activites .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titres avec lignes sous-jacentes */
#presentation .container h2, #activites .container h2 {
  font-size: 4em;
  margin-bottom: 20px;
  position: relative;
}

#presentation .container h2::after, #activites .container h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--vert);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}

/* Texte des paragraphes */
#presentation .container p, #activites .container p {
  text-align: center;
}

/* Carousel */
#activites .carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height: 840px;
}

    @media (max-width: 800px) {
      #activites .carousel-container{
        overflow-y: scroll;
        overflow-x: hidden;
      }
    }
#activites .carousel-slide {
  position: absolute;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg);
    border-radius: 10px;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: transform 3.5s ease-in-out, opacity 3.5s ease-in-out, visibility 3.5s;
    
}

#activites .carousel-slide.active {
  visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* Navigation du carousel */
#activites .carousel-nav {
  margin-top: 20px;
  text-align: center;
}

#activites .nav-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: var(--vert);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

#activites .nav-dot.active {
  background-color: #2b333c;
}




/*******************************************Page dashboard***************************************/

        /* ===== WELCOME BANNER ===== */
        .dash-welcome {
    background: linear-gradient(135deg, var(--vert) 0%, var(--vert-dark) 100%);
    padding: 6rem 2rem 3rem;
    text-align: center;
    color: #fff;
}

        .dash-welcome__title {
            font-size: clamp(1.4rem, 3vw, 2rem);
            color: #fff;
            margin-bottom: 0.6rem;
            letter-spacing: -0.01em;

        }

        .dash-welcome__subtitle {
            max-width: 560px;
            margin: 0 auto 1.5rem;
            color: rgba(255, 255, 255, 0.80);
            font-size: 0.95rem;
            text-align: center;
        }

        .dash-logout-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 18px;
            border-radius: 50px;
            background: var(--danger);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.25);
            font-size: 0.85rem;
            text-decoration: none;
            transition: background var(--transition);

        }

        .dash-logout-btn:hover {
            background-color: var(--vert-dark);
            color: #fff;
        }

        /* ===== MAIN WRAPPER ===== */
        .dash-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.dash-message{
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.dash-message.success{
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.dash-message.error{
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

        /* ===== OVERLAY ===== */
        .dash-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 190;
        }

        .dash-overlay--active {
            display: block;
        }

        /* ===== CARDS GRID ===== */
        .dash-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            padding-top: 12px;
        }

        .dash-card-wrap {
            position: relative;
            flex: 1 1 200px;
            max-width: 360px;
            display: flex;
            flex-direction: column;
        }

        .dash-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.4rem 1.6rem;
            cursor: pointer;
            transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
            text-align: center;
            width: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 180px;
            box-shadow: var(--shadow-card);
        }

        .dash-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
            border-color: var(--vert-mid);
        }

        .dash-card--active {
            border-color: var(--vert);
            box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
        }

        .dash-card__icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: var(--vert-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem;
            color: var(--vert-dark);
            font-size: 17px;
        }

        .dash-card__title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 4px;

        }

        .dash-card__desc {
            font-size: 0.78rem;
            color: var(--muted);
            text-align: center;
            line-height: 1.4;
        }

        /* ===== ACCORDION PANEL (au-dessus de la carte) ===== */
        .dash-panel {
            position: absolute;
            bottom: calc(100% + 10px);
            left: 0;
            width: 100%;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.11), 0 2px 6px rgba(0, 0, 0, 0.05);
            display: none;
            z-index: 200;
            overflow: hidden;
        }

        .dash-panel::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid var(--surface);
        }

        .dash-panel--open {
            display: block;
            animation: dash-popUp 0.2s ease;
        }

        @keyframes dash-popUp {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== PANEL HEADER ===== */
        .dash-panel__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.8rem 1rem;
            border-bottom: 1px solid var(--border);
            background: #fafafa;
        }

        .dash-panel__head-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
            text-align: left;

        }

        .dash-panel__close {
            background: none;
            border: none;
            font-size: 12px;
            color: var(--hint);
            cursor: pointer;
            padding: 3px 6px;
            border-radius: 5px;
            transition: background var(--transition), color var(--transition);
        }

        .dash-panel__close:hover {
            background: #fee2e2;
            color: var(--danger);
        }

        /* ===== PANEL BODY ===== */
        .dash-panel__body {
            padding: 1rem 1.1rem;
        }

        /* ===== PROFILE TOP ===== */
        .dash-profile-top {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.9rem;
            padding-bottom: 0.9rem;
            border-bottom: 1px solid var(--border);
        }

        .dash-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--vert-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--vert-dark);
            border: 2px solid var(--vert-mid);
            flex-shrink: 0;
        }

        .dash-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        .dash-profile-meta {
            flex: 1;
            text-align: left;
        }

        .dash-profile-meta__name {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
        }

        .dash-profile-meta__role {
            font-size: 0.73rem;
            color: var(--muted);
        }

        /* ===== FORM ===== */
        .dash-form-grid {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .dash-form-row {
            display: grid;
            grid-template-columns: 92px 1fr;
            align-items: center;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            transition: border-color var(--transition);
        }

        .dash-form-row:focus-within {
            border-color: var(--vert);
        }

        .dash-form-row__label {
            padding: 6px 9px;
            font-size: 0.66rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--muted);
            font-weight: 600;
            white-space: nowrap;
            border-right: 1px solid var(--border);
            background: #f1f5f9;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .dash-form-row__input {
            padding: 6px 9px;
            border: none;
            background: transparent;
            font-size: 0.80rem;
            color: var(--text);
            outline: none;
            width: 100%;

        }

        .dash-form-row__input[readonly] {
            cursor: default;
        }

        .dash-form-row__input:not([readonly]) {
            background: #fff;
        }

        .dash-form-row__input::placeholder {
            color: var(--hint);
            font-size: 0.74rem;
        }

        .dash-form-divider {
            border: none;
            border-top: 1px dashed var(--border);
            margin: 3px 0;
        }

        /* ===== BOUTONS ===== */
        .dash-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            justify-content: center;
            margin-top: 0.85rem;
            align-items: stretch;
        }

        .dash-btn {
            flex: 1 1 var(--btn-min-w);
            min-width: var(--btn-min-w);
            height: var(--btn-h);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 0 var(--btn-px);
            border-radius: var(--radius-sm);
            font-size: var(--btn-font);
            font-weight: 500;
            cursor: pointer;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);

            transition: background var(--transition), color var(--transition), border-color var(--transition), transform .1s;
            white-space: nowrap;
            text-decoration: none;
            line-height: 1;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .dash-btn:hover {
            background: #f1f5f9;
            border-color: var(--border-hover);
        }

        .dash-btn:active {
            transform: scale(0.97);
        }

        .dash-btn--primary {
            background: var(--vert);
            color: #fff;
            border-color: var(--vert);
        }

        .dash-btn--primary:hover {
            background: var(--vert-dark);
            border-color: var(--vert-dark);
            color: #fff;
        }

        .dash-btn--danger {
            background: #fff;
            color: var(--danger);
            border-color: #fecaca;
        }

        .dash-btn--danger:hover {
            background: #fee2e2;
            border-color: #fca5a5;
        }

        /* ===== LISTES ===== */
        .dash-item-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .dash-item-list__item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.6rem;
            padding: 7px 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.80rem;
        }

        .dash-item-list__item:last-child {
            border-bottom: none;
        }

        .dash-item-list__link {
            font-size: 0.72rem;
            color: var(--vert);
            text-decoration: none;
            white-space: nowrap;
            border: 1px solid var(--vert-mid);
            padding: 2px 8px;
            border-radius: 20px;
            transition: background var(--transition), color var(--transition);
            flex-shrink: 0;
        }

        .dash-item-list__link:hover {
            background: var(--vert);
            color: #fff;
        }

        .dash-panel__footer {
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border);
        }

        /* ===== ADMIN GRID ===== */
        .dash-admin-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.45rem;
        }

        .dash-admin-entry {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 7px 8px;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            text-decoration: none;
            color: var(--text);
            font-size: 0.77rem;
            font-weight: 500;
            text-align: center;
            transition: background var(--transition), color var(--transition), border-color var(--transition);
        }

        .dash-admin-entry:hover {
            background: var(--vert);
            color: #fff;
            border-color: var(--vert);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 640px) {
            .dash-card-wrap {
                max-width: 100%;
            }

            .dash-panel {
                position: fixed;
                bottom: 1rem;
                left: 1rem;
                right: 1rem;
                width: auto;
            }

            .dash-panel::after {
                display: none;
            }

            .dash-form-row {
                grid-template-columns: 82px 1fr;
            }

            .dash-btn {
                flex: 1 1 80px;
                min-width: 80px;
            }
        }
    

/*******************************************Page Formations***************************************/
.container_formation{
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 5%;
}
.container_formation p{
  text-align: justify;
  margin-top: 6%;
}

.container_formation .container-card h3{
  font-size: 1.4rem;
  font-weight: bold;
}

.container_formation .container-card p{
  font-size: 1rem;
}
.date{
  font-size: 10px;
  color: var(--text);
  text-align: center;
}

/*******************************************Page Actu***************************************/




.cat_actu{
  text-transform: uppercase;
  font-size: 13px;
}

.titre_actualite{
  font-size: 1.4rem;
  font-weight: bold;
}
.date{
  line-height: 13px;
}


.infos_actu{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.infos_actu .date{
  width: 45%;
}




.container_page_actu {
  overflow: hidden;
}

.filterDiv {
  display: none;
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
.container_page_actu .btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
}

/* Add a light grey background on mouse-over */
.container_page_actu .btn:hover {
  background-color: var(--border-hover);
}

/* Add a dark background to the active button */
.container_page_actu .btn.active {
  background-color: #666;
  color: white;
}

/****************************detail_actu_eve********************************************/


.article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.article-header {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.article-date {
  text-align: left;
  font-size: 0.9em;
  color: #666;
}

.article h1 {
padding-bottom: 20px;
}

.article-img {
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  position: relative;
}

.article-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}



.article-texte {
  padding: 50px 0;
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
  text-align:justify;
}

@media (max-width: 768px) {
  .article-content {
      flex-direction: column;
      align-items: center;
  }

  .article-left,
  .article-right {
      max-width: 100%;
      padding: 10px 0;
  }

  .article-text {
      text-align: center;
  }
}

/*****************************************plan du site******************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.tree{
  padding: 10px;
  display: flex;
}
.tree ul {
  padding-bottom: 20px;
  position: relative;
  list-style-type: none;
  
}

.tree li {
  text-align: left;
  list-style-type: none;
  position: relative;
  padding: 10px 5px;
  transition: all 0.5s;
  width: 100%;
}

.caret {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  margin-right: 6px;
  
}

.caret::before {
  content: "";
  color: var(--text);
  display: inline-block;
  margin-right: 6px;
  border: solid var(--text);
  border-width: 0 3px 3px 0;
  padding: 3px;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.caret-down::before {
  transform: rotate(45deg);
}

.nested {
  display: none;
  
}

.active {
  display: block;
  padding-left: 0;
}


.tree li a {
  text-decoration: none;
  color: #666;
  font-family: Arial, Verdana, Tahoma;
  font-size: 15px;
  display: inline-block;
  transition: all 0.5s;
  padding: 5px 20px;
}

.tree li a:hover {
  background: var(--vert-mid);
  color: #000;
  border:  #50555e;
  border-radius: 5px;
  
}

.page_accueil {
  color: #242526;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tree ul {
    padding-top: 10px;
  }

  .tree li {
    padding: 10px 0;
  }

  .tree li::before, .tree li::after {
    width: 1px;
    height: 20px;
    border: none;
  }

  .tree li::before {
    top: -20px;
    left: 50%;
    height: 20px;
    width: 1px;
    border-left: 1px solid rgb(56, 50, 50);
  }

  .tree li::after {
    top: -20px;
    left: 50%;
    height: 20px;
    width: 1px;
    border-left: 1px solid #ccc;
  }

  .tree ul ul::before {
    top: -20px;
    left: 50%;
    height: 20px;
    width: 1px;
    border-left: 1px solid #ccc;
  }

  .tree li a {
    width: auto;
    font-size: 14px;
    padding: 10px;
  }
}
@media (max-width: 1030px) {
  .nested.active{
    flex-direction: column;
  }
  .tree {
    padding-left: 10%;
    flex-direction: column;
  }
}

.arrow {
  border: solid var(--text);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.right {
  transform: rotate(0deg);
}

.down {
  transform: rotate(90deg);
}



/****************************Mentions légales***************************************************/



/*********************************************annuaire******************************************/

    /* ── HERO ── */
    .annuaire-hero {
        background: var(--cimes-bg);
        background-image:
            url("../img/annuaire.png"),
            linear-gradient(135deg, var(--vert-dark) 0%, var(--vert) 60%, #1D9E75 100%);
        background-size: cover;
        background-position: center;
        background-blend-mode: multiply;
        padding: 10rem 2.5rem 7rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

     .annuaire-structure_hero {
        background: var(--cimes-bg);
        background-image:
            url("../img/annuaire_entreprise.jpg"),
            linear-gradient(135deg, var(--vert-dark) 0%, var(--vert) 60%, #1D9E75 100%);
        background-size: cover;
        background-position: center;
        background-blend-mode: multiply;
        padding: 10rem 2.5rem 7rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    

    .annuaire-hero::after, .annuaire-structure_hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
        pointer-events: none;
    }

    .annuaire-hero__inner {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .annuaire-hero__eyebrow {
        display: inline-block;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--vert-mid);
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 20px;
        padding: 4px 12px;
        margin-bottom: 1rem;
    }

    .annuaire-hero h1, .annuaire-structure_hero h1 {
        font-size: clamp(2.4rem, 5vw, 4rem);
      
        color: #fff;
        letter-spacing: -.03em;
        line-height: 1.1;
        font-weight: bolder;
    }

    

    .annuaire-hero, .annuaire-structure-hero  h1 strong {
        font-weight: 600;
    }

    .annuaire-hero__sub {
        margin: 1rem auto 0;
        font-size: 16px;
        color: rgba(255, 255, 255, .65);
        width: 100%;
        text-align: center;
        line-height: 1.6;
        font-weight: bolder;
    }


    /* ── CONTROLS ── */
    .annuaire-controls {
        max-width: 1200px;
        margin: -1.5rem auto 0;
        padding: 0 2rem;
        position: relative;
        z-index: 10;
    }

    .annuaire-controls__bar {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: calc(var(--radius) + 6px);
        box-shadow: var(--shadow-hover);
        padding: .75rem 1rem;
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .search-wrap {
        flex: 1;
        min-width: 200px;
        position: relative;
    }

    .search-wrap svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--hint);
        pointer-events: none;
    }

    .search-input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: .55rem .75rem .55rem 2.4rem;
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--text);
        background: var(--bg);
        outline: none;
        transition: border-color var(--transition), box-shadow var(--transition);
    }

    .search-input:focus {
        border-color: var(--vert);
        box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
        background: var(--surface);
    }

    .search-input::placeholder {
        color: var(--hint);
    }

    .ctrl-select {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: .55rem 2rem .55rem .75rem;
        font-family: var(--font-body);
        font-size: 13px;
        color: var(--text);
        background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
        appearance: none;
        outline: none;
        cursor: pointer;
        transition: border-color var(--transition);
        white-space: nowrap;
    }

    .ctrl-select:focus {
        border-color: var(--vert);
        box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
    }

    .ctrl-divider {
        width: 1px;
        height: 28px;
        background: var(--border);
        flex-shrink: 0;
    }

    /* ── META BAR ── */
    .annuaire-meta {
        max-width: 1200px;
        margin: 1.5rem auto 0;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .annuaire-meta__count {
        font-size: 13px;
        color: var(--muted);
    }

    .annuaire-meta__count strong {
        font-weight: 600;
        color: var(--vert);
    }

    .view-toggle {
        display: flex;
        gap: 4px;
        background: var(--border);
        border-radius: var(--radius-sm);
        padding: 3px;
    }

    .view-btn {
        border: none;
        background: transparent;
        border-radius: 4px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--hint);
        transition: background var(--transition), color var(--transition);
    }

    .view-btn.active {
        background: var(--surface);
        color: var(--vert);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    }

    /* ── GRILLE ── */
    .annuaire-grid {
        max-width: 1200px;
        margin: 1.25rem auto 3rem;
        padding: 0 2rem;
        padding-top: var(--avatar-overlap);
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        column-gap: 14px;
        row-gap: calc(var(--avatar-overlap) + 14px);
    }

    .annuaire-grid.view-list {
        grid-template-columns: 1fr;
        padding-top: 0;
        row-gap: 8px;
    }

    /* ── CARD ── */
    .member-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 2px;
        padding: calc(var(--avatar-overlap) + 10px) 1.25rem 1.25rem;
        box-shadow: var(--shadow-card);
        transition: transform var(--transition), box-shadow var(--transition);
        animation: fadeIn .25s ease both;
        cursor: default;
        position: relative;
        overflow: visible;
        text-align: center;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .member-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    /* ── VUE LISTE ── */
    .view-list .member-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: .9rem 1.25rem;
        text-align: left;
        overflow: hidden;
    }

    .view-list .card-main {
        flex: 1;
        min-width: 0;
    }

    .view-list .card-meta {
        flex-direction: row;
        gap: 1.5rem;
        flex: 2;
        flex-wrap: wrap;
        align-items: center;
    }

    .view-list .card-divider,
    .view-list .badge {
        display: none;
    }

    /* ── AVATAR ── */
    .avatar {
        width: var(--avatar-size);
        height: var(--avatar-size);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 22px;
        letter-spacing: .02em;
        overflow: hidden;
        border: 3px solid var(--surface);
        box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
        position: absolute;
        top: calc(-1 * var(--avatar-overlap));
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        border-radius: 50%;
    }

    .view-list .avatar {
        position: static;
        transform: none;
        width: 42px;
        height: 42px;
        font-size: 14px;
        flex-shrink: 0;
        border: 2px solid var(--surface);
    }

    /* ── TEXTE CARTE ── */
    .card-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
        line-height: 1.3;
    }

    .card-org {
        font-size: 12px;
        color: var(--muted);
        margin-top: 5px;
        line-height: 1.4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .view-list .card-org {
        justify-content: flex-start;
    }

    .card-divider {
        height: 1px;
        background: var(--border);
        margin: 10px 0;
    }

    .card-meta {
        display: flex;
        flex-direction: column;
        gap: 7px;
        align-items: center;
    }

    .view-list .card-meta {
        align-items: flex-start;
    }

    .meta-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 12.5px;
        color: var(--muted);
        text-align: left;
        width: 100%;
    }

    .publi-link {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    .meta-icon {
        width: 14px;
        text-align: center;
        flex-shrink: 0;
        color: var(--hint);
        font-size: 12px;
        line-height: 1;
        margin-top: 1px;
    }

    .mail-link {
        color: var(--vert);
        text-decoration: none;
        font-size: 12.5px;
        word-break: break-all;
        transition: color var(--transition);
    }

    .mail-link:hover {
        color: var(--cimes-hover);
        text-decoration: underline;
    }

    .badge {
        display: inline-block;
        margin-top: 10px;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 500;
        background: var(--cimes-light);
        color: var(--vert-dark);
        border: 1px solid rgba(15, 118, 110, .12);
    }

    /* ── EMPTY / ERROR ── */
    .state-msg {
        grid-column: 1/-1;
        text-align: center;
        padding: 4rem 2rem;
        color: var(--hint);
    }

    .state-msg svg {
        margin-bottom: 1rem;
        opacity: .35;
    }

    .state-msg p {
        font-size: 15px;
        color: var(--muted);
    }

    .state-msg small {
        font-size: 13px;
        color: var(--hint);
        display: block;
        margin-top: 4px;
    }

    /* ── LOADER ── */
    .loader {
        grid-column: 1/-1;
        display: flex;
        justify-content: center;
        padding: 4rem;
    }

    .loader__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--vert);
        margin: 0 4px;
        animation: bounce 1.2s infinite ease-in-out;
    }

    .loader__dot:nth-child(2) {
        animation-delay: .2s;
    }

    .loader__dot:nth-child(3) {
        animation-delay: .4s;
    }

    @keyframes bounce {

        0%,
        80%,
        100% {
            transform: scale(.6);
            opacity: .4;
        }

        40% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* ── GEO AUTOCOMPLETE ── */
    .geo-wrap {
        position: relative;
        min-width: 200px;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .geo-wrap .geo-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--hint);
        pointer-events: none;
        z-index: 1;
        display: flex;
        align-items: center;
    }

    .geo-wrap .search-input {
        padding-left: 2.4rem;
        padding-right: 2rem;
        width: 100%;
    }

    .geo-clear {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: none;
        font-size: 16px;
        color: var(--hint);
        cursor: pointer;
        line-height: 1;
        padding: 2px 4px;
        border-radius: 4px;
        display: none;
        z-index: 1;
        transition: color var(--transition);
    }

    .geo-clear:hover {
        color: var(--text);
    }

    .geo-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-hover);
        list-style: none;
        z-index: 100;
        max-height: 260px;
        overflow-y: auto;
        display: none;
    }

    .geo-dropdown.open {
        display: block;
    }

    .geo-dropdown li {
        padding: .55rem 1rem;
        font-size: 13.5px;
        color: var(--text);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 2px;
        transition: background var(--transition);
    }

    .geo-dropdown li:hover,
    .geo-dropdown li[aria-selected="true"] {
        background: var(--cimes-light);
    }

    .geo-dropdown li .geo-label {
        font-weight: 500;
    }

    .geo-dropdown li .geo-sub {
        font-size: 11.5px;
        color: var(--hint);
    }

    .geo-dropdown li.geo-loading,
    .geo-dropdown li.geo-empty {
        color: var(--hint);
        font-size: 13px;
        cursor: default;
        padding: .75rem 1rem;
    }

    /* ── BOUTON DÉPLIAGE ── */
    .card-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1.5px solid var(--border);
        background: var(--bg);
        color: var(--vert);
        cursor: pointer;
        margin: 10px auto 0;
        transition: background var(--transition), border-color var(--transition), transform var(--transition);
        flex-shrink: 0;
    }

    .card-toggle-btn:hover {
        background: var(--cimes-light);
        border-color: var(--vert);
    }

    .card-open .card-toggle-btn {
        transform: rotate(180deg);
        background: var(--cimes-light);
        border-color: var(--vert);
    }

    .view-list .card-toggle-btn {
        margin: 0 0 0 auto;
    }

    /* ── SECTION DÉPLIABLE ── */
    .card-extra {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
    }

    .card-extra .meta-row {
        margin-top: 7px;
    }

    .card-extra .meta-row:first-child {
        margin-top: 10px;
    }

    .publi-header {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        color: var(--vert);
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-top: 10px;
        margin-bottom: 4px;
    }

    .publi-header .meta-icon {
        color: var(--vert);
    }

    .publi-item {
        padding-left: 4px;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 640px) {
        .annuaire-hero {
            padding: 4rem 1.25rem 5.5rem;
        }

        .annuaire-controls,
        .annuaire-meta {
            padding: 0 1rem;
        }

        .annuaire-grid {
            padding: 0 1rem;
            grid-template-columns: 1fr;
        }

        .ctrl-divider {
            display: none;
        }

        .annuaire-controls__bar {
            border-radius: var(--radius);
        }
    }


  /* ═══════════════ ZOOM RECTANGULAIRE LARGE ═══════════════ */
.member-card {
    overflow: visible !important;
}

/* La carte survolée passe au-dessus des autres */
.member-card:has(img:hover) {
    z-index: 1000 !important;
}

/* L’avatar ne doit plus être un cercle au survol */
.avatar:has(img:hover) {
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    clip-path: none;
    -webkit-clip-path: none;
}

/* Image : on retire le border-radius et on prépare la transition */
.avatar img {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1),
                box-shadow 0.4s ease;
    transform-origin: center center;
    display: block;
    border-radius: 0;                /* plus jamais ronde */
}

/* Zoom au survol : grand rectangle large */
.avatar img:hover {
    transform: scale(3);             /* 3× la taille → bien large */
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 0;
    clip-path: none;
    -webkit-clip-path: none;
}

/* Les avatars sans image (initiales) ne bougent pas */
.avatar:not(:has(img)):hover {
    transform: none;
}



.publi-skeleton div {
  height: 12px;
  background: #e0e0e0;
  margin: 6px 0;
  border-radius: 4px;
  animation: shimmer 1.2s infinite;
}
.publi-header-skel { width: 50%; }
.publi-row-skel    { width: 80%; }

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.publi-all {
  margin-top: 8px;
  font-size: 0.85rem;
}
.publi-all a {
  color: var(--green-dark);
  text-decoration: none;
}
.publi-all a:hover { text-decoration: underline; }

.publi-date {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #666;
}


























 

/* Bloc présentation : hauteur limitée + scroll interne */
.struct-presentation {
    margin: 0;
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 4px;
    /* scrollbar discrète */
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.struct-presentation::-webkit-scrollbar {
    width: 4px;
}

.struct-presentation::-webkit-scrollbar-track {
    background: transparent;
}

.struct-presentation::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}


/*********************************************publications***********************************/
.map {
  margin: 2%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/*************************carte_publication***********************/
#map {
  padding: 10%;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
}

#publis {
  padding: 5% 2%;
}

@media screen and (max-width: 1030px) {
  .map {
    flex-direction: column;
  }
  
  #map {
    width: 100%; 
    padding: 0; 
    margin: 0 auto; 
  }
  
  #publis {
    margin: 0 10px;
  }
}

.carte{
  margin-right: 2%;
  z-index: -1000;
  width: 60%;
}























/******************************************** FOOTER **************************************/


/* --- FOOTER MAIN --- */
.footer-modern {
    background-color: var(--vert-dark);
    color: white;
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-container-modern {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    /* Ratio GAFA : 1fr (Logo) | 1.2fr (Infos) | 1.5fr (Carte) */
    grid-template-columns: 1fr 1.2fr 1.5fr;
    gap: 40px;
    padding: 0 30px 60px 30px;
    align-items: start;
}

/* --- COLONNE GAUCHE : BRANDING --- */
.brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 85px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    
}

.brand-tagline {
    color: var(--vert-mid);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 250px;
    text-align: left;
}

/* --- COLONNE CENTRALE : INFOS --- */
.center-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement le contenu de la colonne */
    text-align: center;
}

/* Centrage précis des h3 */
.footer-section h3 {
    color: var(--vert-text);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    width: 100%;
    font-weight: 900;
    text-align: center; /* Force le centrage du texte */
}

.contact-details p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centre les icônes et le texte */
    gap: 10px;
    font-size: 0.95rem;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--vert-mid);
}

.social-media-wrapper {
    margin-top: 30px;
    width: 100%;
}

.social-media-wrapper h4 {
    font-size: 0.9rem;
    color: var(--vert-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 900;
}

.social-icons-modern {
    display: flex;
    justify-content: center; /* Centre les icônes sociales */
    gap: 15px;
}

.social-icons-modern a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons-modern a:hover {
    background: var(--vert);
    transform: translateY(-4px);
}

/* --- COLONNE DROITE : CARTE --- */
.map-column {
    display: flex;
    flex-direction: column;
}

#footer-map {
    height: 230px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1; /* Évite les conflits d'affichage */
}

/* --- SOUS-FOOTER --- */
.sous_footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    
    
}

.sous_footer_inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.sous_footer ul {
    list-style: none;
    display: flex;
     justify-content: space-evenly;
      flex-wrap: wrap;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.sous_footer a {
    color: inherit;
    text-decoration: none;
}

.sous_footer a:hover {
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-container-modern {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .brand-column {
        align-items: center;
        text-align: center;
    }

    .brand-tagline {
   
    text-align: center;
}
}


/****************************publi_detail*************************/
.section_publi {
  display: flex;
  justify-content: center;
  
  padding: 5%; 
}

.section_publi1, .section_publi2 {
  padding: 2%;
   
}
.section_publi2{
  width: 70%;
}
.section_publi1{
  width: 30%;
}
.section_publi img {
  
  width: 100%;
  height: auto; 
  object-fit: cover; 
}

.auteur_publi {
  padding-top: 2%;
}

.text_publi {
  text-align: justify;
}

@media screen and (max-width: 1250px) {
  .section_publi {
    flex-direction: column;
    padding: 0; 
  }

  .section_publi1, .section_publi2 {
    width: 100%; 
    padding: 5%; 
  }

  .section_publi img {
    width: 100%;
    height: auto; 
  }
}
/* supp_panneau */
.panneau_supp{
  display: none;
  position: absolute;
  top: 50vh;
  left:37%;
  width: 25%;
  height: 25vh;
  background-color: white;
  border-color: black;
  border-style: solid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.texte_supp{
  width: 80%;
  margin: auto;
  text-align: center;
}
.btn_supp{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;    
}
.btn_oui_non{
  color: white;
  background-color: rgb(252, 82, 82);
  padding: 5px;
  margin: 10px;
  width: 40%;
  text-align: center;
}
.btn_oui_non:hover{
  color: white;
  background-color: rgb(255, 0, 0);
}
.btn_oui_non#non{
  background-color: rgb(95, 203, 95);
}
.btn_oui_non#non:hover{
  background-color: rgb(1, 159, 1);
}









/* ============================================================
   CORRECTIFS GRANDS ÉCRANS — à coller à la FIN de votre CSS
   Cible : écrans > 1900px (mais améliore aussi 1200-1900px)
   ============================================================ */

/* ── 1. CONTENEUR GLOBAL ──────────────────────────────────── */
/* Toutes les sections qui utilisent width:90% ou margin:5%
   doivent avoir un max-width pour ne pas s'étirer à l'infini */
  /* ── 4. GRILLES ACTU / EVENTS / PROGRAMMES — 4 colonnes max ── */

  html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.actu-grid,
.events-grid,
.prog-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1800px;
}

/* ── Axes : toujours 4+4 ── */
.axes-grid-main {
  grid-template-columns: repeat(4, 1fr);
}

/* Supprimer le bloc @media (min-width: 1800px) qui forçait 5 colonnes */
/* ET supprimer le @media (min-width: 1900px) qui le faisait aussi     */

/* ── Responsive inchangé ── */
@media (max-width: 1100px) {
  .actu-grid,
  .events-grid,
  .prog-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .axes-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .actu-grid,
  .events-grid,
  .prog-cards-grid {
    grid-template-columns: 1fr;
  }
  .axes-grid-main {
    grid-template-columns: 1fr;
  }
}



/* carte projets */




.custom-tooltip {
  background: white !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  padding: 6px 10px !important;
  font-size: 0.85rem;
}
.leaflet-tooltip.custom-tooltip::before {
  border-top-color: white !important;
}

.custom-popup .leaflet-popup-content-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 0;
}
.custom-popup .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.custom-popup .leaflet-popup-tip {
  background: white;
}
.custom-popup button.cimes-btn-primary {
  background: var(--vert, #0F766E);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.custom-popup button.cimes-btn-primary:hover {
  background: var(--vert-dark, #134e4a);
}

/* === RESET LOCAL POUR LA CARTE === */
.cimes-app, .cimes-app * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* === LAYOUT PRINCIPAL === */
.cimes-app {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  background: var(--bg, #f0f4f3);
}

/* === SIDEBAR GAUCHE === */
.cimes-sidebar {
  width: 340px;
  background: var(--surface, #ffffff);
  border-right: 1px solid var(--border, #e2e8f0);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  z-index: 20;
  box-shadow: 2px 0 12px rgba(0,0,0,0.04);
  height: 100vh;
}

.cimes-sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.cimes-back-btn {
  background: none;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted, #64748b);
  transition: 0.2s;
  text-decoration: none;
}
.cimes-back-btn:hover {
  background: var(--vert-light, #e1f5ee);
  color: var(--vert, #0F766E);
  border-color: var(--vert-mid, #9FE1CB);
}

.cimes-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.cimes-logo-icon {
  font-size: 1.6rem;
  color: var(--vert, #0F766E);
}

.cimes-logo h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--vert-dark, #134e4a);
  margin: 0;
  line-height: 1.2;
}

.cimes-logo h1 span {
  font-weight: 400;
  color: var(--muted, #64748b);
  font-size: 0.9rem;
}

.cimes-toggle-sidebar {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #64748b);
  transition: 0.2s;
  font-size: 1.2rem;
}
.cimes-toggle-sidebar:hover {
  color: var(--vert, #0F766E);
}

/* === CONTENU DU SIDEBAR === */
.cimes-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Barre de recherche */
.cimes-search-box {
  display: flex;
  align-items: center;
  background: var(--bg, #f0f4f3);
  border-radius: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border, #e2e8f0);
}
.cimes-search-box i {
  color: var(--muted, #64748b);
  margin-right: 8px;
}
.cimes-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.85rem;
  color: var(--text, #1e293b);
  font-family: inherit;
}

/* Stats */
.cimes-stats-row {
  display: flex;
  gap: 12px;
}
.cimes-stat-card {
  background: var(--vert-light, #e1f5ee);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  flex: 1;
  border: 1px solid var(--vert-mid, #9FE1CB);
}
.cimes-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vert-dark, #134e4a);
  display: block;
  line-height: 1.2;
}
.cimes-stat-card span:last-child {
  font-size: 0.7rem;
  color: var(--vert, #0F766E);
  font-weight: 500;
}

/* === ACCORDÉONS === */
.cimes-filter-group {
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.cimes-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text, #1e293b);
}
.cimes-filter-header i:first-child {
  color: var(--vert, #0F766E);
  margin-right: 8px;
}
.cimes-arrow {
  transition: transform 0.2s;
  color: var(--muted, #64748b);
}
.cimes-filter-group-open .cimes-arrow {
  transform: rotate(180deg);
}
.cimes-filter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding-bottom: 0;
}
.cimes-filter-group-open .cimes-filter-body {
  max-height: 200px;
  padding-bottom: 12px;
  overflow-y: auto;
}

/* === TAGS (CHIPS) === */
.cimes-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cimes-tag {
  background: var(--vert-light, #e1f5ee);
  border: 1px solid var(--vert-mid, #9FE1CB);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--vert-dark, #134e4a);
}
.cimes-tag:hover {
  background: var(--vert-mid, #9FE1CB);
}
.cimes-tag-active {
  background: var(--vert, #0F766E);
  color: white;
  border-color: var(--vert-dark, #134e4a);
  box-shadow: 0 2px 6px rgba(15,118,110,0.3);
}

/* === ANNÉE === */
.cimes-slider-group {
  margin: 8px 0;
}
.cimes-slider-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted, #64748b);
  margin-bottom: 6px;
}
.cimes-slider-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.85rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  color: var(--text, #1e293b);
  cursor: pointer;
  outline: none;
}

/* === BOUTONS === */
.cimes-btn {
  border: none;
  padding: 10px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  margin-top: 6px;
}
.cimes-btn-primary {
  background: var(--vert, #0F766E);
  color: white;
}
.cimes-btn-primary:hover {
  background: var(--vert-dark, #134e4a);
}
.cimes-btn-outline {
  background: transparent;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text, #1e293b);
}
.cimes-btn-outline:hover {
  background: var(--vert-light, #e1f5ee);
  border-color: var(--vert, #0F766E);
}
.cimes-btn-active-heatmap {
  background: var(--vert, #0F766E);
  color: white;
}

/* === FOOTER SIDEBAR === */
.cimes-sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: 0.7rem;
  color: var(--muted, #64748b);
  display: flex;
  justify-content: space-between;
}

/* === CARTE === */
.cimes-map-container {
  flex: 1;
  position: relative;
  height: 100vh;
}
#map {
  height: 100%;
  width: 100%;
  background: #eef2f0;
  padding: 0 !important; /* écrase le padding:10% du CSS global */
}

/* Contrôle des couches */
.cimes-layer-control {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--surface, #ffffff);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  z-index: 1000;
  font-size: 0.75rem;
}
.cimes-layer-control label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 4px 0;
}

/* === PANNEAU DE DÉTAIL === */
.cimes-detail-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  height: 100%;
  background: var(--surface, #ffffff);
  border-left: 1px solid var(--border, #e2e8f0);
  transition: right 0.25s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -2px 0 12px rgba(0,0,0,0.05);
}
.cimes-detail-panel-open {
  right: 0;
}
.cimes-close-detail {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted, #64748b);
}
.cimes-detail-content {
  padding: 24px;
}
.cimes-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted, #64748b);
}
.cimes-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* === MARQUEURS (PLUS GROS, SANS CADRE BLANC) === */
.cimes-custom-marker-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  display: block;
  object-fit: cover;
  background: white; /* fond blanc si l'image est transparente */
}

/* === BOUTON FLOTTANT (MOBILE) === */
.cimes-floating-open {
  position: fixed;
  left: 16px;
  top: 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 40px;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 25;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .cimes-sidebar {
    transform: translateX(-100%);
  }
  .cimes-sidebar-open {
    transform: translateX(0);
  }
  .cimes-floating-open {
    display: block;
  }
  .cimes-detail-panel {
    width: 100%;
    right: -100%;
  }
}

/* Bouton recentrage */
.cimes-recenter-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: white;
    border: 2px solid var(--vert);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 1rem;
    color: var(--vert);
    transition: background 0.2s;
}
.cimes-recenter-btn:hover { background: var(--vert-light); }

/* Bouton localisation */
.cimes-locate-btn {
    position: absolute;
    top: 12px;
    right: 60px;
    z-index: 1000;
    background: white;
    border: 2px solid var(--vert);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--vert);
}
.cimes-locate-btn:hover { background: var(--vert-light); }

/* Légende */
.cimes-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 0.8rem;
    z-index: 1000;
}
.cimes-legend i { margin-right: 4px; }

/* Marqueurs personnalisés */
.cimes-marker {
    background: none;
    border: none;
}
/* Clusters sans fond blanc */
.marker-cluster { background: transparent !important; }
.marker-cluster div { 
    background: rgba(15, 118, 110, 0.8) !important; 
    border-radius: 30px; 
    color: white; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* === USER ET ADMIN PROJETS === */

  
    .form-wrapper {
        max-width: 820px;
        margin: 0 auto;
        padding: 40px 24px 60px;
        margin-top: var(--header-height);
    }

    .form-page-title {
        text-align: center;
        color: var(--green-dark);
        font-size: 1.35rem;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .form-page-sub {
        text-align: center;
        color: var(--text-hint);
        font-size: 0.88rem;
        margin: 0 0 32px;
    }

    .form-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        padding: 28px 28px 24px;
        margin-bottom: 20px;
    }

    .form-card__title {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--green-dark);
        margin: 0 0 20px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .form-card__title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .form-row.full {
        grid-template-columns: 1fr;
    }

    @media (max-width: 640px) {
        .form-row {
            grid-template-columns: 1fr;
        }

        .form-card {
            padding: 20px 16px;
        }

        .form-wrapper {
            padding: 24px 12px 48px;
            margin-top: 60px;
        }
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .form-group label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-muted);
        letter-spacing: 0.01em;
    }

    .form-group label .required {
        color: var(--red);
        margin-left: 2px;
    }

    .form-control {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--border-md);
        border-radius: var(--radius-sm);
        font-size: 0.88rem;
        color: var(--text);
        background: var(--surface);
        transition: border-color 0.15s, box-shadow 0.15s;
        outline: none;
        font-family: inherit;
    }

    .form-control:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px var(--green-ring);
    }

    textarea.form-control {
        resize: vertical;
        min-height: 100px;
        line-height: 1.55;
    }

    .field-hint {
        font-size: 0.75rem;
        color: var(--text-hint);
        margin-top: 2px;
    }

    .btn-cancel,
    .btn-submit {
        padding: 11px 28px;
        border-radius: var(--radius-md);
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .btn-cancel {
        background: var(--surface);
        border: 1px solid var(--border-md);
        color: var(--text-muted);
    }

    .btn-cancel:hover {
        background: var(--surface-alt);
        color: var(--text);
    }

    .btn-submit {
        background: var(--green-dark);
        color: #fff;
        border: none;
        box-shadow: 0 2px 8px rgba(15, 110, 86, 0.30);
    }

    .btn-submit:hover {
        background: var(--green);
        box-shadow: 0 6px 16px rgba(15, 110, 86, 0.38);
        transform: translateY(-1px);
    }

    .alerte {
        margin-top: 14px;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        min-height: 22px;
    }

    .alerte.success {
        color: var(--green-dark);
    }

    .alerte.error {
        color: var(--red);
    }

    .localisation-row {
        display: grid;
        grid-template-columns: 1fr 0.7fr 0.7fr auto auto;
        gap: 10px;
        align-items: center;
        margin-bottom: 12px;
        background: var(--surface-alt);
        padding: 10px;
        border-radius: var(--radius-sm);
    }

    .localisation-row .btn-map {
        background: var(--green-light);
        border: 1px solid var(--green);
        color: var(--green-dark);
        border-radius: var(--radius-sm);
        padding: 6px 10px;
        cursor: pointer;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .btn-add-loc {
        background: var(--surface);
        border: 1px dashed var(--green);
        color: var(--green-dark);
        border-radius: var(--radius-sm);
        padding: 8px 16px;
        cursor: pointer;
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .btn-remove-loc {
        background: none;
        border: none;
        color: var(--red);
        font-size: 1.2rem;
        cursor: pointer;
    }

    .map-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }

    .map-modal.active {
        display: flex;
    }

    .map-modal-content {
        background: white;
        border-radius: var(--radius-lg);
        padding: 20px;
        width: 600px;
        max-width: 90%;
        position: relative;
    }

    #localisationMap {
        height: 400px;
    }

    .map-modal .btn-close-map {
        position: absolute;
        top: 10px;
        right: 16px;
        background: none;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
    }

    .search-box {
        display: flex;
        gap: 6px;
        margin-bottom: 10px;
        position: relative;
    }

    .search-box input {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid var(--border-md);
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
    }

    .search-box button {
        background: var(--green-dark);
        color: #fff;
        border: none;
        border-radius: var(--radius-sm);
        padding: 8px 12px;
        cursor: pointer;
    }

    #searchSuggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 180px;
        overflow-y: auto;
        display: none;
        z-index: 10;
    }

    .suggestion-item {
        padding: 8px 10px;
        cursor: pointer;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border);
    }

    .suggestion-item:hover {
        background: var(--green-light);
    }

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .file-input-wrapper {
        position: relative;
        overflow: hidden;
        display: inline-block;
        cursor: pointer;
    }

    .file-input-wrapper input[type="file"] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .file-input-wrapper .btn-file {
        background: var(--surface);
        border: 1px solid var(--border-md);
        color: var(--text);
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        transition: background 0.2s;
    }

    .file-input-wrapper:hover .btn-file {
        background: var(--surface-alt);
    }