/* ============================================================
   DOGU DESIGN SYSTEM — v2.0
   Mobile-First • Professionnel • Accessible • Moderne
   ============================================================ */

/* ── IMPORTS POLICES ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── VARIABLES CSS ──────────────────────────────────────────── */
:root {
    /* Palette principale */
    --clr-primary-50:  #fff5f0;
    --clr-primary-100: #ffe8dc;
    --clr-primary-200: #ffcdb5;
    --clr-primary-300: #ffaa87;
    --clr-primary-400: #ff7d4e;
    /* --clr-primary-500: #ff6b35;  */
    --clr-primary-500: #8772aa; 
    /* Couleur principale */
    /* --clr-primary-600: #e85520; */
    --clr-primary-600: #8772aa;
    --clr-primary-700: #c44010;
    --clr-primary-800: #9e3310;
    --clr-primary-900: #7d2a0e;

    /* Palette neutre */
    --clr-gray-50:  #f9fafb;
    --clr-gray-100: #f3f4f6;
    --clr-gray-200: #e5e7eb;
    --clr-gray-300: #d1d5db;
    --clr-gray-400: #9ca3af;
    --clr-gray-500: #6b7280;
    --clr-gray-600: #4b5563;
    --clr-gray-700: #374151;
    --clr-gray-800: #1f2937;
    --clr-gray-900: #111827;

    /* Couleurs sémantiques */
    --clr-success-50:  #f0fdf4;
    --clr-success-500: #22c55e;
    --clr-success-600: #16a34a;
    --clr-danger-50:   #fef2f2;
    --clr-danger-500:  #ef4444;
    --clr-danger-600:  #dc2626;
    --clr-warning-50:  #fffbeb;
    --clr-warning-500: #f59e0b;
    --clr-warning-600: #d97706;
    --clr-info-50:     #eff6ff;
    --clr-info-500:    #3b82f6;
    --clr-info-600:    #2563eb;
    --clr-purple-50:   #faf5ff;
    --clr-purple-500:  #a855f7;
    --clr-purple-600:  #9333ea;

    /* Surfaces */
    --surface-base:     #ffffff;
    --surface-raised:   #ffffff;
    --surface-overlay:  rgba(255,255,255,0.98);
    --surface-bg:       #f9fafb;
    --surface-bg-alt:   #f3f4f6;
    --surface-border:   #e5e7eb;
    --surface-border-focus: var(--clr-primary-500);

    /* Texte */
    --text-primary:   #111827;
    --text-secondary: #374151;
    --text-muted:     #6b7280;
    --text-disabled:  #9ca3af;
    --text-inverse:   #ffffff;
    --text-link:      var(--clr-primary-600);

    /* Ombres */
    --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl:  0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 24px rgba(255,107,53,0.25);
    --shadow-inner:   inset 0 2px 4px rgba(0,0,0,0.06);

    /* Border radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl:24px;
    --radius-3xl:32px;
    --radius-full: 9999px;

    /* Typographie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --leading-tight:  1.25;
    --leading-snug:   1.375;
    --leading-normal: 1.5;
    --leading-relaxed:1.625;

    /* Espacement */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --nav-height:        60px;
    --bottom-nav-height: 64px;
    --content-max:       1200px;
    --content-narrow:    680px;
    --sidebar-width:     300px;

    /* Transitions */
    --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base:   200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-overlay:  300;
    --z-modal:    400;
    --z-toast:    500;
}

/* ── RESET MODERNE ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--surface-bg);
    min-height: 100dvh;
    padding-bottom: var(--bottom-nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

a {
    color: var(--text-link);
    text-decoration: none !important;
    transition: color var(--transition-fast);
}
a:hover { text-decoration: none; }

/* ── CONTAINERS ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}
.container-narrow {
    max-width: var(--content-narrow);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

/* ── TYPOGRAPHIE ────────────────────────────────────────────── */
h1 { font-size: var(--text-2xl); font-weight: 800; line-height: var(--leading-tight); }
h2 { font-size: var(--text-xl);  font-weight: 700; line-height: var(--leading-tight); }
h3 { font-size: var(--text-lg);  font-weight: 600; line-height: var(--leading-snug); }
h4 { font-size: var(--text-base);font-weight: 600; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: var(--nav-height);
    background: var(--surface-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    padding-inline: var(--space-4);
    gap: var(--space-4);
    transition: box-shadow var(--transition-base);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--clr-primary-500);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; color: var(--clr-primary-600); }
