/* =====================================================================
   1. REINITIALISATION ET STYLES GENERAUX
   ===================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
body { background-color: #f4f6f8; color: #333; }
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
}
.card-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.card-section h2 {
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    color: #0f172a;
}
/* =====================================================================
   2. EN-TÊTE, BANDE D'ACTIONS ET BOUTONS
   ===================================================================== */
/* EN-TÊTE : photo de la baie de Nador, tons clairs */
.main-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 216px;
    padding: 35px 0 32px;
    /* Si la photo manque, le dégradé ciel/mer prend le relais */
    background:
        url('images/nador-baie.jpg') center 35% / cover no-repeat,
        linear-gradient(180deg, #5cb6f2 0%, #2f86d6 55%, #0f5fb8 100%);
    border-bottom: 4px solid #f97316;
    box-shadow: 0 6px 24px rgba(15, 80, 160, 0.25);
}

/* Voile bleu léger : plus marqué à gauche pour lire le titre, ciel resté clair à droite */
.main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 85%);
}

.header-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Titre bleu marine + vert d'eau sur photo très claire, directement sur la photo (sans carte) */
.logo-container {
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    padding: 0;
    background: none;
    box-shadow: none;
}
.title-row { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }

.brand-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-family: 'Outfit', 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(40px, 6vw, 68px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: #052a5c;
    filter: drop-shadow(0 0 5px rgba(255,255,255,.95)) drop-shadow(0 0 12px rgba(255,255,255,.8));
}
/* Un seul mot, deux couleurs : « Nador » en bleu marine, « Pro » en vert d'eau */
.brand-logo { display: block; height: clamp(56px, 8vw, 84px); width: auto; flex: none; }
.brand-primary { font-weight: 800; color: #052a5c; }
.brand-accent {
    font-weight: 800;
    color: #0a5c52;
    background: linear-gradient(90deg, #0e6b3f 0%, #0a5c52 55%, #0a4f66 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    max-width: 560px;
    margin: 8px 0 0;
    font-family: 'Outfit', 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 600;
    line-height: 1.3;
    color: #f4fbff;
    text-shadow: 0 1px 2px rgba(4,32,56,.85), 0 0 8px rgba(4,32,56,.65), 0 0 18px rgba(4,32,56,.45);
}

@keyframes onde {
    0% { transform: scale(.8); opacity: .9; }
    100% { transform: scale(2.1); opacity: 0; }
}
.mic-icon-title {
    flex-shrink: 0;
    vertical-align: middle;
    width: clamp(34px, 4vw, 48px);
    height: auto;
    margin-left: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.mic-icon-title .mic-ring { transform-origin: 32px 28px; animation: onde 2.2s ease-out infinite; opacity: 0; }
.mic-icon-title .mic-ring.r2 { animation-delay: 1.1s; }

/* BANDE LANGUES (à gauche) / ACTIONS (à droite) */
.nouvelle-bande {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 6px 25px;
    background: #fff;
    border-bottom: 1px solid #dbe7f5;
    box-shadow: 0 2px 10px rgba(30, 90, 170, 0.08);
}
.lang-bar { display: flex; align-items: center; gap: 6px; }
.lang-bar span { font-size: 18px; margin-right: 4px; }
.lang-bar button {
    padding: 6px 8px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.lang-bar button:hover { color: #fff; background: #2563eb; }
.actions-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.visiteurs { padding: 8px 12px; border-radius: 6px; background: #eaf3ff; color: #1e3a5f; font-size: 14px; font-weight: 600; }
#label-user-connecte { color: #1e3a5f; font-size: 14px; font-weight: 600; }
#btn-demander, #btn-installer {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
#btn-demander:hover, #btn-installer:hover { background: #ea580c; }
#btn-installer[hidden] { display: none; }
/* Boutons d'action */
#btn-login-user {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
#btn-signup-user {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
#btn-ouvrir-depot {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
#btn-logout {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
#btn-contact {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
#btn-contact:hover { background: #0284c7; }
#btn-admin-panel {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.contact-actions .btn { text-align: center; }
/* =====================================================================
   3. BANDE FLASH ROULANTE
   ===================================================================== */
.flash-section {
    display: flex;
    align-items: center;
    background: #b91c1c;
    color: white;
    overflow: hidden;
    height: 52px;
}
.flash-label {
    background: #7f1d1d;
    padding: 0 15px;
    font-weight: bold;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
}
.marquee-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    direction: ltr;
}
.marquee-content {
    display: flex;
    animation: defilement-boucle 60s linear infinite;
    align-items: center;
    width: max-content;
    /* la durée réelle est calculée par script.js */: ;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1.2;
    unicode-bidi: plaintext;
}
.marquee-unite {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.marquee-item.flash-prioritaire .flash-texte { font-weight: 700; }
.flash-texte { text-decoration: underline; display: block; }
.flash-thumb {
    height: 40px;
    /* tient dans la bande de 52 px */
    width: auto;
    max-width: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-inline-end: 10px;
    border: 1px solid rgba(255,255,255,.5);
    display: block;
}
.flash-act {
    margin-inline-start: 6px;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    background: rgba(255,255,255,.92);
    font-size: 13px;
}
.flash-act:hover { background: #fde68a; }
#btn-gerer-flash {
    flex-shrink: 0;
    margin: 0 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #f59e0b;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
#btn-gerer-flash:hover { background: #fbbf24; }
/* La bande s'arrête quand la souris (ou le doigt) est sur une note */
.marquee-content:hover, .marquee-content:active { animation-play-state: paused; }
.marquee-item:hover { color: #fde68a; }
/* Animations Défilement */
@keyframes defilement {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
@keyframes defilement-boucle {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-content { animation-duration: 240s !important; } }
/* Gestion des Flashs (admin) */
.flash-admin-ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}
.flash-admin-ligne span { flex: 1; word-break: break-word; }
.flash-admin-ligne.en-edition { background: #fef3c7; }
.flash-admin-ligne button {
    padding: 4px 9px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: #e2e8f0;
}
/* =====================================================================
   4. NAVIGATION, CATEGORIES ET RECHERCHE
   ===================================================================== */
/* BANDE DES CATÉGORIES : claire, une seule couleur (cadre + flèche) */
.categories-bar {
    padding: 14px 0;
    background: linear-gradient(180deg, #f4f9ff 0%, #e6f1fd 100%);
    border-bottom: 3px solid #2563eb;
    box-shadow: 0 4px 12px rgba(30, 90, 170, 0.12);
}
.categories-container {
    display: flex;
    flex-wrap: nowrap;              /* une seule ligne ; défilement horizontal sur téléphone */
    justify-content: flex-start;
    align-items: center;
    gap: 0.7em;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    font-size: clamp(12px, 1.05vw, 15px);
}
.categories-container > :first-child { margin-inline-start: auto; }
.categories-container > :last-child { margin-inline-end: auto; }

.categorie-btn {
    --c: #2563eb;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.55em 0.55em 0.55em 1em;
    border: 2px solid var(--c);
    border-radius: 999px;
    background: #fff;
    color: #0f2a4a;
    font-size: 1em;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 70, 140, 0.15);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.categorie-btn:hover {
    background: var(--c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(20, 70, 140, 0.28);
}
.categorie-btn:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.categorie-btn.active, .categorie-btn.active:hover {
    background: var(--c);
    color: #fff;
    box-shadow: 0 6px 16px rgba(20, 70, 140, 0.35);
}

/* Flèche des sous-catégories */
.cat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em;
    height: 1.7em;
    margin-inline-start: 0.5em;
    border-radius: 50%;
    background: #94a3b8;
    color: #fff;
    font-size: 1em;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: background .2s ease, transform .2s ease;
}
.cat-arrow:hover { background: #64748b; color: #fff; transform: scale(1.12); }
.cat-arrow.ouvert { background: #64748b; color: #fff; transform: rotate(180deg); }
/* Sur un bouton coloré (survol / actif), la flèche devient blanche */
.categorie-btn:hover .cat-arrow, .categorie-btn.active .cat-arrow { background: #fff; color: #64748b; }
.categorie-btn:hover .cat-arrow:hover, .categorie-btn.active .cat-arrow:hover { background: #e2e8f0; color: #475569; }

/* Menu des sous-catégories */
.souscat-menu {
    position: fixed;
    z-index: 1000;
    min-width: 180px;
    max-width: 240px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px;
    background: #f8fafc;
    border: 2px solid #2563eb;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.souscat-menu button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: none;
    color: #0f2a4a;
    font-size: 13px;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}
.souscat-menu button:hover { background: #e0efff; }

/* Rechercher / Actualiser */
.btn-rechercher-cat {
    flex-shrink: 0;
    padding: 0.6em 1.1em;
    border: 2px solid #f97316;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.4);
    transition: all 0.2s ease;
}
.btn-rechercher-cat:hover, .btn-rechercher-cat.ouvert { background: #ea580c; border-color: #ea580c; }
.btn-rechercher-cat:focus-visible, .btn-actualiser:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.btn-actualiser {
    flex-shrink: 0;
    width: 2.6em;
    height: 2.6em;
    padding: 0;
    border: 2px solid #2563eb;
    border-radius: 50%;
    background: #fff;
    color: #2563eb;
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 70, 140, 0.15);
    transition: background 0.2s ease;
}
.btn-actualiser:hover { background: #2563eb; }
.souscat-menu[hidden] { display: none; }
.souscat-menu button.actif { background: #fef3c7; font-weight: 700; }
.filtre-actif {
    margin: 4px 0 14px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
}
.filtre-actif[hidden] { display: none; }
.filtre-actif button {
    margin-inline-start: 8px;
    border: none;
    background: #cbd5e1;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.btn-actualiser.tourne { animation: tourner-icone 0.45s linear; }
@keyframes tourner-icone {
    to { transform: rotate(360deg); }
}
/* Barre de recherche */
.recherche-bar {
    background: #f1f5f9;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}
.recherche-bar[hidden] { display: none; }
.recherche-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
#champ-recherche {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
    box-sizing: border-box;
}
#champ-recherche:focus { border-color: #2563eb; }
#btn-effacer-recherche {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
/* Arabe (droite → gauche) */
[dir="rtl"] #champ-recherche { padding: 12px 16px 12px 40px; }
[dir="rtl"] #btn-effacer-recherche { right: auto; left: 12px; }
/* =====================================================================
   5. GRILLE ET CARTES D'ANNONCES
   ===================================================================== */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.carte-annonce {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.carte-annonce.premium {
    border: 2px solid #f59e0b;
    background: #fffbeb;
    box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.badge-premium {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}
.titre-premium {
    grid-column: 1 / -1;
    font-weight: bold;
    color: #b45309;
}
/* CARROUSEL DANS LA CARTE */
.carrousel-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carrousel-container img { cursor: pointer; }
.carrousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}
.nav-arrow.left { left: 5px; }
.nav-arrow.right { right: 5px; }
/* CORPS DE L'ANNONCE */
.annonce-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.annonce-prix {
    font-size: 18px;
    color: #16a34a;
    font-weight: bold;
    margin: 5px 0;
}
.annonce-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.annonce-cat {
    font-size: 12px;
    color: #2563eb;
    font-weight: bold;
}
.annonce-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.lien-voir-plus {
    order: 99;
    /* toujours après les boutons admin / modifier */
    margin-inline-start: auto;
    /* poussé tout à droite */
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
}
.lien-voir-plus:hover { color: #1d4ed8; text-decoration: underline; }
.lien-voir-plus:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.btn-tel {
    background: #0ea5e9;
    text-decoration: none;
    display: inline-block;
    margin: 10px 8px 0 0;
}
.btn-wa {
    background: #16a34a;
    text-decoration: none;
    display: inline-block;
    margin: 10px 8px 0 0;
}
.msg-vide {
    grid-column: 1 / -1;
    padding: 30px 10px;
    text-align: center;
    color: #64748b;
}
/* =====================================================================
   6. PAGE DE DÉTAIL PLEIN ÉCRAN
   ===================================================================== */
body.mode-detail .flash-section, body.mode-detail .categories-bar, body.mode-detail .recherche-bar, body.mode-detail main.container { display: none; }
.page-detail[hidden] { display: none; }
.page-detail { background: #f4f6f8; min-height: 60vh; }
.detail-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 2px solid #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.detail-topbar-titre {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: #1f2937;
}
.detail-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #1f2937;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.detail-btn:hover { background: #2563eb; color: #fff; }
.detail-btn:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
[dir="rtl"] .detail-btn-retour svg { transform: scaleX(-1); }
.detail-page-content {
    max-width: 1000px;
    margin: 18px auto 40px;
    padding: 0 15px;
}
.detail-article {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.detail-article h2 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 8px;
    word-break: break-word;
}
.detail-prix {
    color: #16a34a;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    color: #334155;
    margin-bottom: 16px;
}
.detail-desc {
    line-height: 1.75;
    font-size: 16px;
    color: #1f2937;
    word-break: break-word;
}
.detail-sous-titre { margin: 6px 0 10px; }
.detail-sous-titre small { font-weight: normal; color: #64748b; }
.detail-contact { margin-top: 16px; }
.detail-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
.detail-galerie img, .detail-galerie video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    cursor: zoom-in;
}
.detail-galerie video { cursor: default; }
.btn-retour { margin-bottom: 12px; }
.galerie-img { transition: opacity 0.2s ease, transform 0.2s ease; }
.galerie-img:hover { opacity: 0.85; transform: scale(1.03); }
.detail-localisation a { color: #2563eb; font-weight: 600; }
/* =====================================================================
   7. FORMULAIRES, BOUTONS ET INTERACTIONS
   ===================================================================== */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}
.btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn:hover { background: #1d4ed8; }
.btn-secondary { background: #64748b; }
.drop-zone {
    border: 2px dashed #cbd5e1;
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    background: #f8fafc;
}
/* FORMULAIRE DE DÉPÔT EN 2 ÉTAPES */
.etape[hidden] { display: none; }
.etape-indic {
    color: #64748b;
    font-size: 13px;
    font-weight: bold;
    margin: 4px 0 10px;
}
.petit-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.info-compte {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}
.etape-actions { display: flex; gap: 10px; }
.etape-actions .btn { flex: 1; }
.btn-publier { background: #16a34a; }
#form-deposer textarea { resize: vertical; }
#form-deposer .invalide { outline: 2px solid #ef4444; }
/* =====================================================================
   8. MODALES ET ZOOM
   ===================================================================== */
dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    max-width: 900px;
    width: 95%;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
dialog::backdrop { background: rgba(0,0,0,0.6); }
.modal-content {
    padding: 20px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
.preview-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.preview-grid video, .preview-grid img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
/* AGRANDISSEMENT D'UNE PHOTO (ZOOM) */
#modal-zoom {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
}
#modal-zoom[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}
#modal-zoom::backdrop { background: rgba(0, 0, 0, 0.92); }
#zoom-contenu img, #zoom-contenu video {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
}
.zoom-close, .zoom-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.zoom-close:hover, .zoom-nav:hover { background: rgba(255, 255, 255, 0.35); }
.zoom-close { top: 14px; right: 18px; }
.zoom-nav { top: 50%; transform: translateY(-50%); }
.zoom-prev { left: 14px; }
.zoom-next { right: 14px; }
#zoom-compteur {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}
/* =====================================================================
   9. INFOS PRATIQUES ET LOCALISATION
   ===================================================================== */
/* INFOS PRATIQUES */
.infos-pratiques[hidden] { display: none; }
.infos-pratiques { margin-bottom: 22px; }
.infos-titre { margin-bottom: 12px; font-size: 20px; }
.infos-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.info-carte {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}
.info-carte h3 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 10px;
}
.info-attente { color: #64748b; font-size: 14px; }
.info-alerte {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
}
.info-source {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}
.info-texte {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 14px;
    color: #1f2937;
    word-break: break-word;
}
.priere-liste, .meteo-jours, .numeros-liste { list-style: none; }
.priere-liste li, .meteo-jours li, .numeros-liste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
}
.priere-liste li.prochaine {
    background: #fef3c7;
    border-radius: 6px;
    font-weight: 700;
}
.priere-liste em {
    font-size: 12px;
    font-style: normal;
    color: #b45309;
}
.meteo-actuelle {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.meteo-icone { font-size: 46px; line-height: 1; }
.meteo-temp {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
}
.numeros-liste .btn-tel { margin: 0; padding: 6px 14px; }
/* BOUTONS DE LOCALISATION */
.loc-liens {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.btn-loc {
    display: inline-block;
    background: #0ea5e9;
    color: #fff;
    text-decoration: none;
}
.btn-loc:hover { background: #0284c7; }
.loc-outils {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0;
}
.btn-loc-outil {
    background: #0ea5e9;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    padding: 8px 12px;
}
.btn-loc-outil:hover { background: #0284c7; }
/* =====================================================================
   10. TRADUCTION AUTOMATIQUE ET DIVERS
   ===================================================================== */
.msg-traduction {
    margin: 8px 0 14px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
}
.msg-traduction.alerte {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}
.msg-traduction[hidden] { display: none; }
.note-trad {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}
.note-trad[hidden] { display: none; }
/* =====================================================================
   11. ADAPTATIONS MOBILES (MEDIA QUERIES)
   ===================================================================== */

/* =====================================================================
   12. EXTENSIONS : filtres, demander un service, toast, contact, pied de page
   ===================================================================== */
.filtres-dyn:empty { display: none; }
.fd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 14px;
}
.fd summary { cursor: pointer; font-weight: 700; }
.fd-grille, .dyn-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}
.plage { display: flex; gap: 6px; }
.plage input { width: 100%; min-width: 0; }
.recherche-avancee {
    max-width: 1100px;
    margin: 8px auto 0;
    padding: 0 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
.recherche-avancee select, .recherche-avancee input {
    padding: 9px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}
.dm-exemples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.puce {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
}
#toast {
    position: fixed;
    inset-inline: 12px;
    bottom: 18px;
    margin: auto;
    max-width: 480px;
    background: #0f172a;
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    text-align: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
#toast.on { opacity: 1; }
.btn-camera {
    margin-top: 8px;
    background: #0e7490;
    width: 100%;
}
.det-extra {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: grid;
    gap: 4px;
}
.contact-cache { margin-top: 16px; }
.pied {
    text-align: center;
    padding: 22px 12px 30px;
    color: #64748b;
    font-size: 14px;
}
.pied a { color: #0e7490; }

/* =====================================================================
   13. ADAPTATIONS MOBILES ET ACCESSIBILITÉ
   ===================================================================== */
@media (max-width: 768px) {
    .main-header { min-height: 168px; padding: 22px 0 21px; background-position: 60% 35%; }
    .main-header::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.10) 100%); }
    .header-container { flex-direction: column; align-items: flex-start; }
    .brand-title { font-size: 38px; }
    .brand-tagline { font-size: 18px; }
    .nouvelle-bande { flex-direction: column; gap: 8px; padding: 10px; }
    .lang-bar { justify-content: center; }
    .actions-bar { flex-wrap: wrap; justify-content: center; }
    .categories-container { font-size: 13px; }
    .detail-article { padding: 14px; }
    .detail-article h2 { font-size: 22px; }
    .detail-galerie { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .detail-galerie img, .detail-galerie video { height: 115px; }
}

@media (prefers-reduced-motion: reduce) {
    .categorie-btn, .cat-arrow { transition: none; }
}

/* =====================================================================
   14. AFFICHAGE TÉLÉPHONE (écrans étroits) — même site, mise en page compacte
   ===================================================================== */
@media (max-width: 768px) {
    .main-header { min-height: 120px; padding: calc(env(safe-area-inset-top, 0px) + 24px) 0 14px; background-position: 60% 40%; }
    .header-container { padding: 0 14px; gap: 6px; }
    .brand-title { font-size: 30px; }
    .brand-logo { height: 48px; }
    .brand-tagline { max-width: none; margin-top: 6px; font-size: 14px; line-height: 1.25; }
    .nouvelle-bande { padding: 8px 10px; gap: 6px; }
    .lang-bar { flex-wrap: wrap; justify-content: center; gap: 2px; }
    .lang-bar button { padding: 5px 8px; font-size: 12px; }
    .actions-bar { width: 100%; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .actions-bar button, #btn-login-user, #btn-ouvrir-depot, #btn-demander, #btn-installer, #btn-contact, #btn-admin-panel, #btn-logout { padding: 6px 10px; font-size: 12px; }
    .visiteurs { padding: 5px 8px; font-size: 12px; }
    #label-user-connecte { font-size: 12px; }
}
@media (max-width: 480px) {
    .brand-title { font-size: 26px; }
    .brand-tagline { display: none; }
    .actions-bar button, #btn-login-user, #btn-ouvrir-depot, #btn-demander, #btn-installer, #btn-contact { flex: 1 1 44%; }
}

/* =====================================================================
   15. CATÉGORIES : une seule ligne compacte, défilement horizontal pour le reste ; sous-catégories en page séparée
   ===================================================================== */
.categories-bar { padding: 8px 0; }
.categories-container { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; gap: 0.4em; padding: 3px 8px; font-size: clamp(11px, 0.95vw, 14px); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.categories-container::-webkit-scrollbar { display: none; }
.categorie-btn { padding: 0.4em 0.4em 0.4em 0.8em; border-width: 1.5px; }
.btn-rechercher-cat, .btn-actualiser { flex-shrink: 0; }
@media (max-width: 768px) {
    .categories-container { font-size: 11.5px; gap: 5px; }
    .categorie-btn { padding: 0.35em 0.35em 0.35em 0.7em; }
}
/* Fond sombre derrière le menu des sous-catégories ; la page principale ne bouge plus tant qu'il est ouvert */
.souscat-fond { position: fixed; inset: 0; z-index: 999; background: rgba(15, 23, 42, 0.35); touch-action: none; }
.souscat-fond[hidden] { display: none; }
.souscat-menu { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
html.souscat-ouvert, html.souscat-ouvert body { overflow: hidden; }

/* =====================================================================
   16. LANGUES (🌐 + Fr/En/Ar) ET BOUTONS D'ACTION DANS LEUR NOUVEL ORDRE
   ===================================================================== */
.lang-bar { position: relative; display: flex; align-items: center; gap: 6px; }
.lang-bar .lang-globe { width: 34px; height: 34px; padding: 0; border: none; border-radius: 50%; background: #eaf3ff; font-size: 18px; line-height: 1; cursor: pointer; }
.lang-bar .lang-globe:hover { background: #2563eb; }
.lang-abbr { display: flex; flex-direction: column; gap: 1px; }
.lang-bar .lang-abbr button { padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.lang-bar button.actif { background: #2563eb; color: #fff; }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 1100; min-width: 140px; padding: 4px; background: #fff; border: 2px solid #2563eb; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.lang-menu[hidden] { display: none; }
.lang-bar .lang-menu button { display: block; width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 14px; text-align: start; }
.actions-bar { flex-wrap: wrap; }
#btn-rechercher { padding: 8px 14px; border: none; border-radius: 6px; background: #0e7490; color: #fff; font-weight: 600; cursor: pointer; }
#btn-rechercher:hover, #btn-rechercher.ouvert { background: #0b5f76; }
#btn-contact { padding: 8px 14px; border: none; border-radius: 6px; background: #475569; color: #fff; font-weight: 600; cursor: pointer; }
#btn-contact:hover { background: #334155; }
@media (max-width: 768px) {
    .nouvelle-bande { flex-direction: row; align-items: flex-start; gap: 8px; padding: 8px; }
    .lang-bar { flex: 0 0 auto; }
    .actions-bar { flex: 1 1 auto; min-width: 0; width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; justify-content: stretch; }
    .actions-bar button, .actions-bar .visiteurs { min-height: 34px; padding: 4px 3px; font-size: 10.5px; line-height: 1.15; white-space: normal; text-align: center; display: flex; align-items: center; justify-content: center; }
    #label-user-connecte { grid-column: 1 / -1; text-align: center; font-size: 11px; }
    #label-user-connecte:empty { display: none; }
}

/* =====================================================================
   17. MENU ☰ ET BANDE SUR UNE SEULE LIGNE (téléphone, tablette, ordinateur)
   ===================================================================== */
.nouvelle-bande { flex-wrap: nowrap; align-items: center; gap: 8px; }
.bande-gauche { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.menu-site-wrap { position: relative; }
.btn-menu { width: 38px; height: 38px; padding: 0; border: none; border-radius: 8px; background: #0e7490; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-menu:hover, .btn-menu[aria-expanded="true"] { background: #0b5f76; }
.btn-menu:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.menu-site { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 1100; width: 270px; max-width: calc(100vw - 16px); padding: 6px; background: #fff; border: 1px solid #cfe0f3; border-radius: 12px; box-shadow: 0 10px 26px rgba(15, 60, 120, 0.22); }
.menu-site[hidden] { display: none; }
#menu-site .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 11px 12px; border: none; border-radius: 8px; background: transparent; color: #1e3a5f; font: inherit; font-size: 15px; font-weight: 600; text-align: start; cursor: pointer; }
#menu-site .menu-item[hidden] { display: none; }
#menu-site .menu-item:hover, #menu-site .menu-item:focus-visible { background: #eaf3ff; color: #0b3d91; }

/* Actions : une seule ligne ; si l'écran est trop étroit, la ligne défile horizontalement (menu et langues restent fixes) */
.nouvelle-bande .actions-bar { display: flex; flex: 1 1 auto; min-width: 0; width: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; }
.nouvelle-bande .actions-bar::-webkit-scrollbar { display: none; }
.nouvelle-bande .actions-bar::before { content: ""; margin-inline-start: auto; }
.nouvelle-bande .actions-bar > * { flex: 0 0 auto !important; white-space: nowrap !important; }
#label-user-connecte:empty { display: none; }
@media (max-width: 768px) {
    .nouvelle-bande { flex-direction: row; align-items: center; padding: 6px 8px; gap: 6px; }
    .nouvelle-bande .actions-bar { gap: 5px; }
    .nouvelle-bande .actions-bar > button, .nouvelle-bande .actions-bar > .visiteurs { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 10px; font-size: 12px; line-height: 1.15; }
    .btn-menu { width: 34px; height: 34px; }
}

/* Pages « Qui sommes-nous » et « Confidentialité et conditions » */
#modal-apropos, #modal-legal { max-width: 640px; }
.texte-long h3 { margin: 0 0 6px; padding-inline-end: 30px; color: #0e5a74; font-size: 20px; line-height: 1.3; }
.texte-long h4 { margin: 18px 0 4px; color: #0e5a74; font-size: 16px; }
.texte-long p { margin: 0; color: #334155; font-size: 15px; line-height: 1.65; }
.texte-long p.maj { margin-top: 18px; color: #64748b; font-size: 13px; }

/* =====================================================================
   18. BANDE FLASH : plus haute, collée (tangente) aux boutons du dessus et du dessous
   ===================================================================== */
.nouvelle-bande { align-items: flex-end; padding-bottom: 0; border-bottom: 0; min-height: 0; }
.bande-gauche { align-items: flex-end; }
.nouvelle-bande .actions-bar { align-items: flex-end; padding: 0; }
.btn-menu { width: 44px; height: 44px; }
.nouvelle-bande .actions-bar > button, .nouvelle-bande .actions-bar > .visiteurs { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
#label-user-connecte { align-self: center; }
.categories-bar { padding-top: 0; }
.categories-container { padding-top: 0; }
.flash-section { height: 70px; }
.flash-thumb { height: 50px; max-width: 70px; }

/* Zone du menu ☰ sous « Toutes » (téléphone seulement) */
.zone-menu-tel { display: none; }

/* =====================================================================
   19. TÉLÉPHONE (≤ 600 px) : en-tête complet, boutons sur une seule ligne, annonces compactes
   L'ordinateur et la tablette gardent l'affichage précédent.
   ===================================================================== */
@media (max-width: 600px) {

    /* ---- En-tête : logo + titre + phrase visible (très claire) ---- */
    .main-header { min-height: 0; padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 12px; }
    .header-container { padding: 0 12px; gap: 4px; }
    .title-row { gap: 8px; flex-wrap: nowrap; }
    .brand-logo { height: 44px; }
    .brand-title { font-size: clamp(26px, 8.4vw, 34px); }
    .brand-tagline {
        display: block !important;
        max-width: none;
        margin: 6px 0 0;
        font-size: clamp(11px, 3.3vw, 14px);
        font-weight: 600;
        line-height: 1.25;
        color: #f4fbff;
        text-shadow: 0 1px 2px rgba(4,32,56,.95), 0 0 6px rgba(4,32,56,.8), 0 0 14px rgba(4,32,56,.6);
    }

    /* ---- Bande au-dessus du Flash : 🌐 + langue active, puis les 5 boutons sur une ligne ---- */
    .nouvelle-bande { padding: 4px 5px 0; gap: 4px; align-items: stretch; }
    .bande-gauche { align-self: center; align-items: center; gap: 0; }
    .lang-bar { flex-direction: column-reverse; align-items: center; justify-content: center; gap: 2px; }
    .lang-bar .lang-globe { width: 22px; height: 22px; font-size: 13px; }
    .lang-abbr { flex-direction: row; }
    .lang-bar .lang-abbr button { display: none; }                     /* Fr / En / Ar masqués… */
    .lang-bar .lang-abbr button.actif {                                /* …sauf la langue active, au-dessus du 🌐 */
        display: inline-flex; align-items: center; justify-content: center;
        height: 12px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 700; line-height: 1;
    }
    .lang-menu { top: calc(100% + 8px); }

    .nouvelle-bande .actions-bar { flex: 1 1 auto; min-width: 0; gap: 3px; align-self: stretch; align-items: stretch; justify-content: stretch; }
    .nouvelle-bande .actions-bar .ico { display: none; }                /* symboles et emojis masqués sur téléphone */
    .nouvelle-bande .actions-bar::before { display: none; }
    .nouvelle-bande .actions-bar > button,
    .nouvelle-bande .actions-bar > .visiteurs {
        flex: 1 0 auto !important;
        width: min-content;                    /* largeur du mot le plus long : les autres mots passent dessous */
        white-space: normal !important;
        min-height: 28px;
        padding: 2px 3px;
        font-size: clamp(8.5px, 2.55vw, 10.5px);
        line-height: 1.1;
        text-align: center;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nouvelle-bande .actions-bar > .visiteurs { flex-direction: column; }
    #label-user-connecte { display: none !important; }

    /* ---- Menu ☰ : juste en dessous de « Toutes » ---- */
    .zone-menu-tel { display: block; padding: 5px 6px 0; }
    .zone-menu-tel .btn-menu { width: 38px; height: 34px; }

    /* ---- Bande Flash ---- */
    .flash-label { padding: 0 8px; font-size: 13px; }

    /* ---- Bande sous le Flash : les catégories sur une seule ligne ---- */
    .categories-bar { padding: 4px 0 6px; }
    .categories-container {
        font-size: clamp(8.5px, 2.65vw, 11px);
        gap: 0.35em;
        padding: 2px 6px;
        justify-content: stretch;
    }
    .categories-container > :first-child { margin-inline-start: 0; }
    .categories-container > :last-child { margin-inline-end: 0; }
    .categorie-btn {
        position: relative;
        flex: 1 0 auto;
        width: min-content;
        flex-direction: column;
        justify-content: center;
        padding: 0.4em 0.3em;
        border-width: 1.5px;
        border-radius: 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        font-size: 1em;
        box-shadow: 0 1px 3px rgba(20, 70, 140, 0.18);
    }
    .categorie-btn .cat-arrow {
        position: absolute; top: -5px; inset-inline-end: -3px;
        width: 15px; height: 15px; margin: 0; font-size: 8px;
    }
    .btn-actualiser { width: 2.4em; height: 2.4em; font-size: 1em; align-self: center; }

    /* ---- Annonces : cartes compactes (photo à gauche, texte à droite) ---- */
    .container { padding-left: 8px; padding-right: 8px; }
    .card-section { padding: 10px 8px; }
    .card-section h2 { font-size: 18px; margin: 0 0 8px; }
    .annonces-grid { grid-template-columns: 1fr; gap: 8px; }
    .carte-annonce { flex-direction: row; align-items: stretch; border-radius: 10px; min-height: 104px; }
    .carte-annonce .carrousel-container {
        flex: 0 0 34%; width: 34%; max-width: 150px; height: auto; min-height: 104px;
    }
    .carte-annonce .carrousel-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .carte-annonce .nav-arrow { width: 22px; height: 22px; padding: 0; font-size: 12px; line-height: 1; }
    .carte-annonce .nav-arrow.left { left: 3px; }
    .carte-annonce .nav-arrow.right { right: 3px; }
    .carte-annonce .badge-premium { top: 4px; left: 4px; padding: 1px 5px; font-size: 9.5px; }
    .carte-annonce .annonce-body { padding: 7px 9px; min-width: 0; }
    .carte-annonce .annonce-cat { font-size: 11px; }
    .carte-annonce h3 {
        margin: 2px 0; font-size: 14.5px; line-height: 1.25;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .carte-annonce .annonce-prix { margin: 1px 0; font-size: 14.5px; }
    .carte-annonce .annonce-meta { margin-bottom: 3px; font-size: 11.5px; gap: 8px; }
    .carte-annonce .annonce-body > p {
        margin: 0 0 4px !important; font-size: 12.5px !important; line-height: 1.3;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .carte-annonce .annonce-actions { gap: 4px; }
    .carte-annonce .annonce-actions .btn { padding: 3px 8px; font-size: 12px; }
    .carte-annonce .lien-voir-plus { padding: 0; font-size: 13px; }
}

/* ---- Flèches très visibles : sous-catégories et carrousel photos ---- */
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow {
    background: #ea580c; color: #fff; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); font-weight: 900;
}
.categorie-btn.active .cat-arrow, .categorie-btn.active:hover .cat-arrow { background: #fff; color: #c2410c; border-color: #c2410c; }
.categorie-btn .cat-arrow:hover { background: #c2410c; color: #fff; }
.categorie-btn .cat-arrow.ouvert { background: #c2410c; color: #fff; }
.nav-arrow { background: rgba(15, 23, 42, 0.8); color: #fff; border: 2px solid #fff; font-weight: 900; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
@media (max-width: 600px) {
    .categorie-btn .cat-arrow { width: 17px; height: 17px; font-size: 10px; top: -6px; }
}

/* =====================================================================
   20. CATÉGORIES : sans symboles, flèches gris foncé en bas à droite, menu ☰ à gauche de « Services »
   ===================================================================== */
.categories-container { align-items: stretch; overflow-y: hidden; }
.categorie-btn { position: relative; justify-content: center; }
.categorie-btn.a-sous { padding-bottom: 1.45em; }
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow,
.categorie-btn.active:hover .cat-arrow {
    position: absolute; top: auto; bottom: 3px; inset-inline-end: 4px;
    width: 1.35em; height: 1.35em; margin: 0; font-size: 0.85em;
    background: #475569; color: #fff; border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.categorie-btn .cat-arrow:hover, .categorie-btn .cat-arrow.ouvert { background: #1e293b; color: #fff; }
.categorie-btn.active .cat-arrow.ouvert { background: #1e293b; color: #fff; border-color: #fff; }

@media (max-width: 600px) {
    .categories-container { align-items: stretch; padding: 2px 6px 4px; gap: 0.3em; }
    .categorie-btn { padding: 0.45em 0.3em; }
    .categorie-btn.a-sous { padding-bottom: 1.6em; }
    .categorie-btn .cat-arrow,
    .categorie-btn:hover .cat-arrow,
    .categorie-btn.active .cat-arrow,
    .categorie-btn.active:hover .cat-arrow {
        top: auto; bottom: 2px; inset-inline-end: 2px;
        width: 15px; height: 15px; font-size: 9px;
    }
    /* Menu ☰ dans la ligne, entre « Toutes » et « Services » */
    .categories-container > .menu-site-wrap { position: static; flex: 0 0 auto; align-self: center; }
    .categories-container > .menu-site-wrap .btn-menu { width: 30px; height: 30px; border-radius: 7px; }
    .categories-container > .menu-site-wrap .btn-menu svg { width: 18px; height: 18px; }
    .categories-bar { position: relative; }
    .categories-bar .menu-site { top: calc(100% + 4px); inset-inline-start: 8px; width: min(270px, calc(100vw - 16px)); }
}

/* =====================================================================
   21. STYLE « MAQUETTE » : bande bleue, ligne visiteurs, bande Flash jaune, catégories avec icônes
   ===================================================================== */
.nouvelle-bande {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0;
    padding: 8px 12px 0; min-height: 0;
    background: #134a8f; border: 0; box-shadow: none;
}
.bande-gauche { align-self: center; align-items: center; gap: 4px; }
.btn-menu, .categories-container > .menu-site-wrap .btn-menu { width: 40px; height: 40px; border-radius: 8px; background: transparent; color: #fff; }
.btn-menu:hover, .btn-menu[aria-expanded="true"] { background: rgba(255, 255, 255, 0.18); }
.lang-bar .lang-globe { background: #eaf3ff; }
.lang-bar .lang-globe:hover { background: #fff; }
.lang-bar .lang-abbr button { background: #eaf3ff; color: #1e3a5f; }
.lang-bar .lang-abbr button:hover { background: #fff; color: #1e3a5f; }
.lang-bar .lang-abbr button.actif { background: #2563eb; color: #fff; }

.nouvelle-bande .actions-bar { align-self: center; align-items: center; justify-content: flex-end; gap: 6px; padding: 0; }
.nouvelle-bande .actions-bar .ico { display: none !important; }
#label-user-connecte { color: #fff; }

/* Loupe à la place du mot « Rechercher » */
.nouvelle-bande .actions-bar > #btn-rechercher {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 40px; min-width: 40px; height: 40px; min-height: 40px !important; padding: 0 !important;
    border: 0; border-radius: 8px; background: transparent; color: #fff;
}
.nouvelle-bande .actions-bar > #btn-rechercher:hover, .nouvelle-bande .actions-bar > #btn-rechercher.ouvert { background: rgba(255, 255, 255, 0.18); }

/* « Demander un service » : orange, sur deux lignes */
.nouvelle-bande .actions-bar > #btn-demander {
    display: inline-flex !important; align-items: center; justify-content: center; text-align: center;
    white-space: normal !important; width: 100px; max-width: 100px; min-height: 44px !important; padding: 5px 6px !important;
    border: 0; border-radius: 8px; background: transparent; color: #fff;
    font-size: 15px; font-weight: 600; line-height: 1.1;
}
.nouvelle-bande .actions-bar > #btn-demander:hover { background: rgba(255, 255, 255, 0.14); }

/* « Publier » : bouton contour clair */
.nouvelle-bande .actions-bar > #btn-ouvrir-depot {
    display: inline-flex !important; align-items: center; justify-content: center;
    min-height: 44px !important; padding: 6px 8px !important;
    border: 0; border-radius: 8px;
    background: transparent; color: #fff;
    font-size: 16px; font-weight: 600; box-shadow: none;
}
.nouvelle-bande .actions-bar > #btn-ouvrir-depot:hover { background: rgba(255, 255, 255, 0.14); }

/* « Se Connecter » : icône utilisateur + texte, sans fond */
.nouvelle-bande .actions-bar > #btn-login-user {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px !important; padding: 6px 6px !important;
    border: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 600;
}
.nouvelle-bande .actions-bar > #btn-login-user::before {
    content: ""; flex: 0 0 auto; width: 22px; height: 22px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/></svg>") center / contain no-repeat;
}
.nouvelle-bande .actions-bar > #btn-login-user:hover { background: rgba(255, 255, 255, 0.14); }
.nouvelle-bande .actions-bar > #btn-admin-panel, .nouvelle-bande .actions-bar > #btn-logout { min-height: 36px !important; padding: 4px 10px !important; font-size: 13px; }

/* Visiteurs : à droite de « Se Connecter », même ligne */
.nouvelle-bande .actions-bar > .visiteurs { display: inline-flex !important; align-items: center; gap: 3px; min-height: 44px; padding: 0 4px !important; background: transparent; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap !important; }
.nouvelle-bande .actions-bar > .visiteurs .ico { display: inline !important; }

/* Bande Flash : fond jaune clair, texte sombre */
.flash-section { height: 68px; margin: 0; background: #fdf3b4; color: #1f2937; border-bottom: 1px solid #f3e08a; }
.flash-label { background: transparent; color: #1f2937; padding: 0 4px 0 12px; font-size: 15px; font-weight: 600; }
.marquee-item { color: #1f2937; }
.marquee-item:hover { color: #92400e; }
.flash-texte { text-decoration: none; }
.flash-thumb { height: 50px; max-width: 70px; }

/* Catégories : boutons blancs arrondis, icône sous le mot */
.categories-bar { padding: 10px 0 8px; background: linear-gradient(180deg, #e6effb 0%, #f4f8fd 100%); border-bottom: 0; box-shadow: none; }
.categories-container { align-items: stretch; gap: 8px; padding: 4px 10px; }
.categorie-btn {
    flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 2.6em; padding: 0.5em 0.9em; border: 0; border-radius: 14px;
    background: #fff; color: #1f2937; font-weight: 500; line-height: 1.15;
    box-shadow: 0 2px 6px rgba(30, 70, 140, 0.22);
}
.categorie-btn:hover { background: #eef5ff; color: #1f2937; transform: none; box-shadow: 0 3px 8px rgba(30, 70, 140, 0.28); }
.categorie-btn.active, .categorie-btn.active:hover { background: #dbe9fb; color: #1e3a8a; box-shadow: 0 2px 8px rgba(30, 70, 140, 0.3); }
.categorie-btn.a-sous { padding-bottom: 0.45em; }
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow,
.categorie-btn.active:hover .cat-arrow { top: -5px; bottom: auto; inset-inline-end: -3px; }

/* Téléphone : tout sur une seule ligne */
@media (max-width: 600px) {
    .nouvelle-bande { padding: 6px 4px 0; gap: 2px; align-items: center; }
    .bande-gauche { gap: 0; }
    .btn-menu { width: 32px; height: 36px; }
    .lang-bar .lang-globe { width: 22px; height: 22px; font-size: 13px; }
    .nouvelle-bande .actions-bar { flex: 1 1 auto; min-width: 0; gap: 2px; align-self: center; align-items: center; justify-content: space-between; overflow-x: auto; }
    .nouvelle-bande .actions-bar > #btn-rechercher { width: 28px; min-width: 28px; height: 36px; min-height: 36px !important; }
    .nouvelle-bande .actions-bar > #btn-rechercher svg { width: 22px; height: 22px; }
    .nouvelle-bande .actions-bar > #btn-demander, .nouvelle-bande .actions-bar > #btn-ouvrir-depot, .nouvelle-bande .actions-bar > #btn-login-user {
        flex: 0 1 auto !important; width: min-content; max-width: none; min-height: 36px !important; padding: 3px 4px !important;
        font-size: clamp(9.5px, 2.9vw, 11.5px); line-height: 1.1; white-space: normal !important; text-align: center;
    }
    .nouvelle-bande .actions-bar > #btn-login-user { gap: 2px; }
    .nouvelle-bande .actions-bar > #btn-login-user::before { width: 15px; height: 15px; }
    .nouvelle-bande .actions-bar > .visiteurs { flex: 0 0 auto !important; min-height: 36px; padding: 0 2px !important; font-size: clamp(10px, 3vw, 12px); }
    .nouvelle-bande .actions-bar > .visiteurs .vis-lib { display: none; }
    .nouvelle-bande .actions-bar > #btn-admin-panel, .nouvelle-bande .actions-bar > #btn-logout { flex: 0 0 auto !important; width: auto; min-height: 30px !important; padding: 3px 6px !important; font-size: 10px; }
    .flash-section { height: 60px; }
    .flash-label { padding: 0 3px 0 8px; font-size: 14px; }
    .flash-thumb { height: 44px; max-width: 62px; }
    .categories-bar { padding: 8px 0 6px; }
    .categories-container { gap: 5px; padding: 6px 6px 4px; }
    .categorie-btn { padding: 0.45em 0.5em; border-radius: 12px; min-height: 2.6em; }
    .categorie-btn.a-sous { padding-bottom: 0.45em; }
    .categorie-btn .cat-arrow,
    .categorie-btn:hover .cat-arrow,
    .categorie-btn.active .cat-arrow,
    .categorie-btn.active:hover .cat-arrow { top: -6px; bottom: auto; inset-inline-end: -3px; }
}

/* Micro : jamais affiché à côté du titre des annonces */
.mic-icon-title, .card-section h2 svg, .card-section h2 img { display: none !important; }

/* En-tête : logo à gauche du titre, bien net et lisible (mêmes couleurs) */
.title-row { flex-wrap: nowrap; }
.brand-logo { filter: drop-shadow(0 0 3px rgba(255,255,255,.95)) drop-shadow(0 0 8px rgba(255,255,255,.75)) contrast(1.12) saturate(1.1); }
.brand-title { filter: drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 8px rgba(255,255,255,.95)) drop-shadow(0 0 16px rgba(255,255,255,.7)); }
.brand-primary { color: #031c40; }
@media (max-width: 600px) {
    .brand-logo { height: 54px; }
    .brand-title { font-size: clamp(28px, 9vw, 36px); }
}

/* Langues : seulement l'icône 🌐 + l'abréviation de la langue active au-dessus (partout) */
.lang-bar { flex-direction: column-reverse; align-items: center; justify-content: center; gap: 2px; }
.lang-bar .lang-globe { width: 24px; height: 24px; font-size: 14px; }
.lang-abbr { flex-direction: row; }
.lang-bar .lang-abbr button { display: none; }
.lang-bar .lang-abbr button.actif { display: inline-flex; align-items: center; justify-content: center; height: 13px; padding: 0 7px; border-radius: 7px; font-size: 10px; font-weight: 700; line-height: 1; }
.lang-menu { top: calc(100% + 8px); }

/* Bande Flash : petit logo + « Flash » aux couleurs du logo */
.flash-label { gap: 6px; }
.flash-logo { display: block; height: 28px; width: auto; flex: none; filter: drop-shadow(0 0 2px rgba(255,255,255,.9)); }
.flash-mot { font-weight: 800; font-size: 18px; letter-spacing: .01em; color: #0a5c52; background: linear-gradient(90deg, #052a5c 0%, #0a5c52 55%, #0e6b3f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Visiteurs : en gris, différent des autres icônes */
.nouvelle-bande .actions-bar > .visiteurs { color: #c4cdd9; }
.nouvelle-bande .actions-bar > .visiteurs .ico { filter: grayscale(1) brightness(1.2); }

/* Panneau « Rechercher » : catégorie > sous-catégorie > filtres adaptés > ville / quartier */
.recherche-avancee { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: start; padding-bottom: 10px; }
.recherche-avancee .rv-champs { grid-column: 1 / -1; margin: 2px 0; }
.recherche-avancee .rv-champs:empty { display: none; }
.recherche-avancee .rv-champs .form-group { margin: 0; text-align: start; }
.recherche-avancee .rv-champs label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 3px; }
.recherche-avancee select[hidden] { display: none; }
.recherche-avancee #rv-reset { padding: 9px 12px; font-size: 14px; }

/* Catégories collées à la bande Flash ; flèche en bas à droite */
.categories-bar { padding-top: 0 !important; padding-bottom: 12px; }
.categories-container { padding-top: 0 !important; padding-bottom: 10px; }
.categorie-btn { border-radius: 0 0 14px 14px; }
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow,
.categorie-btn.active:hover .cat-arrow { top: auto; bottom: -7px; inset-inline-end: -3px; }
@media (max-width: 600px) {
    .categories-bar { padding-top: 0 !important; padding-bottom: 10px; }
    .categories-container { padding-top: 0 !important; padding-bottom: 9px; }
    .categorie-btn { border-radius: 0 0 12px 12px; }
    .categorie-btn .cat-arrow,
    .categorie-btn:hover .cat-arrow,
    .categorie-btn.active .cat-arrow,
    .categorie-btn.active:hover .cat-arrow { top: auto; bottom: -7px; inset-inline-end: -3px; }
}

/* Panneau Rechercher compact sur téléphone */
.recherche-bar:not([hidden]) { max-height: 72vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
    .recherche-avancee { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 10px; }
    .recherche-avancee #rv-cat, .recherche-avancee #rv-sous { grid-column: span 1; }
    .recherche-avancee .rv-champs { grid-template-columns: 1fr 1fr; gap: 6px 8px; }
    .recherche-avancee .rv-champs .form-group:first-child { grid-column: 1 / -1; }
    .recherche-avancee select, .recherche-avancee input { padding: 8px 6px; font-size: 13px; min-width: 0; }
    .recherche-avancee #rv-reset { grid-column: 1 / -1; }
}

/* Bande Flash : textes défilants en gras */
.marquee-item, .marquee-item *, .flash-texte, .flash-defile, .flash-defile * { font-weight: 700; }

/* Flèches soudées DANS le bouton, à droite du mot */
.categorie-btn.a-sous { flex-direction: row; gap: 6px; padding-inline-end: 0.5em; }
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow,
.categorie-btn.active:hover .cat-arrow {
    position: static !important; flex: none; margin: 0 0 0 2px; width: 18px; height: 18px; font-size: 9px;
    border: 0; box-shadow: none; background: #64748b; color: #fff; border-radius: 50%;
}
.categorie-btn.active .cat-arrow, .categorie-btn.active:hover .cat-arrow { background: #1e3a8a; color: #fff; }
.categorie-btn .cat-arrow:hover, .categorie-btn .cat-arrow.ouvert { background: #1e293b; color: #fff; }
@media (max-width: 600px) {
    .categorie-btn.a-sous { gap: 4px; padding-inline: 0.5em 0.4em; }
    .categorie-btn .cat-arrow,
    .categorie-btn:hover .cat-arrow,
    .categorie-btn.active .cat-arrow,
    .categorie-btn.active:hover .cat-arrow { position: static !important; width: 16px; height: 16px; font-size: 8px; margin: 0; }
}

/* Flèche des sous-catégories : petite, grise claire, sans cercle ni fond */
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow,
.categorie-btn.active:hover .cat-arrow,
.categorie-btn .cat-arrow:hover,
.categorie-btn .cat-arrow.ouvert,
.categorie-btn.active .cat-arrow.ouvert {
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    color: #94a3b8 !important; width: 12px !important; height: 12px !important; font-size: 10px !important; line-height: 1; padding: 0 !important; margin: 0 0 0 1px !important; transform: none;
}
.categorie-btn .cat-arrow:hover { color: #64748b !important; }
.categorie-btn .cat-arrow.ouvert { transform: rotate(180deg); }

/* Flèche des sous-catégories : plus grande (toujours grise claire, sans cercle) */
.categorie-btn .cat-arrow,
.categorie-btn:hover .cat-arrow,
.categorie-btn.active .cat-arrow,
.categorie-btn.active:hover .cat-arrow,
.categorie-btn .cat-arrow:hover,
.categorie-btn .cat-arrow.ouvert,
.categorie-btn.active .cat-arrow.ouvert {
    width: 22px !important; height: 22px !important; font-size: 18px !important; margin: 0 -2px 0 2px !important;
}
@media (max-width: 600px) {
    .categorie-btn .cat-arrow,
    .categorie-btn:hover .cat-arrow,
    .categorie-btn.active .cat-arrow,
    .categorie-btn.active:hover .cat-arrow {
        width: 20px !important; height: 20px !important; font-size: 16px !important;
    }
}
/* =====================================================================
   BANDE FLASH : bleu marine (#052a5c), mot « Flash » en pêche, texte blanc, liseré orange
   ===================================================================== */
.flash-section {
    background: #052a5c;
    color: #fff;
    border: 0;
    border-bottom: 3px solid #f97316;
}
.flash-label { background: transparent; color: #fdba74; }
.flash-mot { background: none; -webkit-text-fill-color: #fdba74; color: #fdba74; }
.marquee-item, .flash-texte { color: #fff; }
.marquee-item:hover { color: #fdba74; }
.marquee-item.flash-prioritaire .flash-texte { color: #fff; }

/* INFOS PRATIQUES : bouton Actualiser à côté du titre */
.infos-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.infos-entete .infos-titre { margin: 0; }
.btn-actualiser-infos { padding: 6px 12px; font-size: 13px; }
.btn-actualiser-infos.en-cours { opacity: .6; cursor: progress; }


/* =====================================================================
   CATÉGORIES : une ligne de trois pastilles (Artisans · Formation · Logement & transport)
   et, dessous, une bande décorée avec le logo et les sous-catégories détaillées
   ===================================================================== */
.cat-dock { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 9px 8px 11px; background: linear-gradient(180deg, #e6effb 0%, #f4f8fd 100%); }
body.mode-detail .cat-dock { display: none; }
.cat-rang { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 780px); }

/* Pastille : même style que l'ancienne pastille « Catégories » */
.cat-poignee { --c: #052a5c; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 12px; border: 1.5px solid #b9cdea; border-radius: 999px; background: #fff; color: #052a5c; font: 800 15px/1.15 "Outfit", "Poppins", system-ui, sans-serif; text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; box-shadow: 0 2px 0 #cfdcf0, 0 8px 16px -8px rgba(5, 42, 92, 0.45); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.cat-poignee--art { --c: #b45309; }
.cat-poignee--for { --c: #1d4ed8; }
.cat-poignee--log, .cat-poignee--prod { --c: #0a5c52; }
.cat-poignee .cat-logo { flex: none; width: 26px; height: 26px; color: var(--c); }
.cat-poignee-titre { min-width: 0; overflow-wrap: anywhere; }
.cat-poignee.actif { border-color: var(--c); box-shadow: 0 0 0 1.5px var(--c), 0 8px 16px -8px rgba(5, 42, 92, 0.45); }
.cat-poignee.ouvert { background: var(--c); border-color: var(--c); color: #fff; }
.cat-poignee.ouvert .cat-logo { color: #fff; }
.cat-poignee:focus-visible, .cat-puce:focus-visible, .cat-tout:focus-visible, .cat-pied:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }

.cat-puce { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 38px; padding: 4px 8px 4px 14px; border: 1.5px solid #f97316; border-radius: 999px; background: #fff3e8; color: #7c2d12; font: 600 13px/1.2 "Poppins", system-ui, sans-serif; cursor: pointer; }
.cat-puce[hidden] { display: none; }
.cat-puce-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; }
.cat-puce-x { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #f97316; color: #fff; font-size: 17px; line-height: 1; }

/* Zone : commence juste sous la ligne ; ce qui dépasse vers le haut est rogné (la bande « sort » de la ligne) */
.cat-zone { position: fixed; z-index: 1000; inset-inline: 0; bottom: 0; top: var(--cat-haut, 120px); overflow: hidden; --p: 0; overscroll-behavior: contain; }
.cat-zone[hidden] { display: none; }
html.cat-ouvert, html.cat-ouvert body { overflow: hidden; }
.cat-voile { position: absolute; inset: 0; background: rgb(5 42 92 / calc(var(--p) * 0.55)); touch-action: none; }
.cat-feuilles { position: absolute; inset-inline: 0; top: 0; width: min(100%, 980px); margin-inline: auto; padding: 10px 10px 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; transform: translateY(calc((var(--p) - 1) * 112%)); will-change: transform; }
.cat-feuilles.change .cat-bande { animation: cat-change 0.28s ease-out; }
@keyframes cat-change { from { opacity: 0.35; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* La bande décorée */
.cat-bande { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - var(--cat-haut, 120px) - 86px); max-height: calc(100dvh - var(--cat-haut, 120px) - 86px); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 22px 40px -14px rgba(5, 42, 92, 0.55), 0 3px 8px rgba(5, 42, 92, 0.2); }
.cat-bande--art { --c: #b45309; --encre: #5a2a07; --teinte: #fff1d6; --teinte2: #ffe2a8; --haut: #b45309; }
.cat-bande--for { --c: #1d4ed8; --encre: #0b2a6b; --teinte: #e6efff; --teinte2: #cfe0ff; --haut: #1d4ed8; }
.cat-bande--log { --c: #0a5c52; --encre: #06403b; --teinte: #e3f3f0; --teinte2: #c4e8e1; --haut: #0a5c52; }

/* En-tête : zellige (artisans) · cahier quadrillé (formation) · vagues de la lagune (logement & transport) ; bord inférieur festonné */
.cat-bande-tete { position: relative; flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px 20px; color: #fff; touch-action: none; cursor: grab; }
.cat-bande--art .cat-bande-tete { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.24' stroke-width='1.2'%3E%3Crect x='8' y='8' width='18' height='18'/%3E%3Crect x='8' y='8' width='18' height='18' transform='rotate(45 17 17)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 34px 34px, linear-gradient(180deg, #7c3a0b 0%, #b45309 100%); }
.cat-bande--for .cat-bande-tete { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M26 0V26H0' fill='none' stroke='%23ffffff' stroke-opacity='.2'/%3E%3Cpath d='M13 10v6M10 13h6' stroke='%23ffffff' stroke-opacity='.32' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 26px 26px, linear-gradient(180deg, #052a5c 0%, #1d4ed8 100%); }
.cat-bande--log .cat-bande-tete { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 7 Q11 -1 22 7 T44 7 M0 18 Q11 10 22 18 T44 18' fill='none' stroke='%23ffffff' stroke-opacity='.24' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 44px 22px, linear-gradient(180deg, #073f52 0%, #0a5c52 100%); }
.cat-bande-tete::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 10px; z-index: 1; pointer-events: none; background: radial-gradient(circle at 10px 0, var(--haut) 9.5px, transparent 10px) 0 0 / 20px 10px repeat-x; }
.cat-logo-rond { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--c); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.28); }
.cat-logo-rond .cat-logo { width: 34px; height: 34px; }
.cat-bande-tete h3 { flex: 1 1 120px; margin: 0; font: 800 clamp(18px, 5vw, 24px)/1.15 "Outfit", "Poppins", system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
.cat-tout { min-height: 34px; padding: 4px 14px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #fff; font: 600 12.5px/1.2 "Poppins", system-ui, sans-serif; cursor: pointer; }
.cat-tout:hover { background: rgba(255, 255, 255, 0.32); }

.cat-bande-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 20px 10px 10px; }
.cat-puces { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cat-section-titre { display: flex; align-items: center; gap: 6px; margin: 12px 4px 8px; font: 800 14px/1.1 "Outfit", "Poppins", system-ui, sans-serif; color: var(--encre); }
.cat-section-titre:first-child { margin-top: 0; }
.cat-section-titre::after { content: ""; flex: 1; height: 3px; opacity: 0.55; background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 9px); }
.cat-sous { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--teinte2); border-radius: 14px; background: var(--teinte); color: #1f2937; font: 600 13px/1.25 "Poppins", system-ui, sans-serif; text-align: start; cursor: pointer; }
.cat-sous:hover { background: var(--teinte2); }
.cat-sous:focus-visible { outline: 3px solid #f97316; outline-offset: -3px; }
.cat-sous.actif { background: var(--c); border-color: var(--c); color: #fff; }
.cat-n { flex: none; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--encre); font: 700 11px/1.5 "Poppins", system-ui, sans-serif; text-align: center; }
.cat-bande-bord { flex: none; height: 16px; border-top: 2px solid var(--teinte2); }
.cat-bande--art .cat-bande-bord { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%23b45309' stroke-opacity='.55' stroke-width='1.4'%3E%3Crect x='8' y='8' width='18' height='18'/%3E%3Crect x='8' y='8' width='18' height='18' transform='rotate(45 17 17)'/%3E%3C/g%3E%3C/svg%3E") center -9px / 34px 34px repeat-x; }
.cat-bande--for .cat-bande-bord { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M26 0V26H0' fill='none' stroke='%231d4ed8' stroke-opacity='.45'/%3E%3C/svg%3E") 0 0 / 26px 26px repeat-x; }
.cat-bande--log .cat-bande-bord { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 7 Q11 -1 22 7 T44 7 M0 18 Q11 10 22 18 T44 18' fill='none' stroke='%230a5c52' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E") center -3px / 44px 22px repeat-x; }

/* Pied : « Toutes les annonces » ; se glisse aussi vers le haut pour refermer */
.cat-pied { align-self: center; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 20px; border: 0; border-radius: 999px; background: #fff; color: #052a5c; font: 800 14px/1.2 "Outfit", "Poppins", system-ui, sans-serif; cursor: pointer; touch-action: none; box-shadow: 0 10px 22px -10px rgba(5, 42, 92, 0.6); }
.cat-pied-grip { width: 22px; height: 4px; border-radius: 2px; background: #94a3b8; }

@media (max-width: 600px) {
    .cat-rang { gap: 6px; }
    .cat-poignee { flex-direction: column; gap: 3px; min-height: 64px; padding: 6px 4px; border-radius: 20px; font-size: 12.5px; }
    .cat-poignee .cat-logo { width: 24px; height: 24px; }
    .cat-feuilles { padding: 8px 8px 0; gap: 8px; }
    .cat-bande { border-radius: 18px; }
    .cat-bande-tete { gap: 10px; padding: 12px 12px 18px; }
    .cat-logo-rond { width: 50px; height: 50px; }
    .cat-logo-rond .cat-logo { width: 30px; height: 30px; }
    .cat-puces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-sous { font-size: 12.5px; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-feuilles.change .cat-bande { animation: none; }
}

/* =====================================================================
   MISE À JOUR : accroche orange, catégories bleues, bande compacte, flèches, bouton « Toutes », prestations
   ===================================================================== */
/* Accroche : même orange que le liseré sous l'en-tête */
.brand-tagline {
    color: #fff3b0;   /* jaune très clair : se détache nettement du ciel et du bleu de la baie */
    font-weight: 700;
    /* contour bleu nuit tout autour des lettres + ombre portée : lisible sur toute la photo */
    text-shadow: -1px -1px 0 #052a5c, 1px -1px 0 #052a5c, -1px 1px 0 #052a5c, 1px 1px 0 #052a5c,
                 0 2px 4px rgba(4, 32, 56, 0.85), 0 0 12px rgba(4, 32, 56, 0.75);
}

/* Pastilles : toutes du bleu de la catégorie ouverte */
.cat-rang { grid-template-columns: minmax(0, 0.8fr) repeat(3, minmax(0, 1fr)); width: min(100%, 900px); }
.cat-poignee, .cat-poignee--art, .cat-poignee--for, .cat-poignee--log, .cat-poignee--prod { --c: #1d4ed8; position: relative; background: #1d4ed8; border-color: #1d4ed8; color: #fff; box-shadow: 0 2px 0 #12399b, 0 8px 16px -8px rgba(5, 42, 92, 0.5); }
.cat-poignee:hover { background: #2559e0; border-color: #2559e0; }
.cat-poignee .cat-logo { color: #fff; }
.cat-poignee-titre { flex: 1; }
.cat-toutes .cat-poignee-titre { flex: 0 1 auto; }
.cat-poignee.actif { border-color: #fff; box-shadow: 0 0 0 2px #1d4ed8, 0 0 0 4px #f97316, 0 8px 16px -8px rgba(5, 42, 92, 0.5); }
.cat-poignee.ouvert { background: #1d4ed8; border-color: #fff; color: #fff; box-shadow: 0 0 0 2px #1d4ed8, 0 0 0 4px #f97316; }
.cat-fleche { flex: none; width: 18px; height: 18px; margin-inline-start: auto; color: #fff; transition: transform 0.25s; }
.cat-poignee.ouvert .cat-fleche { transform: rotate(180deg); }

/* Bande d'en-tête des sous-catégories : moitié moins haute, avec croix de fermeture */
.cat-bande-tete { flex-wrap: nowrap; gap: 10px; padding: 5px 12px 9px; }
.cat-logo-rond { width: 32px; height: 32px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.28); }
.cat-logo-rond .cat-logo { width: 19px; height: 19px; }
.cat-bande-tete h3 { flex: 1 1 0; min-width: 0; font-size: clamp(15px, 4vw, 19px); }
.cat-tout { flex: none; min-height: 26px; padding: 2px 11px; font-size: 12px; }
.cat-fermer { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; cursor: pointer; }
.cat-fermer:hover { background: rgba(255, 255, 255, 0.35); }
.cat-fermer:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.cat-fermer svg { width: 16px; height: 16px; }
.cat-bande-corps { padding-top: 16px; }

/* Bouton de retour à la page principale */
.cat-pied { gap: 8px; padding: 8px 22px; border: 2px solid #f97316; background: linear-gradient(180deg, #fff 0%, #eaf2ff 100%); color: #0b2a6b; font-weight: 800; }
.cat-pied:hover { background: #fff3e8; }
.cat-pied svg { width: 19px; height: 19px; flex: none; color: #f97316; }

@media (max-width: 600px) {
    .cat-rang { grid-template-columns: minmax(0, 0.85fr) repeat(3, minmax(0, 1fr)); gap: 5px; }
    .cat-poignee { padding: 6px 3px; font-size: 11.5px; }
    .cat-poignee-titre { flex: none; }
    .cat-fleche { position: absolute; top: 5px; inset-inline-end: 5px; width: 13px; height: 13px; margin: 0; }
    .cat-bande-tete { gap: 8px; padding: 4px 10px 8px; }
    .cat-logo-rond { width: 28px; height: 28px; }
    .cat-logo-rond .cat-logo { width: 17px; height: 17px; }
    .cat-fermer { width: 28px; height: 28px; }
    .cat-tout { padding: 2px 8px; font-size: 11px; }
}

/* Formulaire « Publier » : prestations cochées automatiquement ; page de l'annonce : prestations visibles */
.dep-opts { margin: 12px 0; padding: 10px 12px 12px; border: 1.5px solid #b9cdea; border-radius: 12px; background: #f4f8fd; }
.dep-opts legend { padding: 0 6px; font-weight: 700; color: #134a8f; }
.dep-opts-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 10px; margin-top: 6px; }
.dep-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #d6e2f5; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.dep-opt input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #1d4ed8; }
.det-opts { margin-top: 12px; }
.det-opts-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.det-opts-liste li { padding: 4px 10px; border-radius: 999px; background: #e6efff; color: #0b2a6b; font-size: 13px; font-weight: 600; }

/* Accroche : bleu marine (même teinte que « Nador »), halo blanc pour une lecture nette sur la photo claire */
.brand-tagline {
    color: #031c40;
    font-weight: 700;
    text-shadow: 0 0 2px rgba(255,255,255,1), 0 0 4px rgba(255,255,255,1), 0 0 8px rgba(255,255,255,.95), 0 0 16px rgba(255,255,255,.8);
}

/* =====================================================================
   THÈME « APPLICATION » : rendu NadorService (en-tête centré, Flash en pilule,
   recherche + Publier, pastilles de catégories, état vide illustré, barre du bas).
   Ce bloc est placé en dernier : il remplace l'ancien rendu sans toucher à la logique.
   ===================================================================== */
body.app-mobile {
    --teal: #13b5c9; --teal-fonce: #0e9fb3; --teal-texte: #0b8fa2;
    --marine: #0b3a6e; --titre: #0d3b66; --gris: #64748b;
    --champ: #eef4fb; --bord: #dbe7f3; --col: 760px;
    background: #fff;
    color: #1e293b;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
body.app-mobile * { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body.app-mobile .brand-title, body.app-mobile .brand-title *, body.app-mobile .flash-mot,
body.app-mobile .card-section h2, body.app-mobile .vide-carte h3 { font-family: "Outfit", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- En-tête : marque centrée ---------- */
body.app-mobile .main-header {
    display: block; position: relative; overflow: visible; min-height: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 14px;
    background: #fff; border: 0; box-shadow: none;
}
body.app-mobile .main-header::before { display: none; }
body.app-mobile .header-outils {
    position: absolute; z-index: 20; inset-inline: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px);
    display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
body.app-mobile .header-outils > * { pointer-events: auto; }
body.app-mobile .btn-menu, body.app-mobile .lang-bar .lang-globe {
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
    background: var(--champ); color: var(--titre); font-size: 20px; line-height: 1;
    display: grid; place-items: center; cursor: pointer;
}
body.app-mobile .btn-menu:hover, body.app-mobile .btn-menu[aria-expanded="true"],
body.app-mobile .lang-bar .lang-globe:hover { background: var(--bord); color: var(--titre); }
body.app-mobile .lang-bar .lang-abbr { display: none; }
body.app-mobile .lang-menu { inset-inline-start: auto; inset-inline-end: 0; border-radius: 14px; }
body.app-mobile .menu-site { border-radius: 16px; }
body.app-mobile #menu-site .menu-item:hover, body.app-mobile #menu-site .menu-item:focus-visible { background: var(--champ); color: var(--titre); }
body.app-mobile .lang-bar button.actif { background: var(--teal); color: #fff; }

body.app-mobile .header-container { max-width: none; padding: 0 58px; justify-content: center; gap: 0; }
body.app-mobile .logo-container { align-items: center; text-align: start; }
body.app-mobile .title-row { flex-wrap: nowrap; justify-content: center; gap: 10px; }
body.app-mobile .brand-logo { height: clamp(48px, 13vw, 64px); width: auto; flex: none; }
body.app-mobile .brand-bloc { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
body.app-mobile .brand-title {
    display: block; font-size: clamp(24px, 7.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
    color: var(--titre); filter: none; white-space: nowrap;
}
body.app-mobile .brand-primary { color: var(--titre); }
body.app-mobile .brand-accent {
    color: var(--teal); background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: var(--teal);
}
body.app-mobile .brand-tagline {
    max-width: none; margin: 3px 0 0; font-size: clamp(11.5px, 3.3vw, 14px); font-weight: 500; line-height: 1.3;
    color: #475569; text-shadow: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Bande Flash : pilule bleu marine ---------- */
body.app-mobile .flash-section {
    position: relative; width: calc(100% - 32px); max-width: var(--col); height: 56px; margin: 4px auto 14px;
    border: 0; border-radius: 14px; overflow: hidden;
    background: linear-gradient(90deg, #0b3a6e 0%, #0a3463 100%); color: #fff;
}
body.app-mobile .flash-label { background: transparent; color: #fff; padding: 0 8px 0 12px; gap: 8px; font-size: 22px; }
body.app-mobile .flash-bolt { width: 34px; height: 34px; flex: none; display: block; }
body.app-mobile .flash-mot { font-weight: 800; font-size: 22px; letter-spacing: 0; background: none; color: #fff; -webkit-text-fill-color: #fff; }
body.app-mobile .marquee-container {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
body.app-mobile .marquee-item, body.app-mobile .flash-texte { color: #fff; font-size: 15px; }
body.app-mobile .marquee-item:hover { color: #bff0f7; }
body.app-mobile .flash-thumb { height: 38px; max-width: 56px; }
body.app-mobile #btn-gerer-flash { margin: 0 4px; padding: 6px 10px; font-size: 12.5px; border-radius: 10px; }
body.app-mobile .flash-chevron {
    flex: none; width: 40px; height: 100%; border: 0; background: transparent; color: #fff;
    display: grid; place-items: center; cursor: pointer;
}
[dir="rtl"] body.app-mobile .flash-chevron svg { transform: scaleX(-1); }

/* ---------- Ligne recherche + Publier ---------- */
body.app-mobile .ligne-recherche {
    display: flex; align-items: center; gap: 10px;
    width: calc(100% - 32px); max-width: var(--col); margin: 0 auto 14px;
}
body.app-mobile .champ-recherche-wrap {
    position: relative; flex: 1 1 auto; min-width: 0; height: 50px; display: flex; align-items: center; gap: 10px;
    padding-inline: 16px 5px; border: 1.5px solid transparent; border-radius: 26px; background: var(--champ);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
body.app-mobile .champ-recherche-wrap:focus-within { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 181, 201, .16); }
body.app-mobile .ico-loupe { width: 22px; height: 22px; flex: none; color: var(--titre); }
body.app-mobile #champ-recherche {
    flex: 1 1 auto; min-width: 0; width: auto; height: 100%; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; outline: none; font-size: 14.5px; color: #0f172a;
    -webkit-appearance: none; appearance: none;
}
body.app-mobile #champ-recherche::placeholder { color: #64748b; opacity: 1; }
body.app-mobile #champ-recherche::-webkit-search-cancel-button, body.app-mobile #champ-recherche::-webkit-search-decoration { -webkit-appearance: none; display: none; }
[dir="rtl"] body.app-mobile #champ-recherche { padding: 0; }
body.app-mobile #btn-effacer-recherche {
    position: static; right: auto; left: auto; transform: none; flex: none; width: 26px; height: 26px; padding: 0;
    border: 0; border-radius: 50%; background: var(--bord); color: var(--titre); font-size: 18px; line-height: 1; cursor: pointer;
}
body.app-mobile #btn-rechercher {
    flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--titre); display: grid; place-items: center; cursor: pointer;
}
body.app-mobile #btn-rechercher:hover { background: var(--bord); }
body.app-mobile #btn-rechercher.ouvert { background: var(--teal); color: #fff; }

body.app-mobile #btn-ouvrir-depot {
    flex: none; height: 50px; padding: 0 20px 0 14px; border: 0; border-radius: 26px;
    background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    box-shadow: 0 8px 16px -8px rgba(19, 181, 201, .9);
}
body.app-mobile #btn-ouvrir-depot:hover { background: var(--teal-fonce); }
body.app-mobile #btn-ouvrir-depot .ico { display: none; }
body.app-mobile #btn-ouvrir-depot::before, body.app-mobile .vide-btn::before {
    content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2.5v9M2.5 7h9' stroke='%2313b5c9' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.app-mobile .vide-btn::before { background-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2.5v9M2.5 7h9' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Recherche avancée (ouverte par le bouton de filtres) */
body.app-mobile .recherche-bar {
    width: calc(100% - 32px); max-width: var(--col); margin: -4px auto 14px; padding: 12px;
    background: #f5f9fd; border: 1px solid var(--bord); border-radius: 16px;
}
body.app-mobile .recherche-bar[hidden] { display: none; }

/* ---------- Pastilles de catégories ---------- */
body.app-mobile .cat-dock {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
    width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 4px 16px 14px;
    background: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
body.app-mobile .cat-dock::-webkit-scrollbar { display: none; }
body.app-mobile .cat-rang { display: contents; }
body.app-mobile .cat-poignee, body.app-mobile .cat-poignee--art, body.app-mobile .cat-poignee--for, body.app-mobile .cat-poignee--log, body.app-mobile .cat-poignee--prod, body.app-mobile .cat-toutes {
    --c: var(--teal);
    flex: none; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
    height: 44px; min-height: 0; padding: 0 16px; border: 0; border-radius: 22px;
    background: var(--champ); color: var(--titre); box-shadow: none;
    font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap; touch-action: pan-x;
}
body.app-mobile .cat-poignee:hover { background: var(--bord); }
body.app-mobile .cat-poignee .cat-logo { display: none; }
body.app-mobile .cat-poignee-titre { flex: 0 0 auto; overflow-wrap: normal; }
body.app-mobile .cat-poignee .cat-fleche { width: 14px; height: 14px; margin: 0; color: currentColor; stroke-width: 3; }
body.app-mobile .cat-poignee.actif, body.app-mobile .cat-poignee.ouvert, body.app-mobile .cat-toutes.actif {
    background: var(--teal); color: #fff; border: 0; box-shadow: none;
}
body.app-mobile .cat-poignee.ouvert .cat-fleche { transform: rotate(180deg); }
body.app-mobile .cat-puce {
    flex: none; height: 44px; min-height: 0; padding: 0 8px 0 14px; border: 1.5px solid var(--teal); border-radius: 22px;
    background: #e6f8fb; color: var(--titre); font-size: 14px; font-weight: 600; white-space: nowrap;
}
body.app-mobile .cat-puce-txt { max-width: 56vw; }
body.app-mobile .cat-puce-x { background: var(--teal); }
body.app-mobile #btn-demander {
    flex: none; height: 44px; padding: 0 16px; border: 1.5px solid var(--teal); border-radius: 22px;
    background: #fff; color: var(--teal-texte); font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
body.app-mobile #btn-demander:hover { background: #e6f8fb; }
body.app-mobile .cat-dock > :last-child { margin-inline-end: 4px; }

/* ---------- Contenu : « Annonces récentes » ---------- */
body.app-mobile .container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
body.app-mobile .card-section { padding: 0; margin-bottom: 18px; background: none; border-radius: 0; box-shadow: none; }
body.app-mobile .card-section h2 {
    margin: 4px 0 14px; padding: 0; border: 0; font-size: clamp(22px, 6.2vw, 27px); font-weight: 800; line-height: 1.2; color: var(--titre);
}
body.app-mobile .annonces-grid { gap: 16px; }
body.app-mobile .carte-annonce { border: 1px solid #e3edf7; border-radius: 18px; box-shadow: 0 10px 22px -16px rgba(13, 59, 102, .45); }
body.app-mobile .carte-annonce.premium { border: 2px solid #f59e0b; }
body.app-mobile .annonce-prix { color: var(--teal-texte); }
body.app-mobile .lien-voir-plus { color: var(--teal-texte); }
body.app-mobile .lien-voir-plus:hover { color: var(--titre); }
body.app-mobile .btn { background: var(--teal); border-radius: 12px; }
body.app-mobile .btn:hover { background: var(--teal-fonce); }
body.app-mobile .btn-secondary { background: #64748b; }
body.app-mobile .btn-secondary:hover { background: #475569; }
body.app-mobile .btn-publier { background: #16a34a; }

/* Cœur « favori » sur les cartes */
body.app-mobile .btn-coeur {
    position: absolute; z-index: 4; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--titre);
    display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .5);
}
body.app-mobile .btn-coeur svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
body.app-mobile .btn-coeur.on { color: #ef4444; }
body.app-mobile .btn-coeur.on svg { fill: currentColor; }

/* ---------- État vide illustré ---------- */
body.app-mobile .vide-carte {
    grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 30px 18px 28px; border: 1px solid #e3edf7; border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
}
body.app-mobile .vide-boite { width: 150px; height: auto; margin-bottom: 12px; }
body.app-mobile .vide-carte h3 { margin: 4px 0 8px; font-size: clamp(19px, 5.4vw, 23px); font-weight: 800; line-height: 1.25; color: var(--titre); }
body.app-mobile .vide-carte p { max-width: 300px; margin: 0 0 20px; color: var(--gris); font-size: 14.5px; line-height: 1.5; }
body.app-mobile .vide-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 340px); min-height: 52px; padding: 0 20px;
    border: 1.5px solid var(--teal); border-radius: 16px; background: #fff; color: var(--teal-texte);
    font-size: 15px; font-weight: 700; cursor: pointer;
}
body.app-mobile .vide-btn:hover { background: #e6f8fb; }
body.app-mobile .vide-carte:not(:has(.vide-btn)) h3 { margin-bottom: 4px; }

/* ---------- Fenêtre Profil ---------- */
body.app-mobile .profil h3 { margin: 0 0 14px; color: var(--titre); font-size: 22px; padding-inline-end: 30px; }
body.app-mobile .profil-carte { display: flex; flex-direction: column; gap: 10px; }
body.app-mobile #label-user-connecte { display: block; color: var(--titre); font-size: 16px; font-weight: 700; }
body.app-mobile #label-user-connecte:empty { display: none; }
body.app-mobile .profil-carte button {
    width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px;
    background: var(--teal); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
body.app-mobile #btn-logout { background: #dc2626; }
body.app-mobile #btn-admin-panel { background: #7c3aed; }
body.app-mobile .profil-visites { margin-top: 16px; color: var(--gris); font-size: 14px; }

/* ---------- Barre de navigation du bas ---------- */
body.app-mobile .nav-bas {
    position: fixed; z-index: 900; inset-inline: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid #e6eef6; box-shadow: 0 -8px 22px -14px rgba(13, 59, 102, .35);
}
body.app-mobile .nav-item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 8px;
    border: 0; background: none; color: #2b4c73; font-size: 13.5px; font-weight: 500; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
body.app-mobile .nav-item svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body.app-mobile .nav-item.actif { color: var(--teal); font-weight: 600; }
body.app-mobile .nav-item.actif[data-nav="accueil"] svg, body.app-mobile .nav-item.actif[data-nav="favoris"] svg { fill: currentColor; }
body.app-mobile .nav-item.actif::after {
    content: ""; position: absolute; bottom: 0; left: 50%; width: 42px; height: 3px; margin-left: -21px; border-radius: 3px; background: var(--teal);
}
body.app-mobile .nav-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 10px; }

/* ---------- Page de détail et pied de page ---------- */
body.app-mobile.mode-detail .ligne-recherche, body.app-mobile.mode-detail .cat-dock { display: none; }
body.app-mobile .page-detail { background: #fff; }
body.app-mobile .detail-topbar { background: #fff; border-bottom: 1px solid #e6eef6; }
body.app-mobile .detail-btn:hover { background: var(--teal); }
body.app-mobile .pied { padding-bottom: 24px; }

@media (min-width: 900px) {
    body.app-mobile .main-header { padding-top: 20px; }
}
@media (max-width: 380px) {
    body.app-mobile .header-container { padding: 0 52px; }
    body.app-mobile #btn-ouvrir-depot { padding: 0 14px 0 10px; font-size: 15px; gap: 6px; }
    body.app-mobile #btn-ouvrir-depot::before { width: 22px; height: 22px; }
}


/* ==================================================================
   ANNONCES EN RANGÉES HORIZONTALES (une rangée par catégorie, défilement au doigt)
   ================================================================== */
#grille-annonces.annonces-grid { display: block; }
.rail-section { margin: 0 0 20px; }
.rail-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0 2px; font: 800 17px/1.2 "Outfit", "Poppins", system-ui, sans-serif; color: var(--titre, #0f172a); }
.rail-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--champ, #eef4fb); color: var(--titre, #0f172a); font: 700 12px/1 "Poppins", system-ui, sans-serif; }
.rail-premium .rail-titre { color: #b45309; }
.rail-premium .rail-n { background: #fef3c7; color: #92400e; }
.rail { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (hover: hover) { .rail { scrollbar-width: thin; } }
body .rail .carte-annonce { flex: 0 0 min(72vw, 250px); width: min(72vw, 250px); flex-direction: column; align-items: stretch; min-height: 0; scroll-snap-align: start; }
body .rail .carte-annonce .carrousel-container { flex: none; width: 100%; max-width: none; height: 150px; min-height: 150px; }
body .rail .carte-annonce .annonce-body { padding: 9px 11px 11px; }

/* ==================================================================
   FILIGRANE « NadorPro » + logo, en bas de chaque photo (coin libre : ni flèches, ni cœur, ni badge)
   ================================================================== */
.carrousel-container::after, .photo-wm::after {
    content: "NadorPro"; position: absolute; inset-inline-end: 6px; bottom: 6px; z-index: 2; pointer-events: none;
    padding: 2px 8px 2px 23px; border-radius: 10px; font: 700 10px/16px "Poppins", system-ui, sans-serif; letter-spacing: .2px; color: #fff;
    background: url("logo-nador.png") 4px center / 15px 15px no-repeat, rgba(0, 0, 0, .4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5); opacity: .92;
}
.carrousel-container:has(video)::after { bottom: 48px; }
.photo-wm { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.photo-wm img { display: block; }
.photo-wm-zoom { display: inline-block; }
.photo-wm-zoom::after { font-size: 12px; line-height: 20px; padding: 3px 10px 3px 29px; background-size: 19px 19px; background-position: 5px center; bottom: 10px; inset-inline-end: 10px; }

/* ==================================================================
   LANGUES : l'abréviation de la langue active s'affiche AU-DESSUS du globe
   ================================================================== */
body.app-mobile .header-outils { align-items: flex-end; }
body.app-mobile .lang-bar { flex-direction: column-reverse; align-items: center; gap: 3px; }
body.app-mobile .lang-bar .lang-abbr { display: flex; }
body.app-mobile .lang-bar .lang-abbr button { display: none; }
body.app-mobile .lang-bar .lang-abbr button.actif {
    display: inline-flex; align-items: center; justify-content: center; height: 16px; padding: 0 8px; border-radius: 8px;
    background: var(--teal); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .5px; text-transform: uppercase;
}

/* ==================================================================
   CATÉGORIE « Produits et matériels » (remplace le bouton « Demander un service »)
   ================================================================== */
.cat-poignee--prod { --c: #7c3aed; }
body.app-mobile .cat-dock::after { content: ""; flex: 0 0 4px; }

/* Titres des rangées : mêmes couleurs que le bouton « Publier » (fond turquoise, texte blanc) */
body.app-mobile .rail-section:not(.rail-premium) .rail-titre {
    display: inline-flex; width: fit-content; max-width: 100%; padding: 6px 8px 6px 16px; border-radius: 22px;
    background: var(--teal, #13b5c9); color: #fff; font-size: 15px; box-shadow: 0 8px 16px -8px rgba(19, 181, 201, .9);
}
body.app-mobile .rail-section:not(.rail-premium) .rail-n { background: rgba(255, 255, 255, .28); color: #fff; }

/* ==================================================================
   Pastilles de catégories : titres de deux mots l'un sur l'autre (gain de place sur téléphone)
   ================================================================== */
.cat-poignee-titre.deux { white-space: pre-line; text-align: center; line-height: 1.1; }
body.app-mobile .cat-poignee-titre.deux { font-size: 12.5px; font-weight: 700; }
body.app-mobile .cat-poignee:has(.deux) { padding: 0 12px; }

/* ==================================================================
   Titres des « Sélections » : famille orange, claire, lisible
   ================================================================== */
.rail-section:not(.rail-premium) .rail-titre,
body.app-mobile .rail-section:not(.rail-premium) .rail-titre {
    display: inline-flex; width: fit-content; max-width: 100%; padding: 6px 8px 6px 14px; border-radius: 22px;
    background: linear-gradient(135deg, #fff4e5, #ffe2bd); color: #9a3412; border: 1.5px solid #fdba74;
    font-size: 15px; box-shadow: 0 6px 14px -8px rgba(249, 115, 22, .8);
}
.rail-section:not(.rail-premium) .rail-n,
body.app-mobile .rail-section:not(.rail-premium) .rail-n { background: #f97316; color: #fff; }

/* ==================================================================
   Dépôt d'annonce : sous-catégories à cocher + « Autres »
   ================================================================== */
.souscat-multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 10px; padding: 10px 12px 12px; border: 1.5px solid #b9cdea; border-radius: 12px; background: #f4f8fd; max-height: 340px; overflow-y: auto; }
.souscat-multi:empty { display: none; }
.souscat-sec { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 800; color: #134a8f; }
.souscat-autre-champ { grid-column: 1 / -1; width: 100%; }
.souscat-autre-champ[hidden] { display: none; }

/* ==================================================================
   PANNEAU DES SOUS-CATÉGORIES : tuiles modernes, recherche en direct, animations
   ================================================================== */
.cat-bande { border: 1px solid rgba(234, 88, 12, .22); background: linear-gradient(180deg, #fff7ed 0%, #ffffff 55%); }
.cat-titre-bloc { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-titre-bloc h3 { flex: none; }
.cat-bande-info { font: 500 12px/1.2 "Poppins", system-ui, sans-serif; color: rgba(255, 255, 255, .85); }
.cat-bande-corps { padding: 16px 12px 12px; }

.cat-recherche { position: relative; display: block; margin: 0 2px 14px; }
.cat-recherche svg { position: absolute; inset-inline-start: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--c); pointer-events: none; }
.cat-filtre-champ { width: 100%; height: 46px; margin: 0; padding: 0 16px; padding-inline-start: 44px; border: 1.5px solid var(--teinte2); border-radius: 999px; background: #fff; color: #1f2937; font: 500 14px/1 "Poppins", system-ui, sans-serif; box-shadow: 0 8px 18px -12px rgba(234, 88, 12, .6); outline: none; -webkit-appearance: none; appearance: none; transition: border-color .18s, box-shadow .18s; }
.cat-filtre-champ:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(234, 88, 12, .22), 0 8px 18px -12px rgba(234, 88, 12, .6); }
.cat-filtre-champ::placeholder { color: #9a7b63; }

.cat-sec[hidden], .cat-sous-li[hidden], .cat-vide[hidden] { display: none; }
.cat-sec + .cat-sec { margin-top: 14px; }
.cat-puces { grid-template-columns: 1fr; gap: 9px; }
.cat-vide { margin: 18px 0 8px; text-align: center; color: #64748b; font: 600 14px/1.4 "Poppins", system-ui, sans-serif; }

.cat-sous-li { animation: cat-tuile .38s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes cat-tuile { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.cat-sous { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px 10px; border: 1.5px solid var(--teinte2); border-radius: 16px; background: #fff; color: #1f2937; box-shadow: 0 8px 16px -12px rgba(5, 42, 92, .55); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.cat-sous:hover { transform: translateY(-3px); border-color: var(--c); background: var(--teinte); box-shadow: 0 14px 24px -12px rgba(234, 88, 12, .55); }
.cat-sous:active { transform: scale(.97); }
.cat-sous-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--teinte), var(--teinte2)); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.cat-sous:hover .cat-sous-ico { transform: rotate(-8deg) scale(1.1); }
.cat-sous-ico .cat-logo { width: 20px; height: 20px; color: var(--c); }
.cat-sous-nom { min-width: 0; font: 700 13px/1.2 "Poppins", system-ui, sans-serif; overflow-wrap: anywhere; }
.cat-n { min-width: 24px; padding: 2px 7px; background: var(--teinte2); color: var(--encre); }
.cat-n.zero { opacity: .45; }
.cat-sous::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: var(--pct, 0%); border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--c), #fdba74); transition: width .6s ease; }
.cat-sous.actif { background: linear-gradient(135deg, var(--c), #f97316); border-color: transparent; color: #fff; box-shadow: 0 14px 24px -12px rgba(234, 88, 12, .7); }
.cat-sous.actif .cat-sous-ico { background: rgba(255, 255, 255, .22); }
.cat-sous.actif .cat-n { background: #fff; color: var(--c); }
.cat-sous.actif::after { background: #fff; opacity: .7; }

@media (max-width: 600px) {
    .cat-bande-corps { padding: 12px 8px 10px; }
    .cat-sous { gap: 7px; min-height: 54px; padding: 6px 8px 9px; border-radius: 14px; }
    .cat-sous-ico { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
    .cat-sous-ico .cat-logo { width: 17px; height: 17px; }
    .cat-sous-nom { font-size: 12px; }
    .cat-n { min-width: 20px; padding: 1px 5px; font-size: 10.5px; }
    .cat-bande-info { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-sous-li { animation: none; }
    .cat-sous, .cat-sous-ico, .cat-sous::after { transition: none; }
}

/* ==================================================================
   TIROIR VERTICAL : à droite (à gauche en arabe), la page reste visible ; bande simple orange
   ================================================================== */
.cat-zone { pointer-events: none; }
.cat-voile { display: none; }
.cat-feuilles { pointer-events: auto; inset: 0 0 0 auto; left: auto; right: 0; width: min(84vw, 350px); height: 100%; margin: 0; padding: 8px 0 10px 8px; gap: 8px; transform: translateX(calc((1 - var(--p)) * 108%)); }
html[dir="rtl"] .cat-feuilles { left: 0; right: auto; padding: 8px 8px 10px 0; transform: translateX(calc((var(--p) - 1) * 108%)); }
.cat-bande { flex: 1 1 auto; max-height: none; border-radius: 22px 0 0 22px; box-shadow: -10px 0 30px -12px rgba(124, 45, 18, .5), 0 3px 8px rgba(124, 45, 18, .2); }
html[dir="rtl"] .cat-bande { border-radius: 0 22px 22px 0; box-shadow: 10px 0 30px -12px rgba(124, 45, 18, .5), 0 3px 8px rgba(124, 45, 18, .2); }
.cat-bande.cat-bande--for { --c: #ea580c; --encre: #7c2d12; --teinte: #fff4e6; --teinte2: #fed7aa; --haut: #ea580c; border-color: #fdba74; }

/* Bande d'en-tête : simple, orange, sans motif */
.cat-bande.cat-bande--for .cat-bande-tete { background: #ea580c; padding: 12px 12px 12px; }
.cat-bande-tete::after { display: none; }
.cat-bande .cat-logo-rond { width: 38px; height: 38px; color: #ea580c; }
.cat-bande .cat-logo-rond .cat-logo { width: 22px; height: 22px; }
.cat-bande-info { color: #fff; font-weight: 600; opacity: .95; }
.cat-bande .cat-tout { border-color: #fff; background: #fff; color: #9a3412; font-weight: 700; }
.cat-bande .cat-tout:hover { background: #ffedd5; }
.cat-bande .cat-bande-bord, .cat-bande--for .cat-bande-bord { height: 6px; border: 0; background: #ea580c; }
.cat-bande-corps { padding: 14px 10px 12px; }

/* Bouton de retour : pleine largeur du tiroir */
.cat-feuilles .cat-pied { align-self: stretch; justify-content: center; margin-inline-end: 8px; border: 2px solid #ea580c; background: #fff; color: #9a3412; box-shadow: 0 8px 18px -10px rgba(124, 45, 18, .6); }
html[dir="rtl"] .cat-feuilles .cat-pied { margin-inline-end: 0; margin-inline-start: 8px; }
.cat-feuilles .cat-pied svg { color: #ea580c; }
@media (max-width: 600px) { .cat-feuilles { width: min(82vw, 340px); } }

/* ---------- Validation des annonces ---------- */
.badge-statut { display: inline-block; margin: 0 0 8px; padding: 4px 8px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600; }
.badge-statut.refusee { background: #fee2e2; color: #991b1b; }
.moderation-item { margin-top: 14px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; overflow-wrap: anywhere; text-align: start; }
.moderation-item ul { list-style: none; margin: 8px 0; padding: 0; font-size: 13px; }
.moderation-desc { white-space: pre-wrap; margin: 8px 0; font-size: 14px; }
.moderation-medias { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.moderation-medias img, .moderation-medias video { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.moderation-item .btn-valider { background: #15803d !important; }
.moderation-item .btn-refuser { background: #dc2626 !important; }

/* ==================================================================
   AJUSTEMENTS téléphone, tablette et PC
   ================================================================== */
/* 1. Langue : globe et abréviation sur la même ligne, au niveau du bouton menu */
body.app-mobile .header-outils { align-items: center; }
body.app-mobile .lang-bar { flex-direction: row-reverse; align-items: center; gap: 4px; height: 38px; padding: 0 4px 0 6px; border-radius: 19px; background: var(--champ); }
body.app-mobile .lang-bar .lang-globe { width: 30px; height: 30px; font-size: 18px; background: transparent; }
body.app-mobile .lang-bar .lang-abbr button.actif { height: 22px; font-size: 11px; }

/* 2. Bande Flash : toute la largeur, symbole et mot compacts */
body.app-mobile .flash-section { width: 100%; max-width: none; height: 48px; margin: 4px 0 6px; border-radius: 0; }
body.app-mobile .flash-label { gap: 3px; padding: 0 4px 0 8px; font-size: 13px; }
body.app-mobile .flash-bolt { width: 18px; height: 18px; }
body.app-mobile .flash-mot { font-size: 13px; }

/* 3. Recherche et Publier : moins hauts, rapprochés de la bande Flash */
body.app-mobile .ligne-recherche { gap: 8px; margin-bottom: 8px; width: calc(100% - 24px); }
body.app-mobile .champ-recherche-wrap { height: 38px; padding-inline: 12px 3px; gap: 7px; }
body.app-mobile .ico-loupe { width: 18px; height: 18px; }
body.app-mobile #btn-rechercher { width: 32px; height: 32px; min-height: 0; }
body.app-mobile #btn-ouvrir-depot { height: 38px; min-height: 0; padding: 0 13px 0 9px; gap: 6px; font-size: 14px; }
body.app-mobile #btn-ouvrir-depot::before { width: 20px; height: 20px; }

/* 4. Catégories : toutes visibles, centrées, flèche en bas à droite */
body.app-mobile .cat-dock { flex-direction: column; align-items: center; gap: 6px; padding: 2px 12px 10px; overflow: visible; }
body.app-mobile .cat-rang { display: grid; grid-template-columns: minmax(0, .7fr) repeat(3, minmax(0, 1fr)); gap: 6px; width: min(100%, 760px); margin: 0 auto; }
body.app-mobile .cat-rang .cat-poignee { position: relative; width: 100%; height: auto; min-height: 56px; padding: 6px 4px 15px; border-radius: 14px; white-space: normal; touch-action: manipulation; }
body.app-mobile .cat-rang .cat-poignee-titre { flex: 0 1 auto; min-width: 0; font-size: 11.5px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
body.app-mobile .cat-rang .cat-toutes { padding-bottom: 6px; }
body.app-mobile .cat-rang .cat-poignee .cat-fleche { position: absolute; bottom: 2px; inset-inline-end: 5px; width: 15px; height: 15px; margin: 0; }
@media (min-width: 600px) {
    body.app-mobile .cat-rang { gap: 12px; }
    body.app-mobile .cat-rang .cat-poignee { min-height: 70px; padding: 10px 14px 18px; }
    body.app-mobile .cat-rang .cat-toutes { padding-bottom: 10px; }
    body.app-mobile .cat-rang .cat-poignee-titre { font-size: 16px; }
    body.app-mobile .cat-rang .cat-poignee .cat-fleche { width: 24px; height: 24px; bottom: 3px; inset-inline-end: 8px; }
}

/* 5. Photos des annonces : étiquette de (sous-)catégorie et animation */
.carte-annonce .photo-cat { position: absolute; inset-inline-start: 6px; bottom: 6px; z-index: 3; max-width: calc(100% - 104px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none;
    padding: 3px 9px; border-radius: 10px; background: linear-gradient(90deg, #ea580c, #f59e0b); color: #fff; font-size: 11px; font-weight: 700; line-height: 15px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.carte-annonce .carrousel-container:has(video) .photo-cat { bottom: 48px; }
body .rail .carte-annonce .carrousel-container { position: relative; overflow: hidden; }
body .rail .carte-annonce { transition: transform .25s, box-shadow .25s; animation: carte-entree .5s ease both; }
body .rail .carte-annonce:active { transform: scale(.98); }
@media (hover: hover) { body .rail .carte-annonce:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(13, 59, 102, .55); } }
.carte-annonce img.carrousel-media { animation: photo-zoom 8s ease-in-out infinite alternate; }
@keyframes photo-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes carte-entree { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 600px) { body .rail .carte-annonce .carrousel-container { height: 124px; min-height: 124px; } }
@media (prefers-reduced-motion: reduce) { body .rail .carte-annonce, .carte-annonce img.carrousel-media { animation: none; transition: none; } }

/* 6. Barre du bas supprimée (le cœur « favoris » n'a plus de page associée) */
body.app-mobile { padding-bottom: 0; }
body.app-mobile .btn-coeur { display: none; }

/* 7. Déconnexion dans le menu */
.menu-site .menu-deconnexion { color: #dc2626; font-weight: 700; }
.menu-site .menu-deconnexion[hidden] { display: none; }

/* Glissement : l'annonce regardée se place au centre de l'écran */
body .rail { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
body .rail .carte-annonce { scroll-snap-align: center; scroll-snap-stop: always; }
@media (max-width: 600px) {
    body .rail { padding-inline: calc(50% - min(39vw, 150px)); }
    body .rail::after { content: none; }
    body .rail .carte-annonce { flex-basis: min(78vw, 300px); width: min(78vw, 300px); }
}

body.app-mobile .cat-rang .cat-poignee .cat-fleche { top: auto; }
@media (max-width: 480px) {
    body.app-mobile .header-container { padding: 0 82px 0 54px; }
    body.app-mobile .brand-logo { width: 40px; height: 40px; }
    body.app-mobile .brand-title { font-size: 25px; }
    body.app-mobile .brand-tagline { font-size: 10.5px; }
    body.app-mobile #champ-recherche { font-size: 13px; text-overflow: ellipsis; }
}

@media (min-width: 601px) and (max-width: 1100px) {
    body .rail { padding-inline: calc(50% - 150px); }
    body .rail::after { content: none; }
    body .rail .carte-annonce { flex-basis: 300px; width: 300px; }
}
