/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body:not(.index-page) .navbar {
    background-color: #2A3C5E;
}

body.index-page {
    min-height: 100vh;
}

.index-page .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.index-page, 
.second-level {
    background-image: url('images/fond-texture.png');
    background-size: cover; /* ou 'auto' si tu veux répéter */
    background-repeat: repeat;
    background-attachment: fixed; /* effet de défilement "parallaxe" doux */
    background-color: #FEFEE2; /* fallback pour chargement lent */
}

.content h1 {
    font-family: 'Work Sans', serif;
    font-weight: 400;
    font-size: 80px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.content h2 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 1px;
    font-size: 40px;
    color: #1c2b3a;
}

.content p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
}

/* Conteneur principal */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar (hors page d'accueil) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #2A3C5E;
    flex-wrap: wrap;
}

.navbar .contact-button {
    background-image: url('images/fond-texture.png');
    border-radius: 40px;
    box-shadow: -3px 4px 12px rgba(50, 80, 120, 0.8);
    color: #2A3C5E;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar .contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.second-level nav.navbar {
    background-color: #2A3C5E;
}

.second-level nav.navbar a {
    color: #FEFEE2;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 20px;
    text-decoration: none;
    padding: 5px 10px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 14px;
    align-items: center;
    margin-left: 0;
    padding-left: 0;
}

body.second-level .sidebar {
    display: none;
}

.contact-button {
    padding: 5px 30px;
    background-image: url('images/fond-texture.png');
    border: none;
    border-radius: 999px;
    box-shadow: -3px 4px 12px rgba(50, 80, 120, 0.8) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    margin: 20px auto;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.contact-button a {
    color: #2A3C5E !important;
    text-decoration: none;
    font-weight: 500 !important;
    font-size: 18px;
    font-family: 'Work Sans', sans-serif;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Sidebar : toujours présente, mais déplacée hors écran */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    border-right: 1px solid #ddd;
    backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.35);
    background-color: #2A3C5E;
    z-index: 100;
}

body.second-level .sidebar {
    display: none;
}

/* Sidebar activée (mobile) */
.sidebar.active {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Styles uniformes pour la sidebar ul (appliqués à toutes les pages) */
.sidebar ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 80px;
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.sidebar li {
    list-style: none;
    padding: 10px 0;
}

.sidebar a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #FEFEE2;
    font-weight: 300;
    font-family: "Work Sans", sans-serif;
    font-size: 20px;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.sidebar a::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #FEFEE2;
    font-size: 16px;
}

.sidebar a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Contenu principal */
.content {
    text-align: center;
    padding: 20px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.index-page .content {
    grid-area: content;
    padding: 40px;
    margin-right: auto;
    box-sizing: border-box;
}

/* Mise en page des infos */
h1 {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 40px;
}

p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.profile-picture {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.profile-picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2A3C5E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 30px;
    font-weight: bold;
    color: gray;
    margin-bottom: 40px;
}

.links {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0 20px;
}

.links a {
    font-family: "Work sans", serif;
}

.linkedin, .cv-button {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    border: 1px solid black;
    border-radius: 15px;
    text-decoration: none;
    color: black;
}

.linkedin-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin: 5px;
    transition: background 0.3s ease;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.linkedin-icon:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cv-button {
    padding: 6px 18px;
    border: 1.5px solid #2A3C5E;
    border-radius: 20px;
    background-color: transparent;
    color: #2A3C5E;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cv-button:hover {
    background-color: #2A3C5E;
    color: #FEFEE2;
    transform: translateY(-3px);
}

/* MODALE */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Ligne séparatrice */
.separator {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 0px auto;
    width: 100%;
    max-width: 600px;
}

/* Derniers articles */
.latest-articles {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px 10px;
}

.latest-articles h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0 30px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    justify-self: stretch;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    background: gray;
    color: white;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    box-sizing: border-box;
}

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

.article-title {
    padding: 15px;
    font-size: 1em;
    font-weight: 400;
    font-family: 'Roboto Serif', serif;
    text-align: left;
}

/* Dossiers */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: gray;
    text-align: left;
}

.breadcrumb a {
    color: gray;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.section-dossier {
    margin-bottom: 60px;
}

.two-columns {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
}

.two-columns::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-1.5px);
    width: 3px;
    background-color: #2A3C5E;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.column {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.column h3 {
    text-align: center;
    font-family: Work Sans;
    font-weight: 500;
    font-size: 30px;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.card-grid .article-card {
    max-width: 360px;
}
.article-card a {
  color: inherit;
  text-decoration: none;
}

/* Centrer uniquement les grid qui ont une seule carte */
.card-grid:has(> .article-card:only-child) {
    justify-content: center;
}

body.second-level .navbar a {
    position: relative;
    display: inline-block;
    padding-right: 20px;
    transition: all 0.3s ease;
}

