/* Studio Page Styles */

body {
    background-color: var(--bg);
    overflow-x: hidden;
}

/* Vidéo de fond */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    filter: blur(8px); /* Flou appliqué à la vidéo */
}

/* Overlay pour assombrir la vidéo et appliquer le filtre bleu sur toute la page */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 35, 77, 0.3); /* Overlay bleu appliqué sur toute la page */
    z-index: -1;
    pointer-events: none; /* Permet les interactions avec le contenu */
}

/* Notre Histoire Section - ajustement pour la vidéo de fond */

header {
    position: relative;
    top: 0px;
    z-index: 1000;
}

.studio-main {
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Notre Histoire Section */
.story-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.story-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.story-header h2 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-intro {
    text-align: center;
    margin-bottom: 40px;
}

.story-highlight {
    font-family: "Gabarito", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0;
}

.story-main p {
    font-family: "Work Sans", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.story-problem {
    margin: 30px 0;
}

.story-problem p {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 600;
}

.story-problem p:last-child {
    margin-bottom: 0;
}

.story-solution {
    margin-top: 30px;
}

.story-conclusion {
    font-family: "Gabarito", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px !important;
}

.story-solution p {
    color: #e0e0e0;
}

.story-solution p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Vidéo de fond - optimisation mobile */
    .video-background video {
        filter: blur(5px); /* Flou réduit sur tablette */
    }
    
    footer {
        margin: 0;
        padding: 0;
    }
    .faq-section {
        padding:0; /* Supprime le padding bottom */
        margin: 0; /* Supprime l'espace entre FAQ et footer */
    }
    .video-overlay {
        background: rgba(0, 24, 52, 0.8); /* Overlay plus opaque sur tablette */
    }
    .video-overlay {
        background: rgba(0, 24, 52, 0.8); /* Overlay plus opaque sur tablette */
    }
    
    /* Header ajustement mobile */
    header {
        margin: 0;
        padding: 10px 0;
    }
    
    /* Section story ajustement */
    .story-section {
        padding: 80px 0;
        margin: 0; /* Supprime l'espace en haut et en bas */
    }
    
    .story-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 48px;
        text-align: center;
    }
    
    .hero-description {
        font-size: 20px;
        text-align: center;
    }
    
    .story-header h2 {
        font-size: 32px;
        text-align: center;
    }
    
    .story-highlight {
        font-size: 20px;
        text-align: center;
    }
    
    .story-main p {
        font-size: 16px;
        text-align: center;
    }
    
    .story-problem {
        margin: 25px 0;
    }
    
    .story-problem p {
        font-size: 16px;
        text-align: center;
    }
    
    .story-solution {
        margin-top: 25px;
    }
    
    .story-conclusion {
        font-size: 18px;
        text-align: center;
    }
    
    .story-solution p {
        font-size: 16px;
        text-align: center;
    }


}

@media screen and (max-width: 480px) {
    /* Vidéo de fond - optimisation mobile strict */

    .faq-section {
        padding: 60px 0; /* Remet le padding normal sur mobile */
        margin: 0; /* Supprime l'espace entre FAQ et footer */
    }
    .video-background video {
        filter: blur(3px); /* Flou très réduit sur mobile */
        scale: 1.05; /* Scale réduit pour mobile */
    }
    
    .video-overlay {
        background: rgba(0, 24, 52, 0.85); /* Overlay encore plus opaque */
    }
    
    /* Header mobile */
    header {
        position: relative; /* Suit le scroll naturellement */
        margin: 0;
        padding-top: 0;
    }
    
    /* S'assurer qu'il n'y a pas d'espace en haut */
    body {
        margin: 0;
        padding: 0;
    }
    
    .studio-main {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Section story mobile */
    .story-section {
        padding: 0 0;
        margin: 0; /* Supprime tout espace */
    }
    
    .story-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 36px;
        text-align: center;
    }
    
    .hero-description {
        font-size: 18px;
        text-align: center;
    }
    
    .story-header h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .story-highlight {
        font-size: 18px;
        text-align: center;
    }
    
    .story-main p {
        font-size: 15px;
        text-align: center;
    }
    
    .story-problem {
        margin: 20px 0;
    }
    
    .story-problem p {
        font-size: 15px;
        text-align: center;
    }
    
    .story-solution {
        margin-top: 20px;
    }
    
    .story-conclusion {
        font-size: 17px;
        text-align: center;
    }
    
    .story-solution p {
        font-size: 15px;
        text-align: center;
    }
    footer{
        margin: 0;
        padding: 0;
    }
    
}

