/* ============================================
   VINCENT ORDONNEAU - PORTFOLIO WEBSITE
   Main Stylesheet - Production Ready
   Version: 2.0 (Reorganized)
   ============================================

   TABLE OF CONTENTS:
   1. Variables & Reset
   2. Base Layout
   3. Navigation
   4. Hero
   5. Sections Common
   6. Portfolio
   7. Modal
   8. Biographie
   9. Timeline
   10. Répertoire
   11. Contact
   12. Footer
   13. Responsive (Mobile-First Approach)
   14. Utilities

   BREAKPOINTS:
   - xs: < 480px
   - sm: 480px - 767px
   - md: 768px - 1023px
   - lg: 1024px - 1399px
   - xl: ≥ 1400px
   ============================================ */

/* ============================================
   1. VARIABLES & RESET
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #faf9f7;
    --bg-secondary: #f0ede8;
    --text-primary: #2c2c2c;
    --text-secondary: #6b6b6b;
    --accent: #8b7355;
    --accent-light: #d4c4b0;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.08);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 0.3s;
    --duration-medium: 0.4s;
    --duration-slow: 0.8s;
    
    /* Layout */
    --container-max: 1400px;
    --nav-height: 80px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. BASE LAYOUT
   ============================================ */

/* SPA Sections */
section:not(.modal) {
    display: none;
    opacity: 0;
    transition: opacity var(--duration-medium) ease;
    min-height: 100vh;
    padding: calc(var(--nav-height) + clamp(2rem, 6vh, 4rem)) clamp(1rem, 5vw, 5%);
    max-width: var(--container-max);
    margin: 0 auto;
}

section:not(.modal).active {
    display: block;
    opacity: 1;
    animation: fadeIn var(--duration-slow) ease;
}

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

/* ============================================
   3. NAVIGATION
   ============================================ */

.nav-fixed {
    position: fixed;
    inset: 0 0 auto 0;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: clamp(0.75rem, 2vh, 1.5rem) clamp(1rem, 5vw, 5%);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    transition: padding var(--duration-medium) var(--ease-smooth);
}

.nav-fixed.scrolled {
    padding: 0.75rem clamp(1rem, 5vw, 5%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

/* Logo */
.nav-logo {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--duration-fast);
}

.nav-logo:hover {
    opacity: 0.7;
}

/* Menu */
.nav-menu {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-fast) var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--duration-fast);
}

.lang-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(139, 115, 85, 0.2);
    margin-top: 0.5rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-fast);
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 1001;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background var(--duration-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option:hover {
    background: var(--bg-primary);
}

.lang-option.active {
    color: var(--accent);
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu span {
    width: 25px;
    height: 1px;
    background: var(--text-primary);
    transition: all var(--duration-fast);
}

/* ============================================
   4. HERO SECTION
   ============================================ */

#hero.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    max-width: none;
    padding: 0;
    min-height: 100vh;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-smooth) forwards;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: var(--space-md);
    display: block;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(0.65rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    font-weight: 300;
    margin-top: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s 1s var(--ease-smooth) forwards;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: clamp(0.6rem, 1.2vw, 0.85rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: clamp(30px, 8vh, 80px);
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.7); opacity: 0.5; }
}

/* ============================================
   5. SECTIONS COMMON
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3rem);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    display: block;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ============================================
   6. PORTFOLIO
   ============================================ */

#portfolio {
    padding-top: calc(var(--nav-height) + clamp(1rem, 4vh, 2rem));
}

#portfolio .section-header {
    margin-bottom: clamp(2rem, 5vh, 4rem);
    padding-top: var(--space-sm);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-md);
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--ease-smooth);
    border-radius: 4px;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-lg) + 2rem); /* Espace pour le label */
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-opera {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: white;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform var(--duration-fast);
}

