:root {
    --r-pink: #ff2d87;
    --r-pink-dark: #d6246e;
    --r-pink-glow: rgba(255,45,135,0.15);
    --r-cyan: #00e5ff;
    --r-cyan-glow: rgba(0,229,255,0.12);
    --r-purple: #a855f7;
    --r-purple-glow: rgba(168,85,247,0.12);
    --r-yellow: #ffd400;
    --r-green: #34d399;
    --r-red: #f87171;
    --r-bg: #0c0c14;
    --r-surface: #16162a;
    --r-card: #1c1c34;
    --r-card-hover: #22223e;
    --r-border: rgba(255,255,255,0.07);
    --r-border-strong: rgba(255,255,255,0.12);
    --r-text: #eaeaf2;
    --r-text-secondary: #a0a0c0;
    --r-muted: #8585a8;
    --r-radius: 14px;
    --r-radius-sm: 10px;
    --r-radius-xs: 6px;
    --r-transition: 0.2s ease;
    --r-shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --r-shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --r-shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --r-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================== RESET & BASE ==================== */
#aca-reseau-app {
    font-family: var(--r-font);
    color: var(--r-text);
    background: var(--r-bg);
    min-height: 100vh; min-height: 100dvh;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 56px; /* space for fixed mobile nav */
}
#aca-reseau-app > .aca-reseau-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
}
#aca-reseau-app * { box-sizing: border-box; }
#aca-reseau-app :focus-visible { outline: 2px solid var(--r-pink); outline-offset: 2px; border-radius: 4px; }
#aca-reseau-app button:focus:not(:focus-visible), #aca-reseau-app a:focus:not(:focus-visible) { outline: none; }
#aca-reseau-app h1, #aca-reseau-app h2, #aca-reseau-app h3, #aca-reseau-app h4 { letter-spacing: -0.01em; }
.muted { color: var(--r-muted); font-size: 13px; }
.text-secondary { color: var(--r-text-secondary); }

/* ==================== LOADING ==================== */
.loading { display: flex; align-items: center; justify-content: center; min-height: 200px; color: var(--r-muted); }
.aca-reseau-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; gap: 16px; }
.aca-reseau-spinner { width: 40px; height: 40px; border: 3px solid var(--r-border-strong); border-top-color: var(--r-pink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, var(--r-card) 25%, var(--r-card-hover) 50%, var(--r-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-card { height: 160px; margin-bottom: 12px; border: 1px solid var(--r-border); }
.skeleton-discover { height: 400px; border: 1px solid var(--r-border); border-radius: var(--r-radius); }
.skeleton-line { height: 14px; margin-bottom: 10px; width: 80%; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 60%; }
.skeleton-circle { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; }

/* ==================== TOAST ==================== */
.aca-toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100vw - 40px); }
.aca-toast {
    padding: 12px 20px; border-radius: var(--r-radius-sm); font-size: 14px; max-width: 360px;
    background: var(--r-surface); color: var(--r-text); border: 1px solid var(--r-border-strong);
    opacity: 0; transform: translateX(100%); transition: all 0.3s ease;
    box-shadow: var(--r-shadow-lg); backdrop-filter: blur(12px);
}
.aca-toast.show { opacity: 1; transform: translateX(0); }
.aca-toast-success { border-color: var(--r-green); }
.aca-toast-error { border-color: var(--r-red); color: var(--r-red); }

/* ==================== NAV (TikTok-style mobile / top bar desktop) ==================== */
.aca-reseau-nav {
    display: flex; align-items: center; justify-content: space-around;
    z-index: 50;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0));
    background: rgba(8,8,14,0.95);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.aca-reseau-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0;
    padding: 8px 4px 6px; border: none; background: none; color: rgba(255,255,255,0.4);
    cursor: pointer; font-size: 10px; font-weight: 500; transition: all 0.2s ease;
    min-width: 0; position: relative;
}
.aca-reseau-tab .tab-icon { font-size: 24px; transition: all 0.2s ease; line-height: 1; }
.aca-reseau-tab .tab-label { font-size: 0; height: 0; overflow: hidden; opacity: 0; }
.aca-reseau-tab.active { color: #fff; }
.aca-reseau-tab.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: #fff;
}
.aca-reseau-tab.active .tab-icon { transform: scale(1.15); }
.aca-reseau-tab:hover { color: rgba(255,255,255,0.7); }

/* Special center "poster" tab (FAB style) */
.aca-reseau-tab.tab-poster {
    flex: 0 0 auto; padding: 0; margin: -8px 8px 0;
}
.aca-reseau-tab.tab-poster .tab-icon {
    width: 40px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--r-pink), var(--r-purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    box-shadow: 0 2px 12px rgba(255,45,135,0.35);
}
.aca-reseau-tab.tab-poster.active::after { display: none; }
.aca-reseau-tab.tab-poster:hover .tab-icon { box-shadow: 0 4px 20px rgba(255,45,135,0.5); transform: scale(1.08); }

/* ==================== BUTTONS ==================== */
.aca-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--r-radius-sm); border: 1px solid var(--r-border-strong);
    background: var(--r-surface); color: var(--r-text);
    font-family: var(--r-font); font-size: 13px; font-weight: 500; cursor: pointer;
    transition: all var(--r-transition); white-space: nowrap;
}
.aca-btn:hover { border-color: rgba(255,255,255,0.15); background: var(--r-card); transform: translateY(-1px); }
.aca-btn:active { transform: translateY(0) scale(0.97); }
.aca-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.aca-btn.primary {
    background: linear-gradient(135deg, var(--r-pink), var(--r-pink-dark));
    border-color: transparent; color: #fff; font-weight: 600;
    box-shadow: 0 2px 16px rgba(255,45,135,0.3);
}
.aca-btn.primary:hover { box-shadow: 0 4px 24px rgba(255,45,135,0.4); transform: translateY(-1px); }
.aca-btn.accent { border-color: rgba(0,229,255,0.3); color: var(--r-cyan); }
.aca-btn.accent:hover { background: var(--r-cyan-glow); }
.aca-btn.danger { border-color: rgba(248,113,113,0.3); color: var(--r-red); }
.aca-btn.danger:hover { background: rgba(248,113,113,0.08); }
.aca-btn.small { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.aca-btn.full-width { width: 100%; padding: 14px 24px; font-size: 15px; border-radius: var(--r-radius); }
.btn-link { background: none; border: none; color: var(--r-cyan); cursor: pointer; font-size: 13px; padding: 4px 0; font-family: var(--r-font); }
.btn-link:hover { text-decoration: underline; }
.btn-back { background: none; border: none; color: var(--r-text-secondary); cursor: pointer; font-size: 13px; padding: 8px 0; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--r-font); }
.btn-back:hover { color: var(--r-text); }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px; font-size: 12px; color: var(--r-text-secondary);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border-radius: var(--r-radius-sm);
    border: 1px solid var(--r-border-strong); background: var(--r-surface);
    color: var(--r-text); font-size: 14px; font-family: var(--r-font);
    transition: all var(--r-transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--r-muted); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--r-pink);
    box-shadow: 0 0 0 3px var(--r-pink-glow), 0 0 20px rgba(255,45,135,0.06);
    background: var(--r-card);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.child-row { display: grid; grid-template-columns: auto 80px; gap: 8px; margin-bottom: 8px; align-items: center; }
