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

/* =========================================================
   VARIABLES (Thème Premium Neutre & Élégant)
========================================================= */

:root {

    /* Accent principal : Bleu nuit / Indigo sobre */
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --primary-light: #334155;

    --secondary: #475569;

    --background: #f8fafc;
    --surface: #ffffff;

    --surface-low: #f1f5f9;
    --surface-container: #e2e8f0;
    --surface-high: #cbd5e1;

    --text: #0f172a;
    --text-light: #334155;
    --text-muted: #64748b;

    /* Bordures sobres & élégantes (sans rouge/rose) */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --container: 1280px;

    --shadow:
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.03);

    --shadow-hover:
        0 16px 32px -4px rgba(15, 23, 42, 0.1),
        0 4px 12px -2px rgba(15, 23, 42, 0.04);


    /* Accent Orange Premium (pour les actions prioritaires) */
    /* Orange sombre & chaleureux (Qualité Premium / Luxe) */
    --accent-orange: #c2410c;       /* Terracotta profond */
    --accent-orange-hover: #9a3412; /* Nuance plus sombre au survol */

    /* Palette Obien (marque) */
    --obien-orange: #f83d00;
    --obien-orange-dark: #d93200;

    --obien-navy: #26394c;
    --obien-navy-dark: #1d2d3d;

    --obien-text: #344054;
    --obien-muted: #667085;

    --obien-border: #e5e7eb;
    --obien-border-dark: #d0d5dd;

    --obien-bg: #f7f8fa;
    --obien-card: #ffffff;

}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--background);
    color: var(--text);

    font-family: "Inter", Arial, sans-serif;

    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
}



/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: 100%;
    max-width: var(--container);

    margin: auto;

    padding-left: 64px;
    padding-right: 64px;
}


/* =========================================================
   ICONS
========================================================= */

.material-symbols-outlined {

    font-family: "Material Symbols Outlined";

    font-weight: normal;
    font-style: normal;

    font-size: 22px;

    line-height: 1;

    letter-spacing: normal;
    text-transform: none;

    display: inline-block;

    white-space: nowrap;
    word-wrap: normal;

    direction: ltr;

    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}


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

.site-header {

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,.97);

    border-bottom: 1px solid var(--border-light);

    backdrop-filter: blur(10px);
}


.header-inner {

    min-height: 72px;

    display: flex;

    align-items: center;
}




/* LOGO */

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.logo img {

    width: auto;
    height: 50px;

    display: block;
}


/* HEADER SEARCH */

.header-search {

    width: 270px;

    height: 42px;

    display: flex;

    align-items: center;

    gap: 15px;
    margin-left: 15px;
    margin-right: 15px;

    padding: 0 14px;

    border: 1px solid var(--border-light);

    background: var(--surface-low);

    border-radius: 30px;

    transition: .2s;
}

.header-search:focus-within {

    border-color: var(--primary);

    background: white;
}

.header-search .material-symbols-outlined {

    color: var(--text-muted);

    font-size: 20px;
}

.header-search input {

    width: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 14px;
}


/* NAVIGATION */

.main-nav {

    display: flex;

    align-items: center;

    gap: 0px;

    margin-left: auto;
}

.main-nav a {

    position: relative;

    color: var(--text-light);

    font-size: 14px;

    font-weight: 600;

    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {

    color: var(--primary);
}



/* HEADER ACTIONS */

.header-actions {

    display: flex;

    align-items: center;

    gap: 4px;
}

.icon-btn {

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--text-light);
}

.icon-btn:hover {

    background: var(--surface-container);

    color: var(--primary);
}


/* BUTTONS */

.btn {

    border: 0;

    border-radius: 30px;

    padding: 11px 22px;

    font-size: 14px;

    font-weight: 700;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    transition: .2s;
}

.btn-primary {

    color: white;

    background: var(--accent-orange);

    border: none;

    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);

    transition: all .2s ease;
}

.btn-primary:hover {

    background: var(--accent-orange-hover);

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.btn-secondary {

    color: white;

    background: var(--secondary);
}

.btn-secondary:hover {

    opacity: .9;
}


/* ===========================================================
    COMPTE
=========================================================== */
.account-menu {
    position: relative;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* left: 0 si tu préfères en RTL selon ton layout */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    min-width: 200px;
    z-index: 100;
    padding: 8px 0;
}

.account-dropdown.active {
    display: block;
}

.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
}

.account-dropdown a:hover {
    background: #f7f7f7;
}

.logout-link {
    color: #ad2c00 !important;
    border-top: 1px solid #eee;
}

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

.hero {

    position: relative;

    overflow: hidden;

    padding: 85px 0 75px;

    background:

        radial-gradient(
            circle,
            rgba(228,226,221,.8) 1px,
            transparent 1px
        ),

        var(--surface-low);

    background-size: 24px 24px;
}


.hero-content {

    text-align: center;

    max-width: 1000px;

    margin: auto;
}


.hero h1 {

    margin: 0 0 20px;

    font-family: "Montserrat", sans-serif;

    font-size: 48px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -.02em;
}


.hero-description {

    max-width: 700px;

    margin: 0 auto 32px;

    color: var(--text-light);

    font-size: 18px;

    line-height: 1.6;
}


/* SEARCH HERO */

.hero-search {

    width: 100%;

    max-width: 850px;

    min-height: 62px;

    margin: auto;

    display: flex;

    align-items: center;

    padding: 7px;

    background: white;

    border: 1px solid var(--border-light);

    border-radius: 40px;

    box-shadow: var(--shadow);
}

.hero-search .material-symbols-outlined {

    margin-left: 17px;

    color: var(--secondary);
}

.hero-search input {

    flex: 1;

    min-width: 0;

    height: 48px;

    border: 0;

    outline: 0;

    background: transparent;

    padding: 0 16px;

    font-size: 16px;
}

.hero-search button {

    height: 48px;

    padding: 0 28px;

    border: 0;

    border-radius: 30px;

    color: white;

    background: var(--accent-orange);

    font-weight: 700;
}

.hero-search button:hover {

    background: var(--primary-dark);
}


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

.categories {

    margin-top: 25px;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 30px;
}


.category-item {

    width: 100px;

    text-align: center;

    color: var(--text-light);

    transition: .25s;
    
    font-weight:bold;
    
    font-size:14px;
}

.category-item:hover {

    color: var(--primary);

    transform: translateY(-3px);
}


.category-icon {

    width: 64px;
    height: 64px;

    margin: 0 auto 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border-light);

    border-radius: 50%;

    background: white;

    transition: .25s;
}

.category-item:hover .category-icon {

    background: var(--primary);

    border-color: var(--primary);

    color: white;
}


.category-icon .material-symbols-outlined {

    font-size: 28px;
}


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

.section {

    padding: 60px 0;
}

.section-light {

    background: var(--surface-low);
}


.section-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 30px;
}


.section-title {

    margin: 0;

    font-family: "Montserrat", sans-serif;

    font-size: 32px;

    line-height: 1.25;

    font-weight: 700;
}

.section-description {

    margin: 7px 0 0;

    color: var(--text-light);

    font-size: 15px;
}


.view-all {

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 4px;
}


/* =========================================================
   LISTINGS GRID
========================================================= */

.listings-grid {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 20px;
}


/* FEATURED CARD */

.featured-card {

    min-height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border-light);

    border-radius: var(--radius-xl);

    transition: .3s;

    box-shadow: 0 2px 7px rgba(0,0,0,.02);
}

.featured-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);
}


.featured-image {

    position: relative;

    height: 330px;

    overflow: hidden;

    background: var(--surface-high);
}


.featured-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .7s;
}

.featured-card:hover .featured-image img {

    transform: scale(1.05);
}


.badge {

    position: absolute;

    top: 16px;
    left: 16px;

    padding: 6px 12px;

    border-radius: 20px;

    background: rgba(255,255,255,.92);

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;
}


/* CARD BODY */

.card-body {

    padding: 20px;

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.card-title {

    margin: 0 0 8px;

    font-family: "Montserrat", sans-serif;

    font-size: 21px;

    line-height: 1.35;

    font-weight: 700;
}

.card-description {

    margin: 0 0 18px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.55;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.card-footer {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 15px;
}

.price {

    color: var(--primary);

    font-family: "Montserrat", sans-serif;

    font-size: 22px;

    font-weight: 800;
}

.location {

    margin-top: 5px;

    display: flex;

    align-items: center;

    gap: 4px;

    color: var(--text-muted);

    font-size: 12px;
}

.location .material-symbols-outlined {

    font-size: 16px;
}


/* Bouton favori générique (listings featured/small) */
.card-footer .favorite,
.small-card .favorite {

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border-light);

    border-radius: 50%;

    background: white;

    color: var(--secondary);
}

.card-footer .favorite:hover,
.small-card .favorite:hover {

    background: var(--surface-low);

    color: var(--primary);
}


/* =========================================================
   SMALL LISTINGS
========================================================= */

.small-listings {

    display: flex;

    flex-direction: column;

    gap: 20px;
}

.small-card {

    display: flex;

    flex-direction: column;

    flex: 1;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border-light);

    border-radius: var(--radius-xl);

    transition: .3s;
}

.small-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);
}


.small-card-image {

    height: 180px;

    overflow: hidden;

    background: var(--surface-high);
}

.small-card-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .6s;
}

.small-card:hover img {

    transform: scale(1.05);
}


.small-card .card-body {

    padding: 16px;
}


.small-card .card-title {

    font-family: "Inter", sans-serif;

    font-size: 15px;

    line-height: 1.4;
}

.small-card .price {

    font-size: 19px;
}


/* =========================================================
   ANCIEN CARROUSEL - COMPATIBILITÉ OBIEN
========================================================= */

.carousel-cell {

    width: 25%;

    margin: 4px;

    padding-bottom: 3px;

    background: #e8e8e8;

    color: #474747;

    border-radius: 8px;

    line-height: 1;

    overflow: hidden;
}