/* FAQ Section Styles */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 80px 0; /* Remet le padding normal */
    margin: 0; /* Supprime toute marge */
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* Supprime complètement le padding bottom */
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 48px;
    color: var(--secondary);
    margin: 0;
    font-weight: bold;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 0; /* Supprime l'espace en bas */
}

.faq-item {
    background: rgba(16, 16, 16, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: rgba(132, 184, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(132, 184, 255, 0.2);
}

.faq-question h3 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 24px;
    color: var(--secondary);
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: var(--secondary);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 30px;
    max-height: 1000px; /* Augmenté de 500px à 1000px */
}

.faq-answer p {
    font-family: "Work Sans", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: white;
    margin: 0 0 15px 0;
}

.faq-answer {
    font-size: 9px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer p strong {
    color: var(--beige);
    font-weight: 600;
}

.team-images {
    text-align: center;
    margin-top: 20px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.team-member {
    background: linear-gradient(135deg, rgba(0, 35, 77, 0.3),rgba(132, 184, 255, 0.3));
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    height: 300px;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(132, 184, 255, 0.1) 0%,
        rgba(237, 184, 139, 0.1) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(132, 184, 255, 0.3);
}

.team-member:hover::before {
    opacity: 1;
}

.member-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(132, 184, 255, 0.4);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.team-member:hover .member-photo {
    border-color: var(--beige);
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(237, 184, 139, 0.5);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-info {
    position: relative;
    z-index: 2;
}

.member-info h4 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
}

.member-title {
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    color: white !important;
    font-weight: 600;
    background-color: var(--primary);
    border-radius: 5px;
    padding: 2px 6px; /* Réduit l'espace interne */
    margin-bottom: 0px; /* Optionnel : réduit l'espace sous le titre */
    line-height: 0.9 !important; /* Réduit l'espace entre deux lignes */
}

.member-description {
    font-family: "Work Sans", sans-serif;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    font-weight: 400;
    line-height: 1.3 !important;
}

/* Animation d'apparition échelonnée */
.team-member:nth-child(1) {
    animation: slideInUp 0.6s ease 0.1s both;
}

.team-member:nth-child(2) {
    animation: slideInUp 0.6s ease 0.2s both;
}

.team-member:nth-child(3) {
    animation: slideInUp 0.6s ease 0.3s both;
}

.team-member:nth-child(4) {
    animation: slideInUp 0.6s ease 0.4s both;
}

.team-member:nth-child(5) {
    animation: slideInUp 0.6s ease 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .faq-answer .team-images .team-grid {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 100%;
        width: 100%;
        padding: 20px 10px;
        margin: 0 auto;
    }
    
    .team-member {
        padding: 20px 15px;
        border-radius: 15px;
        flex: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        border-width: 3px;
    }
    
    .member-info h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .member-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .member-description {
        font-size: 18px !important;
        line-height: 1.3;
    }
    
    .faq-answer {
        font-size: 8px !important;
        line-height: 1.3 !important;
    }
}

/* Responsive FAQ */
@media screen and (max-width: 768px) {
    .faq-section {
        padding: 80px 0; /* Augmenté de 60px à 80px */
        margin: 0;
    }
    
    footer{ 
        margin: 0;
        padding: 0;
    }
    .faq-container {
        padding: 0 20px;
    }
    
    .faq-content {
        padding-bottom: 0; /* Supprimé le padding */
    }
    
    .faq-header h2 {
        font-size: 36px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
        max-height: 1500px; /* Augmenté pour mobile pour contenir tous les membres */
    }
    
    .faq-answer p {
        font-size: 16px;
    }
}

/* Footer sur page studio */
#footer {
    margin: 0;
    position: relative;
    z-index: 1000; /* Z-index élevé pour être au-dessus du filtre bleu */
    background: var(--primary) !important; /* Background solide pour bloquer le filtre bleu */
}