/* Reset et styles de base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-body: "Montserrat", sans-serif;
    --font-size-base: 16px;
    --gap-standard: 1rem;
    --z-header: 1000;
    --z-modal: 2000;
    --transition-standard: 0.3s ease;
    --container-padding: 2rem;
    
    /* Theme colors */
    --color-primary: #2D3436;
    --color-secondary: #0984E3;
    --color-accent: #DFEAEF;
    --background-color: #fffaf4;
}

body {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: var(--font-size-base);
    color: #1f1f25;
    line-height: 1.5;
    background: var(--background-color);
}

/* Header et Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    padding: 2rem;
    background: transparent;
    transform: translateY(0);
    transition: transform 0.4s ease;
    will-change: transform;
}

.main-nav {
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.site-title {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 2.5rem;
    color: #1f1f25;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.site-subtitle {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.9rem;
    color: #1f1f25;
    margin-top: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 900;
    position: relative;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #666;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #FF6B6B;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #FF6B6B;
}

.nav-link.active::after {
    transform: scaleX(1);
    background-color: #FF6B6B;
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* Container général */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Sections */
section {
    padding: var(--container-padding) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

section:last-of-type {
    margin-bottom: 0;
}

/* Section À Propos */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px var(--container-padding) 40px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.presentation-image {
    flex: 1;
    max-width: 50%;
    margin-top: 90px;
}

.motivation-letter {
    flex: 1;
    max-width: 45%;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-presentation {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-cv {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Écrans 1440p et plus */
@media screen and (min-width: 2560px) {
    .about-cv {
        max-width: 1500px;
        width: 115%;
    }
}

/* Écrans 1440p */
@media screen and (max-width: 2559px) and (min-width: 1920px) {
    .about-cv {
        max-width: 1500px;
        width: 115%;
    }
}

/* Écrans 1080p */
@media screen and (max-width: 1919px) and (min-width: 1366px) {
    .about-cv {
        max-width: 1200px;
        width: 110%;
    }
}

/* Écrans intermédiaires */
@media screen and (max-width: 1365px) and (min-width: 1024px) {
    .about-cv {
        max-width: 1000px;
        width: 105%;
    }
}

/* Tablettes */
@media screen and (max-width: 1023px) and (min-width: 768px) {
    .about-cv {
        max-width: 800px;
        width: 100%;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .about-container {
        padding: 100px var(--container-padding) 40px;
    }
    
    .about-cv {
        max-width: 600px;
        width: 98%;
        margin-top: 10px;
    }
}

.cv-download-button {
    margin-top: 50px;
    padding: 15px 30px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
}

.cv-download-button:hover {
    background-color: var(--color-secondary);
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .presentation-image,
    .motivation-letter {
        max-width: 100%;
    }

    .presentation-image {
        margin-top: 150px;
    }

    .about-container {
        padding: 100px var(--container-padding) 40px;
    }
}

/* Section CV */

/* Préserver les styles existants du carrousel */
.video-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin-top: -100px;
}

.video-container {
    position: relative;
    transform-style: preserve-3d;
    transform: translateX(-1000px);
    left: 50%;
}

.video-item {
    position: absolute;
    width: 480px;
    height: 270px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50%;
    transform-origin: top;
    transform: scaleY(-1);
    pointer-events: none;
    overflow: hidden;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .main-nav {
        padding: 1rem;
    }
}

/* Styles spécifiques pour le mode projets */

/* Styles pour les modales */

/* Ajouter ces styles pour la nouvelle mise en page */

/* Section Accueil */

/* Côté About */

/* Côté CV */

/* Section Projets */
.section-projects {
    min-height: 100vh;
    position: relative;
    background-color: transparent;
    padding-top: 40px;
    margin-top: 0;
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin-top: -150px;
}

.video-container {
    position: relative;
    transform-style: preserve-3d;
}

.video-item {
    position: absolute;
    width: 480px;
    height: 270px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50%;
    transform-origin: top;
    transform: scaleY(-1);
    pointer-events: none;
    overflow: hidden;
}

/* Media Queries */


/* Ajuster le scroll snap */
html {
    scroll-behavior: smooth;
}

main {
    scroll-snap-type: y mandatory;
}

section {
    scroll-snap-align: start;
}

/* Styles pour la modale plein écran */
.video-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: none;
    justify-content: center;
    align-items: center;
}

.video-fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Style par défaut pour les vidéos horizontales */
.video-fullscreen-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* Styles spécifiques pour les vidéos verticales */
.video-fullscreen-content.vertical {
    width: auto;
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 0;
}

.video-fullscreen-content.vertical video {
    width: 100%;
    height: 85vh;
    max-width: none;
}

.video-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--background-color);
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-color);
}

