/* parcours-rose.css */

/* Conteneur principal */
#parcours-rose-map {
    border: 2px solid #e91e63;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    margin-bottom: 20px;
}

/* Sidebar */
.parcours-sidebar {
    background: linear-gradient(135deg, #308bcbc2, #308bcb);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(48, 139, 203, 0.3);
}

.parcours-sidebar h3 {
    margin-top: 0;
    color: white;
    text-align: center;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
	margin-bottom: 20px;
	text-transform: uppercase;
}

/* Filtres */
.parcours-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Liste des points */
.points-list {
	display: flex;
	gap: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.points-list::-webkit-scrollbar {
    width: 6px;
}

.points-list::-webkit-scrollbar-track {
    background: transparent;
}

.points-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.point-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
	border: 1px solid #ffffff;
    /*border-left: 4px solid #ffffff;*/
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
	box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
	width: 25%;
	display: flex !important;
    flex-direction: column;
    height: 100%; /* Hauteur fixe pour toutes les cartes */
    min-height: 300px; /* Hauteur minimale */
}

@media (max-width: 768px) {
	.point-item {
	width: 100%;
	}
	.points-list {
	display: block;
	} 
}   
.point-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.point-item h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
	text-transform: uppercase;
	background-color: #dc1e57;
    padding: 5px;
    border-radius: 5px;
}

.point-item p {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    line-height: 1.4;
	flex-grow: 1; /* Le paragraphe prend l'espace disponible */
    margin-bottom: auto; /* Pousse le contenu suivant vers le bas */
}

.point-item h4,
.point-item p,
.point-item small {
    flex-grow: 0;
    flex-shrink: 0;
}

.view-details {
    margin-top: auto; /* Colle le bouton en bas */
    align-self: flex-start; /* Aligne le bouton à gauche */
    background: white;
    color: #e91e63;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.point-item-image {
	margin-top : 20px;
	display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
	align-content: center;
}

.point-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.point-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Image par défaut si pas d'image */
.point-item:not(:has(.point-image)) .point-content {
    padding-right: 0;
}

/* Alternative avec image de placeholder */
.point-image.no-image {
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.view-details:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Modal */
.parcours-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #e91e63;
    text-decoration: none;
}

/* Icônes de catégories pour la carte */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.map-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.map-marker:hover {
    transform: scale(1.1);
}

.marker-resistance {
    background: linear-gradient(135deg, #d32f2f, #f44336);
}

.marker-patrimoine {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
}

.marker-nature {
    background: linear-gradient(135deg, #388e3c, #4caf50);
}

.marker-art {
    background: linear-gradient(135deg, #f57c00, #ff9800);
}

/* Popup personnalisé */
.leaflet-popup-content-wrapper {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 2px solid #e91e63;
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.5;
}

.leaflet-popup-tip {
    background: #e91e63;
}

/* Responsive */
@media (max-width: 768px) {
    .parcours-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .point-item {
        padding: 12px;
    }
    
    .point-item h4 {
        font-size: 1em;
		text-transform: uppercase;
    }
}

/* Animation d'apparition des points */
.point-item {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Style pour les éléments masqués */
.point-item.hidden {
    display: none;
}

/* Bouton de géolocalisation */
.geolocation-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #e91e63;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.geolocation-btn:hover {
    background: #c2185b;
    transform: scale(1.1);
}

/* Légende */
.map-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.legend-label {
    font-weight: 500;
    color: #333;
}

/* Styles pour la géolocalisation */
.geolocation-panel {
    background: linear-gradient(135deg, #e91e63, #ff69b4);
    color: white;
    padding: 20px 10px 10px 0;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.geolocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.geolocation-header h3 {
    margin: 13px 10px 0px;
    color: white;
    font-size: 1.4em;
    font-weight: 600;
}

.geolocate-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.geolocate-btn:hover {
    background: white;
    color: #e91e63;
    transform: translateY(-2px);
}

.geolocate-btn.loading {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.geolocate-btn.loading .location-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.geolocation-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.location-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.center-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.center-btn:hover {
    background: white;
    color: #e91e63;
}

.nearest-points h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.nearest-point-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nearest-point-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
    transform: translateX(5px);
}

.nearest-point-name {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.nearest-point-distance {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.distance-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .geolocation-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-status {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .geolocate-btn {
        width: 100%;
        justify-content: center;
		margin: 0px 10px 0px 20px;
    }
}
    /* Styles pour la modal élégante */
    .elegant-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: modalFadeIn 0.3s ease;
    }
    
    .modal-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
    }
    
    .modal-container {
        position: relative;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        max-width: 600px;
        width: 90%;
        max-height: 80vh;
        overflow: hidden;
        transform: scale(0.9);
        animation: modalSlideIn 0.3s ease forwards;
    }
    
    .modal-header {
        background: linear-gradient(135deg, #e91e63, #ff69b4);
        color: white;
        padding: 25px 30px;
        position: relative;
    }
    
    .modal-header h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .modal-close {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 28px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1.1);
    }
    
    .modal-body {
        padding: 30px;
        max-height: 50vh;
        overflow-y: auto;
        line-height: 1.6;
    }
    
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }
    
    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: #e91e63;
        border-radius: 3px;
    }
    
    .modal-footer {
        padding: 20px 30px;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
        display: flex;
        justify-content: flex-end;
        gap: 15px;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #e91e63, #ff69b4);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    }
    
    .btn-secondary {
        background: #6c757d;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }
    
    .detail-section {
        margin-bottom: 25px;
        padding: 20px;
        background: linear-gradient(135deg, #fff, #f8f9fa);
        border-radius: 15px;
        border-left: 4px solid #e91e63;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .detail-section h3 {
        color: #e91e63;
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: 600;
    }
    
    .detail-section p {
        color: #333;
        margin: 0;
        text-align: justify;
    }
    
    .coordinates-section {
        background: linear-gradient(135deg, #e3f2fd, #f1f8e9);
        border-left-color: #2196f3;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .coordinates-section .icon {
        font-size: 24px;
        color: #2196f3;
    }
    
    .qr-section {
        text-align: center;
        background: linear-gradient(135deg, #fff3e0, #fce4ec);
        border-left-color: #ff9800;
    }
    
    .qr-code {
        max-width: 150px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        margin: 15px 0;
    }
    
    .category-badge {
        display: inline-block;
        background: linear-gradient(135deg, #e91e63, #ff69b4);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    @keyframes modalFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes modalSlideIn {
        from { 
            transform: scale(0.9) translateY(-50px);
            opacity: 0;
        }
        to { 
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }
    
    @media (max-width: 768px) {
        .modal-container {
            width: 95%;
            margin: 20px;
        }
        
        .modal-header {
            padding: 20px;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-footer {
            padding: 15px 20px;
            flex-direction: column;
        }
        
        .modal-footer button {
            width: 100%;
        }
    }
	
	.html-content h4 {
    color: #e91e63;
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 5px;
	}

	.html-content h5 {
		color: #333;
		margin: 15px 0 8px 0;
		font-size: 14px;
		font-weight: 600;
	}

	.html-content ul {
		margin: 10px 0;
		padding-left: 20px;
	}

	.html-content li {
		margin: 5px 0;
		line-height: 1.5;
	}

	.html-content strong {
		color: #e91e63;
		font-weight: 600;
	}

	.html-content em {
		color: #666;
		font-style: italic;
	}

	.html-content p {
		margin: 10px 0;
		text-align: justify;
	}