@layer reset, base, page, header, footer;

@layer page {
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
}

p, li {
    text-align: justify;
}

header {
    display: flex;
    flex-wrap: wrap;
    height: auto;
}

.logo-container {
    width: 15%;
    background-color: #0b7a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.logo-container img {
    max-width: 80%;
    height: auto;
}

.banniere-container {
    flex: 1;
    background: url('../img/banniere1.webp') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
}

.titre-institut {
    text-align: center;
    font-size: ;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 6px #000;
    margin-top: 40px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.titre-institut:hover {
    transform: scale(1.05);
    text-shadow: 4px 4px 8px #000;
}

nav {
    width: 100%;
    background-color: #0b7a3e;
    padding: 10px 30px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    background-color: #cce0ff;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    padding: 8px 14px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #004080;
    color: white;
}

nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
    flex-direction: column;
    width: 70%;
    font-size: 0.8em;
    z-index: 999;
}

nav ul li:hover .submenu,
nav ul li:focus-within .submenu {
    display: flex;
}

nav ul li .submenu li a {
    color: #003366;
    background-color: #cce0ff;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
    border-radius: 30px;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
    margin: 0 0;
    text-align: center;
}

nav ul li .submenu li a:hover {
    background-color: #004080;
    color: white;
}

a:visited {
    color: blue;
}

