/* Variables CSS - Couleurs africaines */
:root {
    --primary-color: #8B4513; /* Marron terre */
    --secondary-color: #D4AF37; /* Or africain */
    --accent-color: #B22222; /* Rouge terre cuite */
    --dark-color: #2C2C2C; /* Noir profond */
    --light-color: #F5F5DC; /* Beige naturel */
    --text-color: #333333;
    --text-light: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

 /*Navbar principale */
.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    padding: 0 2rem;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.museum-name {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Côté droit */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Sélecteur de langue */
.language-selector {
    position: relative;
}

.lang-select {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.lang-select:hover {
    background: rgba(212, 175, 55, 0.2);
}

.lang-select option {
    background: var(--dark-color);
    color: var(--text-light);
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-title {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Styles responsives */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-container {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .museum-name {
        font-size: 1.2rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .language-selector {
        margin-right: 1rem;
    }

    .lang-select {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo {
        gap: 0.5rem;
    }

    .museum-name {
        font-size: 1rem;
    }

    /* Lien du logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

/* Assurer que le nom du musée garde sa couleur blanche */
.logo-link .museum-name {
    color: var(--text-light);
}

    .logo {
        width: 35px;
        height: 35px;
    }

    .lang-select {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Animation du hamburger */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Effets de transition pour le menu */
.nav-link {
    animation: fadeIn 0.5s ease-in;
}

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





/* Variables CSS - Palette africaine moderne */
:root {
    --primary-brown: #8B4513;
    --secondary-gold: #D4AF37;
    --accent-red: #B22222;
    --dark-brown: #3A2A1E;
    --light-beige: #F5F5DC;
    --earth-orange: #9C4A1A;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-beige);
}

/* Section Œuvre */
.oeuvre-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.oeuvre-container {
    background: var(--text-light);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

/* Titre de l'œuvre */
.oeuvre-title {
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-brown));
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bannière divisée en deux parties - Design responsive */
.oeuvre-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

/* Partie 1: Image de l'œuvre */
.oeuvre-image-part {
    position: relative;
    background: var(--dark-brown);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.oeuvre-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 3px solid var(--secondary-gold);
}

.oeuvre-img:hover {
    transform: scale(1.02);
}

.image-caption {
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Partie 2: Audio et QR Code */
.oeuvre-media-part {
    background: linear-gradient(135deg, var(--light-beige), #E8E4D5);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.audio-section, .qr-section {
    text-align: center;
}

.audio-section h3, .qr-section h3 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.audio-player {
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    border-radius: 25px;
    box-shadow: var(--shadow);
    background: var(--text-light);
}

.audio-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.audio-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    background: var(--secondary-gold);
    color: var(--dark-brown);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.audio-btn:hover {
    background: var(--primary-brown);
    color: var(--text-light);
    transform: translateY(-2px);
}

.qr-code {
    width: 150px;
    height: 150px;
    border: 3px solid var(--secondary-gold);
    border-radius: 10px;
    padding: 0.5rem;
    background: var(--text-light);
    margin: 1rem auto;
    box-shadow: var(--shadow);
}

.qr-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Description détaillée */
.oeuvre-description {
    padding: 3rem 2rem;
    background: var(--text-light);
}

.oeuvre-description h2 {
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    border-bottom: 3px solid var(--secondary-gold);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.oeuvre-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.artwork-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-beige), #E8E4D5);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-gold);
}

.artwork-details h3 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.detail-label {
    font-weight: 600;
    color: var(--primary-brown);
}

.detail-value {
    color: var(--text-dark);
}

/* Design Responsive - Mobile First */
@media screen and (max-width: 968px) {
    .oeuvre-banner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }
    
    .oeuvre-image-part {
        padding: 1.5rem;
        min-height: 400px;
    }
    
    .oeuvre-media-part {
        padding: 1.5rem;
        gap: 2rem;
        min-height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .oeuvre-section {
        padding: 1rem;
    }
    
    .oeuvre-title {
        padding: 1.5rem;
        font-size: 1.8rem;
    }
    
    .oeuvre-description {
        padding: 2rem 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .audio-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .audio-btn {
        width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .oeuvre-img {
        max-height: 300px;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    .oeuvre-description p {
        font-size: 1rem;
        text-align: left;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Support RTL pour l'arabe */
[dir="rtl"] .oeuvre-description p {
    text-align: right;
}

[dir="rtl"] .detail-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .artwork-details {
    border-left: none;
    border-right: 4px solid var(--secondary-gold);
}