.acceuil-carousel-cell {

    width: 40%;

    margin: 6px;

    padding: 10px;

    padding-bottom: 10px;

    background: white;

    color: #474747;

    border-radius: 8px;

    box-shadow:
        1px 2px 8px rgba(190,190,190,.10),
        0 -1px 8px rgba(190,190,190,.08);

    overflow: hidden;
}


#big-carousel {

    width: 16%;
}

#big-carousel a {

    font-size: 11.5px;
}


/* =========================================================
   BIGGER - IMAGE ANCIEN TEMPLATE
========================================================= */

#bigger {

    width: 100%;

    height: 250px;

    overflow: hidden;

    background: #efefef;

    border-radius: 15px 15px 15px 0;

    display: flex;

    align-items: center;

    justify-content: center;
}


#bigger img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   REGIONS
========================================================= */

.regions-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


.region-card {

    position: relative;

    height: 170px;

    overflow: hidden;

    border-radius: var(--radius-xl);

    color: white;

    background: #333;

    transition: .3s;
}


.region-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);
}


.region-card img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .5s;
}

.region-card:hover img {

    transform: scale(1.06);
}


.region-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(20,20,20,.85),
            rgba(20,20,20,0)
        );
}


.region-content {

    position: absolute;

    left: 16px;

    bottom: 14px;
}


.region-name {

    display: block;

    font-family: "Montserrat", sans-serif;

    font-size: 21px;

    font-weight: 700;
}

.region-count {

    font-size: 12px;

    opacity: .85;
}


/* =========================================================
   TRUST BLOCK
========================================================= */

.trust-section {

    padding: 60px 0;
}


.trust-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 30px;

    background: #d7e0f4;

    border: 1px solid #bec7db;

    border-radius: var(--radius-xl);
}


.trust-content {

    display: flex;

    align-items: center;

    gap: 20px;
}


.trust-icon {

    width: 64px;
    height: 64px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: white;

    color: var(--secondary);
}


.trust-title {

    margin: 0 0 5px;

    font-family: "Montserrat", sans-serif;

    font-size: 21px;

    font-weight: 700;
}


.trust-text {

    margin: 0;

    color: #5a6374;

    font-size: 14px;
}


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

.site-footer {

    background: var(--surface-container);

    border-top: 1px solid var(--border-light);

    padding: 55px 0 30px;
}


.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 40px;
}


.footer-title {

    margin: 0 0 14px;

    font-family: "Montserrat", sans-serif;

    font-size: 22px;

    font-weight: 700;
}


.footer-text {

    margin: 0 0 20px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.6;
}


.footer-heading {

    margin: 0 0 15px;

    font-size: 14px;

    font-weight: 700;
}


.footer-links {

    list-style: none;

    padding: 0;
    margin: 0;
}

.footer-links li {

    margin-bottom: 10px;
}

.footer-links a {

    color: var(--text-light);

    font-size: 14px;
}

.footer-links a:hover {

    color: var(--primary);

    text-decoration: underline;
}


