/* --- STYLES GALERIE D'ART BRUMES DE COULEURS --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&family=Parisienne&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-main: #121418;
    --bg-card: #1a1d24;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f2f5;
    --text-secondary: #9aa0a6;
    --accent-gold: #d4af37;
    --accent-soft: #8ab4f8;
    --frame-border: #e8e4db;
    --frame-shadow: 0 0px 12px rgb(255 255 255 / 60%);
    --wire-color: rgba(255, 255, 255, 0.25);
    --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-script: 'Parisienne', cursive;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background: rgba(18, 20, 24, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-script);
    font-size: 2.3rem;
    font-weight: 400;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-logo svg {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero-section {
    text-align: center;
    padding: 3rem 1.5rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #cfd4dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    font-weight: 300;
}

/* --- BARRE DE FILTRES ET CONTROLES --- */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    gap: 1.2rem;
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.4rem;
    max-width: 100%;
}

.filters-group::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.55rem 1.3rem;
    border-radius: 30px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffffff;
    color: #121418;
    border-color: #ffffff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.view-toggle {
    display: flex;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3px;
    border-radius: 30px;
    flex-shrink: 0;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #fff;
    color: #121418;
    font-weight: 500;
}

/* --- AFFICHAGE 1 : CARROUSEL GALERIE SUSPENDUE --- */
.gallery-hanging-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 3.5rem;
    position: relative;
}

.hanging-track-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 2rem;
}

.hanging-track-wrapper::-webkit-scrollbar {
    display: none;
}

.hanging-track {
    display: flex;
    gap: 5.5rem;
    align-items: flex-start;
    padding-right: 6rem;
    will-change: transform;
}

/* CADRE DE FIN D'EXPOSITION (LIVRE D'OR) */
.end-exhibition-frame {
    background: #181b22 !important;
    border: 7px solid #d4af37 !important;
    min-width: 320px;
    max-width: 380px;
    padding: 2.2rem 1.8rem !important;
    text-align: center;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25) !important;
}

.end-exhibition-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.end-exhibition-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- BAGUETTE DE CIMAISE (RAIL D'ACCROCHAGE MUSÉE) --- */
.hanging-rail {
    width: 100%;
    height: 6px;
    background: linear-gradient(to bottom, #d4af37, #997a15 60%, #554106);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: -6px;
    position: relative;
    z-index: 5;
}

/* TABLEAU SUSPENDU */
.artwork-hanging-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artwork-hanging-item:hover {
    transform: translateY(-8px) scale(1.015);
}

.hanging-wires {
    display: flex;
    justify-content: space-between;
    width: 70%;
    height: 75px;
    position: relative;
    z-index: 2;
}

/* Câbles de suspension translucides/acier */
.hanging-wire {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(212, 175, 55, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 30%,
            rgba(255, 255, 255, 0.25) 70%,
            rgba(212, 175, 55, 0.9) 100%);
    position: relative;
    filter: drop-shadow(2px 0px 3px rgba(0, 0, 0, 0.5));
}

/* Clip d'accroche supérieur sur le rail laiton */
.wire-top-clip {
    width: 8px;
    height: 10px;
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #997a15 100%);
    border-radius: 2px 2px 0 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Anneaux en Laiton Doré Brossé sur le Cadre */
.wire-hook {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff1b0, #d4af37 60%, #806209 100%);
    border: 2px solid #5a4506;
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 3;
}

.picture-frame {
    background: #fdfbf7;
    padding: 1.2rem;
    border-radius: 4px;
    box-shadow: var(--frame-shadow);
    border: 7px solid var(--frame-border);
    outline: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: box-shadow 0.4s ease;
}

.artwork-hanging-item:hover .picture-frame {
    box-shadow: var(--frame-shadow);
}

.picture-frame img {
    display: block;
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.artwork-info-tag {
    margin-top: 1.2rem;
    text-align: center;
    color: var(--text-primary);
}

.artwork-info-tag h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.artwork-info-tag p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- AFFICHAGE 2 : GRILLE MAÇONNERIE (MASONRY GRID) --- */
.masonry-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 5rem;
    columns: 4 260px;
    column-gap: 1.8rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.8rem;
    cursor: pointer;
}

.masonry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    padding: 1em;
}

.masonry-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.masonry-card img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0px 0px 8px 0px rgb(180 160 160);
    border-radius: 5px;
}

.masonry-card-body {
    padding: 1.1rem;
}

.masonry-card-body h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.masonry-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    display: flex;
    max-width: 1100px;
    width: 95%;
    max-height: 88vh;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
    position: relative;
}

