/**
 * public.css — Pages publiques (home, search, mn-profile, clarity, pages légales)
 * Source : public/home.blade.php, public/search.blade.php, public/mn-profile.blade.php,
 *          clarity/home.blade.php, clarity/contact.blade.php, components/clarity/*
 */

/* ===== Navbar front (clarity header) ===== */
.navbar-front {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-front .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #4f46e5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-front .navbar-brand i {
    color: var(--primary-color, #4f46e5);
    font-size: 1.8rem;
}
.navbar-front .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}
.navbar-front .nav-link:hover {
    color: var(--primary-color, #4f46e5);
    background: #f8f9fa;
}
.navbar-front .nav-link.active {
    color: var(--primary-color, #4f46e5);
    font-weight: 600;
}
.btn-find-mn {
    background: var(--primary-color, #4f46e5);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-find-mn:hover {
    background: #4338ca;
    color: white !important;
}

/* ===== Footer front (clarity footer) ===== */
.footer-front {
    background: var(--dark-color);
    color: #cbd5e1;
    padding: 2.5rem 0 1rem;
    margin-top: 4rem;
}
.footer-front h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.footer-front a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-front a:hover { color: var(--secondary-color); }
.footer-front .list-unstyled li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { margin: 0 0.5rem; }

/* ===== Cookie banner (RGPD) ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    z-index: 99999; padding: 1.5rem 2rem;
    display: none;
    animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.show { display: block; }
.cookie-banner-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 280px; }
.cookie-banner-text h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 0.85rem; color: #6c757d; margin: 0; }
.cookie-banner-text a { color: var(--primary-color, #4f46e5); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
    border: none; padding: 10px 20px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.cookie-btn-accept { background: var(--primary-color, #4f46e5); color: white; }
.cookie-btn-accept:hover { background: #4338ca; }
.cookie-btn-reject { background: #f1f3f5; color: #495057; }
.cookie-btn-reject:hover { background: #e9ecef; }
.cookie-btn-settings { background: transparent; color: #6c757d; text-decoration: underline; padding: 10px 8px; }
.cookie-prefs {
    display: none; margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid #e9ecef; max-width: 1200px; margin-left: auto; margin-right: auto;
}
.cookie-prefs.show { display: block; }
.cookie-pref-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 0; border-bottom: 1px solid #f1f3f5;
}
.cookie-pref-item:last-child { border-bottom: none; }
.cookie-pref-info h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.cookie-pref-info p { font-size: 0.8rem; color: #6c757d; margin: 0; }
.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle .slider {
    position: absolute; inset: 0; background: #dee2e6; border-radius: 24px;
    cursor: pointer; transition: 0.3s;
}
.cookie-toggle .slider::before {
    content: ''; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s;
}
.cookie-toggle input:checked + .slider { background: var(--primary-color, #4f46e5); }
.cookie-toggle input:checked + .slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .slider { opacity: 0.6; cursor: default; }
@media (max-width: 768px) {
    .cookie-banner-inner { flex-direction: column; text-align: center; }
    .cookie-banner-actions { justify-content: center; }
}

/* ===== Hero section ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(6, 182, 212, 0.85) 100%);
    color: white;
    overflow: hidden;
}
.hero-content {
    position: relative; z-index: 2; text-align: center; padding: 4rem 0;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.hero-content p { font-size: 1.5rem; margin-bottom: 2rem; opacity: 0.95; }
.btn-hero {
    padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 12px; font-weight: 600;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.btn-hero-primary { background: white; color: var(--primary-color, #4f46e5); }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-hero-secondary { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; }
.btn-hero-secondary:hover { background: white; color: var(--primary-color, #4f46e5); }

/* ===== Clarity Hero video ===== */
.hero-video-section {
    position: relative; min-height: 1200px; height: auto; padding: 15rem 0;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.6) 0%, rgba(6, 182, 212, 0.5) 100%);
    z-index: -1;
}
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ===== Features section ===== */
.features-section { padding: 5rem 0; background: var(--light-gray, #f1f5f9); }
.feature-card {
    background: white; padding: 2rem; border-radius: 12px; text-align: center;
    transition: all 0.3s; border: 1px solid #e2e8f0; height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.feature-icon { font-size: 3rem; color: var(--primary-color, #4f46e5); margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }

/* ===== Steps section ===== */
.steps-section { padding: 5rem 0; background: white; }
.step-card { text-align: center; padding: 2rem 1rem; }
.step-number {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary-color, #4f46e5); color: white;
    font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}

/* ===== Stats section ===== */
.stats-section { padding: 4rem 0; background: var(--primary-color, #4f46e5); color: white; }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label-public { font-size: 1.1rem; opacity: 0.9; }

/* ===== Pricing section ===== */
.pricing-section { padding: 5rem 0; background: var(--light-gray, #f1f5f9); }
.pricing-card {
    background: white; border-radius: 12px; padding: 2rem; text-align: center;
    border: 2px solid #e2e8f0; transition: all 0.3s; height: 100%;
}
.pricing-card:hover { transform: scale(1.05); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.pricing-card.featured { border-color: var(--primary-color, #4f46e5); }
.pricing-badge {
    background: var(--primary-color, #4f46e5); color: white; padding: 0.5rem 1rem;
    border-radius: 20px; font-size: 0.875rem; font-weight: 600; display: inline-block; margin-bottom: 1rem;
}
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--primary-color, #4f46e5); margin-bottom: 0.5rem; }
.pricing-features { list-style: none; padding: 0; margin: 2rem 0; }
.pricing-features li { padding: 0.75rem 0; border-bottom: 1px solid #e2e8f0; }
.pricing-features li:last-child { border-bottom: none; }
.btn-pricing { width: 100%; padding: 0.75rem; border-radius: 8px; font-weight: 600; transition: all 0.2s; }

/* ===== CTA section ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, var(--secondary-color, #06b6d4) 100%);
    color: white; text-align: center;
}
.cta-section h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ===== Search page ===== */
#map { height: 600px; width: 100%; border-radius: 12px; z-index: 1; }
.mn-card {
    background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.mn-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); color: inherit; }
.mn-card-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.mn-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e9ecef; }
.mn-avatar-placeholder {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
}
.mn-card-body { padding: 0 1.25rem 1.25rem; }
.mn-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 2px; }
.mn-city { color: #6c757d; font-size: 0.9rem; }
.mn-ref { color: #adb5bd; font-size: 0.8rem; }
.mn-specialties { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mn-specialty-badge {
    background: #eff6ff; color: #4f46e5; padding: 3px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 500;
}
.mn-stats {
    display: flex; gap: 1rem; margin-top: 12px; padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}
.mn-stat { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: #6c757d; }
.mn-stat i { font-size: 1rem; }
.mn-rate { font-weight: 600; color: #0f172a; }
.view-toggle { display: flex; gap: 4px; background: #f1f3f5; border-radius: 8px; padding: 4px; }
.view-toggle button {
    border: none; background: transparent; padding: 8px 16px; border-radius: 6px;
    font-size: 0.9rem; font-weight: 500; color: #6c757d; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.view-toggle button.active { background: white; color: #4f46e5; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.filter-bar {
    background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.25rem; margin-bottom: 1.5rem;
}
.results-count { color: #6c757d; font-size: 0.9rem; }
.no-results { text-align: center; padding: 4rem 2rem; color: #6c757d; }
.no-results i { font-size: 4rem; opacity: 0.3; }

/* Marker cluster custom */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(79, 70, 229, 0.2) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
    background: #4f46e5 !important; color: white !important; font-weight: 600;
}
.mn-marker-photo {
    border-radius: 50%; border: 3px solid #4f46e5; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 44px !important; height: 44px !important; object-fit: cover;
}
.mn-marker-initials {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
    border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.leaflet-popup-content { min-width: 200px; }
.mn-popup { text-align: center; }
.mn-popup img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.mn-popup h4 { margin: 0 0 4px; font-size: 1rem; }
.mn-popup .city { color: #6c757d; font-size: 0.85rem; }
.mn-popup .rate { font-weight: 600; color: #4f46e5; margin-top: 6px; }
.mn-popup a { display: inline-block; margin-top: 8px; color: #fff !important; }

/* ===== MN Profile page ===== */
.profile-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    padding: 3rem 0 6rem; color: white;
}
.profile-card {
    background: white; border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1); margin-top: -4rem; overflow: hidden;
}
.profile-header {
    display: flex; align-items: center; gap: 1.5rem; padding: 2rem; flex-wrap: wrap;
}
.profile-avatar {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 4px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); flex-shrink: 0;
}
.profile-avatar-placeholder {
    width: 120px; height: 120px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700;
    border: 4px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); flex-shrink: 0;
}
.profile-info h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 4px; color: #0f172a; }
.profile-ref { color: #94a3b8; font-size: 0.85rem; }
.profile-location { color: #6c757d; font-size: 1rem; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge-spec { background: #eff6ff; color: #4f46e5; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.stats-bar {
    display: flex; gap: 2rem; padding: 1.5rem 2rem;
    border-top: 1px solid #f1f3f5; border-bottom: 1px solid #f1f3f5;
    background: #f8fafc; flex-wrap: wrap;
}
.stats-bar .stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stats-bar .stat-item .value { font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.stats-bar .stat-item .label {
    font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px;
}
.stats-bar .stat-item .value.rate { color: #4f46e5; }
.stats-bar .stat-item .value.stars { color: #f59e0b; }
.profile-body { padding: 2rem; }
.section-title {
    font-size: 1.1rem; font-weight: 600; color: #0f172a; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 8px;
}
.section-title i { color: #4f46e5; }
.presentation-text { color: #475569; line-height: 1.8; font-size: 1rem; }
#mn-map { height: 300px; border-radius: 12px; margin-top: 1rem; }
.contact-card {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: 12px; padding: 2rem; color: white; text-align: center;
}
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { opacity: 0.9; margin-bottom: 1.5rem; }
.contact-card .btn {
    background: white; color: #4f46e5; font-weight: 600; border: none;
    padding: 10px 28px; border-radius: 8px;
}
.contact-card .btn:hover { background: #f1f5f9; color: #4338ca; }
.back-link {
    color: rgba(255,255,255,0.8); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.95rem; transition: color 0.2s;
}
.back-link:hover { color: white; }
.book-course-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border: none; color: white; font-weight: 600; padding: 8px 20px;
    border-radius: 8px; transition: all 0.3s;
}
.book-course-btn:hover {
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); color: white;
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .stat-number { font-size: 2rem; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-badges { justify-content: center; }
    .stats-bar { justify-content: center; }
    .profile-location { justify-content: center; }
}

/* ===== Contact page ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; padding: 4rem 0; margin-bottom: 3rem;
}
.contact-form-card {
    background: white; padding: 2rem; border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0); height: 100%; text-align: center;
    transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.contact-form-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.contact-icon { font-size: 3rem; color: var(--primary-color, #4f46e5); margin-bottom: 1rem; }
.contact-form {
    background: white; padding: 2.5rem; border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-submit {
    background: var(--primary-color, #4f46e5); color: white; padding: 0.75rem 2rem;
    border-radius: 8px; font-weight: 600; border: none; transition: all 0.3s;
}
.btn-submit:hover {
    background: #4338ca; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ================================================================
 * OFFLINE PAGE
 * ================================================================ */
.offline-card { text-align: center; padding: 2rem; max-width: 400px; margin: 20vh auto; }
.offline-icon { font-size: 3rem; margin-bottom: 1rem; }
.offline-card h1 { color: #1e293b; font-size: 1.5rem; margin-bottom: 0.5rem; }
.offline-card p { color: #64748b; margin-bottom: 1.5rem; }
.btn-retry { background: #4f46e5; color: white; border: none; padding: 0.75rem 2rem; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.btn-retry:hover { background: #4338ca; }

/* ================================================================
 * AUTH PAGES (set-password, email-verification-result)
 * ================================================================ */
.auth-page body { font-family: system-ui, -apple-system, sans-serif; background: #f8fafc; margin: 0; padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { max-width: 460px; width: 100%; margin: 2rem auto; padding: 2rem; }
.auth-card .logo { text-align: center; margin-bottom: 2rem; }
.auth-card .card { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 2rem; border: 1px solid #e2e8f0; }
.auth-card h2 { color: #1e293b; margin-bottom: 1rem; font-size: 1.25rem; }
.auth-card .form-group { margin-bottom: 1rem; }
.auth-card .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #374151; font-size: 0.875rem; }
.auth-card .form-group input { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.875rem; box-sizing: border-box; }
.auth-card .form-group input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.auth-card .btn-primary { width: 100%; padding: 0.75rem; background: #4f46e5; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 500; }
.auth-card .btn-primary:hover { background: #4338ca; }
.auth-card .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.password-rules { background: #f1f5f9; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.password-rules li { font-size: 0.8rem; color: #64748b; margin-bottom: 0.25rem; }
.password-rules li.valid { color: #059669; }