.footer-bottom {

    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid var(--border-light);

    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   MOBILE MENU BUTTON (bouton hamburger header)
========================================================= */

.mobile-menu-btn {

    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #263238;

    border-radius: 50%;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.mobile-menu-btn .material-symbols-outlined {

    font-size: 28px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .container {

        padding-left: 30px;
        padding-right: 30px;
    }


    .main-nav {

        gap: 15px;
    }


    .main-nav a {

        font-size: 13px;
    }


    .header-search {

        width: 200px;
    }


    .listings-grid {

        grid-template-columns: 1.6fr 1fr;
    }


    .featured-image {

        height: 280px;
    }


    .regions-grid {

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

}


/* =========================================================
   TABLET PORTRAIT
========================================================= */

@media (max-width: 900px) {

    .container {

        padding-left: 24px;
        padding-right: 24px;
    }


    .header-search {

        display: none;
    }


    .main-nav {

        display: none;
    }


    .mobile-menu-btn {

        display: flex;
    }


    .hero {

        padding: 65px 0 55px;
    }


    .hero h1 {

        font-size: 38px;
    }


    .hero-description {

        font-size: 16px;
    }


    .listings-grid {

        grid-template-columns: 1fr;
    }


    .small-listings {

        display: grid;

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


    .small-card-image {

        height: 200px;
    }


    .footer-grid {

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

}


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

@media (max-width: 600px) {

    .container {

        padding-left: 16px;
        padding-right: 16px;
    }


    .header-inner {

        min-height: 64px;

        gap: 8px;
    }


    .logo img {

        height: 36px;
    }


    .header-actions {

        margin-left: auto;
    }


    .header-actions .icon-btn {

        display: none;
    }


    .btn-secondary {

        display: none;
    }


    .btn-primary {

        padding: 9px 14px;

        font-size: 12px;
    }


    .mobile-menu-btn {

        width: 36px;
        height: 36px;
    }


    /* HERO */

    .hero {

        padding: 48px 0 42px;
    }


    .hero h1 {

        font-size: 29px;

        line-height: 1.2;

        margin-bottom: 15px;
    }


    .hero-description {

        font-size: 14px;

        line-height: 1.5;

        margin-bottom: 22px;
    }


    .hero-search {

        min-height: auto;

        padding: 5px;

        border-radius: 14px;

        flex-wrap: wrap;
    }


    .hero-search .material-symbols-outlined {

        margin-left: 10px;
    }


    .hero-search input {

        height: 44px;

        font-size: 14px;

        padding: 0 8px;
    }


    .hero-search button {

        width: 100%;

        height: 44px;

        margin-top: 3px;

        border-radius: 10px;
    }


    /* CATEGORIES */

    .categories {

        margin-top: 30px;

        display: grid;

        grid-template-columns: repeat(4,1fr);

        gap: 12px;
    }


    .category-item {

        width: auto;

        font-size: 11px;
    }


    .category-icon {

        width: 70px;
        height: 70px;
    }


    .category-icon .material-symbols-outlined {

        font-size: 23px;
    }


    /* SECTION */

    .section {

        padding: 40px 0;
    }


    .section-header {

        align-items: flex-start;

        margin-bottom: 20px;
    }


    .section-title {

        font-size: 23px;
    }


    .section-description {

        font-size: 13px;
    }


    .view-all {

        display: none;
    }


    /* FEATURED */

    .featured-image {

        height: 220px;
    }


    .card-body {

        padding: 15px;
    }


    .card-title {

        font-size: 18px;
    }


    .card-description {

        font-size: 13px;
    }


    .price {

        font-size: 19px;
    }


    /* SMALL CARDS */

    .small-listings {

        display: grid;

        grid-template-columns: repeat(2,1fr);

        gap: 10px;
    }


    .small-card-image {

        height: 130px;
    }


    .small-card .card-body {

        padding: 11px;
    }


    .small-card .card-title {

        font-size: 13px;
    }


    .small-card .price {

        font-size: 16px;
    }


    .small-card .location {

        font-size: 10px;
    }


    /* REGIONS */

    .regions-grid {

        grid-template-columns: repeat(2,1fr);

        gap: 10px;
    }


    .region-card {

        height: 135px;

        border-radius: 10px;
    }


    .region-content {

        left: 10px;

        bottom: 9px;
    }


    .region-name {

        font-size: 16px;
    }


    .region-count {

        font-size: 10px;
    }


    /* TRUST */

    .trust-section {

        padding: 40px 0;
    }


    .trust-box {

        padding: 20px;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .trust-content {

        align-items: flex-start;

        gap: 13px;
    }


    .trust-icon {

        width: 50px;
        height: 50px;
    }


    .trust-title {

        font-size: 17px;
    }


    .trust-text {

        font-size: 12px;
    }


    .trust-box .btn {

        width: 100%;
    }


    /* FOOTER */

    .site-footer {

        padding: 40px 0 25px;
    }


    .footer-grid {

        grid-template-columns: 1fr 1fr;

        gap: 30px 20px;
    }


    .footer-grid > div:first-child {

        grid-column: 1 / -1;
    }


    .footer-title {

        font-size: 20px;
    }


    .footer-text {

        font-size: 13px;
    }


    /* BIGGER */

    #bigger {

        height: 220px;

        border-radius: 12px 12px 12px 0;
    }


    /* CAROUSEL */

    .main-carousel {

        width: 100%;
    }


    .carousel-cell {

        width: 72%;

        margin: 4px;
    }


    .acceuil-carousel-cell {

        width: 78%;

        margin: 5px;
    }


    #big-carousel {

        width: 45%;
    }


    #big-carousel a {

        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .container {

        padding-left: 12px;
        padding-right: 12px;
    }


    .hero h1 {

        font-size: 25px;
    }


    .categories {

        gap: 8px;
    }


    .small-listings {

        grid-template-columns: 1fr 1fr;
    }


    .small-card-image {

        height: 110px;
    }


    .footer-grid {

        grid-template-columns: 1fr;
    }


    .footer-grid > div:first-child {

        grid-column: auto;
    }

}


/*---------------------------------- flickity -------------------------------------------*/
/* ---- previous/next buttons ---- */
.flickity-prev-next-button {
  top: 50%; width: 34px; height: 34px; border-radius: 50%;
  /* vertically center */
  transform: translateY(-50%);
}


/* --------------------------------------------------------------------------------------------- */
/*  -------------  CARROUSSEL TACTILE ---------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------- */

.flickity-enabled { position: relative; }
.flickity-enabled:focus { outline: none; }
.flickity-viewport { overflow: hidden; position: relative; height: 100%; }
.flickity-slider { position: absolute; width: 100%; height: 100%; }

/* draggable */
.flickity-enabled.is-draggable { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

.flickity-enabled.is-draggable .flickity-viewport { cursor: move; cursor: -webkit-grab; cursor: grab; }
.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down { cursor: -webkit-grabbing; cursor: grabbing; }

/* ---- flickity-button ---- */
.flickity-button { position: absolute; background: #f83d00; border: none; color: #333; }
.flickity-button:hover { cursor: pointer; }
.flickity-button:focus { outline: none;  }
.flickity-button:active { opacity: 0.6; }

.flickity-button:disabled {
  opacity: 0.3; cursor: auto; display:none;
  /* prevent disabled button from capturing pointer up event. #716 */
  pointer-events: none;
}

.flickity-button-icon { fill: white; }


.flickity-prev-next-button.previous { left: 10px;  display: block !important;
    opacity: 1 !important; }
.flickity-prev-next-button.next { right: 10px; }

.flickity-prev-next-button:disabled {
    opacity: 0.5 !important;
}

/* right to left */
.flickity-rtl .flickity-prev-next-button.previous { left: auto; right: 10px; }
.flickity-rtl .flickity-prev-next-button.next { right: auto; left: 10px; }

.flickity-prev-next-button .flickity-button-icon { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; fill:white; }



/* ---- page dots ---- */
.flickity-page-dots {  position: absolute; width: 100%; bottom: -25px; padding: 0; margin: 0; list-style: none; text-align: center; line-height: 1; }

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot { display: inline-block; width: 10px; height: 10px; margin: 0 8px; background: #333; border-radius: 50%; opacity: 0.25; cursor: pointer; }

.flickity-page-dots .dot.is-selected {  opacity: 1; }


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

.category-hero {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 25px;

    margin-bottom: 28px;
}

.category-title {

    margin: 0;

    font-family: Montserrat, sans-serif;

    font-size: 34px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -.5px;
}

.category-description {

    max-width: 750px;

    color: var(--text-muted);

    margin: 9px 0 0;

    font-size: 15px;
}

.result-count {

    white-space: nowrap;

    color: var(--text-muted);

    font-size: 13px;
}

/* =========================================================
   SEARCH BAR
========================================================= */

.search-box {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 10px;

    display: grid;

    grid-template-columns: 1fr 180px 150px 140px;

    gap: 10px;

    box-shadow: var(--shadow);

    margin-bottom: 28px;
}

.search-input {

    min-height: 48px;

    border: 1px solid var(--border);

    background: var(--surface-soft);

    border-radius: 8px;

    padding: 0 14px;

    outline: none;
}

.search-input:focus {

    border-color: var(--primary);

    background: #fff;
}

/* =========================================================
   MAIN GRID
========================================================= */

.content-layout {

    display: grid;

    grid-template-columns: 300px 1fr;

    gap: 28px;

    align-items: start;
}

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

.sidebar {

    position: sticky;

    top: 95px;
}


.sidebar-close   { display:none; }




.filter-card {

    background: var(--surface);

    /*border: 1px solid var(--border);*/

    border-radius: var(--radius);

    padding: 20px;

    box-shadow: var(--shadow);
}

.filter-title {

    font-family: Montserrat, sans-serif;

    font-size: 21px;

    margin: 0 0 18px;
}

.filter-group {

    padding-bottom: 18px;

    margin-bottom: 18px;

    border-bottom: 1px solid var(--border-light);
}

.filter-group:last-of-type {

    border-bottom: 0;

    margin-bottom: 0;
}

.filter-label {

    display: block;

    font-size: 13px;

    font-weight: 700;

    color: var(--text-soft);

    margin-bottom: 7px;
}

[dir="rtl"] .filter-label {
    text-align: right;
}

.filter-control {
    
    font-size: 14px;

    width: 100%;

    height: 42px;

    border: 1px solid var(--border);

    background: var(--surface-soft);

    border-radius: 8px;

    padding: 0 10px;

    outline: none;

    color: var(--text);
}

.filter-control:focus {

    border-color: var(--primary);

    background: #fff;
}

.price-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

.filter-actions {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 5px;
}

/* =========================================================
   TOOL BOX (Style Premium Purifié)
========================================================= */

.tools-card {

    margin-top: 18px;

    background: linear-gradient(
        145deg,
        #f8fafc,
        #ffffff
    );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 18px;

    box-shadow: var(--shadow);
}

.tools-icon {

    width: 38px;
    height: 38px;

    border-radius: 9px;

    display: inline;

    align-items: center;

    justify-content: center;

    background: var(--surface-low);

    color: var(--primary);

    margin-bottom: 10px;
}

.tools-card h3 {

    margin: 0 0 5px;

    font-family: Montserrat, sans-serif;

    font-size: 17px;
    display:inline;
}

.tools-card p {

    margin: 0 0 12px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.5;
}

.tool-links {

    display: flex;

    flex-direction: column;

    gap: 6px;
}

.tool-links a {

    padding: 7px 0;

    font-size: 12px;

    color: var(--text-soft);

    border-bottom: 1px solid #f1e3dd;
}

.tool-links a:hover {

    color: var(--primary);
}

.all-tools {

    display: inline-flex;

    margin-top: 12px;

    color: var(--primary);

    font-weight: 700;

    font-size: 12px;
}

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

.results-topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 16px;

    gap: 15px;
}

.results-title {

    font-family: Montserrat, sans-serif;

    font-size: 23px;

    margin: 0;
}

.sort-box {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    color: var(--text-muted);
}

.sort-box select {

    border: 1px solid var(--border);

    background: #fff;

    border-radius: 8px;

    padding: 8px 10px;

    outline: none;
}

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

.ads-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

/* =========================================================
   AD CARD
========================================================= */

.ad-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    transition: .25s;

    display: flex;

    flex-direction: column;

    min-width: 0;

    position: relative;
}

.ad-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);

    border-color: #dbcac3;
}

.ad-image {
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.ad-card:hover .ad-image img {
    transform: scale(1.035);
}

/* Bouton favori positionné sur l'image de l'annonce */
.ad-card .favorite {

    position: absolute;

    top: 10px;

    right: 10px;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    border: 0;

    background: rgba(255,255,255,.94);

    color: var(--text-muted);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.ad-card .favorite:hover {

    color: var(--primary);
}

.ad-body {

    padding: 16px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.ad-price {

    margin: 0 0 4px;

    color: var(--accent-orange);

    font-family: Montserrat, sans-serif;

    font-size: 20px;

    font-weight: 800;
}

.ad-title {

    margin: 0 0 14px;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.45;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* =========================================================
   AD META (véhicule / immobilier / vêtements)
========================================================= */

.ad-meta {

    border-top: 1px solid var(--border-light);

    padding-top: 11px;

    margin-top: auto;

    display: flex;

    flex-direction: column;

    gap: 6px;

    color: var(--text-muted);

    font-size: 11px;
}

/* Une ligne de meta (ex: année/km/carburant/boîte) */
.meta-row {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px 10px;
}

/* Chaque item individuel : icône + texte, alignés */
.meta-item {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    white-space: nowrap;
}

.meta-item .material-symbols-outlined {

    font-size: 14px;

    color: var(--text-muted);
}

/* Variante véhicule (année, km, carburant, boîte) */
.meta-row.meta-vehicle .meta-item .material-symbols-outlined {

    color: var(--secondary);
}

/* Variante immobilier (type, surface, pièces) */
.meta-row.meta-property .meta-item .material-symbols-outlined {

    color: var(--secondary);
}

/* Ligne du bas (ville / date, etc.) */
.meta-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px 8px;
}

/* =========================================================
   EMPTY
========================================================= */

.empty-results {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 50px 25px;

    text-align: center;
}

.empty-results .material-symbols-outlined {

    font-size: 50px;

    color: var(--text-muted);
}

/* =========================================================
   PAGINATION
========================================================= */

/* =========================================================
   PAGINATION OBien - FRANÇAIS
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 25px 0;
    padding: 0;
    font-family: "Montserrat", "Roboto", Arial, sans-serif;
    font-size: 14px;
}

/* =========================================================
   LIENS ET NUMÉROS
========================================================= */

.pagination a,
.pagination .active,
.pagination .inactive {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

/* =========================================================
   NUMÉROS / LIENS
========================================================= */

.pagination a {
    color: #152233;
    background: #ffffff;
    border: 1px solid #dfe4e8;
}

/* Hover */

.pagination a:hover {
    color: #ffffff;
    background: #f83d00;
    border-color: #f83d00;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =========================================================
   PAGE ACTIVE
========================================================= */

.pagination .active {
    color: #ffffff;
    background: #f83d00;
    border: 1px solid #f83d00;
    cursor: default;
}

/* =========================================================
   BOUTONS PRÉCÉDENT / SUIVANT
========================================================= */

.pagination a:first-child,
.pagination a:last-child,
.pagination .inactive:first-child,
.pagination .inactive:last-child {
    min-width: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* =========================================================
   BOUTONS DÉSACTIVÉS
========================================================= */

.pagination .inactive {
    color: #aeb5bc;
    background: #f4f5f6;
    border: 1px solid #e1e4e7;
    cursor: not-allowed;
}

/* =========================================================
   POINTS DE SUSPENSION
========================================================= */

.pagination .dots {
    min-width: 25px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #68727d;
    font-weight: 600;
}

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

.pagination a:focus-visible {
    outline: 3px solid rgba(248, 61, 0, 0.25);
    outline-offset: 2px;
}

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

@media (max-width: 600px) {

    .pagination {
        gap: 4px;
        margin: 20px 0;
        font-size: 13px;
    }

    .pagination a,
    .pagination .active,
    .pagination .inactive {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        border-radius: 7px;
    }

    /* Précédent / Suivant */

    .pagination a:first-child,
    .pagination a:last-child,
    .pagination .inactive:first-child,
    .pagination .inactive:last-child {
        padding-left: 10px;
        padding-right: 10px;
    }

    .pagination .dots {
        min-width: 20px;
        height: 34px;
    }
}

/* =========================================================
   PETITS ÉCRANS
========================================================= */

@media (max-width: 400px) {

    .pagination {
        gap: 3px;
        font-size: 12px;
    }

    .pagination a,
    .pagination .active,
    .pagination .inactive {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
    }

    .pagination a:first-child,
    .pagination a:last-child,
    .pagination .inactive:first-child,
    .pagination .inactive:last-child {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* =========================================================
   PAGINATION ARABE
   ========================================================= */

.pagination-ar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    direction: rtl;

    gap: 8px;

    margin: 30px auto;
    padding: 0;

    font-family: "Arial", "Tahoma", sans-serif;
}


/* =========================================================
   NUMEROS DE PAGE
   ========================================================= */

.pagination-ar .page-number {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #26394c;

    border: 1px solid #e1e5e9;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


/* =========================================================
   HOVER NUMERO
   ========================================================= */

.pagination-ar .page-number:hover {
    background: #f83d00;
    color: #ffffff;

    border-color: #f83d00;

    transform: translateY(-1px);
}


/* =========================================================
   PAGE ACTIVE
   ========================================================= */

.pagination-ar .page-number.active {
    background: #f83d00;
    color: #ffffff;

    border-color: #f83d00;

    cursor: default;
}


/* =========================================================
   PRECEDENT / SUIVANT
   ========================================================= */

.pagination-ar .page-nav {
    min-width: 76px;
    height: 40px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #ffffff;
    color: #26394c;

    border: 1px solid #e1e5e9;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* =========================================================
   HOVER PRECEDENT / SUIVANT
   ========================================================= */

.pagination-ar .page-nav:not(.disabled):hover {
    background: #f83d00;
    color: #ffffff;

    border-color: #f83d00;
}


/* =========================================================
   BOUTON DESACTIVE
   ========================================================= */

.pagination-ar .page-nav.disabled {
    background: #f5f6f7;
    color: #b5bbc1;

    border-color: #e8eaed;

    cursor: default;

    pointer-events: none;
}


/* =========================================================
   POINTS DE SUSPENSION
   ========================================================= */

.pagination-ar .page-dots {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #777f87;

    font-size: 15px;
    font-weight: 600;

    user-select: none;
}


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

@media (max-width: 600px) {

    .pagination-ar {
        gap: 5px;
        margin: 25px auto;
    }

    .pagination-ar .page-number {
        width: 36px;
        height: 36px;

        font-size: 13px;
    }

    .pagination-ar .page-nav {
        min-width: 65px;
        height: 36px;

        padding: 0 12px;

        font-size: 13px;
    }

    .pagination-ar .page-dots {
        width: 30px;
        height: 36px;

        font-size: 13px;
    }
}


/* =========================================================
   PETITS ECRANS
   ========================================================= */

@media (max-width: 400px) {

    .pagination-ar {
        gap: 4px;
    }

    .pagination-ar .page-number {
        width: 32px;
        height: 32px;

        font-size: 12px;
    }

    .pagination-ar .page-nav {
        min-width: 58px;
        height: 32px;

        padding: 0 9px;

        font-size: 12px;
    }

    .pagination-ar .page-dots {
        width: 24px;
        height: 32px;

        font-size: 12px;
    }
}

/* =========================================================
   CITY LINKS
========================================================= */

.city-section {

    border-top: 1px solid var(--border);

    padding-top: 32px;

    margin-top: 10px;

    margin-bottom: 35px;
}

/* Titre spécifique au bloc villes (ne touche pas .section-title global) */
.city-section .section-title {

    font-family: Montserrat, sans-serif;

    font-size: 23px;

    margin: 0 0 8px;
}

.section-intro {

    color: var(--text-muted);

    margin: 0 0 18px;

    font-size: 14px;
}

.city-grid {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.city-grid a {

    background: #fff;

    border: 1px solid var(--border);

    padding: 8px 13px;

    border-radius: 7px;

    font-size: 12px;

    color: var(--text-soft);

    transition: .2s;
}

.city-grid a:hover {

    color: var(--primary);

    border-color: var(--primary);
}

/* =========================================================
   SEO BLOCK
========================================================= */

.seo-section {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 30px;

    margin-top: 35px;
}

.seo-section h2 {

    font-family: Montserrat, sans-serif;

    font-size: 24px;

    margin: 0 0 12px;
}

.seo-section h3 {

    font-family: Montserrat, sans-serif;

    font-size: 18px;

    margin: 25px 0 8px;
}

.seo-section p {

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.75;

    margin: 0 0 12px;
}

.seo-section a {

    color: var(--primary);

    font-weight: 600;
}

/* =========================================================
   CTA PUBLISH
========================================================= */

.publish-section {

    margin-top: 35px;

    background:
        linear-gradient(
            135deg,
            #f7e8e2,
            #fff
        );

    border: 1px solid #ead0c6;

    border-radius: 14px;

    padding: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}

.publish-section h2 {

    font-family: Montserrat, sans-serif;

    margin: 0 0 5px;

    font-size: 22px;
}

.publish-section p {

    margin: 0;

    color: var(--text-muted);

    font-size: 13px;
}

/* =========================================================
   FOOTER (page annonces / catégorie)
========================================================= */

footer {

    background: #f0eee9;

    border-top: 1px solid var(--border);

    margin-top: auto;
}

.footer-inner {

    padding: 40px 0;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 35px;
}

.footer-brand {

    font-family: Montserrat, sans-serif;

    font-size: 22px;

    font-weight: 800;

    margin-bottom: 8px;
}

.footer-description {

    max-width: 400px;

    color: var(--text-muted);

    font-size: 12px;
}

.footer-column h3 {

    font-size: 13px;

    margin: 0 0 12px;
}

.footer-column a {

    display: block;

    color: var(--text-muted);

    font-size: 12px;

    margin-bottom: 7px;
}

.footer-column a:hover {

    color: var(--primary);
}

.footer-bottom {

    border-top: 1px solid var(--border);

    padding: 18px 0;

    color: var(--text-muted);

    font-size: 11px;

    display: flex;

    justify-content: space-between;
}

/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-nav {

    display: none;

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    height: 64px;

    background: #fff;

    border-top: 1px solid var(--border);

    z-index: 200;

    box-shadow: 0 -5px 20px rgba(0,0,0,.06);

    justify-content: space-around;

    align-items: center;
}

.mobile-nav a {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 2px;

    color: var(--text-muted);

    font-size: 9px;

    min-width: 55px;
}

.mobile-nav a.active {

    color: var(--primary);
}

.mobile-nav .post {

    width: 46px;

    height: 46px;

    margin-top: -20px;

    border-radius: 50%;

    background: var(--primary);

    color: #fff;

    box-shadow: 0 5px 15px rgba(173,44,0,.25);
}

/* =========================================================
   MOBILE FILTER BUTTON
========================================================= */

.mobile-filter {

    display: none;

    width: 100%;

    margin-bottom: 15px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .ads-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .main-nav {

        gap: 16px;
    }
}

@media (max-width: 850px) {

    .ads-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .main-nav,
    .header-actions .icon-btn,
    .header-actions .btn-outline {

        display: none;
    }

    .mobile-menu-btn {

        display: block;
    }
    
    [dir="rtl"] .mobile-menu-btn {
        position: absolute;
        left: 15px;
        right: auto;

        margin: 0 !important;

        z-index: 1000;
    }

    .content-layout {

        grid-template-columns: 1fr;
    }

    .sidebar {

        position:fixed; z-index:9990; display:none; top:0; left:0; right:0; width: calc(100%); 
     padding-top:20px;
       bottom:0; overflow-y:scroll; overflow-x:hidden;
      border:1px transparent; margin:0 auto; background:white;
      text-align:left;  padding:5px; 
       font-size:14px;
        flex-direction: column; 
    }
    
    
    .sidebar-close   { display:block; position:absolute;  top:25px; right:15px; }


    .mobile-filter {

        display: flex;
        width: 50%;

        justify-content: center;
    }

    .search-box {

        grid-template-columns: 1fr 1fr;
    }

    .category-title {

        font-size: 28px;
    }

    .publish-section {

        flex-direction: column;

        align-items: flex-start;
    }

    .footer-inner {

        grid-template-columns: 1fr 1fr;
    }

    .mobile-nav {

        display: flex;
    }

    body {

        padding-bottom: 64px;
    }
}

@media (max-width: 600px) {

    .container {

        padding-left: 16px;

        padding-right: 16px;
    }

    .page {

        padding-top: 18px;
    }

    .header-inner {

        min-height: 62px;
    }

    .logo img {

        max-height: 36px;
    }

    .category-hero {

        display: block;
    }

    .category-title {

        font-size: 25px;
    }

    .category-description {

        font-size: 13px;
    }

    .result-count {

        display: block;

        margin-top: 7px;
    }

    .search-box {

        grid-template-columns: 1fr;

        padding: 8px;
    }

    .ads-grid {

        grid-template-columns: 1fr;

        gap: 14px;
    }

    .ad-body {

        padding: 11px;
    }

    .ad-price {

        font-size: 16px;
    }

    .ad-title {

        font-size: 12px;

        margin-bottom: 10px;
    }

    .ad-meta {

        font-size: 9px;
    }

    .meta-row {

        gap: 3px 8px;
    }

    .meta-item .material-symbols-outlined {

        font-size: 13px;
    }

    .seo-section {

        padding: 20px;
    }

    .seo-section h2 {

        font-size: 20px;
    }

    .seo-section h3 {

        font-size: 17px;
    }

    .publish-section {

        padding: 20px;
    }

    .footer-inner {

        grid-template-columns: 1fr;

        gap: 25px;
    }

    .footer-bottom {

        display: block;

        line-height: 1.8;
    }
}



/* =========================================================
   CARROUSEL RUBRIQUES
   ========================================================= */

.main-carousel-rub {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 8px 42px;
    margin: 10px 0;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative;
    
}

.carousel-rub-cell {
    width: 10%;
    height: 72px;
    margin: 2px 4px;
    padding-bottom: 4px;

    border-radius: 12px;

    font-size: 16px;
    text-align: center;
    line-height: 15px;

    box-sizing: border-box;
}

.carousel-rub-cell img {
    width: 38px;
    height: 38px;

    margin-top: 1px;

    border-radius: 12px;

    object-fit: contain;

    transition: opacity .2s ease;
}

.carousel-rub-cell img:hover {
    opacity: .6;
}

.carousel-rub-cell a {
    display: block;
    text-decoration: none;
    color: #3d4d5a;
}

.carousel-rub-cell a:hover {
    opacity: .7;
}

.carousel-rub-cell div {
    margin-top: 3px;
}

#big-carousel-rub {
    width: 10%;
}

#big-carousel-rub a {
    font-size: 14px;
    font-weight: bold;
    color: #3d4d5a;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1100px) {

    .carousel-rub-cell {
        width: 14.28%;
    }

    #big-carousel-rub {
        width: 14.28%;
    }

}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 768px) {

    .main-carousel-rub {
        padding-left: 38px;
        padding-right: 38px;
    }

    .carousel-rub-cell {
        width: 20%;
        height: 68px;
    }

    #big-carousel-rub {
        width: 20%;
    }

}


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

@media (max-width: 600px) {

    .main-carousel-rub {
        padding-left: 34px;
        padding-right: 34px;
        border-radius: 0;
    }

    .carousel-rub-cell {
        width: 25%;
        height: 66px;
        margin-left: 8px;
        margin-right: 8px;
    }

    #big-carousel-rub {
        width: 25%;
    }

    .carousel-rub-cell img {
        width: 34px;
        height: 34px;
    }

    #big-carousel-rub a {
        font-size: 12px;
    }


}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .main-carousel-rub {
        padding-left: 32px;
        padding-right: 32px;
    }

    .carousel-rub-cell {
        width: 33.333%;
        min-width: 33.333%;
        height: 64px;
    }

    #big-carousel-rub {
        width: 33.333%;
        min-width: 33.333%;
    }

    .carousel-rub-cell img {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .carousel-rub-cell div {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .carousel-rub-prev,
    .carousel-rub-next {
        width: 28px;
        height: 28px;
    }

    .carousel-rub-prev .material-symbols-outlined,
    .carousel-rub-next .material-symbols-outlined {
        font-size: 18px;
    }

}


/* --------------------------------------------------------------------------------------------- */
/*  -------------  ANCIEN CARROUSEL - CONTENEURS ------------------------------------------------ */
/* --------------------------------------------------------------------------------------------- */

.main-carousel {

    width: 95%;

    margin: 0 auto;

    overflow: hidden;
}

#big-carousel {

    width: 16%;
}


/* =========================================================
   HEADER PROFESSIONNELS
   (Thème "Maghreb Elite" : navy / heritage-gold / emerald)
========================================================= */
.pros-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin: 0 0 24px; padding: 0;
    background: transparent; border: 0; box-shadow: none;
}

.pros-header h2 {
    margin: 0; text-align: left;
}

.pros-header-content {
    max-width: 75%;
}

.pros-header-content h2 {
    margin: 0 0 4px; text-align: left; font-family: "Montserrat", sans-serif;
    font-size: 24px; line-height: 32px; font-weight: 600; color: #081c2e;
}

.pros-header-content p {
    margin: 0; font-family: "Inter", sans-serif; font-size: 16px;
    line-height: 24px; color: #44474c;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* BOUTON "Voir tout" */

.btn-all {
    display: inline-flex; align-items: center; gap: 4px;
    padding-bottom: 4px; background: none; border: 0;
    color: #081c2e; font-family: "Inter", sans-serif;
    font-size: 14px; font-weight: 600; letter-spacing: .05em;
    text-decoration: none; white-space: nowrap; transition: color .2s ease;
}

.btn-all:hover {
    background: none; color: #C5A028; transform: none;
}

.btn-all span {
    font-size: 16px;
    transition: transform .2s ease;
}

.btn-all:hover span {
    transform: translateX(4px);
}


/* =========================================================
   CAROUSEL PROFESSIONNELS
========================================================= */
.pros-slider {
    width: 100%; overflow: hidden; padding-bottom: 8px;
}


/* =========================================================
   CARTE PROFESSIONNEL
========================================================= */
.prof-card {
    width: 340px; min-height: 210px; margin-right: 16px;
    padding: 24px; background: #ffffff; border: 1px solid rgba(217,226,237,.3);
    border-radius: 12px; box-shadow: 0px 10px 40px rgba(8,28,46,.05);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
    box-sizing: border-box;
}

.prof-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 15px 45px rgba(8,28,46,.08);
}


/* =========================================================
   PARTIE LOGO + INFORMATIONS
========================================================= */
.prof-main {
    display: flex; align-items: flex-start; gap: 16px;
}


/* =========================================================
   LOGO
========================================================= */
.pro-logo-wrapper {
    position: relative; flex: 0 0 64px; width: 64px;
}

.pro-logo {
    width: 64px; height: 64px; display: flex;
    align-items: center; justify-content: center; background: #f1f4f7;
    border: 2px solid #ebeef1; border-radius: 9999px; overflow: hidden;
}

.pro-logo img {
    max-width: 56px; max-height: 56px;
    width: auto; height: auto; object-fit: contain;
}


/* BADGE PRO */

.pro-badge {
    position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    z-index: 2; padding: 2px 8px; background: #081c2e; color: #ffffff;
    border-radius: 9999px; border: 1px solid #ffffff;
    font-size: 10px; font-weight: 700; letter-spacing: .05em;
    white-space: nowrap;
}


/* =========================================================
   CONTENU
========================================================= */
.pro-content {
    flex: 1; min-width: 0; margin-top: 2px;
}


/* NOM + VERIFICATION */

.pro-title-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin-bottom: 6px;
}

.pro-list-title {
    margin: 0; font-family: "Montserrat", sans-serif;
    font-size: 18px; line-height: 26px; font-weight: 600; color: #081c2e;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


/* VERIFIE */
.pro-list-verifie {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    background: rgba(6, 78, 59, .1);
    color: #064E3B;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}


/* TYPE */

.pro-list-type {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e5e8eb;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #081c2e;
    line-height: 1.4;
}


/* VILLE */

.pro-list-ville {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #44474c;
}

.pro-icon {
    font-size: 14px;
    line-height: 1;
}


/* DESCRIPTION */

.pro-list-description {
    font-size: 14px;
    text-align: left;
    line-height: 22px;
    color: #44474c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   CONTACT
========================================================= */
.pro-contact {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px;
    margin-top: 16px; padding-top: 12px; border-top: 1px solid #D9E2ED; font-size: 13px; color: #44474c;
}

.pro-contact-item {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}

.pro-site {
    display: inline-flex; align-items: center; gap: 4px;
    color: #081c2e; font-weight: 600; text-decoration: none; transition: color .2s ease;
}

.pro-site:hover {
    color: #C5A028; text-decoration: none;
}


.pros-header-ar {
    direction: ltr; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; margin: 0px 0px 10px; padding: 20px; border: 1px solid #e9edf2; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.05); box-sizing:border-box; background:#ffffff;
}

/* Contenu arabe à DROITE */
.pros-header-ar .pros-header-content {
    order: 2; flex: 1; direction: rtl; text-align: right;
}

/* Bouton à GAUCHE */
.pros-header-ar .btn-all {
    order: 1; direction: rtl; white-space: nowrap; flex-shrink: 0;
}

.pros-header-ar h2 {
    margin: 0; text-align: right; direction: rtl;
}

.pros-header-ar p {
    margin: 6px 0 0; text-align: right; direction: rtl;
}


.annonces-arabe {
    direction: rtl; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
}

.annonces-arabe h1,
.annonces-arabe h2 {
    margin: 0; text-align: right; flex: 1;
}


.annonces-arabe .btn-all {
    display: inline-block; white-space: nowrap; text-align: center; text-decoration: none;
}

.description-ar {
    text-align: center; margin: 15px 0 0;
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 600px) {

    .pros-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .pros-header-ar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .btn-all {
        width: 100%;
        justify-content: center;
    }

    .prof-card {
        width: 310px;
        padding: 20px;
    }

    .prof-main {
        gap: 12px;
    }

    .pro-logo-wrapper,
    .pro-logo {
        width: 56px;
    }

    .pro-logo {
        height: 56px;
    }

    .pro-logo img {
        max-width: 48px;
        max-height: 48px;
    }

    .pro-list-title {
        font-size: 15px;
    }

}


/* =========================================================
   OBIEN - BLOC ESTIMATION VOITURE
   ========================================================= */

.obien-estimation-card {
    width: 100%;
    margin: 25px auto;
    box-sizing: border-box;
}

.obien-estimation-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;

    width: 100%;
    min-height: 125px;
    padding: 24px 28px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #26394c 0%,
            #30485f 100%
        );

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(38, 57, 76, 0.16);
}


/* Effet décoratif */

.obien-estimation-content::before {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    top: -90px;

    border-radius: 50%;

    border: 35px solid rgba(255,255,255,.04);
}

.obien-estimation-content::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: 80px;
    bottom: -70px;

    border-radius: 50%;

    background: rgba(255,255,255,.035);
}


/* =========================================================
   ICÔNE
   ========================================================= */

.obien-estimation-icon {
    position: relative;
    z-index: 2;

    width: 62px;
    height: 62px;

    min-width: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: rgba(255,255,255,.10);

    border: 1px solid rgba(255,255,255,.13);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08);
}

.obien-estimation-icon span {
    font-size: 28px;
    line-height: 1;
}


/* =========================================================
   TEXTE
   ========================================================= */

.obien-estimation-text {
    position: relative;
    z-index: 2;

    flex: 1;
    min-width: 0;
}

.obien-estimation-label {
    display: block;

    margin-bottom: 5px;

    color: rgba(255,255,255,.62);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.obien-estimation-text h2 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 22px;
    line-height: 1.25;

    font-weight: 700;
}

.obien-estimation-text p {
    margin: 0;

    max-width: 650px;

    color: rgba(255,255,255,.78);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   BOUTON
   ========================================================= */

.obien-estimation-action {
    position: relative;
    z-index: 3;

    flex-shrink: 0;
}

.obien-estimation-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 46px;

    padding: 0 20px;

    box-sizing: border-box;

    border-radius: 10px;

    background: #ffffff;

    color: #26394c;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    box-shadow:
        0 5px 15px rgba(0,0,0,.12);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.obien-estimation-btn span {
    font-size: 18px;
    line-height: 1;

    transition: transform .2s ease;
}

.obien-estimation-btn:hover {
    color: #26394c;

    background: #f5f7f9;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.16);
}

.obien-estimation-btn:hover span {
    transform: translateX(4px);
}


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

@media (max-width: 700px) {

    .obien-estimation-card {
        margin: 18px 0;
    }

    .obien-estimation-content {
        align-items: flex-start;

        gap: 15px;

        padding: 20px;

        border-radius: 14px;
    }

    .obien-estimation-icon {
        width: 48px;
        height: 48px;

        min-width: 48px;

        border-radius: 12px;
    }

    .obien-estimation-icon span {
        font-size: 23px;
    }

    .obien-estimation-text h2 {
        font-size: 19px;
    }

    .obien-estimation-text p {
        font-size: 12px;
        line-height: 1.55;
    }

    .obien-estimation-action {
        position: absolute;

        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .obien-estimation-btn {
        width: 100%;
    }

    .obien-estimation-text {
        padding-bottom: 60px;
    }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 400px) {

    .obien-estimation-content {
        padding: 17px;
    }

    .obien-estimation-icon {
        width: 43px;
        height: 43px;

        min-width: 43px;
    }

    .obien-estimation-icon span {
        font-size: 20px;
    }

    .obien-estimation-text h2 {
        font-size: 17px;
    }

    .obien-estimation-label {
        font-size: 9px;
    }

    .obien-estimation-action {
        left: 17px;
        right: 17px;
        bottom: 17px;
    }
}


/* =========================================================
   SEO INTRODUCTION
   ========================================================= */
.seo-introduction {
    margin-left:10px;
}

.seo-suite {
    display: none;  margin-top:0px; margin-bottom:6px;
}

.seo-introduction.ouverte .seo-suite {
    display: block;
}

.btn-lire-suite { display:inline; cursor:pointer; text-decoration:underline;}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 14px;

    color: var(--text-muted);
    margin-top: 25px;
    margin-bottom: 22px;
}

.breadcrumb a:hover {

    color: var(--primary);
}


/* =========================================================
   MOBILE MENU (panneau plein écran)
========================================================= */

.mobile-menu {

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    background: #ffffff;

    z-index: 999999;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    opacity: 0;

    visibility: hidden;

    transform: translateX(100%);

    transition:
        transform .30s ease,
        opacity .25s ease,
        visibility .30s ease;

}


/* MENU OUVERT */

.mobile-menu.active {

    opacity: 1;

    visibility: visible;

    transform: translateX(0);

}



/* =========================================================
   HEADER DU MENU
========================================================= */

.mobile-menu-header {

    width: 100%;

    min-height: 70px;

    padding: 0 20px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #eeeeee;

    flex-shrink: 0;

}


.mobile-menu-logo {

    display: flex;

    align-items: center;

}


.mobile-menu-logo img {

    display: block;

    max-width: 130px;

    max-height: 45px;

    width: auto;

    height: auto;

}


.mobile-menu-close {

    width: 44px;
    height: 44px;

    border: 0;

    padding: 0;

    border-radius: 50%;

    background: #f4f5f6;

    color: #263238;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

}


.mobile-menu-close
.material-symbols-outlined {

    font-size: 25px;

}



/* =========================================================
   MOBILE NAV (liens du panneau)
========================================================= */

.mobile-menu-nav {

    width: 100%;

    padding: 20px;
    padding-bottom: 30px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.mobile-menu-nav a {

    width: 100%;

    min-height: 56px;

    padding: 0 16px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 15px;

    color: #263238;

    text-decoration: none;

    font-size: 16px;

    font-weight: 600;

    border-radius: 10px;

    transition: background .2s ease;

}


.mobile-menu-nav a:hover {

    background: #f5f6f7;

}


.mobile-menu-nav
.material-symbols-outlined {

    width: 24px;

    font-size: 23px;

    color: #607d8b;

}



/* =========================================================
   SEPARATEUR
========================================================= */

.mobile-menu-separator,
.mobile-menu-divider {

    width: 100%;

    height: 1px;

    border: 0;

    background: #eeeeee;

    margin: 12px 0;

}



/* =========================================================
   BOUTON PUBLIER (panneau menu)
========================================================= */

.mobile-menu-nav
.mobile-menu-publish {

    justify-content: center;

    margin-bottom: 5px;

    background: #f83d00;

    color: #ffffff;

    font-weight: 700;

}


.mobile-menu-nav
.mobile-menu-publish:hover {

    background: #e93600;

}


.mobile-menu-nav
.mobile-menu-publish
.material-symbols-outlined {

    color: #ffffff;

}


/* =========================================================
   MOBILE (comportement header + panneau)
========================================================= */

@media (max-width: 768px) {


    /* Afficher le bouton */

    .mobile-menu-btn {

        display: flex;

    }


    /* Cacher navigation desktop */

    .main-nav {

        display: none !important;

    }


    /* Recherche */

    .header-search {

        display: none;

    }


    /* Cacher les boutons desktop */

    .header-actions
    .icon-btn,
    .header-actions
    .btn {

        display: none;

    }


    /* Garder uniquement le bouton menu */

    .header-actions
    .mobile-menu-btn {

        display: flex;

    }


    /* Header */

    .header-inner {

        width: 100%;

    }

}



/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 769px) {

    .mobile-menu {

        display: none !important;

    }

    .mobile-menu-btn {

        display: none !important;

    }

}


/* =========================================================
   LIENS SERVICES
   BLOG + OUTILS GRATUITS
========================================================= */

.mobile-menu-service {

    min-height: 52px !important;

    background: #f7f9fb;

    border: 1px solid #edf0f2;

    border-radius: 10px !important;

    margin-bottom: 6px;

    color: #34495e !important;

}


.mobile-menu-service
.material-symbols-outlined {

    color: #48647a !important;

}


/* petite flèche à droite */

.mobile-menu-arrow {

    margin-left: auto;

    font-family:
        'Material Symbols Outlined';

    font-size: 20px;

    color: #9aa7b1;

}



/* =========================================================
   PUBLIER UNE ANNONCE (panneau menu, variante pleine largeur)
========================================================= */

.mobile-menu-publish {

    min-height: 54px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center;

    background: #f83d00 !important;

    color: #ffffff !important;

    border-radius: 10px !important;

    font-weight: 700 !important;

}


.mobile-menu-publish
.material-symbols-outlined {

    color: #ffffff !important;

}



/* =========================================================
   CONNEXION
========================================================= */

.mobile-menu-login {

    min-height: 52px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center;

    background: #eaf2fb !important;

    color: #2563a6 !important;

    border: 1px solid #cbdff3;

    border-radius: 10px !important;

    font-weight: 700 !important;

    margin-top: 8px;

}


.mobile-menu-login
.material-symbols-outlined {

    color: #2563a6 !important;

}


/* =========================================================
   OBIEN - PAGE PUBLICATION D'ANNONCE
========================================================= */

.obien-post-page {

    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    padding: 24px 24px 70px;

    box-sizing: border-box;

    color: var(--obien-text);

    font-family:
        "Manrope",
        Arial,
        sans-serif;

}


/* =========================================================
   BREADCRUMB (page publication)
========================================================= */

.obien-post-breadcrumb {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 25px;

    color: #7b8794;

    font-size: 13px;

}

.obien-post-breadcrumb a {

    color: #7b8794;

    text-decoration: none;

}

.obien-post-breadcrumb a:hover {

    color: var(--obien-orange);

}

.obien-post-breadcrumb .material-symbols-outlined {

    font-size: 17px;

}


/* =========================================================
   HERO (page publication)
========================================================= */

.obien-post-hero {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 28px;

    padding: 10px 0;

}

.obien-post-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    border-radius: 999px;

    background: #fff1eb;

    color: var(--obien-orange);

    font-size: 12px;

    font-weight: 700;

}

.obien-post-badge .material-symbols-outlined {

    font-size: 17px;

}

.obien-post-hero h1 {

    margin: 14px 0 7px;

    color: var(--obien-navy);

    font-size: 36px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.8px;

}

.obien-post-hero p {

    max-width: 680px;

    margin: 0;

    color: var(--obien-muted);

    font-size: 16px;

    line-height: 1.7;

}


/* =========================================================
   ADVICE
========================================================= */

.obien-advice-card {

    margin-bottom: 30px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--obien-border);

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(38,57,76,.045);

}

.obien-advice-header {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 20px;

}

.obien-advice-icon {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #fff1eb;

    color: var(--obien-orange);

}

.obien-advice-icon .material-symbols-outlined {

    font-size: 23px;

}

.obien-advice-header h2 {

    margin: 0 0 4px;

    color: var(--obien-navy);

    font-size: 16px;

    font-weight: 800;

}

.obien-advice-header p {

    margin: 0;

    color: var(--obien-muted);

    font-size: 13px;

    line-height: 1.6;

}

.obien-advice-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}