.child-row input {
    padding: 10px 12px; border-radius: var(--r-radius-sm); border: 1px solid var(--r-border-strong);
    background: var(--r-surface); color: var(--r-text); font-size: 14px; font-family: var(--r-font);
}
.child-row input:focus { outline: none; border-color: var(--r-pink); box-shadow: 0 0 0 3px var(--r-pink-glow); }
.child-label { color: var(--r-text-secondary); font-size: 13px; font-weight: 500; }
#children-count {
    width: 80px; padding: 10px 12px; border-radius: var(--r-radius-sm); border: 1px solid var(--r-border-strong);
    background: var(--r-surface); color: var(--r-text); font-size: 14px; font-family: var(--r-font);
    transition: all var(--r-transition);
}
#children-count:focus { outline: none; border-color: var(--r-pink); box-shadow: 0 0 0 3px var(--r-pink-glow); }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: 20px; border: 1px solid var(--r-border-strong);
    font-size: 13px; cursor: pointer; transition: all var(--r-transition);
    background: var(--r-surface);
}
.chip-check:has(input:checked) { border-color: var(--r-pink); background: var(--r-pink-glow); color: var(--r-pink); }
.chip-check input { display: none; }

/* ==================== GEO INPUT ==================== */
.geo-input-wrap { position: relative; }
.geo-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: var(--r-card); border: 1px solid var(--r-border-strong); border-radius: 0 0 var(--r-radius-sm) var(--r-radius-sm);
    max-height: 200px; overflow-y: auto; box-shadow: var(--r-shadow-md);
}
.geo-suggestion { padding: 10px 14px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--r-border); }
.geo-suggestion:hover { background: var(--r-card-hover); }
.geo-suggestion:last-child { border-bottom: none; }

/* ==================== VIEW ==================== */
.aca-reseau-view { padding: 20px 16px; animation: viewFadeIn 0.3s ease; }
@keyframes viewFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Stagger animation for cards */
@keyframes cardFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.annonces-list > .annonce-card,
.matches-list > .match-card,
.nearby-grid > .nearby-card,
.notif-list > .notif-item,
.ratings-list > .rating-card { animation: cardFadeUp 0.35s ease both; }
.annonces-list > :nth-child(1), .matches-list > :nth-child(1), .nearby-grid > :nth-child(1), .notif-list > :nth-child(1), .ratings-list > :nth-child(1) { animation-delay: 0s; }
.annonces-list > :nth-child(2), .matches-list > :nth-child(2), .nearby-grid > :nth-child(2), .notif-list > :nth-child(2), .ratings-list > :nth-child(2) { animation-delay: 0.05s; }
.annonces-list > :nth-child(3), .matches-list > :nth-child(3), .nearby-grid > :nth-child(3), .notif-list > :nth-child(3), .ratings-list > :nth-child(3) { animation-delay: 0.1s; }
.annonces-list > :nth-child(4), .matches-list > :nth-child(4), .nearby-grid > :nth-child(4), .notif-list > :nth-child(4), .ratings-list > :nth-child(4) { animation-delay: 0.15s; }
.annonces-list > :nth-child(n+5), .matches-list > :nth-child(n+5), .nearby-grid > :nth-child(n+5), .notif-list > :nth-child(n+5), .ratings-list > :nth-child(n+5) { animation-delay: 0.2s; }
.view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.view-header h2 { font-size: 20px; margin: 0; font-weight: 700; }
.header-actions { display: flex; gap: 8px; }

/* Section label (small caps) */
.section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--r-muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--r-border); }

/* Section card (grouped content) */
.section-card {
    background: var(--r-surface); border: 1px solid var(--r-border-strong);
    border-radius: var(--r-radius); padding: 16px; margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.section-card:hover { border-color: rgba(255,255,255,0.12); }

/* ==================== ONBOARDING ==================== */
.aca-reseau-onboarding { padding: 32px 20px; max-width: 480px; margin: 0 auto; }
.onboarding-hero {
    text-align: center; margin-bottom: 36px; padding: 32px 20px;
    background: linear-gradient(180deg, rgba(255,45,135,0.06) 0%, rgba(168,85,247,0.03) 50%, transparent 100%);
    border-radius: 20px; border: 1px solid var(--r-border);
}
.onboarding-hero h2 {
    font-size: 24px; font-weight: 800; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--r-pink), var(--r-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.onboarding-hero p { color: var(--r-text-secondary); line-height: 1.6; margin: 0 0 4px; }

/* ==================== CARTE / ANNONCES ==================== */
.carte-filters { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.carte-filters select, .filter-input {
    padding: 8px 12px; border-radius: 8px; border: 1px solid var(--r-border-strong);
    background: var(--r-surface); color: var(--r-text); font-size: 12px; font-family: var(--r-font);
    transition: all var(--r-transition);
}
.carte-filters select:focus { outline: none; border-color: var(--r-cyan); box-shadow: 0 0 0 3px var(--r-cyan-glow); }
.filter-input { flex: 1; min-width: 120px; }
.filter-input:focus { outline: none; border-color: var(--r-pink); box-shadow: 0 0 0 3px var(--r-pink-glow); }
.annonces-list { display: flex; flex-direction: column; gap: 10px; }
.annonce-card {
    background: var(--r-surface); border: 1px solid var(--r-border);
    border-radius: var(--r-radius); padding: 16px; transition: all 0.25s ease;
    cursor: pointer; position: relative; overflow: hidden;
}
.annonce-card::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--r-radius);
    background: linear-gradient(135deg, transparent, rgba(255,45,135,0.03));
    opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.annonce-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: var(--r-shadow-md); }
.annonce-card:hover::before { opacity: 1; }
.annonce-card:active { transform: scale(0.98); transition-duration: 0.1s; }
.annonce-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.annonce-type { padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-sport { background: rgba(52,211,153,0.12); color: var(--r-green); }
.badge-sortie { background: var(--r-cyan-glow); color: var(--r-cyan); }
.badge-coop { background: var(--r-purple-glow); color: var(--r-purple); }
.badge-echange { background: rgba(255,212,0,0.1); color: var(--r-yellow); }
.badge-social { background: var(--r-pink-glow); color: var(--r-pink); }
.badge-dem { background: rgba(255,255,255,0.04); color: var(--r-muted); }
.badge-autre { background: rgba(255,255,255,0.03); color: var(--r-muted); }
.annonce-rec { font-size: 11px; color: var(--r-cyan); font-weight: 500; }
.annonce-distance { font-size: 12px; color: var(--r-muted); margin-left: auto; }
.annonce-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; line-height: 1.3; }
.annonce-desc { font-size: 13px; color: var(--r-text-secondary); margin: 0 0 10px; line-height: 1.4; }
.annonce-meta {
    display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--r-text-secondary);
    margin-bottom: 12px; padding: 10px 0; border-top: 1px solid var(--r-border); border-bottom: 1px solid var(--r-border);
}
.annonce-meta span { display: inline-flex; align-items: center; gap: 2px; }
.annonce-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
.annonce-author { font-size: 13px; color: var(--r-cyan); cursor: pointer; font-weight: 500; }
.annonce-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.status-active { background: rgba(52,211,153,0.12); color: var(--r-green); }
.status-fermee, .status-expiree, .status-annulee { background: rgba(248,113,113,0.12); color: var(--r-red); }
.annonce-closed { font-size: 12px; color: var(--r-muted); }
.expiring-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(255,212,0,0.12); color: var(--r-yellow); font-weight: 600; }
.expiring-badge.expired { background: rgba(248,113,113,0.12); color: var(--r-red); }
.annonce-card.expiring { border-color: rgba(255,212,0,0.3); }

