@font-face {
    font-family: 'Lemon Milk';
    src: url('../fonts/LEMONMILK-Bold.woff2') format('woff2'),
         url('../fonts/LEMONMILK-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Lemon Milk', sans-serif;
    background: #F8EECB;
    height: 100vh;
    overflow: hidden;
}

/* Têtes animées */
.tete {
    position: fixed;
    width: 120px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.tete img {
    width: 100%;
    height: auto;
    animation: pulse 4s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tete-haut-gauche { left: 5%; top: 5%; }
.tete-haut-droit { right: 5%; top: 5%; }
.tete-bas-gauche { left: 5%; bottom: 5%; }
.tete-bas-droit { right: 5%; bottom: 5%; }

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(var(--rot)); }
    50% { transform: scale(1.1) rotate(var(--rot)); }
}

/* Menu */
.menu-vertical {
    position: fixed;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 3000;
    transition: all 0.4s ease;
}

.menu-vertical a {
    color: #2A2A2A;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.menu-vertical a:hover {
    opacity: 1;
}

/* Logo */
.logo-centre {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 75vw);
    z-index: 2000;
    pointer-events: none;
}

.logo-centre img {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .tete { width: 100px; }
}

@media (max-width: 768px) {
    .logo-centre {
        width: 85vw;
        top: 45%;
    }

    .menu-vertical {
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255,255,255,0.9);
        padding: 20px 30px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }

    .tete {
        width: 80px;
    }

    .tete-haut-gauche,
    .tete-haut-droit { top: 3%; }
    
    .tete-bas-gauche,
    .tete-bas-droit { bottom: 3%; }
}

@media (max-width: 480px) {
    .menu-vertical {
        flex-direction: row;
        top: auto;
        bottom: 5%;
        gap: 20px;
        padding: 15px 20px;
    }

    .menu-vertical a {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .logo-centre {
        width: 90vw;
    }

    .tete {
        width: 60px;
    }
}

/* PAGE PROJETS */
body {
    font-family: 'Lemon Milk', sans-serif;
    background: #F8EECB;
    overflow: auto; /* Scroll activé */
    min-height: 100vh;
}

.logo-projets {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 80px;
    transition: transform 0.3s ease;
}

.logo-projets:hover {
    transform: scale(1.05);
}

.logo-projets img {
    width: 100%;
    height: auto;
}

.menu-vertical {
    position: fixed;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 999;
}

.menu-vertical a {
    color: #2A2A2A;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.menu-vertical a:hover {
    opacity: 1;
}

.menu-vertical .active {
    opacity: 1;
    font-weight: bold;
}

.container-projets {
    padding: 100px 5% 150px;
    margin-left: 200px;
    max-width: 1400px;
}

.grid-projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.card-projet {
    display: block;
    background: #232020;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
}

.card-projet:hover {
    transform: translateY(-5px);
}

.card-projet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .container-projets {
        margin-left: 150px;
    }
}