.obien-advice-item {

    display: flex;

    gap: 10px;

    padding: 14px;

    background: #f8fafc;

    border-radius: 12px;

}

.obien-advice-number {

    color: var(--obien-orange);

    font-size: 12px;

    font-weight: 800;

}

.obien-advice-item strong {

    display: block;

    margin-bottom: 4px;

    color: var(--obien-navy);

    font-size: 12px;

}

.obien-advice-item p {

    margin: 0;

    color: var(--obien-muted);

    font-size: 11px;

    line-height: 1.55;

}


/* =========================================================
   STEPS
========================================================= */

.obien-steps {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 30px;

}

.obien-step {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #98a2b3;

    font-size: 12px;

    font-weight: 700;

}

.obien-step-circle {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid #d0d5dd;

    border-radius: 50%;

    background: #ffffff;

}

.obien-step.active {

    color: var(--obien-orange);

}

.obien-step.active .obien-step-circle {

    border-color: var(--obien-orange);

    background: #fff1eb;

    color: var(--obien-orange);

    box-shadow:
        0 0 0 4px rgba(248,61,0,.08);

}

.obien-step.completed {

    color: var(--obien-orange);

}

.obien-step.completed .obien-step-circle {

    border-color: var(--obien-orange);

    background: var(--obien-orange);

    color: #ffffff;

}