/* ==================== PROFILE STATS ==================== */
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px; }
.profile-stat {
    text-align: center; padding: 14px 6px; background: var(--r-surface); border: 1px solid var(--r-border);
    border-radius: var(--r-radius-sm); transition: all 0.2s;
}
.profile-stat:hover { border-color: var(--r-border-strong); transform: translateY(-1px); }
.profile-stat-num {
    font-size: 20px; font-weight: 800; display: block;
    background: linear-gradient(135deg, var(--r-pink), var(--r-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.profile-stat-label { font-size: 10px; color: var(--r-muted); margin-top: 2px; display: block; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* ==================== ANNONCE IMAGE ==================== */
.annonce-image { margin: -16px -16px 12px; overflow: hidden; border-radius: var(--r-radius) var(--r-radius) 0 0; }
.annonce-image img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.detail-image { margin: 12px 0; border-radius: var(--r-radius-sm); overflow: hidden; }
.detail-image img { width: 100%; max-height: 300px; object-fit: cover; display: block; border-radius: var(--r-radius-sm); }

/* ==================== ANNONCE DETAIL ==================== */
.detail-card { background: var(--r-surface); border-radius: var(--r-radius); padding: 24px; border: 1px solid var(--r-border); }
.detail-card h2 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; }
.detail-desc { color: var(--r-text-secondary); line-height: 1.6; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 20px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--r-bg); border-radius: var(--r-radius-xs); }
.detail-label { font-size: 10px; color: var(--r-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.detail-author { margin-bottom: 16px; font-size: 14px; }
.detail-author span { color: var(--r-muted); margin-right: 6px; }
.detail-actions { margin: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-section { margin-top: 20px; }
.detail-section h3 { font-size: 13px; margin: 0 0 12px; color: var(--r-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rsvp-list { display: flex; flex-direction: column; gap: 6px; }
.rsvp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--r-bg); border-radius: var(--r-radius-xs); font-size: 13px; }
.rsvp-city { color: var(--r-muted); }
.rsvp-kids { color: var(--r-cyan); margin-left: auto; }

/* ==================== DISCOVER (immersive) ==================== */
.discover-feed { display: flex; flex-direction: column; align-items: center; padding: 0; }
.discover-topbar {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px; width: 100%;
}
.discover-count { flex: 1; font-size: 12px; color: var(--r-muted); text-align: center; font-weight: 500; }
.discover-radius-select {
    padding: 6px 10px; border-radius: 8px; border: 1px solid var(--r-border-strong);
    background: var(--r-surface); color: var(--r-text); font-size: 12px; font-family: var(--r-font);
    transition: all var(--r-transition);
}
.discover-radius-select:focus { outline: none; border-color: var(--r-pink); box-shadow: 0 0 0 3px var(--r-pink-glow); }
.discover-card-immersive { width: 100%; max-width: 420px; position: relative; }
.discover-media {
    position: relative; aspect-ratio: 9/16; max-height: 72vh; border-radius: 20px;
    overflow: hidden; background: var(--r-bg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.discover-media video { width: 100%; height: 100%; object-fit: cover; }
.discover-media-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, #161630 0%, #0c0c1a 40%, #180c22 100%);
    display: flex; align-items: center; justify-content: center;
}
.discover-avatar-full { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.1); }
.discover-avatar-icon { font-size: 80px; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5)); }
.discover-gradient {
    position: absolute; bottom: 0; left: 0; right: 0; height: 70%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    pointer-events: none;
}
.discover-side-actions {
    position: absolute; right: 12px; bottom: 140px; display: flex; flex-direction: column; gap: 16px; z-index: 2;
}
.discover-side-btn {
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
    cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; color: #fff;
}
.discover-side-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.discover-score-float {
    position: absolute; top: 16px; left: 16px; font-size: 18px; font-weight: 800;
    padding: 6px 16px; border-radius: 24px; z-index: 2;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    letter-spacing: -0.01em;
}
.discover-score-float.score-high { background: rgba(52,211,153,0.2); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.discover-score-float.score-mid { background: rgba(255,212,0,0.2); color: #e6b800; border: 1px solid rgba(255,212,0,0.15); }
.discover-score-float.score-low { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.15); }
.discover-overlay-info {
    position: absolute; bottom: 20px; left: 20px; right: 64px; z-index: 2; color: #fff;
}
.discover-overlay-info h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.discover-location { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0 0 6px; }
.discover-overlay-bio { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.discover-overlay-kids { font-size: 13px; color: var(--r-cyan); margin: 0 0 10px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.discover-overlay-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dtag { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; backdrop-filter: blur(8px); letter-spacing: 0.01em; }
.dtag-purple { background: rgba(168,85,247,0.25); color: #d4a5ff; border: 1px solid rgba(168,85,247,0.2); }
.dtag-cyan { background: rgba(0,229,255,0.15); color: #80f0ff; border: 1px solid rgba(0,229,255,0.15); }
.dtag-green { background: rgba(52,211,153,0.2); color: #7ee8a8; border: 1px solid rgba(52,211,153,0.15); }
.discover-bottom-actions { display: flex; justify-content: center; gap: 20px; padding: 20px 0 8px; }
.discover-action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--r-border-strong);
    background: var(--r-surface); cursor: pointer; transition: all 0.2s ease;
    box-shadow: var(--r-shadow-sm);
}
.discover-action-btn span { font-size: 22px; }
.discover-action-btn small { font-size: 9px; color: var(--r-muted); display: none; font-weight: 600; }
.discover-action-btn.skip:hover { border-color: var(--r-text-secondary); transform: scale(1.12); }
.discover-action-btn.like:hover { border-color: var(--r-pink); background: var(--r-pink-glow); transform: scale(1.12); box-shadow: 0 4px 20px rgba(255,45,135,0.3); }
.discover-action-btn.info:hover { border-color: var(--r-cyan); transform: scale(1.12); }
.discover-hint { font-size: 11px; color: var(--r-muted); text-align: center; padding: 4px 0 16px; }
.discover-desktop-hint { display: none; }
.discover-next-peek { display: none; }

/* Legacy discover compat */
.discover-view { display: flex; flex-direction: column; align-items: center; }
.discover-children { font-size: 13px; color: var(--r-cyan); margin: 0; }
.discover-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.discover-counter { margin-top: 12px; font-size: 12px; color: var(--r-muted); }

/* ==================== MATCHES ==================== */
.matches-list { display: flex; flex-direction: column; gap: 8px; }
.match-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--r-surface); border: 1px solid var(--r-border);
    border-radius: var(--r-radius); padding: 14px 16px; transition: all 0.25s ease;
}
.match-card:hover { border-color: var(--r-border-strong); transform: translateY(-1px); box-shadow: var(--r-shadow-sm); }
.match-card:active { transform: scale(0.98); transition-duration: 0.1s; }
.match-thumb {
    width: 48px; height: 48px; border-radius: 14px; background: var(--r-card);
    display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; flex-shrink: 0;
}
.match-thumb img { width: 100%; height: 100%; object-fit: cover; }
.match-info { flex: 1; min-width: 0; }
.match-info h4 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.match-info p { margin: 0; font-size: 13px; color: var(--r-text-secondary); }
.match-info small { font-size: 11px; color: var(--r-muted); }
.match-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ==================== MATCH OVERLAY ==================== */
.match-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(8px);
}
.match-overlay.show { opacity: 1; }
.match-content {
    background: var(--r-surface); border-radius: 20px;
    padding: 48px; text-align: center; max-width: 360px; border: 1px solid var(--r-pink-glow);
    transform: scale(0.8); transition: transform 0.3s;
    box-shadow: 0 0 60px rgba(255,45,135,0.15);
}
.match-overlay.show .match-content { transform: scale(1); }
.match-anim { font-size: 64px; margin-bottom: 12px; animation: bounce 0.5s ease; }
@keyframes bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.match-content h2 {
    font-size: 28px; margin: 0 0 12px; font-weight: 800;
    background: linear-gradient(135deg, var(--r-pink), var(--r-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.match-content p { color: var(--r-text-secondary); margin: 0 0 24px; }

/* ==================== PROFIL ==================== */
.profil-view { max-width: 560px; margin: 0 auto; }
.profil-header { text-align: center; margin-bottom: 20px; }
.profil-avatar {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--r-card), var(--r-surface));
    border: 2px solid var(--r-border-strong);
    display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden;
    position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.profil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5); border-radius: 50%; opacity: 0; transition: opacity 0.2s;
    cursor: pointer; font-size: 20px;
}
.profil-avatar:hover .avatar-upload-overlay { opacity: 1; }
.profil-header h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.profil-city { color: var(--r-text-secondary); font-size: 14px; margin: 0 0 4px; }
.profil-rating { font-size: 14px; color: var(--r-yellow); font-weight: 600; }
.profil-since { font-size: 13px; color: var(--r-muted); margin-top: 2px; }
.profil-section { margin-bottom: 20px; }
.profil-section h3 {
    font-size: 11px; color: var(--r-muted); margin: 0 0 10px;
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.profil-bio { font-size: 14px; line-height: 1.6; margin: 0; color: var(--r-text-secondary); }
.profil-video { position: relative; }
.profil-video video { width: 100%; max-height: 300px; border-radius: var(--r-radius-sm); }
.profil-video-player { width: 100%; max-height: 300px; border-radius: var(--r-radius-sm); }
.video-status { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.status-pending { background: rgba(255,212,0,0.15); color: var(--r-yellow); }
.status-approved { background: rgba(52,211,153,0.15); color: var(--r-green); }
.status-rejected { background: rgba(248,113,113,0.15); color: var(--r-red); }
.children-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.child-tag {
    padding: 8px 16px; border-radius: 24px; font-size: 13px; font-weight: 600;
    background: var(--r-cyan-glow); color: var(--r-cyan);
    border: 1px solid rgba(0,229,255,0.15);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.chip-purple { background: var(--r-purple-glow); color: var(--r-purple); border: 1px solid rgba(168,85,247,0.15); }
.chip-cyan { background: var(--r-cyan-glow); color: var(--r-cyan); border: 1px solid rgba(0,229,255,0.12); }
.chip-green { background: rgba(52,211,153,0.1); color: var(--r-green); border: 1px solid rgba(52,211,153,0.12); }
.profil-actions, .profil-actions-public { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ==================== LEVELS ==================== */
.niveaux-intro { font-size: 13px; color: var(--r-text-secondary); margin: 0 0 24px; line-height: 1.5; }
.niveau-category { margin-bottom: 24px; }
.niveau-category h3 { font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.niveau-grid { display: flex; flex-direction: column; gap: 4px; }
.niveau-item {
    display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--r-surface); border-radius: var(--r-radius-sm);
    border: 1px solid transparent; transition: border-color var(--r-transition);
}
.niveau-item.has-level { border-color: var(--r-border); }
.niveau-icon { font-size: 18px; text-align: center; }
.niveau-label { font-size: 13px; font-weight: 500; }
.niveau-selector { display: flex; gap: 4px; }
.niveau-dot {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--r-border-strong);
    background: none; color: var(--r-muted); font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all var(--r-transition); display: flex; align-items: center; justify-content: center;
    font-family: var(--r-font);
}
.niveau-dot:hover { border-color: var(--r-cyan); color: var(--r-cyan); transform: scale(1.1); }
.niveau-dot.filled { background: var(--r-cyan); border-color: var(--r-cyan); color: var(--r-bg); font-weight: 800; }
.levels-list { display: flex; flex-direction: column; gap: 8px; }
.level-item { display: grid; grid-template-columns: 28px 1fr 80px 32px; align-items: center; gap: 8px; font-size: 13px; }
.level-icon { font-size: 16px; }
.level-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.level-bar-wrap { width: 100%; }
.level-bar { height: 6px; background: var(--r-border-strong); border-radius: 3px; overflow: hidden; }
.level-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--r-cyan), #0099cc); border-radius: 3px; transition: width 0.3s; }
.level-num { text-align: right; color: var(--r-cyan); font-weight: 700; }

/* ==================== RATING / NOTER ==================== */
.rating-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--r-border); }
.rating-row label { font-size: 14px; }

/* ==================== POSTER ==================== */
.aca-reseau-view form { max-width: 560px; }

/* ==================== EMPTY STATES ==================== */
.empty-state {
    text-align: center; padding: 60px 24px; max-width: 400px; margin: 0 auto;
}
.empty-state-icon {
    font-size: 56px; margin-bottom: 16px; display: block;
    animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.empty-state h3 {
    font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--r-text);
}
.empty-state p { margin: 0 0 20px; color: var(--r-text-secondary); font-size: 14px; line-height: 1.6; }
.empty-state .aca-btn { margin-top: 4px; }

/* ==================== LOGIN REQUIRED ==================== */
.aca-reseau-login-required { text-align: center; padding: 60px 20px; }
.aca-reseau-login-required p { margin-bottom: 16px; color: var(--r-text-secondary); }

/* ==================== PROFILE COMPLETION ==================== */
.profile-completion {
    margin-bottom: 16px; padding: 12px 16px;
    background: var(--r-surface); border-radius: var(--r-radius-sm);
    border: 1px solid var(--r-border);
}
.completion-bar { height: 4px; background: var(--r-border-strong); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.completion-fill { height: 100%; background: linear-gradient(90deg, var(--r-pink), var(--r-purple)); border-radius: 2px; transition: width 0.4s ease; }
.completion-text { font-size: 12px; color: var(--r-muted); font-weight: 500; }

/* ==================== LIKES RECEIVED ==================== */
.likes-received-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(255,45,135,0.08));
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: var(--r-radius); margin-bottom: 16px;
}
.likes-received-banner span:first-child { font-weight: 600; font-size: 14px; }
.likes-list { display: flex; flex-direction: column; gap: 12px; }
.like-item { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius); }
.like-info { display: flex; flex-direction: column; gap: 2px; }
.like-actions { display: flex; gap: 8px; }

/* ==================== REPORT MODAL ==================== */
.report-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; backdrop-filter: blur(4px); }
.report-modal-overlay.show { opacity: 1; }
.report-modal { background: var(--r-surface); border: 1px solid var(--r-border-strong); border-radius: var(--r-radius); padding: 24px; max-width: 400px; width: 90%; box-shadow: var(--r-shadow-lg); }
.report-modal h3 { margin: 0 0 16px; font-weight: 700; }
.report-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.report-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--r-bg); border-radius: var(--r-radius-xs); cursor: pointer; font-size: 14px; }
.report-option input { accent-color: var(--r-pink); }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ==================== COMMENTS ==================== */
.comments-section { margin-top: 20px; }
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.comment-item { padding: 12px; background: var(--r-surface); border-radius: var(--r-radius-sm); border-left: 2px solid var(--r-border-strong); }
.comment-item.my-comment { border-left-color: var(--r-pink); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 600; }
.comment-date { font-size: 11px; color: var(--r-muted); }
.comment-body { font-size: 14px; margin: 0; line-height: 1.5; color: var(--r-text-secondary); }
.comment-form { display: flex; gap: 8px; align-items: flex-start; }
.comment-form textarea { flex: 1; min-height: 36px; resize: vertical; }