body.second-level .navbar a::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    color: #FEFEE2;
}

body.second-level .navbar a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Style pour <details> et <summary> */
details.hidden-content {
    margin-top: 20px;
}

summary {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #2A3C5E;
    background-color: #FEFEE2;
    border-radius: 999px;
    padding: 4px 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    margin: 20px auto;
    text-decoration: none;
    font-family: Work Sans;
    font-size: 14px;
    font-weight: 500;
}

summary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

summary::marker {
    content: none;
}

.pages h2 {
    text-align: left;
    margin-bottom: 30px;
    color: #2A3C5E;
    font-size: 30px;
    font-family: Work Sans;
    font-weight: 400;
}

.navbar a.active {
    position: relative;
}

.navbar a.active::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FEFEE2;
    margin-right: 8px;
    transform: translateY(-1px);
}

body.second-level .navbar {
    position: fixed;
    top: 0;
    left: 0;
    flex-wrap: nowrap;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
    z-index: 999;
    background-color: #2A3C5E;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    padding: 30px 20px;
    margin-bottom: 30px !important;
    height: 50px;
}

body.second-level .content {
    margin-top: 70px;
}

/* Taille réduite pour Contact / LinkedIn / CV en desktop uniquement sur les pages de second niveau */
body.second-level .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    justify-content: space-between;
}

body.second-level .navbar-right .cv-button {
    display: inline-block;
    padding: 6px 18px;
    border: 1.5px solid #FEFEE2;
    border-radius: 20px;
    background-color: transparent;
    color: #FEFEE2;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.second-level .navbar-right .cv-button:hover {
    background-color: #FEFEE2;
    color: #2A3C5E;
    transform: translateY(-3px);
}

/* Bouton Contact */
body.second-level .contact-button {
    padding: 5px 20px;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    background-image: url('images/fond-texture.png');
    border-radius: 30px;
    box-shadow: -3px 4px 12px rgba(50, 80, 120, 0.8);
    border: none;
    cursor: pointer;
}

body.second-level .contact-button a {
    color: #2A3C5E;
    text-decoration: none;
    font-size: 16px !important;
}

body.second-level .contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Logo LinkedIn */
body.second-level .linkedin-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    transition: background 0.3s ease;
}

body.second-level .linkedin-icon:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
}

/* Bouton CV cohérent avec page d’accueil */
.mobile-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
}

.mobile-header {
    display: none;
}

.navbar a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding-right: 20px;
}

.navbar a::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 16px;
    color: #FEFEE2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

.navbar-right a::after {
    content: none !important;
}

.navbar-right a:hover::after {
    content: none !important;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

body.second-level .navbar-right a.cv-button {
    display: inline-block;
}

body.second-level .navbar-right a.linkedin-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.highlighted-link {
    background-color: #fff3b0;
    color: #2A3C5E;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 0 0 0 #d8c672;
}

.highlighted-link:hover {
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.site-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    background: transparent;
    padding: 20px 10px 25px;
    font-family: 'Work Sans', sans-serif;
    border-top: 1px solid #ccc;
}

body.index-page .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}



.site-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 400;
}

.site-footer a:hover {
    text-decoration: underline;
    color: #2A3C5E;
}



















/* RESPONSIVE RESTRUCTURÉ ET OPTIMISÉ */

/* Point de rupture 1260px : passage layout colonne + burger */
@media (max-width: 1260px) {
    .second-level .burger-menu {
        display: block !important;
    }

    .container,
    .index-page .container {
        flex-direction: column;
        display: flex;
    }

    .index-page .burger-menu,
    .second-level .burger-menu {
        display: block !important;
    }

    .navbar {
        display: none !important;
    }

    .second-level .sidebar {
        display: none;
    }

    .second-level .sidebar.active {
        display: flex;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        background-color: #2A3C5E;
        height: 60px;
        z-index: 2000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .burger-menu {
        display: block;
        font-size: 40px;
        background: none;
        border: none;
        color: #FEFEE2;
        cursor: pointer;
        height: 100%;
        width: 60px;
        margin-right: 20px;
        padding: 0;
    }

    .mobile-header .cv-button {
        display: inline-block;
        padding: 6px 18px;
        border: 1.5px solid #FEFEE2;
        border-radius: 20px;
        background-color: transparent;
        color: #FEFEE2;
        font-family: 'Work Sans', sans-serif;
        font-weight: 500;
        font-size: 16px;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }

    .mobile-header .cv-button:hover {
        background-color: #FEFEE2;
        color: #2A3C5E;
        transform: translateY(-3px);
    }

    .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px; /* Choix final */
    background-color: #2A3C5E;
    padding: 20px; /* Choix final */
    box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
}

    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar a::after,
    .sidebar a:hover::after {
        content: none !important;
    }

    .sidebar a.active::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #FEFEE2;
        margin-right: 8px;
        transform: translateY(-1px);
    }

    .index-page .sidebar.active {
        display: flex;
    }

    .latest-articles {
        max-width: 960px;
        margin: 10px 0;
        padding: 20px;
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        justify-items: center;
    }

    .card-grid .article-card {
        max-width: 90%;
        width: 100%;
    }

    .two-columns {
        flex-direction: column;
        gap: 40px;
    }

    .two-columns::before {
        display: none;
    }

    .column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 24px;
    }

    .content {
        margin-top: 70px;
    }

    .pages h2 {
        margin-top: 15px;
        font-size: 30px;
    }

    .breadcrumb {
        display: none;
    }

    body.second-level .column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.second-level .card-grid {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

   .ideologie-page h3.titre-articles {
    display: none;
  }

  body.second-level h3 {
    margin-bottom: 40px;
  }
}