.obien-step-line {

    width: 70px;

    height: 1px;

    margin: 0 12px;

    background: #e4e7ec;

}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.obien-post-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    align-items: start;

    gap: 25px;

}


/* =========================================================
   FORM CARD
========================================================= */

.obien-post-form-card {

    min-width: 0;

    background: #ffffff;

    border: 1px solid var(--obien-border);

    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(38,57,76,.055);

    overflow: hidden;

}

.obien-form-section {

    padding: 30px;

}

.obien-section-divider {

    height: 1px;

    background: #eef0f3;

}

.obien-section-heading {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 25px;

}

.obien-section-icon {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #fff1eb;

    color: var(--obien-orange);

}

.obien-section-icon .material-symbols-outlined {

    font-size: 22px;

}

.obien-section-number {

    display: block;

    margin-bottom: 3px;

    color: var(--obien-orange);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .08em;

}

.obien-section-heading h2 {

    margin: 0 0 4px;

    color: var(--obien-navy);

    font-size: 20px;

    font-weight: 800;

}

.obien-section-heading p {

    margin: 0;

    color: var(--obien-muted);

    font-size: 13px;

    line-height: 1.55;

}


/* =========================================================
   CATEGORY
========================================================= */

.obien-category-wrapper {

    width: 100%;

}