.portfolio-role {
    font-size: 0.9rem;
    color: var(--accent-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform var(--duration-fast) 0.1s;
}


.portfolio-label {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    z-index: 2;
    max-width: calc(100% - var(--space-lg) * 2);
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--accent-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.portfolio-label br {
    display: block;
    content: "";
    margin-bottom: 0.2rem;
}


.portfolio-item:has(.portfolio-label) .portfolio-role {
    margin-bottom: 1.75rem;
}

.portfolio-item:hover .portfolio-opera,
.portfolio-item:hover .portfolio-role,
.portfolio-item:hover .portfolio-label {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-label {
    opacity: 1;
}

/* ============================================
   7. MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250, 249, 247, 0.98);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity var(--duration-medium);
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-close {
    position: fixed;
    top: clamp(1rem, 3vh, 2rem);
    right: clamp(1rem, 3vw, 3rem);
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all var(--duration-fast);
    z-index: 2001;
}

.modal-close:hover {
    background: var(--text-primary);
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide var(--duration-medium);
    padding: clamp(1rem, 3vw, 2rem);
}

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

.modal-image {
    width: 100%;
    height: clamp(250px, 40vh, 400px);
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.modal-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.modal-opera {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: var(--space-sm);
}

.modal-composer {
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    margin-top: clamp(1.5rem, 4vh, 3rem);
}

.modal-section h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: var(--space-md);
    font-weight: 400;
    color: var(--accent);
    position: relative;
    padding-bottom: 0.5rem;
}

.modal-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.testimonial {
    font-style: italic;
    border-left: 3px solid var(--accent-light);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.testimonial-author {
    display: block;
    margin-top: var(--space-sm);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    font-style: normal;
}

.testimonial br {
    display: block;
    content: "";
    margin-bottom: 0.3rem;
}

/* ============================================
   8. BIOGRAPHIE
   ============================================ */

#biographie .bio-container {
    padding-top: 0;
}

.bio-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    /* Alignement strict en haut des zones de contenu */
    align-items: start;
    align-content: start;
}

.bio-media-wrapper {
    position: sticky;
    top: 100px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: all var(--duration-fast) var(--ease-smooth);
    border: 1px solid transparent;
    aspect-ratio: 3/4;
    /* Alignement strict en haut */
    align-self: start;
    margin-top: 0;
    line-height: 0; /* Éliminer l'espace de ligne */
}

.bio-media-wrapper:hover {
    border-color: var(--accent-light);
    box-shadow: 0 25px 70px rgba(139, 115, 85, 0.2);
}

.bio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.9;
    transition: opacity 0.8s ease, filter 0.6s ease;
    filter: grayscale(30%);
    display: block;
}

.bio-video.can-play {
    opacity: 0.9;
}

.bio-media-wrapper:hover .bio-video.can-play {
    opacity: 1;
    filter: grayscale(0%);
}

.bio-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 1;
    transition: opacity var(--duration-fast);
    pointer-events: none;
}

.bio-media-wrapper:hover .bio-video-overlay,
.bio-media-wrapper.playing .bio-video-overlay {
    opacity: 0;
}

.play-hint {
    color: var(--white);
    font-size: clamp(0.55rem, 1.2vw, 0.75rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
    opacity: 0.7;
}

@keyframes subtle-shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(0.5px, -0.5px); }
    50% { transform: translate(-0.5px, 0.5px); }
    75% { transform: translate(0.5px, 0.5px); }
}

@keyframes subtle-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

.bio-media-wrapper.playing .bio-video {
    animation: subtle-shake 0.3s ease-in-out infinite, 
               subtle-zoom 15s ease-in-out infinite alternate;
}

.bio-media-wrapper::after {
    content: '';
    position: absolute;
    inset: clamp(0.5rem, 2vw, 2rem);
    border: 1px solid var(--accent-light);
    pointer-events: none;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity var(--duration-fast);
}

.bio-media-wrapper:hover::after {
    opacity: 1;
    border-color: var(--accent);
}

.bio-content {
    /* Alignement strict en haut */
    align-self: start;
    padding-top: 0;
    margin-top: 0;
}

