@font-face {
    font-family: 'Nightydemo';
    src: url('typo/Nightydemo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'estrella';
    src: url('typo/estrella-early.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PestoFresco';
    src: url('typo/fonnts.com-PestoFresco_Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PestoFresco2';
    src: url('typo/fonnts.com-PestoFresco_Thin_Rough.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LeagueSpartan-Black';
    src: url('typo/LeagueSpartan-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.1;
    z-index: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; 
    min-width: 280px;
    max-width: 280px;
    height: 100vh;
    background: #000;
    padding: 40px 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar { 
    width: 6px; 
}

.sidebar::-webkit-scrollbar-thumb { 
    background: #bd5151; 
    border-radius: 10px; 
} 

.brand { 
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0; 
    margin-bottom: 16px; 
}

.brand img { 
    display: block; 
    width: 80px; 
    height: 80px; 
    object-fit: contain;
    transition: transform 0.5s ease; 
}

.brand img:hover { 
    transform: rotate(20deg); 
}

.menu-group { 
    margin-bottom: 14px; 
}

.menu-static-title, .menu-title a {
    font-family: 'LeagueSpartan-Black', Arial, sans-serif;
    font-size: 22px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 0;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-static-title::-webkit-details-marker { 
    display: none; 
}

.menu-content {
    padding-left: 15px;
}

.menu-content a {
    display: block;
    font-family: 'LeagueSpartan-Black', Arial, sans-serif;
    color: #888;
    text-decoration: none;
    margin: 8px 0;
    font-size: 22px;
    transition: all 0.3s ease;
    padding-left: 5px;
}

.menu-title {
    text-decoration: none;
    color: white;
}

.menu-content a:hover { 
    color: white; 
}

.accueil-link {
    text-decoration: none !important;
}

.accueil-link:hover {
    color: #bd5151;
    text-decoration: none;
}

.main img, 
.main video {
    max-width: 100%;
    height: auto;
    display: block;
}

.menu-group:hover .menu-content {
    max-height: 500px;
}

.chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #bd5151;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

details[open] .chevron {
    transform: rotate(180deg);
}

.main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    z-index: 1;
}

.content {
    padding-left: 4.5%;
}

.hero {
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
}

.content h1 {
    font-family: 'PestoFresco', Arial, sans-serif;
    color: #bd5151;
    font-size: 3em;
    margin-bottom: 0.5em;
}

.content strong {
    font-family: 'PestoFresco', Arial, sans-serif;
    color: #bd5151;
    font-size: 1.4em;
}

.content em {
    font-style: italic;
}

.content p {
    margin-bottom: 1em;
}

.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.video-container {
    width: 96%; /* S'aligne sur tes autres éléments (image-link, etc.) */
    max-width: 1100px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Important pour le positionnement de l'iframe */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Supprime la bordure par défaut du navigateur */
}

.horizontal-scroll.programs .project-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.image-link {
    position: relative;
    display: block;
    width: 96%;
    max-width: 1400px; 
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
    line-height: 0;
    margin: 0 auto;
    margin-left: 2%;
    margin-right: 2%;
    padding: 0;
}

.image-link img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    object-fit: cover;
}

.image-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.0);
    transition: background 0.3s ease;
}

.image-overlay span {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-intro {
    display: flex;
    gap: 40px; 
    align-items: flex-start;
    padding-top: 60px;
    padding-left: 4.5%;
    width: 100%;
}

.text-column {
    flex: 1;
    padding: 0;
    margin-left: -6.3%;
    margin-top: -4%;
}

.image-column {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.image-column img {
    width: 70%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    margin: 10px 0;
}

.slider-container {
    width: 96%;
    max-width: 1100px;
    margin: 30px auto 80px;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.image-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
}

.image-slider::-webkit-scrollbar {
    display: none;
}

.slider-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    align-items: center;
}

.slide {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 25px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    position: relative;
}

.sidebar .menu-static-title:hover, 
.sidebar .accueil-link:hover {
    color: #bd5151 !important;
    text-decoration: none !important;
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(189, 81, 81, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-arrow.left { 
    left: 15px !important; 
}

.nav-arrow.right { 
    right: 15px !important; 
}

.nav-arrow:hover {
    background: #bd5151;
    transform: translateY(-50%) scale(1.1);
}

.slider-wrapper {
    position: relative;
    width: 95%; 
    max-width: 1100px;
    margin: 50px auto;
    display: flex;
    align-items: center;
    overflow: visible;
}
.slide p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    font-family: 'LeagueSpartan-Black', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slide:hover p {
    opacity: 1;
}

@media (min-width: 800px) and (max-width: 1150px) {
    .project-intro {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .text-column {
        width: 100% !important;
        flex: none !important;
        padding-right: 2%;
    }

    .image-column {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 30px !important;
        margin-top: 10px !important;
        padding-top: 0 !important;
    }

    .image-column img {
        width: 25% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .slider-wrapper {
        margin-top: 20px !important;
    }
}

@media (max-width: 800px) {
    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 20px !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main {
        margin-left: 0 !important;
        margin-top: -40px;
        width: 100% !important;
        padding: 10px !important;
        display: block !important;
    }

    .iframe-title {
        font-size: 2.8rem;
        color: #bd5151;
        font-family: 'PestoFresco', Arial, sans-serif;
        text-align: center;
        width: 100%;
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .text-column, .image-column {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .project-intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: -10%;
    }

    .image-column {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
    }

    .image-column img {
        width: 45%;
        height: auto;
        object-fit: contain;
        display: block;
    }
.slider-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 !important;
        left: 0 !important;
        display: flex !important;
        justify-content: center !important;
        overflow: visible !important; /* Pour que les flèches ne soient pas coupées */
        
    }

    /* 2. ON AJUSTE LA TAILLE DES SLIDES */
    .slide {
        flex: 0 0 90% !important; /* Prend 90% de la largeur pour laisser un petit bord */
        margin: 0 auto !important; /* Centre la slide elle-même */
        border-radius: 15px !important;
    }

    .slide img {
        height: 300px !important; /* Hauteur réduite pour mobile */
        width: 100% !important;
        object-fit: cover !important;

    }

    /* 3. ON RECENTRE LE SLIDER INTERNE */
    .image-slider {
        display: flex !important;
        gap: 15px !important;
        padding: 10px 0 !important;
        justify-content: flex-start !important; /* Important pour le scroll */
        -webkit-overflow-scrolling: touch;
                margin-left: 1%;

    }

    /* 4. POSITIONNEMENT DES FLÈCHES SUR MOBILE */
    .nav-arrow.left { 
        left: 5px !important; 
    }

    .nav-arrow.right { 
        right: 5px !important; 
    }

    .nav-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    .content h1 {
        font-size: 3.2rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        width: 100%;
        display: block;
    }

    .content {
        padding-left: 0 !important;
        margin-bottom: -10% !important;
        text-align: center;
    }

    .main_bas {
        margin-top: 10px !important;
        padding-top: 0px !important;
    }

    .content p:last-of-type {
        margin-bottom: 10px !important;
    }

    .video-container, .slider-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }

    .logos-programmes-container {
        margin-bottom: 5px !important;
        justify-content: center;
    }

    .portfolio-video {
        border-radius: 0 !important;
    }

    nav {
        margin-top: 15px !important;
    }
    
    .menu-static-title {
        font-size: 0.9rem !important;
    }
}