/* ==================== SHARE ==================== */
.detail-share { margin-top: 16px; text-align: center; }

/* ==================== MATCH SCORE ==================== */
.chip-green { background: rgba(52,211,153,0.12); color: var(--r-green); }

/* ==================== NEARBY ==================== */
.nearby-filters { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.nearby-card {
    background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius);
    padding: 16px; transition: all 0.25s ease;
}
.nearby-card:hover { border-color: var(--r-border-strong); transform: translateY(-2px); box-shadow: var(--r-shadow-md); }
.nearby-card:active { transform: scale(0.98); transition-duration: 0.1s; }
.nearby-header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.nearby-avatar {
    width: 44px; height: 44px; border-radius: 12px; background: var(--r-card);
    display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.nearby-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nearby-avatar span { font-size: 20px; }
.nearby-header h4 { margin: 0; font-size: 14px; font-weight: 600; }
.nearby-rating { margin-left: auto; color: var(--r-yellow); font-weight: 700; font-size: 13px; }
.nearby-bio { font-size: 13px; color: var(--r-text-secondary); margin: 4px 0 8px; line-height: 1.4; }
.nearby-kids { font-size: 12px; color: var(--r-text-secondary); margin-bottom: 8px; }
.nearby-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ==================== SWIPE ANIMATIONS ==================== */
.discover-card-immersive { transition: transform 0.3s ease, opacity 0.3s ease; }
.discover-card-immersive.swipe-right { transform: translateX(120%) rotate(8deg); opacity: 0; }
.discover-card-immersive.swipe-left { transform: translateX(-120%) rotate(-8deg); opacity: 0; }

/* ==================== FORM VALIDATION ==================== */
.input-error { border-color: var(--r-red) !important; box-shadow: 0 0 0 2px rgba(248,113,113,0.15); }
.field-error { display: block; color: var(--r-red); font-size: 12px; margin-top: 4px; }

/* ==================== LOAD MORE ==================== */
.load-more-wrap { text-align: center; padding: 20px 0; }

/* ==================== DISCOVER TAGS ==================== */
.discover-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip-sm { font-size: 11px; padding: 3px 10px; }

/* ==================== MAP ==================== */
.carte-map { height: 300px; border-radius: var(--r-radius); margin-bottom: 16px; border: 1px solid var(--r-border); z-index: 1; }
.carte-map .leaflet-popup-content-wrapper { background: var(--r-card); color: var(--r-text); border-radius: 8px; }
.carte-map .leaflet-popup-tip { background: var(--r-card); }
.carte-map .leaflet-popup-content { font-size: 13px; margin: 10px 14px; }
.carte-map .leaflet-popup-content strong { color: var(--r-pink); }
.map-marker-icon { background: transparent !important; border: none !important; }

/* ==================== TAB BADGES ==================== */
.tab-icon { position: relative; display: inline-block; }
.tab-badge {
    position: absolute; top: -8px; right: -10px; background: var(--r-pink); color: #fff;
    font-size: 9px; font-weight: 800; min-width: 16px; height: 16px; line-height: 16px;
    text-align: center; border-radius: 10px; padding: 0 4px;
}

/* ==================== BLOCKS ==================== */
.blocks-list { display: flex; flex-direction: column; gap: 12px; }
.block-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius); }
.block-info { display: flex; flex-direction: column; gap: 4px; }
.block-info strong { color: var(--r-text); }
.block-info small { color: var(--r-muted); font-size: 12px; }

