/* Variables CSS */
:root {
    --primary-color: #8dc6ff;
    --secondary-color: #776bff;
    --dark-bg: #181f35;
    --light-bg: #f4f4f9;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    margin: 0;
    font-family: 'Consolas', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9fa;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #0d2844;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8dc6ff;
}

.full {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25)), url(../images/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    height: 460px;
}

.entete {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    transition: height 0.8s ease, background-color 0.4s ease;
}

#logo {
    width: 64px;
    height: 64px;
}

.menu {
    border-bottom: 2px solid #8dc6ff;
    width: 50%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    color: #8dc6ff;
    font-family: Consolas;
    font-size: 16px;
    margin-left: 28%;
    height: 64px;
}

.menu_b {
    margin-right: 20px;
    cursor: pointer;
    height: 40%;
    flex: 1;
    padding: 1%;
    font-size: 120%;
    transition: all 0.3s ease;
}

.menu_b.active {
    color: #ffffff;
}

.menu_b:hover {
    cursor: pointer;
    transition: .3s;
    color: #ffffff;
    transform: scale(1.4);
}

/* === HEADER (PRÉSERVÉ À L'IDENTIQUE) === */
header {
    width: 100%;
    padding-top: 5%;
    padding-bottom: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: 'IM Fell English', serif;
    font-size: 3em;
    color: #8dc6ff;
    text-align: center;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-bottom: 0;
}

header p {
    margin-top: 5px;
    width: 5%;
    border-bottom: 2px solid #8dc6ff;
}

.intro-text {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SECTION INTRO === */
.veille-intro {
    padding: 60px 0;
    background-color: #fff;
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.intro-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.intro-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d2844, #8dc6ff);
    z-index: -1;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d2844, #8dc6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 30px;
}

.intro-card h3 {
    color: #0d2844;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.intro-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* === SECTION ARTICLES === */
.articles-section {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f5f7fa;
}

.articles-header h2 {
    color: #0d2844;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    font-family: 'IM Fell English', serif;
}

.articles-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d2844, #8dc6ff);
}

.articles-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#filter-btn {
    background-color: #0d2844;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#filter-btn:hover {
    background-color: #194572;
}

.count-badge {
    background-color: #8dc6ff;
    color: #0d2844;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-wrapper span {
    color: #666;
    font-weight: 500;
}

#sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    color: #0d2844;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#sort-select:focus {
    outline: none;
    border-color: #8dc6ff;
}

/* === ARTICLES GRID === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 94%;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
}

.article-date {
    font-size: 0.9rem;
    font-weight: 500;
}

.article-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-weight: 700;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.8rem;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-title {
    color: #0d2844;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #f0f7ff;
    color: #0d2844;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: #e0f0ff;
}

.read-more-btn {
    align-self: flex-start;
    background-color: transparent;
    border: none;
    color: #8dc6ff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: #0d2844;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* === FILTER PANEL === */
.filter-panel {
    position: fixed;
    top: 0;
    right: -430px;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s ease;
    padding: 30px;
    overflow-y: auto;
}

.filter-panel.show {
    right: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-header h4 {
    color: #0d2844;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-filter {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-filter:hover {
    color: #0d2844;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h5 {
    color: #0d2844;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.filter-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #666;
    font-size: 0.9rem;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #8dc6ff;
}

#apply-filter,
#reset-filter {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#apply-filter {
    background-color: #0d2844;
    color: white;
    margin-bottom: 10px;
}

#apply-filter:hover {
    background-color: #194572;
}

#reset-filter {
    background-color: #f0f0f0;
    color: #666;
}

#reset-filter:hover {
    background-color: #e4e4e4;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

.modal-content {
    padding: 40px;
    position: relative;
}

