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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header modifié */
/* header {
    background: white;
}

.header-top {
    background-color: #2c3e50;
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
} */

.logo {
    max-width: 150px;
}

.contact-info {
    text-align: right;
}

.contact-info p:first-child {
    color: #666;
    margin-bottom: 5px;
}

.contact-info p:nth-child(2) {
    color: #4E8B71;
    margin-bottom: 5px;
}

.contact-info p:last-child {
    color: #666;
}

nav {
    background: beige;
    border-bottom: 1px solid #ddd;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: start;
    gap: 2rem;
    padding: 15px 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    font-size: 14px;
}

nav a:hover {
    color: #4E8B71;
}


div {
    margin-bottom: 4px;
    /* Espace entre les div */
}

/* Reste des styles inchangés */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0047AB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-text {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

/* footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
} */

/* .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #0047AB;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
} */


.login-menu {
    display: flex;
    align-items: center;
}

.login-menu a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    font-size: 14px;
}

.login-menu a:hover {
    color: #4E8B71;
}


.container {
    text-align: center;
    padding: 20px;
    color: black;
    animation: fadeIn 1.5s ease-in-out;
}

.container h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: zoomIn 1s ease-in-out;
}

.container p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    animation: fadeInText 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.two-column {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    margin-top: 20px;
}

.two-column img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.two-column .text {
    max-width: 45%;
    font-size: 1rem;
    line-height: 1.5;
}

.five-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 20px;
    margin-top: 20px;
    height: 200px;
    background-image: url('image/imgdiv1.jpg');
    /* Remplacez par le chemin de votre image */
    background-size: cover;
    background-position: center;
}

.five-section div {
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.separator {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    color: #0047AB;
    /*color: black;*/
}

/* Styles pour la grille d'actualités */
.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item p {
    padding: 20px;
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: white;
    margin: 0;
}

/* Animation d'entrée pour les éléments */
.news-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation décalée pour chaque élément */
.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-item:nth-child(4) {
    animation-delay: 0.4s;
}

.news-item:nth-child(5) {
    animation-delay: 0.5s;
}

.news-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive design */
@media (max-width: 1200px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 450px;
    /* Fixed height for consistent sizing */
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    /* Ensures no extra space below image */
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item p {
    padding: 20px;
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: white;
    margin: 0;
    overflow: auto;
    /* Allows scrolling if text is too long */
}

.logo {
    max-width: 150px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    font-size: 14px;
}

.nav-menu a:hover {
    color: #4E8B71;
}

.contact-info {
    text-align: right;
}