/* ==================== MES AVIS ==================== */
.ratings-list { display: flex; flex-direction: column; gap: 10px; }
.rating-card { padding: 16px; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius); }
.rating-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rating-header strong { color: var(--r-text); font-weight: 600; }
.rating-avg { color: var(--r-yellow); font-weight: 700; }
.rating-details { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--r-muted); margin-bottom: 8px; }
.rating-details span .star-filled { color: var(--r-yellow); }
.rating-comment { font-style: italic; color: var(--r-text-secondary); margin-top: 10px; padding: 10px 14px; background: var(--r-bg); border-radius: var(--r-radius-sm); border-left: 2px solid var(--r-pink-glow); font-size: 13px; line-height: 1.5; }

/* ==================== NOTIFICATIONS ==================== */
.notif-list { display: flex; flex-direction: column; gap: 4px; }
.notif-item {
    display: flex; gap: 12px; padding: 14px 16px;
    background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius-sm);
    transition: all 0.2s ease; cursor: pointer;
}
.notif-item:hover { background: var(--r-card); transform: translateX(2px); }
.notif-item.unread { border-left: 3px solid var(--r-pink); background: rgba(255,45,135,0.03); }
.notif-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notif-content { flex: 1; min-width: 0; }
.notif-content strong { display: block; font-size: 13px; margin-bottom: 2px; font-weight: 600; }
.notif-body { font-size: 13px; color: var(--r-text-secondary); margin: 0 0 4px; }

