/* =========================================================
   CAMU SERVICES — STYLE V1
   Trouver • Acheter • Réserver
========================================================= */

/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #1f2937;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;

    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;

    --white: #ffffff;
    --black: #000000;

    --border: #e5e7eb;
    --danger: #dc2626;
    --warning: #f59e0b;

    --sidebar-width: 250px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.12);

    --radius: 14px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: 80px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo,
.mobile-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sidebar-logo .logo-main {
    font-size: 25px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.sidebar-logo .logo-sub {
    margin-top: 4px;
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.sidebar-close {
    display: none;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-item {
    width: 100%;
    min-height: 46px;
    margin-bottom: 5px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-item:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-footer {
    padding: 15px 12px;
    border-top: 1px solid var(--border);
}

.logout-button {
    color: var(--danger);
}

.logout-button:hover {
    background: #fef2f2;
    color: var(--danger);
}


/* =========================================================
   SIDEBAR OVERLAY
========================================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 900;
    transition: 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 80px;
    padding: 0 30px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 800;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-left h1 {
    color: var(--dark);
    font-size: 21px;
    font-weight: 800;
}

.topbar-left p {
    color: var(--muted);
    font-size: 12px;
}

.desktop-menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-menu-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-header {
    display: none;
}


/* =========================================================
   CONTENT
========================================================= */

.main-content > section,
.main-content > .content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 30px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    margin: 30px;
    padding: 55px 40px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    border: 1px solid #d1fae5;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    color: var(--dark);
    font-size: 42px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 15px;
}

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

.hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 25px;
}


/* =========================================================
   SEARCH BOX
========================================================= */

.search-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.search-input,
.search-select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.search-input:focus,
.search-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.search-button {
    min-height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    transition: 0.2s ease;
}

.search-button:hover {
    background: var(--primary-dark);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--dark);
    font-size: 23px;
    font-weight: 800;
}

.section-header p {
    color: var(--muted);
    font-size: 13px;
}

.section-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.section-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    min-height: 130px;
    padding: 20px 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.category-card h3 {
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   ADS GRID
========================================================= */

.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ad-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.25s ease;
}

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

.ad-image {
    position: relative;
    height: 190px;
    background: #f3f4f6;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    padding: 15px;
}

.ad-content h3 {
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 6px;
}

.ad-price {
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 5px;
}

.ad-location {
    color: var(--muted);
    font-size: 12px;
}

.ad-location i {
    color: var(--primary);
    margin-right: 4px;
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.favorite-button:hover,
.favorite-button.is-favorite {
    color: var(--danger);
}


/* =========================================================
   CTA PUBLICATION
========================================================= */

.publish-cta {
    margin: 30px;
    padding: 35px;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.publish-cta h2 {
    font-size: 25px;
    margin-bottom: 5px;
}

.publish-cta p {
    opacity: 0.9;
    font-size: 14px;
}

.publish-cta-button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.publish-cta-button:hover {
    background: #f0fdf4;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: var(--muted);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   AUTHENTIFICATION
========================================================= */

.auth-page {
    min-height: 100vh;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.auth-container {
    width: 100%;
    max-width: 470px;
}

.auth-card {
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo span {
    display: block;
    color: var(--primary);
    font-size: 30px;
    font-weight: 900;
}

.auth-logo small {
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h1 {
    color: var(--dark);
    font-size: 25px;
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--muted);
    font-size: 13px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 47px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
}

.form-group textarea {
    min-height: 120px;
    padding-top: 12px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: var(--muted);
}

.password-toggle:hover {
    color: var(--primary);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.terms-checkbox input {
    margin-top: 4px;
}

.terms-checkbox a {
    color: var(--primary);
    font-weight: 700;
}

.auth-message {
    display: none;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 9px;
    font-size: 13px;
}

.auth-message.show {
    display: block;
}

.auth-message.success {
    background: #dcfce7;
    color: #166534;
}

.auth-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    transition: 0.2s ease;
}

.auth-submit:hover {
    background: var(--primary-dark);
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   MESSAGE CAMU
========================================================= */

.camu-message {
    position: fixed;
    right: 25px;
    bottom: 25px;
    max-width: 350px;
    padding: 14px 18px;
    background: var(--dark);
    color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    z-index: 2000;
    opacity: 1;
    transform: translateY(0);
    transition: 0.3s ease;
}

.camu-message.hide {
    opacity: 0;
    transform: translateY(15px);
}


/* =========================================================
   PAGE MON COMPTE
========================================================= */

.account-page {
    width: 100%;
}

.account-header {
    margin-bottom: 25px;
}

.account-header h1 {
    color: var(--dark);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.7px;
    margin-bottom: 5px;
}

.account-header p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   PROFIL
========================================================= */

.account-profile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.account-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 30px;
    flex-shrink: 0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-info h2 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 5px;
}

.account-profile-info p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.account-profile-info i {
    width: 18px;
    color: var(--primary);
    margin-right: 5px;
}

.account-edit-button {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.account-edit-button:hover {
    border-color: var(--primary);
    background: #f0fdfa;
    color: var(--primary);
}


/* =========================================================
   STATISTIQUES DU COMPTE
========================================================= */

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.account-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.account-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.account-stat strong {
    display: block;
    color: var(--dark);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.account-stat span {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   SECTIONS DU COMPTE
========================================================= */

.account-section {
    margin-top: 25px;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.account-section-header h2 {
    color: var(--dark);
    font-size: 19px;
    font-weight: 800;
}

.account-section-header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.account-section-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.account-section-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   ANNONCES DU COMPTE
========================================================= */

.account-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.account-ad-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: 0.25s ease;
}

.account-ad-card:hover {
    transform: translateY(-3px);
    border-color: #d1d5db;
    box-shadow: var(--shadow);
}

.account-ad-image {
    height: 170px;
    background: #f3f4f6;
    overflow: hidden;
}

.account-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-ad-content {
    padding: 14px;
}

.account-ad-content h3 {
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-ad-price {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
}

.account-ad-location {
    color: var(--muted);
    font-size: 11px;
}

.account-ad-location i {
    color: var(--primary);
    margin-right: 4px;
}


/* =========================================================
   ACTIONS ANNONCES
========================================================= */

.account-ad-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.account-ad-actions a,
.account-ad-actions button {
    flex: 1;
    min-height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s ease;
}

.account-ad-edit {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
}

.account-ad-edit:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.account-ad-delete {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: var(--danger);
}

.account-ad-delete:hover {
    background: #fee2e2;
}


/* =========================================================
   FAVORIS
========================================================= */

.account-favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* =========================================================
   ÉTAT VIDE
========================================================= */

.account-empty {
    padding: 45px 20px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed var(--border);
    border-radius: 14px;
}

.account-empty-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.account-empty h3 {
    color: var(--dark);
    font-size: 16px;
    margin-bottom: 5px;
}

.account-empty p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 17px;
}


/* =========================================================
   INFORMATIONS DU COMPTE
========================================================= */

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.account-info-item {
    padding: 15px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.account-info-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-value {
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}


/* =========================================================
   DÉCONNEXION COMPTE
========================================================= */

.account-logout {
    width: 100%;
    min-height: 48px;
    margin-top: 25px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: var(--white);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.account-logout:hover {
    background: #fef2f2;
    border-color: var(--danger);
}


/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 1100px) {

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ads-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-box {
        grid-template-columns: 1fr 1fr;
    }

    .search-button {
        grid-column: 1 / -1;
    }

    .account-ads-grid,
    .account-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — TABLETTE PETITE
========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 230px;
    }

    .hero {
        padding: 40px 30px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-profile {
        grid-template-columns: auto 1fr;
    }

    .account-edit-button {
        grid-column: 1 / -1;
        width: fit-content;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        height: 65px;
        padding: 0 15px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 850;
    }

    .mobile-menu-btn,
    .mobile-account-btn {
        width: 40px;
        height: 40px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--white);
        color: var(--text);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:hover,
    .mobile-account-btn:hover {
        color: var(--primary);
        border-color: var(--primary);
    }

    .mobile-logo {
        align-items: center;
    }

    .mobile-logo span {
        color: var(--primary);
        font-size: 20px;
        font-weight: 900;
    }

    .mobile-logo small {
        color: var(--dark);
        font-size: 7px;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .topbar {
        height: 70px;
        padding: 0 15px;
    }

    .desktop-menu-btn {
        display: none;
    }

    .topbar-left h1 {
        font-size: 18px;
    }

    .topbar-left p {
        font-size: 11px;
    }

    .main-content > section,
    .main-content > .content-container {
        padding: 25px 15px;
    }

    .hero {
        margin: 15px;
        padding: 30px 20px;
        border-radius: 17px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-box {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .search-button {
        grid-column: auto;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        min-height: 115px;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ad-image {
        height: 145px;
    }

    .ad-content {
        padding: 11px;
    }

    .ad-content h3 {
        font-size: 13px;
    }

    .ad-price {
        font-size: 14px;
    }

    .publish-cta {
        margin: 15px;
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .publish-cta h2 {
        font-size: 21px;
    }

    .publish-cta-button {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 20px 15px;
    }

    .section-header h2 {
        font-size: 19px;
    }

    .footer {
        padding: 25px 15px;
    }

    .footer-content {
        flex-direction: column;
    }


    /* COMPTE MOBILE */

    .account-header h1 {
        font-size: 25px;
    }

    .account-profile {
        grid-template-columns: auto 1fr;
        padding: 18px;
        gap: 15px;
    }

    .account-avatar {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }

    .account-profile-info h2 {
        font-size: 17px;
    }

    .account-edit-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-stat {
        padding: 15px;
    }

    .account-section {
        padding: 18px;
        border-radius: 15px;
    }

    .account-section-header {
        align-items: flex-start;
    }

    .account-section-header h2 {
        font-size: 17px;
    }

    .account-ads-grid,
    .account-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .account-ad-image {
        height: 140px;
    }

    .account-ad-content {
        padding: 11px;
    }

    .account-ad-content h3 {
        font-size: 13px;
    }

    .account-ad-price {
        font-size: 14px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }


    /* AUTH MOBILE */

    .auth-page {
        padding: 15px;
    }

    .auth-card {
        padding: 25px 18px;
        border-radius: 16px;
    }

    .auth-logo span {
        font-size: 27px;
    }
}


/* =========================================================
   PETIT TÉLÉPHONE
========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 25px;
    }

    .categories-grid {
        gap: 8px;
    }

    .category-card {
        min-height: 105px;
        padding: 12px 5px;
    }

    .category-icon {
        width: 43px;
        height: 43px;
        font-size: 18px;
    }

    .category-card h3 {
        font-size: 11px;
    }

    .ads-grid {
        gap: 8px;
    }

    .ad-image {
        height: 120px;
    }

    .ad-content {
        padding: 9px;
    }

    .ad-content h3 {
        font-size: 12px;
    }

    .ad-price {
        font-size: 13px;
    }

    /* COMPTE */

    .account-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .account-avatar {
        margin: auto;
    }

    .account-profile-info {
        width: 100%;
    }

    .account-ads-grid,
    .account-favorites-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-ad-image {
        height: 125px;
    }

    .account-ad-actions {
        flex-direction: column;
    }

    .account-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-stat-icon {
        width: 40px;
        height: 40px;
    }

    .account-stat strong {
        font-size: 18px;
    }
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(22, 163, 74, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.35s ease;
}


/* =========================================================
   UTILITAIRES
========================================================= */

.hidden {
    display: none !important;
}

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

.w-full {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
.account-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.account-avatar-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #64748b;
}
