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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fc;
}

.navbar {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-left {
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar-center a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1.2rem;
}

.navbar-center a:hover {
    text-decoration: underline;
}

.header-image {
    background-image: url('HD1200x682.png'); /* Remplace par le chemin de ton image */
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #e7a17e; /* Couleur plus moderne */
}

.header-content p {
    font-size: 1.5rem;
    color: #FFFFFF; /* Couleur claire pour le texte */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #2A2E35; /* Couleur sombre mais élégante */
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
}

.card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.card {
    background: #FFFFFF; /* Fond blanc pour la carte */
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 500px; /* Augmente la largeur ici */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

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

.card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card .publication-date {
    font-size: 0.85rem;
    color: #777;
    padding: 10px;
    text-align: left;
}

.card p {
    font-size: 1.2rem;
    padding: 10px 20px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}

.card:before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: #e7a17e; /* Couleur sombre et contrastée */
    border-radius: 50%;
    z-index: 1;
}

.card:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 0 0 100px 0;
    z-index: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.section.actus {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}


.footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-left h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #e7a17e;
}

.footer-left p,
.footer-left a {
    font-size: 1rem;
    color: white;
    line-height: 1.8;
    text-decoration: none;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-right a {
    margin-left: 10px;
}

.linkedin-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.linkedin-icon img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    font-size: 0.9rem;
    color: #bbb;
    border-top: 1px solid #555;
}

a.tz {
    color: white;
    text-decoration: none;
}


/* Styles Responsives */
@media screen and (max-width: 1024px) {
    .card {
        width: 100%; /* Réduire légèrement la largeur des cartes sur les écrans moyens */
    }
}

@media screen and (max-width: 768px) {
    .card-container {
        justify-content: center; /* Centrer les cartes sur les petits écrans */
    }

    .card {
        width: 100%; /* Les cartes prennent 100% de la largeur sur les petits écrans */

    }

    .navbar-center a {
        font-size: 1rem;
    }

    .navbar-left {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2.5rem; /* Ajustement de la taille du titre pour petits écrans */
    }
}

@media screen and (max-width: 480px) {
    .header-image {
        height: 50vh; /* Réduire la taille de l'image d'en-tête sur mobile */
    }

    .header-content h1 {
        font-size: 2.5rem; /* Réduire la taille de la police de l'en-tête */
    }

    .header-content p {
        font-size: 1rem; /* Ajuster la taille du texte d'introduction */
    }

    .card {
        width: 100%;

    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-center a {
        margin: 0 1rem; /* Réduire l'espacement entre les éléments du menu sur mobile */
    }
}


.modal {
    display: none; /* Cacher par défaut */
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: fadeIn 0.3s;
}

.modal-text {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
