/* 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;
    /* IMPORTANT: Augmentation du padding en bas du body pour que le contenu ne soit pas masqué par le footer-mobile fixe et qu'il y ait de l'espace */
    padding-bottom: 5rem; /* 5rem correspond à la hauteur du .footer-mobile */
}

.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;
    /* Centrer le logo en permanence */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

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

.nav-links {
    /* Masquer la navigation de bureau en permanence */
    display: none;
    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 {
    /* Afficher le bouton de bascule du menu en permanence */
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    /* Placer à droite */
    margin-left: auto;
}

/* 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;
    /* Ajustement pour que le contenu commence sous le header */
    height: calc(100vh - 50px); /* 50px est une estimation de la hauteur du header */
    margin-top: 50px;
}

.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%;
    /* Ajustement de l'overlay pour le look mobile */
    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 {
    position: absolute;
    left: 5%;
    right: 5%;
    /* Position du contenu au-dessus du footer-desktop */
    bottom: 20%; 
    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: 1.5rem; /* Taille mobile par défaut */
    font-weight: bold;
    margin: 0;
}

.carousel-content .description {
    font-size: 0.9rem; /* Taille mobile par défaut */
    margin: 0.5rem 0 1rem;
    color: var(--gray);
}

.carousel-content .info {
    font-size: 0.8rem; /* Taille mobile par défaut */
    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 {
    /* Afficher le pied de page de bureau en permanence */
    display: block;
    background-color: rgba(10, 10, 26, 0.9);
    color: var(--gray);
    padding: 2rem 1rem;
    text-align: center;
    /* Ajoutez un padding en bas pour que le footer-mobile ne chevauche pas son contenu */
    padding-bottom: 6rem; /* Ajout d'un peu plus d'espace pour la navigation du bas */
}

.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 {
    /* Afficher la navigation mobile en permanence */
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(24, 24, 203, 0.95);
    backdrop-filter: blur(5px);
    z-index: 999;
    height: 5rem;
}

.footer-mobile nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.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;
    height: 100%;
    font-size: 0.75rem;
}

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