/* Alignement du HAUT du texte avec le HAUT de la photo */
.bio-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    margin-bottom: var(--space-md);
    /* Réduire drastiquement le line-height pour éliminer l'espace au-dessus */
    line-height: 1;
    /* Supprimer toutes les marges supérieures */
    margin-top: 0;
    padding-top: 0;
    /* Compenser la hauteur de ligne pour aligner le haut des caractères */
    margin-bottom: var(--space-md);
}

.bio-content .lead {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    margin-top: 0;
}

.bio-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.bio-highlight {
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   9. TIMELINE
   ============================================ */

.timeline {
    margin-top: var(--space-lg);
    position: relative;
    padding-left: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--accent-light);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-md);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s var(--ease-smooth);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-4px);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   10. RÉPERTOIRE
   ============================================ */

.repertoire-section {
    max-width: 1000px;
    margin: 0 auto;
}

#repertoire h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--accent);
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

#repertoire .repertoire-section h3:first-of-type {
    margin-top: var(--space-sm);
}

.repertoire-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.repertoire-table th {
    background: var(--bg-secondary);
    padding: clamp(0.75rem, 2vw, 1rem);
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.repertoire-table td {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 2vw, 1rem);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    color: var(--text-secondary);
}

.repertoire-table tr:last-child td {
    border-bottom: none;
}

.repertoire-table tr:hover td {
    background: rgba(139, 115, 85, 0.03);
}

.work-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--duration-fast);
}

.work-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.repertoire-table th:nth-child(2),
.repertoire-table td:nth-child(2) {
    min-width: 120px;
    width: 40%;
}

.repertoire-table th:nth-child(1),
.repertoire-table td:nth-child(1),
.repertoire-table th:nth-child(3),
.repertoire-table td:nth-child(3) {
    width: 30%;
}

//* ============================================
   11. CONTACT
   ============================================ */

/* ============================================
   11. CONTACT
   ============================================ */

/* SECTION PRINCIPALE */
#contact {
    padding-top: calc(var(--nav-height) + clamp(1rem, 4vh, 2rem));
    padding-bottom: var(--space-lg);
    min-height: auto;
}

/* HEADER - tag et titre */
#contact .section-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

#contact .section-header .section-tag {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

/* Titre caché (seul le tag est visible) */
#contact .section-header .section-title {
    display: none;
}

/* CONTAINER PRINCIPAL */
#contact .contact-container {
    max-width: min(800px, 95vw);
    width: 100%;
    margin: 0 auto;
}

#contact .contact-info {
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 8px;
    background: var(--white);
}

/* SECTION AGENCE - ligne combinée */
.contact-agency-section {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 2rem);
    background: var(--white);
}

/* Titre de section "Représentation artistique" */
.contact-section-title {
    font-family: var(--font-display);
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-light);
    opacity: 0.8;
}

/* LIGNE AGENCE : Label - Nom - Worldwide */
.contact-agency-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /*justify-content: center; */
    gap: 0;
    margin-bottom: var(--space-sm);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-secondary);
}

/* Style commun aux trois éléments (même taille, couleur, police) */
.contact-agency-header .contact-line {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-body);
}

/* Séparateurs " - " */
.contact-agency-header .contact-separator {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0 0.5rem;
    font-family: var(--font-body);
}

/* ITEMS DE CONTACT (Manager, Associate, Email) */
.contact-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-secondary);
}

.contact-item:last-child,
.contact-item-agency-last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Label (ex: "Artist Manager") */
.contact-item .contact-label {
    display: block;
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Valeur (ex: "Simon Goldstone") */
.contact-item .contact-value {
    display: block;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

/* Email cliquable */
.contact-email {
    display: block;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.25rem;
    word-break: break-all;
    transition: color var(--duration-fast);
}

.contact-email:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* SECTION CONTACT DIRECT */
.contact-direct-section {
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 4vw, 2rem);
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-light);
}

/* Titre "Contact direct" en accent */
.contact-direct-section .contact-section-title {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* RÉSEAUX SOCIAUX */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    background: var(--white);
}

