/* =====================================================
   STYLE GLOBAL DU SITE CNS
   ===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    scroll-behavior: smooth;
}
/* =====================================================

   EN-TÊTE COMMUN DU SITE

   ===================================================== */

.site-header {

    background: #ffffff;

    padding: 18px 7%;

    display: flex;

    align-items: center;

    justify-content: flex-start;

}

/* Lien englobant le logo et le nom du CNS */

.brand-link {

    display: flex;

    align-items: center;

    gap: 15px;

    width: fit-content;

    color: inherit;

    text-decoration: none;

}

/* Suppression du soulignement dans tous les états */

.brand-link:link,

.brand-link:visited,

.brand-link:hover,

.brand-link:active,

.brand-link:focus {

    color: inherit;

    text-decoration: none;

}

/* Logo */

.brand-link img {

    width: 75px;

    height: 75px;

    object-fit: contain;

    flex-shrink: 0;

}

/* Bloc texte */

.brand-link > div {

    display: flex;

    flex-direction: column;

    justify-content: center;

}

/* Sigle CNS */

.brand-link h1 {

    color: #8b1022;

    font-size: 42px;

    line-height: 1;

    margin: 0 0 6px;

}

/* Nom complet */

.brand-link p {

    color: #005b38;

    font-size: 16px;

    font-weight: bold;

    line-height: 1.2;

    margin: 0;

}

/* =====================================================

   MENU PRINCIPAL

   ===================================================== */

.main-nav {

    background: #005b38;

    display: flex;

    align-items: stretch;

    padding: 0 7%;

}

.main-nav a {

    color: #ffffff;

    text-decoration: none;

    font-weight: bold;

    padding: 17px 22px;

    margin: 0;

    display: flex;

    align-items: center;

}

.main-nav a:hover,

.main-nav a.active {

    background: #8b1022;

    color: #ffffff;

    text-decoration: none;

}

/* =====================================================
   PAGE D'ACCUEIL - HERO + CARROUSEL
   ===================================================== */