/* Correction centrage cards sur pages second-level (desktop) */
body.second-level .column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.second-level .card-grid {
    justify-content: center;
}


/* 2 colonnes entre 1260px et 1001px */
@media (max-width: 1260px) and (min-width: 1001px) {
    body.index-page .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* INTERMÉDIAIRE OPTIMISÉ ENTRE 1260px et 800px */
@media (max-width: 1260px) and (min-width: 801px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 30px;
        justify-content: center;
    }

    .card-grid .article-card {
        width: 100%;
        max-width: none;
    }

    body.second-level .card-grid {
        margin: 0 auto;
        justify-content: center;
    }
}

/* INTERMÉDIAIRE : zone flottante 1000px-801px */
@media (max-width: 1000px) and (min-width: 801px) {
    .index-page .content h1 {
        font-size: 48px;
        line-height: 1.2;
        max-width: 90%;
        margin: 0 auto 20px;
    }

    .index-page .profile-picture img {
        width: 120px;
        height: 120px;
    }

    .index-page .subtitle {
        font-size: 26px;
    }

    .mobile-header {
        height: 60px;
    }

    .content {
        margin-top: 80px;
    }

    body.index-page .card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-card {
        max-width: 92vw;
    }

    .article-title {
        font-size: 1.1em;
    }
}

/* Passage à 1 colonne dès 1000px */
@media (max-width: 1000px) {
    body.index-page .card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body.index-page .article-card {
        width: 92vw;
        max-width: 450px;
    }

    .article-title {
        padding: 12px;
        font-size: 1em;
    }
}

/* Ajustements à 910px (suppression des règles redondantes pour .card-grid) */
@media (max-width: 910px) {
    .index-page .content h1 {
        font-size: 40px;
    }

    .index-page .subtitle {
        font-size: 28px;
    }
}

/* Très petit écran / smartphone : max 528px */
@media (max-width: 528px) {
    .index-page .content h1 {
        font-size: 45px;
    }

    .index-page .content h2 {
        font-size: 25px;
    }

    .site-footer {
        font-size: 12px;
        line-height: 1.4;
        padding: 15px 10px;
    }

    .site-footer a {
        font-size: 12px;
    }

    body.index-page .article-card {
        width: 95vw;
        max-width: 400px;
    }

    .article-title {
        font-size: 0.95em;
        padding: 10px;
    }

    .latest-articles {
        padding: 15px 5px;
    }
}

/* Ajustement typographique navbar entre 1354px et 1260px */
@media (max-width: 1354px) and (min-width: 1260px) {
    body.second-level .navbar a {
        font-size: 16px;
    }

    body.second-level .navbar a::after {
        font-size: 14px;
    }
}

/* Ajustements sidebar pour mobile */
 


/* Sidebar pour desktop */
@media (min-width: 1261px) {
    .second-level .sidebar.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: #2A3C5E;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
}

/* Correction centrage des cards sur pages second level (mobile) */



/* 1 colonne pour écrans < 800px */
@media (max-width: 800px) {
    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }

    .card-grid .article-card {
        width: 90vw;
        max-width: 400px;
    }

    .index-page .articles-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .index-page .articles-container .article-card {
    width: 92vw;
    max-width: 450px;
    
  }

  .index-page .article-title {
    font-size: 1em;
    padding: 12px;
  }

  body.second-level .card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 30px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  body.second-level .card-grid .article-card {
    width: 92vw;
    max-width: 400px;
    margin: 0 auto;
  }

  body.second-level .article-title {
    font-size: 1em;
    padding: 12px;
  }




}

/* ========== ARTICLES-CONTAINER — PAGE INDEX UNIQUEMENT ========== */



/* 2 colonnes entre 1260px et 801px */
@media (max-width: 1260px) and (min-width: 801px) {

  .index-page .articles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    max-width: 960px;
    margin: 0 auto;
  }

  .index-page .articles-container .article-card {
    width: calc(50% - 20px);
    max-width: 400px;
    margin-bottom: 30px;
  }
}



/* 1 colonne < 800px */