.social-link {
    width: clamp(32px, 5vw, 36px);
    height: clamp(32px, 5vw, 36px);
    border: 1px solid var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    transition: all var(--duration-fast);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.social-link:active {
    transform: translateY(0);
}

/* ============================================
   12. FOOTER
   ============================================ */

footer {
    background: var(--bg-secondary);
    padding: var(--space-md) 5%;
    text-align: center;
    border-top: 1px solid var(--accent-light);
    margin-top: 0;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.2em;
}

.footer-text {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    margin-bottom: var(--space-xs);
}

.copyright {
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================

   Mobile-First Approach
   Breakpoints: xs ≥ 480px, sm ≥ 768px, md ≥ 1024px, lg ≥ 1400px
   ============================================ */

/* ------------------------------------------
   BASE (Mobile < 480px)
   ------------------------------------------ */
.portfolio-item:has(.portfolio-label) .portfolio-role {
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2rem;
}

.bio-media-wrapper::after {
    inset: var(--space-xs);
}

.modal-close {
    top: var(--space-sm);
    right: var(--space-sm);
}

/* ------------------------------------------
   SMALL (≥ 480px)
   ------------------------------------------ */
@media (min-width: 480px) {
    /* Règles pour small si nécessaire */
}

/* ------------------------------------------
   MEDIUM (≥ 768px)
   ------------------------------------------ */
@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
    
    .portfolio-item:has(.portfolio-label) .portfolio-role {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-label {
        font-size: 0.85rem;
        line-height: 1.35;
    }
    
    .contact-agency-header {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem clamp(0.5rem, 2vw, 1rem);
    }
    
    .repertoire-table {
        font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    }
    
    .repertoire-table th,
    .repertoire-table td {
        padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 2vw, 1rem);
    }
}

/* ------------------------------------------
   LARGE (≥ 1024px)
   ------------------------------------------ */
@media (min-width: 1024px) {
    .bio-container {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-lg);
    }
    
    .bio-media-wrapper {
        top: 90px;
    }
}

/* ------------------------------------------
   EXTRA LARGE (≥ 1400px)
   ------------------------------------------ */
@media (min-width: 1400px) {
    /* Règles pour xl si nécessaire */
}

/* ------------------------------------------
   NAVIGATION BREAKPOINT (≥ 969px)
   Desktop sticky bio & nav visible
   ------------------------------------------ */
@media (min-width: 969px) {
    /* CORRECTION: masquer le sélecteur de langue injecté par main.js
       (réservé au menu mobile) sur les écrans desktop.
       Le sélecteur déroulant en haut à droite reste actif. */
    .mobile-lang-selector {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        height: auto;
        background: transparent;
        right: auto;
        transition: none;
    }
    
    .mobile-menu {
        display: none;
    }
    
    #biographie .bio-media-wrapper {
        position: sticky;
        top: 120px;
        max-height: calc(100vh - 140px);
        aspect-ratio: 3/4;
    }
    
    #biographie .bio-video {
        max-height: calc(100vh - 140px);
    }
}

/* ------------------------------------------
   MOBILE NAVIGATION (< 969px)
   Hamburger menu visible, nav hidden by default
   ------------------------------------------ */