.lightbox-img-wrapper {
    flex: 1.4;
    background: #08090b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-img-wrapper img.zoomed {
    transform: scale(1.6);
    cursor: zoom-out;
}

.lightbox-details {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: #ffffff;
    color: #121418;
}

.details-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.details-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.details-table {
    margin-bottom: 2rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
}

.details-row span:first-child {
    color: var(--text-secondary);
}

.btn-contact {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffffff;
    color: #121418;
    padding: 0.9rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background: var(--accent-gold);
    color: #ffffff;
}

/* ==========================================================================
   OPTIMISATION RESPONSIVE MOBILE PERFECTIONNÉE
   ========================================================================== */
@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 1.2rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .brand-logo {
        font-size: 1.9rem;
    }

    .nav-links {
        gap: 1.2rem;
        font-size: 0.88rem;
    }

    .hero-section {
        padding: 2rem 1rem 1rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .controls-bar {
        padding: 0 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filters-group {
        width: 100%;
        justify-content: flex-start;
    }

    .view-toggle {
        align-self: center;
    }

    .hanging-track {
        animation: none;
        display: flex;
        gap: 1.8rem;
    }

    .hanging-track-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    .picture-frame {
        padding: 0.8rem;
        border-width: 5px;
    }

    .picture-frame img {
        max-height: 250px;
    }

    .masonry-container {
        columns: 2 130px;
        column-gap: 1rem;
        padding: 1rem 0.8rem 4rem;
    }

    .lightbox-modal {
        padding: 0.5rem;
    }

    .lightbox-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        display: block;
    }

    .lightbox-img-wrapper {
        flex: none;
        height: auto;
        max-height: 260px;
        padding: 1rem;
    }

    .lightbox-img-wrapper img {
        max-height: 230px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    .lightbox-details {
        display: block;
        padding: 1.2rem 1rem;
        overflow-y: visible;
    }

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

    .btn-contact {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .masonry-container {
        columns: 1;
    }

    .picture-frame img {
        max-height: 210px;
    }
}

/* --- SÉLECTEUR DE LANGUE (DRAPEAUX) --- */
.lang-selector {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-glass);
}

.lang-flag-btn {
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
    padding: 0;
}

.lang-flag-btn:hover {
    transform: scale(1.25);
    opacity: 1;
}

/* Masquer les éléments intrusifs de Google Translate */
.skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

.google-translate-hidden {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0 !important;
}

/* Désactiver la surbrillance blanche et masquer l'infobulle Google Translate au survol */
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

/* --- GRILLE ET CONTENU DE LA PAGE QUI SUIS-JE --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text-column {
    display: flex;
    flex-direction: column;
}

.artist-signature {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--accent-gold);
    text-align: right;
    /* margin-top: 1.5rem; */
    padding-right: 2rem;
    opacity: 0.95;
    transform: rotate(-5deg);
}

.about-picture-frame {
    /* background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.5rem; */
    box-shadow: 0px 0px 20px rgb(180 160 160);
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-picture-frame img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Version mobile de la page Qui suis-je */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text-column {
        order: 1;
    }

    .about-image-column {
        order: 2;
    }

    .artist-signature {
        text-align: center;
        padding-right: 0;
        margin-top: 1rem;
    }
}