/* ============================================================
   LUSA - Feuille de style principale
   Approche mobile-first : les media queries élargissent à partir de 640px / 900px.
   ============================================================ */

/* ---------------------- Variables & remise à zéro ---------------------- */
:root {
    --primaire: #0d9488;
    --primaire-fonce: #0b6e64;
    --primaire-clair: #ccfbf1;
    --primaire-ultra-clair: #f0fdfa;
    --accent: #f59e0b;
    --accent-fonce: #d97706;
    --degrade-hero: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
    --degrade-carte: linear-gradient(135deg, #0f766e, #22d3ee);
    --texte: #0f172a;
    --texte-doux: #475569;
    --texte-leger: #64748b;
    --fond: #f6f8fa;
    --carte: #ffffff;
    --bordure: #e2e8f0;
    --danger: #dc2626;
    --succes: #16a34a;
    --info: #2563eb;

    --rayon: 14px;
    --rayon-petit: 10px;
    --ombre: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --ombre-forte: 0 12px 34px rgba(15, 23, 42, .14);
    --rythme: 1rem;
    --entete-hauteur: 62px;
    --transitions: .18s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--texte);
    background: var(--fond);
    padding-bottom: 76px; /* place pour la barre de navigation mobile */
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primaire-fonce);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5rem;
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 1.55rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }

p { margin: 0 0 .85rem; }

hr {
    border: 0;
    border-top: 1px solid var(--bordure);
    margin: .75rem 0;
}

code {
    background: #eef2f7;
    padding: .1rem .35rem;
    border-radius: 6px;
    font-size: .9em;
}

.lien-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primaire-fonce);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 999;
}

.lien-evitement:focus {
    left: .5rem;
    top: .5rem;
}

/* ------------------------------ Structure ----------------------------- */
.contenu {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    margin-bottom: 2rem;
}

.section-titre {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .9rem;
}

.section-titre h2,
.section-titre h1 {
    margin: 0;
}

.section-titre .lien-plus {
    font-size: .9rem;
    white-space: nowrap;
}

.titre-page {
    margin-bottom: .25rem;
}

.sous-titre {
    color: var(--texte-doux);
    font-size: .95rem;
    margin-bottom: 1.1rem;
}

.carte {
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 1rem;
    box-shadow: var(--ombre);
}

.carte + .carte {
    margin-top: 1rem;
}

.carte-titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.carte-titre h2,
.carte-titre h3 {
    margin: 0;
}