/* Ajuster la position du bouton de fermeture pour les vidéos verticales */
.video-fullscreen-content.vertical .video-fullscreen-close {
    right: -50px;
    top: 0;
}

.video-fullscreen-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.video-fullscreen-close svg {
    width: 24px;
    height: 24px;
    color: inherit;
    fill: currentColor;
}

/* Ajustements pour les écrans 1920p et moins */
@media screen and (max-width: 1920px) {
    .video-fullscreen-content {
        padding: 40px;
    }

    .video-fullscreen-content.vertical {
        padding: 40px 0;
        max-width: 400px;
    }
}

/* Ajustements pour les écrans 1440p et moins */
@media screen and (max-width: 1440px) {
    .video-fullscreen-content {
        padding: 30px;
    }

    .video-fullscreen-content.vertical {
        padding: 30px 0;
        max-width: 350px;
    }
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .video-fullscreen-content {
        padding: 20px;
    }

    .video-fullscreen-content.vertical {
        padding: 20px;
        max-width: 100%;
    }

    .video-fullscreen-content.vertical .video-fullscreen-close {
        right: 20px;
        top: 20px;
    }

    .video-fullscreen-content.vertical video {
        height: 80vh;
    }
}

/* Theme Switch Styles */

/* Ajuster le header pour le mode sombre */

/* Ajuster la navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* Ajuster le theme switch */

/* S'assurer que le texte About reste inchangé */

/* Ajuster les liens de navigation */
.nav-links {
    display: flex;
    gap: var(--gap-standard);
    list-style: none;
    margin-left: auto;
    margin-right: 1rem;
}

/* Ajustements pour les écrans 2560x1440 */
@media screen and (min-width: 2000px) {

    /* Ajustements du carousel pour 2560x1440 */
    .video-item {
        width: 720px; /* Plus grand pour les grands écrans */
        height: 405px;
    }

    .video-container {
        transform: translateX(-1600px); /* Ajuster la position */
    }

    .video-carousel {
        height: 90vh; /* Réduire légèrement la hauteur */
        margin-top: 5vh; /* Centrer verticalement */
    }
}

/* Améliorations pour mobile */

    /* Ajout des contrôles tactiles */
    

    /* Ajustements de la navigation */
    .nav-container {
        padding: 0.5rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.25rem;
        font-size: 0.9rem;
    }


/* Ajustements pour très petits écrans */

/* Ajouter ces styles pour le hamburger menu */

/* Modifier les media queries pour mobile */
@media screen and (max-width: 768px) {

    .nav-links {
        display: none;
    }

    /* Ajuster le carousel pour mobile */
    .video-carousel {
        transform: translateX(-10%); /* Centrer le carousel */
    }

    .video-container {
        transform: translateX(-50px); /* Ajuster la position */
    }

    .video-item {
        width: 280px; /* Réduire la taille */
        height: 157.5px;
    }
}

/* Styles pour le menu hamburger actif */

/* Modifier les styles du carousel pour mobile */


/* Styles pour la modale du CV */

/* Ajustements pour mobile */

/* Styles pour les vidéos verticales */
.video-wrapper.vertical-video {
    width: 270px; /* Largeur réduite pour maintenir les proportions */
    height: 480px; /* Hauteur ajustée pour le format 9:16 */
    position: relative;
    left: 50%; /* Centre la vidéo */
    transform: translateX(-50%);
}

.video-wrapper.vertical-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Ajuster la taille des éléments video-item pour les vidéos verticales */
.video-item .vertical-video {
    width: 270px;
    height: 480px;
}

/* Ajuster la réflexion pour les vidéos verticales */
.vertical-video .video-reflection {
    height: 30%; /* Réduire légèrement la réflexion pour les vidéos verticales */
}


/* Ajuster la position du titre pour les vidéos verticales */

/* Ajuster la position active pour les vidéos verticales */



/* Spécifique aux vidéos horizontales */

/* Masquer les boutons de navigation par défaut */

/* Afficher les boutons uniquement sur mobile */


/* Ajuster la taille des vidéos verticales pour les écrans 1920x1080 et moins */
@media screen and (max-width: 1920px) {
    .video-wrapper.vertical-video {
        width: 180px; /* Réduire davantage la largeur */
        height: 320px; /* Maintenir le ratio 9:16 */
    }

    .video-item .vertical-video {
        width: 180px;
        height: 320px;
    }

    /* Ajuster la largeur du titre pour qu'il corresponde à la nouvelle taille */
}

/* Ajuster la position du titre pour les vidéos verticales actives */

/* Maintenir la position pour les vidéos non actives */

/* Ajuster pour les écrans 1920x1080 et moins */

/* Styles pour la navigation à la souris dans les modales */