.navbar-brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--clr-primary-500), var(--clr-primary-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
}
.navbar-nav {
    display: none;
    flex: 1;
    align-items: center;
    gap: var(--space-1);
    margin-inline: var(--space-4);
}
.navbar-nav a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
    background: var(--clr-primary-50);
    color: var(--clr-primary-600);
    text-decoration: none;
}
.navbar-actions {
    display: none;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}
.navbar-user-menu {
    position: relative;
}
.navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--clr-primary-400), var(--clr-primary-600));
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast);
}
.navbar-avatar:hover { border-color: var(--clr-primary-500); }

/* Badge notification */
.notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--clr-danger-500);
    border: 2px solid white;
    border-radius: var(--radius-full);
}
.notif-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--clr-danger-500);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    pointer-events: none;
}

/* ── BOTTOM NAV MOBILE ──────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--bottom-nav-height);
    background: var(--surface-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--surface-border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--clr-primary-500);
    text-decoration: none;
}
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--clr-primary-500);
    border-radius: 0 0 2px 2px;
}
.bottom-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    position: relative;
}
.bottom-nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    color: white;
}
.bottom-nav-cta-inner {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--clr-primary-400), var(--clr-primary-600));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition-spring);
}
.bottom-nav-cta:hover .bottom-nav-cta-inner {
    transform: scale(1.08);
}
.bottom-nav-cta:hover { text-decoration: none; color: var(--text-muted); }

/* ── BOUTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 11px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary-500), var(--clr-primary-600));
    color: white;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-primary-400), var(--clr-primary-500));
    box-shadow: 0 12px 32px rgba(255,107,53,0.35);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--clr-gray-800);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--clr-gray-900);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--surface-border);
}
.btn-ghost:hover {
    border-color: var(--clr-primary-400);
    color: var(--clr-primary-600);
    background: var(--clr-primary-50);
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--clr-danger-500), var(--clr-danger-600));
    color: white;
}
.btn-success {
    background: linear-gradient(135deg, var(--clr-success-500), var(--clr-success-600));
    color: white;
}
.btn-warning {
    background: linear-gradient(135deg, var(--clr-warning-500), var(--clr-warning-600));
    color: white;
}
.btn-stripe {
    background: linear-gradient(135deg, #635BFF, #7B73FF);
    color: white;
    box-shadow: 0 8px 24px rgba(99,91,255,0.3);
}
.btn-stripe:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(99,91,255,0.4);
    color: white;
    text-decoration: none;
}

.btn-sm  { padding: 7px 14px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-lg  { padding: 15px 28px; font-size: var(--text-base); }
.btn-xl  { padding: 18px 36px; font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn-full{ width: 100%; }
.btn-icon{ padding: 10px; border-radius: var(--radius-sm); aspect-ratio: 1; }

/* ── FORMULAIRES ────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
label .required { color: var(--clr-danger-500); }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--surface-raised);
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    line-height: var(--leading-normal);
}
.form-control:focus {
    border-color: var(--clr-primary-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}
.form-control:hover:not(:focus) {
    border-color: var(--clr-gray-400);
}
.form-control.is-invalid {
    border-color: var(--clr-danger-500);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-control::placeholder { color: var(--clr-gray-400); }
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: var(--leading-relaxed);
}
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper .form-control { padding-left: 40px; }
.input-icon {
    position: absolute;
    left: 12px;
    color: var(--clr-gray-400);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}
.input-suffix {
    position: absolute;
    right: 12px;
    color: var(--clr-gray-400);
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: var(--radius-xs);
    transition: color var(--transition-fast);
    z-index: 1;
    line-height: 1;
}
.input-suffix:hover { color: var(--text-primary); }

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}
.form-error {
    font-size: var(--text-xs);
    color: var(--clr-danger-600);
    display: flex;
    align-items: center;
    gap: 4px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.form-grid .span-2 { grid-column: 1 / -1; }

.form-section {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-4);
}
.form-section-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-border);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}
.form-check input[type=checkbox],
.form-check input[type=radio] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--surface-border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all var(--transition-fast);
    background: white;
}
.form-check input[type=radio] { border-radius: 50%; }
.form-check input:checked {
    background: var(--clr-primary-500);
    border-color: var(--clr-primary-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.293 10.293 3.707 7.707l1.414-1.414L6.293 7.465l4.586-4.586 1.414 1.414z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}
.form-check input[type=radio]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4' fill='white'/%3E%3C/svg%3E");
}
.form-check-label { font-size: var(--text-sm); font-weight: 400; color: var(--text-secondary); line-height: var(--leading-relaxed); }

/* Radio cards */
.radio-cards {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.radio-card {
    flex: 1;
    min-width: 100px;
    border: 2px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    background: var(--surface-raised);
    position: relative;
}
.radio-card input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card:hover {
    border-color: var(--clr-primary-300);
    background: var(--clr-primary-50);
}
.radio-card.selected,
.radio-card:has(input:checked) {
    border-color: var(--clr-primary-500);
    background: var(--clr-primary-50);
    color: var(--clr-primary-700);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.radio-card .rc-emoji { font-size: 1.8rem; display: block; margin-bottom: var(--space-2); }

/* Mot de passe strength */
.password-strength-bar {
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--surface-border);
    margin-top: var(--space-2);
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow), background var(--transition-slow);
}

