
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --border-radius: 16px;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}

.section-title {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    color: #000000;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.badge-pro {
    background: var(--primary-color) !important;
    color: #fff !important;
    margin-left: 0.5em;
}

.faq-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.faq-header {
    background: none;
    border: none;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-header:hover {
    background: var(--light-bg);
}
.faq-header:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-header:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
}
.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: #6c757d;
    line-height: 1.6;
}
.category-section {
    margin-bottom: 3rem;
}
.category-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}
.search-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}
.search-input {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
}
.contact-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.mission-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 3rem;
    transition: all 0.3s ease;
}
.team-member:hover .team-avatar {
    transform: scale(1.1);
}

.comparateur-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
.comparateur-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

.comparison-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}
.comparison-table .table {
    margin-bottom: 0;
}
.comparison-table th, .table-primary th {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 2px solid #e9ecef;
}
.comparison-table th:first-child {
    background: #f8f9fa !important;
    color: #495057;
    text-align: left;
}
.comparison-table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #f8f9fa;
    text-align: center;
    transition: background-color 0.2s ease;
}
.comparison-table tbody tr:hover td {
    background-color: #f8f9fa;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

 

.custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: none;
}
.custom-popup .leaflet-popup-tip {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.custom-popup .leaflet-popup-close-button {
    color: #6c757d;
    font-size: 18px;
    padding: 8px;
}
.custom-popup .leaflet-popup-close-button:hover {
    color: #dc3545;
}
.map-legend {
    background: white !important;
    padding: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    font-size: 13px !important;
    border: 1px solid #e9ecef !important;
    min-width: 150px;
}
.leaflet-control-zoom a {
    background: white !important;
    border: 2px solid rgba(0,0,0,0.2) !important;
    border-radius: 4px !important;
    color: #666 !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}
.leaflet-control-zoom a:hover {
    background: #f8f9fa !important;
    border-color: #007bff !important;
    color: #007bff !important;
} 

.ehpad-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}
.ehpad-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

.price-highlight {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.price-highlight::before {
    content: '€';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
    font-weight: bold;
}

.price-badge {
    background: var(--light-bg);
    color: #495057;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.price-badge.available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}
.price-badge.unavailable {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.price-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}
.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.price-card.ash-card {
    border-left: 4px solid var(--info-color);
}
.price-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}
.price-card-content {
    padding: 1.5rem;
}
.price-option {
    text-align: center;
    padding: 0.5rem;
}
.price-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.price-value {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}
.price-value.available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
}
.price-value.unavailable {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
    white-space: normal;
    font-size: 1.1rem;
}
.price-period {
    font-size: 0.875rem;
    font-weight: normal;
    opacity: 0.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}
.feature-list li:hover {
    background: var(--light-bg);
    padding-left: 10px;
    border-radius: 8px;
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list li i {
    margin-right: 0.75rem;
    width: 20px;
    font-size: 1.1em;
}

.comparison-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0.5rem 0;
    border-left: 4px solid;
    transition: all 0.3s ease;
}
.comparison-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.comparison-card h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    background: var(--light-bg);
}

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}
.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, white 0%, var(--light-bg) 100%);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 1rem;
}

.sidebar-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}
.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-item i {
    width: 30px;
    height: 30px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
}

.ehpad-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    height: 100%;
}
.ehpad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.ehpad-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
}
.ehpad-card-content {
    padding: 1.5rem;
}

.prestation-badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.prestation-badge.comprise {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.prestation-badge.comprise:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}
.prestation-badge.non-comprise {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.prestation-badge.non-comprise:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}
.prestation-badge.complementaire {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}
.prestation-badge.complementaire:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .col-lg-9, .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .chart-container {
        height: 300px;
    }
    .ehpad-header {
        text-align: center;
    }
    .price-highlight {
        margin-top: 1rem;
    }
    .price-card {
        margin-bottom: 1rem;
    }
    .price-card-content {
        padding: 1rem;
    }
    .price-option {
        padding: 0.25rem;
    }
    .price-value {
        font-size: 1.1rem;
        padding: 0.5rem;
        white-space: normal;
        line-height: 1.2;
    }
    .price-label {
        font-size: 0.8rem;
    }
    .sidebar-highlight .h1 {
        font-size: 2rem;
        white-space: normal;
        line-height: 1.1;
    }
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.9rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    .ehpad-card-content {
        padding: 1rem;
    }
    .prestation-badge {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*.info-card {
    animation: fadeInUp 0.6s ease-out;
}
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }
.info-card:nth-child(4) { animation-delay: 0.3s; }
.info-card:nth-child(5) { animation-delay: 0.4s; }
.info-card:nth-child(6) { animation-delay: 0.5s; }*/

.table th:first-child, .table td:first-child {
    background: #f8f9fa !important;
    font-weight: bold;
    border-right: 1px solid #e9ecef;
    color: #212529 !important;
} 