/* Ajuster les conteneurs des modales */

/* Ajuster la section accueil et son contenu pour les écrans 1920x1080 et moins */
@media screen and (max-width: 1920px) {

    /* Ajuster la taille des images pour qu'elles tiennent dans la vue */

    /* Assurer que les images restent dans leur conteneur */
}

/* Ajustements supplémentaires pour les écrans plus petits mais pas mobiles */

/* Les styles mobiles existants restent inchangés */
@media screen and (max-width: 768px) {
    /* ... styles mobiles existants ... */
}

/* Ajuster les styles pour le theme switch */

/* Sur desktop, cacher le switch mobile et montrer le switch desktop */

/* Sur mobile, cacher le switch desktop et la navigation, montrer le switch mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        display: flex !important;
        gap: 2rem;
        margin-top: 0.5rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }

    .brand-container {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
    }

    /* Assurer que les liens sont visibles */
    .nav-link {
        display: block;
        font-size: 0.9rem;
        padding: 0.5rem;
        color: #1f1f25;
    }
}

/* Supprimer les styles qui cachent la navigation */

/* Ajouter les styles pour le logo */

/* Afficher le logo uniquement sur mobile */




/* Supprimer le padding-bottom du main puisque le footer n'est plus fixed */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ajuster la nav-brand pour mobile */
@media screen and (max-width: 768px) {

    /* Ajuster les contrôles du carousel */
    .carousel-controls {
        position: relative; /* Changer de fixed à relative */
        bottom: auto; /* Supprimer la position bottom */
        margin-top: 20px; /* Ajouter de l'espace au-dessus des contrôles */
        display: none; /* Cacher par défaut */
    }

    /* Afficher les contrôles uniquement dans la section projects */
    .section-projects .carousel-controls {
        display: flex;
        justify-content: center;
        gap: 30px;
        z-index: 1000;
    }

    /* Ajuster la structure du carousel pour mobile */
    .video-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding-bottom: 20px;
    }

    .video-container {
        margin-bottom: 20px;
    }
}

/* Ajuster l'espacement du carousel sur mobile */
@media screen and (max-width: 768px) {
    .section-projects {
        padding-top: 30px;
        min-height: 100vh;
    }

    .video-carousel {
        margin-top: 0;
        padding-bottom: 50px;
        padding-top: 102px;
    }
}

/* Ajustements uniquement pour mobile */
@media screen and (max-width: 768px) {
    /* Ajuster l'espacement des sections */
    .section-projects {
        padding-top: 30px;
        min-height: 100vh;
    }

    /* Garder les styles du compteur de slides */
    .carousel-controls {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin-top: 20px;
    }

    .slide-counter {
        min-width: 60px;
        text-align: center;
        font-size: 1.2rem;
        color: white;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 10px;
    }

    .carousel-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
    }
}

/* Masquer les titres des vidéos */

/* Ajustements pour les grands écrans */
@media screen and (min-width: 1440px) {
    .section-projects {
        padding-top: 20px;
    }

    .video-carousel {
        margin-top: -250px;
        height: 90vh;
    }
}

/* Ajustements pour les très grands écrans */
@media screen and (min-width: 1920px) {
    .video-carousel {
        margin-top: -300px;
    }
}

/* Styles pour les boutons de navigation */
.carousel-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
    bottom: -80px;
}

/* Ajustements pour les très grands écrans (4K et +) */
@media screen and (min-width: 2560px) {
    .carousel-controls {
        left: 52.5%;
    }
}

/* Ajustements spécifiques pour les MacBook et autres écrans Mac */
@media screen and (min-width: 2560px) and (min-height: 1664px) and (max-height: 1664px) {
    .carousel-controls {
        left: 48.4%;
    }
}

/* Ajustements pour les écrans Windows 1440p */
@media screen and (min-width: 2560px) and (max-height: 1440px) {
    .carousel-controls {
        left: 51.5%;
    }
}

/* Ajustements pour les écrans 1440p */
@media screen and (max-width: 2559px) and (min-width: 1920px) {
    .carousel-controls {
        left: 51.5%;
    }
}

/* Ajustements pour les écrans 1080p */
@media screen and (max-width: 1919px) and (min-width: 1366px) {
    .carousel-controls {
        left: 50.4%;
    }
}

/* Ajustements pour les écrans intermédiaires */
@media screen and (max-width: 1365px) and (min-width: 1024px) {
    .carousel-controls {
        left: 51.5%;
    }
}

/* Ajustements pour tablettes */
@media screen and (max-width: 1023px) and (min-width: 768px) {
    .carousel-controls {
        left: 51%;
    }
}


/* Ajuster la position des contrôles en fonction du type de vidéo */
.video-item.active .vertical-video ~ .carousel-controls {
    width: 270px; /* Largeur d'une vidéo verticale */
}