/* ==================== BOOKMARKS ==================== */
.bookmarked { border-color: var(--r-yellow) !important; color: var(--r-yellow) !important; }

/* ==================== PROFILE BADGES ==================== */
.profil-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; justify-content: center; }
.profil-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    background: linear-gradient(135deg, rgba(255,45,135,0.06), rgba(168,85,247,0.06));
    border: 1px solid rgba(255,45,135,0.12); color: var(--r-pink);
}

/* ==================== CONSENT ==================== */
.consent-section {
    margin: 24px 0 20px; padding: 16px;
    background: rgba(255,45,135,0.02); border: 1px solid rgba(255,45,135,0.1);
    border-radius: var(--r-radius);
}
.consent-check { margin-bottom: 8px; }
.consent-accepted { border-color: var(--r-green) !important; background: rgba(52,211,153,0.06) !important; color: var(--r-green) !important; }

/* ==================== PRIVACY ==================== */
.privacy-section { padding: 16px; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius); }
.privacy-section h3 { font-size: 14px; margin: 0 0 12px; color: var(--r-text); font-weight: 600; }
.consent-item label { font-size: 13px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .match-actions { flex-wrap: wrap; }
    .match-actions .aca-btn { font-size: 11px; padding: 5px 8px; }
    .nearby-grid { grid-template-columns: 1fr; }
    .header-actions { flex-wrap: wrap; }
    .notif-item { padding: 10px 12px; }
}
@media (max-width: 480px) {
    .aca-reseau-view { padding: 14px 12px; }
    .view-header { flex-direction: column; align-items: flex-start; }
    .annonce-meta { flex-direction: column; gap: 4px; }
    .form-row { grid-template-columns: 1fr; }
    .niveau-item { grid-template-columns: 24px 1fr; }
    .niveau-selector { margin-top: 4px; grid-column: span 2; }
    .detail-grid { grid-template-columns: 1fr; }
    .level-item { grid-template-columns: 1fr 60px 28px; }
    .level-icon { display: none; }
    .match-card { flex-wrap: wrap; }
    .match-actions { width: 100%; justify-content: flex-end; }
    .discover-actions { gap: 16px; }
    .carte-filters { flex-direction: column; }
    .carte-map { height: 220px; }
}

/* Welcome tour */
.welcome-tour-overlay {
    position: fixed; inset: 0; z-index: 99998; background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(4px);
}
.welcome-tour-overlay.show { opacity: 1; }
.welcome-tour {
    background: var(--r-surface); border: 1px solid var(--r-border-strong); border-radius: 20px;
    padding: 32px; max-width: 480px; width: 100%; animation: fadeIn 0.3s ease; box-shadow: var(--r-shadow-lg);
}
.welcome-tour h2 { margin: 0 0 8px; font-size: 22px; text-align: center; font-weight: 700; }
.welcome-tour > p { color: var(--r-text-secondary); text-align: center; margin-bottom: 24px; font-size: 14px; }
.tour-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.tour-step { display: flex; gap: 12px; align-items: flex-start; }
.tour-icon { font-size: 24px; flex-shrink: 0; width: 36px; text-align: center; }
.tour-step div { font-size: 13px; line-height: 1.4; }
.tour-step strong { font-size: 14px; }

/* Completion nudge */
.completion-nudge {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-radius);
    background: linear-gradient(135deg, rgba(255,45,135,0.06), rgba(168,85,247,0.06));
    border: 1px solid rgba(255,45,135,0.15); font-size: 13px;
}
.completion-nudge span { flex: 1; }
@media (max-width: 480px) {
    .completion-nudge { flex-direction: column; text-align: center; }
}

/* Similar section */
.similar-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--r-border); }
.similar-section h3 { font-size: 13px; margin: 0 0 12px; color: var(--r-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }

/* Offline banner */
.offline-banner {
    background: rgba(248,113,113,0.1); color: var(--r-red); text-align: center;
    padding: 10px 16px; font-size: 13px; font-weight: 600;
    border-bottom: 1px solid rgba(248,113,113,0.2);
}

/* Discover filters */
.discover-filters {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 8px 12px;
    background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius-sm);
}
.discover-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--r-text-secondary); }
.discover-filters select { padding: 4px 8px; border-radius: var(--r-radius-xs); border: 1px solid var(--r-border-strong); background: var(--r-bg); color: var(--r-text); font-size: 13px; font-family: var(--r-font); }

/* Mobile touch targets */
@media (max-width: 640px) {
    .aca-btn { min-height: 44px; }
    .aca-btn.small { min-height: 36px; }
    .chip-check { min-height: 40px; padding: 8px 14px; }
    .aca-reseau-tab { min-height: 52px; }
    .annonce-card { padding: 14px; }
    .form-group input, .form-group textarea, .form-group select { padding: 12px 14px; font-size: 16px; }
    .rsvp-item { padding: 10px 14px; }
    .comment-item { padding: 12px; }
    .notif-item { min-height: 56px; }
    .block-item { padding: 12px; }
}