.obien-category-wrapper label {

    cursor: pointer;

}


/*
 * Ces règles permettent également de donner
 * un aspect premium aux radios générés par votre
 * ancien système option_all_categories_ann.
 */

.obien-category-wrapper input[type="radio"] {

    accent-color: var(--obien-orange);

}


/* =========================================================
   FIELDS
========================================================= */

.obien-field {

    margin-bottom: 20px;

}

.obien-field label {

    display: block;

    margin-bottom: 7px;

    color: var(--obien-navy);

    font-size: 13px;

    font-weight: 700;

}

.obien-field label small {

    margin-left: 5px;

    color: #98a2b3;

    font-size: 10px;

    font-weight: 500;

}

.required {

    color: var(--obien-orange);

}

.obien-fields-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

}

.obien-input-icon {

    position: relative;

    display: flex;

    align-items: center;

}

.obien-input-icon >
.material-symbols-outlined {

    position: absolute;

    left: 14px;

    color: #98a2b3;

    font-size: 20px;

    pointer-events: none;

}

.obien-input-icon input,
.obien-input-icon select {

    width: 100%;

    height: 50px;

    padding: 0 44px 0 44px;

    border: 1px solid var(--obien-border-dark);

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: var(--obien-text);

    font-family: inherit;

    font-size: 13px;

    box-sizing: border-box;

    transition:
        border-color .2s,
        box-shadow .2s;

}