.modal-content .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0d2844;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-content .close-btn:hover {
    background-color: #0d2844;
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h2 {
    color: #0d2844;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'IM Fell English', serif;
    margin-bottom: 10px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-body img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: #0d2844;
    font-size: 1rem;
    font-weight: 600;
}

.modal-content p {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background-color: #0d2844;
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: #194572;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: #0d2844;
    border: 1px solid #0d2844;
}

.secondary-btn:hover {
    background-color: #f0f7ff;
    transform: translateY(-3px);
}

/* Footer styles - Version corrigée sans !important */
.footer {
    background-color: #181f35;
    color: white;
    padding-top: 60px;
    font-family: 'Consolas', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* Correction pour le paragraphe du logo */
.footer .footer-logo p {
    font-size: 1.2rem;
    color: white;
    font-family: 'Consolas', sans-serif;
    margin-bottom: 0;
}

.footer-links,
.footer-social,
.footer-legal {
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #8dc6ff;
}

.footer-links ul,
.footer-legal ul {
    list-style-type: none;
    padding: 0;
}

.footer-links li,
.footer-legal li {
    font-family: 'Consolas', sans-serif;
    margin-bottom: 12px;
}

.footer-links a,
.footer-legal a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #8dc6ff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #8dc6ff;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

/* Correction pour les paragraphes du footer-bottom */
.footer .footer-bottom p {
    font-size: 0.9rem;
    color: #bbb;
    text-align: center;
    font-family: 'Consolas', sans-serif;
}

/* Correction pour la notice RGPD */
.footer .rgpd-notice {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Consolas', sans-serif;
}

.footer .rgpd-notice a {
    color: #8dc6ff;
    text-decoration: none;
}

.footer .rgpd-notice a:hover {
    text-decoration: underline;
}

/* Hamburger Menu pour responsive */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 200;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #8dc6ff;
    transition: all 0.3s ease;
}

.hamburger-menu.active span {
    background-color: #ffffff;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Pour bloquer le scroll quand le menu mobile est ouvert */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1200px) {
    .menu {
        width: 60%;
        margin-left: 20%;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .menu {
        width: 70%;
        margin-left: 15%;
    }

    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .articles-controls {
        width: 100%;
        justify-content: space-between;
    }

    .filter-panel {
        width: 300px;
    }
}

@media (max-width: 768px) {

    .articles-header{
        position: sticky;
        top: 80px;
        z-index: 100;
    }

    /* Footer responsive */
    .footer-content {
        justify-content: center;
        text-align: center;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-legal {
        margin: 0 20px 30px;
    }

    /* Style pour la barre de navigation mobile */
    .hamburger-menu {
        display: flex;
    }

    .entete {
        height: 80px;
        background-color: rgba(24, 31, 53, 0.95);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
    }

    .entete #logo {
        position: absolute;
        left: 25px;
        top: 8px;
    }

    /* Ajuster l'espacement pour tenir compte de l'entête fixe */
    .full {
        padding-top: 80px;
    }

    header {
        padding-top: 40px;
    }

    .header-desc span {
        font-size: 1.2rem;
    }

    /* Menu plein écran */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 150;
        border-bottom: none;
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
    }

    .menu_b {
        width: auto;
        padding: 8px 0;
        margin: 5px 0;
        border-bottom: none;
        text-align: center;
        font-size: 1.2rem;
        letter-spacing: 2px;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .menu.active .menu_b {
        transform: translateY(0);
        opacity: 1;
    }

    .menu.active .menu_b:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu.active .menu_b:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menu.active .menu_b:nth-child(3) {
        transition-delay: 0.3s;
    }

    .menu.active .menu_b:nth-child(4) {
        transition-delay: 0.4s;
    }

    .menu.active .menu_b:nth-child(5) {
        transition-delay: 0.5s;
    }

    .menu_b:hover {
        transform: translateY(-5px);
        background-color: transparent;
    }

    /* Ajustement de la grille d'articles */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        max-width: 100%;
    }

    /* Ajustements pour les contrôles */
    .articles-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-wrapper,
    .sort-wrapper {
        width: 100%;
    }

    #filter-btn {
        width: 100%;
        justify-content: center;
    }

    .sort-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    #sort-select {
        width: 100%;
    }

    /* Ajustements pour le modal */
    .modal-content {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .article-details {
        grid-template-columns: 1fr;
    }

    /* Suite des ajustements pour tablettes */
    .filter-panel {
        width: 280px;
        right: -320px;
        padding: 20px;
    }

    .filter-panel.show {
        right: 0;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        justify-content: center;
    }

    .intro-card {
        padding: 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .intro-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {

    /* Smartphones */
    header h1 {
        font-size: 2.2em;
    }

    .intro-text {
        font-size: 0.95rem;
        padding: 0 15px 20px 15px;
    }

    .full {
        height: 400px;
    }

    .articles-header h2 {
        font-size: 2rem;
    }

    .count-badge {
        font-size: 0.8rem;
    }

    /* Réduction de l'espace pour les petits écrans */
    .veille-intro {
        padding: 40px 0;
    }

    .articles-section {
        padding: 40px 0;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Ajustements des cartes d'articles */
    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-excerpt {
        font-size: 0.9rem;
    }

    .article-tags {
        gap: 5px;
        margin-bottom: 15px;
    }

    .tag {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .read-more-btn {
        font-size: 0.9rem;
    }

    /* Ajustements du modal */
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-content .close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body img {
        max-height: 250px;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Ajustements du filtre */
    .filter-panel {
        width: 85%;
        right: -100%;
    }

    .filter-header h4 {
        font-size: 1.3rem;
    }

    .filter-group h5 {
        font-size: 1rem;
    }

    /* Rendre les boutons plus faciles à appuyer sur mobile */
    #apply-filter,
    #reset-filter {
        padding: 15px;
    }

    #filter-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {

    /* Très petits écrans */
    header h1 {
        font-size: 1.8em;
    }

    .header-desc span {
        font-size: 0.9rem;
    }

    .full {
        height: 350px;
    }

    .articles-header h2 {
        font-size: 1.8rem;
    }

    /* Réduire davantage les padding et marges */
    .intro-card {
        padding: 15px;
    }

    .article-image {
        height: 160px;
    }

    .article-content {
        padding: 12px;
    }

    /* Optimisation des contrôles pour très petits écrans */
    .filter-wrapper,
    .sort-wrapper {
        flex-wrap: wrap;
    }

    #sort-select {
        font-size: 0.9rem;
        padding: 8px;
    }

    .sort-wrapper span {
        font-size: 0.9rem;
    }

    /* Footer ajusté pour très petits écrans */
    .footer h3 {
        font-size: 1.1rem;
    }

    .footer-links li,
    .footer-legal li {
        margin-bottom: 10px;
    }

    .footer .footer-logo p {
        font-size: 1.1rem;
    }
}