/* ── ALERTES / TOASTS ───────────────────────────────────────── */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    border: 1px solid transparent;
}
.alert-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.alert-success {
    background: var(--clr-success-50);
    border-color: #bbf7d0;
    color: #14532d;
}
.alert-error {
    background: var(--clr-danger-50);
    border-color: #fecaca;
    color: #7f1d1d;
}
.alert-warning {
    background: var(--clr-warning-50);
    border-color: #fde68a;
    color: #78350f;
}
.alert-info {
    background: var(--clr-info-50);
    border-color: #bfdbfe;
    color: #1e3a8a;
}
.alert ul { margin: var(--space-2) 0 0 var(--space-4); line-height: var(--leading-relaxed); }

/* Toast */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
    width: min(90vw, 360px);
}
.toast {
    background: var(--clr-gray-900);
    color: white;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: toastIn var(--transition-spring) forwards;
    pointer-events: all;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.badge-perdu    { background: #fee2e2; color: #b91c1c; }
.badge-trouve   { background: #dcfce7; color: #15803d; }
.badge-adoption { background: #f3e8ff; color: #7c3aed; }
.badge-sighting { background: #fef3c7; color: #b45309; }
.badge-boost    { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.badge-found    { background: var(--clr-success-50); color: var(--clr-success-600); }
.badge-pro      { background: linear-gradient(135deg, #818cf8, #6366f1); color: white; }
.badge-new      { background: linear-gradient(135deg, var(--clr-primary-400), var(--clr-primary-500)); color: white; }
.badge-neutral  { background: var(--clr-gray-100); color: var(--clr-gray-600); }

/* ── CARTES ANNONCES ────────────────────────────────────────── */
.annonces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.annonce-card {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    
}
.annonce-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-gray-200);
}
.annonce-card.boosted {
    border-color: var(--clr-warning-500);
    box-shadow: 0 0 0 2px rgba(245,158,11,0.15), var(--shadow-md);
}
.annonce-card.found {
    opacity: 0.75;
}

.boost-ribbon {
    position: absolute;
    top: 12px;
    left: -4px;
    background: linear-gradient(135deg, var(--clr-warning-500), var(--clr-warning-600));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px 4px 8px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.boost-ribbon::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    border-style: solid;
    border-width: 0 4px 4px 0;
    border-color: transparent #b45309 transparent transparent;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-spring);
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { background: #fee2e2; border-color: #fca5a5; }

.card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface-bg);
    position: relative;
    flex-shrink: 0;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.annonce-card:hover .card-img img {
    transform: scale(1.04);
}
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--clr-gray-100), var(--clr-gray-50));
}
.card-body {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.card-badges   { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.card-title    { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); line-height: var(--leading-snug); }
.card-meta     { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-muted); }
.card-location { font-size: var(--text-sm); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.card-date     { font-size: var(--text-xs); color: var(--text-disabled); margin-top: auto; }

/* Vue liste */
.annonces-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.annonces-list .annonce-card {
    flex-direction: row;
}
.annonces-list .card-img {
    width: 120px;
    aspect-ratio: auto;
    flex-shrink: 0;
}
.annonces-list .card-img-placeholder {
    width: 120px;
    aspect-ratio: auto;
    min-height: 100px;
}

/* ── AVATAR ─────────────────────────────────────────────────── */
.avatar {
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    overflow: hidden;
}
.avatar-initials {
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--clr-primary-400), var(--clr-primary-600));
}
.avatar-xs  { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm  { width: 32px; height: 32px; font-size: 12px; }
.avatar-md  { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg  { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl  { width: 80px; height: 80px; font-size: 28px; }
.avatar-2xl { width: 100px;height:100px; font-size: 36px; }

/* ── CHIPS ──────────────────────────────────────────────────── */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--surface-border);
    background: var(--surface-raised);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-secondary);
}
.chip:hover {
    border-color: var(--clr-primary-400);
    color: var(--clr-primary-600);
    background: var(--clr-primary-50);
    text-decoration: none;
}
.chip.active {
    border-color: var(--clr-primary-500);
    background: var(--clr-primary-500);
    color: white;
    box-shadow: var(--shadow-primary);
}
.chip.active:hover { background: var(--clr-primary-600); text-decoration: none; }

/* ── TOGGLE SWITCH ──────────────────────────────────────────── */
.toggle-switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
    width: 44px; height: 24px;
    background: var(--clr-gray-200);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}
.toggle-track::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px; left: 3px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-spring);
}
.toggle-switch input:checked + .toggle-track {
    background: var(--clr-primary-500);
}
.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(20px);
}
.toggle-label { font-size: var(--text-sm); font-weight: 500; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 var(--space-3);
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.page-btn:hover {
    border-color: var(--clr-primary-400);
    color: var(--clr-primary-600);
    text-decoration: none;
}
.page-btn.active {
    background: var(--clr-primary-500);
    border-color: var(--clr-primary-500);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* ── CARDS GÉNÉRIQUES ───────────────────────────────────────── */
.card {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-content { padding: var(--space-5) var(--space-6); }
.card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--surface-bg);
    border-top: 1px solid var(--surface-border);
}

/* ── SKELETON LOADER ────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        var(--clr-gray-100) 25%,
        var(--clr-gray-50)  50%,
        var(--clr-gray-100) 75%
    );
    background-size: 400% 100%;
    animation: skeleton-shine 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shine {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* ── PHOTO UPLOAD ────────────────────────────────────────────── */
.photo-upload-zone {
    border: 2px dashed var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--surface-bg);
}
.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
    border-color: var(--clr-primary-400);
    background: var(--clr-primary-50);
}
.photo-upload-icon { font-size: 2.5rem; margin-bottom: var(--space-3); opacity: 0.5; }
.photo-upload-text { font-size: var(--text-sm); color: var(--text-muted); }
.photo-upload-text strong { color: var(--clr-primary-600); }
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-4);
}
.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--surface-border);
}
.photo-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.photo-preview-item.is-main {
    border-color: var(--clr-primary-500);
}
.photo-delete-btn {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}
.photo-delete-btn:hover { background: var(--clr-danger-600); }

