/* Global styles */
:root {
    --dark-blue: #0A0A1A;
    --red: #C0392B;
    --white: #F8F9FA;
    --gray: #BDC3C7;
}

body {
    background-color: var(--dark-blue);
    font-family: 'Inter', sans-serif;
    color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header & Navigation --- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.logo-link img {
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: blue;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .direct a {
    background-color: var(--red);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.nav-links .direct a:hover {
    background-color: blue;
}

.nav-links .direct a::after {
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
}

/* Mobile Side Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav ul li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    font-size: 2rem;
    color: var(--white);
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh;
}

.carousel-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fadein 1s ease-in-out forwards;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 60%);
}

.carousel-content {
    position: absolute;
    left: 10%;
    bottom: 10%;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.carousel-content .typo-img {
    margin-bottom: 1rem;
    max-width: 150px;
    border-radius: 5px;
}

.carousel-content .title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.carousel-content .description {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem;
    color: var(--gray);
}

.carousel-content .info {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.carousel-content .info span {
    margin-right: 0.5rem;
}

.carousel-content .info span:not(:last-child)::after {
    content: '|';
    margin-left: 0.2rem;
     margin-right: 0.2rem;
}

.view-more-btn {
    background-color: var(--red);
    color: var(--white);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #A93226;
}

/* --- Footer --- */
.footer-desktop {
    background-color: rgba(10, 10, 26, 0.9);
    color: var(--gray);
    padding: 2rem 1rem;
    text-align: center;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.footer-desktop p {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

.footer-desktop a {
    color: var(--gray);
    text-decoration: none;
}

.footer-desktop .contact-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-desktop .contact-info a {
    color: var(--gray);
    text-decoration: none;
}

/* --- Mobile Bottom Navigation --- */
.footer-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(5px);
    z-index: 999;
    height: 5rem; /* Augmentation de la hauteur pour une meilleure visibilité sur mobile */
}

.footer-mobile nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%; /* La hauteur s'adapte au conteneur parent */
}

.footer-mobile nav ul li {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
}

.footer-mobile nav ul li a {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrage vertical des éléments */
    height: 100%;
    font-size: 0.75rem;
}

.footer-mobile nav ul li a i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    /* Afficher le pied de page du bureau sur mobile */
    .footer-desktop {
        display: block;
        padding-bottom: 5rem; /* Ajoute de l'espace pour la navigation du bas */
    }

    .footer-mobile {
        display: block;
    }
    
    .header-inner .logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-slide img {
        object-position: right;
        object-fit: cover;
    }
    
    .carousel-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 60%);
    }
    
    .carousel-content {
        left: 5%;
        right: 5%;
        bottom: 5rem;
    }
    
    .carousel-content .title {
        font-size: 1.5rem;
    }
    
    .carousel-content .description {
        font-size: 0.9rem;
    }
    
    .carousel-content .info {
        font-size: 0.8rem;
    }
}
