body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000000; /* Fond noir */
    color: #ffffff; /* Texte blanc pour contraster */
}

/* 1. BLOC EN-TÊTE (fond noir avec logo à gauche, bouton à droite) */
.header-section {
    background: #111111 !important; /* Gris très foncé pour l'en-tête */
    padding: 30px 20px 20px; /* Encore moins d'espace vertical */
    text-align: center;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #333; /* Séparation subtile */
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between; /* Logo à gauche, bouton à droite */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo à gauche */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px; /* Ajustez selon votre logo */
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.8em; /* Gros comme demandé */
    color: #ccc;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contenu central (VIDÉ) */
.header-main {
    flex: 1;
    min-width: 300px;
}

/* Bouton email à droite (pictogramme) */
.email-button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 12px 20px;
    background: #007bff;
    color: white !important;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    color: white !important;
}

.email-button .icon {
    font-size: 1.2em;
}

/* 2. SHOWREEL (fond noir, vidéo plus visible) */
.showreel-section {
    position: relative;
    height: 70vh; /* Hauteur fixe pour le showreel */
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}

#showreel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.showreel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Overlay plus léger sur fond noir */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. TITRE PORTFOLIO */
.portfolio-title {
    text-align: center;
    padding: 20px 0;
    background: #111111;
    border-bottom: 1px solid #333;
}

.portfolio-title h2 {
    font-size: 2em;
    color: #cccccc;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* 4. BANDEAUX PROJETS (sur fond noir) */
.projects {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent; /* Transparent sur fond noir */
}

.project-wrapper {
    position: relative;
}

.project-band {
    position: relative;
    width: 100%;
    height: 0; /* Pour le ratio 16:7 */
    padding-bottom: 43.75%; /* 7/16 = 43.75% */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* Ombre plus marquée sur noir */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
}

.project-band:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.project-band .play-button {
    display: none; /* Caché par défaut */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.project-band.open .play-button {
    display: flex; /* Affiché quand open */
}

.project-band:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.project-info {
    display: none; /* Cachée par défaut */
    padding: 25px;
    background: #1a1a1a; /* Gris très foncé */
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin-top: -10px; /* Chevauche légèrement pour un effet fluide */
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.project-info h3 {
    font-size: 1.8em;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
}

.project-info .hashtags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-info .hashtags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-info .description {
    text-align: center;
    color: #999;
    font-size: 1em;
    line-height: 1.6;
}

.project-wrapper.open .project-info {
    display: block; /* Affichée quand open */
}

.project-video {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98); /* Fond presque noir */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal.active video#modal-video {
    max-width: 90vw;           /* limite la largeur pour ne pas déborder */
    max-height: 90vh;          /* limite la hauteur pour ne pas déborder */
    width: auto;               /* important */
    height: auto;              /* important */
    object-fit: contain;       /* garde tout le contenu visible */
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

/* Responsive pour le header et showreel */
@media (max-width: 768px) {
    .header-section {
        /* RÉDUCTION DES MARGE VERTICALES SUR MOBILE */
        padding: 10px 15px 8px; /* Réduit de 20px→10px en haut, 15px→8px en bas */
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 90px; /* Réduit de 110px à 90px */
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 8px; /* Gap modéré pour l'entre-deux */
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo {
        order: 1; /* Logo en HAUT sur mobile */
        justify-content: center;
        width: 100%;
    }
    
    .logo-text {
        font-size: 1.4em;
    }
    
    .email-button {
        order: 2; /* Bouton EN DESSOUS du logo sur mobile */
        /* RÉDUCTION DE LA LARGEUR SUR MOBILE */
        width: auto; /* Largeur automatique au lieu de 100% */
        max-width: 120px; /* Largeur réduite */
        min-width: 100px; /* Largeur minimale pour lisibilité */
        /* RÉDUCTION DE 50% DE LA TAILLE SUR MOBILE */
        font-size: 0.55em; /* 50% plus petit */
        padding: 6px 10px; /* Padding réduit de 50% */
        gap: 4px; /* Gap réduit */
        justify-content: center;
        /* CENTRAGE VERTICAL */
        margin-top: 0;
        position: relative;
        top: 0;
    }
    
    .email-button .icon {
        font-size: 0.6em; /* Icône 50% plus petite */
    }
    
    .header-main {
        order: 3; /* Contenu au milieu */
        min-width: auto;
        display: none; /* Caché car vide */
    }
    
    .showreel-section {
        /* RÉDUCTION DE 30% AU TOTAL SUR MOBILE */
        height: 35vh; /* 50vh - 30% = 35vh */
    }

    .portfolio-title {
        width: 100%; /* Toute la largeur */
        display: flex; /* Flexbox pour centrage */
        justify-content: center; /* Centrage horizontal */
        align-items: center; /* Centrage vertical */
        min-height: 60px; /* Hauteur fixe pour équilibrer l'espace */
        padding: 0; /* Suppression du padding pour un contrôle précis */
        background: #111111;
        border-bottom: 1px solid #333;
    }
    
    .portfolio-title h2 {
        font-size: 1.5em; /* Plus petit sur mobile */
        margin: 0; /* Supprimer toute marge parasite */
        width: auto; /* S'assurer que le texte ne force pas de décalage */
        line-height: 1; /* Contrôle de la hauteur de ligne */
    }
    
    .projects {
        padding: 20px 15px;
    }
    
    .project-band .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
    
    .project-info h3 {
        font-size: 1.5em;
    }
    
    .project-info .hashtags span {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .project-info .description {
        font-size: 0.9em;
    }
    
    .logo img {
        height: 40px;
    }
}