@media (max-width: 968px) {
    /* Afficher le hamburger */
    .mobile-menu {
        display: flex;
    }
    
    /* Cacher le menu desktop par défaut */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: var(--nav-height) var(--space-xl) var(--space-xl);
        transition: right var(--duration-medium) var(--ease-smooth);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
    }
    
    /* Menu ouvert */
    .nav-menu.active {
        right: 0;
    }
    
    /* Style des liens en mobile */
    .nav-link {
        font-size: 1rem;
        padding: 1rem;
        flex-shrink: 0;
    }
    
    /* Sélecteur de langue dans le menu mobile */
    .lang-selector {
        display: none; /* Cacher le dropdown desktop */
    }
    
    .mobile-lang-selector {
        margin-top: auto;
        padding-top: var(--space-lg);
        border-top: 1px solid var(--accent-light);
        width: 100%;
        flex-shrink: 0;
    }
    
    .mobile-lang-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: var(--text-secondary);
        margin-bottom: var(--space-sm);
        text-align: center;
    }
    
    .mobile-lang-options {
        display: flex;
        justify-content: center;
        gap: var(--space-xs);
        flex-wrap: wrap;
    }
    
    .mobile-lang-option {
        background: transparent;
        border: 1px solid var(--accent-light);
        color: var(--text-secondary);
        padding: 0.5rem 0.75rem;
        font-family: var(--font-body);
        font-size: 0.8rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        transition: all var(--duration-fast);
        border-radius: 2px;
    }
    
    .mobile-lang-option:hover,
    .mobile-lang-option.active {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--white);
    }
    
    .mobile-lang-option .lang-code {
        font-weight: 600;
        font-size: 0.75rem;
    }
    
    .mobile-lang-option .lang-name {
        font-size: 0.75rem;
    }

    /* Overlay sombre quand menu ouvert */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-fast);
        z-index: 998;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ------------------------------------------
   MOBILE NAVIGATION - SMALL HEIGHT
   Sécurité pour écrans étroits ET peu hauts
   ------------------------------------------ */
@media (max-width: 968px) and (max-height: 500px) {
    .nav-menu {
        justify-content: flex-start;
        padding-top: calc(var(--nav-height) + 0.5rem);
    }

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

    .mobile-lang-selector {
        padding-top: var(--space-sm);
    }

    .mobile-lang-label {
        margin-bottom: var(--space-xs);
        font-size: 0.65rem;
    }

    .mobile-lang-option {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ------------------------------------------
   PORTFOLIO - TOUCH DEVICES
   Text always visible on touch screens
   ------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    }
    
    .portfolio-opera,
    .portfolio-role,
    .portfolio-label {
        transform: translateY(0);
    }
    
    .portfolio-label {
        opacity: 1;
    }
    
    .portfolio-item:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    .portfolio-item:hover .portfolio-image {
        transform: none;
    }
}

/* ------------------------------------------
   BIOGRAPHIE - ALIGNEMENT HAUT DU TITRE AVEC HAUT DE LA PHOTO
   ------------------------------------------ */
@media (max-width: 1023px) {
    .bio-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .bio-media-wrapper {
        position: relative;
        top: auto;
        max-width: 400px;
        margin: 0 auto;
        order: -1;
    }
    
    .bio-content h2 {
        margin-top: 0;
        text-align: center;
        line-height: 1.2; /* Un peu plus d'espace sur mobile pour la lisibilité */
    }
    
    .bio-content .lead {
        text-align: center;
    }
}

/* Desktop: Alignement précis du HAUT du texte avec le HAUT de la photo */
@media (min-width: 1024px) {
    #biographie {
        padding-top: calc(var(--nav-height) + 2rem);
    }
    
    .bio-container {
        align-items: start;
        align-content: start;
    }
    
    .bio-media-wrapper {
        align-self: start;
        margin-top: 0;
        top: calc(var(--nav-height) + 2rem);
        /* S'assurer que le contenu commence exactement en haut */
        display: flex;
        flex-direction: column;
    }
    
    .bio-content {
        align-self: start;
        padding-top: 0;
        margin-top: 0;
    }
    
    .bio-content h2 {
        /* line-height: 1 élimine presque tout l'espace au-dessus du texte */
        line-height: 1;
        margin-top: 0;
        padding-top: 0;
        /* Marge négative pour compenser l'ascendant de la police */
        margin-top: -0.1em;
    }
}
/* ------------------------------------------
   CONTACT - FIX TAG VISIBILITY
   Ensure "Me contacter" tag is always visible
   ------------------------------------------ */
@media (max-width: 768px) {
    #contact .section-header .section-tag {
        display: block !important;
        font-size: clamp(0.85rem, 4vw, 1rem);
        margin-bottom: var(--space-sm);
    }
    
    #contact .section-header {
        margin-bottom: var(--space-md);
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------
   REDUCED MOTION
   ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   14. UTILITIES
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.bg-secondary { background-color: var(--bg-secondary); }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}