:root {
    /* PALETTE DE LUXE (Par défaut) */
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #D4AF37; /* Or Classique */
    --accent-gold: #D4AF37;
    --text-color: #FAFAFA;
    --text-muted: #888888;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- DESIGN SYSTEM CLASSE --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.title-gold {
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 300;
    text-align: center;
    margin: 40px 0 20px;
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Fluid scaling */
}

/* --- NAVIGATION HEADER --- */
header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap; /* Allow wrapping on small screens */
    padding: 10px 0;
}

.logo {
    font-family: var(--font-heading);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.brand-link .gold {
    color: var(--accent-gold);
    font-weight: 700;
}

.brand-link:hover {
    letter-spacing: 5px;
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--accent-gold);
}

nav a:hover::after {
    width: 100%;
}

/* --- MEASUREMENTS --- */
/* --- BIO SECTION --- */
.model-bio {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    padding: 0 15px;
}

.model-bio p {
    position: relative;
    display: inline-block;
}

.bio-portrait {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- TECHNICAL SHEET --- */
.technical-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 60px 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.tech-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

.technical-sheet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.tech-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.tech-item .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.tech-item .value {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* --- MOSAÏQUE DYNAMIQUE --- */
/* --- MOSAÏQUE DYNAMIQUE (Masonry Pure CSS) --- */
.gallery-mosaic {
    column-count: 4;
    column-gap: 15px;
    margin: 40px 0;
}

.mosaic-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background: var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
    display: inline-block; /* Crucial pour ne pas casser les colonnes */
    width: 100%;
}

.mosaic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.mosaic-item img {
    width: 100%;
    height: auto !important; /* Hauteur naturelle */
    display: block;
    object-fit: contain; /* On affiche TOUT */
    transition: var(--transition-smooth);
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

/* Les classes de taille ne sont plus nécessaires en mode colonnes */

/* --- LIGHTBOX (Glassmorphism) --- */
.lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.98) !important;
    z-index: 200000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden !important;
}

.lightbox.active { opacity: 1; display: flex; }

#lightbox-img, .lightbox-img {
    /* METHODE INFALLIBLE POUR PHOTO ENTIERE */
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    
    /* SECURITE CONTRE LES ZOOM / CROPS */
    object-fit: contain !important;
    object-position: center !important;
    
    /* RESET DES HERITAGES POSSIBLES */
    transform: none !important;
    display: block !important;
    margin: auto !important;
    
    /* COSMETIQUE SANS IMPACT SUR TAILLE */
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    user-select: none;
    -webkit-user-drag: none;
    transition: none !important;
}

.nav-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); /* Background plus sombre pour contraste */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3100;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.nav-btn.prev { left: 40px; }
.nav-btn.next { right: 40px; }

.close-btn {
    position: absolute; /* Mieux que fixed à l'intérieur d'un fixed */
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000 !important; /* Doit être au-dessus de tout (img = 3000+) */
    pointer-events: all !important; /* FORCE le clic */
    font-size: 2rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    -webkit-tap-highlight-color: transparent; /* Supprime le flash gris sur mobile */
}

/* Zone de clic étendue invisible */
.close-btn::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.2);
}

.close-btn::before, .close-btn::after {
    display: none; /* Nettoyage si besoin */
}

.close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

/* --- FOOTER / CONTACT PREMIUM --- */
.pied-page {
    background: #000;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.titre-contact {
    font-family: 'Cinzel', serif;
    color: #D4AF37;
    font-size: clamp(1.8rem, 8vw, 2.8rem); /* Fluid scaling */
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.texte-contact {
    color: #888;
    margin-bottom: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.reseaux-sociaux {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Wrap on smaller screens */
    gap: 15px;
    margin-bottom: 60px;
}

.social-btn {
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
}

.social-btn i {
    font-size: 1.1rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.5);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none !important;
}

.btn-facebook {
    background: #1877F2;
    border: none !important;
}

.btn-instagram:hover, .btn-facebook:hover {
    opacity: 0.9;
    background-size: 110%;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    max-width: 400px;
    margin: 0 auto 40px;
}

.footer-copyright {
    color: #555;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.management-box {
    margin: 60px auto;
}

.creation-credit {
    display: inline-block;
    padding: 30px 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.5);
}

.management-link {
    text-decoration: none;
    display: block;
}

.credit-label {
    display: block;
    font-size: 0.75rem;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.signature-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 7vw, 2.8rem); /* Fluid scaling */
    color: #fff;
    letter-spacing: 5px;
    margin: 20px 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

.management-link:hover .signature-name {
    color: #D4AF37;
}

.expert-tag {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    line-height: 1.6;
}

.international-badge {
    margin-top: 50px;
}

.international-badge a {
    color: #333;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.international-badge a:hover {
    color: #888;
}

/* --- RESPONSIVE GALLERY --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }
    .gallery-mosaic {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-mosaic {
        column-count: 2;
    }
    .technical-sheet {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .technical-container {
        padding: 30px 20px;
        margin: 40px auto;
    }
    header {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    nav {
        display: flex;
        gap: 10px;
    }
    nav a {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .gallery-mosaic {
        column-count: 2;
        column-gap: 10px;
    }
    
    .titre-contact {
        font-size: 1.6rem;
    }
    
    .signature-name {
        font-size: 1.6rem;
    }
    
    .creation-credit {
        padding: 25px 15px;
    }

    .social-btn {
        min-width: 100%;
        font-size: 0.75rem;
        padding: 10px 15px;
    }

    /* Optimisation Lightbox Mobile */
    .nav-btn {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .nav-btn.prev { left: 10px; }
    .nav-btn.next { right: 10px; }
    
    .close-btn {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .model-specs {
        display: none; /* Removed in favor of tech sheet */
    }

    .pied-page {
        padding: 50px 10px;
    }

    .technical-container {
        padding: 20px 15px;
        margin: 30px auto;
    }

    .tech-item .value {
        font-size: 0.9rem;
    }

    .agency-representation {
        margin: 20px 0 40px;
    }
}
/* --- AGENCY REPRESENTATION --- */
.agency-representation {
    margin: 30px 0;
    text-align: center;
}

.agency-label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: bold;
}

.agency-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 6vw, 1.8rem); /* Fluid scaling */
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 5px;
}

.agency-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.agency-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    transition: var(--transition-smooth);
}

.agency-link:hover {
    background: var(--accent-gold);
    color: var(--primary-color);
    border-color: var(--accent-gold);
}
