:root {
    --primary: #0a2342;
    --primary-mid: #1a4a7a;
    --primary-light: #2d7dd2;
    --accent: #e8a020;
    --accent-dark: #c8860a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1a1a2e;
    --gray: #6b7280;
    --gray-light: #94a3b8;
    --light: #f8f6f2;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(10, 35, 66, 0.08);
    --shadow: 0 4px 16px rgba(10, 35, 66, 0.12);
    --shadow-lg: 0 12px 32px rgba(10, 35, 66, 0.18);
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

/* ── NAVBAR ── */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(10, 35, 66, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-brand i {
    font-size: 1.6rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(10, 35, 66, 0.05);
}

.nav-links a i {
    font-size: 0.85rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BOUTONS ── */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.35);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(232, 160, 32, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 160, 32, 0.45);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.btn-danger {
    background: var(--danger);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-success:hover {
    background: #059669;
    color: var(--white);
}

.btn-large {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-icon:hover { color: var(--primary-light); background: rgba(45, 125, 210, 0.08); }
.btn-icon.btn-delete:hover { color: var(--danger); background: rgba(239, 68, 68, 0.08); }

/* ── HERO ── */
.hero {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(232, 160, 32, 0.08);
    pointer-events: none;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 160, 32, 0.2);
    border: 1px solid rgba(232, 160, 32, 0.4);
    color: #f5c842;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── SECTIONS ── */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section-header p {
    color: var(--gray);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.bg-light { background-color: #f0ede8; }

/* ── CATEGORIES ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(10,35,66,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.category-card h3 {
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-count {
    color: var(--gray-light);
    font-size: 0.75rem;
}

/* ── BIENS GRID ── */
.biens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.bien-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(10,35,66,0.06);
}

.bien-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.bien-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--primary-mid);
}

.bien-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bien-card:hover .bien-image img {
    transform: scale(1.05);
}

.bien-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bien-image.placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.bien-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--success);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bien-category-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(10,35,66,0.75);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.badge-premium {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.agence-premium-card {
    border: 1px solid var(--accent);
    max-width: 320px;
}

.agence-premium-contact {
    color: var(--gray);
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

.bien-info {
    padding: 1.25rem;
}

.bien-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bien-transaction-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--primary);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.bien-transaction-tag.location {
    background: var(--primary-mid);
}

.bien-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.bien-location {
    color: var(--gray);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bien-location i { color: var(--accent); font-size: 0.75rem; }

.bien-features {
    display: flex;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.78rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(10,35,66,0.06);
}

.bien-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bien-features i { color: var(--primary-mid); }

.bien-card-footer {
    padding: 0 1.25rem 1.25rem;
}

/* ── SEARCH LAYOUT ── */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(10,35,66,0.08);
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.filters-form label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
    color: var(--dark);
}

/* ── PAGINATION ── */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    border: 1.5px solid transparent;
    padding: 0 0.75rem;
}

.pagination-btn:hover {
    background: rgba(10,35,66,0.06);
    border-color: var(--primary-mid);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(10,35,66,0.25);
}

.pagination-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination-info {
    color: var(--gray);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* ── DETAIL BIEN ── */
.detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-main {
    height: 420px;
    position: relative;
    overflow: hidden;
    background: var(--primary-mid);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main.placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,0.4);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
    background: #f8f6f2;
}

.thumb {
    min-width: 80px;
    width: 80px;
    height: 70px;
    cursor: pointer;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumb:hover, .thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.detail-category-tag {
    display: inline-block;
    background: rgba(10,35,66,0.07);
    color: var(--primary);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.bien-price-badge {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin: 0.5rem 0 1rem;
}

.bien-features-detail {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(10,35,66,0.08);
    border-bottom: 1px solid rgba(10,35,66,0.08);
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature i {
    color: var(--accent);
    font-size: 1rem;
}

.bien-description { margin: 1rem 0; }
.bien-description p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }

.demande-visite {
    background: rgba(10,35,66,0.04);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    border: 1px solid rgba(10,35,66,0.08);
}

.demande-visite h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.agence-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
}

.agence-info h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── BACK LINK ── */
.back-link { margin-bottom: 1.5rem; }
.back-link a {
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.back-link a:hover { color: var(--primary); }

/* ── STATISTIQUES ── */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number { font-size: 2.75rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card .stat-number {
    color: var(--primary);
    font-size: 2rem;
}

/* ── FORMULAIRES ── */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-header h1 {
    color: var(--primary);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(10,35,66,0.08);
}

.form-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.83rem;
    color: var(--dark);
}

.form-control,
.form-group select,
.form-group input:not([type="file"]),
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-control:focus,
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(26, 74, 122, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-control-file { padding: 0.5rem 0; }

.photo-preview { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.photo-preview-item {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(10,35,66,0.08);
}

.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── TABLEAUX ── */
.table-responsive { overflow-x: auto; border-radius: var(--radius-lg); }

.table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
}

.table thead { background: var(--primary); color: var(--white); }
.table th, .table td { padding: 0.85rem 1rem; text-align: left; font-size: 0.9rem; }
.table th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.table tbody tr { border-bottom: 1px solid rgba(10,35,66,0.05); transition: var(--transition); }
.table tbody tr:hover { background-color: rgba(10,35,66,0.02); }
.table tbody tr:last-child { border-bottom: none; }

.empty-row { text-align: center; padding: 3rem !important; color: var(--gray); }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state i { font-size: 3rem; color: var(--gray-light); margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--dark); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── DASHBOARD ── */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    color: var(--primary);
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-mini {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.stat-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-mini .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-mini .stat-label { font-size: 0.75rem; color: var(--gray); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── DEMANDES ── */
.demandes-list { display: flex; flex-direction: column; gap: 1.25rem; }

.demande-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
    transition: var(--transition);
    border-left: 4px solid var(--primary-mid);
}

.demande-card:hover { box-shadow: var(--shadow); }

.demande-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(10,35,66,0.06);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demande-info h3 { margin-bottom: 0.2rem; font-size: 1rem; }
.demande-date { color: var(--gray-light); font-size: 0.75rem; }
.demande-location { color: var(--gray); font-size: 0.82rem; }

.demande-body { margin-bottom: 1rem; }

.client-info, .demande-message {
    background: rgba(10,35,66,0.03);
    padding: 0.9rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(10,35,66,0.06);
}

.client-info h4, .demande-message h4 {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visite-souhaitee {
    background: rgba(232, 160, 32, 0.1);
    border: 1px solid rgba(232, 160, 32, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--accent-dark);
    font-weight: 600;
}

.demande-footer { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.demande-traitee { color: var(--gray); font-size: 0.82rem; }

/* ── BADGES STATUT ── */
.status-badge {
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-en_attente { background: #fef3c7; color: #b45309; }
.status-acceptee { background: #d1fae5; color: #065f46; }
.status-refusee { background: #fee2e2; color: #991b1b; }
.status-annulee { background: #f1f5f9; color: #64748b; }
.status-publie { background: #d1fae5; color: #065f46; }
.status-brouillon { background: #fef3c7; color: #b45309; }
.status-desactive { background: #f1f5f9; color: #64748b; }

/* ── AUTH ── */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary);
}

.auth-header { text-align: center; margin-bottom: 2rem; }

.auth-header i {
    font-size: 2.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.auth-header h1 {
    color: var(--primary);
    font-size: 1.6rem;
}

.auth-header p { color: var(--gray); font-size: 0.9rem; margin-top: 0.5rem; }

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(10,35,66,0.08);
    font-size: 0.85rem;
    color: var(--gray);
}

/* ── PROFIL ── */
.profile-container { max-width: 900px; margin: 0 auto; }

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.profile-avatar i {
    font-size: 5rem;
    color: var(--accent);
}

.profile-info h1 { color: var(--white); margin-bottom: 0.25rem; }
.profile-info p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
}

.profile-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(10,35,66,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(10,35,66,0.04);
    font-size: 0.9rem;
}

.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--gray); }
.info-value { color: var(--dark); }

.profile-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* ── SUPPRESSION ── */
.delete-confirm {
    text-align: center;
    max-width: 500px;
    margin: 3rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.delete-icon i { font-size: 3.5rem; color: var(--danger); margin-bottom: 1rem; display: block; }

.warning-box {
    background: #fef2f2;
    border: 1px solid rgba(239,68,68,0.2);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    text-align: left;
}

.warning-box ul { margin-left: 1.5rem; margin-top: 0.5rem; }
.warning-box li { margin: 0.25rem 0; font-size: 0.9rem; }

.delete-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

/* ── ALERTES ── */
.messages-container {
    position: fixed;
    top: 80px;
    right: 1.25rem;
    z-index: 1100;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert {
    padding: 0.85rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-left: 4px solid;
    animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

@keyframes slideIn {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert-success { border-left-color: var(--success); }
.alert-error { border-left-color: var(--danger); }
.alert-info { border-left-color: var(--primary-light); }
.alert-warning { border-left-color: var(--warning); }

.alert-success i { color: var(--success); }
.alert-error i { color: var(--danger); }
.alert-info i { color: var(--primary-light); }
.alert-warning i { color: var(--warning); }

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--gray-light);
    flex-shrink: 0;
    padding: 0 0.25rem;
    transition: var(--transition);
}
.alert-close:hover { color: var(--dark); }

/* ── ADMIN ── */
.admin-actions { margin-top: 2rem; }
.admin-actions h2 { margin-bottom: 1rem; font-size: 1.25rem; color: var(--primary); }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,35,66,0.06);
    display: block;
    position: relative;
    overflow: hidden;
}

.admin-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.admin-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.admin-card:hover::after { transform: scaleX(1); }

.admin-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.65rem;
    display: block;
}

.admin-card span { display: block; color: var(--dark); font-weight: 600; font-size: 0.9rem; }

/* ── MODAL ── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10,35,66,0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(10,35,66,0.08);
}

.modal-header h3 { margin-bottom: 0; color: var(--primary); }
.modal-close { cursor: pointer; font-size: 1.4rem; color: var(--gray); transition: var(--transition); }
.modal-close:hover { color: var(--danger); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(10,35,66,0.08);
}

/* ── FOOTER ── */
.footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 4rem 0 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i { color: var(--accent); font-size: 1.6rem; }
.footer-description { line-height: 1.7; font-size: 0.85rem; margin-bottom: 1.5rem; }

.social-links { display: flex; gap: 0.6rem; }

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.85rem;
}

.social-link:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--white); transform: translateX(4px); }
.footer-links a i { font-size: 0.65rem; color: var(--accent); }

.footer-contact { list-style: none; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.footer-contact li i { color: var(--accent); margin-top: 0.2rem; width: 16px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: #475569; }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.footer-bottom-links a { color: #475569; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-bottom-links span { color: #1e293b; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 24px rgba(10,35,66,0.15);
        padding: 5rem 2rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-menu.open { right: 0; }

    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .nav-links a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10,35,66,0.5);
        z-index: 1040;
    }

    .nav-overlay.open { display: block; }

    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.5rem; }

    .form-grid, .form-row { grid-template-columns: 1fr; }

    .profile-header { flex-direction: column; text-align: center; }
    .dashboard-header { flex-direction: column; }
    .stats-mini { grid-template-columns: repeat(2, 1fr); }
    .biens-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .demande-header { flex-direction: column; }
    .profile-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .messages-container { left: 1rem; right: 1rem; max-width: none; }
    .bien-features-detail { gap: 1rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section { padding: 2.5rem 0; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.65rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .auth-card { padding: 1.75rem; }
    .form-container { padding: 1.5rem; }
    .profile-avatar i { font-size: 3.5rem; }
    .admin-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn-primary, .hero-buttons .btn-outline { width: 100%; justify-content: center; }
    .demande-footer { flex-direction: column; }
    .biens-grid { grid-template-columns: 1fr; }
    .stats-mini { grid-template-columns: 1fr; }
    .pagination-wrapper { gap: 0.25rem; }
}

/* ── HERO SEARCH ── */
.hero-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search-input,
.hero-search-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.5rem 1.25rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.hero-search-input i,
.hero-search-select i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-search-input input,
.hero-search-select select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.hero-search-input input::placeholder {
    color: rgba(255,255,255,0.55);
}

.hero-search-select select option {
    background: var(--primary);
    color: var(--white);
}

.hero-search .btn-accent {
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

/* ── BIEN IMAGE OVERLAY ── */
.bien-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 66, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.bien-card:hover .bien-image-overlay { opacity: 1; }

.bien-image-overlay .btn-outline {
    border-color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

/* ── CTA SECTION ── */
.cta-section { background: var(--light); padding-top: 0; }

.cta-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.cta-icon i {
    font-size: 3.5rem;
    color: var(--accent);
}

.cta-content { flex: 1; min-width: 200px; }

.cta-content h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cta-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ── TOUT VOIR LINK ── */
.view-all-wrapper {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .hero-search {
        border-radius: var(--radius-lg);
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-search-input,
    .hero-search-select {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding: 0.5rem 0.75rem;
    }

    .hero-search .btn-accent {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius);
        margin-left: 0;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .cta-card .btn-accent {
        width: 100%;
        justify-content: center;
    }
}

/* ── AMÉLIORATION IMAGE PLACEHOLDER ── */
.bien-image.placeholder,
.gallery-main.placeholder {
    background: var(--primary);
}

/* ── CATEGORY CARD HOVER AMÉLIORÉ ── */
.category-card:hover .category-icon {
    background: var(--accent);
}

.category-card:hover .category-icon i {
    color: var(--dark);
}

/* ── AUTH CARD AMÉLIORÉ ── */

/* ── BOUTON FAVORI ── */
.btn-favori {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 2px solid #e53e3e;
    border-radius: var(--radius);
    background: #fff;
    color: #e53e3e;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-favori:hover {
    background: #fff5f5;
}

.btn-favori.active {
    border-color: #e53e3e;
    color: #fff;
    background: #e53e3e;
}

.btn-favori.active:hover {
    background: #c53030;
    border-color: #c53030;
}
