:root {
    --primary-color: #79a3d9;
    --secondary-color: #6f7bbf;
    --text-color: #333;
    --background-color: #f0f0f0;
    --big-text-size: 1.75em;
    --medium-text-size: 1.2em;
    --small-text-size: 0.9em;
    
}

section {
    scroll-snap-align: start;
    /* height: 100vh; */
    position: relative;
}

/* Modifiez la règle existante pour section */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    box-sizing: border-box;
    transition: opacity 0.5s ease-in-out;
}

/* Ajoutez ces nouvelles règles pour les animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}
/* 
.slide-up {
    /* opacity: 0; 
    /* transform: translateY(50px); 
} */

/* section.active .slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

section.active .slide-up:nth-child(2) { animation-delay: 0.2s; }
section.active .slide-up:nth-child(3) { animation-delay: 0.4s; }
section.active .slide-up:nth-child(4) { animation-delay: 0.6s; } */

/* section:not(.active) {
    opacity: 0;
} */

/* Base styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    /* scroll-snap-type: y proximity; */
    height: 100%;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}


.scroller {
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scroll-margin: var(--big-text-size);
    height: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

/* Menu styles */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    height: 35px;
}

.menu.show {
    display: flex;
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.menu-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.menu-links {
    display: flex;
}

.menu-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.menu-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Section styles */
section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

section h2 {
    margin-bottom: 20px;
    font-size: var(--big-text-size);
}

/* Video section */
#video-section {
    position: relative;
    padding: 0;
    text-align: center;
}

#video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#video-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    flex-direction: column;
}

#video-section .overlay h1 {
    color: #fff;
    font-size: 3em;
    margin: 0;
}

#video-section .overlay p {
    color: #fff;
    font-size: 1.5em;
    font-style: italic;
}


/* About section */

#about p {
    background-color: #f0f0f0;
    width: 66.66%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#about img {
    border-radius: 10px;
    margin-top: 20px;
}

#about a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #79a3d9;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

/* Featured content section */
/* #featured-content {
    padding-top: 25%;
} */


#featured-content .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
}


#featured-content a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #79a3d9;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

#featured-content a:hover {
    background-color: #6f7bbf;
}

/* Clients section */
/* #clients {
    overflow-x: auto;
    white-space: nowrap;
}


.testimonial {
    display: inline-block;
    width: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    margin-right: 20px;
    white-space: normal;
} */

#clients {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.testimonial-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.testimonial-author {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.testimonial-slider::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.testimonial-slider {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    overflow: auto;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.testimonial {
    flex: 0 0 300px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.testimonial.expanded {
    max-height: 80vh;
}

.testimonial-text {
    position: relative;
}

.testimonial-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    /* background: linear-gradient(transparent, #f5f5f5); */
}

.expand-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: none; 
    /* D'ici a ce que ca marche */
}

.scroll-right {
    position: absolute;
    right: 3%;
    top: 55%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


/* Contact section */
#contact form {
    width: 66.66%;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 95%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #79a3d9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact button:hover {
    background-color: #6f7bbf;
}

#contact p {
    background-color: #f0f0f0;
    width: 66.66%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#contact a {
    color: #79a3d9;
}

#contact .see-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #79a3d9;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    font-size: 24px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.back-to-top.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Popup & Articles */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.grid-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.item-description {
    padding: 20px;
}

.item-description h3 {
    margin: 0 0 10px 0;
    font-size: var(--medium-text-size);
    color: #2c3e50;
}

.item-description p {
    margin: 0;
    color: #7f8c8d;
    font-size: var(--small-text-size);
    line-height: 1.6;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.popup.show {
    opacity: 1;
}

.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: space-between;
    height: auto;
    max-height: 75%;
    overflow: auto;
}

.popup.show .popup-content {
    transform: scale(1);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #bdc3c7;
    transition: color 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: #e74c3c;
}

.popup-media {
    width: 50%;
    margin-bottom: 20px;
}

.popup-media-content {
    width: 100%;
    /* max-height: 90%; */
    object-fit: contain; /* Garde les proportions originales */
}

.media-container {
    width: 100%;
}

.article-separator {
    width: 2px; /* Largeur du séparateur */
    /* background-color: #8b8b8b; */
    background-color: rgba(0, 0, 0, 0);
    height: auto; /* Le séparateur prend la hauteur de l'image */
    margin: 0 20px; /* Espacement entre l'image et le texte */
    border-radius: 5px;
}

.popup-info {
    width: 90%;
}

.popup-details h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: var(--big-text-size);
    font-weight: 500;
}

.popup-details .description {
    color: #34495e;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-details .artist-link {
    color: #79a3d9;
    transition: color 0.3s;
    font-size: var(--medium-text-size);
    padding: 0 5px;
}

.additional-info {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    font-size: var(--small-text-size);
}

.additional-info p {
    margin: 5px 0;
}

.popup-details {
    width: 50%;
    padding-left: 5px;
    position: relative;
}

.popup-details h3 {
    color: #2c3e50;
    font-size: var(--medium-text-size);
    font-weight: 500;
    margin-bottom: 15px;
}

.popup-details p {
    color: #34495e;
    line-height: 1.6;
    font-size: var(--small-text-size);
}

.media-and-arrows-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    width: 50%;
    height: 100%;
}

.arrow {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 768px) {
    .arrow {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .media-and-arrows-container {
        width: auto;
    }
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px; /* Ajustez cette valeur selon vos besoins */
    margin: 0 auto;
}

.contact-text {
    width: 100%;
    margin-bottom: 2rem;
}

.instagram-embed {
    width: 40%;
    min-height: 550px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 3%;
}

.instagram-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-content {
        padding: 0 1rem;
    }
    
    .instagram-embed {
        min-height: 350px; /* Hauteur réduite pour les appareils mobiles */
        width: 100%;
    }
}

/* Footer styles */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #666;
    padding: 10px;
    text-align: center;
    width: 100%;
    font-size: 0.8em;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-links {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .menu-links.active {
        display: flex;
    }

    .menu-links a {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    #about p {
        width: 90%;
    }

    #featured-content .featured-content-container {
        flex-direction: column;
    }

    #featured-content img {
        max-width: 100%;
    }

    .grid-item img,
    .grid-item video {
        height: 200px;
    }

    #contact form {
        text-align: center;
    }

    .back-to-top {
        display: block;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .grid-container:nth-child(2) { display: none;}
    .grid-container:nth-child(3) { display: none;}
    
    .popup-details {
        width: 100%;
    }


    .popup-content {
        width: 75%;
        flex-direction: column;

    }

    .popup-info {
        width: 100%;
    }

    .popup-media {
        width: 100%;
    }

    .testimonial {
        max-width: 60vw;
    }
    
    .article-separator {
        display: none;
    }
    

    #contact p {
        width: 90%;
    }
}   