/* =========================
   IMPORTS COMPOSANTS
========================= */
/* ./components/ui.css */
/* ./tokens.css */
/* Palette et variables du site (couleurs, rôles, cartes, texte, champs).
   Importée par components/ui.css (donc app.css) ET par toute feuille chargée seule, sans app.css
   (pages/account-access.css : connexion, inscription) : sans elle, var(--…) ne vaut rien et la page
   perd couleurs, bordures et tailles (arrivé le 18/11/2026 sur la page de connexion). */
:root {
    /* ── Palette unique du site ────────────────────────────────────────────────────────────────
       Style épuré : fond blanc, gris neutres, un seul orange réservé aux actions.
       Aucune couleur en dur dans les pages : elles utilisent ces variables (gris et oranges ramenés
       ici le 18/11/2026 ; 66 oranges différents auparavant). */

    /* Gris neutres, du texte (900) aux fonds (50) */
    --gray-900: #171717;   /* texte, titres — 17:1 sur blanc */
    --gray-800: #262626;
    --gray-700: #404040;   /* texte secondaire appuyé */
    --gray-600: #555555;   /* texte secondaire — 7.5:1 (AA) */
    --gray-500: #737373;   /* indications, icônes — 4.7:1 */
    --gray-400: #a3a3a3;   /* désactivé, décoratif */
    --gray-300: #d4d4d4;   /* bordures de champs */
    --gray-200: #e6e6e6;   /* bordures, séparateurs */
    --gray-100: #f3f3f3;   /* fonds discrets */
    --gray-50:  #fafafa;   /* fonds de sections */

    /* Orange GuineePlace. --primary porte un texte blanc lisible (7:1) : boutons, liens d'action.
       --brand, l'orange vif du logo, reste décoratif (texte blanc illisible dessus : 2.9:1). */
    --primary: #bd4b00;
    --primary-rgb: 189, 75, 0;
    --primary-dark: #a54100;   /* survol */
    --primary-ink: #833800;    /* texte orange sur fond clair */
    --primary-300: #ffad70;
    --primary-200: #ffd2ad;
    --primary-light: #fff4eb;  /* fonds orangés */
    --brand: #ff6b00;

    /* Noms historiques, gardés pour les feuilles existantes */
    --bg: #ffffff;
    --card: #ffffff;
    --bg-white: #ffffff;
    --bg-light: var(--gray-50);
    --text: var(--gray-900);
    --muted: var(--gray-600);
    --text-muted: var(--gray-600);
    --accent: var(--primary);
    --accent-dark: var(--primary-dark);
    --secondary: var(--gray-900);
    --secondary-light: var(--gray-700);

    --border: var(--gray-200);
    --border-strong: var(--gray-300);
    --border-focus: rgba(var(--primary-rgb), 0.28);

    /* ── Rôles ─────────────────────────────────────────────────────────────────────────────────
       Boutons : l'action principale est orange (--primary), la secondaire a un contour gris,
       la discrète n'est que du texte. WhatsApp garde son vert.
       Le noir marque un état choisi (filtre « Tout », onglet, page courante, date), jamais une action. */
    --selected: var(--gray-900);
    --on-selected: #fff;

    /* Badges : même sens et même couleur sur toutes les cartes et fiches */
    --badge-radius: 4px;
    --badge-premium-bg: var(--gray-900);  --badge-premium-fg: #fff;
    --badge-boost-bg: var(--primary-light); --badge-boost-fg: var(--primary-ink);
    --badge-urgent-bg: #b42318;           --badge-urgent-fg: #fff;
    --badge-new-bg: var(--gray-100);      --badge-new-fg: var(--gray-900);
    --badge-verified-bg: #dcfce7;         --badge-verified-fg: #166534;
    --badge-rent-bg: #fff;                --badge-rent-fg: var(--gray-900);
    --badge-rent-ring: inset 0 0 0 1px var(--gray-300);  /* blanc : lisible même sur une photo claire */

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;

    --whatsapp: #25d366;

    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);   /* site web : aucune (refinement.css) */

    /* Cartes et encadrés : même arrondi et même bordure partout. Pas d'ombre sur le site web ;
       seuls les panneaux qui flottent au-dessus de la page (barres de recherche) en gardent une. */
    --radius-card: 10px;
    --shadow-raised: 0 4px 20px rgb(0 0 0 / 5%);

    /* Tailles de texte : une échelle unique (128 tailles différentes auparavant).
       11 px est le minimum lisible sur téléphone. Les grands titres fluides gardent leur clamp(). */
    --text-2xs: 11px;   /* badges, mentions */
    --text-xs: 12px;    /* méta-infos (lieu, date, unité de prix) */
    --text-sm: 13px;    /* texte secondaire, boutons compacts */
    --text-base: 14px;  /* texte courant des cartes et formulaires */
    --text-md: 15px;    /* texte de lecture (descriptions) */
    --text-lg: 16px;    /* titres de cartes, champs sur mobile */
    --text-xl: 18px;
    --text-2xl: 20px;   /* prix des cartes, titres de blocs */
    --text-3xl: 22px;
    --text-4xl: 24px;   /* titres de sections */
    --text-5xl: 28px;
    --text-6xl: 32px;   /* titres de pages */
    --text-7xl: 40px;

    /* Champs de formulaire autonomes (les champs intégrés aux barres de recherche gardent leur style).
       Compact : filtres et tris sur ordinateur. Sur téléphone, voir plus bas : 44 px et 16 px partout. */
    --field-height: 44px;            /* cible tactile confortable */
    --field-height-compact: 36px;
    --radius-field: 8px;
    --field-border: var(--gray-300);
    --field-bg: #fff;
    --field-font: var(--text-base);
    --field-font-compact: var(--text-sm);
    --field-ring: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    --field-error: #b42318;
}

/* Téléphone : texte des champs à 16 px (en dessous, Safari zoome sur le champ et la page « saute »),
   filtres à la hauteur d'un doigt */
@media (max-width: 720px) {
    :root {
        --field-font: var(--text-lg);
        --field-font-compact: var(--text-lg);
        --field-height-compact: var(--field-height);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* Défilement doux pour les ancres, mais pas pendant un changement de page (Turbo marque <html aria-busy>) :
   sinon chaque nouvelle page remonterait en glissant au lieu de s'ouvrir en haut */
html:not([aria-busy="true"]) {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: var(--text-md);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

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

a:hover {
    opacity: 0.9;
}

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

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

button {
    cursor: pointer;
}

/* Texte réservé aux lecteurs d'écran (statuts de recherche, libellés de champs intégrés) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-main {
    min-height: calc(100vh - 160px);
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.section {
    margin: 28px 0;
}

.section h1,
.section h2,
.section h3 {
    margin-top: 0;
    color: var(--secondary);
}

.section h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 16px;
}

/* =========================
   CARDS
========================= */
.card,
.form-card,
.dashboard-card,
.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.14);
    box-shadow: var(--shadow-hover);
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.btn:hover {
    opacity: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

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

/* Bouton secondaire : pilule blanche à bordure fine noire */
.btn-secondary {
    background: #fff;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 100, 59, 0.22);
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--secondary);
    background: #fff;
    color: var(--secondary);
    font-weight: 600;
    font-size: var(--text-base);
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-login:hover {
    background: var(--gray-100);
    opacity: 1;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1fbe5c;
}

/* =========================
   LISTING GENERIC
========================= */
.listing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.listing-image {
    background: var(--gray-200);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: var(--text-base);
    overflow: hidden;
}

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

.listing-body {
    padding: 14px 16px;
}

.listing-title,
.listing-body h2,
.listing-body h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--secondary);
}

.listing-meta {
    color: var(--muted);
    font-size: var(--text-sm);
    margin-bottom: 8px;
}

.listing-price {
    color: var(--accent);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 12px;
}

/* =========================
   STATS
========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.stat-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.stat-label {
    color: var(--muted);
    font-size: var(--text-sm);
    margin-bottom: 6px;
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--secondary);
}

/* =========================
   TABLES
========================= */
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: var(--text-base);
}

th {
    background: var(--gray-50);
    color: var(--secondary-light);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =========================
   BADGES
========================= */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: var(--gray-200);
    color: #4a4a6a;
}

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

.badge-warning {
    background: #fef3c7;
    color: var(--primary-dark);
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-muted {
    background: var(--gray-200);
    color: #4a4a6a;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

/* =========================
   LAYOUT UTILS
========================= */
.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
    background: var(--primary-light);
    border-color: rgba(var(--primary-rgb), 0.22);
    opacity: 1;
}

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

/* =========================
   FLASH
========================= */
.flash-wrap {
    margin: 16px 0;
}

.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: var(--text-base);
}

.flash-success {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #16a34a;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #dc2626;
}

.flash-warning {
    background: #fef3c7;
    color: var(--primary-dark);
    border-left: 3px solid #d97706;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

/* =========================
   FORMS
========================= */
form > div {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    font-size: var(--field-font);
    background: var(--field-bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--field-ring);
}

/* Erreurs (thème templates/form/guineeplace.html.twig) : champ cerclé de rouge, message juste dessous */
:is(input, select, textarea)[aria-invalid="true"] {
    /* !important : un état d'erreur doit l'emporter sur la bordure posée par la feuille de chaque page */
    border-color: var(--field-error) !important;
}
:is(input, select, textarea)[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgb(180 35 24 / 15%);
}
.form-errors {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    color: var(--field-error);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
}
.form-errors li + li { margin-top: 2px; }

textarea {
    min-height: 110px;
    resize: vertical;
}

.empty-state {
    color: var(--muted);
    padding: 12px 0;
}

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

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: 96%;
    }

    .section {
        margin: 20px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================
   BANNIÈRE VALIDATION TEMP
========================= */
.validation-banner {
    background: #fff8e6;
    border-bottom: 2px solid #f59e0b;
}

.vb-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
}

.vb-icon {
    font-size: var(--text-2xl);
    flex-shrink: 0;
    line-height: 1.4;
}

.vb-text {
    font-size: var(--text-base);
    color: var(--primary-ink);
    line-height: 1.5;
}

.vb-text strong {
    display: block;
    font-size: var(--text-md);
    color: var(--primary-dark);
    margin-bottom: 2px;
}

/* =========================
   MOBILE BOTTOM NAV (global — base.html.twig)
========================= */
.mob-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
    z-index: 900;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.07);
}

.mob-nav-item,
.mob-nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    font-size: var(--text-2xs);
    font-weight: 600;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.12s;
}

.mob-nav-item.is-active { color: var(--primary); }

.mob-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.mob-nav-cta {
    background: var(--primary);
    border-radius: 14px;
    color: #fff;
    margin: 3px 6px;
    padding: 4px 0;
    font-weight: 700;
}

.mob-nav-cta svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

@media (max-width: 768px) {
    .mob-nav { display: grid; }
    .site-main { padding-bottom: 68px; }
}

/* ── Page fade-in (Turbo navigation + initial load) ──────────────────── */
@keyframes gp-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.site-main {
    animation: gp-fade-in .22s ease-out;
}

/* ── Lazy image fade-in ──────────────────────────────────────────────── */
img.img-lazy {
    opacity: 0;
    transition: opacity .32s ease;
}
img.img-lazy.img-loaded {
    opacity: 1;
}

/* Offre de lancement (pages de publication) */
.launch-offer {
    display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px;
    border-radius: 12px; background: linear-gradient(135deg, var(--gray-900), #1b4c91); color: #fff;
}
.launch-offer-icon { font-size: var(--text-4xl); flex-shrink: 0; }
.launch-offer strong { display: block; font-size: var(--text-md); }
.launch-offer span { font-size: var(--text-sm); color: rgba(255, 255, 255, .88); }
.launch-offer b { color: var(--primary-300); }
.success-launch { max-width: 720px; margin: 0 auto 22px; }

/* =========================
   APPLICATION INSTALLABLE (assets/js/pwa.js)
========================= */
.pwa-banner {
    position: fixed; left: 10px; right: 10px; z-index: 950;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));          /* au-dessus de la barre de navigation du bas */
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 12px 34px rgba(13, 31, 60, .22);
    animation: pwa-in .25s ease-out;
}
.pwa-banner img { border-radius: 10px; flex-shrink: 0; }
.pwa-banner-text { flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--muted); line-height: 1.4; }
.pwa-banner-text strong { display: block; font-size: var(--text-base); color: var(--secondary); margin-bottom: 2px; }
.pwa-banner-text svg { vertical-align: -2px; }
.pwa-banner-install {
    flex-shrink: 0; border: 0; border-radius: 10px; background: var(--primary); color: #fff;
    font: inherit; font-weight: 700; font-size: var(--text-base); padding: 10px 14px; cursor: pointer;
}
.pwa-banner-close { flex-shrink: 0; border: 0; background: none; font-size: var(--text-4xl); line-height: 1; color: var(--muted); padding: 4px; cursor: pointer; }
@keyframes pwa-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-install-app[hidden] { display: none !important; }
/* Dans l'application installée : pas de lien « Installer » */
.is-app [data-pwa-install] { display: none !important; }

/* =========================
   PAGES D'ERREUR (templates/bundles/TwigBundle/Exception)
========================= */
.err-page { padding: 56px 0 80px; background: var(--bg-light); }
.err-wrap { max-width: 720px; text-align: center; }
.err-code { font-size: 64px; font-weight: 800; color: var(--primary); margin: 0; line-height: 1; letter-spacing: -2px; }
.err-page h1 { color: var(--secondary); margin: 10px 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); }
.err-text { color: var(--muted); margin: 0 0 24px; }
.err-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.err-search input { flex: 1; min-width: 0; font-size: var(--field-font); border-radius: var(--radius-field); padding: 12px 18px; }
.err-search button { border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; padding: 0 20px; cursor: pointer; }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.err-page .ls-popular { text-align: left; }

/* Activer les notifications (templates/components/_push_toggle.html.twig) */
.push-toggle {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px;
}
.push-toggle[hidden] { display: none; }
.push-toggle-icon { font-size: var(--text-3xl); }
.push-toggle-text { flex: 1; min-width: 200px; font-size: var(--text-base); color: var(--muted); }
.push-toggle-text strong { display: block; color: var(--secondary); font-size: var(--text-md); }
.push-toggle-btn[hidden], .push-toggle-off[hidden] { display: none; }
.push-toggle-off { border: 0; background: none; color: var(--muted); text-decoration: underline; font: inherit; font-size: var(--text-sm); cursor: pointer; }

/* Suppression du compte (page Profil) */
.account-delete { margin-top: 36px; border: 1px solid #f3c2c2; border-radius: 12px; background: var(--gray-50); padding: 0 18px; }
.account-delete summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: #b42318; }
.account-delete p { font-size: var(--text-base); color: var(--muted); }
.account-delete form { display: grid; gap: 8px; max-width: 420px; margin-bottom: 12px; }
.account-delete input[type=text] { font-size: var(--field-font); }
.account-delete-btn { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }
.account-delete-help { font-size: var(--text-sm); }

/* Pages légales (confidentialité) */
.legal-page { padding: 40px 0 70px; background: var(--bg-light); }
.legal-wrap { max-width: 820px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px clamp(18px, 4vw, 44px); }
.legal-wrap h1 { color: var(--secondary); margin: 0 0 6px; }
.legal-wrap h2 { color: var(--secondary); font-size: var(--text-xl); margin: 28px 0 8px; scroll-margin-top: 90px; }
.legal-wrap p, .legal-wrap li { color: var(--text); line-height: 1.65; font-size: var(--text-md); }
.legal-wrap ul { padding-left: 20px; }
.legal-updated { color: var(--muted) !important; font-size: var(--text-sm) !important; margin-bottom: 20px; }
/* Guides pratiques (même mise en page que les pages légales) */
.guide-breadcrumb { font-size: var(--text-sm); color: var(--muted); margin: 0 0 12px; }
.guide-breadcrumb a { color: var(--muted); }
.guide-lead { font-size: var(--text-lg) !important; color: var(--secondary) !important; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.guide-toc a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--text-sm); color: var(--secondary); text-decoration: none; }
.guide-toc a:hover { background: var(--bg-light); }
.guide-checklist { list-style: none; padding-left: 0 !important; }
.guide-checklist li { position: relative; padding-left: 26px; margin: 4px 0; }
.guide-checklist li::before { content: '✓'; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }
.guide-box { margin: 16px 0; padding: 14px 16px; background: var(--bg-light); border-left: 3px solid var(--primary); border-radius: 8px; }
.guide-box p { margin: 0; }
.guide-box-title { font-weight: 700; color: var(--secondary) !important; margin-bottom: 4px !important; }
.guide-faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; color: var(--secondary); }
.guide-faq details p { margin: 8px 0 0; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.guide-disclaimer { font-size: var(--text-sm) !important; color: var(--muted) !important; margin-top: 22px; }
.guide-others { font-size: var(--text-base) !important; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.guide-category { font-size: var(--text-xs); font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.guide-checklist-box { margin: 28px 0 0; padding: 18px 20px; border: 1.5px solid var(--primary); border-radius: 12px; background: var(--primary-light); scroll-margin-top: 90px; }
.guide-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.guide-checklist-box h2 { margin: 0 !important; }
.guide-print { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--secondary); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.guide-pro { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--secondary); border-radius: 8px; }
.guide-pro p, .guide-pro li { margin: 0; }
.guide-pro ul { margin: 6px 0 0; }
.guide-sources { font-size: var(--text-base); }

/* Page /guides : titre, deux cartes côte à côte (empilées sur mobile), encart checklist */
.guides-home { padding: 40px 0 70px; background: var(--bg-light); }
.guides-hero { max-width: 760px; margin: 0 0 26px; }
.guides-eyebrow { font-size: var(--text-xs); font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.guides-hero h1 { color: var(--secondary); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.6px; margin: 0 0 10px; }
.guides-lead { font-size: var(--text-lg); color: var(--secondary-light); line-height: 1.6; margin: 0; }
.guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; transition: box-shadow .15s ease, border-color .15s ease; }
.guide-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.guide-tile-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-light); font-size: var(--text-5xl); margin-bottom: 14px; }
.guide-tile-category { font-size: var(--text-xs); font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.guide-tile h2 { font-size: var(--text-2xl); margin: 0 0 4px; line-height: 1.3; }
.guide-tile h2 a { color: var(--secondary); text-decoration: none; }
.guide-tile-topics { color: var(--secondary-light); margin: 0 0 12px; font-size: var(--text-md); }
.guide-tile-points { list-style: none; padding: 0; margin: 0 0 14px; }
.guide-tile-points li { position: relative; padding-left: 24px; margin: 5px 0; font-size: var(--text-md); color: var(--text); }
.guide-tile-points li::before { content: '✓'; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }
.guide-tile-meta { font-size: var(--text-sm); color: var(--muted); margin: auto 0 14px; }
.guide-tile-btn { align-self: flex-start; }
.guides-checklist { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 22px 0 0; padding: 20px 24px; border-radius: 16px; background: var(--secondary); color: #fff; }
.guides-checklist h2 { color: #fff; font-size: var(--text-xl); margin: 0 0 4px; }
.guides-checklist p { margin: 0; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.55; }
.guides-checklist-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guides-checklist-links a { padding: 9px 14px; border-radius: 8px; background: #fff; color: var(--secondary); font-weight: 700; font-size: var(--text-base); text-decoration: none; }
.guides-checklist-links a:hover { background: var(--primary-light); }
.guides-trust { margin: 18px 0 0; font-size: var(--text-sm); color: var(--muted); max-width: 760px; line-height: 1.6; }

/* Impression d'un guide : seulement le contenu (checklist à emporter) */
@media print {
    .navbar, .footer, .guide-print, .guide-cta, .guide-toc, .guide-breadcrumb { display: none !important; }
    .legal-page { padding: 0; background: #fff; }
    .legal-wrap { border: 0; padding: 0; max-width: none; }
    .guide-faq details { display: block; }
}
.auth-legal { font-size: var(--text-xs); color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Navigation au clavier et préférences de mouvement. */
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Finition des guides et accès depuis l'accueil. */
.guides-title-line { display: block; }
.guide-tile { --tile-pad: 22px; padding: var(--tile-pad); overflow: hidden; }
/* Photo en haut de la carte, bord à bord */
.guide-tile-img { display: block; width: calc(100% + 2 * var(--tile-pad)); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: calc(-1 * var(--tile-pad)) calc(-1 * var(--tile-pad)) 18px; border-radius: 0; }
/* Mention de l'auteur d'une photo sous licence gratuite, discrète sous l'image */
.guide-tile-credit { margin: -14px 0 10px; font-size: var(--text-2xs); line-height: 1.3; color: var(--text-muted, var(--gray-500)); text-align: right; }
.guide-tile-credit a { color: inherit; }
.guide-tile-icon { width: 46px; height: 46px; margin-bottom: 10px; color: var(--secondary); }
.guide-tile:focus-within { border-color: var(--primary); box-shadow: var(--shadow-card); }
.home-guides-section { padding: 40px 0; background: var(--bg-light); }
.home-guide-tile .guide-tile-img { height: clamp(170px, 17vw, 220px); aspect-ratio: auto; object-position: center 35%; }
.home-guide-tile h3 { font-size: var(--text-2xl); margin: 0 0 8px; }
.home-guide-tile .home-section-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) {
    .guides-home { padding: 28px 0 40px; }
    .guides-hero h1 { font-size: clamp(26px, 6vw, 34px); }
    .guide-tile-btn { width: 100%; justify-content: center; text-align: center; }
    .guide-tile { --tile-pad: 20px; }
    .home-guides-section { padding: 28px 0; }
    .home-guide-tile .guide-tile-img { height: 180px; }
}

/* Page « Votre bien est-il toujours disponible ? » (prolongation d'une annonce) */
.renew-listing { margin: 16px 0 20px; padding: 14px 16px; background: var(--bg-light); border-radius: 10px; }
.renew-listing-title { font-weight: 700; color: var(--secondary) !important; margin: 0 0 4px; }
.renew-listing-meta { font-size: var(--text-base) !important; color: var(--muted) !important; margin: 2px 0; }
/* Réponse au suivi de disponibilité : confirmation bien visible après le clic */
.availability-done { padding: 24px; border: 1px solid #b7dfc5; border-radius: 12px; background: #eef8f1; }
.availability-done-title { margin: 0 0 8px; font-size: var(--text-4xl); font-weight: 800; color: #14532d; }
.availability-done .renew-actions { margin-top: 18px; }
.renew-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 520px; }
.renew-actions .btn { justify-content: center; text-align: center; }
.renew-note { font-size: var(--text-sm) !important; color: var(--muted) !important; margin-top: 14px; }

.profile-google { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.profile-google h2 { font-size: var(--text-xl); margin: 0 0 10px; }
.profile-google p { font-size: var(--text-base); color: var(--muted); line-height: 1.6; }

/* Bulle d'information (assets/js/toast.js) : bas de l'écran, au-dessus de la barre de navigation mobile */
.gp-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 2000;
    display: flex; align-items: flex-start; gap: 10px;
    width: min(460px, calc(100vw - 32px)); padding: 14px 14px 14px 16px;
    background: #fff; color: var(--secondary); border: 1px solid var(--gray-200); border-left: 4px solid #16a34a; border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s ease, transform .25s ease;
}
.gp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.gp-toast.is-error { border-left-color: #dc2626; }
.gp-toast-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-size: var(--text-sm); font-weight: 800; }
.gp-toast.is-error .gp-toast-icon { background: #dc2626; }
.gp-toast-text { margin: 0; flex: 1; font-size: var(--text-base); line-height: 1.5; }
.gp-toast-close { flex: none; border: 0; background: none; color: var(--gray-500); font-size: var(--text-base); cursor: pointer; padding: 2px 4px; }
@media (max-width: 768px) { .gp-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .gp-toast { transition: none; } }

/* Disponibilité déclarée : distincte des badges de vérification. */
.av-banner { margin: 16px 0 20px; padding: 20px; border: 1px solid var(--gray-300); border-radius: 12px; background: var(--gray-100); color: #243950; }
.av-banner strong { font-size: var(--text-xl); }
.av-banner p, .av-confirmed { font-size: var(--text-sm); line-height: 1.7; color: var(--gray-600); }
.av-banner p { margin: 8px 0; }
.av-banner a, .av-closed-card a { color: var(--primary-dark); font-weight: 600; text-underline-offset: 3px; }
.av-confirmed { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--gray-400); background: var(--gray-50); }
.av-closed-card h2 { margin-top: 0; font-size: var(--text-2xl); }
.av-manage { flex-basis: 100%; padding: 10px 0; }
.av-manage summary { cursor: pointer; color: #244765; font-size: var(--text-sm); font-weight: 600; }
.av-manage p { font-size: var(--text-xs); color: var(--gray-600); margin: 10px 0; max-width: 550px; }
.av-manage form { display: block; }
.av-manage button { margin: 4px 8px 4px 0; min-height: 40px; }
.av-close { color: var(--primary-dark); }

.av-alternatives a { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); color: #243950; text-decoration: none; }
.av-alternatives a:last-child { border-bottom: 0; padding-bottom: 0; }
.av-alternatives span { font-size: var(--text-sm); color: var(--gray-600); }
.av-alternatives a:hover strong { text-decoration: underline; }

.listing-quality-help { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); color: #304860; }
.listing-quality-help p { margin: 8px 0 0; font-size: var(--text-sm); line-height: 1.65; }
.listing-quality-help [role="status"] { padding-top: 10px; color: var(--primary-ink); border-top: 1px solid #ecd7bf; }
.listing-quality-help [hidden] { display: none; }

/* Photos : état de la préparation et envoi interrompu (photo-compress.js) */
.photo-compress-status { margin: 6px 0 0; font-size: var(--text-sm); font-weight: 600; color: #1a7f37; }
.photo-compress-status:empty { display: none; }
.photo-send-error { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: var(--text-base); font-weight: 600; }
/* État de chaque photo pendant l'envoi (annonces, véhicules, express) */
.photo-state {
    position: absolute; top: 6px; left: 6px; max-width: calc(100% - 46px);
    padding: 2px 7px; border-radius: 6px; background: rgba(13, 31, 60, .78); color: #fff;
    font-size: var(--text-2xs); font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-state:empty { display: none; }
.is-done .photo-state { background: rgba(26, 127, 55, .9); }
.is-failed .photo-state, .is-rejected .photo-state { background: #b42318; white-space: normal; }
.is-preparing .ipc-thumb, .is-preparing.ex-photo { background: var(--gray-200); }
.is-rejected img { opacity: .45; }
.ipc-retry, .ex-photo-retry {
    border: 0; border-radius: 6px; background: #b42318; color: #fff; font-size: var(--text-xs); font-weight: 700;
    padding: 3px 8px; cursor: pointer;
}
.ex-photo-retry { position: absolute; left: 6px; bottom: 6px; z-index: 1; }

/* Unité du prix sur les cartes d'annonces : « par mois », « par parcelle », « les 10 parcelles » */
.price-unit { font-size: var(--text-sm); font-weight: 600; color: var(--gray-500); white-space: nowrap; letter-spacing: 0; }

/* Application Android : ses onglets natifs remplacent la barre du bas du site */
.is-native-app .mob-nav { display: none !important; }
.is-native-app .site-main { padding-bottom: 0; }

/* Nouveau mot de passe (page du site) : même bouton « Afficher / Masquer » que sur la connexion */
.password-control { position: relative; }
.password-control input[data-password-toggle] { width: 100%; padding-right: 92px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--gray-100); color: var(--gray-900); cursor: pointer; font: 600 13px/1 inherit; }
.password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Résultats de recherche rechargés seuls (cadres Turbo annonces, véhicules, hôtels, professionnels) :
   pendant la requête, ils s'estompent ; on voit tout de suite que le filtre est pris en compte */
turbo-frame[id$="-results"] { display: block; }
turbo-frame[id$="-results"][busy] { opacity: .5; transition: opacity .15s; pointer-events: none; }

/* Formulaires envoyés sans recharger la page (cadres Turbo) : confirmation à la place du formulaire,
   erreur au-dessus du formulaire rempli (components/_form_sent.html.twig, components/_contact_form.html.twig) */
.form-sent { display: grid; justify-items: center; gap: 6px; padding: 20px 16px; text-align: center; border-radius: var(--radius-card); background: #f0fdf4; border: 1px solid #bbf7d0; outline: none; }
.form-sent-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #166534; color: #fff; font-weight: 700; }
.form-sent-title { margin: 0; font-size: var(--text-lg); font-weight: 600; color: var(--gray-900); }
.form-sent-text { margin: 0; font-size: var(--text-sm); color: var(--gray-700); line-height: 1.5; }
.form-sent-link { font-size: var(--text-sm); font-weight: 600; }
.form-sent-close { margin-top: 6px; }
.form-alert { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-field); background: #fef2f2; border: 1px solid #fecaca; color: var(--field-error); font-size: var(--text-sm); font-weight: 600; }

/* « Créer une alerte » (liste des annonces) : petite bulle au-dessus du bouton, qui s'efface d'elle-même */
.ls-alert-frame { position: relative; display: block; }
.ls-alert-notice { position: absolute; right: 0; bottom: calc(100% + 10px); margin: 0; padding: 9px 12px; border-radius: 8px; background: var(--gray-900); color: #fff; font-size: var(--text-sm); white-space: nowrap; box-shadow: var(--shadow-raised); animation: ls-alert-notice 7s forwards; }
.ls-alert-notice a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes ls-alert-notice { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* « Voir plus » sous les résultats (templates/components/_load_more.html.twig) */
.load-more { display: grid; justify-items: center; gap: 10px; max-width: 360px; margin: 32px auto 0; text-align: center; }
.load-more-count { margin: 0; font-size: var(--text-sm); color: var(--gray-600); }
.load-more-bar { width: 160px; height: 3px; overflow: hidden; border-radius: 999px; background: var(--gray-200); }
.load-more-bar span { display: block; height: 100%; background: var(--gray-900); }
.load-more-btn { width: 100%; min-height: var(--field-height); }
.load-more-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.load-more-first { font-size: var(--text-sm); color: var(--gray-600); text-decoration: underline; text-underline-offset: 4px; }
.load-more-status { min-height: 1.4em; margin: 8px 0 0; text-align: center; font-size: var(--text-sm); color: var(--gray-600); }
.load-more-status:empty { margin: 0; }

/* Navigation (Turbo) : barre de progression aux couleurs du site, fondu court entre deux pages */
.turbo-progress-bar {
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 6px rgba(var(--primary-rgb), .45);
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .18s;
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
}

/* ./components/feedback.css */
.flash{display:flex;align-items:flex-start;gap:12px}.flash-text{flex:1;min-width:0;overflow-wrap:anywhere}.flash-dismiss{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;margin:-4px -6px -4px 0;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:var(--text-4xl);cursor:pointer}.flash-dismiss:hover{background:rgba(0,0,0,.07)}.copy-value{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;vertical-align:middle}.copy-value-source{overflow-wrap:anywhere;user-select:all;min-width:0}.copy-value-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 10px;border:1px solid var(--gray-300);border-radius:7px;background:#fff;color:#244567;font:inherit;font-size:var(--text-sm);line-height:1.2;cursor:pointer}.copy-value-button[aria-busy=true]{cursor:progress}.copy-value-feedback{flex-basis:100%;font-size:var(--text-xs);font-weight:400;line-height:1.5;color:inherit;overflow-wrap:anywhere}.copy-value-feedback:empty{display:none}.copy-value [hidden],.flash [hidden]{display:none!important}.copy-value-button:focus-visible,.copy-value-source:focus-visible,.flash-dismiss:focus-visible{outline:3px solid var(--primary);outline-offset:3px}@media(pointer:coarse){.copy-value-button,.flash-dismiss{min-width:44px;min-height:44px}}

/* ./components/navbar.css */
/* =========================
   NAVBAR SELOGER STYLE
========================= */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(13, 31, 60, 0.04);
    overflow: visible;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.brand {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand:hover {
    color: var(--primary-dark);
    opacity: 1;
}

/* Logo : SVG (net à toutes les tailles), ratio 531 × 100 */
.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}

@media (max-width: 720px) {
    .brand-logo { height: 34px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;          /* jamais sur deux lignes : on réduit plutôt (voir plus bas) */
    white-space: nowrap;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: var(--text-base);
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: var(--primary-light);
    color: var(--primary);
    opacity: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--secondary);
    background: #fff;
    color: var(--secondary);
    font-weight: 600;
    font-size: var(--text-base);
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-login:hover {
    background: var(--gray-100);
    opacity: 1;
}

.btn-favorites-nav {
    gap: 6px;
}

.favorites-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =========================
   DROPDOWN TRIGGERS
========================= */
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-weight: 500;
    font-size: var(--text-base);
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-caret {
    font-size: var(--text-2xs);
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.15s ease;
    display: inline-block;
}

.nav-dropdown-trigger.is-active .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* =========================
   MEGA MENU PANEL
========================= */
.nav-megamenu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: megaSlideDown 0.16s ease forwards;
}

@keyframes megaSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-megamenu[hidden] {
    display: none;
}

.nav-megamenu-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
}

.nav-megamenu-col {
    padding: 0 32px;
    border-right: 1px solid var(--border);
}

.nav-megamenu-col:last-child {
    border-right: none;
}

.nav-megamenu-col-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 14px;
    letter-spacing: 0;
}

.nav-megamenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-megamenu-list a {
    display: block;
    padding: 7px 0;
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--gray-700);
    border-bottom: 1px solid transparent;
    transition: color 0.12s ease;
}

.nav-megamenu-list a:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-megamenu-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* Footer — full-width gray band */
.nav-megamenu-footer-wrap {
    background: var(--gray-100);
    border-top: 1px solid var(--border);
}

.nav-megamenu-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.nav-megamenu-footer-label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
    margin-right: 4px;
}

.nav-megamenu-footer-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* CTA button SeLoger style — colored background, 2-line text */
.nav-megamenu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 400;
    line-height: 1.3;
    min-width: 180px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.nav-megamenu-btn strong {
    font-size: var(--text-base);
    font-weight: 700;
    display: block;
}

.nav-megamenu-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    opacity: 1;
    color: #fff;
}

/* Choix secondaire : contour, comme tous les boutons secondaires du site */
.nav-megamenu-btn.is-alt {
    background: #fff;
    color: var(--gray-900);
    box-shadow: inset 0 0 0 1px var(--gray-300);
}

.nav-megamenu-btn.is-alt:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    transform: translateY(-1px);
    opacity: 1;
}

/* =========================
   MODALE DEPOT ANNONCE
========================= */
.listing-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 30, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 300;
    backdrop-filter: blur(4px);
}

.listing-modal-backdrop[hidden] {
    display: none;
}

.listing-modal {
    width: min(680px, 100%);
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 28px;
    position: relative;
}

.listing-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: var(--text-5xl);
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.15s ease;
}

.listing-modal-close:hover {
    color: var(--text);
}

.listing-modal-header {
    margin-bottom: 20px;
}

.listing-modal-header h2 {
    margin: 0 0 6px;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--secondary);
}

.listing-modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.listing-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.listing-modal-choice {
    display: block;
    padding: 20px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 180px;
}

.listing-modal-choice:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.10);
    opacity: 1;
}

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

.listing-modal-choice h3 {
    margin: 0 0 8px;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
}

.listing-modal-choice p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.listing-modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

/* "← Retour" subtle button */
.listing-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    transition: color 0.15s ease;
}

.listing-modal-back:hover {
    color: var(--text);
}

/* Choice hover — active press feel */
.listing-modal-choice:active {
    transform: scale(0.98);
    transition-duration: 80ms;
}

/* Choice — works as <button> or <a> */
button.listing-modal-choice,
a.listing-modal-choice {
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* =========================
   HAMBURGER
========================= */
/* Bouton du menu mobile : icône ☰ suivie du mot « Menu » (« Fermer » une fois ouvert) */
.nav-hamburger {
    display: none;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: var(--primary-light);
}

.nav-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
}

.nav-hamburger-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1;
}

.nav-hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
}

.nav-hamburger.is-open .nav-hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open .nav-hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-open .nav-hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
    .navbar-inner {
        flex-wrap: nowrap;
        padding: 0;
        gap: 12px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        z-index: 99;
    }

    .nav-right.is-open {
        display: flex;
    }

    .nav-right .btn,
    .nav-right .btn-login {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 720px) {
    .listing-modal {
        padding: 20px;
        border-radius: 10px;
    }

    .listing-modal-grid {
        grid-template-columns: 1fr;
    }

    .listing-modal-header h2 {
        font-size: var(--text-2xl);
    }

    .listing-modal-choice {
        min-height: auto;
    }
}

/* =========================
   ICON BUTTON (Favoris, Bell…)
========================= */
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-icon-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    opacity: 1;
}

/* Badge count on icon buttons */
.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    pointer-events: none;
    border: 2px solid #fff;
}

.nav-badge[hidden] { display: none; }

/* CTA "Déposer une annonce" */
.nav-cta-deposit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
}

.nav-cta-deposit svg {
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .nav-cta-label { display: none; }
    .nav-cta-deposit { padding: 8px 12px; }
}

/* =========================
   USER DROPDOWN
========================= */
.nav-user-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px 0 4px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-user-btn:hover,
.nav-user-wrap.is-open .nav-user-btn {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.nav-user-wrap.is-open .nav-user-btn .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.nav-user-avatar--lg {
    width: 42px;
    height: 42px;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.nav-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown panel */
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    z-index: 200;
    /* Une section par rôle (Mon activité, Mon suivi…) : sur un écran bas, le menu défile */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: megaSlideDown 0.14s ease forwards;
}

.nav-user-dropdown[hidden] { display: none; }

/* User head */
.nav-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--gray-50);
}

.nav-user-head-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-user-head-info strong {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    display: block;
}

.nav-user-head-info span {
    font-size: var(--text-xs);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    display: block;
}

/* Sections */
.nav-user-section {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.nav-user-section:last-of-type {
    border-bottom: none;
}

/* Titre de section (« Mon activité », « Mon suivi »…), comme sur la page Mon compte */
.nav-user-section-title {
    margin: 4px 16px 2px;
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* Links */
.nav-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    transition: background 0.12s ease, color 0.12s ease;
    text-decoration: none;
}

.nav-user-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    opacity: 1;
}

.nav-user-link-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: var(--text-base);
}

.nav-user-link-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}

.nav-user-link-badge {
    margin-left: auto;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #991b1b;
}

.nav-user-link--admin .nav-user-link-icon {
    color: var(--danger);
}

/* Footer — logout */
.nav-user-footer {
    border-top: 1px solid var(--border);
    padding: 6px 0;
}

.nav-user-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--danger);
    transition: background 0.12s ease;
    text-decoration: none;
}

.nav-user-logout:hover {
    background: #fee2e2;
    opacity: 1;
}

/* Mobile: user dropdown appears inline inside the mobile panel */
@media (max-width: 980px) {
    .nav-user-btn { display: none; }

    .nav-user-dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 8px;
        animation: none;
    }

    .nav-right.is-open .nav-user-dropdown { display: block; }
}

/* =========================
   PREMIUM mm-link ITEMS
========================= */
/* Override generic .nav-megamenu-list a for .mm-link items */
.nav-megamenu-list .mm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 0 -10px;
    transition: background 0.12s ease;
    border-bottom: none;
    color: var(--text);
}

.nav-megamenu-list .mm-link:hover {
    background: var(--primary-light);
    color: var(--text);
    opacity: 1;
}

.mm-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.mm-link-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.mm-link-body strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    display: block;
    line-height: 1.3;
}

.mm-link-body span {
    font-size: var(--text-2xs);
    color: var(--muted);
    line-height: 1.35;
    display: block;
}

.mm-link-badge {
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.mm-link--cta {
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    background: rgba(var(--primary-rgb), 0.03);
    margin-top: 4px;
}

.mm-link--cta:hover {
    background: var(--primary-light);
    border-color: rgba(var(--primary-rgb), 0.28);
}

.mm-link-arrow {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.nav-megamenu-list .mm-link:hover .mm-link-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Footer CTA subtitle */
.nav-megamenu-btn-sub {
    font-size: var(--text-2xs);
    font-weight: 400;
    opacity: 0.8;
    display: block;
}

/* =========================
   MOBILE NAV ACCORDION
========================= */
.nav-mobile-nav {
    display: none;
}

.nav-mobile-divider {
    display: none;
}

@media (max-width: 980px) {
    .nav-mobile-nav {
        display: flex;
        flex-direction: column;
    }

    .nav-mobile-divider {
        display: block;
        height: 1px;
        background: var(--border);
        margin: 4px 0;
    }

    .nav-mobile-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 11px 8px;
        font-size: var(--text-md);
        font-weight: 500;
        color: var(--text);
        border-radius: 8px;
        text-decoration: none;
        transition: background 0.12s ease, color 0.12s ease;
    }

    .nav-mobile-link:hover,
    .nav-mobile-link.is-active {
        background: var(--primary-light);
        color: var(--primary);
        opacity: 1;
    }

    .nav-mobile-accordion-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 11px 8px;
        font-size: var(--text-md);
        font-weight: 500;
        color: var(--text);
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: background 0.12s ease, color 0.12s ease;
    }

    .nav-mobile-accordion-trigger:hover,
    .nav-mobile-accordion-trigger.is-open {
        background: var(--primary-light);
        color: var(--primary);
    }

    .nav-mobile-accordion-trigger.is-open .nav-caret {
        transform: rotate(180deg);
        opacity: 1;
    }

    .nav-mobile-accordion-panel {
        display: flex;
        flex-direction: column;
        background: var(--gray-50);
        border-radius: 8px;
        margin: 2px 0 4px;
        overflow: hidden;
    }

    .nav-mobile-accordion-panel[hidden] {
        display: none;
    }

    .nav-mobile-sub-link {
        display: block;
        padding: 10px 16px;
        font-size: var(--text-base);
        font-weight: 400;
        color: var(--text);
        text-decoration: none;
        border-bottom: 1px solid var(--border);
        transition: background 0.1s ease, color 0.1s ease;
    }

    .nav-mobile-sub-link:last-child {
        border-bottom: none;
    }

    .nav-mobile-sub-link:hover {
        background: var(--primary-light);
        color: var(--primary);
        opacity: 1;
    }
}

/* ── Notification Bell ─────────────────────────────────────── */
.nb-wrap {
    position: relative;
    display: inline-flex;
}

/* nb-trigger extends nav-icon-btn — reset only what the original button tag adds */
.nb-trigger {
    font-size: inherit;
    line-height: 1;
}

.nb-badge {
    font-size: var(--text-2xs);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    line-height: 16px;
}

.nb-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
}

.nb-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.nb-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}

.nb-item:last-child { border-bottom: none; }

.nb-unread {
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
}

.nb-subject {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.nb-message {
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.nb-time {
    color: var(--gray-400);
    font-size: var(--text-2xs);
    margin-top: 4px;
}

.nb-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--muted);
    font-size: var(--text-sm);
}

/* Focus : pas de cadre au clic souris, un contour aux couleurs du site au clavier */
.navbar a:focus:not(:focus-visible),
.navbar button:focus:not(:focus-visible) {
    outline: none;
}

.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Écrans d'ordinateur étroits : logo, menu et boutons doivent tenir sur une ligne.
   « Créer un compte » reste accessible depuis la page de connexion. */
@media (min-width: 981px) and (max-width: 1240px) {
    .nav-register { display: none; }
    .brand-logo { height: 36px; }
    .nav-left { gap: 16px; }
}

@media (min-width: 981px) and (max-width: 1100px) {
    .brand-logo { height: 32px; }
    .nav-links a,
    .nav-dropdown-trigger { padding: 6px 8px; font-size: var(--text-sm); }
}

/* Menu mobile ouvert : il défile tout seul. Accroché sous l'en-tête fixé en haut de l'écran, sa fin (compte,
   déconnexion) était inaccessible dès qu'il dépassait la hauteur de l'écran (encore plus dans l'application).
   Favoris et notifications en lignes lisibles plutôt qu'en petites icônes empilées, bouton « Déposer » avec son texte. */
@media (max-width: 980px) {
    .nav-right.is-open {
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 24px;
        /* Une seule colonne : avec une hauteur limitée, le retour à la ligne envoyait la suite du menu sur le côté */
        flex-wrap: nowrap;
    }
    .nav-right.is-open > * { flex-shrink: 0; }
    .nav-right .nav-cta-label { display: inline; }
    .nav-right .nav-cta-deposit { gap: 8px; }
    .nav-right > .nav-icon-btn,
    .nav-right .nb-wrap,
    .nav-right .nb-trigger { width: 100%; }
    .nav-right > .nav-icon-btn,
    .nav-right .nb-trigger { justify-content: flex-start; gap: 12px; height: 46px; padding: 0 14px; font-size: var(--text-md); font-weight: 600; }
    .nav-right > .nav-icon-btn::after,
    .nav-right .nb-trigger::after { content: attr(aria-label); order: 1; }
    .nav-right > .nav-icon-btn .nav-badge,
    .nav-right .nb-trigger .nav-badge { position: static; order: 2; margin-left: auto; }
    .nav-right .nb-wrap { flex-direction: column; }
    .nav-right .nb-dropdown { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
}

/* Menu mobile, compte connecté : une seule ligne « Mon compte » (page /mon-compte) au lieu des favoris,
   des notifications et de toute la liste du compte empilés sous la navigation. Ordinateur : inchangé. */
.nav-mobile-account { display: none; }
@media (max-width: 980px) {
    .nav-right > .nav-icon-btn,
    .nav-right .nb-wrap,
    .nav-right .nav-user-wrap { display: none; }
    .nav-mobile-account {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 60px;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        color: var(--gray-900);
        text-decoration: none;
    }
    .nav-mobile-account:hover { background: var(--gray-50); }
    .nav-mobile-account-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
    .nav-mobile-account-text strong { font-size: var(--text-lg); font-weight: 600; }
    .nav-mobile-account-text small { font-size: var(--text-xs); color: var(--gray-600); }
    .nav-mobile-account .nav-badge { position: static; }
    .nav-mobile-account-chevron { font-size: var(--text-3xl); color: var(--gray-400); line-height: 1; }
}

/* Menu mobile : voile derrière (un toucher le ferme) et poignée pour le glisser vers le haut (assets/js/nav-mobile.js).
   Le voile commence sous la barre (top posé en JS) : la barre et son bouton ☰ restent nets. */
.nav-mobile-backdrop,
.nav-mobile-grabber { display: none; }
@media (max-width: 980px) {
    .nav-mobile-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 64px 0 0;
        z-index: 98;
        background: rgb(15 23 42 / 40%);
        opacity: 0;
        transition: opacity .2s ease;
        touch-action: none;
    }
    .nav-mobile-backdrop.is-visible { opacity: 1; }
    /* La poignée fait la marge du bas : avec le padding du menu en plus, collée en bas (sticky),
       elle remontait sur le dernier bouton */
    .nav-right.is-open { padding-bottom: 0; }
    .nav-mobile-grabber {
        display: block;
        position: sticky;
        bottom: 0;
        margin: 4px -16px 0;
        padding: 12px 0 16px;
        background: #fff;
        cursor: grab;
        touch-action: none;
    }
    .nav-mobile-grabber::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto;
        border-radius: 999px;
        background: var(--gray-300);
    }
}

/* Application Android : barre plus étroite, l'icône ☰ suffit */
.is-native-app .nav-hamburger-label { display: none; }

/* Application Android : elle est déjà installée */
.is-native-app [data-pwa-install] { display: none !important; }

/* Application Android : le menu ☰ ne sert qu'à naviguer. Compte, favoris, notifications et publication sont dans
   les onglets « Compte » et « Publier » (page /mon-compte) */
.is-native-app .nav-right > :not(.nav-mobile-nav, .nav-mobile-grabber) { display: none !important; }

/* ./components/footer.css */
.footer { margin-top: 32px; background: var(--secondary); color: var(--gray-300); }
.footer-top { padding: 40px 0 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.8fr); gap: 64px; align-items: start; }
.footer-brand { display: inline-block; margin-bottom: 16px; }
.footer-brand img { display: block; height: 35px; width: auto; }
.footer-about p { margin: 0; max-width: 340px; line-height: 1.75; font-size: var(--text-sm); color: var(--gray-300); }
.footer-social { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--gray-300); font-size: var(--text-xs); text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-link-group { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.footer-link-group h2 { font-size: var(--text-sm); font-weight: 700; color: #fff; line-height: 1.5; margin: 0 0 7px; }
.footer-link-group a { color: var(--gray-300); font-size: var(--text-sm); line-height: 1.6; text-decoration: none; padding: 2px 0; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; opacity: 1; }
.footer a:focus-visible, .footer button:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 4px; border-radius: 3px; }
.footer .footer-newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; margin-top: 30px; padding: 24px 0 0; border-top: 1px solid #ffffff24; }
.footer .footer-newsletter-title { margin: 0 0 6px; font-size: var(--text-lg); line-height: 1.5; font-weight: 600; color: #fff; }
.footer-newsletter-copy p { margin: 0; font-size: var(--text-sm); line-height: 1.6; color: var(--gray-300); }
.footer .nl-form { width: 100%; min-width: 0; margin: 0; }
.footer .nl-row { gap: 10px; }
.footer .nl-input { min-width: 0; }
.footer .nl-note { font-size: var(--text-2xs); line-height: 1.6; color: var(--gray-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid #ffffff24; padding-top: 18px; padding-bottom: 20px; color: var(--gray-400); font-size: var(--text-2xs); line-height: 1.8; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }
.site-main:has(.national-coverage) + .footer { margin-top: 0; }
@media (max-width: 960px) {
    .footer-inner { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr); gap: 32px; }
    .footer-links { gap: 20px; }
}
@media (max-width: 760px) {
    .footer-top { padding-top: 30px; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .footer-about p { max-width: 460px; }
    .footer .footer-newsletter { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; padding-top: 22px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
    .footer-link-group:last-child { grid-column: 1 / -1; }
    .footer-link-group a { padding: 5px 0; }
    .footer .nl-row { flex-direction: column; }
    .footer .nl-submit { width: 100%; min-height: 44px; }
}

/* ./components/hero.css */
/* =========================
   HERO SELOGER STYLE
========================= */
.hero-modern {
    position: relative;
    background:
        linear-gradient(135deg, rgba(8, 25, 48, 0.91) 0%, rgba(13, 33, 55, 0.48) 100%),
        url("../images/hero-home-42SkjD0.webp") center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 64px 0 48px;
}

.hero-copy h1 {
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.08;
    margin: 0 0 20px;
    max-width: 720px;
    font-weight: 800;
    letter-spacing: -1.8px;
    color: #fff;
}

.hero-copy p {
    max-width: 540px;
    font-size: var(--text-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
}

/* =========================
   SEARCH BOX
========================= */
.search-box {
    position: relative;
    z-index: 3;
    margin-top: 32px;
    margin-bottom: 0;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-card);
    width: 100%;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-raised);
}

/* =========================
   TABS
========================= */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.tab {
    background: none;
    border: none;
    padding: 10px 20px 12px;
    font-weight: 600;
    font-size: var(--text-md);
    cursor: pointer;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* =========================
   HERO SEARCH FORM
========================= */
.hero-search-form {
    display: block;
}

.hero-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.hero-search-field {
    display: grid;
    gap: 6px;
    position: relative;
}

.hero-search-field label {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-search-field input,
.hero-search-field select {
    min-width: 0;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--text);
    font-size: var(--text-base);
    padding: 0 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-search-field input::placeholder {
    color: var(--gray-400);
}

.hero-search-field input:focus,
.hero-search-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.10);
}

.hero-search-field input:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.hero-search-field-keyword {
    grid-column: auto;
}

.hero-search-actions {
    display: flex;
    align-items: end;
}

.btn-search {
    padding-inline: 24px;
    width: 100%;
    height: 50px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: var(--text-md);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 100, 59, 0.28);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 100, 59, 0.34);
}

/* =========================
   SEARCH BOTTOM / FILTERS
========================= */
.hero-search-bottom {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-filter-chip {
    border: 1px solid var(--gray-300);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hero-filter-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.hero-reset-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.hero-reset-btn:hover {
    color: var(--primary);
}

/* =========================
   AUTOCOMPLETE
========================= */
.hero-search-field-city-autocomplete,
.hero-search-field-district-autocomplete {
    position: relative;
}

.hero-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
    animation: heroDropdownFade 0.12s ease;
}

.hero-autocomplete-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.hero-autocomplete-item:hover,
.hero-autocomplete-item.is-active {
    background: var(--primary-light);
    color: var(--primary);
}

.hero-autocomplete-empty {
    padding: 10px 12px;
    color: var(--muted);
    font-size: var(--text-sm);
}

.hero-after-space {
    height: 0;
    background: #fff;
}

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

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .hero-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-search-field-keyword {
        grid-column: span 2;
    }
}

@media (max-width: 980px) {
    .hero-content {
        padding: 40px 0;
    }

    .hero-copy h1 {
        font-size: var(--text-7xl);
    }

    .hero-copy p {
        font-size: var(--text-md);
    }

    .search-box {
        width: 100%;
        margin-bottom: 0;
    }
}

@media (max-width: 720px) {
    .hero-content {
        padding: 32px 0;
    }

    .hero-copy h1 {
        font-size: var(--text-6xl);
        margin-bottom: 14px;
    }

    .hero-copy p {
        font-size: var(--text-md);
    }

    .search-box {
        margin-top: 20px;
        margin-bottom: 0;
        padding: 16px;
        border-radius: var(--radius-card);
    }

    .tabs {
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        font-size: var(--text-base);
        padding: 8px 16px 10px;
    }

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

    .hero-search-field-keyword {
        grid-column: span 1;
    }

    .hero-search-field input,
    .hero-search-field select,
    .btn-search {
        height: 46px;
        border-radius: 6px;
    }

    .hero-search-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-after-space {
        height: 0;
    }
}

/* Repères éditoriaux de la page d’accueil. */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--primary-200);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hero-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--primary-300);
}
.hero-copy h1 span { color: var(--primary-300); }
.hero-explore {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 24px;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.85);
}
.hero-explore a { text-decoration: underline; text-underline-offset: 5px; }
.hero-explore a:hover { color: var(--primary-200); opacity: 1; }
@media (min-width: 1101px) {
    .hero-search-grid { gap: 16px; }
}
@media (max-width: 720px) {
    .hero-copy h1 { letter-spacing: -1px; }
    .hero-eyebrow { font-size: var(--text-2xs); letter-spacing: 0.1em; }
    .hero-explore { gap: 12px 18px; font-size: var(--text-xs); }
    .hero-search-field input, .hero-search-field select { font-size: var(--text-lg); }
}

/* Accueil : un bandeau plus court pour faire apparaître les biens plus tôt. */
.home-hero .hero-content { padding-top: 32px; padding-bottom: 28px; }
.home-hero .hero-eyebrow { margin-bottom: 12px; }
.home-hero .hero-copy h1 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 12px; }
.home-hero .hero-copy p { max-width: 680px; margin: 0; font-size: var(--text-lg); line-height: 1.5; }
.home-hero .search-box { margin-top: 24px; padding: 18px 24px; border-radius: var(--radius-card); }
.home-hero .tabs { margin-bottom: 14px; }
.home-hero .hero-search-bottom { margin-top: 10px; justify-content: flex-end; }
.home-hero .hero-explore { margin-top: 18px; }
@media (max-width: 720px) {
    .home-hero .hero-content { padding-top: 24px; padding-bottom: 22px; }
    .home-hero .search-box { padding: 16px; margin-top: 20px; }
    .home-hero .hero-copy h1 { font-size: var(--text-6xl); }
    .home-hero .hero-copy p { font-size: var(--text-md); }
    .home-hero .hero-search-bottom { align-items: flex-end; }
}

.home-hero .national-search-grid { display: flex; flex-wrap: wrap; align-items: flex-end; }
.home-hero .national-search-grid .hero-search-field { flex: 1 1 160px; }
.home-hero .national-search-grid .hero-search-field[hidden] { display: none; }
.national-coverage { padding: 40px 0; background: var(--gray-50); }
.national-coverage h2 { font-size: clamp(22px, 2vw, 28px); color: var(--gray-900); }
.national-coverage p { max-width: 1000px; color: var(--gray-600); line-height: 1.7; }
.national-city-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.national-city-links a { padding: 8px 12px; background: white; border: 1px solid var(--gray-200); border-radius: 8px; color: var(--gray-900); text-decoration: none; }
.national-city-links a:hover { border-color: var(--primary); }
.national-coverage summary { cursor: pointer; color: var(--gray-900); font-weight: 600; }
@media(max-width: 900px) { .home-hero .national-search-grid .hero-search-field { flex-basis: calc(50% - 12px); } }
@media(max-width: 600px) {
    .home-hero .national-search-grid .hero-search-field,
    .home-hero .national-search-grid .hero-search-actions { flex-basis: 100%; }
    .home-hero .national-search-grid .btn-search { width: 100%; }
}

/* Phrase libre et suggestions pendant la frappe */
.home-hero .national-search-grid .national-search-text { flex-basis: 100%; position: relative; }
.search-suggest { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin-top: 6px; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 35, 64, .16); overflow: hidden; text-align: left; }
.search-suggest a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: var(--gray-900); text-decoration: none; border-top: 1px solid var(--gray-100); }
.search-suggest a:first-child { border-top: 0; }
.search-suggest a:hover, .search-suggest a:focus { background: var(--primary-light); outline: none; }
.ss-understood { background: var(--gray-50); }
.ss-icon { font-size: var(--text-xl); }
.ss-understood-body { display: grid; gap: 4px; min-width: 0; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ss-chip { padding: 2px 8px; border-radius: 999px; background: var(--primary-light); border: 1px solid var(--primary-200); color: var(--primary-dark); font-size: var(--text-xs); font-weight: 600; }
.ss-count { color: var(--primary); font-weight: 700; font-size: var(--text-sm); }
.ss-corrected { margin: 0; padding: 6px 12px; font-size: var(--text-xs); color: var(--gray-600); background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.search-suggest img, .ss-noimg { flex: 0 0 64px; width: 64px; height: 43px; border-radius: 6px; object-fit: cover; background: var(--gray-100); display: grid; place-items: center; }
.ss-item-body { display: grid; min-width: 0; }
.ss-item-title { font-weight: 600; font-size: var(--text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item-meta { font-size: var(--text-xs); color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Accueil : bandeau blanc, titre noir, photos d'annonces encadrées à droite (assets/js/hero-slides.js),
   carte de recherche blanche qui chevauche le bas de la photo. Sur téléphone, la photo forme un bandeau en haut. */
.home-hero { background: #fff; display: block; }
.home-hero .hero-content { color: var(--secondary); padding-top: 56px; }
.home-hero .hero-copy { max-width: 46%; }
.home-hero .hero-copy h1 { color: var(--secondary); }
.home-hero .hero-copy h1 span { color: var(--primary); }
.home-hero .hero-copy p { color: var(--gray-600); }
.home-hero .hero-eyebrow { color: var(--primary); }
.home-hero .search-box { margin-top: 40px; border: 1px solid var(--border-strong); box-shadow: var(--shadow-raised); }
.home-hero .hero-explore { color: var(--gray-600); }
.home-hero .hero-explore a { color: var(--secondary); }
.home-hero .hero-explore a:hover { color: var(--primary); }

.home-hero .hero-slides,
.home-hero .hero-overlay {
    /* Les quatre côtés sont fixés : aucune règle plus ancienne (inset: 0) ne peut ramener la photo à gauche */
    position: absolute; top: 0; right: 0; bottom: auto; left: auto; width: 52%; height: 340px;
    border-bottom-left-radius: 32px; overflow: hidden;
}
.home-hero .hero-slides { z-index: 0; }
/* Fondu blanc sur le bord gauche de la photo : le titre reste sur du blanc */
.home-hero .hero-overlay {
    display: block; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 22%);
}
.home-hero .hero-slide {
    position: absolute; inset: 0;
    background: url("../images/hero-home-42SkjD0.webp") center center / cover no-repeat;
    opacity: 0; transition: opacity 1.4s ease-in-out; will-change: opacity, transform;
}
.home-hero .hero-slide.is-active { opacity: 1; }
.home-hero .hero-slide.is-leaving { opacity: 0; }
/* Léger zoom continu : la photo d'annonce s'anime pendant qu'elle est affichée, puis pendant son fondu de sortie */
.home-hero .hero-slide[style].is-active,
.home-hero .hero-slide[style].is-leaving { animation: hero-zoom 9s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Légende : l'annonce de la photo affichée */
.hero-slide-caption {
    display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%;
    margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: var(--secondary); font-size: var(--text-sm); transition: opacity .5s ease;
}
.hero-slide-caption[hidden] { display: none; }
.hero-slide-caption.is-changing { opacity: 0; }
.hero-slide-link { display: flex; align-items: baseline; gap: 10px; min-width: 0; color: var(--secondary); text-decoration: none; white-space: nowrap; }
.hero-slide-link > * { flex: none; }
.hero-slide-place { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--gray-500); }
.hero-slide-kind { font-weight: 700; }
.hero-slide-place:empty { display: none; }
.hero-slide-price { color: var(--primary); font-weight: 800; }
.hero-slide-cta { text-decoration: underline; text-underline-offset: 4px; }
.hero-slide-link:hover .hero-slide-cta, .hero-slide-link:focus-visible .hero-slide-cta { color: var(--primary); }
.hero-slide-pause {
    flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--gray-100); color: var(--secondary); font-size: var(--text-2xs); line-height: 1;
}
.hero-slide-pause:hover { background: var(--gray-200); }
.hero-slide-pause:focus-visible, .hero-slide-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Ligne du bas : « Explorez aussi » à gauche, légende à droite ; l'une sous l'autre si la place manque */
.home-hero .hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.home-hero .hero-bottom .hero-explore { margin-top: 0; }
.home-hero .hero-bottom .hero-slide-caption { margin-top: 0; }
@media (max-width: 900px) {
    .home-hero .hero-slides { position: relative; width: 100%; height: 200px; border-radius: 0; }
    .home-hero .hero-overlay { display: none; }
    .home-hero .hero-copy { max-width: none; }
    .home-hero .hero-content { padding-top: 24px; }
}
@media (max-width: 720px) {
    .hero-slide-caption { border-radius: 14px; font-size: var(--text-xs); padding: 8px 8px 8px 12px; }
    .hero-slide-link { flex-wrap: wrap; white-space: normal; gap: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero .hero-slide { transition: none; }
    .home-hero .hero-slide[style].is-active, .home-hero .hero-slide[style].is-leaving { animation: none; }
}

/* Accueil : bandeau compact et légende rattachée à la photo. */
.home-hero .hero-content { padding-top: 38px; padding-bottom: 24px; }
.home-hero .hero-copy h1 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.12; margin-bottom: 14px; letter-spacing: -1.3px; }
.home-hero .hero-copy p { font-size: var(--text-lg); line-height: 1.55; margin-bottom: 0; }
.home-hero .hero-eyebrow { margin-bottom: 16px; }
.home-hero .hero-slides, .home-hero .hero-overlay { height: 295px; }
.hero-initial-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero .search-box { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-card); }
.home-hero .hero-search-grid { gap: 16px; }
.home-hero .hero-bottom { margin-top: 14px; }
.home-hero .hero-photo-caption { position: absolute; z-index: 3; top: 228px; right: 24px; margin: 0; max-width: calc(48% - 24px); border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 20px #1429411a; }
.home-hero .hero-photo-caption .hero-slide-link { flex-wrap: wrap; gap: 3px 10px; white-space: normal; font-size: var(--text-xs); }
.home-hero .hero-photo-caption .hero-slide-price { font-weight: 700; }
.hero-slide-pause[hidden] { display: none; }
@media (max-width: 980px) and (min-width: 769px) {
    .home-hero .hero-copy h1 { font-size: var(--text-6xl); }
    .home-hero .hero-photo-caption { font-size: var(--text-2xs); top: 218px; }
}
@media (max-width: 768px) {
    .home-hero .hero-slides { height: 190px; }
    .home-hero .hero-overlay { display: none; }
    .home-hero .hero-content { padding-top: 24px; padding-bottom: 20px; }
    .home-hero .hero-copy { max-width: none; }
    .home-hero .hero-copy h1 { font-size: var(--text-6xl); }
    .home-hero .hero-copy p { font-size: var(--text-base); }
    .home-hero .hero-photo-caption { top: 120px; right: 12px; left: 12px; max-width: none; width: auto; background: #fffffff5; }
    .home-hero .search-box { margin-top: 20px; padding: 18px; }
}

/* Liens locaux : transition directe vers le pied de page. */
.national-coverage { padding: 32px 0; }
.national-coverage h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 10px; }
.national-coverage > .container > p { max-width: 850px; margin: 0; font-size: var(--text-base); }
.national-city-links { gap: 8px; margin: 18px 0; }
.national-city-links a { font-size: var(--text-sm); padding: 9px 12px; }
.national-city-links a:focus-visible, .national-coverage summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.national-coverage summary { font-size: var(--text-sm); padding: 8px 0; }
.national-coverage details p { font-size: var(--text-sm); }
@media (max-width: 600px) { .national-coverage { padding: 26px 0; } }

/* ── Téléphone : recherche compacte, titre plus court à l'écran ── */
@media (max-width: 600px) {
    .home-hero .hero-copy h1 { font-size: var(--text-5xl); letter-spacing: -.8px; }
    .home-hero .hero-copy p { font-size: var(--text-md); }
    .home-hero .search-box { margin-top: 16px; padding: 14px; }
    .hero-search-form.is-compact .national-search-grid { gap: 10px; }
    .hero-search-form.is-compact .national-search-text label { display: none; }
    .hero-search-form.is-compact:not(.is-expanded) .hero-search-field:not(.national-search-text) { display: none; }
    .hero-search-form.is-compact .hero-search-actions { order: 10; }
    .hero-more-toggle { order: 5; flex-basis: 100%; display: flex; align-items: baseline; gap: 8px; padding: 2px 0; border: 0; background: none; color: var(--gray-900); font: inherit; font-size: var(--text-base); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
    .hero-more-toggle span { font-weight: 400; font-size: var(--text-xs); color: var(--gray-500); text-decoration: none; }
    .hero-more-toggle[hidden] { display: none; }
    .hero-search-form.is-expanded .hero-more-toggle { display: none; }
    .hero-search-form.is-compact .hero-search-field:not(.national-search-text) { order: 6; }
}

/* ./components/card-gallery.css */
/* ═══════════════════════════════════════════════════════════════════════════
   CARD GALLERY — système universel hover-to-browse (style autosphere)
   Utilisé sur : cartes véhicules, annonces immobilières, hôtels.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Racine ──────────────────────────────────────────────────────────────── */
[data-cg] {
    position: relative;
    overflow: hidden;
    display: block;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Track ───────────────────────────────────────────────────────────────── */
.cg-track {
    display: flex;
    position: absolute;   /* remplit exactement le conteneur [data-cg] */
    inset: 0;
    transition: none;     /* instant au survol souris — animé seulement sur clic */
}

[data-cg]:hover .cg-track {
    will-change: transform;
}

/* Clic sur flèche/dot → animation douce */
[data-cg].cg-clicking .cg-track {
    transition: transform 0.26s ease;
}

/* Défilement automatique au survol → glissement fluide */
[data-cg].cg-autoplay .cg-track {
    transition: transform 0.45s ease;
}

/* ── Slide ───────────────────────────────────────────────────────────────── */
.cg-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Placeholder quand pas d'image */
.cg-slide-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--gray-100);
    color: var(--gray-400);
    gap: 8px;
    font-size: var(--text-xs);
}

/* ── Scrim gradient (bas de l'image) ─────────────────────────────────────── */
.cg-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,.20) 0%,
        rgba(0,0,0,.04) 40%,
        transparent 68%);
    pointer-events: none;
    z-index: 2;
}

/* ── Dots ────────────────────────────────────────────────────────────────── */
.cg-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 4;
    pointer-events: none;
}

.cg-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: background .12s, transform .12s, width .12s;
    flex-shrink: 0;
}

.cg-dot.is-active {
    background: #fff;
    width: 14px;
    border-radius: 3px;
    transform: none;
}

/* trop de dots → réduit la taille */
[data-cg][data-cg-count="7"] .cg-dot,
[data-cg][data-cg-count="8"] .cg-dot,
[data-cg][data-cg-count="9"] .cg-dot,
[data-cg][data-cg-count="10"] .cg-dot { width: 4px; height: 4px; }

/* ── Arrows ──────────────────────────────────────────────────────────────── */
.cg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: var(--text-xl);
    line-height: 1;
    color: var(--gray-900);
    box-shadow: 0 1px 6px rgba(0,0,0,.22);
    padding: 0;
    opacity: 0;
    transition: opacity .14s, background .12s;
    pointer-events: none;
}

[data-cg]:hover .cg-arrow {
    opacity: 1;
    pointer-events: auto;
}

.cg-arrow:hover { background: #fff; }

.cg-arrow-left  { left: 8px; }
.cg-arrow-right { right: 8px; }

/* ── Photo counter (coin bas droit) ──────────────────────────────────────── */
.cg-photo-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 4;
    background: rgba(0,0,0,.48);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    letter-spacing: .02em;
}

/* ── Curseur pointer sur la zone image ──────────────────────────────────── */
[data-cg][data-href] { cursor: pointer; }

/* ── Variante hôtel (card horizontale) ───────────────────────────────────── */
/* Largeur et hauteur : celles de la mise en page des hôtels (pages/hotel.css, ordinateur / tablette / mobile).
   Les fixer ici, avec ce sélecteur plus fort, gardait la photo à 220 px sur mobile au lieu de toute la largeur. */
.hotel-card [data-cg].hotel-card-img-link {
    flex-shrink: 0;
    position: relative;   /* nécessaire pour que .cg-track position:absolute fonctionne */
}

.hotel-card [data-cg].hotel-card-img-link .cg-arrow {
    width: 22px;
    height: 22px;
    font-size: var(--text-md);
}

.hotel-card [data-cg].hotel-card-img-link .cg-dot {
    width: 4px;
    height: 4px;
}

.hotel-card [data-cg].hotel-card-img-link .cg-dot.is-active {
    width: 10px;
}

/* ── Variante véhicule ───────────────────────────────────────────────────── */
.vc-media[data-cg] {
    aspect-ratio: 4 / 3;
    border-radius: 10px 10px 0 0;
    background: var(--gray-200);
    position: relative;   /* anchor pour .cg-track position:absolute */
    overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* Sur mobile les arrows disparaissent (swipe suffit) */
    .cg-arrow { display: none; }
    .cg-dots  { gap: 4px; bottom: 6px; }
}


/* =========================
   IMPORTS PAGES
========================= */
/* ./pages/home.css */
/* =========================
   SECTION TITLES
========================= */
.home-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.home-section-title h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.home-section-title p {
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    font-size: var(--text-base);
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-section-link:hover {
    background: var(--gray-100);
    border-color: var(--secondary);
    opacity: 1;
}

/* =========================
   CATEGORIES
========================= */
.category-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb), 0.18);
    box-shadow: var(--shadow-hover);
}

.category-card h3 {
    margin: 0 0 6px;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--secondary);
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.category-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--text-3xl);
    margin-bottom: 14px;
}

/* =========================
   ANNONCES GRILLE
========================= */
.home-listings-section {
    background: #fff;
    padding: 56px 0;
    margin: 0;
}

.home-listings-section .home-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* =========================
   CARD ANNONCE — STYLE SELOGER
========================= */
.home-listing-card {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.home-listing-card:hover {
    transform: translateY(-4px);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-hover);
}

/* =========================
   MEDIA (galerie)
========================= */
.home-listing-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-200);
    touch-action: pan-y;
    border-radius: 12px 12px 0 0;
}

.home-listing-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.home-listing-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    position: relative; /* conteneur de son propre skeleton */
    overflow: hidden;
}

.home-listing-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.home-listing-card:hover .home-listing-slide img {
    transform: scale(1.04);
}

.home-listing-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--gray-200);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Gradient bas pour lisibilité des badges */
.home-listing-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.30) 0%, transparent 38%);
}

/* =========================
   FLÈCHES
========================= */
.home-listing-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--secondary);
    font-size: var(--text-xl);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.home-listing-card:hover .home-listing-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.home-listing-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06) !important;
}

.home-listing-arrow.is-left  { left: 10px; }
.home-listing-arrow.is-right { right: 10px; }

/* =========================
   DOTS
========================= */
.home-listing-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 8;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.26);
}

.home-listing-dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.home-listing-dot.is-active {
    background: #fff;
    transform: scale(1.4);
}

/* =========================
   BADGES — en bas à gauche de l'image
========================= */
.home-listing-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 9;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    pointer-events: none;
}

.home-listing-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--badge-radius);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.home-listing-badge.is-new {
    background: var(--badge-new-bg); color: var(--badge-new-fg);
}

.home-listing-badge.is-premium {
    background: var(--badge-premium-bg); color: var(--badge-premium-fg);
}

.home-listing-badge.is-urgent {
    background: var(--badge-urgent-bg); color: var(--badge-urgent-fg);
}

.home-listing-badge.is-boost {
    background: var(--badge-boost-bg); color: var(--badge-boost-fg);
}

.home-listing-badge.is-verified {
    background: var(--badge-verified-bg); color: var(--badge-verified-fg);
}

/* Compteur photos (1/5) — en bas à droite */
.home-listing-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 9;
    background: rgba(0, 0, 0, 0.50);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    pointer-events: none;
    letter-spacing: 0.01em;
}

/* =========================
   CONTENU CARTE — style SeLoger exact
========================= */
.home-listing-body {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.home-listing-body:hover {
    opacity: 1;
}

/* Ligne prix : "250 000 GNF  ·  2 000 GNF/m²" */
.home-listing-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.home-listing-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.home-listing-price-sqm {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

/* Caractéristiques sur une ligne : pièces · chambres · m² */
.home-listing-specs {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--secondary-light);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
}

.home-listing-title-fallback {
    color: var(--text);
    font-weight: 500;
}

/* Localisation en bas */
.home-listing-location {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-listing-location::before {
    content: "📍";
    font-size: var(--text-2xs);
    flex-shrink: 0;
}

/* =========================
   SECTION RÉASSURANCE
========================= */
.home-reassurance-section {
    background: var(--secondary);
    padding: 48px 0;
    margin: 0;
}

.home-reassurance-section .home-section-title h2 {
    color: #fff;
}

.home-reassurance-section .home-section-title p {
    color: rgba(255, 255, 255, 0.68);
}

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

.reassurance-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 24px 20px;
    display: grid;
    gap: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.reassurance-card:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-2px);
}

.reassurance-icon {
    font-size: var(--text-5xl);
    line-height: 1;
    margin-bottom: 4px;
}

.reassurance-card h3 {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 700;
    color: #fff;
}

.reassurance-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .home-listings-section .home-listings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-listings-section .home-listings-grid {
        grid-template-columns: 1fr;
    }

    .home-listing-media {
        height: 210px;
    }

    .reassurance-grid {
        grid-template-columns: 1fr;
    }

    .how-steps {
        flex-direction: column;
        gap: 20px;
    }

    .how-step-arrow {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   COMMENT ÇA MARCHE
══════════════════════════════════════════════════════════════ */
.home-how-section {
    padding: 64px 0 56px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.home-how-section .home-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
}

.home-how-section .home-section-title h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 6px;
}

.home-how-section .home-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-md);
}

.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.how-step {
    flex: 1;
    display: grid;
    gap: 10px;
    padding: 28px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    position: relative;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.how-step:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.how-step-number {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.30);
}

.how-step-icon {
    font-size: var(--text-6xl);
    line-height: 1;
    margin-top: 6px;
}

.how-step-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.how-step-desc {
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.how-step-arrow {
    flex-shrink: 0;
    font-size: var(--text-5xl);
    color: var(--gray-300);
    display: flex;
    align-items: center;
    padding: 0 8px;
    margin-top: 40px;
    font-weight: 300;
}

.how-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.how-trust-item {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 880px) {
    .home-how-section .home-section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .how-steps {
        flex-direction: column;
        gap: 32px;
    }

    .how-step-arrow {
        display: none;
    }

    .how-trust-bar {
        gap: 16px;
        justify-content: flex-start;
    }
}

/* =========================
   HOME STATS BAR
========================= */
.home-stats-bar {
    background: #fff;
    color: var(--secondary);
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.home-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.home-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.home-stat-num {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.home-stat-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gray-600);
}

.home-stat-sep {
    width: 1px;
    height: 22px;
    background: var(--gray-200);
    align-self: center;
}

@media (max-width: 580px) {
    .home-stats-inner { gap: 14px 24px; }
    .home-stat-num { font-size: var(--text-lg); }
    .home-stat-sep { display: none; }
}

/* =========================
   HOME VEHICLES SECTION
========================= */
.home-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.home-vc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: var(--shadow-card);
}

.home-vc-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* [data-cg] nécessite position:relative — déjà fourni par .home-vc-media */
.home-vc-media {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-200);
    overflow: hidden;
    cursor: pointer;
}

/* Les images dans le track ne doivent pas avoir de transition scale
   (la galerie change de slide, pas l'image individuelle) */
.home-vc-media .cg-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}


.home-vc-no-img {
    width: 100%; height: 100%;
    display: grid;
    place-items: center;
    font-size: var(--text-6xl);
}

.home-vc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--badge-new-bg); color: var(--badge-new-fg);
    font-size: var(--text-2xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--badge-radius);
}

.home-vc-body {
    padding: 11px 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: inherit;
}

.home-vc-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.3;
}

.home-vc-name strong { font-weight: 800; }

.home-vc-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.3px;
}

.home-vc-price span {
    font-size: var(--text-2xs);
    font-weight: 600;
    color: var(--muted);
}

.home-vc-meta {
    font-size: var(--text-2xs);
    color: var(--muted);
}

.home-vc-loc {
    font-size: var(--text-2xs);
    color: var(--muted);
    margin-top: 2px;
}

.home-vc-sell-strip {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--secondary);
}

.home-vc-sell-btn {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-vc-sell-btn:hover { background: var(--primary); }

.home-vc-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.home-vc-empty a { color: var(--primary); font-weight: 700; }

@media (max-width: 1000px) {
    .home-vehicles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .home-vehicles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-vc-sell-strip { flex-direction: column; text-align: center; }
}

/* =========================
   SUCCESS PAGE
========================= */
.success-page {
    padding: 40px 0 80px;
    background: var(--gray-50);
    min-height: 70vh;
}

.success-page .container {
    max-width: 760px;
}

.success-header {
    text-align: center;
    margin-bottom: 28px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(34,197,94,0.3);
}

.success-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.success-sub {
    font-size: var(--text-base);
    color: var(--muted);
    margin: 0;
}

/* Preview card */
.success-preview {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    display: flex;
    gap: 20px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.success-preview-media {
    flex-shrink: 0;
    width: 130px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-200);
}

.success-preview-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.success-preview-no-img {
    width: 100%; height: 100%;
    display: grid;
    place-items: center;
    font-size: var(--text-7xl);
}

.success-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.success-preview-label {
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin: 0;
}

.success-preview-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.success-preview-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.success-preview-suffix {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
}

.success-preview-location {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0;
}

.success-preview-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-2xs);
    color: var(--muted);
    font-weight: 500;
}

.sp-dot { opacity: 0.4; }

.success-view-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    transition: opacity 0.15s;
}

.success-view-btn:hover { background: var(--primary-dark); }

/* Share */
.success-share {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    margin-bottom: 18px;
}

.success-share-icon { font-size: var(--text-4xl); margin-bottom: 8px; }

.success-share-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 14px;
}

.success-share-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #25d366;
    color: #fff;
    border-radius: 14px;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
}

.success-wa-btn:hover { background: #1fbb59; }

.success-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #1877f2;
    color: #fff;
    border-radius: 14px;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
}

.success-fb-btn:hover { background: #166fe5; }

/* Upsell */
.success-upsell {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 26px;
    margin-bottom: 18px;
}

.success-upsell-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 4px;
    text-align: center;
}

.success-upsell-sub {
    font-size: var(--text-sm);
    color: var(--muted);
    text-align: center;
    margin: 0 0 22px;
}

.success-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.success-plan {
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    position: relative;
    transition: border-color 0.15s;
}

.success-plan:hover { border-color: var(--gray-400); }

.success-plan.is-featured {
    border-color: var(--primary);
    background: var(--gray-50);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.1);
}

.success-plan-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.success-plan-badge {
    display: inline-block;
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 999px;
    padding: 3px 12px;
    align-self: center;
}

.success-plan-badge.is-orange { background: #fff0e0; color: var(--primary); }
.success-plan-badge.is-blue   { background: #dbeafe; color: #1d4ed8; }
.success-plan-badge.is-gold   { background: #fef9c3; color: var(--primary-dark); }

.success-plan-price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.success-plan-price span {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
}

.success-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--text-xs);
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.success-plan-list li::before {
    content: '✓ ';
    color: #22c55e;
    font-weight: 700;
}

.success-plan-btn {
    display: block;
    padding: 10px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.success-plan-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-900);
}

.success-plan-btn.is-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.success-plan-btn.is-primary:hover { background: var(--primary); }

/* Actions */
.success-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-action-link {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.success-action-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .success-preview {
        flex-direction: column;
    }
    .success-preview-media {
        width: 100%;
        height: 160px;
    }
    .success-plans {
        grid-template-columns: 1fr;
    }
    .success-plan.is-featured {
        order: -1;
    }
}


@media (max-width: 720px) {
    .home-section-title { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
    .home-section-title h2 { font-size: var(--text-4xl); }
    .home-listings-section { padding: 32px 0; }
    .home-listing-body { padding: 16px; }
    .home-stat { flex-direction: column; align-items: center; text-align: center; }
}

/* Accueil : catégories compactes, pictogrammes et agences partenaires. */
.home-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.home-stats-bar { padding: 18px 0; }
.home-categories-section { padding: 32px 0; margin: 0; }
.home-categories-section .home-section-title { margin-bottom: 20px; }
/* 10 cartes (7 catégories immobilières + véhicules à acheter / à louer + hôtels) : 2 rangées de 5 */
.home-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-category-grid .category-card { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px; box-shadow: var(--shadow-card); }
.home-category-grid .category-card-icon { width: 40px; height: 40px; flex-shrink: 0; margin: 0; border-radius: 10px; }
.home-category-grid .category-card h3 { margin: 0; line-height: 1.4; }
.home-listings-section { padding: 36px 0; }
.home-how-section { padding: 40px 0; }
.home-how-section .home-section-title { margin-bottom: 32px; }
.how-step-icon, .reassurance-icon { color: var(--primary); }
.how-step-icon .home-icon, .reassurance-icon .home-icon { width: 28px; height: 28px; }
.how-trust-item .home-icon { width: 18px; height: 18px; }
.home-agencies-section { background: var(--gray-50); padding: 40px 0; }
.home-agencies-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-agency-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: white; color: var(--secondary); }
.home-agency-card:hover { border-color: var(--primary); }
.home-agency-card img, .home-agency-initial { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; flex-shrink: 0; background: var(--primary-light); padding: 6px; }
.home-agency-initial { display: grid; place-items: center; font-size: var(--text-4xl); font-weight: 700; color: var(--primary); }
.home-agency-card strong { display: block; overflow-wrap: anywhere; }
.home-agency-city { display: block; margin-top: 6px; color: var(--muted); font-size: var(--text-sm); }
.home-agency-arrow { margin-left: auto; color: var(--primary); }
.home-agency-join { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: white; }
.home-agencies-grid + .home-agency-join { margin-top: 20px; }
.home-agency-join h3 { font-size: var(--text-xl); margin: 0 0 8px; }
.home-agency-join p { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.5; }
@media (max-width: 1100px) {
    .home-agencies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-category-grid .category-card { gap: 10px; padding: 12px; min-height: 78px; }
    .home-category-grid .category-card h3 { font-size: var(--text-sm); }
    .home-category-grid .category-card-icon { width: 32px; height: 32px; }
    .home-category-grid .home-icon { width: 20px; height: 20px; }
    .home-agencies-section { padding: 32px 0; }
}
@media (max-width: 480px) {
    .home-agencies-grid { grid-template-columns: 1fr; }
    .home-agency-join .btn { width: 100%; text-align: center; }
}

/* Véhicule en location : badge sur la photo (à la place de « Neuf ») */
.home-vc-badge-rent { background: var(--badge-rent-bg); color: var(--badge-rent-fg); box-shadow: var(--badge-rent-ring); }

/* Même présentation pour les annonces immobilières et les véhicules de l'accueil. */
.home-listings-section .home-offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.home-listings-section .home-offer-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.home-listings-section .home-offer-card:hover { transform: translateY(-2px); border-color: var(--gray-300); box-shadow: var(--shadow-hover); }
.home-listings-section .home-offer-media { aspect-ratio: 16 / 10; height: auto; flex-shrink: 0; border-radius: 0; }
.home-listings-section .home-offer-body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 18px; min-height: 132px; }
.home-listings-section .home-offer-price { font-size: var(--text-xl); font-weight: 800; line-height: 1.3; color: var(--secondary); letter-spacing: -.3px; }
.home-listings-section .home-vc-name { font-size: var(--text-md); line-height: 1.4; }
.home-listings-section .home-vc-meta, .home-listings-section .home-listing-specs { font-size: var(--text-sm); line-height: 1.5; margin: 0; }
.home-listings-section .home-listing-price-row { margin-bottom: 0; }
.home-listings-section .home-offer-location { font-size: var(--text-xs); line-height: 1.5; margin: auto 0 0; padding-top: 3px; }
.home-listings-section .home-listing-badges { top: 10px; bottom: auto; }
.home-listings-section .home-vc-badge { top: 10px; left: 10px; font-size: var(--text-2xs); height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 5px; }
.home-listings-section .home-listing-count, .home-listings-section .cg-photo-count { right: 10px; bottom: 10px; font-size: var(--text-2xs); padding: 3px 8px; border-radius: 5px; }
@media (max-width: 900px) {
    .home-listings-section .home-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 540px) {
    .home-listings-section .home-offer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-listings-section .home-offer-body { padding: 16px; }
}

/* ./pages/listing.css */
.listing-page-section {
    margin: 20px 0 36px;
}

.listing-page-wrapper {
    width: min(1800px, 96%);
    margin: 0 auto;
}

.listing-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

/* =========================
   SIDEBAR FILTRES
========================= */
.listing-sidebar {
    position: sticky;
    top: 76px;
}

.listing-sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.listing-sidebar-title {
    margin: 0 0 16px;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.listing-filters-form {
    display: grid;
    gap: 14px;
}

.filter-group {
    display: grid;
    gap: 6px;
}

.filter-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.listing-filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Save search / alert button */
.listing-save-search-form {
    margin-top: 10px;
}

.listing-save-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    border: 1.5px dashed var(--primary);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.listing-save-search-btn:hover {
    background: var(--primary-light);
}
.listing-save-search-btn--ghost {
    border-color: var(--muted);
    color: var(--muted);
}
.listing-save-search-btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* =========================
   RESULTATS / HEADER
========================= */
.listing-results {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.listing-results-head {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}

.listing-results-kicker {
    margin: 0 0 4px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--text-2xs);
    font-weight: 700;
}

.listing-results-head h1 {
    margin: 0 0 6px;
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
}

.listing-results-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: var(--shadow-card);
}

.listing-toolbar-count {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text);
}

.listing-toolbar-count strong {
    color: var(--primary);
}

.listing-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-sort label {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.listing-sort select {
    min-width: 180px;
    min-height: var(--field-height-compact);
    padding: 0 10px;
    font-size: var(--field-font-compact);
}

/* =========================
   EMPTY STATE
========================= */
.listing-empty {
    display: grid;
    gap: 8px;
}

.listing-empty h2 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 700;
}

.listing-empty p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* =========================
   GRID ANNONCES — 6 colonnes
========================= */
.listing-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

/* Annonce vedette : pleine largeur horizontale */
.listing-card-premium.is-featured-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    border-top: 3px solid var(--primary);
}

.listing-card-premium.is-featured-card .listing-card-media-slider {
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
    border-radius: 0;
}

.listing-card-premium.is-featured-card .listing-card-content {
    padding: 20px 22px;
    justify-content: space-between;
}

.listing-card-premium.is-featured-card .listing-card-title {
    font-size: var(--text-2xl);
}

.listing-card-premium.is-featured-card .listing-card-price {
    font-size: var(--text-5xl);
}

.listing-card-premium.is-featured-card .listing-card-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 10px;
}

.listing-card-featured-badge {
    display: none;
}

/* =========================
   CARD ANNONCE
========================= */
.listing-card-premium {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.18s ease;
    position: relative;
}

.listing-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(232, 83, 10, 0.18);
}

.listing-card-premium.is-premium {
    border-top: 2px solid #f59e0b;
}

.listing-card-premium.is-boost {
    border-top: 2px solid #2563eb;
}

.listing-card-premium.is-urgent {
    border-top: 2px solid #dc2626;
}

.listing-card-premium.is-verified {
    border-top: 2px solid #10b981;
}

/* =========================
   LINK WRAPPER
========================= */
.listing-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.listing-card-link:hover {
    opacity: 1;
}

/* =========================
   MEDIA SLIDER
========================= */
.listing-card-media-slider {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-200);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.listing-card-media-track {
    display: flex;
    height: 100%;
    width: 100%;
    /* transition gérée par .cg-track dans card-gallery.css */
}

.listing-card-premium:hover .listing-card-media-track {
    will-change: transform;
}

.listing-card-media-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex: 0 0 100%;
}

.listing-card-media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    pointer-events: none;
    image-rendering: auto;
}

.listing-card-premium:hover .listing-card-media-slide img {
    transform: scale(1.04);
}

.listing-card-media-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.04) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

@keyframes card-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.listing-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: card-shimmer 1.6s ease-in-out infinite;
    color: var(--gray-400);
    gap: 8px;
}

.listing-card-media-placeholder span {
    font-size: var(--text-xs);
    font-weight: 500;
    display: block;
}

/* =========================
   FLÈCHES GALERIE CARD
========================= */
.listing-card-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    z-index: 20;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    opacity: 0;
    font-size: var(--text-xl);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition:
        opacity 0.18s ease,
        transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Visible on card hover or touch (keyboard focus kept always visible) */
.listing-card-media-slider:hover .listing-card-gallery-arrow,
.listing-card-media-slider:focus-within .listing-card-gallery-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.listing-card-gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.listing-card-gallery-arrow:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.24);
    outline-offset: 2px;
}

.listing-card-gallery-arrow.is-left {
    left: 10px;
}

.listing-card-gallery-arrow.is-right {
    right: 10px;
}

/* =========================
   DOTS
========================= */
.listing-card-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    pointer-events: auto;
}

.listing-card-gallery-dot {
    width: 14px;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.listing-card-gallery-dot.is-active {
    background: #fff;
    width: 22px;
}

/* =========================
   BADGES VISIBILITE
========================= */
.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 21;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: var(--badge-radius);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
}

.listing-badge-secondary {
    top: 38px;
}

.listing-badge-urgent {
    background: var(--badge-urgent-bg); color: var(--badge-urgent-fg);
}

.listing-badge-boost {
    background: var(--badge-boost-bg); color: var(--badge-boost-fg);
}

.listing-badge-premium {
    background: var(--badge-premium-bg); color: var(--badge-premium-fg);
}

.listing-badge-verified {
    background: var(--badge-verified-bg); color: var(--badge-verified-fg);
}

.listing-badge-new {
    background: var(--badge-new-bg); color: var(--badge-new-fg);
}

/* =========================
   FAVORIS
========================= */
.listing-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--muted);
    font-size: var(--text-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    z-index: 22;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.listing-favorite-btn:hover {
    background: #fff;
    transform: scale(1.08);
    color: #dc2626;
}

.listing-favorite-btn.is-active {
    background: #fff;
    color: #dc2626;
}

.listing-favorite-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* =========================
   CONTENU CARD
========================= */
.listing-card-content {
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
}

.listing-card-price {
    color: var(--accent);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.listing-card-title {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1.35;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.listing-card-title-link:hover {
    color: var(--primary);
}

.listing-card-location {
    color: var(--muted);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-100);
}

.listing-card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary);
}

.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.listing-card-status {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

/* cartes en mode 6 colonnes : image plus haute pour compenser la largeur réduite */
.listing-cards-grid .listing-card-media-slider {
    aspect-ratio: 4 / 3;
}

.listing-cards-grid .listing-card-content {
    padding: 10px 12px 12px;
    gap: 6px;
}

.listing-cards-grid .listing-card-price {
    font-size: var(--text-xl);
}

.listing-cards-grid .listing-card-title {
    font-size: var(--text-sm);
}

.listing-cards-grid .listing-card-location {
    font-size: var(--text-xs);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1600px) {
    .listing-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .listing-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .listing-page {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
    }

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

    /* rétablir les tailles normales sans sidebar */
    .listing-cards-grid .listing-card-media-slider {
        aspect-ratio: 16 / 10;
    }

    .listing-cards-grid .listing-card-content {
        padding: 12px 14px 14px;
        gap: 8px;
    }

    .listing-cards-grid .listing-card-price {
        font-size: var(--text-3xl);
    }

    .listing-cards-grid .listing-card-title {
        font-size: var(--text-md);
    }

    .listing-cards-grid .listing-card-location {
        font-size: var(--text-sm);
    }
}

@media (max-width: 720px) {
    .listing-card-premium.is-featured-card {
        grid-template-columns: 1fr;
    }

    .listing-card-premium.is-featured-card .listing-card-media-slider {
        min-height: 200px;
    }
}

@media (max-width: 540px) {
    .listing-cards-grid {
        grid-template-columns: 1fr;
    }

    .listing-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════════════════════
   GÉOLOCALISATION — vue carte + toggle + proximité
══════════════════════════════════════════════════════════════ */

/* Bandeau proximité */
.listing-near-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f7ff;
    border: 1.5px solid #c3dffe;
    border-radius: 8px;
    font-size: var(--text-sm);
    color: #1a4c8a;
    margin-bottom: 14px;
}

.listing-near-banner a {
    color: #1a6cc4;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

/* Toolbar droite (sort + toggle) */
.listing-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle Liste / Carte */
.listing-view-toggle {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: none;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    font-family: inherit;
}

.view-toggle-btn + .view-toggle-btn {
    border-left: 1.5px solid var(--border);
}

.view-toggle-btn.is-active {
    background: var(--secondary);
    color: #fff;
}

.view-toggle-btn:not(.is-active):hover {
    background: var(--gray-100);
    color: var(--secondary);
}

/* Carte index Leaflet */
.listing-index-map {
    width: 100%;
    height: 560px;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
}

/* Bouton GPS "Près de moi" */
.btn-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #1a6cc4;
    background: #fff;
    color: #1a6cc4;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.btn-geo:hover {
    background: #f0f7ff;
}

.btn-geo.is-active {
    background: #1a6cc4;
    color: #fff;
}

.btn-geo:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Hint succès auto-géocodage */
.map-picker-hint--success {
    color: #16a34a;
    font-weight: 600;
    font-size: var(--text-sm);
    margin-top: 6px;
}

@media (max-width: 960px) {
    .listing-index-map {
        height: 400px;
    }
    .listing-toolbar-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 540px) {
    .listing-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .listing-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .listing-index-map {
        height: 320px;
        border-radius: 8px;
    }
}

/* =========================
   HERO IMMOBILIER
========================= */
.li-hero {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.li-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 50%, rgba(var(--primary-rgb),.14) 0%, transparent 55%);
    pointer-events: none;
}

.li-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 44px;
    gap: 28px;
}

.li-hero-text {
    text-align: center;
    color: #fff;
}

.li-hero-title {
    color: #fff;
    font-size: var(--text-6xl);
    font-weight: 900;
    margin: 0 0 8px;
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.li-hero-sub {
    font-size: var(--text-md);
    opacity: 0.78;
    margin: 0;
}

/* Floating white panel — attached to bottom of hero */
.li-search-panel {
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.14);
    width: 100%;
    max-width: 920px;
    overflow: hidden;
}

/* Tabs */
.li-type-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.li-type-tabs::-webkit-scrollbar { display: none; }

.li-type-tab {
    flex-shrink: 0;
    padding: 13px 20px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.li-type-tab:hover { color: var(--secondary); }
.li-type-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* Search row */
.li-search-row {
    display: flex;
    align-items: stretch;
    min-height: 64px;
}

.li-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 18px;
    min-width: 0;
}

.li-search-sep {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
    margin: 12px 0;
}

.li-search-label {
    display: block;
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.li-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--secondary);
    width: 100%;
    padding: 0;
}
.li-search-input::placeholder { font-weight: 400; color: var(--gray-400); }
.li-search-select { cursor: pointer; }

.li-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0 26px;
    font-size: var(--text-md);
    font-weight: 700;
    flex-shrink: 0;
    transition: background .15s;
    white-space: nowrap;
}
.li-search-btn:hover { background: var(--primary); }

.li-count-badge {
    background: rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 9px;
}

/* Remove top margin from section below hero */
.listing-page-section { margin-top: 0; }

@media (max-width: 700px) {
    .li-hero-title { font-size: var(--text-3xl); }
    .li-search-row {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        padding: 12px 14px 14px;
        gap: 10px;
    }
    .li-search-sep { display: none; }
    .li-search-field { padding: 0; }
    .li-search-input {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px 12px;
        background: var(--gray-50);
    }
    .li-search-select { padding: 10px 12px; }
    .li-search-btn {
        border-radius: 8px;
        justify-content: center;
        padding: 13px;
    }
}

/* ══════════════════════════════════════════════════════════════
   GÉOLOCALISATION — badges & composants ajoutés au build geo
══════════════════════════════════════════════════════════════ */

/* Badge distance sur carte annonce (ex : "· 📍 2.3 km") */
.listing-card-distance {
    color: var(--primary);
    font-weight: 700;
    font-size: var(--text-xs);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Select de rayon dans la sidebar filtres */
.filter-radius-select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: var(--text-sm);
    font-family: inherit;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: auto;
}

.filter-radius-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.10);
}

/* Tooltip Leaflet pour le centroïde de ville */
.city-label-tooltip {
    background: rgba(13, 31, 60, 0.86);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 4px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
    white-space: nowrap;
}

.city-label-tooltip::before {
    display: none;
}

/* Téléphone : la photo et le titre ouvrent l'annonce, le bouton « Voir le détail » ne prend plus de place */
@media (max-width: 640px) {
    .listing-card-detail-btn { display: none !important; }
    .listing-card-media-slider[data-href] { cursor: pointer; }
}

/* ./pages/listing-search.css */
/* =========================================================
   RECHERCHE D'ANNONCES — barre de filtres en pastilles (ls-*)
========================================================= */
.ls-bar-wrap {
    position: sticky;
    top: 76px;                     /* sous la navigation principale */
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(13, 31, 60, .05);
}
.ls-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0; margin: 0; }
.ls-bar > * { margin: 0; }

.ls-query {
    display: flex; align-items: center; gap: 8px; max-width: 560px;
    background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; color: var(--muted);
}
.ls-query input { border: 0; background: transparent; padding: 10px 0; font-size: var(--text-md); width: 100%; outline: none; color: var(--text); }
.ls-query:focus-within { border-color: var(--secondary); background: #fff; }

.ls-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ls-pills { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.ls-pills::-webkit-scrollbar { display: none; }

/* Transaction : segments */
.ls-offer { display: flex; background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px; padding: 3px; flex-shrink: 0; }
/* Boutons radio masqués : contenus dans leur pastille (sinon ils élargissent la page) */
.ls-offer-opt, .ls-chip { position: relative; }
.ls-offer-opt { margin: 0; cursor: pointer; }
.ls-offer-opt input, .ls-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ls-offer-opt span { display: block; padding: 7px 13px; border-radius: 999px; font-size: var(--text-base); font-weight: 600; color: var(--text); white-space: nowrap; }
.ls-offer-opt input:checked + span { background: var(--secondary); color: #fff; }
.ls-offer-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Pastilles */
.ls-pill { flex-shrink: 0; }
.ls-pill-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
    border: 1.5px solid var(--border); background: #fff; font: inherit; font-size: var(--text-base); font-weight: 600;
    color: var(--text); cursor: pointer; white-space: nowrap; max-width: 240px;
}
.ls-pill-btn span { overflow: hidden; text-overflow: ellipsis; }
.ls-pill-btn::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; opacity: .6; }
.ls-pill-btn:hover { border-color: var(--secondary); }
.ls-pill-btn.is-set { border-color: var(--secondary); background: #eaf0fb; color: var(--secondary); }
.ls-pill-btn[aria-expanded="true"] { border-color: var(--secondary); box-shadow: 0 0 0 1px var(--secondary); }
.ls-clear { flex-shrink: 0; font-size: var(--text-base); font-weight: 600; color: var(--primary); text-decoration: underline; white-space: nowrap; padding: 0 4px; }
.ls-clear[hidden] { display: none; }

/* Panneaux */
.ls-pop {
    position: fixed; z-index: 1001; width: 320px; max-width: calc(100vw - 24px);
    background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 14px 40px rgba(13, 31, 60, .22);
}
.ls-pop[hidden] { display: none; }
.ls-pop-title { font-weight: 800; color: var(--secondary); margin: 0 0 12px; font-size: var(--text-md); }
.ls-field { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.ls-field[hidden] { display: none; }
.ls-field select, .ls-field input { display: block; width: 100%; margin-top: 5px; font-size: var(--field-font); color: var(--text); }
.ls-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-chips[hidden] { display: none; }
.ls-chip { margin: 0; cursor: pointer; }
.ls-chip span, .ls-preset {
    display: block; padding: 8px 13px; border: 1.5px solid var(--border); border-radius: 999px;
    font: inherit; font-size: var(--text-base); font-weight: 600; background: #fff; color: var(--text); cursor: pointer;
}
.ls-chip input:checked + span { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.ls-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.ls-preset:hover { border-color: var(--secondary); }
.ls-presets { margin: 2px 0 12px; }
.ls-near {
    width: 100%; border: 1.5px dashed var(--border); background: var(--bg-light); border-radius: 10px;
    padding: 10px; font: inherit; font-weight: 600; color: var(--secondary); cursor: pointer; margin-bottom: 12px;
}
.ls-near.is-active { border-style: solid; border-color: var(--secondary); background: #eaf0fb; }
.ls-apply { width: 100%; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; padding: 11px; cursor: pointer; }

/* Résultats */
.ls-page { padding: 22px 0 110px; background: var(--bg-light); min-height: 60vh; }
.ls-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ls-title { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--secondary); margin: 0; font-weight: 800; }
.ls-count { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.ls-sort { display: flex; align-items: center; gap: 8px; font-size: var(--text-base); color: var(--muted); }
.ls-sort select { width: auto; font-size: var(--field-font-compact); padding: 8px 10px; }
.ls-page .listing-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Boutons flottants */
.ls-float {
    position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    z-index: 95; display: flex; gap: 10px; align-items: center;
}
.ls-float form { margin: 0; }
.ls-float-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0;
    background: var(--secondary); color: #fff; font: inherit; font-size: var(--text-md); font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 24px rgba(13, 31, 60, .3); text-decoration: none; white-space: nowrap;
}
.ls-float-btn span { display: inline-flex; align-items: center; gap: 8px; }
.ls-float-btn [hidden] { display: none; }
.ls-float-btn.is-alert { background: #fff; color: var(--secondary); }
.ls-float-btn:hover { color: inherit; filter: brightness(1.05); }
.ls-float-btn.is-alert:hover { color: var(--secondary); }

@media (max-width: 1200px) { .ls-page .listing-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .ls-page .listing-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Téléphone : recherche pleine largeur, pastilles qui défilent, panneaux en bas d'écran */
@media (max-width: 768px) {
    /* Pas collée en haut sur téléphone : l'écran est trop petit (boutons flottants pour la carte et l'alerte) */
    .ls-bar-wrap { position: static; }
    .ls-bar { padding: 10px 0; }
    .ls-query { max-width: none; }
    /* Louer / Acheter… sur sa propre ligne, les filtres en dessous défilent */
    .ls-row { flex-direction: column; align-items: stretch; }
    .ls-offer { width: 100%; }
    .ls-offer-opt { flex: 1; }
    .ls-offer-opt span { padding: 7px 4px; font-size: var(--text-sm); text-align: center; }
    .ls-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }   /* au-dessus de la barre de navigation */
    .ls-page { padding-bottom: 150px; }
}
@media (max-width: 640px) {
    .ls-page .listing-cards-grid { grid-template-columns: 1fr; }
    .ls-pop {
        left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-width: none;
        border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 80vh; overflow-y: auto;
    }
    body.ls-sheet-open::after { content: ''; position: fixed; inset: 0; background: rgba(13, 31, 60, .45); z-index: 1000; }
    /* La barre crée son propre empilement : elle passe au-dessus du voile pendant l'ouverture d'un panneau */
    body.ls-sheet-open .ls-bar-wrap { z-index: 1002; }
    .ls-float-btn { padding: 11px 16px; font-size: var(--text-base); }
}

/* Pages par ville et par type : introduction, recherches populaires */
.ls-intro { max-width: 860px; margin: 0 0 18px; color: var(--text-muted); font-size: var(--text-md); line-height: 1.6; }
.ls-popular { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.ls-popular h2 { font-size: var(--text-lg); color: var(--secondary); margin: 0 0 12px; }
.ls-popular ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-popular a {
    display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
    background: #fff; font-size: var(--text-sm); color: var(--secondary); text-decoration: none;
}
.ls-popular a:hover { border-color: var(--secondary); }

/* Annonces immobilières : résultats et cartes. */
.ls-bar { padding: 18px 0; gap: 14px; }
.ls-query { max-width: 650px; border-radius: 10px; background: var(--gray-50); }
.ls-query input { font-size: var(--field-font); padding: 12px 0; }
.ls-offer { border-radius: 10px; }
.ls-offer-opt span { border-radius: 7px; font-size: var(--text-xs); padding: 9px 12px; }
.ls-pill-btn { border-width: 1px; border-radius: 9px; font-size: var(--text-xs); padding: 10px 13px; }
.ls-page { padding-top: 32px; }
.ls-eyebrow { margin: 0 0 8px; color: var(--primary-dark); font-size: var(--text-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.ls-title { font-size: clamp(24px,2.7vw,32px); letter-spacing: -.8px; font-weight: 700; }
.ls-count { font-size: var(--text-xs); font-weight: 500; margin-top: 8px; }
.ls-results-head { margin-bottom: 26px; }
.ls-sort { font-size: var(--text-xs); }
.ls-sort select { border-radius: var(--radius-field); border-color: var(--field-border); font-size: var(--field-font-compact); }
.ls-page .listing-cards-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.ls-page .listing-card-premium { border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.ls-page .listing-card-premium.is-boost { border-top: 2px solid #5277a1; }
/* Hauteur fixe : annuler le rapport 4/3 des grilles, sinon la largeur se déduit de la hauteur (≈ 307 px)
   et la photo ne remplit pas la carte (bande blanche à droite) */
.ls-page .listing-card-media-slider { height: 230px; width: 100%; aspect-ratio: auto; }
.ls-page .listing-card-content { padding: 18px; gap: 12px; }
.ls-page .listing-card-title { font-size: var(--text-base); line-height: 1.55; font-weight: 600; min-height: 43px; }
.ls-page .listing-card-location { font-size: var(--text-xs); color: var(--gray-500); }
.ls-page .listing-card-meta { border: 0; padding: 0; gap: 6px; }
.ls-page .listing-card-meta span { background: var(--gray-100); color: var(--gray-600); font-size: var(--text-2xs); font-weight: 500; padding: 5px 8px; }
.ls-page .listing-card-price { color: var(--secondary); font-size: var(--text-3xl); font-weight: 700; }
.ls-page .listing-card-status { font-size: var(--text-2xs); text-transform: none; background: #fff5eb; color: var(--primary-dark); padding: 4px 7px; border-radius: 4px; }
.ls-page .listing-card-content > .btn { border-color: var(--gray-200); color: var(--secondary); background: #fff; font-size: var(--text-xs); border-radius: 8px; min-height: 42px; }
.ls-page .listing-card-content > .btn:hover { background: var(--gray-50); border-color: var(--gray-900); }
.ls-float-btn { font-size: var(--text-xs); padding: 12px 18px; box-shadow: 0 4px 16px rgba(13,31,60,.14); }
@media (max-width: 960px) { .ls-page .listing-cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; } }
@media (max-width: 640px) {
    .ls-page .listing-cards-grid { grid-template-columns: minmax(0,1fr); }
    .ls-page .listing-card-media-slider { height: 240px; }
    .ls-query input { font-size: var(--field-font); }
    .ls-offer-opt span { font-size: var(--text-xs); padding: 9px 5px; }
    .ls-bar { padding: 12px 0; }
}

/* Recherche écrite : ce qui a été compris, élargissement sans résultat exact */
.ls-understood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: var(--text-sm); }
.ls-understood-label { color: var(--muted, var(--gray-500)); font-weight: 600; }
.ls-understood-chip { padding: 4px 10px; border-radius: 999px; background: var(--primary-light); border: 1px solid var(--primary-200); color: var(--primary-dark); font-weight: 600; }
.ls-notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--gray-100); border: 1px solid var(--gray-200); font-size: var(--text-base); line-height: 1.5; color: #22324d; }
.ls-notice a { font-weight: 700; color: var(--primary, var(--primary)); }
.ls-notice--relaxed { background: #fffbeb; border-color: #fde68a; color: var(--primary-ink); }

/* Téléphone : boutons flottants plus discrets, pour moins masquer les annonces */
@media (max-width: 640px) {
    .ls-float { gap: 8px; }
    .ls-float-btn { padding: 9px 15px; font-size: var(--text-sm); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
}

/* ./pages/listing-show.css */
/* ══════════════════════════════════════════════════════════════
   STYLE SELOGER — PAGE ANNONCE
══════════════════════════════════════════════════════════════ */

/* Fil d'Ariane */
.sl-breadcrumb-bar {
    padding: 10px 0 0;
}

/* ── Galerie ──────────────────────────────────────────────── */
.sl-gallery {
    padding: 12px 0 0;
}

.sl-gallery-wrap {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-200);
}

.sl-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: opacity 0.2s ease;
}

.sl-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: var(--text-base);
}

/* Flèches SeLoger — cercles blancs sur les côtés */
.sl-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: var(--secondary);
    font-size: var(--text-3xl);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.sl-gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.20);
    transform: translateY(-50%) scale(1.06);
}

.sl-gallery-arrow.is-left  { left: 16px; }
.sl-gallery-arrow.is-right { right: 16px; }

/* Barre de bas d'image : "Afficher X photos" + "4/20" */
.sl-gallery-footer {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 8;
}

.sl-gallery-show-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
    transition: background 0.12s ease, transform 0.12s ease;
}

.sl-gallery-show-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.sl-gallery-show-icon {
    font-size: var(--text-md);
}

.sl-gallery-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 5px;
    background: rgba(0,0,0,0.52);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    pointer-events: none;
}

/* ── Mosaïque photo (style Airbnb) ───────────────────────── */
.sl-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4px;
    height: clamp(360px, 38vw, 540px);
    border-radius: 14px;
    overflow: hidden;
}

.sl-mosaic--single {
    grid-template-columns: 1fr;
}

.sl-mosaic-main {
    overflow: hidden;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: card-shimmer 1.6s ease-in-out infinite;
    cursor: zoom-in;
}

.sl-mosaic-main.is-loaded {
    animation: none;
    background: var(--gray-200);
}

.sl-mosaic-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sl-mosaic-main:hover .sl-mosaic-main-img {
    transform: scale(1.03);
}

.sl-mosaic-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.sl-mosaic-cell {
    position: relative;
    overflow: hidden;
    background: var(--gray-200);
    border: none;
    cursor: zoom-in;
    padding: 0;
    display: block;
}

.sl-mosaic-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.sl-mosaic-cell:hover img {
    transform: scale(1.06);
}

.sl-mosaic-cell--has-more img {
    filter: brightness(0.5);
}

.sl-mosaic-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--text-3xl);
    font-weight: 800;
    pointer-events: none;
    letter-spacing: -0.5px;
}

.sl-mosaic-show-all {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.96);
    color: var(--secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0,0,0,0.12);
    transition: background 0.15s ease, transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.15s ease;
    z-index: 10;
    font-family: inherit;
    letter-spacing: -0.1px;
    backdrop-filter: blur(4px);
}

.sl-mosaic-show-all:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0,0,0,0.12);
}

@media (max-width: 960px) {
    .sl-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: clamp(240px, 52vw, 360px) 110px;
        height: auto;
        gap: 4px;
    }

    .sl-mosaic--single {
        grid-template-rows: clamp(240px, 52vw, 360px);
    }

    .sl-mosaic-grid {
        grid-template-rows: 1fr;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
}

@media (max-width: 640px) {
    .sl-mosaic {
        grid-template-rows: clamp(200px, 56vw, 280px) 80px;
        border-radius: 10px;
    }

    .sl-mosaic--single {
        grid-template-rows: clamp(200px, 56vw, 280px);
    }

    .sl-mosaic-show-all {
        font-size: var(--text-xs);
        padding: 8px 12px;
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
}

/* ── Layout 2 colonnes ────────────────────────────────────── */
.sl-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.sl-main {
    min-width: 0;
    display: grid;
    gap: 0;
}

/* ── En-tête — type + prix + specs ───────────────────────── */
.sl-listing-header {
    padding: 22px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.sl-listing-type {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
    text-transform: capitalize;
    margin: 0 0 8px;
}

.sl-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.sl-price {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.sl-price-sqm {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--muted);
}

.sl-specs {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--secondary-light);
    margin: 10px 0 0;
    line-height: 1.5;
}

/* ── Blocs de contenu (description, caract., localisation) ── */
.sl-block {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.sl-block:last-child {
    border-bottom: none;
}

.sl-block h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 14px;
    letter-spacing: -0.2px;
}

/* ── Sidebar contact ──────────────────────────────────────── */
.sl-sidebar {
    min-width: 0;
}

.sl-contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 84px;
}

.sl-contact-price {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 14px;
    letter-spacing: -0.4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.sl-contact-price-sqm {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--muted);
}

.sl-contact-form {
    display: grid;
    gap: 12px;
}

.sl-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sl-contact-form .form-group {
    margin: 0;
}

.sl-contact-form label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.sl-contact-form input,
.sl-contact-form textarea {
    font-size: var(--field-font);
    padding: 10px 12px;
    border-radius: var(--radius-field);
    border: 1px solid var(--field-border);
}

.sl-contact-form input:focus,
.sl-contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--field-ring);
}

.sl-contact-form textarea {
    min-height: 90px;
    resize: vertical;
}

.sl-contact-submit {
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.28);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: 2px;
}

.sl-contact-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.34);
}

.sl-contact-secondary {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── Bouton WhatsApp ──────────────────────────────────────── */
.sl-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.12s ease;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.sl-whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-1px);
    opacity: 1;
    color: #fff;
}

/* ── Compteur de vues ─────────────────────────────────────── */
.sl-views-count {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 10px 0 0;
    padding: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .sl-layout {
        grid-template-columns: 1fr;
    }

    .sl-sidebar {
        order: -1;
    }

    .sl-contact-card {
        position: static;
    }

    .sl-gallery-wrap {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .sl-gallery-wrap {
        height: 280px;
        border-radius: 8px;
    }

    .sl-price {
        font-size: var(--text-4xl);
    }

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

/* ══════════════════════════════════════════════════════════════
   HEADER (legacy — conservé pour compatibilité)
══════════════════════════════════════════════════════════════ */

/* =========================
   HEADER
========================= */
.listing-show-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.listing-show-breadcrumb {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: var(--text-sm);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.listing-show-breadcrumb a {
    color: var(--primary);
}

.listing-show-breadcrumb a:hover {
    text-decoration: underline;
    opacity: 1;
}

.listing-show-title {
    margin: 0 0 10px;
    font-size: var(--text-5xl);
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: var(--secondary);
    font-weight: 700;
}

.listing-show-meta {
    color: var(--muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--text-base);
    align-items: center;
}

.listing-badges {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.listing-show-price-box {
    text-align: right;
    flex-shrink: 0;
    display: grid;
    gap: 10px;
}

.listing-show-price {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.4px;
}

/* =========================
   GALERIE AIRBNB STYLE
========================= */
.listing-airbnb-gallery {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    height: 480px;
}

.listing-airbnb-main {
    position: relative;
    overflow: hidden;
    background: var(--gray-200);
}

.listing-airbnb-main .listing-gallery-stage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-airbnb-thumbs {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.listing-airbnb-thumb-btn {
    position: relative;
    overflow: hidden;
    background: var(--gray-200);
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
}

.listing-airbnb-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.2s ease;
}

.listing-airbnb-thumb-btn:hover img {
    transform: scale(1.04);
}

.listing-airbnb-thumb-btn.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--primary);
    pointer-events: none;
}

.listing-airbnb-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.2px;
    cursor: pointer;
    backdrop-filter: blur(1px);
}

/* Miniatures visibles dans la grille (images 2-5) */
.listing-airbnb-visible-thumb {
    position: relative;
    overflow: hidden;
    background: var(--gray-200);
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.listing-airbnb-visible-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.listing-airbnb-visible-thumb:hover img {
    transform: scale(1.04);
}

.listing-airbnb-visible-thumb.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--primary);
    pointer-events: none;
}

/* =========================
   GALERIE (legacy / compat)
========================= */
.listing-gallery-premium {
    display: grid;
    gap: 12px;
}

.listing-gallery-stage {
    position: relative;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-200);
    box-shadow: var(--shadow-card);
}

.listing-gallery-stage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-gallery-stage-overlay {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.44));
    pointer-events: none;
}

.listing-gallery-stage-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.listing-gallery-count,
.listing-gallery-expand,
.listing-gallery-nav {
    pointer-events: auto;
}

.listing-gallery-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.listing-gallery-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.listing-gallery-expand:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-1px);
}

.listing-gallery-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-gallery-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    color: var(--text);
    font-size: var(--text-3xl);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.listing-gallery-arrow:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-1px);
}

.listing-gallery-thumbs-wrap {
    overflow: hidden;
}

.listing-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.listing-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.listing-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 999px;
}

.listing-gallery-thumb-btn {
    flex: 0 0 100px;
    width: 100px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--gray-200);
    padding: 0;
    transition: border-color 0.15s ease;
}

.listing-gallery-thumb-btn.is-active {
    border-color: var(--primary);
}

.listing-gallery-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: grid;
    place-items: center;
    color: var(--muted);
    padding: 20px;
    text-align: center;
    font-size: var(--text-base);
}

/* =========================
   LIGHTBOX FULLSCREEN (Airbnb style)
========================= */

/* Spring motion tokens (extraits du DLS Airbnb) */
:root {
    --lb-spring-fast-bounce-duration: 449ms;
    --lb-spring-fast-bounce-easing:   linear(0, 0.254, 0.643, 0.906, 1.020, 1.043, 1.030, 1.011, 1);
    --lb-spring-standard-duration:    583ms;
    --lb-spring-standard-easing:      linear(0, 0.157, 0.414, 0.630, 0.780, 0.875, 0.931, 0.964, 0.982, 0.992, 0.997, 1);
    --lb-spring-fast-duration:        451ms;
    --lb-spring-fast-easing:          linear(0, 0.185, 0.465, 0.682, 0.822, 0.905, 0.951, 0.976, 0.989, 0.996, 1);
}

/* Keyframes */
@keyframes lb-enter {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes lb-leave {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.96); }
}
@keyframes lb-header-enter {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lb-stage-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes lb-thumbs-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lb-overlay[hidden] {
    display: none !important;
}

/* Animation d'ouverture via @starting-style (Chrome 117+, Safari 17.5+, Firefox 129+) */
@starting-style {
    .lb-overlay:not([hidden]) {
        opacity: 0;
        transform: scale(0.96);
    }
}
.lb-overlay:not([hidden]) {
    animation: lb-enter var(--lb-spring-fast-bounce-duration) var(--lb-spring-fast-bounce-easing) both;
}
/* Staggered children */
.lb-overlay:not([hidden]) .lb-header {
    animation: lb-header-enter var(--lb-spring-standard-duration) var(--lb-spring-standard-easing) 40ms both;
}
.lb-overlay:not([hidden]) .lb-stage {
    animation: lb-stage-enter var(--lb-spring-fast-bounce-duration) var(--lb-spring-fast-bounce-easing) 60ms both;
}
.lb-overlay:not([hidden]) .lb-thumbs {
    animation: lb-thumbs-enter var(--lb-spring-standard-duration) var(--lb-spring-standard-easing) 100ms both;
}

/* Animation de fermeture (classe ajoutée par JS) */
.lb-overlay.is-closing {
    animation: lb-leave 220ms ease-in both !important;
}
.lb-overlay.is-closing .lb-header,
.lb-overlay.is-closing .lb-stage,
.lb-overlay.is-closing .lb-thumbs {
    animation: none !important;
}

/* ── Header ── */
.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(13, 13, 13, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.lb-count {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.lb-header-actions {
    min-width: 100px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── Stage (image centrale) ── */
.lb-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.lb-image-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.lb-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    transition: opacity 0.22s ease;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.lb-image.is-loading {
    opacity: 0;
}

/* Spinner pendant le chargement image */
@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

.lb-image-wrap {
    position: relative;
}

.lb-image-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lb-image-wrap.is-loading::before {
    opacity: 1;
}

/* ── Flèches ── */
.lb-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin: 0 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background   200ms var(--lb-spring-fast-easing),
        border-color 200ms var(--lb-spring-fast-easing),
        transform    var(--lb-spring-fast-bounce-duration) var(--lb-spring-fast-bounce-easing);
}

.lb-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
    transform: scale(1.10);
}
.lb-arrow:active {
    transform: scale(0.94);
    transition-duration: 120ms, 120ms, 120ms;
}

.lb-arrow:disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ── Miniatures ── */
.lb-thumbs {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.lb-thumbs::-webkit-scrollbar {
    height: 4px;
}
.lb-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.lb-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    border: 2.5px solid transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition:
        opacity      200ms var(--lb-spring-fast-easing),
        border-color 200ms var(--lb-spring-fast-easing),
        transform    var(--lb-spring-fast-bounce-duration) var(--lb-spring-fast-bounce-easing);
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-thumb:hover {
    opacity: 0.9;
    transform: translateY(-3px) scale(1.05);
}

.lb-thumb:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 100ms, 100ms, 100ms;
}

.lb-thumb.is-active {
    border-color: #fff;
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .lb-header {
        padding: 0 12px;
        height: 50px;
    }
    .lb-close {
        font-size: var(--text-sm);
        padding: 6px 10px;
    }
    .lb-arrow {
        width: 40px;
        height: 40px;
        margin: 0 4px;
    }
    .lb-thumb {
        width: 54px;
        height: 40px;
    }
}

/* =========================
   DETAIL
========================= */
.listing-detail-layout {
    display: grid;
    grid-template-columns: 2fr 340px;
    gap: 20px;
    align-items: start;
}

.listing-detail-main {
    display: grid;
    gap: 16px;
}

.listing-detail-sidebar {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: 82px;
}

.sidebar-price {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.sidebar-meta {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.5;
}

.sidebar-actions {
    display: grid;
    gap: 10px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

.summary-list {
    margin: 0;
    padding-left: 16px;
    color: var(--text);
    line-height: 1.8;
    font-size: var(--text-base);
}

.summary-list li {
    margin-bottom: 4px;
}

.listing-long-text {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: var(--text-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.feature-box {
    background: var(--primary-light);
    border: 1px solid rgba(var(--primary-rgb), 0.10);
    border-radius: 8px;
    padding: 14px;
}

.feature-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.feature-box strong {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
}

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

.listing-map {
    height: 220px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    z-index: 0;
}

/* Ancre « Voir sur la carte » : le bloc ne se cache pas sous la barre de navigation */
.sl-location {
    scroll-margin-top: 90px;
}

.sl-see-map {
    color: var(--primary, var(--primary));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.listing-map-approx {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: var(--text-sm);
}

.listing-map-no-coords {
    height: 100px;
    display: grid;
    place-items: center;
    background: var(--gray-100);
    border-radius: 8px;
    border: 1px dashed var(--border);
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--text-base);
    text-align: center;
}

.map-pin-icon {
    font-size: var(--text-5xl);
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* =========================
   FORMULAIRE DE CONTACT
========================= */
.listing-contact-section {
    background: var(--gray-100);
    border-top: 1px solid var(--border);
    scroll-margin-top: 80px;
}

.listing-contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.listing-contact-kicker {
    margin: 0 0 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.listing-contact-intro h2 {
    margin: 0 0 10px;
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.1;
}

.listing-contact-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.7;
    font-size: var(--text-md);
}

.listing-contact-recap {
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.listing-contact-recap-price {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.listing-contact-recap-meta {
    font-size: var(--text-sm);
    color: var(--muted);
}

.listing-contact-form-wrap {
    background: #fff;
}

.listing-contact-form {
    display: grid;
    gap: 16px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-lg);
    width: 100%;
}

@media (max-width: 900px) {
    .listing-contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 540px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   TERRAIN
========================= */
.terrain-access-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.terrain-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    min-width: 90px;
    text-align: center;
    border: 1px solid transparent;
}

.terrain-access-item span {
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.terrain-access-item.is-yes {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.terrain-access-item.is-no {
    background: var(--gray-100);
    color: #dc2626;
    border-color: #fecaca;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .listing-detail-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

    .listing-airbnb-thumbs {
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .listing-airbnb-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 320px auto;
        height: auto;
    }

    .listing-airbnb-thumbs {
        height: 140px;
        grid-template-rows: 1fr;
        grid-template-columns: repeat(4, 1fr);
    }

    .listing-show-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-show-price-box {
        text-align: left;
    }

    .listing-gallery-stage {
        height: 360px;
    }

    .listing-gallery-lightbox-inner {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 10px;
    }

    .listing-gallery-lightbox-arrow {
        width: 52px;
        height: 52px;
        font-size: var(--text-4xl);
    }
}

@media (max-width: 720px) {
    .listing-airbnb-gallery {
        grid-template-rows: 240px 100px;
        border-radius: 8px;
    }

    .listing-airbnb-thumbs {
        height: 100px;
    }

    .listing-show-title {
        font-size: var(--text-3xl);
    }

    .listing-gallery-stage {
        height: 260px;
        border-radius: 8px;
    }

    .listing-gallery-stage-overlay {
        padding: 12px;
    }

    .listing-gallery-stage-top {
        top: 12px;
        left: 12px;
        right: 12px;
        flex-wrap: wrap;
    }

    .listing-gallery-count {
        font-size: var(--text-xs);
        padding: 5px 10px;
    }

    .listing-gallery-expand {
        min-height: 36px;
        padding: 6px 10px;
        font-size: var(--text-xs);
    }

    .listing-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: var(--text-2xl);
    }

    .listing-gallery-thumb-btn {
        flex: 0 0 80px;
        width: 80px;
        height: 60px;
        border-radius: 6px;
    }

    .listing-gallery-lightbox {
        padding: 12px;
    }

    .listing-gallery-lightbox-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .listing-gallery-lightbox-main {
        min-height: 56vh;
    }

    .listing-gallery-lightbox-image {
        max-height: 64vh;
    }

    .listing-gallery-lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10001;
        width: 42px;
        height: 42px;
        font-size: var(--text-3xl);
    }

    .listing-gallery-lightbox-arrow:hover {
        transform: translateY(calc(-50% - 1px));
    }

    .listing-gallery-lightbox-arrow.is-left {
        left: 8px;
    }

    .listing-gallery-lightbox-arrow.is-right {
        right: 8px;
    }

    .listing-gallery-lightbox-close {
        top: 8px;
        right: 8px;
        min-height: 34px;
        padding: 0 12px;
        font-size: var(--text-sm);
    }

    .listing-gallery-lightbox-count {
        left: 10px;
        bottom: 10px;
        font-size: var(--text-xs);
        padding: 5px 10px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BOUTON + MODAL OFFRE D'ACHAT
══════════════════════════════════════════════════════════════ */

.sl-offer-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    font-family: inherit;
}

.sl-offer-btn:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

/* ── Modale offre d'achat ───────────────────────────────────────────── */

/* Modificateur sur la boîte .listing-modal de la navbar */
.listing-modal--offer {
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Header et close spécifiques à l'offre */
.listing-modal--offer .listing-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    margin-bottom: 0;
}

.listing-modal--offer .listing-modal-header h2 {
    font-size: var(--text-xl);
    margin-bottom: 4px;
}

.listing-modal--offer .listing-modal-close {
    position: static;
    flex-shrink: 0;
    font-size: var(--text-3xl);
    width: auto;
    height: auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    transition: background 0.12s ease, color 0.12s ease;
    font-family: inherit;
}

.offer-modal-listing-title {
    font-size: var(--text-sm);
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.offer-modal-form {
    padding: 20px 24px;
    display: grid;
    gap: 16px;
}

.offer-modal-field {
    display: grid;
    gap: 6px;
}

.offer-modal-field label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.offer-modal-input,
.offer-modal-input select,
.offer-modal-input textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: var(--text-base);
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.offer-modal-input:focus,
select.offer-modal-input:focus,
textarea.offer-modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.10);
}

textarea.offer-modal-input {
    resize: vertical;
    min-height: 80px;
}

.offer-modal-price-hint {
    font-size: var(--text-xs);
    color: var(--muted);
    margin-top: 2px;
}

.offer-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.offer-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .listing-modal--offer .listing-modal-box {
        max-height: 100dvh;
        border-radius: 0;
    }

    .offer-modal-row {
        grid-template-columns: 1fr;
    }

    .offer-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .offer-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   TABLE OFFRES D'ACHAT REÇUES
══════════════════════════════════════════════════════════════ */

.offers-table {
    min-width: 900px;
}

.offer-row--accepted td {
    background: #f0faf4;
}

.offer-row--rejected td {
    background: var(--gray-50);
    opacity: 0.75;
}

.offer-listing-link {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
}

.offer-listing-link:hover {
    text-decoration: underline;
    opacity: 1;
}

.offer-price {
    white-space: nowrap;
}

.offer-asked-price {
    white-space: nowrap;
    font-size: var(--text-sm);
    color: var(--muted);
}

.offer-diff {
    display: inline-block;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

.offer-diff--down {
    background: #fff0f0;
    color: #c0392b;
}

.offer-diff--up {
    background: #f0faf4;
    color: #27ae60;
}

.offer-message {
    max-width: 200px;
    font-size: var(--text-sm);
    color: var(--muted);
}

.offer-date {
    white-space: nowrap;
    font-size: var(--text-sm);
    color: var(--muted);
}

.offer-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

.inline-form {
    display: inline;
}

.achat-offers-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    display: grid;
    gap: 14px;
    justify-items: center;
}

/* ── Dashboard preview offres ───────────────────────────────── */
.dashboard-offers-preview {
    padding: 4px 0;
}

.dashboard-offers-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8ec;
    border: 1.5px solid #f5c542;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: var(--text-base);
    font-weight: 600;
    color: #7a5a00;
    margin: 0 0 10px;
}

/* ================================================
   CARACTÉRISTIQUES — preview grid + modal
   ================================================ */

.feat-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.feat-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: var(--text-base);
}

.feat-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
    line-height: 1;
}

.feat-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.feat-label {
    font-size: var(--text-2xs);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}

.feat-text strong {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--secondary);
}

.feat-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1.5px solid var(--secondary);
    border-radius: 999px;
    background: transparent;
    color: var(--secondary);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.feat-show-all-btn:hover {
    background: var(--gray-50);
}

/* Checklist in create/edit form */
.features-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 12px;
}

/* Modal */
.feat-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.feat-modal[hidden] { display: none; }

.feat-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    cursor: pointer;
}

.feat-modal-panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -4px 40px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
}

@media (min-width: 700px) {
    .feat-modal {
        align-items: center;
    }
    .feat-modal-panel {
        border-radius: 16px;
        max-height: 80vh;
    }
}

.feat-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.feat-modal-head h3 {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.feat-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}
.feat-modal-close:hover { background: var(--gray-100); }

.feat-modal-body {
    padding: 20px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.feat-modal-group-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.feat-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.feat-modal-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    color: var(--secondary);
    padding: 6px 0;
}

.feat-modal-list .feat-icon {
    font-size: var(--text-lg);
}

/* ══════════════════════════════════════════════════════════════
   PARTAGE DÉMARCHEUR (bloc dans la sidebar listing show)
══════════════════════════════════════════════════════════════ */

.sl-dmr-share {
    margin: 14px 0 0;
    padding: 14px;
    background: #f0f7ff;
    border: 1.5px solid #c3dffe;
    border-radius: 10px;
    display: grid;
    gap: 10px;
}

.sl-dmr-share-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: #1a6cc4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.sl-dmr-share-row {
    display: flex;
    gap: 6px;
}

.sl-dmr-share-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: var(--text-xs);
    border: 1.5px solid #c3dffe;
    border-radius: 6px;
    background: #fff;
    color: var(--secondary);
    outline: none;
    cursor: text;
}

.sl-dmr-share-copy {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1.5px solid #c3dffe;
    background: #fff;
    cursor: pointer;
    font-size: var(--text-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease;
}

.sl-dmr-share-copy:hover {
    background: #e0efff;
}

.sl-dmr-share-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 7px;
    background: #25d366;
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
    justify-content: center;
}

.sl-dmr-share-wa:hover {
    background: #1ebe57;
    color: #fff;
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   STATS & LIEN DE PARRAINAGE (page profil démarcheur)
══════════════════════════════════════════════════════════════ */

.dmr-ref-box {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.dmr-ref-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: var(--text-xs);
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--gray-50);
    color: var(--secondary);
    outline: none;
}

.dmr-ref-copy {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: var(--text-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease;
}

.dmr-ref-copy:hover {
    background: #f0f7ff;
}

.dmr-ref-hint {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0 0 12px;
}

.dmr-ref-hint code {
    background: var(--gray-100);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: var(--text-2xs);
}

.dmr-whatsapp-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.15s ease;
}

.dmr-whatsapp-share:hover {
    background: #1ebe57;
    color: #fff;
    opacity: 1;
}

.dmr-ref-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.dmr-ref-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dmr-ref-stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.dmr-ref-stat-label {
    font-size: var(--text-2xs);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.dmr-ref-top {
    margin-top: 16px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.dmr-ref-top-title {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.dmr-ref-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.dmr-ref-top-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--secondary);
}

.dmr-ref-top-title-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmr-ref-top-clicks {
    flex-shrink: 0;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary);
    margin-left: 8px;
}

/* Prix négociable */
.badge-negotiable {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: var(--text-xs);
    font-weight: 600;
}

/* Téléphone visible */
.sl-phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 6px;
    color: #16a34a;
    font-weight: 700;
    font-size: var(--text-lg);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.12s;
}
.sl-phone-btn:hover { background: #dcfce7; }

/* Partage social */
.sl-share-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sl-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    transition: background 0.12s;
}
.sl-share-wa { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.sl-share-wa:hover { background: #dcfce7; }
.sl-share-copy:hover { background: var(--gray-100); }

/* Signaler */
.sl-report-link {
    display: block;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.12s;
}
.sl-report-link:hover { color: #dc2626; }

/* Consultations et date de publication, sous le prix */
.sl-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: var(--text-sm); color: var(--muted); }
.sl-stats-owner { color: var(--secondary); font-weight: 600; }

/* Fiche immobilière : titre visible, galerie et contenu éditorial. */
.sl-property-heading { padding-top: 8px; padding-bottom: 24px; }
.sl-property-eyebrow { font-size: var(--text-2xs); font-weight: 600; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px; }
.sl-property-heading h1 { font-size: clamp(22px,2.4vw,30px); line-height: 1.35; letter-spacing: -.7px; max-width: 980px; margin: 0 0 10px; }
.sl-property-address { font-size: var(--text-sm); color: var(--gray-500); margin: 0; }
.sl-mosaic { height: clamp(280px,29vw,400px); border-radius: 16px; gap: 6px; }
.sl-mosaic-show-all { font-size: var(--text-xs); border-radius: 8px; }
.sl-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 28px; }
.sl-main { gap: 20px; }
.sl-listing-header, .sl-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; margin: 0; }
.sl-block:last-child { border: 1px solid var(--border); }
.sl-listing-type { text-transform: none; font-size: var(--text-xs); line-height: 1.6; color: var(--gray-500); }
.sl-price { font-size: var(--text-5xl); }
.sl-price-sqm, .sl-specs { font-size: var(--text-xs); color: var(--gray-500); }
.sl-block h2 { font-size: var(--text-xl); letter-spacing: -.3px; margin-bottom: 18px; }
.listing-long-text { font-size: var(--text-base); line-height: 1.8; color: var(--gray-600); max-width: 70ch; overflow-wrap: anywhere; white-space: normal; margin-bottom: 0; }
.feature-box { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 16px; }
.feature-label { color: var(--gray-500); font-size: var(--text-2xs); }
.feature-box strong { font-size: var(--text-xl); }
.terrain-access-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.terrain-access-item { min-width: 0; padding: 14px 10px; font-size: var(--text-xs); border-radius: 8px; }
.terrain-access-item.is-unknown { color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-200); }
.terrain-access-item span { font-size: var(--text-2xs); text-transform: none; }
.sl-contact-card { border-color: var(--gray-200); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px; }
.sl-contact-price { font-size: var(--text-4xl); }
.sl-contact-form { gap: 12px; }
.sl-contact-form label { font-size: var(--text-2xs); color: var(--gray-500); }
.sl-contact-form input, .sl-contact-form textarea { font-size: var(--field-font); border-radius: var(--radius-field); border: 1px solid var(--field-border); background: var(--field-bg); }
.sl-contact-submit { font-size: var(--text-sm); border-radius: 8px; margin-bottom: 10px; }
.sl-offer-btn { font-size: var(--text-xs); border-width: 1px; border-radius: 8px; margin-bottom: 10px; }
.sl-whatsapp-btn { background: #edf8f2; color: #176541; border: 1px solid #cfe9da; font-size: var(--text-xs); border-radius: 8px; }
.sl-whatsapp-btn:hover { background: #176541; color: #fff; }
.sl-share-row { gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--gray-200); }
.sl-share-btn { font-size: var(--text-2xs); }
@media (max-width: 960px) {
    .sl-layout { grid-template-columns: minmax(0,1fr); }
    .sl-sidebar { position: static; }
}
@media (max-width: 640px) {
    .sl-property-heading { padding-bottom: 18px; }
    .sl-mosaic { height: 270px; }
    .sl-listing-header, .sl-block, .sl-contact-card { padding: 20px; }
    .terrain-access-grid { grid-template-columns: minmax(0,1fr); }
    .sl-contact-form input, .sl-contact-form textarea { font-size: var(--field-font); }
}

/* ── Résumé du bien : prix et unité (« par parcelle »), superficie, prix au m² ── */
.sl-price-unit,
.sl-contact-price-unit {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--secondary-light);
}
.sl-listing-header .sl-specs {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--secondary);
}
/* Premium / Boost : promotion de l'annonce, mention discrète à côté des statistiques */
.sl-promo {
    font-size: var(--text-xs);
    color: var(--muted);
}

/* ── Points essentiels (terrain) : grille compacte ── */
.sl-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 0;
}
.sl-facts > div {
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: 8px;
}
.sl-facts dt {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0 0 2px;
}
.sl-facts dd {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
}
.sl-subtitle {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    margin: 16px 0 8px;
}
.sl-docs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: var(--text-base);
}
.sl-docs-note {
    margin: 8px 0 0;
    font-size: var(--text-xs);
    color: var(--muted);
}
.sl-location-details {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: var(--text-base);
    line-height: 1.6;
}
.sl-location-details p { margin: 0; }
.sl-location-details-title {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px !important;
}

/* ── Carte : hauteur réduite, bouton « Agrandir » ── */
.listing-map-wrap {
    position: relative;
}
.listing-map.is-expanded {
    height: min(70vh, 560px);
}
.listing-map-expand {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 500;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--secondary);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.listing-map-expand:hover { background: var(--gray-100); }

/* ── Description : sous-titres et listes serrées ── */
.listing-description {
    color: var(--gray-700);
    font-size: var(--text-md);
    line-height: 1.65;
}
.listing-description p { margin: 0 0 10px; }
.listing-description .ld-heading {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    margin: 16px 0 6px;
}
.listing-description .ld-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.listing-description .ld-list li { margin: 2px 0; }
.listing-description .ld-dot::before { content: '•'; margin-right: 8px; color: var(--primary); }
.listing-description > :last-child { margin-bottom: 0; }

/* ── Contact : formulaire repliable sous WhatsApp et téléphone ── */
.sl-contact-more { margin-top: 10px; }
.sl-contact-more-toggle {
    display: block;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--secondary);
    font-size: var(--text-base);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    list-style: none;
}
.sl-contact-more-toggle::-webkit-details-marker { display: none; }
.sl-contact-more-toggle:hover { background: var(--gray-100); }
.sl-contact-more[open] .sl-contact-more-toggle { margin-bottom: 12px; }

/* Lien vers le guide pratique (louer, acheter un terrain) */
.sl-guide-link {
    display: block;
    margin-top: 12px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Page de confirmation véhicule : moyens de contact des acheteurs */
.success-contact-list { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 6px; font-size: var(--text-md); }

/* Fiche : prix dès l'arrivée, actions hiérarchisées et contact accessible. */
.sl-property-heading { padding-bottom: 18px; }
.sl-property-heading .sl-listing-header { border: 0; padding: 12px 0 0; border-radius: 0; background: transparent; }
.sl-property-heading .sl-listing-type { display: none; }
.sl-property-heading .sl-price { font-size: clamp(24px, 2.3vw, 32px); }
.sl-property-heading .sl-price-unit { font-size: var(--text-base); color: var(--gray-600); }
.sl-property-heading .sl-specs { font-size: var(--text-base); margin-top: 8px; }
.sl-property-heading .sl-stats { font-size: var(--text-xs); margin-top: 10px; gap: 8px 18px; }
.sl-promo { color: var(--gray-500); padding-left: 12px; border-left: 1px solid var(--gray-200); }
.sl-mosaic { height: clamp(250px, 23vw, 330px); }
.sl-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.sl-main { gap: 22px; }
.sl-main .sl-trust { margin: 0; padding: 16px 20px; border-radius: var(--radius-card); }
.sl-trust-title { font-size: var(--text-base); }
.sl-trust-note { font-size: var(--text-sm); line-height: 1.65; }
.sl-seller { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sl-seller-avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); font-size: var(--text-xl); font-weight: 700; }
.sl-seller h2 { font-size: var(--text-lg); line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.sl-seller p { margin: 3px 0 0; color: var(--gray-500); font-size: var(--text-xs); }
.sl-contact-price { font-size: var(--text-2xl); margin: 0 0 18px; padding-bottom: 18px; gap: 4px 6px; }
.sl-contact-price-label { width: 100%; font-size: var(--text-2xs); color: var(--gray-500); font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }
.sl-contact-price-unit { font-size: var(--text-xs); font-weight: 500; }
.sl-contact-price-sqm { font-size: var(--text-xs); }
.sl-contact-card .sl-whatsapp-btn, .sl-contact-card .sl-phone-btn, .sl-contact-more-toggle, .sl-offer-btn { min-height: 46px; border-radius: 10px; font-size: var(--text-base); padding: 12px 14px; font-weight: 600; line-height: 1.4; margin: 10px 0 0; }
.sl-contact-card .sl-whatsapp-btn { color: #fff; background: #167447; border: 1px solid #167447; }
.sl-contact-card .sl-whatsapp-btn:hover { color: #fff; background: #105b37; border-color: #105b37; }
.sl-contact-card .sl-phone-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: #172f50; background: #fff; border: 1px solid var(--gray-300); letter-spacing: 0; }
.sl-contact-card .sl-phone-btn:hover { background: var(--gray-50); }
.sl-contact-more-toggle, .sl-offer-btn { border: 1px solid var(--gray-200); background: var(--gray-50); color: var(--gray-700); }
.sl-contact-more { margin-top: 0; }
.sl-offer-btn { width: 100%; }
.sl-guide-link { font-size: var(--text-xs); line-height: 1.6; margin: 16px 0; color: var(--gray-600); }
.sl-share-details { border-top: 1px solid var(--gray-200); padding-top: 14px; margin-top: 14px; }
.sl-share-details > summary { font-size: var(--text-xs); font-weight: 600; color: var(--gray-600); cursor: pointer; padding: 6px 0; }
.sl-share-details .sl-share-row { border: 0; padding-top: 8px; margin-top: 0; }
.sl-contact-secondary .btn { font-size: var(--text-xs); min-height: 40px; padding: 10px; border-color: var(--gray-200); border-radius: 9px; }
.sl-location { scroll-margin-top: 110px; }
#contacter-annonceur { scroll-margin-top: 110px; }
.sl-mobile-contact { display: none; }
.sl-contact-card :is(a, button, summary):focus-visible, .sl-mobile-contact a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (min-width: 961px) {
    .sl-sidebar { position: sticky; top: 100px; align-self: start; max-height: calc(100dvh - 120px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px; }
    .sl-contact-card { position: static; }
}
@media (max-width: 960px) {
    .sl-layout { grid-template-columns: minmax(0, 1fr); }
    .sl-sidebar { order: 0; }
    .sl-mosaic { height: 290px; }
}
@media (max-width: 640px) {
    .sl-property-heading h1 { font-size: var(--text-3xl); line-height: 1.3; letter-spacing: -.4px; }
    .sl-property-heading .sl-specs { font-size: var(--text-sm); }
    .sl-mosaic { height: 240px; }
    .sl-mobile-contact { display: flex; align-items: center; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--gray-200); box-shadow: 0 -4px 20px #1429410a; }
    .sl-mobile-price { flex: 1; min-width: 0; display: grid; gap: 3px; }
    .sl-mobile-price strong { font-size: var(--text-md); color: #172f50; }
    .sl-mobile-price span { font-size: var(--text-2xs); color: var(--gray-500); }
    .sl-mobile-contact .sl-whatsapp-btn { margin: 0; width: auto; min-height: 44px; padding: 12px 16px; background: #167447; font-size: var(--text-sm); }
    .sl-mobile-more { color: var(--gray-700); font-size: var(--text-xs); padding: 12px 4px; }
    body:has(.sl-mobile-contact) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    body:has(.sl-mobile-contact) .mob-nav { display: none; }
    body:has(.lb-overlay:not([hidden]), .listing-modal-backdrop:not([hidden])) .sl-mobile-contact { display: none; }
}

/* ── Téléphone : photo d'abord, pleine largeur ; barre du bas « Appeler » + « WhatsApp » ── */
@media (max-width: 640px) {
    .sl-top { display: flex; flex-direction: column; }
    .sl-top > .sl-gallery { order: -1; }
    .sl-top > .sl-gallery > .container { padding: 0; }
    .sl-top .sl-mosaic, .sl-top .sl-mosaic--single { display: block; height: auto; border-radius: 0; }
    .sl-top .sl-mosaic-main { height: clamp(240px, 72vw, 320px); border-radius: 0; }
    .sl-top .sl-mosaic-grid { display: none; }
    .sl-top .sl-mosaic-show-all { bottom: 12px; right: 12px; }
    .sl-top .sl-property-heading { padding-top: 16px; }
    .sl-top .sl-property-heading h1 { font-size: var(--text-2xl); }

    .sl-mobile-contact { gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
    .sl-mobile-price strong { font-size: var(--text-lg); color: var(--gray-900); }
    .sl-mobile-contact .sl-whatsapp-btn, .sl-mobile-call { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 999px; font-size: var(--text-base); font-weight: 700; text-decoration: none; white-space: nowrap; }
    .sl-mobile-contact .sl-whatsapp-btn { color: #fff; background: #167447; border: 0; }
    .sl-mobile-call { color: #fff; background: var(--primary); max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
}

/* ./pages/auth.css */
/* =========================
   LAYOUT GLOBAL
========================= */
.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* =========================
   CARDS
========================= */
.auth-card,
.auth-side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* =========================
   FORM CARD
========================= */
.auth-card {
    padding: 32px;
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-kicker {
    margin: 0 0 8px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--text-2xs);
    font-weight: 700;
}

.auth-card h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--secondary);
}

.auth-subtitle {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-size: var(--text-base);
}

/* =========================
   FORM
========================= */
.auth-form > div {
    margin-bottom: 14px;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================
   INPUTS SCOPED AUTH
========================= */
.auth-form input,
.auth-form select,
.auth-form textarea {
    min-height: var(--field-height);
    border-radius: var(--radius-field);
}

.auth-form textarea {
    min-height: 100px;
    height: auto;
}

/* =========================
   BOUTON
========================= */
.auth-submit {
    width: 100%;
    height: 48px;
    font-size: var(--text-md);
    font-weight: 700;
    margin-top: 8px;
    border-radius: 6px;
}

/* =========================
   AIDE ET ERREURS DES CHAMPS
========================= */
.auth-form .help-text {
    margin-top: 4px;
    font-size: var(--text-xs);
    color: var(--muted);
}

.auth-form ul:not([class]),
.auth-form .form-error {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    color: #b42318;
    font-size: var(--text-sm);
    font-weight: 600;
}

.auth-form label a {
    color: var(--primary);
    text-decoration: underline;
}

.auth-forgot {
    margin: -4px 0 10px;
    text-align: right;
    font-size: var(--text-sm);
}

.auth-forgot a {
    color: var(--primary);
    font-weight: 600;
}

.auth-layout-single {
    grid-template-columns: minmax(0, 500px);
    justify-content: center;
}

/* =========================
   FOOTER
========================= */
.auth-footer {
    margin-top: 20px;
    text-align: center;
}

.auth-footer p {
    color: var(--muted);
    font-size: var(--text-base);
    margin-bottom: 10px;
}

/* =========================
   HUMAN CHECK
========================= */
.human-check-card,
.terms-card {
    background: var(--primary-light);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 6px;
    padding: 14px 16px;
}

.human-check-card {
    margin-bottom: 14px;
}

.human-check-card h3 {
    margin: 0 0 6px;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--secondary);
}

.human-check-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.human-check-row,
.terms-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.human-check-row input[type="checkbox"],
.terms-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary);
}

.human-check-row label,
.terms-card label {
    margin: 0;
    font-weight: 500;
    font-size: var(--text-base);
    line-height: 1.5;
    cursor: pointer;
    color: var(--text);
}

/* =========================
   SIDE PANEL
========================= */
.auth-side-card {
    position: relative;
    min-height: 560px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(var(--primary-rgb), 0.72)),
        url("../images/hero-home-42SkjD0.webp") center/cover no-repeat;
}

.auth-side-content {
    padding: 48px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.auth-kicker-side {
    color: rgba(255, 255, 255, 0.80);
}

.auth-side-content h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    max-width: 520px;
    color: #fff;
}

.auth-side-content p {
    font-size: var(--text-md);
    opacity: 0.85;
    line-height: 1.7;
    max-width: 460px;
    margin: 0;
}

/* =========================
   ANTI BOT HIDDEN FIELD
========================= */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side-card {
        min-height: 240px;
    }

    .auth-side-content {
        justify-content: flex-end;
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 22px;
    }

    .auth-grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-card h1 {
        font-size: var(--text-3xl);
    }

    .auth-side-content {
        padding: 20px;
    }

    .auth-side-content h2 {
        font-size: var(--text-3xl);
    }
}

/* =========================
   SÉLECTEUR TYPE DE COMPTE
========================= */
.reg-account-type-group .form-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.reg-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.reg-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.reg-type-card:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-2px);
}

.reg-type-card.is-selected {
    border-color: var(--primary);
    background: var(--gray-50);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 199, 50, 50), 0.12);
}

/* Radio masqué visuellement mais utilisable au clavier (flèches) et par les lecteurs d'écran */
.reg-type-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.reg-type-card {
    position: relative;
}

.reg-type-card:has(.reg-type-radio:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

fieldset.reg-account-type-group {
    border: 0;
    padding: 0;
    margin: 0 0 14px;
    min-width: 0;
}

.reg-type-icon {
    font-size: var(--text-4xl);
    line-height: 1;
}

.reg-type-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.reg-type-desc {
    font-size: var(--text-2xs);
    color: var(--text-muted);
    line-height: 1.3;
}

/* Bandeau info démarcheur */
.reg-demarcheur-info {
    margin-bottom: 16px;
}

.reg-demarcheur-info-inner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--primary-ink);
}

.reg-demarcheur-info-inner strong {
    display: block;
    margin-bottom: 4px;
    font-size: var(--text-base);
}

/* =========================
   PROFIL DÉMARCHEUR
========================= */
.dmr-card {
    max-width: 100%;
}

.dmr-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: var(--bg-light, var(--gray-50));
    border-radius: 8px;
    border: 1px solid var(--border);
}

.dmr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.dmr-badge--verified {
    background: #d1fae5;
    color: #065f46;
}

.dmr-badge--pending {
    background: #fef3c7;
    color: var(--primary-dark);
}

.dmr-stat {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.dmr-neighborhoods-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.dmr-neighborhood-tag {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Panneau latéral "Comment ça marche" */
.dmr-how-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

.dmr-how-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dmr-how-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

.dmr-how-step strong {
    display: block;
    color: #fff;
    font-size: var(--text-base);
    margin-bottom: 2px;
}

.dmr-how-step p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================
   AVATAR
========================= */
.dmr-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dmr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dmr-avatar-initials { font-size: var(--text-xl); font-weight: 700; color: #fff; }

.dmr-avatar--sm { width: 42px; height: 42px; }
.dmr-avatar--sm .dmr-avatar-initials { font-size: var(--text-base); }

.dmr-avatar--lg { width: 72px; height: 72px; }
.dmr-avatar--lg .dmr-avatar-initials { font-size: var(--text-4xl); }

/* =========================
   PAGE LISTE DÉMARCHEURS
========================= */
.dmr-list-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dmr-list-hero h1 { margin: 4px 0 8px; }

.dmr-list-hero-sub {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0;
}

.dmr-list-stats {
    display: flex;
    gap: 24px;
}

.dmr-list-stat {
    text-align: center;
}

.dmr-list-stat-num {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.dmr-list-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.dmr-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dmr-filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: var(--text-base);
}

.dmr-filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 199,50,50), 0.1);
}

.dmr-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.dmr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.dmr-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dmr-public-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dmr-public-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.dmr-public-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dmr-public-card-info {
    flex: 1;
    min-width: 0;
}

.dmr-public-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dmr-verified-dot {
    width: 18px;
    height: 18px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    font-size: var(--text-2xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dmr-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}
.dmr-rating--lg { font-size: var(--text-md); margin-top: 6px; }
.dmr-stars { color: #f59e0b; font-weight: 600; font-size: var(--text-sm); }
.dmr-rating-count { font-size: var(--text-xs); color: var(--text-muted); }

.dmr-placements {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

.dmr-public-bio {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.dmr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dmr-neighborhood-tag--more {
    background: var(--bg-light, var(--gray-100));
    color: var(--text-muted);
    border-color: var(--border);
}

.dmr-public-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
}

.dmr-visit-fee {
    font-weight: 600;
    color: var(--primary);
}

.dmr-exp {
    color: var(--text-muted);
}

/* =========================
   PAGE PROFIL DÉMARCHEUR
========================= */
.dmr-show-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.dmr-show-profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dmr-show-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.dmr-show-name {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dmr-show-title {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin: 0;
}

.dmr-show-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    background: var(--bg-light, var(--gray-50));
    border-radius: 10px;
    padding: 16px;
}

.dmr-show-stat {
    text-align: center;
}

.dmr-show-stat-num {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
}

.dmr-show-stat-label {
    font-size: var(--text-2xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dmr-show-bio h2,
.dmr-show-section h2,
.dmr-show-tarifs h2 {
    font-size: var(--text-md);
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}

.dmr-show-bio p {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.dmr-tarif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}

.dmr-tarif-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.dmr-tarif-table td:last-child { text-align: right; }

.dmr-tarif-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 8px;
}

/* Sidebar contact #}*/
.dmr-show-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.dmr-contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.dmr-contact-card h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0 0 4px;
}

.dmr-contact-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 0 16px;
}

.dmr-wa-btn {
    width: 100%;
    justify-content: center;
    display: flex;
}

.dmr-contact-divider {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 12px 0;
    position: relative;
}

.dmr-contact-divider::before,
.dmr-contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}

.dmr-contact-divider::before { left: 0; }
.dmr-contact-divider::after  { right: 0; }

.dmr-tel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dmr-tel-btn:hover {
    background: var(--bg-light, var(--gray-50));
    border-color: var(--primary);
}

.dmr-info-card {
    background: var(--bg-light, var(--gray-50));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.dmr-info-card h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.dmr-info-steps {
    padding-left: 18px;
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text);
}

/* =========================
   CARTE DÉMARCHEUR SUR ANNONCE
========================= */
.dmr-listing-card {
    margin-top: 14px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-card);
}

.dmr-listing-card-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.dmr-listing-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dmr-listing-role {
    font-size: var(--text-xs);
    color: #059669;
    font-weight: 500;
    margin-top: 1px;
}

.dmr-listing-fees {
    display: flex;
    gap: 14px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 10px;
    flex-wrap: wrap;
}

.dmr-listing-profile-link {
    display: inline-block;
    margin-top: 12px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #059669;
    text-decoration: none;
}

.dmr-listing-profile-link:hover { text-decoration: underline; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .dmr-show-layout { grid-template-columns: 1fr; }
    .dmr-show-sidebar { position: static; }
    .dmr-list-hero { flex-direction: column; align-items: flex-start; }
}

/* ── Démarcheur : biens proposés, publication express, lien en attente ── */
.dmr-show-listings {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}
.dmr-show-listings h2 { font-size: var(--text-xl); font-weight: 800; margin: 0 0 16px; color: var(--secondary); }
.dmr-show-empty { color: var(--text-muted); font-size: var(--text-base); margin: 0; }
.dmr-express-cta { width: 100%; justify-content: center; margin-bottom: 22px; }
.dmr-ref-pending {
    font-size: var(--text-sm); color: #8a5a00; background: #fff7e6; border: 1px solid #ffe2a8;
    border-radius: 8px; padding: 10px 12px; margin: 0 0 14px;
}
@media (max-width: 640px) {
    .dmr-show-listings { padding: 18px 16px; }
}
.dmr-join {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin: 0 0 20px; padding: 16px 20px; border-radius: 12px; background: var(--primary-light); border: 1px solid var(--primary-200);
}
.dmr-join strong { display: block; color: var(--secondary); font-size: var(--text-lg); }
.dmr-join span { font-size: var(--text-base); color: var(--text-muted); }

/* Espace démarcheur : panneau sur fond uni, textes contrastés */
.auth-side-card.dmr-side-card { background: var(--secondary); min-height: 0; }
.dmr-side-card .auth-side-content { justify-content: flex-start; }
.dmr-side-card .auth-side-content p { max-width: none; opacity: 1; color: rgba(255, 255, 255, .85); }
.dmr-side-card .auth-kicker.light { color: var(--primary-300); }
.dmr-side-card .auth-side-content .dmr-ref-pending { color: #5c3c00; background: #fff4dc; border-color: #ffd98a; margin-bottom: 14px; }
.dmr-side-card .auth-side-content .dmr-ref-hint { color: rgba(255, 255, 255, .8); font-size: var(--text-sm); margin: 4px 0 14px; }
.dmr-side-card .dmr-ref-hint strong { color: #fff; letter-spacing: .5px; }
.dmr-side-card .dmr-how-step p { color: rgba(255, 255, 255, .85); }
.dmr-side-card .dmr-ref-top-title-text, .dmr-side-card .dmr-ref-top p { color: var(--secondary); }

/* Inscription : styles limités à cette page, sans modifier les autres espaces. */
.registration-page { padding: 32px 0 44px; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 360px); gap: 28px; max-width: 1028px; margin: 0 auto; align-items: start; }
.registration-card { padding: 30px 32px 24px; border-radius: 16px; }
.registration-card .auth-card-header { margin-bottom: 20px; }
.registration-card h1 { font-size: var(--text-5xl); letter-spacing: -.6px; }
.registration-card .auth-subtitle { line-height: 1.5; }
.registration-form label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.registration-form input:not([type=checkbox]), .registration-form select { width: 100%; min-height: var(--field-height); padding: 0 12px; border: 1px solid var(--field-border); background: var(--field-bg); color: var(--gray-900); font-size: var(--field-font); }
.registration-form input:focus-visible, .registration-form select:focus-visible, .registration-password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.registration-form .auth-grid-2 { margin-bottom: 14px; align-items: start; }
.registration-form .auth-grid-2 > div { min-width: 0; }
.registration-form .auth-grid-2 > div > div { margin-bottom: 0; }
.registration-profile-help, .registration-help, .registration-form .help-text, .registration-form .help-text + p { color: var(--gray-500); font-size: var(--text-xs); line-height: 1.5; margin: 6px 0 0; }
.registration-profile-help [hidden] { display: none; }
.registration-password-control { position: relative; }
.registration-form .registration-password-control input { padding-right: 86px; }
.registration-password-toggle { position: absolute; right: 4px; top: 4px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 4px; background: var(--gray-100); color: var(--gray-900); cursor: pointer; font-size: var(--text-xs); font-weight: 600; }
.registration-terms-line { display: flex; gap: 10px; align-items: flex-start; }
.registration-form .registration-terms-line input[type=checkbox] { appearance: auto; width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--primary); flex: 0 0 18px; }
.registration-terms-line label { margin: 0; font-size: var(--text-sm); font-weight: 400; line-height: 1.65; }
.registration-form .auth-submit { margin-top: 0; height: 46px; }
.registration-form .registration-privacy { margin: 12px 0 0; font-size: var(--text-xs); line-height: 1.5; text-align: left; color: var(--gray-500); }
.registration-privacy a, .registration-login a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.registration-login { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--gray-200); text-align: center; font-size: var(--text-base); color: var(--gray-500); }
.registration-login a { font-weight: 600; margin-left: 4px; }
.registration-aside { padding: 32px 28px; border-radius: 16px; background: var(--gray-900); color: var(--gray-200); }
.registration-aside-kicker { margin: 0 0 14px; color: var(--primary-300); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.registration-aside h2 { margin: 0 0 14px; color: white; font-size: var(--text-5xl); line-height: 1.2; letter-spacing: -.6px; }
.registration-aside > p:not(.registration-aside-kicker) { font-size: var(--text-base); line-height: 1.65; margin: 0; }
.registration-benefits { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; font-size: var(--text-sm); line-height: 1.5; }
.registration-benefits li { display: flex; gap: 10px; }
.registration-benefits span { color: var(--primary-300); font-weight: 700; }
.registration-aside-note { padding-top: 20px; border-top: 1px solid #41516a; font-size: var(--text-sm); }
.registration-aside-note strong { color: white; }
.registration-aside-note p { margin: 8px 0 0; line-height: 1.6; }
@media(max-width: 900px) { .registration-layout { grid-template-columns: minmax(0, 640px); justify-content: center; } .registration-aside { display: none; } }
@media(max-width: 600px) { .registration-page { padding: 20px 0 28px; } .registration-card { padding: 24px 20px; } .registration-card h1 { font-size: var(--text-4xl); } .registration-form .auth-grid-2 { grid-template-columns: 1fr; } .registration-form input:not([type=checkbox]), .registration-form select { font-size: var(--field-font); } }

/* ./pages/listing-create.css */
.create-listing-page {
    display: grid;
    gap: 24px;
}

.create-listing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.create-listing-kicker {
    margin: 0 0 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--text-xs);
    font-weight: 700;
}

.create-listing-header h1 {
    margin: 0 0 10px;
    font-size: var(--text-7xl);
    line-height: 1.08;
}

.create-listing-subtitle {
    color: var(--muted);
    max-width: 760px;
    line-height: 1.7;
    margin: 0;
}

.create-listing-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.create-listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.create-listing-main {
    display: grid;
    gap: 20px;
}

.create-section-card {
    display: grid;
    gap: 16px;
}

.create-section-head h2 {
    margin: 0 0 6px;
    font-size: var(--text-4xl);
}

.create-section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.create-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.create-listing-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 110px;
}

.create-side-card h3 {
    margin: 0 0 14px;
    font-size: var(--text-2xl);
}

.create-side-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.create-tips-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.8;
}

.create-tips-list li {
    margin-bottom: 6px;
}

/* =========================
   IMAGE UPLOAD
========================= */
.image-upload-box {
    display: grid;
    gap: 10px;
}

.image-dropzone {
    position: relative;
    border: 2px dashed var(--gray-300);
    background: var(--gray-50);
    border-radius: 8px;
    padding: 28px;
    transition: 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.image-dropzone:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.image-dropzone.is-dragover {
    border-color: var(--primary);
    background: #fff1f0;
    transform: scale(1.01);
}

.image-dropzone-inner {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    pointer-events: none;
}

.image-dropzone-inner .btn {
    pointer-events: auto;
}

.image-dropzone-icon {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff1f0;
    font-size: var(--text-6xl);
}

.image-dropzone h3 {
    margin: 0;
    font-size: var(--text-3xl);
}

.image-dropzone p {
    margin: 0;
    color: var(--muted);
}

.image-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-upload-hint {
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* =========================
   IMAGE PREVIEW
========================= */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.image-preview-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: var(--gray-50);
    color: var(--muted);
    text-align: center;
}

.image-preview-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.image-preview-card.is-dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.image-preview-card.is-drop-target {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.12);
}

.image-preview-media {
    width: 100%;
    height: 160px;
    background: var(--gray-100);
}

.image-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.image-preview-body {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.image-preview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.image-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: grab;
}

.image-preview-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.image-preview-meta {
    font-size: var(--text-xs);
    color: var(--muted);
}

.image-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: var(--text-2xs);
    font-weight: 700;
    background: #fff1f0;
    color: var(--primary);
}

.image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: var(--text-2xl);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 2;
}

.image-remove-btn:hover {
    background: rgba(17, 24, 39, 0.95);
    transform: scale(1.05);
}

.image-remove-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

/* =========================
   MAP PICKER
========================= */
.map-picker-wrap {
    display: grid;
    gap: 10px;
}

.map-picker-search {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    position: relative;
}

.map-picker-search input {
    min-height: var(--field-height);
    padding: 0 14px;
}

.map-picker-search .btn {
    height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

.map-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 80px;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
}

.map-search-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: var(--text-base);
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s ease;
    white-space: normal;
    line-height: 1.4;
}

.map-search-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.map-search-loading,
.map-search-empty {
    padding: 10px 12px;
    font-size: var(--text-sm);
    color: var(--muted);
}

#map-picker-container {
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--gray-300);
    position: relative;
    z-index: 0;
    transition: border-color 0.15s ease;
}

#map-picker-container:focus-within {
    border-color: var(--primary);
}

.map-picker-coords {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--muted);
    padding: 6px 10px;
    background: var(--gray-100);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.map-picker-coords strong {
    color: var(--text);
    font-family: monospace;
    font-size: var(--text-xs);
}

.map-picker-hint {
    font-size: var(--text-sm);
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 980px) {
    .create-listing-layout {
        grid-template-columns: 1fr;
    }

    .create-listing-sidebar {
        position: static;
    }

    .create-listing-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .create-listing-header h1 {
        font-size: var(--text-5xl);
    }

    .create-form-actions {
        flex-direction: column;
    }

    .create-form-actions .btn {
        width: 100%;
    }

    .image-dropzone {
        padding: 20px;
    }

    .image-dropzone h3 {
        font-size: var(--text-xl);
    }
}

/* =========================
   STEP INDICATOR
========================= */
.cl-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 4px;
}

.cl-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cl-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: var(--text-xs);
    font-weight: 800;
    display: grid;
    place-items: center;
    background: var(--gray-200);
    color: var(--gray-400);
    transition: background 0.2s ease, color 0.2s ease;
}

.cl-step.is-done .cl-step-num {
    background: #dcfce7;
    color: #16a34a;
}

.cl-step.is-active .cl-step-num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.3);
}

.cl-step-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-400);
}

.cl-step.is-done .cl-step-label  { color: #16a34a; }
.cl-step.is-active .cl-step-label { color: var(--secondary); }

.cl-step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 12px;
    border-radius: 1px;
}

.cl-step-tag {
    display: inline-block;
    font-size: var(--text-2xs);
    font-weight: 700;
    background: var(--primary-light, var(--primary-light));
    color: var(--primary);
    border-radius: 4px;
    padding: 1px 7px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}

/* =========================
   IMAGE UPLOAD — PREMIUM
========================= */
.image-dropzone-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-count-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: var(--text-xs);
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 3px 12px;
}

/* New image preview cards */
.ipc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.ipc {
    position: relative;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ipc:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.10); }

.ipc.ipc-main { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12); }

.ipc.is-dragging { opacity: 0.45; transform: scale(0.96); }

.ipc.is-drop-target {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.2);
}

.ipc-thumb {
    position: relative;
    height: 110px;
    background: var(--gray-100);
    overflow: hidden;
}

.ipc-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.ipc-main-badge {
    position: absolute;
    bottom: 6px; left: 6px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ipc-delete {
    position: absolute;
    top: 5px; right: 5px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    font-size: var(--text-sm);
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s ease;
}

.ipc-delete:hover { background: rgba(220,38,38,0.85); }

.ipc-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
}

.ipc-drag {
    font-size: var(--text-base);
    color: var(--gray-300);
    cursor: grab;
    flex-shrink: 0;
}

.ipc-promote {
    flex: 1;
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipc-promote:hover { text-decoration: underline; }

.ipc-is-main {
    flex: 1;
    font-size: var(--text-2xs);
    font-weight: 800;
    color: var(--primary);
}

.ipc-size {
    font-size: var(--text-2xs);
    color: var(--gray-300);
    white-space: nowrap;
    flex-shrink: 0;
}

.ipc-reorder-hint {
    grid-column: 1 / -1;
    font-size: var(--text-xs);
    color: var(--muted);
    text-align: center;
    margin: 2px 0 0;
    padding: 0;
}

/* Auto-save indicator */
.autosave-indicator {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 6px 14px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.autosave-indicator.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Char counter */
.char-counter {
    font-size: var(--text-2xs);
    color: var(--muted);
    display: block;
    text-align: right;
    margin-top: 4px;
}

.char-counter.is-warning { color: #d97706; }
.char-counter.is-danger  { color: #dc2626; font-weight: 700; }

/* Image empty state */
.image-preview-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--muted);
    padding: 6px 0;
    grid-column: 1 / -1;
}

/* =========================
   IMAGES EXISTANTES (edit)
========================= */
.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.existing-image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: opacity .2s;
}

.existing-image-card.is-deleting {
    opacity: .35;
    pointer-events: none;
}

.existing-image-media {
    height: 150px;
}

.existing-image-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.existing-image-main-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    pointer-events: none;
}

.existing-image-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .55);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: var(--text-xl);
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.existing-image-delete:hover {
    background: rgba(220, 38, 38, .85);
}
/* GPS facultatif et confirmation du point de l'appareil. */
.map-gps-status { font-size: var(--text-sm); line-height: 1.7; color: #344f6a; margin: 0; }
.map-gps-status:empty { display: none; }
.map-gps-preview { padding: 16px; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 10px; }
.map-gps-preview[hidden] { display: none; }
.map-gps-preview p { margin: 0 0 12px; font-size: var(--text-sm); line-height: 1.7; }
.map-gps-preview .btn { margin: 4px 8px 4px 0; min-height: 44px; }
.map-clear-btn { justify-self: start; padding: 8px 0; border: 0; background: transparent; color: var(--gray-600); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.map-clear-btn:disabled { opacity: .5; cursor: default; }
.map-manual-coordinates { margin: 12px 0; }
.map-manual-coordinates summary { color: #344f6a; cursor: pointer; font-size: var(--text-sm); padding: 8px 0; }
.map-manual-coordinates .grid { margin-top: 10px; }
@media (max-width: 760px) {
    .map-picker-search { grid-template-columns: minmax(0, 1fr) auto; }
    #map-gps-btn { grid-column: 1 / -1; width: 100%; min-height: 44px; height: auto; white-space: normal; padding: 12px; }
    .map-gps-preview .btn { width: 100%; margin-right: 0; }
}

/* Repère de la carte de saisie : contrasté sur la vue satellite, ombre au sol pour situer la pointe */
.map-pick-marker { cursor: grab; }
.map-pick-marker span {
    position: absolute; left: 0; top: 0; width: 28px; height: 28px;
    background: var(--primary); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.map-pick-marker span::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.map-pick-marker::after {
    content: ''; position: absolute; left: 11px; bottom: 0; width: 12px; height: 5px;
    border-radius: 50%; background: rgba(0,0,0,.45);
}

/* ./pages/listing-express.css */
/* =========================================================
   PUBLICATION EXPRESS (ex-*) — pensée d'abord pour le téléphone
========================================================= */
.ex-page { background: var(--bg-light); padding: 28px 0 40px; }
.ex-wrap { max-width: 620px; margin: 0 auto; padding: 0 16px; }
.ex-head { margin-bottom: 18px; }
.ex-kicker { color: var(--primary); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 4px; }
.ex-head h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 6px; color: var(--secondary); }
.ex-sub { color: var(--muted); margin: 0; }

.ex-form { display: flex; flex-direction: column; gap: 14px; }
.ex-form > div { margin: 0; }
.ex-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 18px; box-shadow: var(--shadow-card);
}
.ex-title { font-size: var(--text-lg); font-weight: 800; color: var(--secondary); margin: 0 0 14px; }
.ex-title small { font-weight: 500; font-size: var(--text-sm); color: var(--muted); }
.ex-label { display: block; font-weight: 600; font-size: var(--text-base); margin: 14px 0 8px; color: var(--text); }
.ex-field { margin-top: 12px; }
.ex-field label { display: block; font-weight: 600; font-size: var(--text-base); margin-bottom: 6px; }
.ex-field input, .ex-field select, .ex-field textarea { width: 100%; font-size: var(--field-font); }
.ex-hint { font-size: var(--text-sm); color: var(--muted); margin: 8px 0 0; }
.ex-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-form ul { margin: 6px 0 0; padding: 0; list-style: none; color: #c62828; font-size: var(--text-sm); font-weight: 600; }

/* Photos */
.ex-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ex-photo, .ex-photo-add { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.ex-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-photo-main {
    position: absolute; left: 6px; bottom: 6px; background: var(--secondary); color: #fff;
    font-size: var(--text-2xs); font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.ex-photo-del {
    position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%;
    border: 0; background: rgba(13, 31, 60, .75); color: #fff; font-size: var(--text-xl); line-height: 1; cursor: pointer;
}
.ex-photo-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border: 2px dashed var(--gray-300); background: var(--bg-light); color: var(--secondary);
    font-weight: 700; font-size: var(--text-sm); text-align: center; padding: 8px; cursor: pointer;
}
.ex-photo-add[hidden] { display: none; }
.ex-photo-add:focus-within { border-color: var(--primary); }
.ex-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ex-photos:not(:has(.ex-photo)) { grid-template-columns: 1fr; }
.ex-photos:not(:has(.ex-photo)) .ex-photo-add { aspect-ratio: auto; min-height: 140px; }
[data-ex-status] { color: #8a5a00; font-weight: 600; }
[data-ex-status].is-ok { color: #1a7f37; }

/* Puces de choix */
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chips--offer .ex-chip { flex: 1; }
.ex-chip { position: relative; cursor: pointer; margin: 0; }
.ex-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ex-chip span {
    display: block; text-align: center; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 999px;
    font-weight: 600; font-size: var(--text-base); color: var(--text); background: #fff; transition: all .12s ease;
}
.ex-chips--offer .ex-chip span { border-radius: 10px; padding: 12px; font-size: var(--text-md); }
.ex-chip input:checked + span { border-color: var(--secondary); background: var(--secondary); color: #fff; }
.ex-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ex-chips--small .ex-chip span { padding: 7px 12px; font-size: var(--text-sm); }

.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ex-row[hidden] { display: none; }
.ex-row .ex-label { margin: 0; }
.ex-stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.ex-stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: var(--text-3xl); color: var(--secondary); cursor: pointer; }
.ex-stepper-input { width: 52px; height: 44px; border: 0; text-align: center; font-size: var(--text-lg); font-weight: 700; -moz-appearance: textfield; }
.ex-stepper-input::-webkit-inner-spin-button, .ex-stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Prix */
.ex-price { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.ex-price input { border: 0; font-size: var(--text-2xl); font-weight: 700; flex: 1; min-width: 0; background: transparent; }
.ex-price input:focus { outline: none; }
.ex-price:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.ex-price-suffix { padding: 0 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Envoi */
.ex-submit-bar { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg-light) 30%); }
.ex-submit { width: 100%; justify-content: center; min-height: 54px; font-size: var(--text-lg); }
.ex-submit:disabled { opacity: .6; cursor: progress; }
.ex-alt { text-align: center; font-size: var(--text-base); color: var(--muted); margin: 4px 0 0; }

@media (max-width: 768px) {
    /* Au-dessus de la barre de navigation du bas (.mob-nav) */
    .ex-submit-bar { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
}
@media (max-width: 480px) {
    .ex-grid-2 { grid-template-columns: 1fr; }
    .ex-card { padding: 16px 14px; }
}

/* Lien vers la publication express depuis le formulaire complet */
.ex-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 20px;
    padding: 14px 18px; border-radius: 12px; text-decoration: none;
    background: var(--primary-light); border: 1px solid var(--primary-200); color: var(--secondary);
}
.ex-banner strong { color: var(--primary); }
.ex-banner span { font-size: var(--text-base); }
.ex-banner:hover { border-color: var(--primary); }

/* Point GPS facultatif, replié par défaut pour ne pas allonger le formulaire */
.ex-map { margin-top: 14px; border: 1px solid var(--gray-200); border-radius: 12px; padding: 0 12px; background: var(--gray-50); }
.ex-map summary { cursor: pointer; padding: 13px 0; font-weight: 700; list-style: none; }
.ex-map summary::-webkit-details-marker { display: none; }
.ex-map summary small { font-weight: 500; color: var(--muted); }
.ex-map[open] { padding-bottom: 12px; }
.ex-map .map-picker-wrap { margin: 0; }
.ex-map #map-picker-container { height: 300px; }
/* Choix Satellite / Plan : assez grand pour le doigt */
.leaflet-control-layers label { font-size: var(--text-base); padding: 3px 0; }
.leaflet-control-layers-selector { width: 16px; height: 16px; vertical-align: -3px; }

/* ./pages/pricing.css */
.pricing-section {
    margin: 24px 0 40px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h1 {
    margin: 0 0 10px;
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

.pricing-header p {
    margin: 0 auto;
    max-width: 600px;
    color: var(--muted);
    font-size: var(--text-md);
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.pricing-card h2 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary);
}

.pricing-description {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.pricing-card.is-popular {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.pricing-card.is-verified {
    border: 1px solid var(--border);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 5px 12px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-card.is-verified .pricing-badge,
.pricing-badge--green {
    background: var(--success);
}

.pricing-badge--blue {
    background: #2563eb;
}

.pricing-card.is-pro {
    border: 1px solid var(--border);
}

.pricing-price {
    margin: 4px 0 0;
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
}

.pricing-price small {
    display: block;
    margin-top: 4px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    text-align: left;
}

.pricing-features li {
    padding-left: 20px;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text);
    position: relative;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 4px;
}

/* =========================
   FAQ
========================= */
.pricing-faq {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.pricing-faq h2 {
    margin: 0 0 28px;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
}

.pricing-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pricing-faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.pricing-faq-item h3 {
    margin: 0 0 10px;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
}

.pricing-faq-item p {
    margin: 0;
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pricing-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pricing-header h1 {
        font-size: var(--text-4xl);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 20px;
    }
}

/* ./pages/payment.css */
.payment-page-section {
    margin: 20px 0 40px;
}

.payment-page-header {
    margin-bottom: 24px;
}

.payment-page-kicker {
    margin: 0 0 6px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: var(--text-2xs);
    font-weight: 700;
}

.payment-page-header h1 {
    margin: 0 0 8px;
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

.payment-page-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.payment-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.payment-main,
.payment-sidebar {
    display: grid;
    gap: 16px;
}

.payment-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.payment-card-title,
.payment-side-title {
    margin: 0 0 16px;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.payment-summary {
    display: grid;
    gap: 0;
}

.payment-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--text-base);
}

.payment-summary-row:last-child {
    border-bottom: none;
}

.payment-summary-row span {
    color: var(--muted);
}

.payment-summary-row strong {
    color: var(--text);
    text-align: right;
}

.payment-summary-row.is-total {
    padding-top: 12px;
    border-top: 2px solid var(--border);
    border-bottom: none;
    margin-top: 4px;
}

.payment-summary-row.is-total strong {
    color: var(--accent);
    font-size: var(--text-3xl);
    font-weight: 700;
}

.payment-form {
    display: grid;
    gap: 16px;
}

.payment-methods {
    display: grid;
    gap: 10px;
}

.payment-method-card {
    display: block;
    cursor: pointer;
}

.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-content {
    display: block;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #fff;
}

.payment-method-card:hover .payment-method-content {
    border-color: rgba(var(--primary-rgb), 0.28);
    background: var(--primary-light);
}

.payment-method-card input:checked + .payment-method-content {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.12);
}

.payment-method-title {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--text);
}

.payment-method-text {
    display: block;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.payment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.payment-side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.payment-side-card.is-highlight {
    border-color: var(--primary);
    border-top: 3px solid var(--primary);
}

.payment-benefits {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: var(--text-base);
}

.payment-help-text {
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.7;
}

.payment-help-contact {
    margin: 0;
    font-size: var(--text-base);
    color: var(--text);
}

/* =========================
   PAYMENT METHOD LOGO
========================= */
.payment-method-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-method-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.payment-method-logo-orange {
    background: var(--primary);
    color: #fff;
}

.payment-method-logo-mtn {
    background: #ffcc00;
    color: #000;
}

/* =========================
   PAYMENT INSTRUCTIONS
========================= */
.payment-instructions {
    padding: 18px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.payment-instructions-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.payment-instructions-icon {
    font-size: var(--text-5xl);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.payment-instructions-header h3 {
    margin: 0 0 4px;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary);
}

.payment-instructions-header p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--muted);
    line-height: 1.5;
}

.payment-instructions-number {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fff;
    border-radius: 6px;
    border: 1.5px solid var(--primary);
    margin-bottom: 16px;
    font-size: var(--text-base);
    color: var(--muted);
}

.payment-instructions-number strong {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.04em;
    font-family: monospace;
}

.payment-copy-btn {
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: var(--text-lg);
    color: var(--muted);
    transition: background 0.12s ease, color 0.12s ease;
}

.payment-copy-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.payment-steps {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.payment-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: var(--text-base);
    color: var(--text);
    line-height: 1.5;
}

.payment-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.payment-label-required {
    color: var(--primary);
    font-weight: 700;
}

.payment-field-hint {
    display: block;
    margin-top: 4px;
    font-size: var(--text-xs);
    color: var(--muted);
    line-height: 1.5;
}

/* =========================
   DETAIL PAIEMENT
========================= */
.payment-detail-list {
    display: grid;
    gap: 0;
}

.payment-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--text-base);
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-row strong {
    color: var(--text);
    text-align: right;
    font-weight: 600;
}

.payment-detail-label {
    color: var(--muted);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .payment-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .payment-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Justificatif (page d'un paiement) ── */
.pp-card { margin-top: 20px; }
.pp-title { margin: 0 0 14px; }
.pp-state { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--gray-100); color: var(--gray-700); line-height: 1.55; }
.pp-state.is-ok { background: #e9f7ee; color: #1a6b34; }
.pp-state.is-wait { background: #fff6e8; color: #8a4b00; display: flex; gap: 10px; align-items: baseline; }
.pp-state.is-ko { background: #fdecec; color: #a32020; }
.pp-state.is-todo { background: #eef4fd; color: #1f4f8a; }
.pp-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #e08a00; animation: pp-pulse 1.6s ease-in-out infinite; }
@keyframes pp-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pp-dot { animation: none; } }
.pp-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.pp-item { display: flex; gap: 14px; align-items: flex-start; padding: 10px; border: 1px solid var(--gray-200); border-radius: 10px; }
.pp-item p { margin: 4px 0; color: var(--muted); font-size: var(--text-base); overflow-wrap: anywhere; }
.pp-item a:not(.pp-thumb) { font-size: var(--text-base); font-weight: 600; }
.pp-thumb { flex: none; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--gray-100); display: grid; place-items: center; font-weight: 700; color: #a32020; text-decoration: none; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-form { display: grid; gap: 4px; }
.pp-form .btn { justify-self: start; margin-top: 8px; }
.pp-hint { margin: 0 0 10px; font-size: var(--text-sm); color: var(--muted); }

/* ./pages/favorite.css */
.favorite-page-section {
    margin: 20px 0 36px;
}

.favorite-page-wrapper {
    width: min(1440px, 96%);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.favorite-page-head {
    display: grid;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.favorite-page-kicker {
    margin: 0;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: var(--text-2xs);
    font-weight: 700;
}

.favorite-page-head h1 {
    margin: 0;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--secondary);
}

.favorite-page-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.favorite-empty {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 24px;
    display: grid;
    gap: 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.favorite-empty h2 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary);
}

.favorite-empty p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    line-height: 1.6;
    max-width: 500px;
    justify-self: center;
}

.favorite-empty-actions {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.favorite-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .favorite-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .favorite-page-head h1 {
        font-size: var(--text-3xl);
    }

    .favorite-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ./pages/dashboard.css */
/* =========================
   DASHBOARD — PREMIUM
========================= */
.db-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    display: grid;
    gap: 24px;
}

/* ── Header ─────────────────────────── */
.db-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.db-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.db-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.28);
}

.db-greeting {
    margin: 0 0 3px;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.db-sub {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--muted);
}

/* ── Stats ──────────────────────────── */
.db-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.db-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.db-stat-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.db-stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: var(--text-xl);
}

.db-stat-icon.s-blue   { background: #eff6ff; }
.db-stat-icon.s-green  { background: #f0fdf4; }
.db-stat-icon.s-orange { background: #fff7ed; }
.db-stat-icon.s-purple { background: #faf5ff; }

.db-stat-val {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.db-stat-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    margin-top: 3px;
}

/* ── Main grid ──────────────────────── */
.db-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 290px;
    gap: 16px;
    align-items: start;
}

.db-main, .db-side { display: grid; gap: 14px; }

/* ── Panel ──────────────────────────── */
.db-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.db-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.db-panel-head h2 {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
}

.db-panel-action {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.db-panel-action:hover { opacity: 0.78; }

.db-panel-count {
    font-size: var(--text-2xs);
    font-weight: 700;
    background: var(--primary-light, var(--primary-light));
    color: var(--primary);
    border-radius: 999px;
    padding: 2px 8px;
}

/* Alert panel */
.db-panel-alert {
    border-color: #fbbf24 !important;
    background: #fffbeb !important;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px !important;
}

.db-alert-icon { font-size: var(--text-3xl); flex-shrink: 0; margin-top: 2px; }

.db-panel-alert strong {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 3px;
}

.db-panel-alert p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--primary-dark);
    opacity: 0.85;
}

/* ── Empty state ────────────────────── */
.db-empty {
    text-align: center;
    padding: 36px 20px;
    display: grid;
    gap: 12px;
    place-items: center;
}

.db-empty-icon { font-size: var(--text-7xl); }
.db-empty p { margin: 0; color: var(--muted); font-size: var(--text-base); }

/* ── Listing rows ───────────────────── */
.db-listings { display: grid; gap: 0; }

.db-listing-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 8px;
    margin: 0 -8px;
    border-radius: 7px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.12s ease;
}

.db-listing-row:last-child { border-bottom: none; }
.db-listing-row:hover { background: var(--gray-50); }

/* Thumbnail */
.db-listing-thumb {
    flex-shrink: 0;
    position: relative;
    width: 76px;
    height: 56px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--gray-200);
}

.db-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.db-listing-thumb-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: var(--text-3xl);
    color: var(--gray-300);
}

.db-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.db-status-dot.is-live     { background: #16a34a; }
.db-status-dot.is-pending  { background: #d97706; }
.db-status-dot.is-rejected { background: #dc2626; }
.db-status-dot.is-draft    { background: var(--gray-400); }

/* Content */
.db-listing-content {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 5px;
}

.db-listing-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.db-listing-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

/* Badges */
.db-badge {
    display: inline-block;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.db-badge-live     { background: #dcfce7; color: #15803d; }
.db-badge-pending  { background: #fef9c3; color: #a16207; }
.db-badge-rejected { background: #fee2e2; color: #b91c1c; }
.db-badge-draft    { background: var(--gray-100); color: var(--gray-500); }

/* Meta */
.db-listing-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--muted);
}

.db-meta-price {
    font-weight: 700;
    color: var(--secondary);
    font-size: var(--text-sm);
}

.db-meta-sep { opacity: 0.35; }

.db-meta-tag {
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.db-meta-tag.boost    { background: #eff6ff; color: #2563eb; }
.db-meta-tag.premium  { background: #fdf4ff; color: #9333ea; }
.db-meta-tag.urgent   { background: #fff7ed; color: var(--primary); }
.db-meta-tag.verified { background: #f0fdf4; color: #16a34a; }
.db-meta-tag.offer    { background: var(--gray-100); color: var(--gray-700); }

/* Action buttons */
.db-listing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.dba {
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: var(--text-2xs);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.14s ease, transform 0.12s ease;
    line-height: 1;
    font-family: inherit;
}

.dba:hover { opacity: 0.78; transform: translateY(-1px); }

.dba-view    { background: var(--gray-100); color: var(--gray-700); }
.dba-edit    { background: #eff6ff; color: #1d4ed8; }
.dba-pay     { background: #fef9c3; color: var(--primary-ink); }
.dba-bump    { background: #f0fdf4; color: #15803d; }
.dba-renew   { background: var(--primary-light); color: var(--primary-dark); border: 0; cursor: pointer; font: inherit; }
.db-meta-expiring { color: var(--primary-dark); font-weight: 600; }
.dba-boost   { background: #eff6ff; color: #1d4ed8; }
.dba-premium { background: #fdf4ff; color: #7e22ce; }
.dba-urgent  { background: #fff7ed; color: var(--primary); }
.dba-disabled { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; }

/* ── Payments sidebar ───────────────── */
.db-payment-list { display: grid; gap: 0; }

.db-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}

.db-payment-row:last-child { border-bottom: none; padding-bottom: 0; }
.db-payment-row:first-child { padding-top: 0; }

.db-payment-ref {
    font-size: var(--text-2xs);
    font-weight: 600;
    color: var(--secondary);
    font-family: monospace;
}

.db-payment-amount {
    font-size: var(--text-2xs);
    color: var(--muted);
    margin-top: 2px;
}

.db-side-empty {
    font-size: var(--text-sm);
    color: var(--muted);
    margin: 0;
    padding: 4px 0;
}

/* ── Notifications ──────────────────── */
.db-notif-list { display: grid; gap: 8px; }

.db-notif-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-notif-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.db-notif-dot.is-ok   { background: #16a34a; }
.db-notif-dot.is-err  { background: #dc2626; }
.db-notif-dot.is-pend { background: #d97706; }

.db-notif-subject {
    font-size: var(--text-xs);
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────── */
@media (max-width: 900px) {
    .db-stats { grid-template-columns: repeat(2, 1fr); }
    .db-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .db-page { padding: 16px 12px 32px; gap: 16px; }
    .db-stats { gap: 8px; }
    .db-stat-card { padding: 12px 14px; gap: 10px; }
    .db-stat-val  { font-size: var(--text-3xl); }
    .db-greeting  { font-size: var(--text-xl); }
    .db-listing-thumb { width: 60px; height: 46px; }
    .dba { height: 22px; font-size: var(--text-2xs); padding: 0 7px; }
}

/* ./pages/achat.css */
/* ══════════════════════════════════════════════════════════════
   PAGE ACHETER — landing page achat immobilier
══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */
.achat-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2a4a 100%);
    color: #fff;
    padding: 64px 0 52px;
}

.achat-hero-title {
    color: #fff;
    font-size: var(--text-6xl);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.achat-hero-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: var(--text-lg);
    margin: 0 0 28px;
}

/* ── Barre de recherche ────────────────────────────────────── */
.achat-search-bar {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    display: grid;
    gap: 12px;
}

.achat-search-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.achat-search-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: var(--text-md);
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.achat-search-input:focus {
    border-color: var(--primary);
}

.achat-search-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.achat-search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.achat-filter-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: var(--text-sm);
    color: var(--text);
    background: #fff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.achat-filter-select:focus {
    border-color: var(--primary);
}

/* ── Sections ──────────────────────────────────────────────── */
.achat-section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 24px;
}

/* ── Grille catégories ─────────────────────────────────────── */
.achat-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.achat-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 16px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    color: var(--text);
}

.achat-cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    opacity: 1;
}

.achat-cat-icon {
    font-size: var(--text-5xl);
    flex-shrink: 0;
    line-height: 1;
}

.achat-cat-body {
    flex: 1;
    display: grid;
    gap: 2px;
}

.achat-cat-body strong {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
}

.achat-cat-body span {
    font-size: var(--text-xs);
    color: var(--muted);
}

.achat-cat-arrow {
    font-size: var(--text-2xl);
    color: var(--muted);
    flex-shrink: 0;
    font-weight: 400;
}

/* ── En-tête section annonces ──────────────────────────────── */
.achat-listings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.achat-listings-head .achat-section-title {
    margin: 0;
}

.achat-see-all {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    transition: color 0.15s ease;
    white-space: nowrap;
}

.achat-see-all:hover {
    color: var(--primary-dark);
    opacity: 1;
    text-decoration: underline;
}

/* ── Badge tag "Vente / Terrain" ───────────────────────────── */
.achat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Villes ────────────────────────────────────────────────── */
.achat-cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achat-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.achat-city-pill:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    opacity: 1;
}

/* ── CTA section ────────────────────────────────────────────── */
.achat-cta-section {
    background: var(--gray-100);
    padding: 56px 0;
}

.achat-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.achat-cta-box h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 6px;
}

.achat-cta-box p {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-base);
    max-width: 480px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .achat-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .achat-hero {
        padding: 40px 0 36px;
    }

    .achat-hero-title {
        font-size: var(--text-4xl);
    }

    .achat-search-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .achat-search-btn {
        width: 100%;
    }

    .achat-listings-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .achat-cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .achat-categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .achat-search-filters {
        flex-direction: column;
    }

    .achat-filter-select {
        width: 100%;
    }
}

/* ./pages/professional.css */
/* ================================================
   PROFESSIONNELS — index + show
   ================================================ */

/* ── Page header ── */
.pro-page-header {
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.pro-page-kicker {
    font-size: var(--text-2xs);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 8px;
}

.pro-page-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 10px;
    line-height: 1.2;
}

.pro-page-desc {
    font-size: var(--text-md);
    color: var(--muted);
    margin: 0;
    max-width: 560px;
    line-height: 1.7;
}

/* ── Type tabs ── */
.pro-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pro-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary-light);
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.pro-type-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pro-type-tab.is-active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.pro-type-tab-count {
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: var(--text-2xs);
    font-weight: 700;
}

.pro-type-tab.is-active .pro-type-tab-count { background: rgba(255,255,255,.25); }
.pro-type-tab:not(.is-active) .pro-type-tab-count { background: var(--gray-100); color: var(--secondary-light); }

/* ── Filters bar ── */
.pro-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.pro-search-input {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: var(--text-base);
    color: var(--secondary);
    outline: none;
    transition: border-color .15s;
}

.pro-search-input:focus { border-color: var(--primary); }

.pro-city-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: var(--text-base);
    color: var(--secondary);
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 160px;
}

.pro-results-count {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Grid ── */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ── Card ── */
.pro-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pro-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

.pro-card-top {
    padding: 20px 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pro-card-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.pro-card-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.pro-card-photo-placeholder.notaire    { background: #eff6ff; }
.pro-card-photo-placeholder.artisan    { background: #fffbeb; }
.pro-card-photo-placeholder.architecte { background: #f5f3ff; }

.pro-card-meta { flex: 1; min-width: 0; }

.pro-card-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: var(--text-2xs);
    font-weight: 700;
    white-space: nowrap;
}

.pro-badge-notaire    { background: #eff6ff; color: #1d4ed8; }
.pro-badge-artisan    { background: #fffbeb; color: var(--primary); }
.pro-badge-architecte { background: #f5f3ff; color: #7c3aed; }
.pro-badge-verified   { background: #d1fae5; color: #065f46; }
.pro-badge-featured   { background: #fef3c7; color: var(--primary-dark); }

.pro-card-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-card-tagline {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pro-card-body {
    padding: 14px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-card-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pro-card-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--muted);
}

.pro-services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pro-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: var(--text-2xs);
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.pro-card-footer {
    padding: 12px 20px 18px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
    flex: 1;
    white-space: nowrap;
}

.pro-btn-primary {
    background: var(--primary);
    color: #fff;
}

.pro-btn-primary:hover { background: var(--primary-dark); color: #fff; }

.pro-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.pro-btn-whatsapp:hover { background: #1da851; color: #fff; }

.pro-btn-outline {
    background: #fff;
    color: var(--secondary);
    border: 1.5px solid var(--border);
}

.pro-btn-outline:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--secondary); }

/* ── Empty state ── */
.pro-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: var(--muted);
}

.pro-empty-icon { font-size: 48px; margin-bottom: 12px; }
.pro-empty-title { font-size: var(--text-xl); font-weight: 700; color: var(--secondary); margin-bottom: 6px; }

/* ── Pagination ── */

/* ═══════════════════════════════════════════════
   SHOW PAGE
   ═══════════════════════════════════════════════ */

.pro-show-hero {
    padding: 48px 0 0;
    margin-bottom: 0;
}

.pro-show-hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.pro-show-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    flex-shrink: 0;
}

.pro-show-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-7xl);
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.pro-show-photo-placeholder.notaire    { background: #eff6ff; }
.pro-show-photo-placeholder.artisan    { background: #fffbeb; }
.pro-show-photo-placeholder.architecte { background: #f5f3ff; }

.pro-show-info { flex: 1; min-width: 0; }

.pro-show-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pro-show-name {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 6px;
    line-height: 1.2;
}

.pro-show-tagline {
    font-size: var(--text-md);
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.6;
    max-width: 560px;
}

.pro-show-location {
    font-size: var(--text-sm);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Show layout ── */
.pro-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    padding: 32px 0 48px;
}

/* ── Content sections ── */
.pro-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.pro-section:last-child { margin-bottom: 0; }

.pro-section-title {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pro-description {
    font-size: var(--text-md);
    color: var(--gray-700);
    line-height: 1.8;
    white-space: pre-line;
}

.pro-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pro-services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    color: var(--gray-700);
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.pro-services-list li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xs);
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 1px;
}

.pro-specialties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-specialty-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: 700;
    background: var(--gray-100);
    color: var(--secondary);
    border: 1px solid var(--gray-200);
}

.pro-certifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pro-certifications-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    color: var(--gray-700);
}

.pro-certifications-list li::before {
    content: '🏅';
    font-size: var(--text-lg);
}

/* ── Sticky contact card ── */
.pro-contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    position: sticky;
    top: 80px;
}

.pro-contact-card-head {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--gray-50);
}

.pro-contact-card-title {
    font-size: var(--text-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--secondary-light);
    margin: 0 0 14px;
}

.pro-contact-action-btns {
    display: grid;
    gap: 8px;
}

.pro-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 10px;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    transition: background .15s;
}

.pro-cta-phone:hover { background: var(--primary-dark); color: #fff; }

.pro-cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 10px;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    background: #25d366;
    color: #fff;
    transition: background .15s;
}

.pro-cta-whatsapp:hover { background: #1da851; color: #fff; }

.pro-contact-details {
    padding: 18px 22px;
    display: grid;
    gap: 12px;
}

.pro-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--text-sm);
    color: var(--gray-700);
}

.pro-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.pro-contact-label {
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 2px;
}

.pro-contact-value {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    word-break: break-all;
}

.pro-contact-value a {
    color: var(--primary);
    text-decoration: none;
}

.pro-contact-value a:hover { text-decoration: underline; }

.pro-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-light);
    border: 1px solid rgba(var(--primary-rgb),.2);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pro-show-layout { grid-template-columns: 1fr; }
    .pro-contact-card { position: static; }
}

@media (max-width: 640px) {
    .pro-grid { grid-template-columns: 1fr; }
    .pro-page-title { font-size: var(--text-4xl); }
    .pro-show-name { font-size: var(--text-3xl); }
}

/* ================================================
   PROFESSIONAL REGISTRATION — /inscription/professionnel
   ================================================ */

.pro-reg-wrap {
    padding: 48px 0 80px;
    min-height: 70vh;
    background: var(--bg-light, var(--gray-50));
}

.pro-reg-header {
    text-align: center;
    margin-bottom: 40px;
}

.pro-reg-back {
    display: inline-block;
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
}
.pro-reg-back:hover { text-decoration: underline; }

.pro-reg-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 10px;
}

.pro-reg-desc {
    font-size: var(--text-md);
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.pro-reg-alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: var(--text-base);
    font-weight: 500;
}
.pro-reg-alert.is-error { background: var(--gray-100); color: #b91c1c; border: 1px solid #fecaca; }
.pro-reg-alert.is-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.pro-reg-form {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.pro-reg-section {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
}
.pro-reg-section:last-of-type { border-bottom: none; }

.pro-reg-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 20px;
}

/* Type cards */
.pro-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pro-type-card {
    cursor: pointer;
    position: relative;
}

.pro-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pro-type-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: border-color .15s, background .15s;
    background: #fff;
}

.pro-type-card input[type="radio"]:checked ~ .pro-type-card-inner {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pro-type-card-inner:hover {
    border-color: var(--primary);
}

.pro-type-card-icon {
    font-size: var(--text-5xl);
    margin-bottom: 6px;
    line-height: 1;
}

.pro-type-card-label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.pro-type-card-hint {
    font-size: var(--text-2xs);
    color: var(--muted);
    line-height: 1.4;
}

/* Registration fields */
.pro-reg-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-reg-field { display: flex; flex-direction: column; gap: 5px; }

.pro-reg-field label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
}

.pro-reg-field input {
    padding: 10px 14px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    font-size: var(--field-font);
    outline: none;
    transition: border-color .15s;
}
.pro-reg-field input:focus { border-color: var(--primary); }

.pro-reg-field-error { font-size: var(--text-xs); color: #dc2626; margin-top: 4px; }
.pro-reg-field-hint { font-size: var(--text-xs); color: var(--muted); }

.pro-reg-footer {
    padding: 28px 32px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
}

.pro-reg-submit {
    width: 100%;
    padding: 14px;
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: 14px;
}

.pro-reg-terms {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.6;
}

.pro-reg-login-link {
    font-size: var(--text-sm);
    color: var(--muted);
    margin: 0;
}
.pro-reg-login-link a { color: var(--primary); font-weight: 600; }

@media (max-width: 640px) {
    .pro-type-cards { grid-template-columns: 1fr; }
    .pro-reg-section { padding: 20px; }
    .pro-reg-footer { padding: 20px; }
}

/* ================================================
   PROFESSIONAL PROFILE EDIT — /mon-profil-professionnel
   ================================================ */

.pro-edit-wrap {
    padding: 40px 0 80px;
    background: var(--bg-light, var(--gray-50));
    min-height: 70vh;
}

.pro-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pro-edit-kicker {
    font-size: var(--text-2xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin: 0 0 4px;
}

.pro-edit-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.pro-edit-status {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: var(--text-base);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pro-edit-status.is-active { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pro-edit-status.is-pending { background: #fffbeb; color: var(--primary-dark); border: 1px solid #fde68a; }

.pro-edit-verified-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: var(--text-xs);
    font-weight: 700;
    margin-left: 8px;
}

.pro-edit-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.pro-edit-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.pro-edit-card-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.pro-edit-card-hint {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: -8px 0 14px;
    line-height: 1.6;
}

.pro-edit-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.pro-edit-field--sm { max-width: 180px; }
.pro-edit-field:last-child { margin-bottom: 0; }

.pro-edit-field label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
}

.pro-edit-field input,
.pro-edit-field select,
.pro-edit-field textarea {
    padding: 9px 13px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    font-size: var(--field-font);
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.pro-edit-field input:focus,
.pro-edit-field select:focus,
.pro-edit-field textarea:focus { border-color: var(--primary); }

.pro-edit-field-hint { font-size: var(--text-xs); color: var(--muted); }

.pro-edit-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pro-edit-actions {
    padding: 8px 0 0;
}

.pro-edit-actions .btn {
    padding: 12px 28px;
    font-size: var(--text-md);
}

/* Suggest buttons */
.pro-edit-suggest {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: var(--text-2xs);
    background: #fff;
    color: var(--secondary);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pro-edit-suggest:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Sidebar */
.pro-edit-sidebar { position: sticky; top: 80px; }

.pro-edit-tips {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.pro-edit-tips-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 12px;
}

.pro-edit-tips-list {
    padding-left: 18px;
    margin: 0;
    font-size: var(--text-sm);
    color: var(--muted);
    line-height: 1.9;
}

.pro-edit-profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
}

.pro-edit-profile-type {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: 10px;
}

.pro-edit-profile-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.pro-edit-profile-location {
    font-size: var(--text-sm);
    color: var(--muted);
}

@media (max-width: 900px) {
    .pro-edit-layout { grid-template-columns: 1fr; }
    .pro-edit-sidebar { position: static; }
}

@media (max-width: 600px) {
    .pro-edit-grid2 { grid-template-columns: 1fr; }
    .pro-edit-header { flex-direction: column; }
}

/* Annuaire : présentation éditoriale et recherche. */
.pro-directory { padding-top: 0; }
.pro-directory .pro-page-header {
    display: grid; grid-template-columns: minmax(0,1fr) 280px;
    align-items: center; gap: 48px; padding: 48px 0 36px;
    margin-bottom: 28px; border-bottom: 1px solid var(--gray-200);
}
.pro-directory .pro-page-kicker { color: var(--primary-dark); font-weight: 600; letter-spacing: .14em; margin-bottom: 14px; }
.pro-directory .pro-page-title { font-size: clamp(28px,3.2vw,42px); letter-spacing: -1.3px; line-height: 1.15; margin-bottom: 18px; }
.pro-directory .pro-page-desc { max-width: 560px; font-size: var(--text-md); line-height: 1.75; }
.pro-directory-note { padding: 24px; background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; }
.pro-directory-note-icon { display: block; font-size: var(--text-4xl); color: var(--primary-dark); margin-bottom: 12px; }
.pro-directory-note strong { display: block; font-size: var(--text-base); color: var(--secondary); margin-bottom: 8px; }
.pro-directory-note p { font-size: var(--text-xs); line-height: 1.75; color: var(--muted); margin: 0; }
.pro-directory .pro-type-tabs { gap: 10px; margin-bottom: 20px; }
.pro-directory .pro-type-tab { padding: 10px 16px; border: 1px solid var(--gray-200); border-radius: 8px; }
.pro-directory .pro-type-tab.is-active { border-color: var(--secondary); }
.pro-directory .pro-filters {
    display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) auto;
    align-items: end; gap: 18px; padding: 22px; background: #fff;
    border: 1px solid var(--gray-200); border-radius: 12px; margin-bottom: 32px;
}
.pro-filter-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pro-filter-field label { margin: 0; font-size: var(--text-2xs); font-weight: 600; color: var(--gray-500); }
.pro-directory .pro-search-input, .pro-directory .pro-city-select {
    min-width: 0; max-width: none; width: 100%; height: 46px;
    padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 7px; background: #fff;
}
.pro-directory .pro-search-submit { height: 46px; background: var(--secondary); border-color: var(--secondary); padding: 10px 24px; font-size: var(--text-sm); }
.pro-results-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.pro-results-header h2 { font-size: var(--text-2xl); letter-spacing: -.5px; margin: 0; }
.pro-directory .pro-results-count { margin: 0; font-size: var(--text-xs); }
.pro-directory .pro-grid { gap: 24px; }
.pro-directory .pro-card { border-color: var(--gray-200); box-shadow: 0 2px 6px rgba(13,31,60,.025); }
.pro-directory .pro-card-top { padding: 24px 22px 0; gap: 14px; }
.pro-directory .pro-card-photo, .pro-directory .pro-card-photo-placeholder { border: 0; border-radius: 14px; width: 60px; height: 60px; }
.pro-directory .pro-card-photo-placeholder { font-size: var(--text-4xl); font-weight: 600; color: #3c536c; }
.pro-directory .pro-card-name { white-space: normal; font-size: var(--text-lg); line-height: 1.4; margin: 8px 0 6px; }
.pro-directory .pro-card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pro-directory .pro-card-tagline { line-height: 1.6; font-size: var(--text-xs); }
.pro-directory .pro-card-body { padding: 18px 22px 24px; gap: 16px; }
.pro-directory .pro-card-footer { padding: 16px 22px; background: var(--gray-50); }
.pro-directory .pro-btn { min-height: 42px; font-size: var(--text-xs); }
.pro-directory .pro-btn-whatsapp { color: #176541; background: #ecf8f1; border: 1px solid #cce8d7; }
.pro-directory .pro-btn-whatsapp:hover { color: #fff; background: #176541; }
.pro-directory .pro-pill { background: var(--gray-50); border: 0; border-radius: 5px; font-weight: 500; }
.pro-directory .pro-empty { background: #fff; border: 1px dashed var(--gray-200); border-radius: 16px; }
.pro-directory .pro-empty-reset { display: inline-flex; margin-top: 14px; }
@media (max-width: 980px) {
    .pro-directory .pro-page-header { grid-template-columns: minmax(0,1fr) 240px; gap: 24px; }
    .pro-directory .pro-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .pro-directory .pro-page-header { grid-template-columns: 1fr; padding: 32px 0 24px; gap: 20px; }
    .pro-directory-note { padding: 18px; }
    .pro-directory-note-icon { display: none; }
    .pro-directory .pro-page-title { letter-spacing: -.8px; }
    .pro-directory .pro-filters { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .pro-directory .pro-search-input, .pro-directory .pro-city-select { font-size: var(--text-lg); }
    .pro-directory .pro-grid { grid-template-columns: 1fr; gap: 16px; }
    .pro-directory .pro-type-tabs { gap: 6px; }
    .pro-directory .pro-type-tab { padding: 9px 11px; font-size: var(--text-xs); }
}


/* Keep the enhanced territorial fields consistent with professional forms. */
.pro-reg-form .ts-wrapper, .pro-edit-form .ts-wrapper { width: 100%; }
.pro-reg-form .ts-control, .pro-edit-form .ts-control { padding: 12px 14px; border-radius: 8px; font: inherit; }
.pro-reg-form .ts-control input, .pro-edit-form .ts-control input { min-height: 0; border: 0; box-shadow: none; padding: 0; }
[data-controller~="territory"] [data-territory-target="retry"][hidden] { display: none; }

/* ./pages/agency.css */
.agency-page { background: var(--gray-50); min-height: 65vh; }
.agency-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 20px 0 36px; }
.agency-hero > div { max-width: 720px; }
.agency-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 12px 0 18px; }
.agency-hero p { color: var(--muted, var(--gray-600)); line-height: 1.7; }
.agency-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-2xs); font-weight: 700; color: #33765d; margin: 0 0 8px; }
.agency-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; background: white; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.agency-filters label { display: grid; gap: 8px; flex: 1 1 220px; font-size: var(--text-base); font-weight: 600; }
.agency-filters input { width: 100%; min-height: var(--field-height); padding: 10px 12px; border: 1px solid var(--field-border); border-radius: var(--radius-field); font: inherit; }
.agency-count { color: var(--muted, var(--gray-600)); margin: 24px 0 16px; }
.agency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.agency-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--border); border-radius: var(--radius-card); }
.agency-card > .btn { margin-top: auto; }
.agency-identity { display: flex; align-items: center; gap: 18px; }
.agency-identity > div { min-width: 0; }
.agency-identity h1, .agency-identity h2 { overflow-wrap: anywhere; margin: 0 0 8px; line-height: 1.3; }
.agency-identity h2 { font-size: var(--text-2xl); }
.agency-identity a, .agency-property h3 a { color: inherit; text-decoration: none; }
.agency-identity a:hover, .agency-property h3 a:hover { text-decoration: underline; }
.agency-logo { width: 88px; height: 88px; flex-shrink: 0; object-fit: contain; border: 1px solid var(--gray-200); border-radius: 12px; background: var(--gray-50); padding: 8px; }
.agency-initial { display: grid; place-items: center; font-size: var(--text-6xl); font-weight: 700; color: #33765d; }
.agency-location { font-size: var(--text-base); color: var(--muted, var(--gray-600)); margin: 0; }
.agency-contact { display: grid; gap: 14px; margin: 24px 0; }
.agency-contact dt { font-size: var(--text-xs); color: var(--muted, var(--gray-600)); margin-bottom: 4px; }
.agency-contact dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.agency-contact a { color: inherit; }
.agency-back { display: inline-block; margin-bottom: 24px; }
.agency-profile { margin-bottom: 40px; }
.agency-profile .agency-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agency-listings-heading { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.agency-listings-heading h2 { margin: 0; font-size: var(--text-4xl); }
.agency-property { padding: 0; overflow: hidden; }
.agency-property-image { display: grid; place-items: center; aspect-ratio: 8/5; background: var(--gray-200); color: var(--gray-600); }
.agency-property-image img { width: 100%; height: 100%; object-fit: cover; }
.agency-property-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 24px; }
.agency-property-body h3, .agency-property-body p { margin: 0; }
.agency-property-body > .btn { margin-top: auto; }
.agency-price { font-size: var(--text-3xl); margin: 8px 0; }
.agency-empty { grid-column: 1/-1; padding: 48px 24px; text-align: center; border: 1px dashed var(--gray-300); border-radius: 16px; background: white; }
.agency-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 32px 0; }
.agency-invitation { margin-top: 48px; padding: 32px; background: #eaf4ee; border-radius: var(--radius-card); }
.agency-invitation p { max-width: 720px; line-height: 1.7; margin-bottom: 24px; }
@media (max-width: 1100px) { .agency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .agency-grid, .agency-profile .agency-contact { grid-template-columns: 1fr; } .agency-hero { align-items: start; flex-direction: column; gap: 16px; } .agency-card, .agency-filters, .agency-invitation { padding: 20px; } .agency-property { padding: 0; } .agency-logo { width: 72px; height: 72px; } .agency-identity h1 { font-size: var(--text-4xl); } }

/* ./pages/hotel.css */
/* ===================================================
   HOTEL MODULE — Style Booking.com adapté Guinée
   =================================================== */

/* ── VARIABLES — alignées sur le système de design global ───────────── */
:root {
    --hotel-blue:       var(--secondary);           /* navy var(--gray-900) */
    --hotel-blue-light: var(--primary-ink);   /* liens : orange foncé, comme sur le reste du site */
    --hotel-orange:     var(--primary);             /* orange var(--primary) */
    --hotel-gold:       #febb02;
    --hotel-bg:         var(--bg);                  /* var(--gray-50) */
    --hotel-card-radius: var(--radius-card);
    --hotel-shadow:     var(--shadow-card);
    --hotel-shadow-2:   0 3px 18px 0 rgba(0,0,0,.10), 0 3px 5px -1px rgba(0,0,0,.14);
    --hotel-shadow-3:   0 4px 15px 2px rgba(0,0,0,.10), 0 5px 6px -3px rgba(0,0,0,.14);
    --hotel-thumb-scrim: linear-gradient(0deg, rgba(0,0,0,.74) 0, rgba(0,0,0,.37) 54%, rgba(0,0,0,0) 96%);
}

/* ── HERO SEARCH ───────────────────────────────────────────────────── */
.hotel-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hotel-blue) 0%, #1155a0 60%, #0d47a1 100%);
    color: #fff;
    padding: 48px 20px 52px;
    text-align: center;
    overflow: hidden;
}
.hotel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hotel-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.hotel-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -.4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hotel-hero p {
    font-size: 1rem;
    opacity: 1;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 24px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}

/* Search bar */
.hotel-search-bar {
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: stretch;       /* tous les champs ont la même hauteur */
    gap: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    min-height: 72px;
}
.hsb-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;                 /* annule la marge des champs de formulaire du site */
    padding: 10px 16px;
    flex: 1 1 0;               /* répartition égale */
    border-right: 1px solid var(--gray-200);
    min-width: 0;              /* empêche le débordement */
}
.hsb-field label {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.hsb-field select,
.hsb-field input[type="date"],
.hsb-field input[type="number"] {
    border: none;
    outline: none;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-800);
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: pointer;
}
/* Champ dates fusionné style Booking.com */
.hsb-field.hsb-dates-range { flex: 2 1 0; }
.hsb-date-pair {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hsb-date-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.hsb-date-sublabel {
    font-size: var(--text-2xs);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 600;
    white-space: nowrap;
}
.hsb-date-pair input[type="date"] {
    border: none;
    outline: none;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: pointer;
}
.hsb-date-sep {
    color: var(--gray-400);
    font-size: var(--text-lg);
    flex-shrink: 0;
    padding: 0 2px;
}

/* Champ voyageurs : adultes + enfants sur une ligne */
.hsb-field.hsb-guests {
    flex: 1.4 1 0;
}
.hsb-guest-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;          /* une seule ligne */
}
.hsb-guest-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.hsb-guest-sep {
    width: 1px;
    height: 28px;
    background: var(--gray-200);
    margin: 0 4px;
}
.hsb-guest-label {
    font-size: var(--text-2xs);
    color: var(--gray-500);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 600;
}
.hsb-num {
    width: 44px !important;
    font-size: var(--text-base) !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
    text-align: center;
    font-weight: 700 !important;
}
.btn-hotel-search {
    background: var(--hotel-orange);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    align-self: stretch;        /* hauteur = hauteur de la barre */
    white-space: nowrap;
}
.btn-hotel-search:hover { background: var(--primary); }

@media (max-width: 860px) {
    .hotel-search-bar { flex-wrap: wrap; }
    .hsb-field { flex: 1 1 45%; min-width: 140px; }
    .hsb-field.hsb-dates-range { flex: 1 1 100%; border-right: none; border-top: 1px solid var(--gray-200); }
    .hsb-field.hsb-guests { flex: 1 1 100%; border-right: none; border-top: 1px solid var(--gray-200); }
    .hsb-guest-inputs { justify-content: center; gap: 20px; }
    .btn-hotel-search { flex: 1 1 100%; height: 50px; border-radius: 0 0 12px 12px; }
}
@media (max-width: 500px) {
    .hotel-hero { padding: 28px 16px 32px; }
    .hotel-hero h1 { font-size: 1.55rem; }
    .hotel-hero p { font-size: .92rem; margin-bottom: 18px; }
    .hotel-search-bar { border-radius: 12px; }
    .hsb-field,
    .hsb-field.hsb-dates-range,
    .hsb-field.hsb-guests { flex: 1 1 100%; border: none; border-bottom: 1px solid var(--gray-200); padding: 12px 16px; text-align: left; }
    /* 16 px minimum : en dessous, iOS zoome sur le champ touché */
    .hsb-field select,
    .hsb-date-pair input[type="date"],
    .hsb-num { font-size: var(--text-lg) !important; }
    .hsb-field.hsb-guests { flex-direction: row; align-items: center; justify-content: space-between; }
    .hsb-field.hsb-guests > label { margin: 0; }
    .hsb-guest-inputs { gap: 14px; }
    .hsb-guest-col { flex-direction: row; gap: 8px; }
    .hsb-guest-sep { display: none; }
    .btn-hotel-search { height: 52px; border-radius: 0 0 12px 12px; }
}

/* ── LAYOUT ────────────────────────────────────────────────────────── */
.hotel-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 48px;
}

/* ── SIDEBAR ───────────────────────────────────────────────────────── */
.hotel-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--hotel-card-radius);
    padding: 20px;
    box-shadow: var(--hotel-shadow);
    position: sticky;
    top: 20px;
}
.filter-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}
.filter-block:last-child { border-bottom: none; }
.filter-block h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.filter-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: var(--text-base);
    color: var(--gray-700);
    cursor: pointer;
    padding: 6px 0;
    width: 100%;
}
.filter-checkbox input[type="radio"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--hotel-orange);
}
.filter-clear {
    display: inline-block;
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--hotel-blue-light);
    text-decoration: underline;
}
.filter-block select {
    width: 100%;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    padding: 8px 10px;
    font-size: var(--field-font);
    color: var(--gray-700);
}

@media (max-width: 900px) {
    .hotel-layout { flex-direction: column; }
    .hotel-sidebar { width: 100%; position: static; }
}

/* ── RESULTS ───────────────────────────────────────────────────────── */
.hotel-results { flex: 1; }
.hotel-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.hotel-results-count { font-size: var(--text-lg); color: var(--gray-700); }
.hotel-results-count strong { color: var(--gray-800); font-size: var(--text-xl); }

/* HOTEL CARDS */
.hotel-cards-grid { display: flex; flex-direction: column; gap: 20px; }
.hotel-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: flex;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.hotel-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.hotel-card-img-link { position: relative; flex-shrink: 0; display: block; width: 220px; }
.hotel-card-img {
    width: 220px;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
}
.hotel-card-img--placeholder {
    width: 220px;
    min-height: 160px;
    background: var(--hotel-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.hotel-badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--hotel-orange);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}
.hotel-type-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: var(--text-2xs);
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.hotel-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hotel-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hotel-card-name { font-size: var(--text-lg); font-weight: 700; color: var(--hotel-blue); margin: 0 0 4px; }
.hotel-card-name a { color: inherit; text-decoration: none; }
.hotel-card-name a:hover { text-decoration: underline; }
.hotel-card-location { font-size: var(--text-sm); color: var(--gray-500); margin: 0 0 4px; }
.hotel-card-stars { font-size: var(--text-sm); margin: 0; }
.hotel-card-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.amenity-tag {
    background: #eef2ff;
    color: #3b5bdb;
    font-size: var(--text-2xs);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.hotel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}
.hotel-card-price .price-label { font-size: var(--text-2xs); color: var(--gray-500); display: block; }
.hotel-card-price .price-amount { font-size: var(--text-3xl); font-weight: 800; color: var(--gray-800); }
.hotel-card-price .price-unit { font-size: var(--text-xs); color: var(--gray-500); margin-left: 2px; }
.btn-see-hotel {
    background: var(--hotel-orange);
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: 700;
    transition: background .2s;
    white-space: nowrap;
}
.btn-see-hotel:hover { background: var(--primary-dark); }

@media (max-width: 600px) {
    .hotel-card { flex-direction: column; }
    .hotel-card-img-link, .hotel-card-img { width: 100%; min-height: 180px; }
}

.hotel-empty { text-align: center; padding: 60px 20px; }

/* ══════════════════════════════════════════════════════════════════
   HOTEL SHOW — Layout global
══════════════════════════════════════════════════════════════════ */
.hotel-show-wrap {
    width: min(1440px, 97%);
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 48px;
}

.hotel-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 16px;
}
.hotel-breadcrumb a { color: var(--hotel-blue-light); text-decoration: none; }
.hotel-breadcrumb a:hover { text-decoration: underline; }

/* ── Grille extérieure : panneau gauche | contenu droit ─────────── */
.hotel-show-outer {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    align-items: flex-start;
}
@media (max-width: 1024px) {
    .hotel-show-outer { grid-template-columns: 1fr; }
    .hotel-search-col { order: 2; }
    .hotel-content-col { order: 1; }
}
.hotel-content-col { min-width: 0; }

/* ── Panneau recherche gauche (fond orange) ─────────────────────── */
.hotel-search-col { position: sticky; top: 20px; }

.hotel-search-panel {
    background: var(--hotel-orange);
    border-radius: var(--radius-card);
    padding: 22px 20px;
    color: #fff;
    box-shadow: var(--shadow-raised);
    margin-bottom: 14px;
}
.hsp-title { font-size: var(--text-2xl); font-weight: 800; color: #fff; margin: 0 0 16px; }
.hsp-form  { display: flex; flex-direction: column; gap: 10px; }
.hsp-field { display: flex; flex-direction: column; gap: 4px; }
.hsp-field label {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.hsp-field input {
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: var(--text-base);
    font-weight: 600;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}
.hsp-field input:focus { outline: none; background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.7); }
.hsp-field input::-webkit-calendar-picker-indicator { filter: invert(1); }
.hsp-guests-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hsp-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: background .2s;
}
.hsp-btn:hover { background: var(--primary-dark); }
.hsp-nights { color: rgba(255,255,255,.8); font-size: var(--text-xs); margin: 10px 0 0; text-align: center; }
.hsp-map   { height: 180px; border-radius: 12px; overflow: hidden; border: 2px solid var(--gray-200); }

/* ── Galerie style Booking.com ──────────────────────────────────── */
.hotel-gallery-bc {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 5px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--gray-900);
}

.hgbc-main {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.hgbc-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.hgbc-main:hover img { transform: scale(1.02); }

.hgbc-side { display: grid; grid-template-rows: 1fr 1fr; gap: 5px; }
.hgbc-side-img { overflow: hidden; position: relative; cursor: pointer; }
.hgbc-side-img img {
    width: 100%;
    height: 207px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.hgbc-side-img:hover img { transform: scale(1.04); }
/* Gradient Booking.com sur les images latérales */
.hgbc-side-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hotel-thumb-scrim);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.hgbc-side-img:hover::after { opacity: 1; }

.hgbc-strip {
    grid-column: 1 / -1;
    display: flex;
    gap: 5px;
}
.hgbc-thumb {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-width: 20%;
}
.hgbc-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.hgbc-thumb:hover img { transform: scale(1.06); }
/* Gradient Booking.com permanent sur les miniatures */
.hgbc-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hotel-thumb-scrim);
    pointer-events: none;
}
.hgbc-thumb-more {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-lg); font-weight: 700;
}

/* Nav arrows + counter sur la grande image */
.hotel-mosaic-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,.45);
    border: none;
    color: #fff;
    font-size: var(--text-5xl);
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; padding: 0;
    transition: background .15s;
}
.hotel-mosaic-nav:hover { background: rgba(0,0,0,.7); }
.hotel-mosaic-nav.is-prev { left: 12px; }
.hotel-mosaic-nav.is-next { right: 12px; }
.hotel-mosaic-count {
    position: absolute; bottom: 12px; right: 14px; z-index: 3;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: var(--text-sm); font-weight: 700;
    padding: 3px 10px; border-radius: 20px; pointer-events: none;
}
.hgbc-all-btn {
    position: absolute; bottom: 12px; left: 12px; z-index: 5;
    background: rgba(255,255,255,.9); color: var(--gray-800);
    border: 1.5px solid rgba(255,255,255,.6); border-radius: 8px;
    padding: 7px 14px; font-size: var(--text-sm); font-weight: 700;
    cursor: pointer; backdrop-filter: blur(4px);
    transition: background .15s, transform .1s;
}
.hgbc-all-btn:hover { background: #fff; transform: scale(1.02); }

@media (max-width: 680px) {
    .hotel-gallery-bc { grid-template-columns: 1fr; }
    .hgbc-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .hgbc-side-img img { height: 140px; }
    .hgbc-main img { height: 260px; }
    .hgbc-strip { display: none; }
}

/* ── Header hôtel ───────────────────────────────────────────────── */
.hotel-show-header { margin-bottom: 24px; }
.hotel-show-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hotel-show-header-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 480px) {
    .hotel-show-price-aside { text-align: left; }
}
.hotel-show-type-badge {
    display: inline-block;
    background: #f0f4ff; color: var(--hotel-blue);
    font-size: var(--text-xs); font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
}
.hotel-stars-badge {
    background: #fff8e1; border: 1px solid #ffe082; color: var(--primary-300);
    font-size: var(--text-sm); padding: 3px 10px; border-radius: 20px;
}
.hotel-show-name     { font-size: var(--text-4xl); font-weight: 800; color: var(--hotel-blue); margin: 0 0 6px; }
.hotel-show-location { font-size: var(--text-base); color: var(--gray-600); margin: 0 0 4px; }
.hotel-show-phone a  { color: var(--hotel-blue-light); text-decoration: none; }
.hotel-show-price-aside  { text-align: right; flex-shrink: 0; }
.hotel-show-price-from   { font-size: var(--text-xs); color: var(--gray-500); margin: 0; }
.hotel-show-price-amount { font-size: var(--text-4xl); font-weight: 800; color: var(--gray-800); margin: 0; }
.hotel-show-price-unit   { font-size: var(--text-xs); color: var(--gray-500); margin: 0; }

/* ── Corps : infos puis chambres en pleine largeur ───────────────── */
.hotel-show-body { display: block; }
.hotel-show-right { margin-top: 4px; padding-top: 20px; border-top: 2px solid var(--gray-100); }

.hotel-section { margin-bottom: 28px; }
.hotel-show-left .hotel-section:last-child { margin-bottom: 0; }
.hotel-section h2 {
    font-size: var(--text-xl); font-weight: 700; color: var(--gray-800);
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}
.hotel-description { font-size: var(--text-md); line-height: 1.7; color: var(--gray-700); }

.hotel-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.amenity-item {
    background: var(--hotel-bg); padding: 10px 14px;
    border-radius: 8px; font-size: var(--text-base); color: var(--gray-700); font-weight: 500;
}
.hotel-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.hotel-info-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--hotel-bg); padding: 14px; border-radius: 10px;
}
.info-icon { font-size: var(--text-4xl); }
.hotel-info-item strong { font-size: var(--text-base); font-weight: 700; color: var(--gray-800); display: block; }
.hotel-info-item p { font-size: var(--text-sm); color: var(--gray-500); margin: 2px 0 0; }
.rooms-title { font-size: var(--text-2xl); font-weight: 700; color: var(--gray-800); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-100); }
.rooms-empty {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: var(--text-base);
    color: var(--gray-500);
}
.room-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s;
    display: flex;
    flex-direction: row;
}
.room-card:hover { box-shadow: var(--shadow-hover); }
.room-card-img { width: 240px; flex-shrink: 0; height: 100%; min-height: 160px; object-fit: cover; display: block; }
.room-card-img--placeholder {
    width: 240px; flex-shrink: 0; min-height: 160px;
    background: var(--hotel-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-6xl);
}
.room-card-body { padding: 18px 20px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 600px) {
    .room-card { flex-direction: column; }
    .room-card-img { width: 100%; min-height: 160px; height: 160px; }
    .room-card-img--placeholder { width: 100%; }
}
.room-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.room-card-name { font-size: var(--text-md); font-weight: 700; color: var(--gray-800); margin: 0 0 2px; }
.room-card-type { font-size: var(--text-xs); color: var(--gray-500); margin: 0 0 4px; }
.room-card-capacity { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }
.room-card-price-block { text-align: right; flex-shrink: 0; }
.room-price { font-size: var(--text-2xl); font-weight: 800; color: var(--hotel-blue); margin: 0; }
.room-price-unit { font-size: var(--text-2xs); color: var(--gray-500); margin: 0; }
.room-total { font-size: var(--text-xs); color: var(--gray-600); margin: 4px 0 0; }
.room-urgency { font-size: var(--text-2xs); font-weight: 700; color: #d97706; margin: 5px 0 0; }
.room-urgency--last { color: #dc2626; }
.room-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.room-amenities span {
    background: #f0f4ff;
    color: #3b5bdb;
    font-size: var(--text-2xs);
    padding: 2px 8px;
    border-radius: 20px;
}
.room-desc { font-size: var(--text-sm); color: var(--gray-500); margin: 6px 0 10px; }
.btn-book-room {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--hotel-orange);
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: var(--text-md);
    transition: background .2s;
    margin-top: auto;
    padding-top: 14px;
}
.btn-book-room:hover { background: var(--primary); }
/* Même bouton connecté ou non : la connexion est demandée à l'étape suivante */
.room-login-hint { margin: 6px 0 0; font-size: var(--text-xs); color: var(--gray-500); text-align: center; }

/* ── BOOKING FORM ──────────────────────────────────────────────────── */
.book-wrap { padding-top: 24px; padding-bottom: 48px; }
.book-title { font-size: var(--text-4xl); font-weight: 800; color: var(--hotel-blue); margin-bottom: 24px; }
.book-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .book-layout { grid-template-columns: 1fr; }
    .book-summary-col { order: -1; }
}
.book-section {
    background: #fff;
    border-radius: var(--hotel-card-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--hotel-shadow);
}
.book-section h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    padding: 10px 14px;
    font-size: var(--field-font);
    color: var(--gray-800);
    transition: border-color .2s;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: var(--text-xs); color: var(--gray-500); margin-top: 4px; }

.book-policy { font-size: var(--text-sm); color: var(--gray-600); line-height: 1.6; }
.btn-confirm-book {
    width: 100%;
    background: var(--hotel-orange);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.btn-confirm-book:hover { background: var(--primary); }

/* Booking summary */
.book-summary {
    background: #fff;
    border-radius: var(--hotel-card-radius);
    box-shadow: var(--hotel-shadow);
    overflow: hidden;
    position: sticky;
    top: 20px;
}
.book-summary-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.book-summary-body { padding: 18px 20px; }
.book-summary-type { font-size: var(--text-xs); color: var(--gray-500); margin: 0 0 4px; }
.book-summary-hotel { font-size: var(--text-xl); font-weight: 800; color: var(--hotel-blue); margin: 0 0 4px; }
.book-summary-room { font-size: var(--text-base); color: var(--gray-600); margin: 0 0 4px; }
.book-summary-loc { font-size: var(--text-sm); color: var(--gray-500); margin: 0 0 16px; }

.book-summary-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hotel-bg);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}
.bsd-item { flex: 1; text-align: center; }
.bsd-label { font-size: var(--text-2xs); color: var(--gray-500); text-transform: uppercase; font-weight: 700; display: block; }
.bsd-value { font-size: var(--text-base); font-weight: 700; color: var(--gray-800); display: block; margin: 2px 0; }
.bsd-sub { font-size: var(--text-2xs); color: var(--gray-500); display: block; }
.bsd-arrow { font-size: var(--text-2xl); color: var(--gray-400); }

.book-summary-guests { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--gray-600); margin-bottom: 14px; }

.book-summary-price { border-top: 1px solid var(--gray-100); padding-top: 14px; margin-top: 14px; }
.bsp-row { display: flex; justify-content: space-between; font-size: var(--text-base); color: var(--gray-600); margin-bottom: 8px; }
.bsp-total {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-800);
    border-top: 1px solid var(--gray-100);
    padding-top: 10px;
    margin-top: 6px;
}
.book-summary-om {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff8e1;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 600;
}
.om-logo { height: 28px; }

/* ── PAYMENT PAGE ──────────────────────────────────────────────────── */
.pay-wrap { padding: 40px 20px; max-width: 600px; margin: 0 auto; }
.pay-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,53,128,.12);
    overflow: hidden;
}
.pay-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-300));
    color: #fff;
    text-align: center;
    padding: 32px 24px 24px;
}
.pay-om-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.pay-header h1 { font-size: var(--text-2xl); font-weight: 800; margin: 0 0 8px; }
.pay-ref { font-size: var(--text-base); opacity: .9; margin: 0; }
.pay-amount-block {
    text-align: center;
    padding: 24px;
    background: var(--hotel-bg);
    border-bottom: 1px solid var(--gray-200);
}
.pay-amount { font-size: var(--text-7xl); font-weight: 900; color: var(--gray-800); margin: 0; }
.pay-currency { font-size: var(--text-lg); color: var(--gray-600); margin: 0; }
.pay-nights { font-size: var(--text-sm); color: var(--gray-500); margin: 6px 0 0; }

.pay-instructions { padding: 24px; border-bottom: 1px solid var(--gray-200); }
.pay-instructions h2 { font-size: var(--text-lg); font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.pay-steps { display: flex; flex-direction: column; gap: 16px; }
.pay-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-num {
    background: var(--hotel-orange);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-base);
    flex-shrink: 0;
}
.pay-step strong { font-size: var(--text-base); color: var(--gray-800); display: block; margin-bottom: 2px; }
.pay-step p { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }
.pay-merchant-num {
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--hotel-orange);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}
.btn-copy-small {
    background: var(--hotel-bg);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: var(--text-xs);
    cursor: pointer;
    color: var(--gray-700);
}
.pay-amount-inline { font-size: var(--text-3xl); font-weight: 800; color: var(--hotel-blue); margin: 4px 0 0; }

.pay-form { padding: 24px; }
.pay-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pay-method-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--hotel-bg);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.pay-method-tab:has(input:checked) {
    border-color: var(--hotel-orange);
    background: var(--primary-light);
    color: var(--hotel-orange);
}
.pay-form-fields .form-group { margin-bottom: 16px; }
.pay-ref-input { font-family: monospace; font-size: var(--text-lg) !important; letter-spacing: 1px; }
.pay-cash-info {
    background: #e8f5e9;
    border-radius: 10px;
    padding: 16px;
    font-size: var(--text-base);
    color: #2e7d32;
    margin-bottom: 16px;
}
.btn-confirm-payment {
    width: 100%;
    background: var(--hotel-orange);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.btn-confirm-payment:hover { background: var(--primary); }
.pay-secure { text-align: center; font-size: var(--text-xs); color: var(--gray-400); padding: 12px 24px 20px; }

/* ── CONFIRMATION ──────────────────────────────────────────────────── */
.confirm-wrap { padding: 40px 20px; max-width: 680px; margin: 0 auto; }
.confirm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,53,128,.12);
    padding: 40px 32px;
    text-align: center;
}
.confirm-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-6xl);
    margin: 0 auto 20px;
}
.confirm-icon--success { background: #e8f5e9; color: #2e7d32; }
.confirm-icon--pending { background: #fff8e1; color: var(--primary-300); }
.confirm-title { font-size: var(--text-4xl); font-weight: 800; margin-bottom: 8px; }
.confirm-title--success { color: #1b5e20; }
.confirm-title--pending { color: var(--primary); }
.confirm-code { font-size: var(--text-base); color: var(--gray-500); margin-bottom: 28px; }
.confirm-code strong { color: var(--hotel-blue); font-size: var(--text-xl); letter-spacing: 2px; }

.confirm-hotel {
    display: flex;
    gap: 16px;
    align-items: center;
    text-align: left;
    background: var(--hotel-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.confirm-hotel-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.confirm-hotel h2 { font-size: var(--text-xl); font-weight: 700; color: var(--hotel-blue); margin: 0 0 4px; }
.confirm-hotel p { font-size: var(--text-sm); color: var(--gray-500); margin: 2px 0; }
.confirm-hotel a { color: var(--hotel-blue-light); }

.confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    margin-bottom: 24px;
}
.confirm-item {
    background: var(--hotel-bg);
    border-radius: 10px;
    padding: 12px 16px;
}
.confirm-item--total { grid-column: span 2; background: #e8f5e9; }
.ci-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); display: block; }
.ci-value { font-size: var(--text-md); font-weight: 700; color: var(--gray-800); display: block; margin-top: 4px; }

.confirm-notice {
    background: #fff8e1;
    border-left: 4px solid var(--hotel-gold);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: 20px;
}
.confirm-notice--success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.btn-whatsapp-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-md);
    margin-bottom: 20px;
    transition: background .2s;
}
.btn-whatsapp-confirm:hover { background: #128c7e; }

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── HOTEL BREADCRUMB (dans show) ──────────────────────────────────── */
.hotel-breadcrumb { flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════
   AVIS CLIENTS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Badges vérification + score sur la fiche ─────────────────────── */
.hotel-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: 700;
}

.hotel-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hotel-blue);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: 700;
}

/* ── Section avis ─────────────────────────────────────────────────── */
.hotel-reviews-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

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

.hotel-reviews-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--hotel-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hrs-score {
    background: var(--hotel-blue);
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: var(--text-lg);
    font-weight: 800;
}

.hrs-count {
    font-size: var(--text-base);
    color: var(--gray-500);
    font-weight: 400;
}

/* ── Grille scores par critère ────────────────────────────────────── */
.hotel-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: var(--hotel-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.hsg-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
}

.hsg-label { font-size: var(--text-sm); color: var(--gray-600); font-weight: 500; }

.hsg-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    width: 80px;
}

.hsg-fill {
    height: 100%;
    background: var(--hotel-blue);
    border-radius: 999px;
    transition: width .4s ease;
}

.hsg-val { font-size: var(--text-sm); font-weight: 700; color: var(--hotel-blue); }

/* ── Cartes avis ──────────────────────────────────────────────────── */
.hotel-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.hotel-review-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrc-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hrc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hotel-blue);
    color: #fff;
    font-size: var(--text-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hrc-meta { flex: 1; }
.hrc-name { display: block; font-size: var(--text-base); font-weight: 700; color: var(--gray-800); }
.hrc-date { font-size: var(--text-xs); color: var(--gray-400); }

.hrc-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hrc-score-num {
    background: var(--hotel-blue);
    color: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: var(--text-lg);
    font-weight: 800;
    line-height: 1.3;
}

.hrc-score-label { font-size: var(--text-2xs); color: var(--gray-500); }

.hrc-positive { font-size: var(--text-sm); color: #16a34a; background: #f0fdf4; border-radius: 6px; padding: 6px 10px; margin: 0; }
.hrc-negative { font-size: var(--text-sm); color: #dc2626; background: var(--gray-100); border-radius: 6px; padding: 6px 10px; margin: 0; }
.hrc-comment  { font-size: var(--text-sm); color: var(--gray-600); line-height: 1.55; margin: 0; }

.hotel-reviews-empty {
    text-align: center;
    color: var(--gray-400);
    font-size: var(--text-base);
    padding: 24px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMULAIRE D'AVIS
   ═══════════════════════════════════════════════════════════════════ */

.review-wrap { padding-top: 24px; padding-bottom: 60px; }

.review-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

.review-title { font-size: var(--text-3xl); font-weight: 800; color: var(--hotel-dark); margin-bottom: 6px; }
.review-sub   { font-size: var(--text-base); color: var(--gray-500); margin-bottom: 28px; }

.review-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 16px;
}

.review-section h2 {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--hotel-dark);
    margin: 0 0 18px;
}

/* ── Score picker ─────────────────────────────────────────────────── */
.review-score-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.review-score-row:last-child { border-bottom: none; }

.review-score-row label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
}

.review-score-picker {
    display: flex;
    gap: 4px;
}

.rsb {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--gray-300);
    background: #fff;
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-500);
    transition: all .12s;
}

.rsb:hover { border-color: var(--hotel-blue); color: var(--hotel-blue); }
.rsb.active {
    background: var(--hotel-blue);
    border-color: var(--hotel-blue);
    color: #fff;
}

.review-score-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--hotel-blue);
    min-width: 80px;
    text-align: right;
}

/* ── Summary card ─────────────────────────────────────────────────── */
.review-summary-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.review-summary-img { width: 100%; height: 160px; object-fit: cover; display: block; }

.review-summary-body { padding: 16px 18px; }
.rsb-type  { font-size: var(--text-xs); color: var(--gray-500); margin: 0 0 4px; }
.review-summary-body h3 { font-size: var(--text-lg); font-weight: 700; color: var(--hotel-dark); margin: 0 0 6px; }
.rsb-loc   { font-size: var(--text-sm); color: var(--gray-500); margin: 0 0 12px; }
.rsb-dates { display: flex; gap: 8px; align-items: center; font-size: var(--text-sm); font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.rsb-nights { font-size: var(--text-xs); color: var(--gray-400); margin: 0; }

.btn-submit-review {
    display: block;
    width: 100%;
    background: var(--hotel-orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
}
.btn-submit-review:hover { background: var(--primary); }

/* ── CTA avis sur confirmation ────────────────────────────────────── */
.confirm-review-cta {
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 20px;
}
.crc-text { font-size: var(--text-base); color: var(--gray-600); margin: 0 0 12px; }
.btn-leave-review {
    display: inline-block;
    background: var(--hotel-orange);
    color: #fff;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: var(--text-base);
    text-decoration: none;
    transition: background .2s;
}
.btn-leave-review:hover { background: var(--primary); }

@media (max-width: 768px) {
    .review-layout { grid-template-columns: 1fr; }
    .review-summary-col { order: -1; }
    .review-score-row { grid-template-columns: 1fr; gap: 6px; }
    .review-score-picker { flex-wrap: wrap; }
    .hotel-reviews-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHTBOX GALERIE
   ═══════════════════════════════════════════════════════════════════ */

.hotel-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.hotel-lightbox.is-open { display: flex; }

.hotel-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .92);
}

.hotel-lightbox-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.hotel-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: opacity .15s;
}

.hotel-lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: var(--text-3xl);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
}
.hotel-lightbox-close:hover { background: rgba(255, 255, 255, .3); }

.hotel-lightbox-prev,
.hotel-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: var(--text-6xl);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
}
.hotel-lightbox-prev:hover,
.hotel-lightbox-next:hover { background: rgba(255, 255, 255, .3); }
.hotel-lightbox-prev { left: 16px; }
.hotel-lightbox-next { right: 16px; }

.hotel-lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, .8);
    font-size: var(--text-base);
    font-weight: 600;
    background: rgba(0, 0, 0, .4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   CARD UPGRADES — Rating badge + Wishlist button + Image wider
══════════════════════════════════════════════════════════════════ */

/* Image plus large */
.hotel-card-img-link { width: 270px; }
.hotel-card-img { width: 270px; min-height: 195px; }
.hotel-card-img--placeholder { width: 270px; min-height: 195px; }

/* Flèches galerie circulaires style hotels.com */
.hotel-card-img-link .cg-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: var(--gray-900);
    font-size: var(--text-2xl);
    font-weight: 900;
    line-height: 1;
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,.22);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .2s, background .15s;
}
.hotel-card-img-link:hover .cg-arrow { opacity: 1; }
.hotel-card-img-link .cg-arrow:hover { background: #fff; }
.hotel-card-img-link .cg-arrow-left  { left: 8px; }
.hotel-card-img-link .cg-arrow-right { right: 8px; }

/* Wishlist button */
.hotel-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.90);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, transform .15s;
    z-index: 3;
    backdrop-filter: blur(4px);
}
.hotel-wishlist-btn:hover {
    background: #fff;
    transform: scale(1.12);
}
.hotel-wishlist-btn svg { color: var(--gray-700); transition: color .15s, fill .15s; }
.hotel-wishlist-btn:hover svg,
.hotel-wishlist-btn.is-saved svg { color: #e11d48; fill: #e11d48; }

/* Rating badge */
.hotel-card-info { flex: 1; min-width: 0; }

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}
.hotel-rating-score {
    width: 36px;
    height: 36px;
    border-radius: 8px 8px 8px 0;
    display: grid;
    place-items: center;
    font-size: var(--text-sm);
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.score-green { background: #006b4b; }
.score-teal  { background: #0d8e79; }
.score-blue  { background: #1d4ed8; }
.score-amber { background: var(--primary); }
.hotel-rating-label {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    white-space: nowrap;
}
.hotel-rating-count {
    font-size: var(--text-2xs);
    color: var(--gray-400);
    white-space: nowrap;
}

/* Stars solid ★ */
.hotel-card-stars { font-size: var(--text-xs); color: var(--hotel-gold); letter-spacing: 1px; margin: 0; }
.filter-stars { color: var(--hotel-gold); letter-spacing: 1px; }

/* Price — currency smaller */
.price-currency { font-size: var(--text-base); font-weight: 600; }
.hotel-card-price .price-unit { font-size: var(--text-2xs); display: block; margin-top: 2px; }

/* Mobile override for wider card */
@media (max-width: 600px) {
    .hotel-card-img-link,
    .hotel-card-img,
    .hotel-card-img--placeholder { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   FEATURED CAROUSEL — Coups de cœur
══════════════════════════════════════════════════════════════════ */
.hotel-featured-wrap {
    background: #fff;
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--gray-100);
}
.hotel-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.hotel-section-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--hotel-blue);
    margin: 0 0 4px;
    letter-spacing: -.3px;
}
.hotel-section-sub { font-size: var(--text-sm); color: var(--gray-400); margin: 0; }
.hotel-section-link {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--hotel-orange);
    text-decoration: none;
    white-space: nowrap;
}
.hotel-section-link:hover { text-decoration: underline; }

.hotel-feat-outer {
    position: relative;
}
.hotel-feat-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.hotel-feat-track::-webkit-scrollbar { display: none; }

.hotel-feat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 12px rgba(0,0,0,.14);
    cursor: pointer;
    font-size: var(--text-3xl);
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s, box-shadow .15s;
    z-index: 2;
    color: var(--gray-900);
}
.hotel-feat-nav:hover {
    background: var(--hotel-orange);
    color: #fff;
    border-color: var(--hotel-orange);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb),.25);
}
.hotel-feat-prev { left: -22px; }
.hotel-feat-next { right: -22px; }

.hotel-feat-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    display: block;
}
.hotel-feat-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    transform: translateY(-4px);
    color: inherit;
}
.hotel-feat-img-wrap {
    position: relative;
    height: 148px;
    overflow: hidden;
    background: var(--hotel-bg);
}
.hotel-feat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.hotel-feat-card:hover .hotel-feat-img-wrap img { transform: scale(1.06); }
.hotel-feat-img-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: var(--text-7xl);
}
.hotel-feat-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.28) 100%);
}
.hotel-feat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--hotel-orange);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.hotel-feat-body { padding: 12px 14px 14px; }
.hotel-feat-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--hotel-blue);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hotel-feat-city {
    font-size: var(--text-2xs);
    color: var(--gray-400);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.hotel-feat-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.hfr-score {
    width: 28px;
    height: 28px;
    border-radius: 6px 6px 6px 0;
    display: grid;
    place-items: center;
    font-size: var(--text-2xs);
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.hfr-green { background: #006b4b; }
.hfr-teal  { background: #0d8e79; }
.hfr-blue  { background: #1d4ed8; }
.hfr-label { font-size: var(--text-2xs); font-weight: 600; color: var(--gray-700); }
.hotel-feat-price {
    font-size: var(--text-2xs);
    color: var(--gray-400);
    margin: 0;
    line-height: 1.4;
}
.hotel-feat-price strong { color: var(--gray-900); font-size: var(--text-sm); }
.hotel-feat-per-night { color: var(--gray-400); }

@media (max-width: 768px) {
    .hotel-feat-prev { left: -8px; }
    .hotel-feat-next { right: -8px; }
    .hotel-feat-nav { width: 34px; height: 34px; font-size: var(--text-xl); }
}

/* ══════════════════════════════════════════════════════════════════
   USP SECTION
══════════════════════════════════════════════════════════════════ */
.hotel-usp-section {
    background: var(--hotel-bg);
    padding: 52px 20px 56px;
    margin-top: 16px;
}
.hotel-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.hotel-usp-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 30px 24px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s, transform .2s;
}
.hotel-usp-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.hotel-usp-icon { font-size: var(--text-7xl); margin-bottom: 16px; line-height: 1; }
.hotel-usp-card h3 {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--hotel-blue);
    margin: 0 0 8px;
    letter-spacing: -.2px;
}
.hotel-usp-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0 0 18px;
}
.hotel-usp-card a {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--hotel-orange);
    text-decoration: none;
}
.hotel-usp-card a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .hotel-usp-grid { grid-template-columns: 1fr; gap: 16px; }
    .hotel-usp-section { padding: 36px 16px 40px; }
}

/* ── PAIEMENT : onglets Local / Carte (Stripe diaspora) ─────────────── */
.pay-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 0;
}
.pay-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 16px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pay-tab.is-active { color: var(--hotel-blue); border-bottom-color: var(--hotel-blue); }
.pay-tab:hover:not(.is-active) { color: var(--gray-600); }
.pay-tab-badge {
    background: var(--hotel-orange);
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .3px;
}
.pay-tab-panel { padding: 0; }

/* ── Stripe : bannière ───────────────────────────────────────────────── */
.pay-stripe-info { padding: 24px; border-bottom: 1px solid var(--gray-100); }
.pay-stripe-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0f4ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.pay-stripe-icon { font-size: var(--text-5xl); flex-shrink: 0; }
.pay-stripe-banner strong { font-size: var(--text-md); color: var(--gray-800); display: block; margin-bottom: 2px; }
.pay-stripe-banner p { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }
.pay-stripe-badges {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.pay-stripe-badges span {
    background: #e0f2fe;
    color: #0369a1;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
}

/* ── Choix de devise ─────────────────────────────────────────────────── */
.pay-currency-label { font-size: var(--text-base); font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.pay-currency-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.pay-currency-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
}
.pay-currency-card input { display: none; }
.pay-currency-card.is-active {
    border-color: var(--hotel-blue);
    background: #f0f4ff;
}
.pcc-flag { font-size: var(--text-5xl); }
.pcc-code { font-size: var(--text-xs); font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.pcc-amount { font-size: var(--text-3xl); font-weight: 800; color: var(--gray-800); }
.pcc-hint { font-size: var(--text-2xs); color: var(--gray-500); }
.pay-rate-note { font-size: var(--text-xs); color: var(--gray-400); margin: 4px 0 0; }

/* ── Bouton Stripe ───────────────────────────────────────────────────── */
.btn-stripe {
    background: #635bff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-stripe:hover { background: #4f46e5; }
.btn-stripe #stripe-btn-amount {
    background: rgba(255,255,255,.2);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: var(--text-lg);
}

/* ── Note sécurité Stripe ────────────────────────────────────────────── */
.pay-secure-stripe { margin: 16px 24px 0; font-size: var(--text-xs); color: var(--gray-500); text-align: center; }
@media (max-width: 560px) {
    .pay-tabs { flex-direction: column; }
    .pay-tab { border-bottom: none; border-left: 3px solid transparent; justify-content: flex-start; }
    .pay-tab.is-active { border-left-color: var(--hotel-blue); border-bottom-color: transparent; }
    .pay-currency-cards { grid-template-columns: 1fr; }
    .pay-stripe-banner { flex-direction: column; text-align: center; }
    .pay-stripe-badges { flex-direction: row; margin-left: 0; }
}

/* ── Hôtels par ville ─────────────────────────────────────────────── */
.hotel-cities-section { padding: 8px 0 36px; }
.hotel-cities-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hotel-cities-list a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: #fff; color: var(--secondary); font-weight: 600; font-size: var(--text-base); text-decoration: none;
}
.hotel-cities-list a:hover, .hotel-cities-list a.is-active { border-color: var(--primary); color: var(--primary); }
.hotel-cities-list span { background: var(--primary-light); color: var(--primary); border-radius: 999px; padding: 1px 8px; font-size: var(--text-xs); }
.hotel-show-views { color: var(--muted); font-size: .92em; white-space: nowrap; }

/* Présentation de l’annuaire hôtelier. */
.hotel-directory .hotel-sidebar {
    width: 228px; top: 96px; border: 1px solid var(--gray-200);
    padding: 20px; box-shadow: none;
}
.hotel-filter-panel > summary {
    display: flex; align-items: center; justify-content: space-between;
    list-style: none; font-size: var(--text-md); font-weight: 700;
    color: var(--secondary); cursor: pointer;
}
.hotel-filter-panel > summary::-webkit-details-marker { display: none; }
.hotel-filter-panel[open] > summary { margin-bottom: 24px; }
.hotel-directory .filter-block h4 { font-size: var(--text-2xs); letter-spacing: .07em; color: var(--gray-500); }
.hotel-directory .filter-checkbox { font-size: var(--text-sm); padding-block: 7px; }
.hotel-directory .hotel-results { min-width: 0; }
.hotel-directory .hotel-results-header { margin-bottom: 20px; }
.hotel-results-eyebrow {
    margin: 0 0 3px; font-size: var(--text-2xs); font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500);
}
.hotel-directory .hotel-results-count { margin: 0; font-size: var(--text-base); color: var(--gray-500); }
.hotel-directory .hotel-results-count strong { font-size: var(--text-3xl); color: var(--secondary); }
.hotel-directory .hotel-card {
    border: 1px solid var(--border); border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.hotel-directory .hotel-card:hover { box-shadow: var(--shadow-hover); }
.hotel-directory .hotel-card-img-link { width: 230px; min-height: 222px; background: var(--gray-100); }
.hotel-directory .hotel-card-img { width: 100%; min-height: 100%; }
.hotel-directory .hotel-card-body { min-width: 0; padding: 22px 24px; }
.hotel-directory .hotel-card-top { gap: 12px; }
.hotel-directory .hotel-card-name { font-size: var(--text-xl); line-height: 1.35; margin-bottom: 7px; }
.hotel-directory .hotel-card-location { color: var(--gray-500); font-size: var(--text-xs); }
.hotel-directory .hotel-card-stars { margin-top: 6px; color: #b77912; }
.hotel-card-excerpt {
    font-size: var(--text-xs); color: var(--gray-500); line-height: 1.6; margin: 10px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hotel-directory .hotel-card-amenities { gap: 6px; margin: 12px 0 4px; }
.hotel-directory .amenity-tag {
    background: var(--gray-50); color: var(--gray-600); border-radius: 5px;
    font-size: var(--text-2xs); font-weight: 500; padding: 4px 8px;
}
.hotel-directory .hotel-card-footer { gap: 16px; margin-top: 16px; padding-top: 16px; }
.hotel-directory .hotel-card-price .price-label { font-size: var(--text-2xs); color: var(--gray-500); }
.hotel-directory .hotel-card-price .price-amount { font-size: var(--text-2xl); color: var(--secondary); }
.hotel-directory .hotel-card-price .price-amount--request { font-size: var(--text-lg); font-weight: 600; }
.hotel-directory .hotel-card-price .price-unit { font-size: var(--text-2xs); color: var(--gray-500); }
.hotel-directory .btn-see-hotel {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--primary); font-size: var(--text-xs); font-weight: 600; padding: 12px 16px;
    border: 1px solid var(--primary); border-radius: 8px;
}
.hotel-directory .btn-see-hotel:hover { background: var(--primary-dark); border-color: var(--primary-dark); opacity: 1; }
.hotel-photo-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; width: 100%; height: 100%; min-height: 160px;
    background: linear-gradient(145deg,var(--gray-100),var(--gray-100)); color: var(--gray-600);
}
.hotel-photo-placeholder > span { font-size: var(--text-2xs); font-weight: 500; letter-spacing: .04em; }
.hotel-directory .hotel-card--no-photo .cg-scrim { display: none; }
.hotel-directory .hotel-card--no-photo .hotel-type-badge { background: #fff; color: var(--gray-600); font-size: var(--text-2xs); border: 1px solid var(--gray-200); }
.hotel-directory .hotel-card-img--placeholder { background: none; font-size: inherit; }
.hotel-directory .hotel-feat-img-placeholder { font-size: inherit; }
@media (max-width: 1100px) and (min-width: 901px) {
    .hotel-directory .hotel-card-img-link { width: 190px; }
    .hotel-directory .hotel-card-body { padding: 18px; }
    .hotel-directory .hotel-card-top { flex-wrap: wrap; }
    .hotel-directory .hotel-rating { margin-left: 0; }
    .hotel-directory .hotel-card-footer { flex-wrap: wrap; }
}
@media (max-width: 900px) {
    .hotel-directory .hotel-sidebar { width: 100%; position: static; }
    .hotel-filter-panel form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
    .hotel-directory .filter-block { margin: 0; padding: 0; border: 0; }
    .hotel-filter-panel form > button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .hotel-directory .hotel-card-img-link { width: 100%; min-height: 190px; height: 190px; }
    .hotel-directory .hotel-card--no-photo .hotel-card-img-link { min-height: 160px; height: 160px; }
    .hotel-directory .hotel-card-body { padding: 18px; }
    .hotel-directory .hotel-card-name { font-size: var(--text-xl); }
    .hotel-directory .hotel-card-top { flex-wrap: wrap; }
    .hotel-directory .hotel-rating { margin-left: 0; }
    .hotel-directory .hotel-card-footer { flex-wrap: wrap; }
    .hotel-directory .btn-see-hotel { width: 100%; }
    .hotel-filter-panel form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hotel-directory .hotel-layout { gap: 24px; }
}

/* Fiche établissement : lecture, séjour et informations. */
.hotel-detail.hotel-show-wrap { width: min(1200px,94%); padding-top: 28px; }
.hotel-detail .hotel-show-outer { grid-template-columns: 280px minmax(0,1fr); gap: 28px; }
.hotel-detail .hotel-search-col { top: 100px; }
.hotel-detail .hotel-search-panel {
    background: #fff; color: var(--secondary); border: 1px solid var(--border-strong);
    border-radius: var(--radius-card); padding: 24px 20px; box-shadow: var(--shadow-raised);
}
.hsp-eyebrow { font-size: var(--text-2xs); color: var(--primary-dark); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.hotel-detail .hsp-title { color: var(--secondary); font-size: var(--text-3xl); letter-spacing: -.5px; margin: 0 0 4px; }
.hsp-intro { font-size: var(--text-xs); color: var(--gray-500); margin: 0 0 22px; }
.hotel-detail .hsp-form { gap: 16px; }
.hotel-detail .hsp-field { min-width: 0; gap: 6px; }
.hotel-detail .hsp-field label { color: var(--gray-500); font-size: var(--text-2xs); font-weight: 600; }
.hotel-detail .hsp-field input {
    min-width: 0; min-height: var(--field-height); background: var(--field-bg); border: 1px solid var(--field-border);
    color: var(--secondary); border-radius: var(--radius-field); padding: 9px 10px; font-size: var(--field-font);
}
.hotel-detail .hsp-field input:focus { background: #fff; border-color: var(--primary); box-shadow: var(--field-ring); }
.hotel-detail .hsp-field input::-webkit-calendar-picker-indicator { filter: none; }
.hotel-detail .hsp-guests-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.hotel-detail .hsp-btn { border-radius: 8px; font-size: var(--text-xs); padding: 13px 8px; }
.hotel-detail .hsp-nights { color: var(--gray-500); font-size: var(--text-2xs); line-height: 1.9; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.hotel-detail .hotel-breadcrumb { font-size: var(--text-2xs); flex-wrap: wrap; color: var(--gray-500); margin-bottom: 18px; }
.hotel-detail .hotel-breadcrumb a { color: var(--gray-600); }
.hotel-detail .hotel-show-header {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 28px; margin-bottom: 22px;
}
.hotel-detail .hotel-show-badges { gap: 6px; margin-bottom: 16px; }
.hotel-detail .hotel-show-type-badge { font-size: var(--text-2xs); padding: 5px 9px; background: var(--gray-100); }
.hotel-detail .hotel-stars-badge { font-size: var(--text-xs); color: #a76b0d; border: 0; background: #fff8e9; padding: 4px 9px; letter-spacing: 2px; }
.hotel-detail .hotel-show-header-row { gap: 24px; align-items: center; }
.hotel-detail .hotel-show-header-row > div:first-child { min-width: 0; flex: 1; }
.hotel-detail .hotel-show-name { font-size: clamp(25px,2.7vw,34px); line-height: 1.2; letter-spacing: -.9px; margin-bottom: 14px; }
.hotel-detail .hotel-show-location { font-size: var(--text-xs); line-height: 1.8; color: var(--gray-500); }
.hotel-detail .hotel-show-views { display: inline; font-size: var(--text-2xs); }
.hotel-detail .hotel-show-phone { font-size: var(--text-sm); margin: 12px 0 0; }
.hotel-detail .hotel-show-phone a { color: #244566; text-decoration: underline; text-underline-offset: 3px; }
.hotel-detail .hotel-claim-cta { color: var(--gray-500); font-size: var(--text-2xs); line-height: 1.8; margin: 16px 0 0; }
.hotel-detail .hotel-claim-cta a { color: var(--primary-dark); font-weight: 600; }
.hotel-detail-mark { width: 142px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.hotel-detail-mark .hotel-photo-placeholder { min-height: 150px; gap: 0; }
.hotel-detail-mark .hotel-photo-placeholder > span { font-size: var(--text-2xs); }
.hotel-detail .hotel-section {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 24px; margin-bottom: 20px;
}
.hotel-detail .hotel-section h2 { font-size: var(--text-lg); border: 0; padding: 0; margin: 0 0 18px; letter-spacing: -.3px; }
.hotel-detail .hotel-description { color: var(--gray-600); font-size: var(--text-base); line-height: 1.85; margin: 0; max-width: 70ch; }
.hotel-detail .hotel-amenities-grid { grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 10px; }
.hotel-detail .amenity-item { display: flex; align-items: center; gap: 10px; background: var(--gray-50); font-size: var(--text-xs); padding: 12px; color: var(--gray-600); }
.amenity-check { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--gray-100); color: #3b6a54; font-size: var(--text-2xs); flex-shrink: 0; }
.hotel-detail .hotel-info-grid { grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); }
.hotel-detail .hotel-info-item { background: var(--gray-50); align-items: center; padding: 16px; }
.hotel-detail .info-icon { display: flex; color: var(--gray-500); }
.hotel-detail .hotel-info-item strong { font-size: var(--text-xs); }
.hotel-detail .hotel-info-item p { font-size: var(--text-xs); color: var(--gray-500); }
.hotel-detail .hotel-show-right { background: #fff; border: 1px solid var(--border); padding: 24px; border-radius: var(--radius-card); margin-top: 20px; }
.hotel-detail .rooms-title { font-size: var(--text-xl); border: 0; margin-bottom: 18px; padding: 0; }
.hotel-detail .rooms-empty { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 20px; color: var(--gray-600); text-align: left; font-size: var(--text-sm); line-height: 1.8; }
.hotel-detail .rooms-empty p:last-child { margin-bottom: 0; }
.hotel-detail .rooms-empty a { color: #244566; text-decoration: underline; }
.hotel-detail .hotel-reviews-section { border-radius: var(--radius-card); }
@media (max-width: 1024px) {
    .hotel-detail .hotel-show-outer { grid-template-columns: minmax(0,1fr); }
    .hotel-detail .hotel-search-col { position: static; order: 0; }
    .hotel-detail .hotel-content-col { order: 1; }
    .hotel-detail .hsp-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hotel-detail .hsp-guests-row, .hotel-detail .hsp-btn { grid-column: 1 / -1; }
    .hotel-detail .hsp-intro { margin-bottom: 16px; }
    .hotel-detail .hsp-map { display: none; }
}
@media (max-width: 600px) {
    .hotel-detail.hotel-show-wrap { padding-top: 18px; }
    .hotel-detail .hotel-show-header, .hotel-detail .hotel-section, .hotel-detail .hotel-show-right { padding: 20px; }
    .hotel-detail .hotel-show-header-row { flex-wrap: wrap; gap: 16px; }
    .hotel-detail-mark { width: 100%; }
    .hotel-detail-mark .hotel-photo-placeholder { min-height: 130px; flex-direction: row; gap: 14px; }
    .hotel-detail .hsp-field input { font-size: var(--field-font); }
    .hotel-detail .hotel-info-grid, .hotel-detail .hotel-amenities-grid { grid-template-columns: minmax(0,1fr); }
    .hotel-detail .hotel-show-price-aside { text-align: left; }
}

/* Dynamic directory results keep their layout as a Turbo Frame. */
#hotel-keyword { width: 100%; margin: 8px 0 16px; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font: inherit; }

/* ./pages/hotel-owner.css */
/* =========================================================
   ESPACE HÔTELIER, REVENDICATION, MES RÉSERVATIONS (ho-*)
========================================================= */
.ho-page { max-width: 860px; padding-top: 28px; padding-bottom: 56px; }
.ho-page--wide { max-width: 1080px; }
.ho-back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: var(--text-base); text-decoration: none; }
.ho-back:hover { color: var(--primary); }
.ho-title { font-size: var(--text-4xl); font-weight: 700; color: var(--secondary); margin: 0 0 6px; letter-spacing: -0.3px; }
.ho-lead { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.ho-sub { color: var(--muted); font-size: var(--text-sm); margin: 2px 0 0; }
.ho-h2 { font-size: var(--text-xl); font-weight: 700; color: var(--secondary); margin: 0 0 12px; }
.ho-hint { color: var(--muted); font-size: var(--text-sm); margin: 6px 0 0; line-height: 1.5; }
.ho-center { text-align: center; }
.ho-req { color: var(--danger); }
.ho-optional { color: var(--muted); font-weight: 400; font-size: var(--text-xs); }

.ho-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}
.ho-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.ho-section { margin-bottom: 28px; }

/* Étapes */
.ho-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0 0 20px; list-style: none; counter-reset: step; }
.ho-steps li { background: var(--primary-light); border-radius: 10px; padding: 14px 14px 14px 44px; position: relative; font-size: var(--text-base); line-height: 1.45; counter-increment: step; }
.ho-steps li::before {
    content: counter(step);
    position: absolute; left: 12px; top: 13px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: var(--text-xs); font-weight: 700;
    display: grid; place-items: center;
}

/* Formulaires */
.ho-form fieldset, .ho-fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.ho-fieldset legend { font-size: var(--text-md); font-weight: 700; color: var(--secondary); margin-bottom: 12px; padding: 0; }
.ho-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.ho-field label { font-size: var(--text-base); font-weight: 600; color: var(--text); }
.ho-field input, .ho-field select, .ho-field textarea, .ho-inline-form input, .ho-reply-form textarea {
    width: 100%;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    padding: 10px 12px;
    font: inherit;
    font-size: var(--field-font);
    background: var(--field-bg);
    color: var(--text);
}
.ho-field input:focus, .ho-field select:focus, .ho-field textarea:focus, .ho-inline-form input:focus, .ho-reply-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: var(--field-ring);
}
.ho-field input:disabled { background: var(--field-bg); color: var(--muted); }
.ho-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ho-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.ho-span-2 { grid-column: span 2; }
.ho-submit { width: 100%; min-height: 48px; font-size: var(--text-lg); }
.ho-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.ho-choice-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ho-choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; cursor: pointer; font-size: var(--text-base); }
.ho-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }

.ho-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ho-check { display: flex; align-items: center; gap: 8px; font-size: var(--text-base); padding: 6px 0; cursor: pointer; }

.ho-privacy { background: var(--bg-light); border-radius: 8px; padding: 12px 14px; font-size: var(--text-base); line-height: 1.5; margin: 0 0 14px; }
.ho-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ho-doc { display: flex; flex-direction: column; gap: 6px; border: 1px dashed var(--border); border-radius: 10px; padding: 14px; cursor: pointer; }
.ho-doc:hover { border-color: var(--primary); }
.ho-doc-title { font-weight: 600; font-size: var(--text-base); }
.ho-doc input { font-size: var(--field-font); margin-top: auto; }
.ho-hotel-recap { display: flex; flex-direction: column; gap: 2px; background: var(--bg-light); border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
.ho-hotel-recap span { color: var(--muted); font-size: var(--text-sm); }

/* En-tête espace hôtelier */
.ho-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ho-verified { color: var(--success); font-weight: 600; }
.ho-checklist { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 16px; font-size: var(--text-base); margin-bottom: 14px; line-height: 1.6; }
.ho-checklist a { color: var(--primary-dark); font-weight: 600; }

.ho-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.ho-tab { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: var(--text-base); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ho-tab:hover { color: var(--secondary); }
.ho-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.ho-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: var(--text-2xs); }

/* Statuts */
.ho-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; background: var(--gray-100); color: var(--gray-600); white-space: nowrap; }
.ho-status--pending, .ho-status--requested, .ho-status--pending_payment { background: #fef3c7; color: var(--primary-dark); }
.ho-status--approved, .ho-status--confirmed, .ho-status--completed { background: #dcfce7; color: #166534; }
.ho-status--rejected, .ho-status--declined, .ho-status--cancelled { background: #fee2e2; color: #991b1b; }

/* Liste hôtels / demandes */
.ho-hotel-card, .ho-claim { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ho-hotel-card h2 { font-size: var(--text-xl); margin: 0; color: var(--secondary); }
.ho-claim-note { color: #991b1b; font-size: var(--text-sm); margin: 6px 0 0; }
.ho-empty { text-align: center; }
.ho-empty h2 { font-size: var(--text-xl); color: var(--secondary); margin: 0 0 8px; }
.ho-empty p { color: var(--muted); line-height: 1.6; }
.ho-empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ho-empty-line { color: var(--muted); font-size: var(--text-base); padding: 8px 0; margin: 0; }

/* Photos */
.ho-upload { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; background: var(--bg-light); border-radius: 10px; padding: 14px; margin: 14px 0 18px; }
.ho-upload .ho-field { margin: 0; }
.ho-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ho-photo { margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.ho-photo.is-main { border-color: var(--primary); box-shadow: 0 0 0 2px var(--border-focus); }
.ho-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ho-photo figcaption { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.ho-photo-actions { display: flex; justify-content: space-between; gap: 8px; }
.ho-badge { align-self: flex-start; font-size: var(--text-2xs); font-weight: 700; background: var(--primary); color: #fff; border-radius: 6px; padding: 2px 8px; }
.ho-badge--muted { background: var(--gray-200); color: var(--gray-700); }
.ho-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.ho-link--danger { color: var(--danger); }

/* Tableaux */
.ho-table-wrap { overflow-x: auto; margin: 0 -4px; }
.ho-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.ho-table th { text-align: left; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .3px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--border); }
.ho-table td { padding: 10px 8px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.ho-table tr.is-off td { opacity: .55; }
.ho-row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.ho-row-actions a { color: var(--primary); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }

/* Réservations */
.ho-resa { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gray-300); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.ho-resa--requested { border-left-color: var(--warning); }
.ho-resa--confirmed, .ho-resa--completed { border-left-color: var(--success); }
.ho-resa--pending_payment { border-left-color: var(--info); }
.ho-resa-main { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr auto; gap: 14px; align-items: start; }
.ho-resa-main > div { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-base); min-width: 0; }
.ho-resa-main span { color: var(--muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.ho-resa-note { font-size: var(--text-sm); color: var(--text); background: var(--bg-light); border-radius: 6px; padding: 8px 10px; margin: 10px 0 0; }
.ho-deadline { font-size: var(--text-sm); color: var(--primary-dark); font-weight: 600; margin: 10px 0 0; }
.ho-resa-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ho-inline-form { display: flex; gap: 8px; flex: 1 1 320px; align-items: center; }
.ho-inline-form input { flex: 1; min-width: 0; }
.ho-decline summary { cursor: pointer; color: var(--muted); font-size: var(--text-base); font-weight: 600; padding: 8px 0; }
.ho-decline[open] { flex-basis: 100%; }
.ho-info { font-size: var(--text-base); color: var(--text); margin: 10px 0 0; line-height: 1.5; }

/* Avis */
.ho-review { border-top: 1px solid var(--border); padding: 16px 0; }
.ho-review-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ho-review-head time { color: var(--muted); font-size: var(--text-sm); }
.ho-review-score { background: var(--secondary); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: var(--text-sm); font-weight: 700; }
.ho-review p { margin: 6px 0; font-size: var(--text-base); line-height: 1.5; }
.ho-reply-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ho-reply-form label { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.ho-reply-form button { align-self: flex-start; }

/* Versements */
.ho-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.ho-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ho-stat span { color: var(--muted); font-size: var(--text-sm); }
.ho-stat strong { font-size: var(--text-2xl); color: var(--secondary); }
.ho-stat small { color: var(--muted); font-size: var(--text-xs); }

/* Mes réservations (client) */
.ho-guest-resa-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ho-guest-resa h2 { font-size: var(--text-lg); margin: 0; }
.ho-guest-resa h2 a { color: var(--secondary); text-decoration: none; }

/* Ajouts sur les pages hôtel publiques */
.hotel-managed-badge { display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--gray-700); background: var(--gray-200); border-radius: 999px; padding: 3px 10px; }
.hotel-claim-cta { font-size: var(--text-sm); color: var(--muted); margin: 8px 0 0; }
.hotel-claim-cta a { color: var(--primary); font-weight: 600; }
.rooms-mode { font-size: var(--text-sm); color: var(--muted); background: var(--bg-light); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.hrc-owner-reply { margin-top: 10px; background: var(--bg-light); border-left: 3px solid var(--primary); border-radius: 6px; padding: 10px 12px; font-size: var(--text-base); }
.hrc-owner-reply p { margin: 4px 0 0; }
.hrc-owner-reply time { color: var(--muted); font-size: var(--text-xs); }
.hotel-card-verified { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: var(--text-2xs); font-weight: 700; color: var(--success); background: #dcfce7; border-radius: 999px; padding: 2px 8px; }
.book-steps { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; font-size: var(--text-base); }
.book-summary-verified { color: var(--success); font-size: var(--text-sm); font-weight: 600; margin: 10px 0 0; }

@media (max-width: 760px) {
    .ho-page { padding-top: 18px; }
    .ho-title { font-size: var(--text-3xl); }
    .ho-card { padding: 16px; }
    .ho-steps, .ho-docs, .ho-grid-2, .ho-grid-3, .ho-stats, .ho-upload { grid-template-columns: 1fr; }
    .ho-span-2 { grid-column: auto; }
    .ho-resa-main { grid-template-columns: 1fr 1fr; }
    .ho-inline-form { flex-wrap: wrap; }
    .ho-inline-form button { width: 100%; }
    .ho-guest-resa-head { flex-direction: column; }
}

/* Réponse à une demande depuis le SMS (pensée pour téléphone) */
.ho-respond { max-width: 520px; }
.ho-respond-recap p { margin: 0 0 8px; font-size: var(--text-md); }
.ho-respond-dates { font-size: var(--text-2xl) !important; font-weight: 700; color: var(--secondary); }
.ho-respond-dates span, .ho-respond-amount span { font-size: var(--text-base); font-weight: 400; color: var(--muted); }
.ho-respond-amount { font-size: var(--text-xl) !important; font-weight: 700; }
.ho-respond-accept { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.ho-respond-accept input, .ho-respond-decline input[type="text"] { border: 1px solid var(--field-border); border-radius: var(--radius-field); padding: 12px; font-size: var(--field-font); width: 100%; }
.ho-respond-btn { width: 100%; min-height: 54px; font-size: var(--text-xl); font-weight: 700; }
.ho-respond-decline { margin-bottom: 20px; }
.ho-respond-decline summary { cursor: pointer; text-align: center; padding: 14px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; color: var(--danger); }
.ho-respond-decline form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ho-respond-done--confirmed, .ho-respond-done--pending_payment { border-color: #bbf7d0; background: #f0fdf4; }
.ho-respond-done--declined, .ho-respond-done--cancelled { border-color: #fecaca; background: var(--gray-100); }
.ho-sms-field { background: var(--primary-light); border-radius: 10px; padding: 12px 14px; }

/* ./pages/hotel-search.css */
/* =========================================================
   RECHERCHE D'HÔTELS — bandeau, barre, calendrier (hs-*)
========================================================= */
/* Bandeau clair, titre noir (style épuré du site) */
.hs-hero {
    background: var(--gray-50);
    color: var(--secondary);
    border-bottom: 1px solid var(--gray-200);
    padding: 38px 0 66px;
}
.hs-hero-title {
    color: var(--secondary);
    font-size: clamp(1.9rem, 3.1vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.8px;
    margin: 0 0 12px;
    max-width: 900px;
}
.hs-hero-sub {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin: 0;
    max-width: 820px;
}

/* La barre chevauche le bas du bandeau */
.hs-bar-wrap { position: relative; z-index: 20; margin-top: -32px; }

.hs-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    padding: 8px;
    box-shadow: var(--shadow-raised);
}
.hs-bar > * { margin: 0; }

.hs-seg {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    border-right: 1px solid var(--gray-200);
    padding: 0 18px;
    min-height: 60px;
    min-width: 0;
}
.hs-dest   { flex: 1.25 1 0; }
.hs-dates  { flex: 1.25 1 0; }
.hs-guests { flex: 1 1 0; }
.hs-icon   { flex-shrink: 0; color: var(--secondary); }
.hs-chevron { flex-shrink: 0; color: var(--muted); }

.hs-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    padding: 8px 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.hs-label { font-size: var(--text-xs); color: var(--muted); font-weight: 500; line-height: 1.2; }
.hs-input, .hs-value {
    font-size: var(--text-lg);            /* 16 px : pas de zoom iOS */
    font-weight: 600;
    color: var(--text);
    border: 0;
    outline: 0;
    padding: 2px 0 0;
    background: transparent;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hs-input::placeholder { color: var(--gray-400); font-weight: 500; }
.hs-dash { margin: 0 8px; color: var(--muted); }
.hs-clear {
    border: 0; background: none; font-size: var(--text-3xl); line-height: 1; color: var(--muted);
    cursor: pointer; padding: 4px; flex-shrink: 0;
}
.hs-clear:hover { color: var(--text); }
.hs-trigger:focus-visible, .hs-input:focus-visible { outline: none; }
.hs-seg:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }

.hs-submit {
    flex: 0 0 auto;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}
.hs-submit:hover { background: var(--primary-dark); }

.hs-nojs { display: flex; gap: 8px; }
.hs-nojs input { border: 1px solid var(--field-border); border-radius: var(--radius-field); padding: 6px; }

/* ── Panneaux ─────────────────────────────────────────────── */
.hs-pop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 40;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(13, 31, 60, .22);
    padding: 16px;
}
.hs-pop[hidden] { display: none; }
.hs-pop-title { font-weight: 700; font-size: var(--text-md); margin: 2px 4px 8px; color: var(--secondary); }

.hs-dest-pop { width: min(460px, 92vw); padding: 12px 0; }
.hs-dest-pop .hs-pop-title { margin: 2px 18px 6px; }
.hs-dest-list { list-style: none; margin: 0; padding: 0; }
.hs-dest-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 18px; cursor: pointer; border-top: 1px solid var(--gray-100); color: var(--secondary);
}
.hs-dest-list li:first-child { border-top: 0; }
.hs-dest-list li:hover, .hs-dest-list li.is-active { background: var(--bg-light); }
.hs-dest-list strong { display: block; font-size: var(--text-md); }
.hs-dest-list small { display: block; color: var(--muted); font-size: var(--text-sm); margin-top: 2px; }

/* Calendrier */
.hs-cal-pop { width: min(720px, 94vw); left: 50%; transform: translateX(-30%); padding: 18px 22px; }
.hs-cal-head { position: relative; height: 0; }
.hs-cal-nav {
    position: absolute; top: -2px; width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: none; font-size: var(--text-4xl); line-height: 1; color: var(--secondary); cursor: pointer; z-index: 1;
}
.hs-cal-nav:hover:not(:disabled) { background: var(--bg-light); }
.hs-cal-nav:disabled { opacity: .25; cursor: default; }
.hs-cal-nav[data-hs-prev] { left: -6px; }
.hs-cal-nav[data-hs-next] { right: -6px; }
.hs-cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.hs-month-title { text-align: center; font-weight: 700; font-size: var(--text-lg); margin: 4px 0 14px; text-transform: capitalize; color: var(--secondary); }
.hs-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.hs-wd { text-align: center; font-size: var(--text-xs); color: var(--muted); padding-bottom: 8px; }
.hs-day {
    height: 42px; border: 0; background: none; font: inherit; font-size: var(--text-md); color: var(--text);
    cursor: pointer; border-radius: 0;
}
.hs-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--secondary); border-radius: 4px; }
.hs-day:disabled { color: var(--gray-300); cursor: default; }
.hs-day.is-today { color: var(--primary); font-weight: 700; }
.hs-day.in-range { background: #eaf0fb; }
.hs-day.is-start, .hs-day.is-end { background: var(--secondary); color: #fff; font-weight: 700; border-radius: 4px; }
.hs-cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.hs-cal-foot span { color: var(--muted); font-size: var(--text-base); }

.hs-done {
    border: 0; border-radius: 6px; background: var(--primary); color: #fff;
    font: inherit; font-weight: 700; padding: 10px 22px; cursor: pointer;
}
.hs-done:hover { background: var(--primary-dark); }

/* Voyageurs */
.hs-guests-pop { left: auto; right: 0; width: 320px; }
.hs-guest-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.hs-guest-row small { display: block; color: var(--muted); font-size: var(--text-xs); }
.hs-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; }
.hs-stepper button {
    width: 40px; height: 40px; border: 0; background: none; font-size: var(--text-2xl); color: var(--secondary); cursor: pointer;
}
.hs-stepper button:disabled { color: var(--gray-300); cursor: default; }
.hs-stepper output { min-width: 32px; text-align: center; font-weight: 700; }
.hs-guests-pop .hs-done { width: 100%; margin-top: 10px; background: #fff; color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); }

/* ── Destinations en vogue ───────────────────────────────── */
.hs-destinations { padding-top: 40px; padding-bottom: 8px; }
.hs-dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.hs-dest-card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 112px; padding: 20px; border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--secondary);
    background: #fff;
    border: 1px solid var(--border);
    transition: transform .15s ease, box-shadow .15s ease;
}
.hs-dest-card::after {
    content: ''; position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: var(--radius-card);
    background: rgba(13, 31, 60, .025);
}
.hs-dest-card--2 { background: var(--gray-50); }
.hs-dest-card--3 { background: var(--gray-50); }
.hs-dest-card--4 { background: var(--gray-50); }
.hs-dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.hs-dest-card-name { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.4px; position: relative; }
.hs-dest-card-count { font-size: var(--text-sm); color: var(--muted); position: relative; }

/* Carte avec photo de la ville : photo en fond, dégradé sombre en bas pour lire le nom en blanc */
.hs-dest-card.has-photo { min-height: 220px; border: 0; color: #fff; background: var(--gray-900); }
.hs-dest-card.has-photo::after { display: none; }
.hs-dest-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s ease; }
.hs-dest-card.has-photo::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%);
}
.hs-dest-card.has-photo .hs-dest-card-name,
.hs-dest-card.has-photo .hs-dest-card-count,
.hs-dest-card.has-photo .hs-dest-card-arrow { z-index: 2; color: #fff; }
.hs-dest-card.has-photo .hs-dest-card-name { font-size: var(--text-4xl); }
.hs-dest-card.has-photo .hs-dest-card-count { color: rgba(255, 255, 255, .88); }
.hs-dest-card.has-photo:hover .hs-dest-card-img { transform: scale(1.04); }
@media (max-width: 600px) {
    .hs-dest-card.has-photo { min-height: 170px; padding: 14px; }
    .hs-dest-card.has-photo .hs-dest-card-name { font-size: var(--text-xl); }
    .hs-dest-card.has-photo .hs-dest-card-count { font-size: var(--text-xs); }
}

/* ── Note façon « moteur de réservation » sur les cartes ─── */
.hfr-score {
    display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px;
    border-radius: 6px 6px 6px 0; background: var(--secondary) !important; color: #fff; font-weight: 700; font-size: var(--text-base);
}

/* ── Téléphone ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .hs-hero { padding: 30px 0 56px; }
    .hs-bar { flex-direction: column; gap: 4px; }
    .hs-seg { min-height: 56px; }
    .hs-submit { min-height: 52px; }
    .hs-pop { position: fixed; left: 8px !important; right: 8px; top: auto; bottom: 8px; transform: none !important; width: auto !important; max-height: 82vh; overflow-y: auto; }
    .hs-cal-pop { padding: 16px; }
    .hs-bar.has-open::before {
        content: ''; position: fixed; inset: 0; background: rgba(13, 31, 60, .45); z-index: 30;
    }
    /* Panneau ouvert : au-dessus de la barre de navigation du bas (z-index 900) */
    .hs-bar-wrap:has(.hs-bar.has-open) { z-index: 1000; }
    .hs-pop { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}

.hs-eyebrow {
    margin: 0 0 12px; color: var(--primary); font-size: var(--text-2xs);
    font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.hs-dest-card-arrow { position: absolute; top: 18px; right: 20px; color: var(--primary-dark); font-size: var(--text-3xl); }
@media (max-width: 900px) {
    .hs-bar { gap: 6px; }
    .hs-seg { border-right: 0; border-bottom: 1px solid var(--gray-100); }
    .hs-hero-sub { font-size: var(--text-md); }
}
@media (max-width: 480px) {
    .hs-dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hs-dest-card { min-height: 110px; padding: 16px 12px; }
    .hs-dest-card-name { font-size: var(--text-lg); }
    .hs-dest-card-count { font-size: var(--text-2xs); }
    .hs-dest-card-arrow { top: 9px; right: 12px; font-size: var(--text-lg); }
}

/* Destinations : une seule ligne de capitales régionales, à défilement lent. */
.hs-destination-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hs-destination-pause { border: 1px solid var(--gray-400); border-radius: 8px; background: #fff; color: var(--gray-900); padding: 10px 14px; font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.hs-destination-pause[hidden] { display: none; }
.hs-destination-window { overflow-x: auto; margin-bottom: 16px; border-radius: 12px; }
.hs-destination-track, .hs-destination-group { display: flex; width: max-content; }
.hs-destination-group { gap: 16px; padding-right: 16px; }
.hs-destination-group[aria-hidden] { display: none; }
.hs-destination-track .hs-ribbon-card { width: 320px; min-height: 180px; box-sizing: border-box; flex-shrink: 0; background: linear-gradient(135deg, #fff4e9, var(--gray-100)); color: var(--gray-900); }
.hs-destination-track .hs-ribbon-card.has-photo { background: var(--gray-900); }
.hs-destination-track .hs-dest-card-count { color: var(--gray-700); }
.hs-destination-track .hs-dest-card-name { font-size: var(--text-3xl); font-weight: 600; }
.hs-destination-track .hs-ribbon-card:hover { transform: none; box-shadow: none; }
.hs-destination-pause:focus-visible, .hs-ribbon-card:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    [data-destination-ribbons][data-ready] .hs-destination-window { overflow: hidden; }
    [data-destination-ribbons][data-ready] .hs-destination-track[data-scroll] .hs-destination-group[aria-hidden] { display: flex; }
    [data-destination-ribbons][data-ready] .hs-destination-track[data-scroll] { animation: destination-travel 180s linear infinite; animation-play-state: paused; }
    [data-destination-ribbons][data-ready]:not(.is-paused) .hs-destination-window:hover .hs-destination-track[data-scroll] { animation-play-state: running; }
    [data-destination-ribbons]:focus-within .hs-destination-track,
    [data-destination-ribbons].is-paused .hs-destination-track { animation-play-state: paused; }
}
@keyframes destination-travel { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hs-destination-pause { display: none; } }
@media (max-width: 600px) {
    .hs-destination-heading { align-items: flex-start; flex-direction: column; }
    .hs-destination-track .hs-ribbon-card { width: 260px; min-height: 155px; padding: 18px; }
    .hs-destination-track .hs-dest-card-name { font-size: var(--text-2xl); }
}

/* ./pages/vehicle.css */
/* ============================================================
   VEHICLES — INDEX PAGE  (AutoScout24-inspired)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
/* Bandeau clair, titre noir (style épuré du site) */
.vl-hero {
    position: relative;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.vl-hero-bg {
    display: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(30,80,140,0.55) 0%, transparent 70%),
        linear-gradient(160deg, var(--gray-900) 0%, #1a2e4a 60%, var(--gray-900) 100%);
}

.vl-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.vl-hero-inner {
    position: relative;
    padding: 40px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.vl-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: var(--secondary);
    margin: 0 0 4px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.vl-hero-sub {
    color: var(--gray-600);
    font-size: var(--text-md);
    margin: 0;
}

/* ── Floating search panel ────────────────────────────────── */
.vl-search-panel {
    background: #fff;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-bottom: 0;
    box-shadow: var(--shadow-raised);
    margin-top: 4px;
}

.vl-type-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vl-type-tabs::-webkit-scrollbar { display: none; }

.vl-type-tab {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.vl-type-tab:hover { color: var(--secondary); }
.vl-type-tab.is-active { color: var(--secondary); border-bottom-color: var(--primary); }

.vl-search-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.vl-search-field {
    flex: 1;
    min-width: 0;
    padding: 10px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vl-search-sep {
    width: 1px;
    background: var(--gray-100);
    flex: 0;
    min-width: 1px;
    padding: 12px 0;
}

.vl-search-label {
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
}

.vl-search-input {
    border: none;
    outline: none;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--secondary);
    background: transparent;
    padding: 0;
    width: 100%;
}

.vl-search-input::placeholder { color: var(--gray-300); font-weight: 400; }

.vl-search-select-native {
    appearance: none;
    cursor: pointer;
}

.vl-search-btn {
    flex-shrink: 0;
    margin: 8px 12px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.vl-search-btn:hover { background: var(--primary); }

.vl-search-count {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: var(--text-2xs);
}

/* ── Popular brands ───────────────────────────────────────── */
.vl-brands {
    display: flex;
    gap: 8px;
    padding: 16px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.vl-brand-pill {
    flex-shrink: 0;
    height: 34px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.vl-brand-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff7f0;
}

/* ── Page layout ──────────────────────────────────────────── */
.vl-page { background: var(--gray-50); min-height: 80vh; }

.vl-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 48px;
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.vl-filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 0 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 76px;
    overflow: hidden;
}

.vl-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px 12px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
}

.vl-filters-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
}

.vl-filter-reset-top {
    font-size: var(--text-2xs);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.vl-filter-reset-top:hover { text-decoration: underline; }

.vl-filter-block {
    padding: 12px 16px 12px;
    border-bottom: 1px solid var(--gray-50);
}

.vl-filter-block:last-of-type { border-bottom: none; }

.vl-filter-title {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.vl-filter-input {
    width: 100%;
    min-height: var(--field-height-compact);
    padding: 0 10px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    font-size: var(--field-font-compact);
    outline: none;
    transition: border-color 0.15s ease;
}

.vl-filter-input:focus { border-color: var(--primary); }

.vl-filter-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--gray-700);
    cursor: pointer;
    margin-bottom: 6px;
    padding: 2px 0;
    line-height: 1.4;
}

.vl-filter-check:hover { color: var(--primary); }

.vl-filter-check input[type="radio"] {
    accent-color: var(--primary);
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    cursor: pointer;
}

.vl-filter-check span { flex: 1; }

.vl-range-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vl-range-sep { font-size: var(--text-xs); color: var(--gray-400); }

.vl-range-input {
    flex: 1;
    min-height: var(--field-height-compact);
    padding: 0 8px;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-field);
    font-size: var(--field-font-compact);
    min-width: 0;
    outline: none;
}

.vl-range-input:focus { border-color: var(--primary); }

.vl-filter-apply {
    width: calc(100% - 32px);
    margin: 14px 16px 0;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vl-filter-apply:hover { background: var(--primary); }

/* ── Results header ───────────────────────────────────────── */
.vl-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.vl-results-left { display: flex; align-items: center; gap: 10px; }

.vl-results-count {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
}

.vl-clear-filters {
    font-size: var(--text-xs);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid var(--primary);
    border-radius: 999px;
}

.vl-clear-filters:hover { background: var(--primary); color: #fff; }

/* ── 4-column Grid ────────────────────────────────────────── */
.vl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ── Vehicle Card (AutoScout24 style) ─────────────────────── */
.vc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.16s ease, transform 0.12s ease;
}

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

/* Premium et Boost : la carte reste la même, c'est le badge qui les signale (comme les annonces) */

/* Card media */
.vc-media-link { display: block; text-decoration: none; }

.vc-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
    overflow: hidden;
}

.vc-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.32s ease;
}

.vc-card:hover .vc-img { transform: scale(1.04); }

.vc-img-empty {
    width: 100%; height: 100%;
    display: grid;
    place-items: center;
}

.vc-media-badges {
    position: absolute;
    top: 7px; left: 7px;
    display: flex;
    gap: 4px;
}

.vc-badge {
    font-size: var(--text-2xs);
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--badge-radius);
    letter-spacing: 0.03em;
}

.vc-badge-prem { background: var(--badge-premium-bg); color: var(--badge-premium-fg); }
.vc-badge-urg  { background: var(--badge-urgent-bg); color: var(--badge-urgent-fg); }
.vc-badge-new  { background: var(--badge-new-bg); color: var(--badge-new-fg); }

.vc-photo-count {
    position: absolute;
    bottom: 7px; right: 7px;
    font-size: var(--text-2xs);
    font-weight: 600;
    background: rgba(0,0,0,0.52);
    color: #fff;
    border-radius: 4px;
    padding: 2px 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(2px);
}

/* Card body */
.vc-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.vc-title-link { text-decoration: none; }

.vc-name {
    font-size: var(--text-sm);
    color: var(--secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-name strong { font-weight: 800; }

.vc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.vc-price {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.4px;
    line-height: 1;
}

.vc-currency {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gray-500);
}

.vc-neg-tag {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 3px;
    padding: 1px 5px;
}

.vc-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: var(--text-2xs);
    color: var(--gray-500);
    line-height: 1.3;
}

.vc-meta-sep { opacity: 0.4; }

.vc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 7px;
    border-top: 1px solid var(--gray-100);
}

.vc-location {
    font-size: var(--text-2xs);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-seller-type {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: 3px;
    padding: 1px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Empty state ──────────────────────────────────────────── */
.vl-empty {
    text-align: center;
    padding: 60px 20px;
    display: grid;
    gap: 14px;
    place-items: center;
}

.vl-empty-icon { font-size: 54px; }
.vl-empty h2   { margin: 0; font-size: var(--text-3xl); color: var(--secondary); }
.vl-empty p    { margin: 0; color: var(--muted); }

/* ── Pagination ───────────────────────────────────────────── */

/* ── Sell CTA banner ──────────────────────────────────────── */
.vl-sell-cta {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 100%);
    padding: 44px 0;
    margin-top: 40px;
}

.vl-sell-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.vl-sell-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}

.vl-sell-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.vl-sell-list li {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.vl-sell-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 9px;
    font-size: var(--text-md);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, transform 0.12s ease;
}

.vl-sell-btn:hover { background: var(--primary); transform: translateY(-1px); }

/* ============================================================
   VEHICLE CREATE FORM
   ============================================================ */
.vc-create-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.vc-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.vc-form-section-title {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vc-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vc-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.vc-form-submit {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.vc-form-note {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .vl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .vl-layout { grid-template-columns: 1fr; }
    .vl-filters { position: static; }
    .vl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .vl-search-row { flex-direction: column; gap: 0; }
    .vl-search-sep { display: none; }
    .vl-search-field { padding: 8px 14px; }
    .vl-search-btn { margin: 10px 14px 14px; }
    .vl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vc-form-grid-2, .vc-form-grid-3 { grid-template-columns: 1fr; }
    .vc-form-card { padding: 18px 16px; }
    .vl-sell-cta-inner { flex-direction: column; text-align: center; }
    .vl-sell-list { justify-content: center; }
}

@media (max-width: 420px) {
    .vl-grid { grid-template-columns: 1fr; }
    .vc-price { font-size: var(--text-lg); }
}

/* Condition badge (reused in show page) */
.vc-cond {
    position: absolute;
    bottom: 7px; right: 7px;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.vc-cond-new   { background: #dcfce7; color: #15803d; }
.vc-cond-exc   { background: #eff6ff; color: #1d4ed8; }
.vc-cond-good  { background: #fef9c3; color: #854d0e; }
.vc-cond-ok    { background: var(--gray-100); color: var(--gray-600); }
.vc-cond-parts { background: #fee2e2; color: #991b1b; }

/* ── Location de véhicules ── */
.vc-badge-rent { background: var(--badge-rent-bg); color: var(--badge-rent-fg); box-shadow: var(--badge-rent-ring); }
.vc-price-ask { font-size: var(--text-md); color: var(--secondary); }
.vc-offer-rent { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--gray-900); color: #fff; font-size: var(--text-xs); font-weight: 700; }
.vs-rent-note { margin: 10px 0 0; font-size: var(--text-sm); color: var(--muted); }
.vc-price-hint { margin: 4px 0 0; font-size: var(--text-xs); color: var(--muted); }
.vc-offer-choice > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.vc-offer-choice label { font-weight: 600; }
.home-vc-rent { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }

/* Onglets Acheter / Louer (au-dessus des types de véhicule) */
.vl-offer-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 10px; background: var(--gray-100); }
.vl-offer-tab { padding: 7px 14px; border-radius: 7px; font-size: var(--text-sm); font-weight: 700; color: var(--secondary); text-decoration: none; }
.vl-offer-tab.is-active { background: var(--secondary); color: #fff; }

/* En-tête du catalogue mixte : vente et location. */
.vl-catalog .vl-hero { min-height: 0; }
.vl-catalog .vl-hero-inner { padding-top: 26px; gap: 18px; }
.vl-catalog .vl-hero-title { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.5px; margin-bottom: 8px; }
.vl-catalog .vl-hero-sub { color: var(--gray-600); font-size: var(--text-base); line-height: 1.5; }
@media (max-width: 720px) {
    .vl-catalog .vl-hero-inner { padding-top: 20px; gap: 14px; }
}

/* Catalogue : trois cartes occupent la largeur, sans quatrième colonne vide. */
.vl-catalog .vl-results { min-width: 0; }
.vl-catalog .vl-results-head { flex-wrap: wrap; }
@media (min-width: 1101px) {
    .vl-catalog > .container { width: min(1320px, 96%); }
    .vl-catalog .vl-hero-inner { width: min(1320px, 96%); max-width: 1320px; padding-left: 0; padding-right: 0; }
    .vl-catalog .vl-results > .vl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Filtres : toujours ouverts sur ordinateur, bouton « Filtres » repliable sur téléphone */
.vl-filters-summary { display: none; }
@media (max-width: 860px) {
    .vl-filters-details { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
    .vl-filters-summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 14px 16px; cursor: pointer; font-size: var(--text-md); font-weight: 700; color: var(--gray-900); }
    .vl-filters-summary::-webkit-details-marker { display: none; }
    .vl-filters-summary::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
    .vl-filters-summary b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: var(--text-xs); }
    .vl-filters-summary span { margin-left: auto; font-size: var(--text-xs); font-weight: 400; color: var(--gray-500); }
    .vl-filters-summary::after { content: '▾'; font-size: var(--text-base); color: var(--gray-500); transition: transform .2s; }
    .vl-filters-details[open] > .vl-filters-summary::after { transform: rotate(180deg); }
    .vl-filters-details > .vl-filters { border: 0; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; box-shadow: none; }
}

/* ./pages/vehicle-show.css */
/* =========================
   VEHICLE SHOW PAGE
========================= */
.vs-page {
    padding: 16px 20px 60px;
}

/* Breadcrumb */
.vs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vs-breadcrumb a { color: var(--muted); text-decoration: none; }
.vs-breadcrumb a:hover { color: var(--primary); }

/* Layout */
.vs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 300px;
    gap: 22px;
    align-items: start;
}

.vs-main { display: grid; gap: 16px; }
.vs-side { display: grid; gap: 14px; position: sticky; top: 80px; }

/* Gallery */
.vs-gallery { display: grid; gap: 10px; }

.vs-gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-900);
    aspect-ratio: 16/10;
}

.vs-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vs-gallery-empty {
    aspect-ratio: 16/10;
    border-radius: 12px;
    background: var(--gray-200);
    display: grid;
    place-items: center;
    font-size: 70px;
    color: var(--gray-300);
}

/* Gallery arrows */
.vs-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    border: none;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 3;
}

.vs-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.vs-prev { left: 12px; }
.vs-next { right: 12px; }

.vs-counter {
    position: absolute;
    bottom: 12px; right: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

/* Stickers */
.vs-sticker-urgent, .vs-sticker-prem {
    position: absolute;
    top: 12px; left: 12px;
    font-size: var(--text-2xs);
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 3;
    letter-spacing: 0.03em;
}

.vs-sticker-urgent { background: var(--badge-urgent-bg); color: var(--badge-urgent-fg); top: 12px; }
.vs-sticker-prem   { background: var(--badge-premium-bg); color: var(--badge-premium-fg); top: 40px; }

/* Thumbnails */
.vs-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.vs-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 52px;
    border-radius: 7px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--gray-200);
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.vs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-thumb.is-active { border-color: var(--primary); }
.vs-thumb:hover { transform: scale(1.06); }

/* Title block */
.vs-title-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    display: grid;
    gap: 10px;
}

.vs-title-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vs-title {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
    flex: 1;
}

.vs-specs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--muted);
}

.vs-spec { font-weight: 500; }
.vs-spec-sep { opacity: 0.35; }

.vs-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vs-price {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.vs-neg {
    font-size: var(--text-xs);
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 4px;
    padding: 3px 10px;
}

.vs-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.vs-meta-item {
    font-size: var(--text-xs);
    color: var(--muted);
}

/* Cards */
.vs-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
}

.vs-section-title {
    margin: 0 0 14px;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.vs-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text, var(--gray-700));
    white-space: pre-line;
}

/* Specs table */
.vs-specs-table { display: grid; gap: 0; }

.vs-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--text-sm);
}

.vs-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.vs-spec-row:first-child { padding-top: 0; }
.vs-spec-row span { color: var(--muted); }
.vs-spec-row strong { color: var(--secondary); font-weight: 600; }

/* Sidebar — Price card */
.vs-price-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px 18px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 10px;
}

.vs-price-card-price {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

/* CTA buttons */
.vs-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 9px;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.12s ease;
}

.vs-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Même encadré de contact que la fiche annonce : WhatsApp plein, numéro en contour */
.vs-cta-phone {
    background: #fff;
    color: var(--gray-900);
    box-shadow: inset 0 0 0 1px var(--gray-300);
}
.vs-cta-phone:hover { background: var(--gray-50); opacity: 1; }

.vs-cta-whatsapp {
    background: #25d366;
    color: #fff;
}

.vs-security-note {
    display: flex;
    gap: 8px;
    font-size: var(--text-2xs);
    color: var(--muted);
    line-height: 1.45;
    background: var(--gray-50);
    border-radius: 7px;
    padding: 10px 12px;
    margin-top: 4px;
}

/* Seller card */
.vs-seller-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vs-seller-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: var(--text-md);
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.25);
}

.vs-seller-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--secondary);
}

.vs-seller-since {
    font-size: var(--text-2xs);
    color: var(--muted);
    margin-top: 2px;
}

/* Share */
.vs-share-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px 16px;
}

.vs-share-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vs-share-btns { display: flex; gap: 8px; }

.vs-share-btn {
    flex: 1;
    height: 34px;
    border-radius: 7px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-decoration: none;
    display: grid;
    place-items: center;
    transition: opacity 0.15s ease;
}

.vs-share-btn:hover { opacity: 0.82; }
/* Partage en teintes douces, comme sur la fiche annonce */
.vs-share-wa { background: #f0fdf4; color: #166534; box-shadow: inset 0 0 0 1px #86efac; }
.vs-share-fb { background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }

/* Related */
.vs-related {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.vs-related-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 20px;
}

/* Responsive */
@media (max-width: 860px) {
    .vs-layout { grid-template-columns: 1fr; }
    .vs-side { position: static; }
}

@media (max-width: 520px) {
    .vs-page { padding: 12px 12px 40px; }
    .vs-title { font-size: var(--text-xl); }
    .vs-price { font-size: var(--text-3xl); }
    .vs-arrow { width: 34px; height: 34px; font-size: var(--text-lg); }
}

/* ./pages/seller.css */
/* =========================
   SELLER / VENDEUR PAGE
========================= */
.sp-page {
    padding: 28px 20px 60px;
}

/* Header */
.sp-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.sp-avatar {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-300) 100%);
    color: #fff;
    font-size: var(--text-4xl);
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.28);
    letter-spacing: -1px;
}

.sp-info {
    flex: 1;
    display: grid;
    gap: 4px;
}

.sp-name {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.sp-pro-badge {
    display: inline-block;
    font-size: var(--text-2xs);
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border-radius: 999px;
    padding: 2px 10px;
    align-self: flex-start;
}

.sp-company {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--secondary);
}

.sp-location, .sp-since {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--muted);
}

.sp-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}

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

.sp-stat-val {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -1px;
    line-height: 1;
}

.sp-stat-label {
    font-size: var(--text-2xs);
    color: var(--muted);
    font-weight: 500;
    margin-top: 3px;
}

/* Section */
.sp-section { margin-bottom: 36px; }

.sp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sp-section-title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--secondary);
}

/* Grid */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

/* Card */
.sp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sp-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.sp-card-media {
    height: 150px;
    background: var(--gray-200);
    overflow: hidden;
}

.sp-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sp-card:hover .sp-card-media img { transform: scale(1.05); }

.sp-card-no-img {
    width: 100%; height: 100%;
    display: grid;
    place-items: center;
    font-size: var(--text-6xl);
    color: var(--gray-300);
}

.sp-card-body {
    padding: 11px 13px 13px;
    display: grid;
    gap: 5px;
    flex: 1;
}

.sp-card-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
}

.sp-card-price {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
}

.sp-card-meta {
    font-size: var(--text-2xs);
    color: var(--muted);
}

/* Empty */
.sp-empty {
    text-align: center;
    padding: 60px 20px;
}

.sp-empty h2 {
    font-size: var(--text-xl);
    color: var(--muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .sp-header { gap: 14px; }
    .sp-stats { gap: 16px; }
    .sp-stat-val { font-size: var(--text-3xl); }
    .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sp-card-media { height: 120px; }
}

/* ./pages/promotion.css */
/* =========================
   NOUVEAUTÉS (/nouveautes) — sélection à partager
========================= */
.np-page { padding-top: 28px; padding-bottom: 48px; }

.np-header h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 8px; }
.np-header p { color: var(--muted); max-width: 640px; }

.np-share {
    margin: 24px 0 32px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}
.np-share h2 { font-size: 1.15rem; margin-bottom: 4px; }
.np-share-help { font-size: .9rem; color: var(--muted); }
.np-share-text {
    width: 100%;
    margin: 6px 0 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: .9rem/1.5 inherit;
    color: var(--text);
    background: var(--bg-light);
    resize: vertical;
}
.np-share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.np-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 10px;
    font: 700 .95rem/1 inherit; text-decoration: none; cursor: pointer;
    color: #fff;
}
.np-share-wa { background: var(--whatsapp); }
.np-share-fb { background: #1877f2; }
.np-share-copy { background: var(--secondary); }
.np-share-btn:hover { filter: brightness(.94); color: #fff; }

.np-section { margin-bottom: 32px; }
.np-section h2 { font-size: 1.25rem; margin-bottom: 14px; }
.np-section h2 span { color: var(--muted); font-weight: 600; }

.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.np-card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-card); transition: box-shadow .15s, transform .15s;
}
.np-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.np-card-media { aspect-ratio: 3 / 2; background: var(--bg-light); display: grid; place-items: center; }
.np-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.np-card-placeholder { font-size: 2rem; opacity: .4; }
.np-card-body { padding: 12px 14px 14px; }
.np-card-kind { margin: 0 0 4px; font-size: .78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .3px; }
.np-card-title { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.np-card-place { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.np-card-price { margin: 0; font-weight: 800; color: var(--secondary); }

.np-empty { color: var(--muted); }
.np-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 20px; border-radius: 14px; background: var(--primary-light);
}
.np-cta p { margin: 0; max-width: 560px; }

@media (max-width: 560px) {
    .np-share { padding: 16px; }
    .np-share-btn { flex: 1 1 100%; }
    .np-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .np-card-body { padding: 10px; }
    .np-card-title { font-size: .9rem; }
}

/* =========================
   CONFIANCE (fiche annonce) — ce que GuineePlace a vérifié
========================= */
.sl-trust {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: var(--radius-card);
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}
.sl-trust.is-unverified { border-color: #fde68a; background: #fffbeb; }
.sl-trust-title { margin: 0 0 8px; font-weight: 700; color: var(--secondary); }
.sl-trust ul { margin: 0 0 8px; padding: 0; list-style: none; }
.sl-trust li { margin: 0 0 6px; font-size: .92rem; line-height: 1.45; }
.sl-trust li strong { color: #166534; }
.sl-trust-note { margin: 0; font-size: .85rem; color: var(--muted); }
.sl-trust-note a { color: inherit; text-decoration: underline; }

.badge-documents { background: #e0f2fe; color: #075985; }

.sl-share-fb { color: #1877f2; border-color: #bfdbfe; background: #eff6ff; }
.sl-share-fb:hover { background: #dbeafe; }

/* Lien « Imprimer une affiche » (annonceur, équipe) */
.sl-poster-link, .vs-poster-link {
    display: block;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed var(--primary);
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}
.sl-poster-link span, .vs-poster-link span { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); font-size: var(--text-xs); }
.sl-poster-link:hover, .vs-poster-link:hover { background: var(--primary-light); }

/* ./pages/newsletter.css */
/* Newsletter : formulaire (pied de page, page Nouveautés, page /newsletter) et pages de confirmation */
.nl-form { max-width: 460px; }
.nl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-row { display: flex; gap: 8px; }
.nl-input {
    flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px;
    border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; color: var(--gray-900); font: inherit; font-size: var(--text-md);
}
.nl-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.nl-submit {
    flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: var(--text-md);
}
.nl-submit:hover { background: var(--primary); }
.nl-note { margin: 8px 0 0 !important; font-size: var(--text-xs) !important; line-height: 1.5 !important; color: var(--gray-600); }
.nl-note a { color: inherit; text-decoration: underline; }

/* Pied de page sombre */
.footer-newsletter { margin-top: 22px; }
.footer-newsletter .footer-newsletter-title { margin: 0 0 10px; font-weight: 700; color: #fff; font-size: var(--text-base); }
.nl-form--dark .nl-input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.nl-form--dark .nl-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.nl-form--dark .nl-note { color: rgba(255, 255, 255, 0.6) !important; }

/* Page Nouveautés */
.np-newsletter { margin: 0 0 32px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.np-newsletter h2 { margin: 0 0 12px; font-size: var(--text-xl); }

/* Pages /newsletter, confirmation, désinscription */
.nl-page { padding: 48px 0 64px; }
.nl-page-wrap { max-width: 720px; }
.nl-page-wrap--narrow { max-width: 560px; text-align: center; }
.nl-page-wrap--narrow form { margin-top: 8px; }
.nl-eyebrow { margin: 0 0 10px; color: var(--primary); font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nl-page h1 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; color: var(--secondary); }
.nl-lead { margin: 0 0 20px; font-size: var(--text-lg); line-height: 1.6; color: var(--gray-600); }
.nl-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: var(--text-md); }
.nl-card { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(13, 31, 60, .06); }
.nl-more { margin: 20px 0 0; font-size: var(--text-base); color: var(--gray-600); }

@media (max-width: 480px) {
    .nl-row { flex-direction: column; }
    .nl-submit { width: 100%; }
}

/* Pied de page : la colonne de gauche garde la place du formulaire, les liens passent à la ligne à droite */
@media (min-width: 761px) {
    .footer-inner { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
    .footer-links { justify-content: flex-end; }
}
.nl-more a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Encadré « Recevez les nouvelles annonces similaires » des fiches, après « Afficher le numéro » ou WhatsApp */
.alert-offer { margin: 14px 0; padding: 16px; border: 1px solid var(--gray-200); border-radius: 14px; background: var(--gray-50); text-align: left; animation: alert-offer-in .3s ease; }
.alert-offer[hidden] { display: none; }
.alert-offer-title { margin: 0 0 4px !important; font-weight: 700; font-size: var(--text-md); color: var(--secondary); }
.alert-offer-label { margin: 0 0 12px !important; font-size: var(--text-base); color: var(--primary); font-weight: 600; }
.alert-offer .nl-row { flex-wrap: wrap; }
.alert-offer .nl-input { min-width: 0; flex: 1 1 auto; height: 44px; }
.alert-offer .nl-submit { flex: 1 0 auto; }
.alert-offer-note { margin: 8px 0 0 !important; font-size: var(--text-xs); color: var(--gray-600); line-height: 1.5; }
.alert-offer-status { margin: 10px 0 0 !important; font-size: var(--text-sm); line-height: 1.5; color: #166534; }
.alert-offer-status.is-error { color: #b42318; }
@keyframes alert-offer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .alert-offer { animation: none; } }
.alert-offer .nl-row[hidden] { display: none; }

/* ./pages/account-hub.css */
/* « Mon compte » (onglet Compte de l'application) : listes à la manière des réglages d'un téléphone */
.ah-page { background: var(--gray-100); min-height: 70vh; padding: 16px 0 32px; }
.ah-wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.ah-head { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--gray-200); }
.ah-avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: var(--text-3xl); font-weight: 800; }
.ah-who { min-width: 0; flex: 1; }
.ah-who h1 { margin: 0; font-size: var(--text-xl); line-height: 1.25; }
.ah-who p { margin: 2px 0 0; color: var(--gray-500); font-size: var(--text-base); overflow-wrap: anywhere; }
.ah-edit { flex: none; font-size: var(--text-base); font-weight: 700; color: var(--primary); text-decoration: none; padding: 8px 4px; }

.ah-publish { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; font-size: var(--text-lg); }
.ah-publish span { grid-row: span 2; font-size: var(--text-4xl); line-height: 1; }
.ah-publish small { font-weight: 500; font-size: var(--text-sm); opacity: .9; }

.ah-title { margin: 24px 4px 8px; font-size: var(--text-sm); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--gray-500); display: flex; align-items: center; gap: 8px; }
.ah-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ah-title-row form { margin: 0; }
.ah-link-btn { border: 0; background: none; color: var(--primary); font-weight: 700; font-size: var(--text-sm); padding: 6px 4px; cursor: pointer; }

.ah-list { background: #fff; border-radius: 14px; border: 1px solid var(--gray-200); overflow: hidden; }
.ah-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; color: var(--gray-900); text-decoration: none; border-top: 1px solid var(--gray-100); }
.ah-row:first-child { border-top: 0; }
.ah-row:active { background: var(--gray-50); }
.ah-icon { flex: none; width: 28px; text-align: center; font-size: var(--text-xl); }
.ah-label { flex: 1; min-width: 0; font-size: var(--text-lg); font-weight: 600; }
.ah-label small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--gray-500); margin-top: 1px; }
.ah-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: var(--text-xs); font-weight: 700; display: inline-grid; place-items: center; letter-spacing: 0; text-transform: none; }
.ah-row.is-admin .ah-badge { background: #fde8e8; color: #a32020; }
.ah-chevron { flex: none; color: var(--gray-400); font-size: var(--text-3xl); line-height: 1; }

.ah-notif { padding: 12px 14px 12px 28px; border-top: 1px solid var(--gray-100); position: relative; }
.ah-notif:first-child { border-top: 0; }
.ah-notif.is-unread::before { content: ''; position: absolute; left: 11px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.ah-notif strong { display: block; font-size: var(--text-md); }
.ah-notif p { margin: 3px 0; font-size: var(--text-base); color: var(--gray-600); overflow-wrap: anywhere; }
.ah-notif time { font-size: var(--text-xs); color: var(--gray-400); }
.ah-empty { margin: 0; padding: 16px; color: var(--gray-500); font-size: var(--text-base); }

.ah-logout { display: block; margin-top: 24px; padding: 15px; text-align: center; background: #fff; border: 1px solid #f1caca; border-radius: 14px; color: #b42318; font-weight: 700; text-decoration: none; }

/* « Mon profil » : paramètres en quatre parties (informations, sécurité, notifications, données) */
.profile-page { background: var(--gray-50); }
.profile-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.profile-back { display: inline-block; margin-bottom: 8px; font-size: var(--text-sm); color: var(--gray-600); text-decoration: none; }
.profile-wrap > h1 { margin: 0 0 12px; font-size: var(--text-4xl); }
.profile-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px 4px; }
.profile-nav::-webkit-scrollbar { display: none; }
.profile-nav a { flex: none; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--gray-900); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.profile-nav a:hover { border-color: var(--gray-900); }
.profile-section { margin-bottom: 16px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); scroll-margin-top: 90px; }
.profile-section h2 { margin: 0 0 16px; font-size: var(--text-xl); }
.profile-section h3 { margin: 0 0 10px; font-size: var(--text-lg); }
.profile-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.profile-photo { width: 96px; height: 96px; margin-bottom: 16px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }
.profile-note { margin: 8px 0 0; font-size: var(--text-sm); color: var(--gray-600); line-height: 1.5; }
.profile-ids { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; padding: 14px; background: var(--gray-50); border-radius: var(--radius-field); }
.profile-ids dt { font-size: var(--text-xs); color: var(--gray-600); }
.profile-ids dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.profile-activity { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.profile-activity-form { display: grid; gap: 8px; }
.profile-activity-form label { font-size: var(--text-sm); font-weight: 600; }
.profile-activity-form .btn { justify-self: start; margin-top: 4px; }
.profile-password .btn { margin-top: 12px; }
.profile-section .profile-google { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-channels { margin: 16px 0 0; padding-left: 18px; font-size: var(--text-sm); color: var(--gray-700); line-height: 1.6; }
.profile-channels li + li { margin-top: 6px; }
@media (max-width: 600px) {
    .profile-grid-2, .profile-ids { grid-template-columns: 1fr; }
    .profile-section { padding: 16px; }
}


/* =========================
   TYPOGRAPHIE GLOBALE
========================= */
h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--secondary);
}

p {
    margin: 0 0 10px;
}

/* =========================
   IMAGES
========================= */
img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* les images dans les sliders/galeries ne doivent pas avoir de border-radius global */
.listing-gallery-stage-image,
.listing-gallery-thumb-image,
.home-listing-slide img,
.listing-card-media-slide img,
.listing-card-media-track img,
.cg-slide img,
.cg-track img {
    border-radius: 0;
}

/* =========================
   SELECTION TEXTE
========================= */
::selection {
    background: var(--primary);
    color: #fff;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* =========================
   RESPONSIVE GLOBAL
========================= */
@media (max-width: 720px) {
    img {
        border-radius: 6px;
    }
}