/* Kudos & Compat Tags */
.kudos-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kudos-option, .compat-option { cursor: pointer; }
.kudos-option input, .compat-option input { display: none; }
.kudos-chip {
    display: inline-block; padding: 10px 16px; border-radius: 24px;
    border: 1px solid var(--r-border-strong); background: var(--r-surface);
    font-size: 14px; transition: all 0.2s; font-family: var(--r-font);
}
.kudos-chip:hover { border-color: var(--r-cyan); background: var(--r-card); }
.kudos-chip.selected { border-color: var(--r-pink); background: var(--r-pink-glow); color: var(--r-pink); font-weight: 600; }
.compat-section { margin-top: 16px; border: 1px solid var(--r-border); border-radius: var(--r-radius); padding: 14px; background: var(--r-surface); }
.compat-section summary { cursor: pointer; font-weight: 600; color: var(--r-text-secondary); font-size: 14px; }
.compat-section summary:hover { color: var(--r-text); }
.compat-groups { margin-top: 14px; }
.compat-group { margin-bottom: 14px; }
.compat-group h4 { font-size: 11px; color: var(--r-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; font-weight: 700; }
.compat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.compat-chip { display: inline-block; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--r-border-strong); background: var(--r-surface); font-size: 13px; transition: all 0.2s; font-family: var(--r-font); }
.compat-chip:hover { border-color: var(--r-text-secondary); }
.compat-chip.selected { border-color: var(--r-yellow); background: rgba(255,212,0,0.08); }