footer {
    background-color: #0b7a3e;
    color: white;
    text-align: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

a.en-savoir-plus {
    color: blue;
    text-decoration: none;
    font-weight: normal;
}

a.en-savoir-plus:hover {
    color: darkblue;
    font-weight: bold;
}

/* ======= Responsive header / nav ======= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .logo-container,
    .banniere-container {
        width: 100%;
        max-width: 100%;
    }

    .banniere-container {
        background-image: url('../img/banniereR.webp') !important;
    }

    nav {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 100%;
    }

    nav ul li {
        width: 90%;
        max-width: 250px;
    }

    nav ul li a {
        padding: 10px 14px;
        text-align: center;
    }

    nav ul li .submenu {
        position: static;
        display: none;
        background-color: transparent;
        width: 100%;
        max-width: 250px;
        font-size: 1em;
    }

    nav ul li.active .submenu {
        display: flex;
    }

    nav ul li .submenu li a {
        font-size: 0.9em;
        padding: 8px 12px;
        background-color: #cce0ff;
        border-radius: 30px;
        margin: 0 0;
        text-align: center;
    }

    #bn-section,
    #alliance-section,
    #seri-section {
        width: 100% !important;
    }
}

/* ======== SECTION À LA UNE – COP30 (mise en exergue sans fond vert) ======== */

.featured-article {
    width: 100%;
     margin: 5px auto 0 auto !important;  /* distance beaucoup plus courte */
    padding-top: 0 !important;
    background: none;           /* pas de fond vert */
    box-shadow: none;           /* pas d’ombre de “bloc” */
	margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.featured-wrapper {
    width: 100%;
    margin: 0;
    padding: 0 2px; /* même marge horizontale que le reste du site */
    text-align: left;
}


/* "À LA UNE" : très grand + clignotant */
.featured-badge {
    display: inline-block;
    font-size: 2.2em;
    font-weight: 900;
    background: transparent;
    color: #000;
    padding: 0;
    margin-bottom: 10px;
}

@keyframes featured-blinking {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.25; }
}

.featured-blink {
    animation: featured-blinking 1s infinite;
}




/* Titre de l’article */
.featured-title {
    font-size: 1.9em;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 0.9;
}

.featured-title-red {
    color: #8b0000 !important; /* rouge foncé profond */
}

/* Intro de l’article à la une */
.featured-intro {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1;
    color: #333;
    text-align: left;
}

/* Bouton "Lire l’analyse complète" */
.featured-button {
    display: inline-block;
    background: #ffffff;
    color: #0b7a3e;
    padding: 10px 22px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid #0b7a3e;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.featured-button:hover {
    background: #0b7a3e;
    color: #ffffff;
    transform: scale(1.03);
}

/* Classes utilitaires si tu les utilises dans ton HTML */
.featured-no-bg {
    background: none !important;
    box-shadow: none !important;
}

.featured-left {
    text-align: left !important;
}

.featured-left .featured-intro {
    text-align: left !important;
}

.featured-left .featured-button {
    margin-left: 0 !important;
}

/* MOBILE – adaptation de la taille du titre / intro */
@media (max-width: 768px) {
  .featured-title {
      font-size: 1.5em;
  }
  .featured-intro {
      font-size: 1em;
  }
}
.featured-badge {
    margin-bottom: 2px !important;   /* SUPER serré */
}

.featured-title {
    margin-top: 0 !important;
    margin-bottom: 6px !important;   /* réduit aussi l’espace avec l’intro */
}
.featured-button {
    margin-bottom: 2px !important;  /* collé au max */
}

.featured-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.featured-article {
    margin-bottom: 0 !important;   /* réduit au minimum avant Actualités */
    padding-bottom: 0 !important;
}
/* ==== Ultra compact spacing COP30 ==== */

/* Section complète */
.featured-article {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Wrapper sans aucun padding inutiles */
.featured-wrapper {
    margin: 0 !important;
    padding: 0 15px !important; /* aligné parfaitement avec le texte de la page */
}

/* À LA UNE — collé au max */
.featured-badge {
    margin: 0 0 1px 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Titre — collé sous À LA UNE */
.featured-title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

/* Intro — très serrée */
.featured-intro {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}

/* Bouton Lire — collé au bas de la section */
.featured-button {
    margin: 0 0 2px 0 !important;
    padding: 6px 16px !important; /* légèrement réduit mais lisible */
    line-height: 1 !important;
}

/* Réduit l'espace entre sections suivantes (Actualités) */
section {
    margin-top: 10px !important;   /* valeur minimale lisible */
}
/* Réduire uniquement l'espace entre "Lire" et la section Actualités */
.featured-button {
    margin-bottom: 0 !important;   /* bouton collé au max */
}

.featured-wrapper {
    margin-bottom: 0 !important;   /* pas d'espace sous le bloc */
    padding-bottom: 0 !important;
}

.featured-article {
    margin-bottom: 4px !important; /* espace ultra-compact avant Actualités */
    padding-bottom: 0 !important;
}
.article picture img {
    float: left;
    margin: 0 12px 6px 0;
    max-width: 38%;
}

/* Bouton retour à l'accueil : style global */
.retour-accueil-wrapper {
    width: 100%;
    text-align: right;
    margin: 10px 0;
    margin-right: 5px; /* décalage vers la gauche */
}

.retour-accueil-btn {
    background-color: #ffffff;
    color: #0b7a3e;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #0b7a3e;
    transition: 0.2s ease;
}

.retour-accueil-btn:hover {
    background-color: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
}




/* === Responsive : bloc2 (COP) au-dessus, bloc1 dessous === */
@media (max-width: 768px) {
    .home-two-columns {
        flex-direction: column;
        gap: 10px;
    }

    .home-two-columns .col-right,
    .home-two-columns .col-left {
        width: 100% !important;
    }

    /* ordre mobile : BLOC2 en premier */
    .home-two-columns .col-right {
        order: 1;
    }

    .home-two-columns .col-left {
        order: 2;
    }
}
/* ==== HOME — layout bloc1 + bloc2 côte à côte (PC) ==== */
.home-two-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;                 /* espace horizontal réduit */
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 15px;
}

/* Colonne gauche : À la Une – plus large */
.home-two-columns .col-left {
    flex: 0 0 70%;            /* ~70% de la largeur */
}

/* Colonne droite : mini-nav COP – plus étroite */
.home-two-columns .col-right {
    flex: 0 0 30%;            /* ~30% de la largeur */
}

/* === Responsive : bloc2 au-dessus, bloc1 en dessous === */
@media (max-width: 768px) {
    .home-two-columns {
        flex-direction: column;
        gap: 10px;
    }

    .home-two-columns .col-right,
    .home-two-columns .col-left {
        width: 100% !important;
        flex: 0 0 auto;
    }

    .home-two-columns .col-right { order: 1; }
    .home-two-columns .col-left  { order: 2; }
}




/* ==== HOME — layout bloc1 + bloc2 côte à côte (PC) ==== */
.home-two-columns {
    display: flex;
    align-items: flex-start;
    gap: 4px;                  /* quasi pas de vide */
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 15px;
}

/* Colonne gauche : À la Une – bien plus large */
.home-two-columns .col-left {
    flex: 0 0 70%;             /* ~75% de la largeur */
}

/* Colonne droite : mini-nav COP – plus étroite */
.home-two-columns .col-right {
    flex: 0 0 30%;             /* ~25% de la largeur */
}

/* === Responsive : bloc2 au-dessus, bloc1 en dessous === */
@media (max-width: 768px) {
    .home-two-columns {
        flex-direction: column;
        gap: 10px;
    }

    .home-two-columns .col-right,
    .home-two-columns .col-left {
        width: 100% !important;
        flex: 0 0 auto;
    }

    .home-two-columns .col-right { order: 1; }
    .home-two-columns .col-left  { order: 2; }
}