@media (max-width: 992px) {
    .container-projets {
        margin-left: 0;
        padding: 130px 20px 50px;
    }
    
    .menu-vertical {
        top: 100px;
        left: 20px;
        flex-direction: row;
        transform: none;
        gap: 20px;
        background: rgba(255,255,255,0.9);
        padding: 15px 20px;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .grid-projets {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo-projets {
        width: 60px;
        top: 15px;
        left: 15px;
    }
    
    .card-projet {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .menu-vertical {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
    
    .container-projets {
        padding-top: 160px;
    }
}

/* PAGE PROJET INDIVIDUEL */
body {
    font-family: 'Lemon Milk', sans-serif;
    background: #F8EECB;
    overflow: auto;
    min-height: 100vh;
    color: #2A2A2A;
}

/* Logo */
.logo-projets {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 80px;
    transition: transform 0.3s ease;
}

.logo-projets:hover {
    transform: scale(1.05);
}

.logo-projets img {
    width: 100%;
    height: auto;
}

/* Menu */
.menu-vertical {
    position: fixed;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 999;
}

.menu-vertical a {
    color: #2A2A2A;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.menu-vertical a:hover {
    opacity: 1;
}

/* Contenu principal */
.container-projet {
    padding: 100px 8% 50px;
    margin-left: 200px;
    max-width: 1400px;
}

.projet-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 0.9;
}

.sous-titre {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Sections */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 3rem 0;
}

h2, h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Galerie */
.grid-galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 4rem 0;
}

.item {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item:hover {
    transform: translateY(-5px);
}

/* Placement spécifique */
.logo-carre { grid-column: 1 / 2; aspect-ratio: 1/1; }
.video-machine { grid-column: 2 / 4; aspect-ratio: 16/9; }
.video-promo { grid-column: 1 / 3; aspect-ratio: 16/9; }
.feed-insta { grid-column: 3 / 4; aspect-ratio: 1/1; }
.elements-3d { grid-column: 1 / 2; aspect-ratio: 1/1; }
.logo-rectangle { grid-column: 2 / 4; aspect-ratio: 2/1; }

video, .grid-galerie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1200px) {
    .container-projet {
        margin-left: 150px;
    }
}

@media (max-width: 992px) {
    .container-projet {
        margin-left: 0;
        padding: 130px 20px 50px;
    }
    
    .menu-vertical {
        top: 100px;
        left: 20px;
        flex-direction: row;
        transform: none;
        gap: 20px;
        background: rgba(255,255,255,0.9);
        padding: 15px 20px;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .grid-2-col,
    .grid-galerie {
        grid-template-columns: 1fr;
    }
    
    .projet-header h1 {
        font-size: 2.5rem;
    }
    
    .item {
        grid-column: 1 / -1 !important;
        aspect-ratio: unset;
        max-height: 500px;
    }
    
    h2, h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-vertical {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
    
    .container-projet {
        padding-top: 160px;
    }
    
    .projet-header h1 {
        font-size: 2rem;
    }
}
.video-machine,
.video-promo {
    position: relative;
    background: #000; /* Fond noir pour mieux encadrer le contenu */
}

.gif-autoplay {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Conserve les proportions sans rognage */
    display: block;
}

/* Conserver le ratio 16/9 pour l'emplacement */
.video-machine {
    aspect-ratio: 16/9;
}

/* ========================= */
/* NOUVEAUX STYLES AJOUTÉS */
/* ========================= */

/* Overlay pour l'affichage plein écran */
.media-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Conteneur pour le média agrandi */
.media-container {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    cursor: default;
}

/* Styles pour les médias dans l'overlay */
.media-container img,
.media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

/* Bouton de fermeture */
.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.close-overlay:hover {
    color: #F8EECB;
    transform: scale(1.1);
}

/* Effet de zoom sur les miniatures */
.grid-galerie img,
.grid-galerie video {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.grid-galerie img:hover,
.grid-galerie video:hover {
    transform: scale(1.02);
}

/* Animation pour l'apparition de l'overlay */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.media-overlay {
    animation: fadeIn 0.3s ease-out;
}

/* Style pour les vidéos dans la galerie (miniatures) */
.grid-galerie video {
    object-fit: cover;
    background: #000;
}

/* Style pour les vidéos en plein écran */
.media-container video {
    background: #000;
    outline: none;
}

/* ========================= */
/* STYLES POUR YOUTUBE */
/* ========================= */

/* Conteneur vidéo YouTube */
.video-promo iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    aspect-ratio: 16/9;
}

/* Désactiver la lightbox pour YouTube */
.video-promo {
    cursor: default !important;
}

.video-promo iframe {
    cursor: default !important;
}

/* Adaptation responsive pour YouTube */
@media (max-width: 768px) {
    .video-promo iframe {
        height: 300px !important;
    }
}

/* ========================= */
/* CURSEUR PERSONNALISÉ */
/* ========================= */

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #2A2A2A;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: 
        width 0.3s ease,
        height 0.3s ease,
        border-width 0.3s ease,
        background 0.3s ease;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    border-width: 1px;
    background: rgba(248, 238, 203, 0.3);
}

/* ========================= */
/* LIGHTBOX */
/* ========================= */

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-media {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #F8EECB;
}