.kudos-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; justify-content: center; }
.kudos-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 20px;
    background: var(--r-pink-glow); border: 1px solid rgba(255,45,135,0.12);
    font-size: 13px; font-weight: 500;
}
.kudos-badge small { color: var(--r-muted); font-size: 11px; font-weight: 600; }
/* Distinct kudos colors per type */
.kudos-badge-accueillant { background: rgba(255,212,0,0.1); border-color: rgba(255,212,0,0.2); color: #ffd400; }
.kudos-badge-fun { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.15); color: #34d399; }
.kudos-badge-ponctuel { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.15); color: #a855f7; }
.kudos-badge-organise { background: rgba(0,229,255,0.08); border-color: rgba(0,229,255,0.15); color: #00e5ff; }
.kudos-badge-inspire { background: rgba(255,45,135,0.1); border-color: rgba(255,45,135,0.15); color: #ff2d87; }
.kudos-badge-genereux { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.15); color: #f87171; }
.kudos-badge-patient { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.12); color: #6ee7b7; }
.kudos-badge-fiable { background: rgba(255,212,0,0.08); border-color: rgba(255,212,0,0.15); color: #fbbf24; }
.profil-kudos { margin-bottom: 12px; }

.kudos-summary { margin-bottom: 20px; padding: 16px; background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius); }
.kudos-summary h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.kudos-summary-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.kudos-summary-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: var(--r-pink-glow); border-radius: 14px; border: 1px solid rgba(255,45,135,0.08);
}
.kudos-icon { font-size: 18px; }
.kudos-label { font-size: 13px; font-weight: 500; }
.kudos-count { font-size: 12px; color: var(--r-muted); font-weight: 700; }

.form-section { margin-bottom: 24px; }
.form-section h3 { margin: 0 0 4px; font-weight: 600; }

/* Compat Score */
.compat-score-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--r-radius); }
.compat-score-banner.compat-high { background: rgba(52,211,153,0.06); border: 1px solid rgba(52,211,153,0.2); }
.compat-score-banner.compat-mid { background: rgba(255,212,0,0.06); border: 1px solid rgba(255,212,0,0.2); }
.compat-score-banner.compat-low { background: rgba(248,113,113,0.05); border: 1px solid rgba(248,113,113,0.15); }
.compat-high .compat-pct { font-size: 28px; font-weight: 800; color: #34d399; letter-spacing: -0.02em; }
.compat-mid .compat-pct { font-size: 28px; font-weight: 800; color: #e6b800; letter-spacing: -0.02em; }
.compat-low .compat-pct { font-size: 28px; font-weight: 800; color: #f87171; letter-spacing: -0.02em; }
.compat-label { font-size: 14px; color: var(--r-text-secondary); }
.nearby-compat { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.nearby-compat.score-high { background: rgba(52,211,153,0.12); color: #34d399; }
.nearby-compat.score-mid { background: rgba(255,212,0,0.12); color: #e6b800; }
.nearby-compat.score-low { background: rgba(248,113,113,0.1); color: #f87171; }
.match-compat { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 8px; margin-left: 6px; }
.match-compat.score-high { background: rgba(52,211,153,0.12); color: #34d399; }
.match-compat.score-mid { background: rgba(255,212,0,0.12); color: #e6b800; }
.match-compat.score-low { background: rgba(248,113,113,0.1); color: #f87171; }
.discover-score { position: absolute; top: 10px; right: 10px; font-size: 16px; font-weight: 800; padding: 6px 12px; border-radius: 14px; display: inline-block; }
.discover-score.score-high { background: rgba(52,211,153,0.15); color: #34d399; }
.discover-score.score-mid { background: rgba(255,212,0,0.15); color: #e6b800; }
.discover-score.score-low { background: rgba(248,113,113,0.12); color: #f87171; }

/* Community levels */
.community-level { font-size: 11px; color: #a855f7; margin-left: 4px; font-weight: 600; }
.level-bar.community span { background: linear-gradient(90deg, #a855f7, #7c3aed); opacity: 0.6; }
.level-bar.community { margin-top: 2px; }
.level-vote { display: flex; gap: 2px; margin-left: 4px; }
.vote-btn {
    background: var(--r-surface); border: 1px solid var(--r-border-strong); color: var(--r-muted);
    width: 24px; height: 24px; border-radius: var(--r-radius-xs); cursor: pointer; font-size: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.15s;
    font-family: var(--r-font);
}
.vote-btn:hover { background: var(--r-purple-glow); color: #a855f7; border-color: #a855f7; }
.vote-btn.voted { background: rgba(168,85,247,0.2); color: #a855f7; border-color: #a855f7; }

/* Video recorder */
.video-actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
#video-recorder { margin-top: 12px; }
.recorder-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.recorder-timer { font-size: 24px; font-weight: 800; color: #ff2d87; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
    .discover-card-immersive { border-radius: 16px; overflow: hidden; }
    .discover-media { max-height: 65vh; border-radius: 16px; }
    .discover-overlay-info { right: 56px; }
    .discover-action-btn small { display: block; }
    .match-thumb { width: 44px; height: 44px; border-radius: 12px; }
    .carte-map { min-height: 200px; }
    .onboarding-hero h2 { font-size: 20px; }
    .detail-card { padding: 16px; }
    .detail-card h2 { font-size: 18px; }
    .kudos-grid { gap: 6px; }
    .kudos-chip { padding: 8px 12px; font-size: 13px; }
    .likes-received-banner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ==================== DESKTOP (768px+) ==================== */
@media (min-width: 768px) {
    #aca-reseau-app { border-radius: 16px; padding-bottom: 0; min-height: auto; }

    /* Nav becomes top horizontal bar on desktop — override mobile fixed bottom */
    #aca-reseau-app > .aca-reseau-nav {
        position: sticky; top: 0; bottom: auto; left: auto; right: auto;
        border-top: none; border-bottom: 1px solid var(--r-border);
        padding: 0 16px; gap: 4px; justify-content: center;
        background: rgba(12,12,20,0.85);
    }
    .aca-reseau-tab {
        flex: 0 0 auto; flex-direction: row; gap: 6px;
        padding: 14px 20px; font-size: 13px; min-width: auto;
        color: var(--r-muted);
    }
    .aca-reseau-tab .tab-label { font-size: 13px; height: auto; opacity: 1; }
    .aca-reseau-tab .tab-icon { font-size: 18px; }
    .aca-reseau-tab.active { color: var(--r-pink); }
    .aca-reseau-tab.active::after {
        top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 2px;
        border-radius: 2px 2px 0 0; background: var(--r-pink); transform: none;
    }
    /* Poster tab: normal style on desktop */
    .aca-reseau-tab.tab-poster { margin: 0; }
    .aca-reseau-tab.tab-poster .tab-icon {
        width: auto; height: auto; border-radius: 0; background: none;
        box-shadow: none; font-size: 18px; display: inline;
    }

    /* View gets more padding, no bottom padding needed (nav is top) */
    .aca-reseau-view { padding: 28px 32px; max-width: 960px; margin: 0 auto; }

    /* Profile hero: side-by-side on desktop */
    .profil-hero {
        display: flex; gap: 32px; align-items: flex-start;
        padding: 24px; background: var(--r-surface);
        border: 1px solid var(--r-border-strong); border-radius: var(--r-radius);
        margin-bottom: 16px;
    }
    .profil-hero-identity { flex: 1; }
    .profil-hero-identity .profil-header {
        margin-bottom: 12px; text-align: left;
    }
    .profil-hero-identity .profil-avatar { width: 72px; height: 72px; font-size: 32px; margin: 0 0 8px; }
    .profil-hero-identity .profil-header h2 { margin: 4px 0 2px; font-size: 20px; }
    .profil-hero-identity .kudos-badges { justify-content: flex-start; }
    .profil-hero-identity .profil-badges { justify-content: flex-start; }
    .profil-hero-stats {
        flex: 0 0 200px; display: flex; align-items: center;
    }
    .profil-hero-stats .profile-stats {
        grid-template-columns: repeat(2, 1fr); margin-bottom: 0; width: 100%;
    }
    .profil-view { max-width: 720px; }
    .profil-header { text-align: center; margin-bottom: 24px; }
    .profil-avatar { width: 100px; height: 100px; font-size: 42px; }

    .profil-sections-grid {
        display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .profil-sections-grid .section-card { margin-bottom: 0; }

    /* Annonces: 2-column grid */
    .annonces-list {
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    }

    /* Nearby: 2-3 columns */
    .nearby-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

    /* Matches: centered readable width */
    .matches-list { max-width: 720px; margin: 0 auto; }
    .match-card { padding: 16px 20px; }
    .match-thumb { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
    .match-info h4 { font-size: 15px; }

    /* Notifications: centered readable width */
    .notif-list { max-width: 720px; margin: 0 auto; }

    /* Forms: wider rows */
    .form-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .aca-reseau-onboarding { max-width: 520px; }

    /* Discover: larger card */
    .discover-card-immersive { max-width: 380px; }
    .discover-media { max-height: 68vh; }

    /* Carte filters: inline */
    .carte-filters { flex-wrap: nowrap; }
    .carte-map { height: 350px; }

    /* Levels: 2-col categories */
    .niveaux-grid-desktop { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Stats: all in one row */
    .profile-stats { grid-template-columns: repeat(4, 1fr); }

    /* Ratings: 2-col */
    .ratings-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Kudos grid: more space */
    .kudos-grid { gap: 10px; }
    .kudos-chip { padding: 12px 20px; font-size: 15px; }

    /* Section card hover glow on desktop */
    .section-card { transition: all 0.2s ease; }
    .section-card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.25); transform: translateY(-1px); }

    /* Annonce card: bigger on desktop */
    .annonce-card { padding: 20px; }
    .annonce-card h3 { font-size: 16px; }
    .annonce-meta { flex-direction: row; flex-wrap: wrap; }

    /* Detail: wider */
    .detail-card { padding: 32px; max-width: 720px; margin: 0 auto; }
    .detail-grid { grid-template-columns: repeat(3, 1fr); }

    /* Compat score: bigger */
    .compat-score-banner { padding: 18px 24px; }
    .compat-high .compat-pct, .compat-mid .compat-pct, .compat-low .compat-pct { font-size: 36px; }

    /* Poster form */
    .aca-reseau-view form { max-width: 640px; margin: 0 auto; }
}

/* ==================== LARGE DESKTOP (1024px+) ==================== */
@media (min-width: 1024px) {
    .aca-reseau-view { padding: 32px 48px; }
    .annonces-list { grid-template-columns: repeat(2, 1fr); }
    .nearby-grid { grid-template-columns: repeat(3, 1fr); }
    .profil-view { max-width: 800px; }
    .carte-map { height: 400px; }

    /* Discover: centered with breathing room */
    .discover-feed { flex-direction: row; justify-content: center; gap: 32px; align-items: flex-start; padding: 20px; }
    .discover-card-immersive { max-width: 360px; }
    .discover-topbar { max-width: 360px; }

    /* Discover side panel hint (desktop enrichment) */
    .discover-desktop-hint {
        display: block; flex: 0 0 220px;
        padding: 20px; background: var(--r-surface); border: 1px solid var(--r-border);
        border-radius: var(--r-radius); font-size: 13px; color: var(--r-text-secondary);
        line-height: 1.6;
    }
    .discover-desktop-hint h4 { font-size: 12px; color: var(--r-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; font-weight: 700; }
    .discover-desktop-hint .kbd { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--r-card); border: 1px solid var(--r-border-strong); font-size: 11px; font-family: monospace; color: var(--r-text); margin: 0 2px; }

    /* Discover next card peek on desktop */
    .discover-next-peek {
        display: block; position: absolute; right: -60px; top: 50%; transform: translateY(-50%) scale(0.85);
        width: 50px; height: 200px; background: var(--r-surface); border-radius: 12px;
        border: 1px solid var(--r-border); opacity: 0.3; pointer-events: none;
    }
}