.obien-input-icon select {

    appearance: none;

    cursor: pointer;

}

.obien-input-icon input:focus,
.obien-input-icon select:focus,
.obien-field textarea:focus {

    border-color: var(--obien-orange);

    box-shadow:
        0 0 0 3px rgba(248,61,0,.09);

}

.obien-input-icon input::placeholder {

    color: #98a2b3;

}

.obien-input-suffix {

    position: absolute;

    right: 14px;

    color: #98a2b3;

    font-size: 12px;

    font-weight: 700;

    pointer-events: none;

}

.obien-label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.obien-label-row span {

    color: #98a2b3;

    font-size: 10px;

}

.obien-field textarea {

    width: 100%;

    min-height: 145px;

    padding: 14px;

    border: 1px solid var(--obien-border-dark);

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: var(--obien-text);

    font-family: inherit;

    font-size: 13px;

    line-height: 1.7;

    resize: vertical;

    box-sizing: border-box;

    transition:
        border-color .2s,
        box-shadow .2s;

}

.obien-field textarea::placeholder {

    color: #98a2b3;

}


/* =========================================================
   PHOTOS
========================================================= */

.obien-photo-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;

}

.obien-photo-slot {

    position: relative;

    min-width: 0;

}

.obien-photo-slot canvas {

    display: block;

    width: 100%;

    height: auto;

    aspect-ratio: 1 / 1;

    border: 1px dashed #cbd5e1;

    border-radius: 13px;

    background: #f8fafc;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color .2s,
        transform .2s,
        box-shadow .2s;

}

.obien-photo-slot canvas:hover {

    border-color: var(--obien-orange);

    box-shadow:
        0 5px 15px rgba(248,61,0,.08);

    transform: translateY(-2px);

}

.obien-photo-slot.primary-slot canvas {

    border-color: #ffb79d;

    background: #fff8f5;

}

.obien-photo-label {

    margin-top: 6px;

    text-align: center;

    color: #7b8794;

    font-size: 10px;

    font-weight: 600;

}

.obien-upload-info {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 14px;

    padding: 11px 13px;

    background: #f8fafc;

    border-radius: 10px;

    color: #667085;

    font-size: 11px;

    line-height: 1.5;

}

.obien-upload-info .material-symbols-outlined {

    color: var(--obien-orange);

    font-size: 18px;

}


/* =========================================================
   RIGHTS
========================================================= */

.obien-rights-check {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 17px;

    cursor: pointer;

}

.obien-rights-check input {

    width: 17px;

    height: 17px;

    flex: 0 0 17px;

    margin-top: 2px;

    accent-color: var(--obien-orange);

}

.obien-rights-check span {

    color: #7b8794;

    font-size: 10px;

    line-height: 1.6;

}


/* =========================================================
   LOCATION
========================================================= */

.obien-location-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;

}

.obien-location-actions > span {

    color: #98a2b3;

    font-size: 11px;

}

.obien-gps-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding: 0 15px;

    border: 1px solid var(--obien-border-dark);

    border-radius: 10px;

    background: #ffffff;

    color: var(--obien-navy);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .2s,
        color .2s,
        background .2s;

}

.obien-gps-button:hover {

    border-color: var(--obien-orange);

    color: var(--obien-orange);

    background: #fff8f5;

}

.obien-gps-button .material-symbols-outlined {

    font-size: 19px;

}

.obien-map {

    width: 100%;

    height: 330px;

    border: 1px solid var(--obien-border);

    border-radius: 14px;

    overflow: hidden;

}


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

.obien-form-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 22px 30px;

    border-top: 1px solid #eef0f3;

    background: #fcfcfd;

}

.obien-security-note {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #98a2b3;

    font-size: 10px;

}

.obien-security-note .material-symbols-outlined {

    font-size: 17px;

}

.obien-publish-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 50px;

    padding: 0 27px;

    border: 0;

    border-radius: 11px;

    background: var(--obien-orange);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(248,61,0,.20);

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;

}

.obien-publish-button:hover {

    background: var(--obien-orange-dark);

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(248,61,0,.25);

}

.obien-publish-button:active {

    transform: translateY(0);

}

.obien-publish-button .material-symbols-outlined {

    font-size: 20px;

}


/* =========================================================
   PREVIEW
========================================================= */

.obien-preview-column {

    position: sticky;

    top: 20px;

}

.obien-preview-card {

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--obien-border);

    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(38,57,76,.06);

}

.obien-preview-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #eef0f3;

}

.obien-preview-header > div > span {

    color: var(--obien-orange);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .1em;

}

.obien-preview-header h2 {

    margin: 3px 0 0;

    color: var(--obien-navy);

    font-size: 17px;

    font-weight: 800;

}

.obien-preview-header > .material-symbols-outlined {

    color: #98a2b3;

    font-size: 20px;

}

.obien-preview-image {

    height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2f6
        );

    overflow: hidden;

}

#previewImagePlaceholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color: #98a2b3;

    font-size: 11px;

}

#previewImagePlaceholder .material-symbols-outlined {

    font-size: 42px;

    color: #c5cbd3;

}

.obien-preview-content {

    padding: 19px 20px;

}

.obien-preview-category {

    display: inline-flex;

    padding: 5px 9px;

    border-radius: 6px;

    background: #fff1eb;

    color: var(--obien-orange);

    font-size: 9px;

    font-weight: 800;

}

.obien-preview-content h3 {

    margin: 10px 0 6px;

    color: var(--obien-navy);

    font-size: 18px;

    line-height: 1.35;

    font-weight: 800;

}

.obien-preview-price {

    margin-bottom: 10px;

    color: var(--obien-orange);

    font-size: 19px;

    font-weight: 800;

}

.obien-preview-location {

    display: flex;

    align-items: center;

    gap: 5px;

    color: #7b8794;

    font-size: 11px;

}

.obien-preview-location .material-symbols-outlined {

    color: var(--obien-orange);

    font-size: 17px;

}

.obien-preview-divider {

    height: 1px;

    margin: 15px 0;

    background: #eef0f3;

}

.obien-preview-content p {

    display: -webkit-box;

    margin: 0;

    color: #667085;

    font-size: 11px;

    line-height: 1.65;

    -webkit-line-clamp: 5;

    -webkit-box-orient: vertical;

    overflow: hidden;

}

.obien-preview-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 13px 20px;

    border-top: 1px solid #eef0f3;

    background: #fafbfc;

    color: #98a2b3;

    font-size: 10px;

}

.obien-preview-footer > div {

    display: flex;

    align-items: center;

    gap: 5px;

}

.obien-preview-footer .material-symbols-outlined {

    font-size: 17px;

}


/* =========================================================
   TIP
========================================================= */

.obien-preview-tips {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 15px;

    padding: 15px;

    border: 1px solid #ffe0d4;

    border-radius: 13px;

    background: #fffaf8;

}

.obien-tip-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    flex: 0 0 32px;

    border-radius: 9px;

    background: #fff1eb;

    color: var(--obien-orange);

}

