/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4em;
    background-color: transparent;
    transition: background-color 0.5s ease, color 0.5s ease;
    z-index: 1000;
    padding: 0.1em 0.8em;
}

#header.scrolled {
    background-color: #ffffff;
    color: black;
}

.content-logo {
    width: 10%;
    height: 150%;
    margin-top: -3em
}
.content-logo img {
    width: 150px; 
    height: auto;
    cursor: pointer;
}

.content-nav {
    width: 50%;
    height: 80%;
}

.content-nav ul {
    width: 100%;
    height: 100%;
}

.content-nav ul li {
    list-style: none;
    cursor: pointer;
    font-style: italic;
    font-weight: bold;
}

.content-nav ul li a {
    color: white;
    text-decoration: none;
}

.content-nav ul li a:hover {
    text-decoration: underline;
}

#header.scrolled ul li a {
    color: black;
    text-decoration: none;
}

.content-nav ul li:last-child {
    border-radius: 0.3em;
    background-color: var(--primary);
    padding: 0.4em;
}

#header.scrolled ul li:last-child a {
    color: #FFF;
}

.actu_page{
    text-decoration: solid 3px #4f46e5;
}
.actu_page a{
    color: #4f46e5 !important; 
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 1s ease-in-out;
}

.carousel .slide {
    position: relative;
    min-width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide.left-align .carousel-text {
    text-align: left;
    left: 10%;
    padding-right: 50%;
    transform: translate(0, -50%);
}

.slide.left-align .carousel-btn {
    margin-left: -29% !important;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding-top: 5%;
}

.carousel-text p {
    font-size: 25px;
    padding-bottom: 5%;
}
.slide.left-align .carousel-text p{
    padding-bottom: 13%;
}
.slide.left-align .carousel-btn{
    bottom: 200px;
}
.carousel-btn {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.carousel-btn:hover {
    background-color: #0056b3;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-nav button:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Presentation Section */
#presentation {
    height: 8em;
    gap: 0.3em;
    padding-bottom: 1em;
    background-color: #ebfaff;
    font-style: italic;
    text-align: center;
    align-items: center;
}

#presentation img {
    width: 6em;
    height: 3em;
    object-fit: cover;
    border-radius: 100%;
}

#presentation p {
    font-weight: bolder;
}

/* Spacing Classes */
.space {
    padding: 2%;
    padding-bottom: 7%;
    background-color: white;
}

.space2 {
    padding-top: 10%;
    background-color: white;
}

.space3 {
    padding-top: 12%;
    padding-bottom: 5%;
    background-color: white;
}

/* Showcase Section */
#showcase {
    background: url("/assets/images/img_footer.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 20vh;
    text-align: center;
    padding: 15em 0 30em;
}

.showcase-logo {
    padding-top: 16em;
    padding-bottom: 0.2em;
}

.showcase-logo img {
    height: 200px;
    width: 200px;
}

.showcase-header h2 {
    font-size: 2rem;
    margin-top: 0.1em;
    margin-bottom: 1.5em;
    color: white;
    font-style: italic;
    font-weight: bold;
}

.showcase-buttons {
    display: flex;
    gap: 1em;
    margin-bottom: 25em;
}

.btn-primary,
.btn-secondary {
    padding: 0.8em 1.5em;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    color: white;
    transition: transform 0.2s ease-in-out;
    background-color: var(--primary);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.05);
}

/* Style pour le bouton Google Play */
.google-play-img {
    width: 350px; 
    height: auto; 
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); 
    border-radius: 50%;
    margin-top: -6em;
}

.google-play-img:hover {
    transform: scale(1.05); 
}

/* Footer */
#footer {
    background-color: #4f46e5;
    color: white;
    height: 210px;
    padding: 2em 0;
    text-align: center;
    position: relative;
    overflow: visible;
    font-style: italic;
}

.footer-logo img {
    margin-top: -4em;
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    border-radius: 100%;
}

#footer .footer-logo img {
    margin-top: -3em !important;
}

.footer-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.footer-content p {
    margin: 0.5em 0;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1em;
    margin-top: 1em;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: rgb(172, 219, 226);
}


/* Media Queries pour la responsivité */

/* Tablettes et petits écrans (max-width: 968px) */
@media screen and (max-width: 968px) {
    /* Header */
    .content-nav ul {
        gap: 1em;
    }
    
    .content-nav ul li {
        font-size: 0.9em;
    }
    
    /* Carousel */
    .carousel-text {
        font-size: 24px;
        width: 90%;
        padding-top: 2%;
    }
    
    .carousel-text p {
        font-size: 20px;
    }
    
    .carousel-btn {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Header */
    #header {
        height: auto;
        padding: 0.5em;
        flex-direction: column;
        align-items: center;
    }
    
    .content-logo {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .content-logo img {
        width: 120px;
    }
    
    .content-nav {
        width: 100%;
    }
    
    .content-nav ul {
        flex-direction: column;
        gap: 0.8em;
        padding: 1em 0;
    }
    
    /* Carousel */
    .carousel-text {
        font-size: 20px;
        top: 35%;
    }
    
    .carousel-text p {
        font-size: 16px;
    }
    
    .slide.left-align .carousel-text {
        padding-right: 10%;
    }
    
    .carousel-btn {
        bottom: 150px;
        width: 80%;
        max-width: 300px;
    }
    
    /* Showcase */
    #showcase {
        padding: 8em 1em 20em;
    }
    
    .showcase-header h2 {
        font-size: 1.5rem;
    }
    
    .showcase-buttons {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 1em;
    }
    
    /* Footer */
    #footer {
        height: auto;
        padding: 3em 1em;
    }
}

/* Très petits écrans (max-width: 480px) */
@media screen and (max-width: 480px) {
    .carousel-text {
        font-size: 18px;
    }
    
    .carousel-text p {
        font-size: 14px;
    }
    
    .showcase-logo img {
        width: 150px;
        height: auto;
    }
    
    .social-icons {
        gap: 0.5em;
    }
}