/* ===== RESET & BASE STYLES ===== */
:root {
    --primary-color: #00476b; /* Bleu professionnel */
    --secondary-color: #ff7f00; /* Orange pour les accents */
    --dark-color: #333;
    --light-color: #f9f9f9;
    --footer-bg: #2c3e50;
    --text-light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Aptos', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* ===== HEADER ===== */
.header {
    background-color: var(--text-light);
    padding: 1.5rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.logo-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    height: 100px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background-color: var(--primary-color);
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 0.8rem;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-light);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    padding-left: 1.2rem;
}

/* ===== SEARCH BAR ===== */
.search-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem 5%;
    background-color: #f0f4f7;
}

.search-input {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 250px;
    font-size: 1rem;
}

.search-button {
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background-color: #003953;
}

/* ===== CAROUSEL ===== */
.carousel-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--light-color, #f5f5f5); /* ✅ Correction ici */
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(250px * 12); /* Ajuster selon le nombre d'images */
}

.carousel-track img {
    height: 150px;
    margin: 0 1.5rem;
    object-fit: contain;
    filter: grayscale(0); /* ✅ Couleurs originales */
    opacity: 1; /* ✅ Pleine visibilité */
    transition: all 0.2s;
}

.carousel-track img:hover {
    transform: scale(1.05); /* Optionnel : léger zoom au survol */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* ===== ARTICLES SECTION ===== */
.articles-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article {
    display: flex;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.article.visible {
    opacity: 1;
    transform: translateY(0);
}

.article.reverse {
    flex-direction: row-reverse;
}

.article-img {
    flex: 1;
    min-height: 300px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-content p {
    color: #555;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 3rem 5% 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-col p, .footer-col li {
    margin-bottom: 0.8rem;
    color: #d1d1d1;
}

.footer-col ul {
    list-style: none;
}

.footer-col i {
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .article {
        flex-direction: column;
    }
    
    .article.reverse {
        flex-direction: column;
    }
    
    .article-img {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 100%;
        border-radius: 4px;
    }
    
    .search-button {
        border-radius: 4px;
        justify-content: center;
    }
}