/* ------------------------------- Grilles ------------------------------ */
.grille {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.grille-biens {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.grille-2 {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .contenu { padding: 1.25rem; }
    h1 { font-size: 1.8rem; }
    .grille-biens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------ Boutons ------------------------------- */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    background: #eef2f7;
    color: var(--texte);
    text-decoration: none;
    transition: background var(--transitions), color var(--transitions), transform var(--transitions), box-shadow var(--transitions);
    -webkit-tap-highlight-color: transparent;
}

.bouton:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.bouton:active { transform: none; }

.bouton-primaire {
    background: var(--primaire);
    color: #fff;
    box-shadow: 0 6px 18px rgba(13, 148, 136, .28);
}

.bouton-primaire:hover { background: var(--primaire-fonce); }

.bouton-clair {
    background: #fff;
    color: var(--primaire-fonce);
    border-color: var(--bordure);
}

.bouton-clair:hover { border-color: var(--primaire); }

.bouton-fantome {
    background: transparent;
    color: var(--texte-doux);
    border-color: var(--bordure);
}

.bouton-danger {
    background: #fee2e2;
    color: var(--danger);
}

.bouton-danger:hover {
    background: var(--danger);
    color: #fff;
}

.bouton-petit { padding: .45rem .8rem; font-size: .85rem; }
.bouton-large { width: 100%; }
.bouton-bloc  { display: flex; width: 100%; }

.boutons-ligne {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ------------------------------- Badges ------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #eef2f7;
    color: var(--texte-doux);
    white-space: nowrap;
}

.badge-primaire { background: var(--primaire-clair); color: var(--primaire-fonce); }
.badge-accent   { background: #fef3c7; color: #92400e; }
.badge-succes   { background: #dcfce7; color: #166534; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-neutre   { background: #e2e8f0; color: #334155; }

.badge-statut-publie    { background: #dcfce7; color: #166534; }
.badge-statut-brouillon { background: #e2e8f0; color: #334155; }
.badge-statut-loue      { background: #fef3c7; color: #92400e; }
.badge-statut-archive   { background: #fee2e2; color: #991b1b; }

.pastille-equipement {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--texte-doux);
    font-size: .78rem;
    margin: 0 .25rem .3rem 0;
}

/* ------- Boost Lusa : attractif / addictif ------- */
.bandeau { position: relative; overflow: hidden; }
.bandeau::after {
    content: ""; position: absolute; inset: auto -20% -45% -20%; height: 70%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.22), transparent 65%);
    pointer-events: none;
}
.puce-confiance { display: inline-flex; gap: .4rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: .7rem; }
.barre-recherche { box-shadow: var(--ombre-forte); }
.bien-carte { transition: transform .2s ease, box-shadow .2s ease; }
.bien-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.bien-carte-media img { transition: transform .4s ease; }
.bien-carte:hover .bien-carte-media img { transform: scale(1.05); }
.bouton { transition: transform .15s ease, box-shadow .15s ease; }
.bouton:active { transform: scale(.97); }
.bouton-primaire { box-shadow: 0 6px 16px rgba(13,148,136,.35); }
.toasts { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.toast { background: #0f172a; color: #fff; border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; box-shadow: var(--ombre-forte); display: flex; gap: .6rem; align-items: center; animation: toast-in .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.etoiles { color: #f59e0b; letter-spacing: .1em; }
.note-vide { font-size: .82rem; color: var(--texte-leger); background: #f1f5f9; padding: .2rem .55rem; border-radius: 999px; }
.niveau-carte { background: linear-gradient(135deg, #0f172a, #0f766e); color: #fff; border-radius: var(--rayon); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.niveau-barre { height: 10px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.niveau-remplissage { height: 100%; background: linear-gradient(90deg, #f59e0b, #fde047); border-radius: 999px; }
.grille-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.badge-gamif { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: .7rem; text-align: center; }
.badge-gamif .icone { font-size: 1.6rem; }
.badge-gamif strong { display: block; font-size: .85rem; }
.badge-gamif span { font-size: .72rem; color: var(--texte-leger); }
.badge-gamif.verrouille { opacity: .45; filter: grayscale(1); }
.puce-coup { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: .7rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; }
.avis-carte { background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; }
.cloche { position: relative; display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: #f1f5f9; border: 1px solid var(--bordure); font-size: 1.1rem; align-items: center; justify-content: center; text-decoration: none; }
.cloche-compteur { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: .66rem; font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.panneau-notifs { position: absolute; right: 0; top: calc(100% + .5rem); width: min(92vw, 340px); background: #fff; border: 1px solid var(--bordure); border-radius: 14px; box-shadow: var(--ombre-forte); padding: .6rem; display: none; z-index: 60; }
.panneau-notifs.ouvert { display: block; }
.notif { padding: .55rem .6rem; border-radius: 10px; font-size: .85rem; }
.notif.non-lue { background: #f0fdfa; }
.alerte-bandeau { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; }
.recherche-rapide { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
.recherche-rapide a { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; font-weight: 600; }
.recherche-rapide a:hover { background: #fff; color: var(--primaire-fonce); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------ En-tête ------------------------------- */
.entete {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--bordure);
}

.entete-interieur {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    min-height: var(--entete-hauteur);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo-marque {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(120deg, var(--primaire-fonce), #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-slogan {
    font-size: .68rem;
    color: var(--texte-leger);
    display: none;
}

.nav-principale {
    display: none;
    gap: .25rem;
    margin-left: .5rem;
}

.nav-lien {
    padding: .45rem .75rem;
    border-radius: 999px;
    color: var(--texte-doux);
    font-size: .92rem;
    font-weight: 600;
}

.nav-lien:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.nav-lien.actif {
    background: var(--primaire-clair);
    color: var(--primaire-fonce);
}

.entete-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
}

.entete-actions .bouton-clair { display: none; }

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    background: var(--primaire);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.avatar::-webkit-details-marker { display: none; }
.avatar-agent     { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.avatar-bailleur  { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.avatar-locataire { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.avatar-admin     { background: linear-gradient(135deg, #b91c1c, #fb7185); }

.menu-compte { position: relative; }

.menu-compte-panneau {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre-forte);
    padding: .6rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    z-index: 50;
}

.menu-compte-panneau a {
    padding: .5rem .6rem;
    border-radius: var(--rayon-petit);
    color: var(--texte);
    font-size: .92rem;
}

.menu-compte-panneau a:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.menu-compte-nom {
    margin: 0;
    font-weight: 700;
    padding: .2rem .6rem;
}

.menu-compte-role {
    margin: 0 0 .3rem;
    padding: 0 .6rem;
    font-size: .8rem;
    color: var(--texte-leger);
}

.menu-compte-deconnexion { color: var(--danger) !important; }

/* ------------------------------- Flash -------------------------------- */
.flash-zone {
    max-width: 1180px;
    margin: .75rem auto 0;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .9rem;
    border-radius: var(--rayon-petit);
    border-left: 4px solid var(--info);
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .92rem;
}

.flash-succes { border-color: var(--succes); background: #f0fdf4; color: #166534; }
.flash-erreur { border-color: var(--danger); background: #fef2f2; color: #991b1b; }

.flash-texte { flex: 1; }

.flash-fermer {
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .6;
}

.flash-fermer:hover { opacity: 1; }

@media (min-width: 760px) {
    .nav-principale { display: flex; }
    .logo-slogan { display: block; }
    .entete-actions .bouton-clair { display: inline-flex; }
}

@media (min-width: 900px) {
    .contenu { padding: 1.5rem 1.5rem 3rem; }
    .grille { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
    .grille-biens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body { padding-bottom: 0; }
}

/* ------------------------------ Bandeau ------------------------------- */
.bandeau {
    background: linear-gradient(140deg, #0f766e 0%, #0d9488 45%, #22d3ee 100%);
    color: #fff;
    padding: 1.6rem 1rem 1.8rem;
    position: relative;
    overflow: hidden;
}

.bandeau::after {
    content: "";
    position: absolute;
    inset: auto -60px -120px auto;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.bandeau-interieur {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bandeau h1,
.bandeau h2 { color: #fff; }

.bandeau-texte {
    color: rgba(255, 255, 255, .88);
    max-width: 640px;
    font-size: .98rem;
}

.bandeau-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .88rem;
}

.bandeau-stats strong { font-size: 1.15rem; display: block; }

@media (min-width: 760px) {
    .bandeau { padding: 2.6rem 1.5rem 3rem; }
    .bandeau h1 { font-size: 2.2rem; }
}

/* --------------------------- Recherche / filtres ---------------------- */
.barre-recherche {
    display: grid;
    gap: .6rem;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: var(--rayon);
    padding: .9rem;
    box-shadow: var(--ombre-forte);
    margin-top: 1.2rem;
}

.barre-recherche .champ-groupe { margin: 0; }

@media (min-width: 760px) {
    .barre-recherche {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) auto;
        align-items: end;
    }
}

.panneau-filtres {
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 1rem;
    box-shadow: var(--ombre);
}

.panneau-filtres h2 {
    font-size: 1.05rem;
    margin-bottom: .6rem;
}

.filtre-mobile-bouton {
    display: flex;
    width: 100%;
    margin-bottom: .75rem;
}

.filtres-mobile-fermes .panneau-filtres { display: none; }
.filtres-mobile-ouverts .panneau-filtres { display: block; }

@media (min-width: 900px) {
    .filtre-mobile-bouton { display: none; }
    .filtres-mobile-fermes .panneau-filtres { display: block; }
}

.resultats-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .85rem;
}

.resultats-entete p { margin: 0; font-size: .92rem; color: var(--texte-doux); }

.tri-select { display: flex; align-items: center; gap: .4rem; font-size: .88rem; }

/* ------------------------------ Carte de bien ------------------------- */
.bien-carte {
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre);
    display: flex;
    flex-direction: column;
    transition: transform var(--transitions), box-shadow var(--transitions);
}

.bien-carte:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre-forte);
}

.bien-carte-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    overflow: hidden;
}

.bien-carte-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bien-carte-badges {
    position: absolute;
    top: .6rem;
    left: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.bien-carte-distance {
    position: absolute;
    bottom: .6rem;
    left: .6rem;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: .76rem;
    padding: .2rem .55rem;
    border-radius: 999px;
}

.bien-carte-corps {
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.bien-carte-titre {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.3;
}

.bien-carte-titre a { color: var(--texte); }

.bien-carte-lieu {
    font-size: .85rem;
    color: var(--texte-leger);
    margin: 0;
}

.bien-carte-loyer {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primaire-fonce);
    margin: .15rem 0 0;

.badge-au-jour {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    font-size: .68rem;
    font-weight: 700;
    color: var(--primaire-fonce);
    background: var(--primaire-pale);
    border-radius: var(--rayon-mini);
    vertical-align: middle;
    letter-spacing: .02em;
}
}

.bien-carte-loyer span {
    font-size: .74rem;
    font-weight: 600;
    color: var(--texte-leger);
}

.bien-carte-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .8rem;
    color: var(--texte-doux);
    margin: 0;
}

.bien-carte-specs span {
    background: #f1f5f9;
    border-radius: 8px;
    padding: .15rem .45rem;
}

.bien-carte-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px dashed var(--bordure);
    font-size: .82rem;
    color: var(--texte-leger);
}

.bien-carte-actions {
    display: flex;
    gap: .35rem;
    padding: 0 .85rem .85rem;
}

/* ------------------------------ Formulaires --------------------------- */
.champ-groupe {
    margin-bottom: .85rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.champ-groupe label,
.etiquette {
    font-size: .85rem;
    font-weight: 600;
    color: var(--texte-doux);
}

.champ-groupe input[type="text"],
.champ-groupe input[type="email"],
.champ-groupe input[type="password"],
.champ-groupe input[type="tel"],
.champ-groupe input[type="number"],
.champ-groupe input[type="search"],
.champ-groupe input[type="date"],
.champ-groupe select,
.champ-groupe textarea,
.champ {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-petit);
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--texte);
    transition: border-color var(--transitions), box-shadow var(--transitions);
}

.champ-groupe input:focus,
.champ-groupe select:focus,
.champ-groupe textarea:focus,
.champ:focus {
    outline: none;
    border-color: var(--primaire);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .16);
}

.champ-groupe textarea {
    min-height: 120px;
    resize: vertical;
}

.aide-champ {
    font-size: .78rem;
    color: var(--texte-leger);
    margin: 0;
}

.erreur-champ {
    font-size: .8rem;
    color: var(--danger);
    font-weight: 600;
    margin: 0;
}

.groupe-cases {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
}

.case {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: var(--texte);
    background: #f8fafc;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    padding: .3rem .7rem;
    cursor: pointer;
}

.case input { accent-color: var(--primaire); }

.curseur-groupe {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.curseur-groupe input[type="range"] {
    flex: 1;
    accent-color: var(--primaire);
}

.valeur-curseur {
    min-width: 74px;
    text-align: right;
    font-weight: 700;
    color: var(--primaire-fonce);
    font-size: .9rem;
}

.formulaire-etroit {
    max-width: 560px;
}

.deux-colonnes {
    display: grid;
    gap: 0 .8rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .deux-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .deux-colonnes .champ-pleine-largeur { grid-column: 1 / -1; }
}

/* ------------------------------ Comptes ------------------------------- */
.page-auth {
    max-width: 470px;
    margin: 1.5rem auto;
}

.page-auth .carte { padding: 1.3rem; }

.roles-choix {
    display: grid;
    gap: .5rem;
    grid-template-columns: 1fr;
    margin-bottom: .9rem;
}

@media (min-width: 520px) {
    .roles-choix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.role-carte {
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-petit);
    padding: .7rem;
    cursor: pointer;
    background: #fff;
    transition: border-color var(--transitions), background var(--transitions);
}

.role-carte input { position: absolute; opacity: 0; }

.role-carte strong { display: block; font-size: .92rem; }

.role-carte span {
    display: block;
    font-size: .76rem;
    color: var(--texte-leger);
    margin-top: .15rem;
}

.role-carte:has(input:checked) {
    border-color: var(--primaire);
    background: var(--primaire-clair);
}

.separateur-ou {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--texte-leger);
    font-size: .8rem;
    margin: .9rem 0;
}

.separateur-ou::before,
.separateur-ou::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bordure);
}

.encart-demo {
    background: #f8fafc;
    border: 1px dashed var(--bordure);
    border-radius: var(--rayon-petit);
    padding: .7rem .8rem;
    font-size: .82rem;
    color: var(--texte-doux);
}

.encart-demo ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.encart-demo li { margin-bottom: .15rem; }

/* ------------------------- Détail d'un bien --------------------------- */
.galerie {
    border-radius: var(--rayon);
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 1rem;
}

.galerie-principale {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
}

.galerie-vignettes {
    display: flex;
    gap: .4rem;
    padding: .5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.galerie-vignette {
    width: 84px;
    height: 60px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .72;
}

.galerie-vignette.actif,
.galerie-vignette:hover {
    border-color: #2dd4bf;
    opacity: 1;
}

.entete-bien {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}

.entete-bien h1 { margin: 0; }

.entete-bien-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;

.prix-duree {
    display: inline-block;
    margin-left: .5rem;
    padding: .1rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primaire-fonce);
    background: var(--primaire-pale);
    border-radius: var(--rayon-mini);
    vertical-align: middle;
    letter-spacing: .02em;
}
    font-size: .9rem;
    color: var(--texte-doux);
}

.prix-important {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primaire-fonce);
}

.prix-important span {
    font-size: .85rem;
    color: var(--texte-leger);
    font-weight: 600;
}

.liste-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.liste-specs li {
    background: #f8fafc;
    border-radius: var(--rayon-petit);
    padding: .55rem .7rem;
}

.spec-libelle {
    display: block;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texte-leger);
}

.spec-valeur {
    font-weight: 700;
    font-size: .98rem;
}

.description-bien {
    white-space: pre-line;
    color: var(--texte-doux);
}

.encart-contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.encart-contact .bouton { width: 100%; }

.contact-hote {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--bordure);
    margin-bottom: .2rem;
}

.contact-hote-infos p { margin: 0; font-size: .85rem; color: var(--texte-leger); }
.contact-hote-infos strong { display: block; font-size: .98rem; }

.coordonnees-bien {
    font-size: .82rem;
    color: var(--texte-leger);
}

/* --------------------------- Carte interactive ------------------------ */
.carte-conteneur {
    height: 62vh;
    min-height: 340px;
    border-radius: var(--rayon);
    overflow: hidden;
    border: 1px solid var(--bordure);
    background: #e2e8f0;
    z-index: 1;
}

.carte-pleine-page {
    height: calc(100vh - var(--entete-hauteur) - 2.5rem);
    min-height: 380px;
}

.carte-liste {
    max-height: 62vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding-right: .2rem;
}

.carte-item {
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-petit);
    padding: .55rem .65rem;
    background: #fff;
    cursor: pointer;
}

.carte-item:hover,
.carte-item.actif {
    border-color: var(--primaire);
    background: #f0fdfa;
}

.carte-item-titre {
    font-weight: 700;
    font-size: .92rem;
    margin: 0;
}

.carte-item-meta {
    font-size: .8rem;
    color: var(--texte-leger);
    margin: 0;
}

.carte-note {
    font-size: .82rem;
    color: var(--texte-leger);
    margin-top: .5rem;
}

.marqueur-prix {
    background: var(--primaire-fonce);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .3);
}

/* ------------------------- Tableaux & listes -------------------------- */
.tableau-enveloppe {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 620px;
}

.tableau th,
.tableau td {
    text-align: left;
    padding: .6rem .7rem;
    border-bottom: 1px solid var(--bordure);
    vertical-align: middle;
}

.tableau th {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texte-leger);
    background: #f8fafc;
}

.tableau tbody tr:hover { background: #fafcfe; }

.tableau-loyer { font-weight: 700; color: var(--primaire-fonce); white-space: nowrap; }

.miniature {
    width: 74px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
}

.liste-simple {
    list-style: none;
    margin: 0;
    padding: 0;
}

.liste-simple li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--bordure);
}

.liste-simple li:last-child { border-bottom: 0; }

.liste-simple-titre { font-weight: 700; margin: 0 0 .15rem; }
.liste-simple-meta { font-size: .82rem; color: var(--texte-leger); margin: 0; }

/* --------------------------- Messagerie ------------------------------- */
.message-groupe {
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-petit);
    padding: .8rem;
    background: #fff;
}

.message-groupe + .message-groupe { margin-top: .7rem; }

.message-groupe.non-lu {
    border-left: 4px solid var(--primaire);
    background: #f0fdfa;
}

.message-entete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem;
    margin-bottom: .4rem;
}

.message-auteur { font-weight: 700; margin: 0; }
.message-date { font-size: .78rem; color: var(--texte-leger); margin: 0; }
.message-contenu { margin: 0 0 .5rem; color: var(--texte-doux); white-space: pre-line; }

.message-coordonnees {
    font-size: .82rem;
    color: var(--texte-leger);
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    margin: 0;
}

/* ------------------------------ Statistiques -------------------------- */
.stats-grille {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 760px) {
    .stats-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat-carte {
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: .8rem;
    box-shadow: var(--ombre);
}

.stat-valeur {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primaire-fonce);
}

.stat-libelle {
    font-size: .82rem;
    color: var(--texte-leger);
}

/* ------------------------------- Étapes ------------------------------- */
.etapes {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.etape {
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 1rem;
    box-shadow: var(--ombre);
}

.etape-numero {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primaire-clair);
    color: var(--primaire-fonce);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: .5rem;
}

/* -------------------------------- Vide -------------------------------- */
.etat-vide {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border: 1px dashed var(--bordure);
    border-radius: var(--rayon);
    color: var(--texte-doux);
}

.etat-vide h2,
.etat-vide h3 { margin-bottom: .4rem; }

.etat-vide p { max-width: 460px; margin: 0 auto .9rem; }

/* ---------------------------- Pagination ------------------------------ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
    margin: 1.5rem 0 .5rem;
}

.pagination a,
.pagination span {
    min-width: 40px;
    text-align: center;
    padding: .45rem .6rem;
    border-radius: var(--rayon-petit);
    border: 1px solid var(--bordure);
    background: #fff;
    font-size: .9rem;
    color: var(--texte-doux);
}

.pagination .actuel {
    background: var(--primaire);
    border-color: var(--primaire);
    color: #fff;
    font-weight: 700;
}

.pagination .inactif { opacity: .45; }

/* --------------------------- Pied de page ----------------------------- */
.pied {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2rem 1rem 1.2rem;
    margin-top: 2rem;
}

.pied-interieur {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .pied-interieur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .pied-interieur { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.pied-colonne {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .88rem;
}

.pied-colonne a {
    color: #cbd5e1;
}

.pied-colonne a:hover {
    color: #5eead4;
    text-decoration: none;
}

.pied-marque {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.pied-titre {
    font-weight: 700;
    color: #fff;
    margin: 0 0 .2rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pied-texte {
    margin: 0;
    color: #94a3b8;
    font-size: .84rem;
}

.pied-bas {
    max-width: 1180px;
    margin: 1.6rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, .25);
    font-size: .8rem;
    color: #94a3b8;
    text-align: center;
}

/* --------------------------- Navigation mobile ------------------------ */
.nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    display: flex;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--bordure);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-mobile-lien {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .55rem .2rem .5rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--texte-leger);
    text-decoration: none;
}

.nav-mobile-lien svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.nav-mobile-lien:hover { text-decoration: none; }

.nav-mobile-lien.actif {
    color: var(--primaire-fonce);
}

@media (min-width: 900px) {
    .nav-mobile { display: none; }
}

/* --------------------------- Pages annexes ---------------------------- */
.page-erreur {
    text-align: center;
    padding: 3rem 1rem;
}

/* En-tête d'une page interne (titre + action à droite). */
.entete-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    margin-bottom: 1.2rem;
}

.entete-page .boutons-ligne { margin: 0; }

@media (min-width: 760px) {
    .entete-page.entre-deux {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
    }
    .entete-page.entre-deux > div:first-child { flex: 1; }
}

/* Fil de messagerie */
.fil {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.fil-bulle {
    max-width: 88%;
    padding: .7rem .9rem;
    border-radius: var(--rayon);
    background: #fff;
    border: 1px solid var(--bordure);
}

.fil-bulle-meta strong { color: var(--texte-doux); }

.fil-bulle.moi {
    align-self: flex-end;
    background: var(--primaire-clair);
    border-color: #99f6e4;
}

.fil-bulle.autre {
    align-self: flex-start;
}

.fil-bulle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    font-size: .74rem;
    color: var(--texte-leger);
    margin: 0 0 .25rem;
}

.fil-bulle-meta strong { color: var(--texte-doux); }

.fil-bulle-texte {
    margin: 0;
    white-space: pre-line;
    font-size: .95rem;
    color: var(--texte);
}

.fil-reponse {
    margin-top: 1.2rem;
}


.page-erreur .code-erreur {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primaire);
    margin: 0;
}

.page-installation {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem 1rem 3rem;
}

.page-installation .bouton-clair {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

.installation-carte {
    max-width: 760px;
    margin: 0 auto;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: var(--rayon);
    padding: 1.4rem;
}

.installation-carte h1 { color: #fff; }

.installation-intro { color: #94a3b8; }

.installation-journal {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    font-size: .9rem;
}

.installation-ligne {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .35rem 0;
    border-bottom: 1px solid #1f2937;
}

.installation-puce {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-top: .45rem;
    flex-shrink: 0;
}

.installation-info .installation-puce { background: #38bdf8; }
.installation-erreur .installation-puce { background: #f87171; }
.installation-erreur { color: #fca5a5; }

.installation-suite ul { color: #94a3b8; font-size: .9rem; }

.installation-avertissement {
    font-size: .82rem;
    color: #94a3b8;
    margin-top: .9rem;
}

.page-installation code {
    background: #1f2937;
    color: #7dd3fc;
}

.installation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 0;
}

/* ---------------------- Factures et paiements ------------------------- */
.paiement-rappel {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .8rem;
    background: linear-gradient(120deg, var(--primaire-fonce), #22d3ee);
    color: #fff;
    border-radius: var(--rayon-petit);
    padding: .9rem 1rem;
    margin: 0 0 1rem;
}

.paiement-rappel-montant {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.paiement-rappel-detail {
    font-size: .85rem;
    opacity: .92;
}

.paiement-demande h2,
.paiement-formulaire h2 { margin-top: 0; }

.methodes-paiement {
    display: grid;
    gap: .5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .methodes-paiement { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.methode-paiement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-petit);
    background: #fff;
    padding: .7rem .8rem;
    cursor: pointer;
    transition: border-color var(--transitions), background var(--transitions);
}

.methode-paiement input { position: absolute; opacity: 0; }

.methode-paiement:hover { border-color: var(--primaire); }

.methode-paiement:has(input:checked) {
    border-color: var(--primaire);
    background: var(--primaire-clair);
}

.methode-paiement:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .18);
}

.methode-sigle {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
}

.methode-sigle-orange  { background: linear-gradient(135deg, #ea580c, #fb923c); }
.methode-sigle-mtn     { background: linear-gradient(135deg, #eab308, #fde047); color: #713f12; }
.methode-sigle-banque  { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.methode-sigle-especes { background: linear-gradient(135deg, #0f766e, #2dd4bf); }

.methode-texte {
    display: flex;
    flex-direction: column;
    gap: .05rem;
}

.methode-nom {
    font-weight: 700;
    font-size: .92rem;
}

.methode-detail {
    font-size: .78rem;
    color: var(--texte-leger);
}

.encart-paiement {
    background: #f8fafc;
    border: 1px dashed var(--bordure);
    border-radius: var(--rayon-petit);
    padding: .8rem .9rem;
    font-size: .85rem;
    color: var(--texte-doux);
}

.encart-paiement p { margin: 0 0 .35rem; }
.encart-paiement p:last-child { margin-bottom: 0; }

.encart-paiement-titre {
    font-weight: 700;
    color: var(--texte);
}

.encart-paiement code {
    background: #e2e8f0;
    border-radius: 6px;
    padding: .05rem .35rem;
    font-size: .85rem;
}

/* --------------------------- Utilitaires ------------------------------ */
.texte-doux { color: var(--texte-doux); }
.texte-leger { color: var(--texte-leger); }
.texte-centre { text-align: center; }
.texte-petit { font-size: .84rem; }
.marge-haut { margin-top: 1rem; }
.marge-haut-petite { margin-top: .5rem; }
.marge-bas { margin-bottom: 1rem; }
.cache { display: none !important; }
.liste-inline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

@media print {
    .entete,
    .nav-mobile,
    .pied,
    .flash-zone,
    .boutons-ligne { display: none !important; }
    body { padding-bottom: 0; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}







/* ============================================================
   MISSIONS, SÉRIE, CLASSEMENT, DÉCOUVERTE (gamification v2)
   ============================================================ */
.streak-carte { background: linear-gradient(135deg, #0f172a, #b45309); color: #fff; border-radius: var(--rayon); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.grille-missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.mission { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.mission:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.mission-faite { border-color: #86efac; background: #f0fdf4; }
.mission-icone { font-size: 1.7rem; }
.mission-barre { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.mission-barre div { height: 100%; background: linear-gradient(90deg, #0d9488, #2dd4bf); border-radius: 999px; transition: width .3s ease; }
.mission-faite .mission-barre div { background: linear-gradient(90deg, #16a34a, #4ade80); }
.podium { display: flex; gap: .6rem; align-items: flex-end; justify-content: center; margin: 1rem 0; }
.podium-place { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: .8rem 1rem; text-align: center; display: flex; flex-direction: column; min-width: 120px; }
.podium-1 { order: 2; transform: scale(1.08); box-shadow: var(--ombre-forte); border-color: #f59e0b; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-medaille { font-size: 1.6rem; }
.podium-place.c-est-moi { border-color: var(--primaire); background: #f0fdfa; }
.tableau-classement { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau-classement th { text-align: left; color: var(--texte-leger); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .4rem .5rem; border-bottom: 2px solid var(--bordure); }
.tableau-classement td { padding: .5rem; border-bottom: 1px solid var(--bordure); }
.tableau-classement tr.c-est-moi { background: #f0fdfa; }
.badge-affaire { background: #fee2e2; color: #991b1b; }

/* --- Mode Découverte (pile de cartes) --- */
.decouverte-zone { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.deck { position: relative; width: min(92vw, 360px); height: 480px; }
.deck-vide { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--texte-leger); background: #f8fafc; border: 2px dashed var(--bordure); border-radius: 18px; }
.carte-swipe { position: absolute; inset: 0; background: #fff; border-radius: 18px; box-shadow: var(--ombre-forte); overflow: hidden; display: flex; flex-direction: column; touch-action: none; cursor: grab; transition: transform .25s ease, opacity .25s ease; }
.carte-swipe.attrapee { cursor: grabbing; transition: none; }
.carte-swipe.partie { pointer-events: none; }
.carte-swipe.envolee-droite { transform: translate(130%, -40px) rotate(24deg) !important; opacity: 0; }
.carte-swipe.envolee-gauche { transform: translate(-130%, -40px) rotate(-24deg) !important; opacity: 0; }
.carte-swipe-media { display: block; height: 55%; }
.carte-swipe-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carte-swipe-etiquette { position: absolute; top: 14px; font-weight: 800; font-size: .9rem; padding: .3rem .7rem; border-radius: 999px; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.carte-swipe-etiquette.gauche { left: 14px; background: #fee2e2; color: #991b1b; transform: rotate(-8deg); }
.carte-swipe-etiquette.droite { right: 14px; background: #dcfce7; color: #166534; transform: rotate(8deg); }
.carte-swipe.vers-gauche .carte-swipe-etiquette.gauche { opacity: 1; }
.carte-swipe.vers-droite .carte-swipe-etiquette.droite { opacity: 1; }
.carte-swipe-corps { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.carte-swipe-corps h3 { margin: 0; font-size: 1.05rem; }
.carte-swipe-loyer { font-weight: 800; color: var(--primaire-fonce); font-size: 1.1rem; margin: 0; }
.carte-swipe-loyer span { font-weight: 400; font-size: .8rem; color: var(--texte-leger); }
.deck-actions { display: flex; gap: 1.2rem; align-items: center; }
.deck-bouton { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--bordure); background: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: var(--ombre); transition: transform .15s ease, box-shadow .15s ease; }
.deck-bouton:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.deck-bouton:active { transform: scale(.94); }
.deck-passe { color: #ef4444; }
.deck-favori { color: #16a34a; background: #f0fdf4; }
.deck-info { width: 48px; height: 48px; font-size: 1.1rem; }
.deck-compteur { font-weight: 700; color: var(--primaire-fonce); }
@media (max-width: 480px) { .deck { height: 430px; } .podium { flex-wrap: wrap; } }

/* --- Pastille série + lien Découverte (en-tête) --- */
.pastille-serie { display: inline-flex; align-items: center; gap: .25rem; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-weight: 800; font-size: .82rem; padding: .3rem .65rem; border-radius: 999px; text-decoration: none; }
.pastille-serie:hover { background: #ffedd5; text-decoration: none; }
.pastille-serie-libelle { font-weight: 600; font-size: .72rem; opacity: .8; }
.nav-lien-accroche { color: #7c3aed; font-weight: 700; }
.encart-affaire { background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: .6rem .8rem; font-size: .88rem; margin-top: .5rem; }
