:root {
    --green: #10B981;
    --green-mid: #059669;
    --green-dark: #064E3B;
    --green-light: #ECFDF5;
    --green-subtle: #F0FDF9;
    --blue: #06B6D4;
    --blue-light: #ECFEFF;
    --amber: #F59E0B;
    --amber-light: #FFFBEB;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --dark: #0F172A;
    --dark-mid: #1E293B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
    text-decoration: none;
}
.nav-link:hover { background: var(--green-light); color: var(--green); text-decoration: none; }

.btn-nav-primary {
    padding: 9px 22px;
    background: var(--green);
    color: white !important;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
    margin-left: 4px;
}
.btn-nav-primary:hover { background: var(--green-mid); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16,185,129,0.4); }

/* ── Boutons ─────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}
.btn-primary { background: var(--green); color: white; box-shadow: 0 2px 8px rgba(16,185,129,0.28); }
.btn-primary:hover { background: var(--green-mid); color: white; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16,185,129,0.38); }
.btn-secondary { background: var(--white); color: var(--green); border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--green-light); text-decoration: none; transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--dark-mid); color: white; text-decoration: none; transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: #0891B2; color: white; text-decoration: none; }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--red-light); color: var(--red); }
.btn-danger:hover { background: var(--red); color: white; text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--dark);
    color: white;
    padding: 100px 24px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16,185,129,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #6EE7B7;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}

.hero-badge-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(16,185,129,0.8);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.12;
    letter-spacing: -1px;
}

.hero h1 span { color: var(--green); }

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

.search-box {
    background: white;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 740px;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.search-box input, .search-box select {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 18px;
    font-size: 15px;
    color: var(--text);
    border-radius: 10px;
    background: var(--bg);
    font-family: inherit;
    transition: background 0.15s;
}
.search-box input:focus, .search-box select:focus { background: var(--green-subtle); }
.search-box select { flex: 0.85; }
.search-box .btn { flex-shrink: 0; padding: 13px 28px; border-radius: 10px; font-size: 15px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 52px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
    padding: 0 40px;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-right: none; }
.hero-stat span { display: block; font-size: 32px; font-weight: 800; letter-spacing: -1px; color: white; }
.hero-stat small { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; display: block; font-weight: 400; }

/* ── Bande de réassurance ───────────────────────────────────────────────────── */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.trust-items {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-mid);
}

.trust-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}

