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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin: 30px 0;
    animation: fadeIn 1s;
}

.header h1 {
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 10px;
}

.header p {
    font-size: 1.3em;
    opacity: 0.95;
}

.map-container {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
    padding: 30px;
    max-width: 1400px;
    width: 100%;
    animation: slideUp 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.region-path {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke: transparent;
    stroke-width: 0;
    fill: transparent;
}

.region-path:hover {
    fill: rgba(255, 215, 0, 0.3);
    stroke: #FFD700;
    stroke-width: 3;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.tooltip {
    position: fixed;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid #FFD700;
}

.tooltip.show {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    border-radius: 30px;
    max-width: 1000px; /* Augmenté pour plus de contenu */
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: zoomIn 0.4s;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 45px;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.modal-header h2 { 
    font-size: 3.5em; 
    margin-bottom: 10px; 
}

.modal-header p { 
    font-size: 1.5em; 
    opacity: 0.95; 
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255,255,255,0.25);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: white;
    color: #667eea;
    transform: rotate(90deg);
}

.modal-body { 
    padding: 45px; 
}

/* Nouveau: Layout pour image + contenu côte à côte sur grands écrans */
.modal-body-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.image-section {
    width: 100%;
}

.region-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.text-section {
    width: 100%;
}

/* Sections d'informations */
.info-section { 
    margin-bottom: 35px; 
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h3 { 
    color: #667eea; 
    font-size: 1.8em; 
    margin-bottom: 18px; 
    display: flex; 
    align-items: center; 
    gap: 12px;
    border-left: 5px solid #667eea;
    padding-left: 15px;
}

.info-section p { 
    color: #555; 
    line-height: 1.8; 
    font-size: 1.1em;
    text-align: justify;
}

/* Grid pour les informations clés */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.4s;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.info-card h4 { 
    color: #667eea; 
    margin-bottom: 12px; 
    font-size: 1.3em; 
}

.info-card p { 
    color: #444; 
    font-size: 1.1em; 
    font-weight: 600; 
}

/* NOUVEAU: Styles pour les lieux à visiter */
.lieux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.lieu-item {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-left: 4px solid #667eea;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lieu-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #eef1ff 0%, #e0e7ff 100%);
}

.lieu-item strong {
    color: #667eea;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

/* NOUVEAU: Styles pour la gastronomie */
.plats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.plat-item {
    padding: 15px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    border-left: 4px solid #ff9a5a;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 154, 90, 0.2);
    background: linear-gradient(135deg, #ffe8d6 0%, #ffd4b3 100%);
}

.plat-item strong {
    color: #d97333;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

/* Légende */
.legend {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    padding: 25px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 2px solid #e0e7ff;
}

.legend h3 { 
    color: #667eea; 
    margin-bottom: 18px; 
    font-size: 1.6em; 
}

.legend p { 
    margin-bottom: 12px; 
    font-size: 1.1em; 
    color: #555; 
    line-height: 1.6; 
}

/* Barre de défilement personnalisée pour la modale */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
/* BOUTON GOOGLE MAPS - VERSION CORRIGÉE */

.maps-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.maps-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(66, 133, 244, 0.5);
    background: linear-gradient(135deg, #5a95f5 0%, #4db860 100%);
}

.maps-button:active {
    transform: translateY(-1px);
}

/* CORRECTIF : Limiter la taille du SVG */
.maps-button svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    /* Animation désactivée pour éviter les problèmes */
}

/* GALERIE D'IMAGES SIMPLE */
.image-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.gallery-box {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.gallery-image {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 15px;
    object-fit: contain;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.85);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gallery-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

#photoCount {
    font-weight: bold;
    color: #667eea;
    font-size: 1em;
}

.photo-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.dot:hover {
    background: #667eea;
}

/* BADGE POUR ITEMS CLIQUABLES */
.lieu-item.clickable,
.plat-item.clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.lieu-item.clickable:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #d0d9ff 100%) !important;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.plat-item.clickable:hover {
    background: linear-gradient(135deg, #ffd4b3 0%, #ffbf99 100%) !important;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 154, 90, 0.2);
}

.photo-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .gallery-box {
        max-width: 95vw;
        max-height: 90vh;
        padding: 15px;
    }
    
    .gallery-image {
        max-height: 55vh;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-box {
        max-width: 98vw;
        padding: 10px;
    }
    
    .gallery-image {
        max-height: 50vh;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .maps-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 { 
        font-size: 2.2em; 
    }
    
    .modal-header h2 { 
        font-size: 2.5em; 
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .info-section h3 {
        font-size: 1.5em;
    }
    
    .lieux-grid, .plats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 { 
        font-size: 1.8em; 
    }
    
    .modal-header {
        padding: 30px 20px;
    }
    
    .modal-header h2 { 
        font-size: 2em; 
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