/* ── CARTE MAP ──────────────────────────────────────────────── */
.map-page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#mainMap {
    flex: 1;
    z-index: 1;
}

/* Marqueurs personnalisés */
.map-pin {
    width: 40px;
    height: 46px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    transition: transform var(--transition-spring);
}
.map-pin:hover { transform: scale(1.15) translateY(-3px); }
.map-pin-inner {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.map-pin-inner > span { transform: rotate(45deg); display: block; }
.pin-perdu    { background: var(--clr-danger-500); }
.pin-trouve   { background: var(--clr-success-500); }
.pin-adoption { background: var(--clr-purple-500); }
.pin-sighting { background: var(--clr-warning-500); }
.pin-user     { background: var(--clr-info-500); }

/* Panel filtres map */
.map-filters-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: var(--bottom-nav-height);
    width: 280px;
    background: var(--surface-overlay);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-dropdown);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.map-filters-panel.open { transform: translateX(0); }
.map-filters-header {
    padding: var(--space-5) var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.map-filters-header h2 { font-size: var(--text-base); font-weight: 700; }
.map-filters-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.map-filter-group label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

/* Bottom sheet carte style Snapchat */
.map-bottom-sheet {
    position: fixed;
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    z-index: var(--z-overlay);
    background: var(--surface-overlay);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    max-height: 70dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.map-bottom-sheet.open { transform: translateY(0); }
.sheet-handle-wrap {
    padding: var(--space-3) var(--space-4) 0;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--clr-gray-300);
    border-radius: var(--radius-full);
}
.sheet-scroll { overflow-y: auto; flex: 1; }
.sheet-content { padding: var(--space-4) var(--space-5) var(--space-5); }
.sheet-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}
.sheet-img-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--clr-gray-100), var(--clr-gray-50));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: var(--space-4);
}
.sheet-body .badge { margin-bottom: var(--space-2); }
.sheet-body h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.sheet-meta { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }

