/* ===== STYLES ===== */

/* Fonts personnalisées */
@font-face {
    font-family: 'FuturaStd-Heavy';
    src: url('./fonts/Futura/FuturaStd-Heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Ultra';
    src: url('./fonts/gotham/Gotham-Ultra.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #1a1a1a;
}

.section-dark .section-title::after {
    background: white;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.4;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    font-variant: lining-nums;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 4rem;
    /* max-width: 900px; */ 
    margin: 0 2rem;
    margin-top: 8rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 2rem auto 0;
    opacity: 0.95;
    line-height: 1.7;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    top: 8px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-logo:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

/* Footer content - copyright centré, langue à droite */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-content p {
    text-align: center;
}

.footer .lang-switcher {
    position: absolute;
    left: 0;
}

/* Lang switcher dans le footer */
.footer .lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer .lang-switcher a {
    color: #999;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.65rem;
}

.footer .lang-switcher a:hover {
    color: white;
}

.footer .lang-switcher .nav-separator {
    color: #999;
    opacity: 0.7;
    font-size: 0.65rem;
}

.footer .lang-switcher .lang-label {
    color: #999;
    font-size: 0.65rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-separator {
    opacity: 0.7;
}

/* Masquer le logo au début sur desktop */
.nav-logo-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Afficher le logo à partir de la section Book */
.nav-logo-visible {
    opacity: 1;
    visibility: visible;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-light {
    background: transparent;
}

.section-dark {
    background: #191919;
    color: white;
}

/* Grid layouts */
.photo-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid-4 .photo-item {
    aspect-ratio: 9/16;
    overflow: hidden;
}

.grid-4 .photo-item img,
.grid-4 .photo-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles pour les éléments cliquables du carrousel */
/* Styles supprimés - les photos ne sont plus cliquables directement */

/* Container du carrousel avec zones de clic sur les côtés */
.carousel-container {
    position: relative;
    width: 100%;
}

/* Zones de clic sur les côtés de l'écran */
.screen-click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 100;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.screen-click-zone:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.click-left {
    left: 0;
}

.click-right {
    right: 0;
}

/* Pas d'indicateurs visuels - carrousel uniquement mobile */

/* Styles pour les éléments du carrousel - nettoyés */

/* ===== RETOUR À LA LIGNE MOBILE POUR SOUS-TITRE FILM ===== */
.mobile-break {
    display: none; /* Masqué par défaut sur desktop */
}

@media (max-width: 768px) {
    .mobile-break {
        display: block; /* Affiché sur mobile */
    }
}

/* ===== SYSTÈME VOIR PLUS/VOIR MOINS POUR CRÉDITS MOBILE ===== */
.credits-hidden {
    display: none;
}

.credits-toggle {
    display: none; /* Masqué par défaut */
    background: none;
    border: none;
    color: #ffffff; /* Blanc sur fond #191919 pour contraste optimal */
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    width: 100%;
    text-align: left;
    font-weight: 500; /* Légèrement plus gras pour la lisibilité */
}

.credits-toggle:hover {
    color: #ffffff; /* Reste blanc mais avec opacité réduite */
    opacity: 0.8;
}

/*.credits-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 2px;
} */

.toggle-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    font-weight: bold; /* Flèche plus visible */
    color: #ffffff; /* Même contraste que le texte */
}

.credits-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Affichage mobile uniquement */
@media (max-width: 768px) {
    .credits-toggle {
        display: block;
    }
    
    .credits-hidden {
        display: none;
    }
    
    .credits-toggle.expanded + .credits-hidden {
        display: block;
    }
}

/* Desktop : toujours tout afficher */
@media (min-width: 769px) {
    .credits-hidden {
        display: block !important;
    }
    
    .credits-toggle {
        display: none !important;
    }
}

/* Carrousel uniquement en version mobile - même style que triptyque */
@media (min-width: 769px) {
    /* Afficher en grille 4 colonnes sur desktop */
    .carousel-container .photo-grid.grid-4 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1rem;
        overflow: visible;
        scroll-snap-type: none;
    }
    
    .carousel-container .photo-grid.grid-4 .photo-item {
        flex: none;
        min-width: auto;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 768px) {
    /* Carrousel mobile - même comportement que triptyque */
    .carousel-container .photo-grid.grid-4 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0rem;
        padding: 0 1rem;
        margin: 3rem 0 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        scroll-padding: 0 1rem;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
    }
    
    .carousel-container .photo-grid.grid-4::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-container .photo-grid.grid-4 .photo-item {
        flex: 0 0 90%;
        scroll-snap-align: center;
        min-width: 90%;
        max-width: 90%;
        width: 90%;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
        margin: 0 0.5rem;
        cursor: pointer;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .carousel-container .photo-grid.grid-4 .photo-item img,
    .carousel-container .photo-grid.grid-4 .photo-item video {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        transition: transform 0.3s ease;
    }
    
    .carousel-container .photo-grid.grid-4::after {
        content: '';
        flex: 0 0 1rem;
        min-width: 1rem;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn-left {
    left: -24px;
}

.carousel-btn-right {
    right: -24px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s ease;
    background: white;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video container */
.video-section {
    text-align: center;
    background: #191919;
    padding: 4rem 0;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.photo-context {
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
}

/* Images dans la section sombre */
.video-section .photo-grid {
    margin: 3rem auto 0;
    max-width: 1200px;
    padding: 0 2rem;
}

.video-section .photo-context {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem auto 1rem;
    text-align: right;
    max-width: 1200px;
    padding-right: 2rem;
}

.video-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Fallback pour les navigateurs qui ne supportent pas aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .video-container {
        height: 0;
        padding-bottom: 56.25%; /* 9/16 = 0.5625 = 56.25% */
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Overlay "Bientôt disponible" */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.coming-soon {
    text-align: center;
    color: white;
    padding: 2rem;
}

.coming-soon h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.coming-soon p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Film credits */
.film-credits {
    color: white;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
    padding: 0 2rem;
}

.film-title-1 {
    font-family: 'FuturaStd-Heavy', 'Futura', 'Futura PT', 'Avenir', 'Helvetica Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    line-height: 1.05em;
    text-transform: uppercase;
}

.film-title-2 {
    font-family: 'Gotham Ultra', 'Avenir', 'Helvetica Neue', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    line-height: 1em;
    text-transform: uppercase;
}
.film-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.film-genre {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
    font-weight: 500;
}

.film-credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.film-synopsis,
.film-credits-details {
    margin-bottom: 0;
}

.film-synopsis h5,
.film-credits-details h5 {
    font-family: Inter, serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.film-synopsis p,
.film-credits-details p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    opacity: 0.9;
}

.credit-label {
    color: #f0f0f0;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.6rem;
}

.profile-label {
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.film-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

/* Quote sections */
.quote-section {
    padding: 8rem 0;
    text-align: center;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* About section */
.about-section {
    padding: 4rem 0;
    background: #191919;
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.about-card {
    /* background: rgba(255, 255, 255, 0.05); */
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.about-card:hover {
    transform: none;
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.about-formation {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    line-height: 1em;
    font-weight: 500;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: white;
}

.about-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
}

/* Caractéristiques Section */
.caracteristiques-section {
    padding: 6rem 0;
    background: #ffffff;
    color: #1a1a1a;
}

.caracteristiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.caracteristique-card {
    /* background: rgba(0, 0, 0, 0.05); */
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
}

.caracteristique-card:hover {
    transform: none;
}

.caracteristique-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.caracteristique-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
}

.caracteristique-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 0.07em;
    background: #1a1a1a;
}

.caracteristique-text {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

/* Player Audio HTML5 Natif dans les caractéristiques */
.caracteristique-audio {
    text-align: center;
}

.audio-context {
    color: rgba(0, 0, 0, 0.8);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.audio-player {
    width: 100%;
    max-width: 320px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    filter: invert(1) hue-rotate(180deg) brightness(1.11) saturate(0);
}

/* Style minimaliste pour les contrôles audio */
.audio-player::-webkit-media-controls-panel {
    background: transparent;
}

.audio-player::-webkit-media-controls-play-button {
    background: #1a1a1a;
    border-radius: 50%;
    border: none;
    filter: invert(1) hue-rotate(180deg);
}

.audio-player::-webkit-media-controls-play-button:hover {
    background: #333333;
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.audio-player::-webkit-media-controls-timeline {
    background: rgba(26, 26, 26, 0.2);
    border-radius: 4px;
    height: 3px;
    filter: invert(1) hue-rotate(180deg);
}

.audio-player::-webkit-media-controls-current-time-display,
.audio-player::-webkit-media-controls-time-remaining-display {
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 500;
    filter: invert(1) hue-rotate(180deg);
}

.audio-player::-webkit-media-controls-volume-slider {
    background: rgba(26, 26, 26, 0.2);
    border-radius: 4px;
    height: 3px;
    filter: invert(1) hue-rotate(180deg);
}

.audio-player::-webkit-media-controls-mute-button {
    background: #1a1a1a;
    border-radius: 4px;
    border: none;
    filter: invert(1) hue-rotate(180deg);
}

.audio-player::-webkit-media-controls-mute-button:hover {
    background: #333333;
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

/* Credits inline */
.credits-inline {
    background: rgba(25, 25, 25, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.credits-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.credits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.credits-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.credits-content strong {
    color: #1a1a1a;
}

/* Correction de l'espacement des sections */
.section-dark {
    margin: 0;
}

.section-light {
    margin: 0;
}

.about-section {
    margin: 0;
}

.section-dark .about-text {
    color: #e0e0e0;
}

.section-dark .about-title {
    color: white;
}

/* Contact section */
.contact-section {
    padding: 4rem 0;
    background: #191919;
    color: white;
    text-align: center;
    position: relative;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    line-height: 1.2em;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: white;
}

.contact-text {
    font-size: 1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    background: white;
    color: #1a1a1a;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.contact-email:hover::before {
    left: 100%;
}

.contact-email:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    display: grid;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #191919;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* .form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: white;
    background: #191919;
} */

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
    background: #191919;
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: white;
    background: #191919;
    padding: 0 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group input:not(:placeholder-shown)::placeholder,
.form-group textarea:not(:placeholder-shown)::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: white;
}

.file-label {
    position: static !important;
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.file-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    background: white;
    color: #1a1a1a;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Styles pour les erreurs de formulaire */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.field-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

/* Messages de contact */
.contact-message {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.contact-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    color: #4caf50;
}

.contact-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    color: #f44336;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

/* Animation pour l'apparition des messages */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour le bouton en état de chargement */
.submit-btn .btn-loading {
    display: none;
}

.submit-btn:disabled .btn-text {
    display: none;
}

.submit-btn:disabled .btn-loading {
    display: inline;
}

/* Bouton Retour en Haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #191919;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: #191919;
    color: #999;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */

@media (max-width: 1200px) and (min-width: 999px) {
    .video-section .photo-context {
        max-width: 1200px;
        padding-right: 2rem;
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .video-section .photo-context {
        max-width: 1000px;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    

    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Styles supprimés - redondants avec .carousel-container .photo-grid.grid-4 */
    
    /* Le grid-3 reste en grid sur desktop mais passe en flexbox sur mobile via les styles spécifiques */
    
    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
        margin-top: 12rem;
    }
    
    .hero-image {
        object-position: 46% center; /* Déplace l'image */
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-email {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Masquer les images de fond sur mobile */
    .photo-item img[src*="Background_DSC_4730"],
    .photo-item img[src*="Background_P1200178"] {
        display: none;
    }
    
    /* Cropper les photos grid-1 en carré sur mobile */
    .photo-grid.grid-1 .photo-item {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    .photo-grid.grid-1 .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Décaler le crop de GlennJohnson_web-28 vers la droite sur mobile */
    .photo-grid.grid-1 .photo-item img[src*="GlennJohnson_web-28"] {
        object-position: 70% center;
    }
    
    /* Triptyque en carrousel horizontal sur mobile */
    .video-section .photo-grid.grid-3 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem;
        margin: 3rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .video-section .photo-grid.grid-3::-webkit-scrollbar {
        display: none;
    }
    
    .video-section .photo-grid.grid-3 .photo-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        min-width: 100%;
        transition: transform 0.3s ease;
    }
    
    .video-section .photo-grid.grid-3 .photo-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        transition: transform 0.3s ease;
    }
    
    /* Indicateur de scroll subtil */
    .video-section .photo-grid.grid-3::after {
        content: '';
        flex: 0 0 1rem;
        min-width: 1rem;
    }
    
    /* Amélioration de l'accessibilité et du focus */
    /* .video-section .photo-grid.grid-3:focus {
        outline: 2px solid rgba(255, 255, 255, 0.3);
        outline-offset: 4px;
        border-radius: 16px;
    }
    
    .video-section .photo-grid.grid-3 .photo-item:focus-within {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
        border-radius: 14px;
    } */
    
    /* Animation d'entrée pour les images du carrousel */
    .video-section .photo-grid.grid-3 .photo-item {
        animation: carouselItemFadeIn 0.6s ease-out;
    }
    
    @keyframes carouselItemFadeIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Effet de parallaxe subtil sur les images du carrousel */
    .video-section .photo-grid.grid-3 .photo-item img {
        will-change: transform;
    }
    
    /* Crédits en colonnes empilées sur mobile */
    .film-credits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-section .photo-context {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        text-align: right;
        padding: 0 13vw;
        max-width: none;
    }
    
    /* Centrer le nom "Glenn Johnson" sur mobile */
    .nav-content {
        justify-content: center;
    }
    
    .nav-logo {
        font-size: 1.6rem;
    }
    
    /* Sur mobile, toujours afficher le logo */
    .nav-logo-hidden {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Positionner la navigation en bas sur mobile */
    .nav {
        top: auto;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border-bottom: none;
        transition: all 0.4s ease;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .nav-content {
        top: 0;
        padding: 1rem 1rem 1rem;
    }
    
    /* État visible de la navigation sur mobile */
    .nav.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Z-index du hero au premier plan sur mobile */
    .hero {
        z-index: 9999;
    }
    
    .hero-content {
        z-index: 10000;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    /* Styles supprimés - redondants avec .carousel-container .photo-grid.grid-4 */
    
    /* Masquer les boutons de navigation sur mobile */
    .carousel-btn {
        display: none;
    }
    
    /* .quote {
        font-size: clamp(1rem, 4vw, 1.4rem);
    } */
    
    .hero-content {
        padding: 1.5rem;
        margin-top: 11rem;
    }
    
    .hero-subtitle {
        border-top: none;
        padding-top: 1rem;
        position: relative;
        font-size: 0.8rem;
    }
    
    .hero-subtitle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .coming-soon h3 {
        font-size: 1.5rem;
    }
    
    .coming-soon p {
        font-size: 1rem;
    }
    
    /* Bouton retour en haut sur mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
    
    /* Ajustements supplémentaires pour très petits écrans */
    .nav-content {
        padding: 0 1rem 2rem;
    }
    
    .nav-logo {
        font-size: 1.4rem;
    }
    
    .video-section .photo-grid.grid-3 {
        padding: 0 0.5rem;
    }
    
    /* Supprimer la bordure sur très petits écrans */
    .nav {
        border-top: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);  /* Réduit de 40px à 30px pour moins de mouvement */
    transition: all 0.75s ease;
    will-change: opacity, transform;  /* Optimisation des performances */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
    .fade-in {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);  /* Courbe d'accélération plus douce */
        transform: translateY(20px);  /* Mouvement encore plus subtil sur mobile */
    }
    
    /* Réduire les délais d'animation sur mobile */
    .hero-subtitle {
        animation: slideUpFade 1s ease forwards 0.25s;
    }
    
    .hero-title {
        animation: slideUpFade 1.2s ease forwards 0.5s;
    }
    
    .hero-description {
        animation: slideUpFade 1.4s ease forwards 0.75s;
    }
    
    /* Optimiser les transitions sur mobile avec une courbe plus douce */
    .photo-item,
    .about-card,
    .caracteristique-card {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* CARROUSEL MOBILE AMÉLIORÉ - Styles principaux */
    .video-section .photo-grid.grid-3 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0rem;
        padding: 0 1rem;
        margin: 3rem 0 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;  /* Empêcher le retour à la ligne */
        scroll-padding: 0 1rem;  /* Padding pour le centrage */
        scroll-behavior: smooth;  /* Scroll fluide par défaut */
        overscroll-behavior-x: contain;  /* Empêcher le scroll de la page parent */
    }
    
    .video-section .photo-grid.grid-3::-webkit-scrollbar {
        display: none;
    }
    
    .video-section .photo-grid.grid-3 .photo-item {
        flex: 0 0 90%;  /* 90% pour voir 10% de l'image suivante */
        scroll-snap-align: center;  /* Centrer l'image */
        min-width: 90%;  /* Largeur minimale */
        max-width: 90%;  /* Largeur maximale */
        width: 90%;      /* Largeur fixe */
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    box-shadow 0.3s ease;
        margin: 0 0.5rem;  /* Marge pour séparer les images */
        cursor: pointer;  /* Curseur pointer */
        position: relative;  /* Pour les effets */
        border-radius: 12px;
        overflow: hidden;
    }

    /* Indicateur visuel pour montrer que c'est cliquable */
    .video-section .photo-grid.grid-3 .photo-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 70%, rgba(255, 255, 255, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        border-radius: 12px;
    }
    
    /* Effet de focus pour l'accessibilité */
    /*.video-section .photo-grid.grid-3 .photo-item:focus {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    } */
    
    /* Animation de glissement fluide */
    .video-section .photo-grid.grid-3 .photo-item {
        will-change: transform;
    }
    
    /* Indicateur de scroll subtil */
    .video-section .photo-grid.grid-3::before {
        content: '← Glissez pour naviguer →';
        position: absolute;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.8rem;
        font-weight: 500;
        text-align: center;
        opacity: 0.8;
        pointer-events: none;
    }
    
    /* Styles des images du carrousel */
    .video-section .photo-grid.grid-3 .photo-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Indicateur de scroll subtil */
    .video-section .photo-grid.grid-3::after {
        content: '';
        flex: 0 0 1rem;
        min-width: 1rem;
    }
    
    /* Amélioration de l'accessibilité et du focus */
    /* .video-section .photo-grid.grid-3:focus {
        outline: 2px solid rgba(255, 255, 255, 0.3);
        outline-offset: 4px;
        border-radius: 16px;
    }
    
    .video-section .photo-grid.grid-3 .photo-item:focus-within {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
        border-radius: 14px;
    } */
    
    /* Animation d'entrée pour les images du carrousel */
    .video-section .photo-grid.grid-3 .photo-item {
        animation: carouselItemFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    @keyframes carouselItemFadeIn {
        from {
            opacity: 0;
            transform: translateX(15px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Effet de parallaxe subtil sur les images du carrousel */
    .video-section .photo-grid.grid-3 .photo-item img {
        will-change: transform;
    }
}

/* Hero text animations */
.hero-subtitle {
    opacity: 0;
    transform: translateY(60px);
    animation: slideUpFade 1.2s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(80px);
    animation: slideUpFade 1.4s ease forwards 0.6s;
}

.hero-description {
    opacity: 0;
    transform: translateY(100px);
    animation: slideUpFade 1.6s ease forwards 0.9s;
    margin: 1.5rem auto 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selection */
::selection {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* Selection sur fond sombre */
.section-dark ::selection,
.video-section ::selection,
.contact-section ::selection,
.footer ::selection,
.about-section ::selection {
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
}

/* Selection sur fond très sombre */
.hero ::selection {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Focus states */
/* a:focus,
button:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
} */

/* ===== LAZY LOADING STYLES ===== */
.lazy {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: blur(2px);
}

.lazy.loading {
    opacity: 0.5;
    filter: blur(3px);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy.loaded {
    opacity: 1;
    filter: none;
    animation: none;
}

.lazy.error {
    opacity: 0.3;
    filter: grayscale(100%);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Amélioration de l'expérience utilisateur */
.photo-item {
    position: relative;
    overflow: hidden;
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.photo-item.loading::before {
    opacity: 1;
    animation: shimmer-overlay 2s infinite;
}

@keyframes shimmer-overlay {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Print styles */
@media print {
    .nav,
    .hero-content,
    .contact-email {
        display: none;
    }
    
    .photo-item {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}

