:root {
    --primary: #9b57d3;
    --secondary: #f6e8dd;
    --text-dark: #2c3e50;
    --text-light: #666;
    --border: #e0e0e0;
    --bg-light: #f9f7f4;
    --sector1: #667eea;
    --sector2: #f59e0b;
    --sector-non: #10b981;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fefdfb;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, #7a3fa1 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(155, 87, 211, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 100px;
}

.beta-tag {
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 0.5rem;
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,0.4);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-recommend {
    background: white;
    color: var(--primary);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-recommend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* ========== BANNER ========== */
.banner {
    position: relative;
    height: 180px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e9d7f3 0%, #d9c4e8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
}

.banner img {
    display: none;
}

.banner-text {
    text-align: center;
    color: var(--primary);
    text-shadow: none;
    max-width: 100%;
}

.banner-text h1 {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.banner-text p {
    font-size: 1.1rem;
    display: none;
}

/* ========== SECTION ========== */
.annuaire-section {
    padding: 2rem 0 4rem;
}

/* ========== LAYOUT 2 COLONNES ========== */
.layout-2col {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

.col-left {
    /* Colonne gauche avec filtres */
    min-width: 0;
}

.col-right {
    /* Colonne droite avec résultats */
    min-width: 0;
}

/* ========== FILTRES ========== */
.filters-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filters-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.8rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 87, 211, 0.1);
}

/* City Search */
.city-search-wrapper {
    position: relative;
}

.city-search-wrapper input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.city-search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.city-suggestions.active {
    display: block;
}

.city-suggestion {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.city-suggestion:hover {
    background: var(--secondary);
    color: var(--primary);
}

.city-suggestion:last-child {
    border-bottom: none;
}

/* Secteur */
.sector-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sector-option {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox input {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.sector-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
}

.sector1 {
    background: var(--sector1);
}

.sector2 {
    background: var(--sector2);
}

.non-conv {
    background: var(--sector-non);
}

.sector-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 24px;
    font-weight: 400;
}

/* Accessibility - Simple */
.accessibility-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Consultation */
.consultation-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Bouton Reset */
.btn-reset {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: var(--primary);
    color: white;
}

/* ========== RÉSULTATS ========== */
.results-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.results-header h3 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    font-size: 1.15rem;
}

.results-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ========== CARTE MÉDECIN ========== */
.doctor-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: grid;
    grid-template-columns: 120px 1fr;
}

.doctor-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(155, 87, 211, 0.2);
    transform: translateY(-2px);
}

.doctor-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #7a3fa1 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.doctor-avatar {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.doctor-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.doctor-expertise {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.95;
}

.doctor-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doctor-info-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========== SPECIALTIES TAGS ========== */
.specialties-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
}

.doctor-info {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.doctor-info-icon {
    font-size: 0.9rem;
    min-width: 16px;
}

.doctor-info-text {
    color: var(--text-light);
}

.doctor-info-bottom {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    align-items: center;
    flex-wrap: wrap;
}

.recommendations {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.recommendations-icon {
    font-size: 1rem;
}

.recommendations-text {
    font-weight: 700;
    color: var(--primary);
}

.consultation-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.consultation-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.consultation-badge.physical {
    background: #e3f2fd;
    color: #1976d2;
}

.consultation-badge.tele {
    background: #f3e5f5;
    color: var(--primary);
}

.doctor-actions {
    display: flex;
    gap: 0.6rem;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #8a3fbf;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== FOOTER ========== */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .layout-2col {
        grid-template-columns: 250px 1fr;
    }

    .filters-container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .container-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-right {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-recommend {
        width: 100%;
    }

    .banner-text h1 {
        font-size: 1.05rem;
        white-space: normal;
    }

    .layout-2col {
        grid-template-columns: 1fr;
    }

    .filters-container {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .doctor-card {
        grid-template-columns: 1fr;
    }

    .doctor-card-header {
        padding: 1rem;
    }

    .actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-actions {
        flex-direction: column;
    }
}