/* Bouton FAB carte */
.map-fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    z-index: var(--z-dropdown);
    background: var(--surface-raised);
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: 10px 16px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}
.map-fab:hover {
    border-color: var(--clr-primary-400);
    color: var(--clr-primary-600);
    box-shadow: var(--shadow-xl);
}

/* Modal signalement */
.sighting-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}
.sighting-modal.open {
    opacity: 1;
    pointer-events: all;
}
.sighting-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.sighting-modal-panel {
    position: relative;
    background: var(--surface-raised);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-6);
    width: 100%;
    max-height: 80dvh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    z-index: 1;
}
.sighting-modal.open .sighting-modal-panel {
    transform: translateY(0);
}
.sighting-modal-title {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}
.sighting-modal-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}
.sighting-location-preview {
    background: var(--clr-info-50);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--clr-info-600);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ── AUTH PAGES ─────────────────────────────────────────────── */
.auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: var(--space-6) var(--space-4);
    background: linear-gradient(135deg, var(--clr-primary-50) 0%, #f9fafb 100%);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface-raised);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--surface-border);
}
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    text-align: center;
}
.auth-brand-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--clr-primary-500), var(--clr-primary-700));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-primary);
}
.auth-brand h1 {
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--text-primary);
}
.auth-brand p { color: var(--text-muted); font-size: var(--text-sm); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-5); }
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-border);
}
.auth-footer {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-4);
}
.auth-footer a { font-weight: 600; color: var(--clr-primary-600); }

/* Trust signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--surface-border);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── DASHBOARD ──────────────────────────────────────────────── */
.dashboard-page { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.profile-banner {
    background: linear-gradient(135deg, var(--clr-primary-500) 0%, var(--clr-primary-700) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}
.profile-banner::before {
    content: '🐾';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 8rem;
    opacity: 0.1;
    line-height: 1;
}
.profile-banner .avatar-xl {
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.profile-banner h2 { font-size: var(--text-xl); font-weight: 800; }
.profile-banner p  { font-size: var(--text-sm); opacity: 0.8; }
.profile-banner .badge-pro {
    display: inline-flex;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.stat-card-v2 {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    transition: box-shadow var(--transition-base);
}
.stat-card-v2:hover { box-shadow: var(--shadow-md); }
.stat-card-v2 .stat-icon-wrap {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: var(--clr-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: var(--space-2);
}
.stat-card-v2 .stat-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-card-v2 .stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* Onglets dashboard */
.dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-5);
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-1);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }
.tab-link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.tab-link:hover { color: var(--text-primary); text-decoration: none; }
.tab-link.active {
    background: var(--clr-primary-500);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* Annonces dashboard */
.my-annonce-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    transition: all var(--transition-fast);
}
.my-annonce-item:hover { border-color: var(--clr-gray-300); box-shadow: var(--shadow-sm); }
.my-annonce-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.my-annonce-img img { width: 100%; height: 100%; object-fit: cover; }
.my-annonce-info { flex: 1; min-width: 0; }
.my-annonce-info h3 { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-annonce-meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.my-annonce-actions { display: flex; gap: var(--space-2); align-items: flex-start; flex-shrink: 0; flex-wrap: wrap; }

/* Notifications */
.notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    transition: all var(--transition-fast);
    position: relative;
}
.notification-item.unread {
    background: var(--clr-primary-50);
    border-color: var(--clr-primary-200);
}
.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--clr-primary-500);
    border-radius: 0 2px 2px 0;
}
.notif-icon-wrap {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { font-size: var(--text-sm); display: block; }
.notif-body p { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-relaxed); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-disabled); margin-top: 4px; }