.video-item.active:not(.vertical-video) ~ .carousel-controls {
    width: 480px; /* Largeur d'une vidéo horizontale */
}

.carousel-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.carousel-button img {
    width: 30px;
    height: 23px;
    object-fit: contain;
}

.carousel-button:hover {
    transform: scale(1.1);
}

.carousel-button:active {
    transform: scale(0.95);
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .carousel-controls {
        bottom: -60px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button img {
        width: 24px;
        height: 24px;
    }

    .video-item.active .vertical-video ~ .carousel-controls {
        width: 240px; /* Largeur d'une vidéo verticale sur mobile */
    }

    .video-item.active:not(.vertical-video) ~ .carousel-controls {
        width: 95vw; /* Largeur d'une vidéo horizontale sur mobile */
        max-width: 500px;
    }
}

/* Masquer le compteur de slides */
.slide-counter {
    display: none;
}

/* Styles pour le modal du CV en plein écran */

/* Ajustements pour mobile */

/* Ajustements pour mobile */

/* Styles pour les vidéos sur mobile */
@media screen and (max-width: 1023px) {
    /* ... autres styles ... */

    /* Styles du carousel */
    .video-carousel {
        height: auto;
        transform: none;
        perspective: none;
        margin-top: 0;
        padding-bottom: 50px;
        padding-top: 150px;
    }

    .video-container {
        position: relative;
        transform: none;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-wrapper {
        background-color: transparent;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        height: 100%;
    }

    .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 15px;
    }

    .video-item {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        width: 85vw;
        max-width: 400px;
        margin: 0 auto;
        display: none;
    }

    .video-item.active {
        display: block;
        z-index: 1;
    }

    .vertical-video {
        aspect-ratio: 9/16;
    }

    /* Masquer la réflexion sur mobile */
    .video-reflection {
        display: none;
    }
}

/* Styles pour la modale vidéo en plein écran */
.video-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: none;
    justify-content: center;
    align-items: center;
}

.video-fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-fullscreen-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* Styles spécifiques pour les vidéos verticales */
.video-fullscreen-content.vertical {
    width: auto;
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 0;
}

.video-fullscreen-content.vertical video {
    width: 100%;
    height: 85vh;
    max-width: none;
}

.video-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--background-color);
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-color);
}

/* Ajuster la position du bouton de fermeture pour les vidéos verticales */
.video-fullscreen-content.vertical .video-fullscreen-close {
    right: -50px;
    top: 0;
}

.video-fullscreen-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.video-fullscreen-close svg {
    width: 24px;
    height: 24px;
    color: inherit;
    fill: currentColor;
}

/* Ajustements pour les écrans 1920p et moins */
@media screen and (max-width: 1920px) {
    .video-fullscreen-content {
        padding: 40px;
    }

    .video-fullscreen-content.vertical {
        padding: 40px 0;
        max-width: 400px;
    }
}

/* Ajustements pour les écrans 1440p et moins */
@media screen and (max-width: 1440px) {
    .video-fullscreen-content {
        padding: 30px;
    }

    .video-fullscreen-content.vertical {
        padding: 30px 0;
        max-width: 350px;
    }
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .video-fullscreen-content {
        padding: 20px;
    }

    .video-fullscreen-content.vertical {
        padding: 20px;
        max-width: 100%;
    }

    .video-fullscreen-content.vertical .video-fullscreen-close {
        right: 20px;
        top: 20px;
    }

    .video-fullscreen-content.vertical video {
        height: 80vh;
    }
}

.brand-container {
    text-align: left;
}

.brand-container p {
    margin: 0.3rem 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #1f1f25;
}

.brand-container p:last-child {
    color: #1f1f25;
}

.brand-container a {
    color: #FF6B6B;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.brand-container a:hover {
    color: #FF8787;
}

/* Styles pour mobile et tablettes */
@media screen and (max-width: 1023px) {
    /* ... autres styles ... */

    /* Styles du carousel */
    .video-carousel {
        height: auto;
        transform: none;
        perspective: none;
        margin-top: 0;
        padding-bottom: 50px;
        padding-top: 150px;
    }

    .section-projects {
        padding-top: 30px;
        min-height: 100vh;
        padding-bottom: 30px;
    }

    /* ... autres styles ... */
}

/* Styles pour les images cliquables */
.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
}

/* Modal plein écran pour les images */
.image-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.fullscreen-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 5px;
    transform-origin: center;
    transition: transform 0.1s ease-out;
}

.image-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--background-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-color);
    padding: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.image-fullscreen-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.image-fullscreen-close svg {
    width: 24px;
    height: 24px;
    color: inherit;
    fill: currentColor;
}
