

/* CSS pour les modules */

/* Timeline pour RecentPostsModule */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.timeline-title {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.timeline-title a {
    text-decoration: none;
    color: #333;
}

.timeline-title a:hover {
    color: #007bff;
}

.topic-badge {
    font-size: 0.8em;
    margin-bottom: 10px;
}

.timeline-description {
    margin-bottom: 10px;
    color: #666;
}

.timeline-date {
    display: block;
    color: #999;
}

/* Social Links */
.social-links-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-facebook { background: #3b5998; color: white; }
.social-twitter { background: #1da1f2; color: white; }
.social-instagram { background: #e4405f; color: white; }
.social-linkedin { background: #0077b5; color: white; }
.social-youtube { background: #ff0000; color: white; }

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
}

/* Modules d'erreur */
.module-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.module-info {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

/* Wrapper de modules */
.module-wrapper {
    margin-bottom: 20px;
}

.module-wrapper.card {
    border: 1px solid #dee2e6;
}

.module-title {
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.module-content {
    /* Styles spécifiques au contenu */
}

/* Post cards */
.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-compact-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.post-compact-item:last-child {
    border-bottom: none;
}
/*
.post-compact-item a {
    text-decoration: none;
    color: #333;
}

.post-compact-item a:hover {
    color: #007bff;
}
*/

/* Recherche */
.search-results {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.result-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h6 a {
    text-decoration: none;
    color: #007bff;
}

.result-item h6 a:hover {
    text-decoration: underline;
}










/* Styles spécifiques pour le gestionnaire d'adresses */
.address-manager .address-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.address-manager .address-item {
    background: white;
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.address-manager .address-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.address-manager .badge {
    font-size: 0.75rem;
    min-width: 25px;
}

.maps-module-container {
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.maps-module-header {
    margin-bottom: 1.5rem;
}

.maps-module-title {
    color: #2c3e50;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.maps-container {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.map-wrapper {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.map-canvas {
    height: 100% !important;
    width: 100% !important;
    border-radius: 12px;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.map-loading.hidden {
    display: none;
}

.maps-controls .card-body {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.maps-controls .input-group {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.maps-controls .input-group-text {
    background: #3498db;
    color: white;
    border: none;
}

.maps-controls .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.maps-controls .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.maps-controls .btn {
    border: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
}

.address-summary-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.address-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.address-summary-item:hover .fas {
    transform: scale(1.2);
    color: #2980b9 !important;
}

.address-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.address-info {
    min-width: 0;
}

.address-title {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.3;
}

.address-text {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* Styles pour les popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
    font-family: inherit;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .maps-module-title {
        font-size: 1.5rem;
    }
    
    .maps-controls .input-group {
        flex-wrap: wrap;
    }
    
    .maps-controls .input-group > * {
        flex: 1 1 100%;
    }
    
    .maps-controls .input-group > .form-control {
        border-radius: 8px 8px 0 0;
    }
    
    .maps-controls .btn {
        border-radius: 0;
    }
    
    .maps-controls .btn:last-child {
        border-radius: 0 0 8px 8px;
    }
    
    .address-summary-item {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.maps-module-container {
    animation: fadeIn 0.6s ease-out;
}

/* Mode preview */
.maps-module-container[data-preview="true"] {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    background: #f8f9fa;
}

.maps-module-container[data-preview="true"]::before {
    content: "Aperçu du module - Carte Interactive";
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
    font-size: 0.9rem;
}














/* Styles basés sur Bootstrap pour la validation d'adresses */
.validation-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1020;
    font-size: 0.875rem;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.validation-feedback.success {
    @extend .alert, .alert-success;
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

.validation-feedback.error {
    @extend .alert, .alert-danger;
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

.validation-feedback.loading {
    @extend .alert, .alert-info;
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

/* Fallback si @extend n'est pas supporté */
.validation-feedback.success:not(.alert) {
    background-color: var(--bs-success-bg-subtle, #d1e7dd);
    color: var(--bs-success-text-emphasis, #0a3622);
    border: 1px solid var(--bs-success-border-subtle, #a3cfbb);
    border-radius: var(--bs-border-radius, 0.375rem);
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

.validation-feedback.error:not(.alert) {
    background-color: var(--bs-danger-bg-subtle, #f8d7da);
    color: var(--bs-danger-text-emphasis, #58151c);
    border: 1px solid var(--bs-danger-border-subtle, #f1aeb5);
    border-radius: var(--bs-border-radius, 0.375rem);
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

.validation-feedback.loading:not(.alert) {
    background-color: var(--bs-info-bg-subtle, #cff4fc);
    color: var(--bs-info-text-emphasis, #055160);
    border: 1px solid var(--bs-info-border-subtle, #9eeaf9);
    border-radius: var(--bs-border-radius, 0.375rem);
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
}

.validation-feedback.loading::before {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border: 0.125rem solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles pour les adresses dans la liste avec classes Bootstrap */
.address-item {
    transition: all 0.15s ease-in-out;
    border-left: 0.25rem solid transparent;
}

.address-item:hover {
    background-color: var(--bs-gray-100, #f8f9fa) !important;
    border-left-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.validation-status {
    font-size: 0.875rem;
}

.validation-status i {
    cursor: help;
}

.address-actions {
    gap: 0.25rem;
}

.address-actions .btn-sm {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
}

/* Utilisation des breakpoints Bootstrap pour le responsive */
@media (max-width: 767.98px) {
    .address-actions {
        flex-direction: column;
    }
    
    .validation-feedback {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .address-item {
        padding: 0.75rem !important;
    }
}