/* ── COMMENTAIRES ───────────────────────────────────────────── */
.comments-section { margin-top: var(--space-8); }
.comments-section > h2 { margin-bottom: var(--space-5); font-size: var(--text-xl); }

.comment-compose {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--surface-border);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-xs);
}
.comment-compose-row {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}
.comment-compose-area { flex: 1; }
.comment-compose-area textarea {
    width: 100%;
    min-height: 80px;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    resize: none;
    transition: border-color var(--transition-fast);
    background: var(--surface-bg);
}
.comment-compose-area textarea:focus {
    border-color: var(--clr-primary-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    background: white;
}
.comment-compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-3);
}
.char-counter { font-size: var(--text-xs); color: var(--text-muted); }
.char-counter.warn { color: var(--clr-warning-600); }
.char-counter.danger { color: var(--clr-danger-600); }

.comment {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.comment-reply {
    margin-left: var(--space-8);
    padding-left: var(--space-4);
    border-left: 2px solid var(--surface-border);
}
.comment-body { flex: 1; min-width: 0; }
.comment-bubble {
    background: var(--surface-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--surface-border);
    margin-bottom: var(--space-2);
}
.comment-author { font-size: var(--text-sm); font-weight: 600; margin-bottom: 4px; }
.comment-text { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.comment-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
}
.comment-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}
.comment-action:hover { background: var(--surface-bg); color: var(--text-primary); }
.comment-action.liked { color: var(--clr-danger-500); }
.comment-time { font-size: 11px; color: var(--text-disabled); }
.comment-reply-form,
.comment-report-form {
    margin-top: var(--space-3);
    padding: var(--space-4);
    background: var(--surface-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    display: none;
}
.comment-reply-form.show,
.comment-report-form.show { display: block; }

/* ── BOOST PLANS ────────────────────────────────────────────── */
.boost-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.boost-plan-card {
    position: relative;
    border: 2px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--surface-raised);
}
.boost-plan-card.featured {
    border-color: var(--clr-primary-500);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.boost-plan-card input { position: absolute; opacity: 0; }
.boost-plan-card:has(input:checked),
.boost-plan-card:hover {
    border-color: var(--clr-primary-500);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
    background: var(--clr-primary-50);
}
.boost-popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--clr-primary-500), var(--clr-primary-600));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: var(--shadow-primary);
}
.boost-plan-name  { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.boost-plan-price { font-size: var(--text-4xl); font-weight: 900; color: var(--text-primary); line-height: 1; margin: var(--space-2) 0; }
.boost-plan-price span { font-size: var(--text-lg); font-weight: 500; color: var(--text-muted); }
.boost-plan-duration { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.boost-plan-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); text-align: left; }
.boost-plan-features li { font-size: var(--text-sm); display: flex; align-items: center; gap: var(--space-2); }

/* ── PUB NON-INTRUSIVE ──────────────────────────────────────── */
.promos-slot {
    background: var(--surface-raised);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    border: 1px solid var(--surface-border);
    transition: box-shadow var(--transition-fast);
}
.promos-slot:hover { box-shadow: var(--shadow-md); }
.promos-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-disabled);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.promos-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-border);
}
.promos-content {
    display: flex ;
    gap: var(--space-3) ;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}