.obien-tip-icon .material-symbols-outlined {

    font-size: 18px;

}

.obien-preview-tips strong {

    display: block;

    margin-bottom: 3px;

    color: var(--obien-navy);

    font-size: 11px;

}

.obien-preview-tips p {

    margin: 0;

    color: #7b8794;

    font-size: 10px;

    line-height: 1.55;

}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1050px) {

    .obien-post-layout {

        grid-template-columns:
            minmax(0, 1fr);

    }

    .obien-preview-column {

        position: static;

        display: none;

    }

    .obien-advice-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .obien-post-page {

        padding:
            18px 14px 45px;

    }

    .obien-post-hero h1 {

        font-size: 29px;

    }

    .obien-post-hero p {

        font-size: 14px;

    }

    .obien-advice-card {

        padding: 17px;

    }

    .obien-advice-grid {

        grid-template-columns:
            1fr;

    }

    .obien-steps {

        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 5px;

    }

    .obien-step {

        flex: 0 0 auto;

    }

    .obien-step-line {

        width: 35px;

    }

    .obien-form-section {

        padding: 23px 18px;

    }

    .obien-fields-grid {

        grid-template-columns:
            1fr;

        gap: 0;

    }

    .obien-photo-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

    .obien-form-actions {

        padding: 18px;

    }

}


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

@media (max-width: 480px) {

    .obien-post-page {

        padding:
            12px 9px 35px;

    }

    .obien-post-breadcrumb {

        margin-bottom: 15px;

        font-size: 11px;

    }

    .obien-post-hero {

        margin-bottom: 20px;

    }

    .obien-post-badge {

        font-size: 10px;

    }

    .obien-post-hero h1 {

        margin-top: 11px;

        font-size: 25px;

        letter-spacing: -.4px;

    }

    .obien-post-hero p {

        font-size: 13px;

        line-height: 1.6;

    }

    .obien-advice-card {

        border-radius: 14px;

    }

    .obien-advice-header h2 {

        font-size: 14px;

    }

    .obien-advice-header p {

        font-size: 11px;

    }

    .obien-steps {

        margin-bottom: 20px;

    }

    .obien-step span {

        display: none;

    }

    .obien-step-line {

        width: 25px;

        margin: 0 7px;

    }

    .obien-step-circle {

        width: 31px;

        height: 31px;

        font-size: 11px;

    }

    .obien-post-form-card {

        border-radius: 15px;

    }

    .obien-section-heading {

        gap: 10px;

    }

    .obien-section-icon {

        width: 38px;

        height: 38px;

        flex-basis: 38px;

    }

    .obien-section-heading h2 {

        font-size: 17px;

    }

    .obien-section-heading p {

        font-size: 11px;

    }

    .obien-photo-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }

    .obien-location-actions {

        align-items: flex-start;

        flex-direction: column;

    }

    .obien-location-actions > span {

        line-height: 1.5;

    }

    .obien-map {

        height: 270px;

    }

    .obien-form-actions {

        align-items: stretch;

        flex-direction: column;

    }

    .obien-security-note {

        justify-content: center;

    }

    .obien-publish-button {

        width: 100%;

    }

}


/* =========================================================
   OBIEN - VRAIES ETAPES DU FORMULAIRE
========================================================= */

.obien-step-section {
    display: none;
    animation: obienStepFade .25s ease;
}

.obien-step-section.active {
    display: block;
}

@keyframes obienStepFade {

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

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

}


/* =========================================================
   NAVIGATION DES ETAPES
========================================================= */

.obien-step-navigation {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 20px 30px;

    border-top: 1px solid #eef0f3;

    background: #fcfcfd;

}


/* Bouton précédent */

.obien-step-prev {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 46px;

    padding: 0 20px;

    border: 1px solid var(--obien-border-dark);

    border-radius: 10px;

    background: #ffffff;

    color: var(--obien-navy);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.obien-step-prev:hover {

    border-color: var(--obien-orange);

    color: var(--obien-orange);

    background: #fff8f5;

}


/* Bouton suivant */

.obien-step-next {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 46px;

    padding: 0 23px;

    border: 0;

    border-radius: 10px;

    background: var(--obien-orange);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(248,61,0,.18);

    transition: .2s;
}

.obien-step-next:hover {

    background: var(--obien-orange-dark);

    transform: translateY(-1px);

}


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

@media (max-width: 768px) {

    .obien-step-navigation {

        padding: 17px 18px;

    }

    .obien-step-prev,
    .obien-step-next {

        flex: 1;

    }

}


@media (max-width: 480px) {

    .obien-step-navigation {

        gap: 8px;

    }

    .obien-step-prev,
    .obien-step-next {

        min-height: 44px;

        padding: 0 12px;

        font-size: 12px;

    }

}

/*=====================================================
POP-UP LOCALISATION
======================================================= */

.location-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.location-popup-content {
    position: relative;

    width: 100%;
    max-width: 430px;

    background: #fff;
    border-radius: 18px;

    padding: 30px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0,0,0,.20);
}

.location-close {
    position: absolute;
    top: 12px;
    right: 15px;

    border: 0;
    background: transparent;

    font-size: 28px;
    cursor: pointer;

    color: #667085;
}

.location-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff1eb;
    color: #f83d00;
}

.location-icon .material-symbols-outlined {
    font-size: 34px;
}

.location-popup-content h3 {
    margin: 0 0 10px;

    font-size: 22px;
    color: #26394c;
}

.location-popup-content p {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 22px;
}

.location-main-btn {
    width: 100%;

    border: 0;
    border-radius: 10px;

    padding: 13px 18px;

    background: #f83d00;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.location-main-btn:hover {
    background: #d93200;
}

.location-city-link {
    display: block;

    margin-top: 15px;

    color: #26394c;
    text-decoration: none;
}

#locationMessage {
    margin-top: 15px;
    font-size: 14px;
}


/* =========================================================
   NAVIGATION DESKTOP - OBIEN
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* =========================================================
   LIENS PRINCIPAUX
========================================================= */

.main-nav > a,
.nav-dropdown-toggle {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    height: 42px;

    padding: 0 10px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


/* Hover */

.main-nav > a:hover,
.nav-dropdown-toggle:hover {

    background: var(--surface-low);

    color: var(--primary);
}


/* Actif */

.main-nav > a.active {

    background: var(--surface-low);

    color: var(--primary);
}


/* =========================================================
   BOUTON DROPDOWN
========================================================= */

.nav-dropdown-toggle {

    appearance: none;
    -webkit-appearance: none;
}


/* Icône */

.nav-dropdown-toggle .material-symbols-outlined {

    font-size: 18px;

    line-height: 1;

    transition:
        transform .2s ease;
}


/* Rotation de la flèche */

.nav-dropdown.is-open
.nav-dropdown-toggle
.material-symbols-outlined {

    transform: rotate(180deg);
}


/* =========================================================
   CONTENEUR DROPDOWN
========================================================= */

.nav-dropdown {

    position: relative;
}


/* =========================================================
   MENU DROPDOWN
========================================================= */

.nav-dropdown-menu {

    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    z-index: 1000;

    width: 285px;

    padding: 8px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, .12),
        0 3px 8px rgba(15, 23, 42, .06);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-6px);

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* Menu ouvert */

.nav-dropdown.is-open
.nav-dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;
}


/* =========================================================
   LIENS DU DROPDOWN
========================================================= */

.nav-dropdown-menu > a {

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 42px;

    padding: 9px 11px;

    border-radius: 8px;

    color: var(--text);

    font-size: 13px;

    font-weight: 500;

    line-height: 18px;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}


.nav-dropdown-menu > a:hover {

    background: var(--surface-low);

    color: var(--primary);
}


/* =========================================================
   ICÔNES DROPDOWN
========================================================= */

.nav-dropdown-menu
.material-symbols-outlined {

    width: 20px;

    flex-shrink: 0;

    font-size: 19px;

    color: var(--text-muted);

    text-align: center;

    transition:
        color .15s ease;
}


.nav-dropdown-menu > a:hover
.material-symbols-outlined {

    color: var(--primary);
}


/* =========================================================
   SÉPARATEUR
========================================================= */

.nav-dropdown-separator {

    height: 1px;

    margin: 7px 4px;

    background: var(--border);
}


/* =========================================================
   TITRE DE SECTION
========================================================= */

.nav-dropdown-heading {

    padding: 7px 11px 5px;

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .04em;
}


/* =========================================================
   LIEN "TOUT VOIR"
========================================================= */

.nav-dropdown-menu
.nav-dropdown-all {

    justify-content: space-between;

    color: var(--primary);

    font-weight: 700;
}


.nav-dropdown-menu
.nav-dropdown-all
.material-symbols-outlined {

    color: var(--primary);

    width: auto;

    font-size: 18px;
}


/* =========================================================
   OMBRE / ANIMATION
========================================================= */

.nav-dropdown-menu::before {

    content: "";

    position: absolute;

    top: -6px;
    left: 18px;

    width: 11px;
    height: 11px;

    background: var(--surface);

    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);

    transform: rotate(45deg);
}


/* =========================================================
   ARABE RTL — UNIQUEMENT LA POSITION
========================================================= */

html[dir="rtl"] .nav-dropdown-menu::before {

    left: auto;
    right: 18px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .main-nav {

        gap: 1px;
    }

    .main-nav > a,
    .nav-dropdown-toggle {

        padding-left: 7px;
        padding-right: 7px;

        font-size: 13px;
    }

}


@media (max-width: 900px) {

    .main-nav {

        display: none;
    }

}



/* ============================================================
   RTL — Aligner le menu déroulant à droite du bouton (arabe)
============================================================ */

[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 0;
}



/* =============================================================
Regler le probleme d'alignages des icones si le lien en bas fait une ou deux lignes
=================================================================== */

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 145px;
}

.category-icon {
    flex: 0 0 64px;
    height: 64px;
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item > span:last-child {
    text-align: center;
}