/* ==========================================================================
   CHARTE GRAPHIQUE YÊSSA - STYLE GLOBAL
   ========================================================================== */

:root {
    --yessa-dark: #261207;
    --yessa-yellow: #FFCF2D;
    --text-light: #F9F9F9;
    --text-dark: #333333;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--yessa-dark);
    background-image: url('../img/yessa-fond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
}

/* ==========================================================================
   EN-TÊTE (NAVBAR)
   ========================================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(38, 18, 7, 0.95);
    border-bottom: 2px solid var(--yessa-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container img { 
    height: 70px; 
    width: auto; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover { 
    color: var(--yessa-yellow); 
}

.btn-login {
    background-color: var(--yessa-yellow);
    color: var(--yessa-dark) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* ==========================================================================
   LAYOUT PRINCIPAL & CARTE SVG
   ========================================================================== */

.main-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    min-height: 80vh;
    gap: 2rem;
}

.map-section { 
    flex: 1.5; 
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Empêche de rogner la carte */
}

.map-container { 
    width: 100%; 
    max-width: 850px; 
    margin: 0 auto; 
}

/* Forçage absolu de la responsivité du SVG */
.map-container svg { 
    width: 100% !important; 
    height: auto !important; 
    max-height: 80vh; 
    display: block;
    overflow: visible !important; 
}

/* Écrasement des couleurs d'origine du fichier SVG */
.country-path {
    fill: rgba(255, 255, 255, 0.15) !important;
    stroke: var(--yessa-yellow) !important;
    stroke-width: 1px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.country-path:hover {
    fill: var(--yessa-yellow) !important;
    filter: drop-shadow(0 0 10px rgba(255, 207, 45, 0.6));
}
/* Classe ajoutée par JavaScript lorsqu'un pays est cliqué */
.map-container svg path.active-country {
    fill: var(--yessa-yellow) !important;
    filter: drop-shadow(0 0 15px rgba(255, 207, 45, 0.8));
    stroke-width: 2px !important;
    stroke: #fff !important; /* Bordure blanche pour le faire ressortir encore plus */
}
.map-tooltip {
    position: absolute;
    background: var(--yessa-yellow);
    color: var(--yessa-dark);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: none;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- Texte Bannière --- */
.hero-text-section {
    flex: 0.8;
    text-align: right;
    background: rgba(38, 18, 7, 0.85);
    padding: 3rem;
    border-radius: 12px;
    border-right: 4px solid var(--yessa-yellow);
}

.hero-text-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--yessa-yellow);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text-section p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    margin-bottom: 2rem; 
    color: #ddd; 
}

/* ==========================================================================
   GALERIE D'ARTICLES
   ========================================================================== */

.gallery-container {
    background: var(--text-light);
    color: var(--text-dark);
    padding: 5rem 5%;
    display: none;
    border-top: 5px solid var(--yessa-yellow);
}

.gallery-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 3rem; 
}

.gallery-header h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    color: var(--yessa-dark); 
}

.btn-close {
    background: none; 
    border: 2px solid var(--yessa-dark); 
    color: var(--yessa-dark);
    padding: 8px 20px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.3s;
}

.btn-close:hover { 
    background: var(--yessa-dark); 
    color: var(--yessa-yellow); 
}

.artworks-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 2.5rem; 
}

.art-card {
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    transition: transform 0.3s;
    border-bottom: 3px solid transparent;
}

.art-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--yessa-yellow); 
}

.art-card img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
}

.art-card-content { 
    padding: 1.5rem; 
}

.art-card h4 { 
    font-size: 1.2rem; 
    color: var(--yessa-dark); 
    margin-bottom: 0.5rem; 
}

.art-card .artisan-name { 
    color: #7f8c8d; 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
}

.art-card .price { 
    font-weight: bold; 
    font-size: 1.3rem; 
    color: #d35400; 
    margin-bottom: 1rem; 
}

.btn-details {
    display: block; 
    text-align: center; 
    background: var(--yessa-dark);
    color: var(--yessa-yellow); 
    text-decoration: none; 
    padding: 10px;
    border-radius: 4px; 
    font-weight: 600; 
    transition: background 0.3s;
}

.btn-details:hover { 
    background: var(--yessa-yellow); 
    color: var(--yessa-dark); 
}
/* ==========================================================================
   PIED DE PAGE (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: #1a0c05; /* Un ton encore plus foncé que le dark principal */
    color: #a4b0be;
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 207, 45, 0.2);
    margin-top: 4rem;
}

.site-footer p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.admin-link {
    color: #576574; /* Très discret par défaut */
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: var(--yessa-yellow);
    text-decoration: underline;
}
/* ==========================================================================
   RESPONSIVITÉ (Tablettes & Smartphones)
   ========================================================================== */

@media screen and (max-width: 992px) {
    .main-layout {
        flex-direction: column; 
        gap: 2rem;
        padding: 2rem 5%;
    }

    .hero-text-section {
        flex: 1;
        text-align: center; 
        border-right: none;
        border-bottom: 4px solid var(--yessa-yellow); 
        padding: 2rem 1rem;
    }

    .hero-text-section h1 { 
        font-size: 2.8rem; 
    }

    .map-section {
        order: -1; 
        width: 100%;
    }
    
    .map-container {
        max-width: 100%; 
    }
}

@media screen and (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .logo-container img { height: 55px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .nav-links a { font-size: 0.85rem; }

    .hero-text-section h1 { font-size: 2.2rem; }
    .hero-text-section p { font-size: 1rem; }

    .gallery-container { padding: 3rem 5%; }
    .gallery-header { flex-direction: column; text-align: center; gap: 1.5rem; }
    .gallery-header h2 { font-size: 1.8rem; }
    .btn-close { width: 100%; }
    
    .map-container svg {
        max-height: 50vh; 
    }
}
/* --- Carte SVG --- */
.map-section { 
    flex: 1.2; 
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.map-container { 
    width: 100%; 
    max-width: 750px; /* Taille optimale pour la lisibilité */
    margin: 0 auto; 
}

/* Le SVG nettoyé va maintenant écouter cette règle */
.map-container svg { 
    width: 100% !important; 
    height: auto !important; 
    max-height: 75vh; /* Empêche la carte de dépasser de l'écran en hauteur */
    display: block;
}

/* On écrase les couleurs grises d'origine */
.map-container svg path {
    fill: rgba(255, 255, 255, 0.15) !important;
    stroke: var(--yessa-yellow) !important;
    stroke-width: 1px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-container svg path:hover {
    fill: var(--yessa-yellow) !important;
    filter: drop-shadow(0 0 15px rgba(255, 207, 45, 0.8));
}