.promos-content:hover { text-decoration: none; }
.promos-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.promos-body { flex: 1; min-width: 0; }
.promos-title { font-weight: 600; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promos-desc  { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ── ADMIN ──────────────────────────────────────────────────── */
.admin-header {
    background: linear-gradient(135deg, var(--clr-gray-800), var(--clr-gray-900));
    color: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.admin-stat-card {
    background: var(--surface-raised);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.admin-stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.admin-stat-value { font-size: var(--text-2xl); font-weight: 800; line-height: 1; }
.admin-stat-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.admin-section {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    margin-bottom: var(--space-5);
}
.admin-section-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-bg);
}
.admin-section-header h2 { font-size: var(--text-base); font-weight: 700; }
.admin-section-body { padding: var(--space-5) var(--space-6); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.admin-table th {
    background: var(--surface-bg);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--surface-border);
}
.admin-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--surface-border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-bg); }

/* Setting items */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--surface-border);
}
.setting-item:last-child { border-bottom: none; }
.setting-item-info { flex: 1; }
.setting-item-info strong { font-size: var(--text-sm); display: block; margin-bottom: 2px; }
.setting-item-info p { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }

/* ── EMPTY STATES ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--text-muted);
}
.empty-state-icon { font-size: 4rem; margin-bottom: var(--space-4); opacity: 0.5; }
.empty-state h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.empty-state p { font-size: var(--text-sm); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); }

/* ── LOADING ────────────────────────────────────────────────── */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--surface-border);
    border-top-color: var(--clr-primary-500);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* ── UTILITAIRES ────────────────────────────────────────────── */
.text-muted     { color: var(--text-muted) !important; }
.text-primary-c { color: var(--clr-primary-500) !important; }
.text-success   { color: var(--clr-success-600) !important; }
.text-danger    { color: var(--clr-danger-600) !important; }
.text-sm        { font-size: var(--text-sm); }
.text-xs        { font-size: var(--text-xs); }
.text-center    { text-align: center; }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-2          { gap: var(--space-2); }
.gap-3          { gap: var(--space-3); }
.gap-4          { gap: var(--space-4); }
.mt-4           { margin-top: var(--space-4); }
.mb-4           { margin-bottom: var(--space-4); }
.p-0            { padding: 0; }
.w-full         { width: 100%; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--surface-border); margin: var(--space-5) 0; }

/* ── HERO INDEX ─────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--clr-primary-500) 0%, var(--clr-primary-700) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-6);
    color: white;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -20px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-section > * { position: relative; z-index: 1; }
.hero-title { font-size: var(--text-2xl); font-weight: 900; line-height: var(--leading-tight); margin-bottom: var(--space-2); }
.hero-sub   { font-size: var(--text-sm); opacity: 0.85; margin-bottom: var(--space-6); line-height: var(--leading-relaxed); }

.hero-search-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.search-input-wrap {
    display: flex;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.search-input-wrap input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: none;
    font-size: var(--text-base);
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}
.search-input-wrap input::placeholder { color: var(--clr-gray-400); }
.search-submit-btn {
    background: var(--clr-primary-500);
    color: white;
    border: none;
    padding: 0 var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.search-submit-btn:hover { background: var(--clr-primary-600); }

/* ── FILTRES AVANCÉS ────────────────────────────────────────── */
.advanced-filters {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    margin-bottom: var(--space-5);
    overflow: hidden;
}
.advanced-filters summary {
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    user-select: none;
}
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary::after {
    content: '▼';
    font-size: 0.65rem;
    transition: transform var(--transition-base);
    margin-left: auto;
    opacity: 0.5;
}
.advanced-filters[open] summary::after { transform: rotate(-180deg); }
.advanced-filters[open] summary {
    border-bottom: 1px solid var(--surface-border);
}
.filters-grid {
    padding: var(--space-5);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.filters-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

/* ── LAYOUT RÉSULTATS ───────────────────────────────────────── */
.results-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.results-main { flex: 1; min-width: 0; }
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-3);
}
.results-count { font-size: var(--text-sm); color: var(--text-muted); }
.results-count strong { color: var(--text-primary); font-size: var(--text-base); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.view-btn.active { background: var(--clr-primary-500); border-color: var(--clr-primary-500); color: white; }

/* Sidebar */
.results-sidebar { display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar-widget {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
    margin-top: 15px;
}
.sidebar-widget h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-3); }
.sidebar-widget p  { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-3); }

