/* Variables CSS */
:root {
    --bleu-nuit: #1a237e;
    --rouge-nuit: #b71c1c;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-fonce: #424242;
    --bleu-clair: #3f51b5;
    --rouge-clair: #e53935;
    --bleu-gradient: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --rouge-gradient: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-clair);
    color: var(--gris-fonce);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header supérieur */
.header-top {
    background: var(--bleu-gradient);
    color: var(--blanc);
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    height: 40px;
}

.info-scroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.info-label {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--rouge-gradient);
    padding: 0 15px;
    font-weight: bold;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.info-scroll-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Header principal */
.header-main {
    background-color: var(--blanc);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    position: relative;
    margin-left: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--bleu-nuit);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.nav-menu a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-menu a:hover {
    background: var(--bleu-gradient);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--blanc);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    min-width: 220px;
    z-index: 1000;
    top: 100%;
    left: 0;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    border-top: 3px solid var(--rouge-nuit);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--bleu-gradient);
    color: var(--blanc);
    padding-left: 25px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.search-icon {
    margin-left: 20px;
    color: var(--bleu-nuit);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px;
    border-radius: 50%;
}

.search-icon:hover {
    color: var(--rouge-nuit);
    background-color: #f0f0f0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--bleu-nuit);
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    border-radius: 5px;
}

.mobile-menu-btn:hover {
    color: var(--rouge-nuit);
    background-color: #f0f0f0;
}

/* Bannière défilante */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanc);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(183, 28, 28, 0.7) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: slideUp 1s ease;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.slide h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.slide p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: var(--rouge-gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.6);
}

.slide-1 {
    background: url('https://images.unsplash.com/photo-1535223289827-42f1e9919769?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80') center/cover;
}

.slide-2 {
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80') center/cover;
}

.slide-3 {
    background: url('https://images.unsplash.com/photo-1562774053-701939374585?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1600&q=80') center/cover;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--blanc);
    transform: scale(1.2);
    border-color: var(--rouge-nuit);
}

/* Section Contenu Principal */
.main-content {
    padding: 100px 0;
    background-color: var(--blanc);
}

.content-placeholder {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--gris-clair);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.content-placeholder h1 {
    font-size: 2.5rem;
    color: var(--bleu-nuit);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-placeholder p {
    font-size: 1.2rem;
    color: var(--gris-fonce);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: var(--bleu-gradient);
    color: var(--blanc);
    padding: 70px 0 25px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--rouge-gradient);
    border-radius: 2px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
}

.footer-slogan {
    margin-bottom: 20px;
    font-style: italic;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--blanc);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--rouge-clair);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--blanc);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--rouge-clair);
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--rouge-clair);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: var(--rouge-clair);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--blanc);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .history-content {
        flex-direction: column;
    }
    
    .history-image {
        width: 80%;
    }
    
    .news-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        padding: 0;
        height: 35px;
    }
    
    .info-scroll {
        padding-left: 100px;
        margin-bottom: 0;
    }
    
    .info-label {
        height: 100%;
        padding: 0 12px;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    
    .header-content {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        background-color: var(--blanc);
        flex-direction: column;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 20px;
        border-radius: 0 0 0 15px;
        border-left: 3px solid var(--rouge-nuit);
        border-bottom: 3px solid var(--rouge-nuit);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        border-radius: 5px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
        margin-top: 10px;
        border-radius: 8px;
        border: 1px solid #eee;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .search-icon {
        margin-left: 0;
        margin-top: 15px;
        align-self: flex-start;
    }
    
    .slide h2 {
        font-size: 2.2rem;
    }
    
    .slide p {
        font-size: 1.3rem;
    }
    
    .news-carousel {
        padding: 0 20px;
    }
    
    .news-card {
        flex: 0 0 calc(100% - 10px);
    }
    
    .footer-column:nth-child(2), .footer-column:nth-child(3) {
        display: none;
    }
    
    .footer-column:first-child, .footer-column:last-child {
        flex: 1 0 100%;
        text-align: center;
    }

    /* Center social icons on mobile */
    .footer-social {
        justify-content: center;
        margin: 0 auto;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 50px;
    }
    
    .slide h2 {
        font-size: 1.8rem;
    }
    
    .slide p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .history-image {
        width: 100%;
    }
}