.trust-icon svg { width: 17px; height: 17px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-divider { width: 1px; height: 28px; background: var(--border); }

/* ── Sections génériques ────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #047857;
    margin-bottom: 10px;
}
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.4px; line-height: 1.2; }
.section-sub { color: var(--text-muted); margin-bottom: 40px; font-size: 16px; line-height: 1.65; }

/* ── Steps ──────────────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 38px;
    left: calc(33.33% - 12px);
    width: calc(33.33% + 24px);
    height: 1px;
    background: linear-gradient(90deg, var(--green-light), var(--green), var(--green-light));
    z-index: 0;
}

.step-card {
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}
.step-card:hover { box-shadow: 0 12px 40px rgba(16,185,129,0.1); transform: translateY(-4px); border-color: #A7F3D0; }

.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--green-light);
    border: 2px solid #A7F3D0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #064E3B;
    margin-bottom: 20px;
}

.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Grille professionnels ──────────────────────────────────────────────────── */
.pros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.pro-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.pro-card:hover { border-color: #A7F3D0; box-shadow: 0 12px 40px rgba(16,185,129,0.1); transform: translateY(-4px); }

.pro-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.pro-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--green);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #D1FAE5;
}
.pro-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pro-card-name { font-weight: 700; font-size: 16px; color: var(--dark); }
.pro-card-ville { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.pro-card-distance { font-size: 12px; color: var(--green); font-weight: 600; background: var(--green-light); padding: 2px 8px; border-radius: 20px; }

.pro-card-presentation {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px; background: var(--green-light); color: #065F46; }
.badge-blue { background: var(--blue-light); color: #0E7490; }
.badge-amber { background: var(--amber-light); color: #92400E; }
.badge-premium { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; font-size: 11px; padding: 3px 10px; border-radius: 20px; }

.pro-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.pro-card-tarif { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── CTA Professionnels ─────────────────────────────────────────────────────── */
.pro-cta {
    background: var(--dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.pro-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16,185,129,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.pro-cta::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pro-cta > * { position: relative; z-index: 1; }
.pro-cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.4px; }
.pro-cta p { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.65; max-width: 480px; }

.btn-cta {
    background: var(--green);
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius);
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(16,185,129,0.35);
    white-space: nowrap;
}
.btn-cta:hover { background: var(--green-mid); text-decoration: none; color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.45); }

/* ── Section spécialités ────────────────────────────────────────────────────── */
.specialites-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialite-pill {
    padding: 9px 20px;
    border-radius: 30px;
    background: var(--white);
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-mid);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s;
}
.specialite-pill:hover { border-color: var(--green); background: var(--green-light); color: var(--green); text-decoration: none; transform: translateY(-1px); }

/* ── Résultats de recherche ──────────────────────────────────────────────────── */
.resultats-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; padding: 24px 0; }
@media (max-width: 900px) {
    .resultats-layout { grid-template-columns: 1fr; }
    .map-sticky { position: relative; top: 0; }
}
.map-sticky { position: sticky; top: 80px; }
#map { height: 550px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.resultats-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.resultats-count { font-weight: 800; font-size: 18px; color: var(--dark); }
.resultats-list { display: flex; flex-direction: column; gap: 14px; }

.pro-card-horizontal {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all 0.2s;
}
.pro-card-horizontal:hover { border-color: #A7F3D0; box-shadow: var(--shadow-md); transform: translateX(3px); }
.pro-card-horizontal .pro-avatar { width: 64px; height: 64px; flex-shrink: 0; font-size: 24px; }
.pro-card-body { flex: 1; min-width: 0; }

/* ── Profil public ───────────────────────────────────────────────────────────── */
.profil-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 32px 0; }
@media (max-width: 800px) { .profil-layout { grid-template-columns: 1fr; } }

.profil-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.profil-avatar-lg {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--green);
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #D1FAE5;
}
.profil-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.profil-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.profil-section { margin-bottom: 28px; }

.profil-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.profil-info-row:last-child { border-bottom: none; }
.profil-info-label { color: var(--text-muted); min-width: 110px; font-size: 13px; }

.contact-card {
    background: var(--dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16,185,129,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 { font-size: 18px; margin-bottom: 16px; font-weight: 700; }

.contact-card input, .contact-card textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.07);
    color: white;
    transition: border-color 0.15s;
}
.contact-card input:focus, .contact-card textarea:focus { outline: none; border-color: var(--green); background: rgba(255,255,255,0.1); }
.contact-card input::placeholder, .contact-card textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-card textarea { resize: vertical; min-height: 110px; }
.contact-card .btn { width: 100%; justify-content: center; background: var(--green); color: white; font-weight: 700; }
.contact-card .btn:hover { background: var(--green-mid); }

/* ── Formulaires ─────────────────────────────────────────────────────────────── */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow-md);
    max-width: 520px;
    margin: 0 auto;
}
.form-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.form-card-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--dark-mid); }
.form-group label .req { color: var(--red); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--white);
    color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.form-control-lg { padding: 13px 16px; font-size: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 20px 0;
    position: relative;
}
.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 43%;
    height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
}
.checkbox-item:hover { border-color: var(--green); background: var(--green-light); }
.checkbox-item input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }
.checkbox-item.checked { border-color: var(--green); background: var(--green-light); color: #065F46; font-weight: 600; }

/* ── Dashboard ES ────────────────────────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 68px); }

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 10px 4px; margin-top: 6px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
    text-decoration: none;
}
.sidebar-link:hover { background: var(--green-light); color: var(--green); text-decoration: none; }
.sidebar-link.active { background: var(--green-light); color: var(--green); font-weight: 700; }
.sidebar-badge { margin-left: auto; background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

.main-content { padding: 36px; background: var(--bg); }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
.page-header p { color: var(--text-muted); font-size: 14px; margin-top: 5px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 22px; }
.stat-card-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-card-value { font-size: 34px; font-weight: 800; color: var(--green); letter-spacing: -1px; }
.stat-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── Alertes ─────────────────────────────────────────────────────────────────── */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: var(--green-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: var(--red-light); color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: var(--amber-light); color: #92400E; border: 1px solid #FDE68A; }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFFFE; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.chip-green { background: var(--green-light); color: #065F46; }
.chip-amber { background: var(--amber-light); color: #92400E; }
.chip-red { background: var(--red-light); color: var(--red); }
.chip-blue { background: var(--blue-light); color: #0E7490; }

/* ── Messages ────────────────────────────────────────────────────────────────── */
.message-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.message-card.unread { border-left: 3px solid var(--green); background: #FAFFFE; }
.message-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.message-sender { font-weight: 700; font-size: 15px; }
.message-date { font-size: 12px; color: var(--text-muted); }
.message-body { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.message-contact { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; gap: 16px; font-size: 13px; }

/* ── Filtres ─────────────────────────────────────────────────────────────────── */
.filters-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters-bar input, .filters-bar select { padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; color: var(--text); background: var(--white); transition: border-color 0.15s; }
.filters-bar input:focus, .filters-bar select:focus { outline: none; border-color: var(--green); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.55);
    padding: 56px 24px 36px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.footer-brand .footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; max-width: 260px; line-height: 1.6; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copy { font-size: 13px; }
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #6EE7B7;
    font-weight: 600;
}

/* ── Auth ────────────────────────────────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg); }

/* ── Misc ────────────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pending-banner { background: var(--amber-light); border: 1px solid #FDE68A; border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px; color: #92400E; }
.btn-white { background: white; color: var(--dark); font-weight: 700; }
.btn-white:hover { background: var(--bg); text-decoration: none; color: var(--dark); }

/* ── Hamburger ───────────────────────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--green-light); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .resultats-layout { grid-template-columns: 1fr; }
    .map-sticky { position: relative; top: 0; }
    #map { height: 300px; }
    .profil-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav { padding: 0 16px; }
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 16px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links .nav-link { padding: 12px 16px; font-size: 15px; }
    .nav-links .btn-nav-primary { margin-top: 4px; text-align: center; padding: 12px 16px; margin-left: 0; }

    .hero { padding: 64px 20px 52px; }
    .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
    .hero-sub { font-size: 15px; margin-bottom: 32px; }
    .hero-badge { font-size: 12px; }
    .hero-stats { gap: 0; margin-top: 36px; padding-top: 28px; }
    .hero-stat { padding: 0 20px; }
    .hero-stat span { font-size: 24px; }
    .hero-stat small { font-size: 11px; }

    .search-box { flex-direction: column; border-radius: var(--radius); padding: 12px; gap: 10px; }
    .search-box input, .search-box select { flex: none; width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
    .search-box .btn { width: 100%; justify-content: center; }

    .trust-items { gap: 20px; }
    .trust-divider { display: none; }

    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 24px; }

    .steps-grid { grid-template-columns: 1fr; gap: 14px; }
    .steps-grid::before { display: none; }
    .pros-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .specialites-grid { gap: 8px; }

    .pro-cta { flex-direction: column; text-align: center; padding: 36px 24px; }
    .pro-cta .btn-cta { width: 100%; justify-content: center; }

    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; padding: 10px 12px; height: auto; }
    .sidebar-label { display: none; }
    .sidebar-link { padding: 8px 10px; font-size: 13px; }
    .main-content { padding: 20px 16px; }

    .form-card { padding: 24px 16px; }
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
    .pro-card { padding: 18px; }
    .pro-card-horizontal { padding: 14px; gap: 12px; }
    .profil-card { padding: 20px; }
    .table-card { overflow-x: auto; }
    th, td { padding: 10px 12px; font-size: 13px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    .footer-top { flex-direction: column; gap: 28px; }
    .footer-nav { gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

    .filters-bar { padding: 12px 16px; gap: 8px; }
    .filters-bar input, .filters-bar select { flex: 1; min-width: 140px; }
    .filters-bar .btn { width: 100%; justify-content: center; }
}



/* ── Appel Urgence Éducateurs ── */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.6); opacity: .5; }
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulsebtn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    50%       { box-shadow: 0 0 0 18px rgba(16,185,129,0); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.appel-urgence {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #064E3B 50%, #0F172A 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    padding: 80px 24px;
    text-align: center;
    overflow: hidden;
}
.appel-urgence-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(16,185,129,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.appel-urgence-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}
.appel-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.4);
    color: #6EE7B7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 36px;
    animation: fadeSlideUp .6s ease both;
}
.appel-live-dot {
    width: 9px; height: 9px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}
.appel-gros-titre {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 28px 0;
    animation: fadeSlideUp .7s .15s ease both;
}
.appel-highlight {
    background: linear-gradient(90deg, #10B981, #6EE7B7, #10B981);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2.5s linear infinite;
}
.appel-accroche {
    font-size: 19px;
    color: #A7F3D0;
    line-height: 1.7;
    margin: 0 0 44px 0;
    animation: fadeSlideUp .7s .3s ease both;
}
.appel-accroche strong { color: #fff; }
.appel-gros-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #10B981;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    padding: 20px 48px;
    border-radius: 60px;
    text-decoration: none;
    animation: fadeSlideUp .7s .45s ease both, pulsebtn 2s 1.5s ease-in-out infinite;
    transition: background .2s, transform .15s;
}
.appel-gros-btn:hover { background: #059669; transform: translateY(-3px); }
.appel-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
}
.appel-garanties {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    font-size: 14px;
    color: #6EE7B7;
    opacity: .85;
    animation: fadeSlideUp .7s .6s ease both;
}

@media (max-width: 640px) {
    .appel-gros-titre { font-size: 32px; }
    .appel-accroche { font-size: 16px; }
    .appel-gros-btn { font-size: 17px; padding: 17px 28px; width: 100%; justify-content: center; }
    .appel-garanties { flex-direction: column; gap: 8px; align-items: center; }
}

/* ── Page 0 résultats ── */
.zero-results { padding: 40px 20px; text-align: center; }
.zero-results-icon { margin-bottom: 16px; }
.zero-results-titre { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 12px; line-height: 1.4; }
.zero-results-texte { font-size: 16px; color: var(--text-muted); margin: 0 0 32px; }
.zero-results-texte strong { color: #065F46; }

.zero-results-blocs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; text-align: left; }
.zero-results-bloc { border-radius: 14px; padding: 24px; }
.zero-famille { background: #F0FDF4; border: 1.5px solid #A7F3D0; }
.zero-educ    { background: #EFF6FF; border: 1.5px solid #BFDBFE; }
.zero-bloc-titre { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.zero-results-bloc p { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; }

.alerte-form { display: flex; flex-direction: column; gap: 10px; }
.alerte-input { width: 100%; padding: 10px 14px; border: 1.5px solid #A7F3D0; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; background: #fff; }
.alerte-input:focus { border-color: #10B981; }
.alerte-btn { background: #10B981; color: #fff; border: none; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; font-family: inherit; }
.alerte-btn:hover { background: #059669; }

.zero-educ-btn { display: inline-block; background: #2563EB; color: #fff; font-size: 14px; font-weight: 700; padding: 11px 20px; border-radius: 8px; text-decoration: none; transition: background .2s; }
.zero-educ-btn:hover { background: #1D4ED8; }

.zero-results-partage { font-size: 13px; color: var(--text-muted); }
.zero-results-partage a { color: #047857; font-weight: 600; text-decoration: none; }
.zero-results-partage a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .zero-results-blocs { grid-template-columns: 1fr; }
}