.home-hero {
    min-height: 430px;
    background: linear-gradient(90deg, #ffffff 0%, #eef7f3 42%, #cfe8de 100%);
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    padding: 45px 8% 80px;
    overflow: hidden;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    color: #111;
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.home-hero p {
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-btn {
    display: inline-block;
    background: #8b1022;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Carrousel */

.home-hero-slider {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: transparent;
}

.home-hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.home-hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.home-hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boutons carrousel */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 91, 56, 0.85);
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.slider-btn:hover {
    background: #8b1022;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

/* Points du carrousel */

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: #8b1022;
}

/* =====================================================
   CARTES D'ACCUEIL
   ===================================================== */

.home-cards {
    width: 84%;
    margin: -45px auto 35px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.home-card {
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: #222;
    border-right: 1px solid #ddd;
    transition: 0.3s ease;
}

.home-card:last-child {
    border-right: none;
}

.home-card:hover {
    background: #f7fbf9;
    transform: translateY(-4px);
}

.home-card h3 {
    color: #005b38;
    margin-bottom: 12px;
    font-size: 17px;
}

.home-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* =====================================================
   SECTION À LA UNE
   ===================================================== */

.featured-docs,
.compact-featured {
    padding: 28px 8% 25px;
    margin: 0;
    background: #faf8f3;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.featured-header h2 {
    color: #111;
    font-size: 26px;
    text-transform: uppercase;
    border-bottom: 4px solid #8b1022;
    padding-bottom: 8px;
    margin: 0;
}

.featured-header a {
    color: #8b1022;
    font-weight: bold;
    text-decoration: none;
}

.featured-grid,
.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.featured-card,
.compact-card {
    min-height: 125px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.featured-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.compact-card img {
    width: 75px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.16);
    flex-shrink: 0;
}

.compact-card h3 {
    color: #005b38;
    font-size: 15px;
    line-height: 1.35;
    margin: 5px 0 14px;
}

.download-link {
    display: inline-block;
    border: 1px solid #8b1022;
    color: #8b1022;
    padding: 7px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
}

.compact-card:hover .download-link {
    background: #8b1022;
    color: white;
}

.badge-new {
    background: #74c365;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 20px;
}

/* =====================================================
   PAGE À PROPOS
   ===================================================== */

.page-banner {
    background: linear-gradient(90deg, #005b38, #00784a);
    color: white;
    padding: 70px 8%;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
}

.about-section {
    padding: 50px 8%;
}

.about-section h2 {
    color: #005b38;
    font-size: 30px;
    margin-bottom: 25px;
    border-left: 6px solid #8b1022;
    padding-left: 15px;
}

.about-section p {
    font-size: 17px;
    line-height: 1.7;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.mission-card {
    background: white;
    border-top: 5px solid #8b1022;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 10px;
}

.mission-card h3 {
    color: #005b38;
}

/* =====================================================
   PAGE PUBLICATIONS
   ===================================================== */

.publications-hero {
    background: linear-gradient(90deg, #005b38, #00784a);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.publications-hero h1 {
    font-size: 42px;
}

.publications-hero p {
    font-size: 18px;
    max-width: 750px;
    margin: auto;
    line-height: 1.6;
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 18px;
    padding: 35px 7%;
    background: #f7f7f3;
}

.filters input,
.filters select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.reset-btn {
    background: #005b38;
    color: white;
    border: none;
    padding: 0 22px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}

.institutions-section {
    padding: 35px 7% 70px;
    background: white;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.institution-card-link {
    text-decoration: none;
    color: inherit;
}

.institution-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    min-height: 210px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.09);
    border: 1px solid #eee;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.institution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    border-color: #005b38;
    background: #f7fbf9;
}

.institution-logo {
    width: 68px;
    height: 68px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institution-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.institution-info h3 {
    color: #005b38;
    font-size: 20px;
}

.institution-info p {
    font-size: 13px;
    line-height: 1.45;
}

/* =====================================================
   PAGE DÉTAIL STRUCTURE / RAPPORTS PDF
   ===================================================== */

.structure-hero {
    background: linear-gradient(90deg, #005b38, #00784a);
    color: white;
    padding: 55px 7%;
}

.structure-hero-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.structure-hero-content img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 50%;
}

.structure-documents {
    padding: 45px 7%;
}

.rubrique-block {
    margin-bottom: 45px;
}

.rubrique-block h2 {
    color: #005b38;
    border-left: 6px solid #8b1022;
    padding-left: 15px;
}

.reports-grid,
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.report-card-download {
    display: flex;
    gap: 18px;
    background: #f7f7f3;
    border-left: 5px solid #8b1022;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.report-card-download:hover {
    transform: translateY(-5px);
    background: white;
}

.pdf-icon-large {
    background: #8b1022;
    color: white;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: bold;
}

/* =====================================================
   PAGE ACTUALITÉS
   ===================================================== */
/* =====================================================
   PAGE ACTUALITÉS
   ===================================================== */

.news-hero {
    background: linear-gradient(90deg, #005b38, #00784a);
    color: white;
    text-align: center;
    padding: 25px 20px;
}

.news-hero h1 {
    font-size: 42px;
    margin: 0 0 15px;
}

.news-hero p {
    max-width: 850px;
    margin: auto;
    font-size: 17px;
    line-height: 1.6;
}

.actualites-page {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 35px;
    padding: 45px 8%;
    background: #fff;
}

.section-heading h2 {
    color: #111;
    font-size: 26px;
    text-transform: uppercase;
    border-bottom: 4px solid #8b1022;
    display: inline-block;
    padding-bottom: 8px;
    margin: 0 0 25px;
}

.actualite-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    margin-bottom: 40px;
}

.actualite-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.actualite-featured-content {
    padding: 32px;
}

.actualite-featured-content h2 {
    color: #005b38;
    font-size: 28px;
    line-height: 1.3;
    margin: 14px 0;
}

.actualite-featured-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.news-badge {
    display: inline-block;
    background: #f4dce1;
    color: #8b1022;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.actualite-meta,
.actualite-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    font-size: 13px;
}

.actualite-meta a,
.actualite-card-footer a {
    color: #8b1022;
    font-weight: bold;
    text-decoration: none;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.actualite-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.actualite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.actualite-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.actualite-card-body {
    padding: 20px;
}

.actualite-card-body h3 {
    color: #005b38;
    font-size: 19px;
    line-height: 1.35;
    margin: 12px 0;
}

.actualite-card-body p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.actualites-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #faf8f3;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.sidebar-box h3 {
    color: #005b38;
    font-size: 20px;
    border-left: 5px solid #8b1022;
    padding-left: 12px;
    margin-top: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.newsletter-form button {
    background: #005b38;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #8b1022;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #005b38;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* =====================================================
   PAGE DÉTAIL ACTUALITÉ
   ===================================================== */

.detail-news-hero {
    background: linear-gradient(90deg, #005b38, #00784a);
    color: white;
    text-align: center;
    padding: 70px 12%;
}

.detail-news-hero h1 {
    font-size: 40px;
    line-height: 1.25;
    margin: 18px auto;
    max-width: 950px;
}

.detail-date {
    font-size: 15px;
    opacity: 0.9;
}

.actualite-detail-page {
    width: 84%;
    max-width: 1200px;
    margin: 45px auto 60px;
    background: #fff;
}

.actualite-detail-main {
    background: white;
}

.detail-main-image img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.detail-content {
    margin: 35px 0;
    font-size: 17px;
    line-height: 1.85;
    color: #333;
}

.detail-content p {
    margin-bottom: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.back-link {
    margin-top: 35px;
}

.back-link a {
    color: #8b1022;
    font-weight: bold;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}



/* Responsive détail actualité */

@media (max-width:900px){

    .actualite-detail-page{
        width:92%;
        margin:35px auto;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .detail-news-hero h1{
        font-size:30px;
    }

}

/* =====================================================
   PAGE CONTACT
   ===================================================== */

.contact-hero {
    background: linear-gradient(90deg, #005b38, #00784a);
    color: white;
    text-align: center;
    padding: 25px 20px;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 35px;
    padding: 50px 7%;
}

.contact-card,
.contact-form-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #005b38;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.contact-btn {
    background: #005b38;
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 7px;
    font-weight: bold;
}
.contact-alert {
    padding: 14px 18px;
    border-radius: 7px;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-alert.success {
    background: #d7f5df;
    color: #145c2e;
    border-left: 5px solid #28a745;
}

.contact-alert.error {
    background: #fde1e1;
    color: #8b1022;
    border-left: 5px solid #8b1022;
}
/* =====================================================
   FOOTER
   ===================================================== */

.simple-footer {
    background: linear-gradient(90deg, #7b0e1c, #8b1022);
    color: white;
    margin-top: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1.2fr 1.3fr;
    gap: 35px;
    padding: 25px 8%;
}

.footer-col {
    border-right: 1px solid rgba(255,255,255,0.15);
    padding-right: 25px;
}

.footer-col:last-child {
    border-right: none;
}

.footer-col h3 {
    text-transform: uppercase;
    font-size: 18px;
    color: white;
    text-align: left;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    line-height: 1.7;
    color: #f4f4f4;
    text-align: left;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    background: white;
    color: #8b1022;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding: 14px;
    background: rgba(0,0,0,0.12);
    font-size: 13px;
}

/* =====================================================
   BOUTON RETOUR EN HAUT
   ===================================================== */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background: #005b38;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.back-to-top:hover {
    background: #8b1022;
}

/* =====================================================
   EXPLORATEUR DES PUBLICATIONS PAR STRUCTURE
   ===================================================== */

.compact-structure-hero {
    padding: 35px 7%;
}

.document-browser {
    padding: 35px 7% 55px;
    background: #ffffff;
}

.document-browser-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.back-structures {
    color: #005b38;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.document-browser-top input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.document-browser-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
}

.folder-panel {
    background: #faf8f3;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.folder-panel h3 {
    color: #005b38;
    margin-top: 0;
    margin-bottom: 18px;
    border-left: 5px solid #8b1022;
    padding-left: 12px;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-item {
    width: 100%;
    border: none;
    background: white;
    color: #005b38;
    padding: 13px 14px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

.folder-item:hover,
.folder-item.active {
    background: #005b38;
    color: white;
}

.folder-item strong {
    background: #8b1022;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
}

.folder-item em {
    font-size: 11px;
    color: inherit;
    opacity: 0.75;
    font-style: normal;
}

.files-panel {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
    min-height: 350px;
}

.current-breadcrumb {
    background: #faf8f3;
    border-left: 5px solid #8b1022;
    color: #555;
    font-weight: bold;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.documents-folder {
    display: none;
}

.documents-folder.active {
    display: block;
}

.empty-message {
    background: #faf8f3;
    border-left: 5px solid #8b1022;
    padding: 18px;
    border-radius: 8px;
    color: #555;
    font-weight: bold;
}

/* Responsive explorateur */

@media (max-width: 1000px) {
    .document-browser-layout {
        grid-template-columns: 1fr;
    }

    .document-browser-top {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1200px) {
    .institutions-grid,
    .featured-grid,
    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .home-hero,
    .contact-section,
    .news-layout {
        grid-template-columns: 1fr;
    }

    .home-cards,
    .mission-grid,
    .reports-grid,
    .search-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 650px) {
    .site-header,
    .main-nav,
    nav {
        flex-direction: column;
        align-items: stretch;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-col {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding-bottom: 20px;
    }
}
@media (max-width: 1000px) {
    .actualites-page {
        grid-template-columns: 1fr;
    }

    .actualite-featured {
        grid-template-columns: 1fr;
    }

    .actualites-grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 700px) {

    .site-header {

        padding: 15px 5%;

    }

    .brand-link img {

        width: 60px;

        height: 60px;

    }

    .brand-link h1 {

        font-size: 32px;

    }

    .brand-link p {

        font-size: 14px;

    }

    .main-nav {

        flex-direction: column;

        padding: 0;

    }

    .main-nav a {

        width: 100%;

        padding: 14px 7%;

    }

}



/* =====================================================
   ARBORESCENCE DES PUBLICATIONS PAR STRUCTURE
   ===================================================== */

.folder-block {
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.folder-toggle {
    width: 100%;
    border: none;
    background: #f7f7f3;
    color: #005b38;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-toggle:hover,
.folder-toggle.active {
    background: #005b38;
    color: white;
}

.folder-toggle span {
    background: #8b1022;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.folder-content {
    display: none;
    padding: 22px;
    background: white;
}

.folder-content.open {
    display: block;
}

.folder-breadcrumb {
    background: #faf8f3;
    color: #555;
    padding: 12px 16px;
    border-left: 5px solid #8b1022;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
}

.folder-content .folder-block {
    margin-left: 20px;
    margin-top: 15px;
}

.pdf-search {
    margin-bottom: 30px;
}

.pdf-search input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.search-result-title {
    margin-bottom: 25px;
}

.search-result-title h2 {
    color: #005b38;
    border-left: 6px solid #8b1022;
    padding-left: 15px;
}

.search-result-title p {
    color: #555;
    font-weight: bold;
}

/* =====================================================
   LISTE COMPACTE DES DOCUMENTS PDF
   ===================================================== */

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-row {
    display: grid;
    grid-template-columns: 55px 1fr 140px;
    align-items: center;
    gap: 15px;
    background: #faf8f3;
    border-left: 5px solid #8b1022;
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

.document-row:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.document-icon {
    background: #8b1022;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 7px;
    border-radius: 6px;
    text-align: center;
}

.document-title {
    color: #005b38;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.4;
}

.document-action {
    color: #8b1022;
    font-weight: bold;
    font-size: 13px;
    text-align: right;
}

/* Réduction de l’espace dans le panneau des fichiers */
.files-panel {
    padding: 18px;
}

.current-breadcrumb {
    margin-bottom: 16px;
}

/* Responsive liste PDF */
@media (max-width: 700px) {
    .document-row {
        grid-template-columns: 45px 1fr;
    }

    .document-action {
        grid-column: 2;
        text-align: left;
    }
}