/* Stats sidebar */
.sidebar-stats-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}
.sidebar-stats-list .stat-nb {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--clr-primary-500);
}

/* ── DETAIL ANNONCE ─────────────────────────────────────────── */
.detail-layout { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-4) 0; }
.detail-main { min-width: 0; }

/* Galerie photos */
.photo-gallery { border-radius: var(--radius-xl); overflow: hidden; position: relative; margin-bottom: var(--space-5); }
.gallery-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 420px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
    display: block;
}
.gallery-hero-img:hover { transform: scale(1.01); }
.gallery-hero-placeholder {
    width: 100%; aspect-ratio: 16/9; max-height: 320px;
    background: linear-gradient(135deg, var(--clr-gray-100), var(--clr-gray-50));
    display: flex; align-items: center; justify-content: center; font-size: 6rem;
}
.gallery-thumbs {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) 0 0;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 68px; height: 68px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.7;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--clr-primary-500); opacity: 1; }

/* En-tête détail */
.detail-header { margin-bottom: var(--space-5); }
.detail-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.detail-title  { font-size: var(--text-2xl); font-weight: 900; line-height: var(--leading-tight); margin-bottom: var(--space-3); }
.detail-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--text-muted);
    align-items: center;
}

/* Grille infos */
.detail-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}
.info-chip {
    background: var(--surface-bg);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--surface-border);
    min-width: 80px;
    flex: 1;
}
.info-chip-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-disabled); }
.info-chip-value { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); }

/* Description */
.detail-description {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--surface-border);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-xs);
}
.detail-description h2 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-3); }
.detail-description p { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }

/* Contact card */
.contact-card-sticky {
    background: var(--surface-raised);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-lg);
}
.owner-info {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--surface-border);
}
.owner-name { font-weight: 700; font-size: var(--text-sm); }
.owner-since { font-size: var(--text-xs); color: var(--text-muted); }
.contact-actions { display: flex; flex-direction: column; gap: var(--space-2); }

/* ── RESPONSIVE DESKTOP ─────────────────────────────────────── */
@media (min-width: 640px) {
    h1 { font-size: var(--text-3xl); }
    .hero-title { font-size: var(--text-3xl); }
    .hero-search-bar { flex-direction: row; }
    .search-input-wrap { flex: 1; }
    .annonces-grid { grid-template-columns: repeat(2, 1fr); }
    .boost-plans-grid { grid-template-columns: repeat(3, 1fr); }
    .filters-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }
    .navbar-nav { display: flex; }
    .navbar-actions { display: flex; }
    .map-filters-panel {
        position: sticky;
        top: 0;
        height: calc(100dvh - var(--nav-height));
        transform: none;
        border-right: 1px solid var(--surface-border);
        box-shadow: none;
    }
    .map-fab { display: none; }
    .map-page { flex-direction: row; }
    .map-bottom-sheet {
        position: absolute;
        top: auto;
        bottom: 0;
        max-height: 60%;
    }
    .results-layout { flex-direction: row; }
    .results-sidebar { width: var(--sidebar-width); flex-shrink: 0; }
    .detail-layout { flex-direction: row; }
    .detail-sidebar { width: 300px; flex-shrink: 0; }
    .contact-card-sticky { position: sticky; top: calc(var(--nav-height) + 16px); }
}

@media (min-width: 1024px) {
    h1 { font-size: var(--text-4xl); }
    .hero-title { font-size: var(--text-4xl); }
    .annonces-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

/* ── FOCUS VISIBLE (accessibilité) ─────────────────────────── */
:focus-visible {
    outline: 2px solid var(--clr-primary-500);
    outline-offset: 2px;
    border-radius: 4px;
}










/* ── BADGE PRO ANNONCE ──────────────────────────────────────── */
.badge-pro-annonce {
    position: absolute;
    top: 40px;
    left: 10px;
    z-index: 3;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(124,58,237,0.35);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}



.badge-pro-annonce1 {
    position: absolute;
    top: 70px;
    left: 10px;
    z-index: 3;
    background: linear-gradient(135deg, #ed3ac0, #6d28d9);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(124,58,237,0.35);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}



/* Badge PRO dans les détails d'annonce */
.badge-pro-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    letter-spacing: 0.02em;
}