:root {
    --rouge: #d21f2e;
    --rouge-fonce: #a8121f;
    --noir: #1c1c1c;
    --gris-texte: #4a4a4a;
    --gris-bordure: #e2e2e2;
    --fond: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f4f4f4;
    --erreur-fond: #fdecec;
}

:root[data-theme="dark"] {
    --noir: #f0f0f0;
    --gris-texte: #b7b7bc;
    --gris-bordure: #45464b;
    --fond: #303134;
    --surface: #3a3b3f;
    --surface-alt: #45464b;
    --erreur-fond: #3d2a2a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--noir);
    background: var(--fond);
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* --- Barre de navigation --- */
.topbar {
    background: var(--rouge);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    flex-wrap: wrap;
}

.topbar-ligne {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.topbar-logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
}

.menu-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.menu-mobile-panel {
    display: contents;
}

.menu-mobile-fermer {
    display: none;
}

.menu-mobile-overlay {
    display: none;
}

.topbar nav a {
    color: rgba(255, 255, 255, 0.92);
    margin-right: 22px;
    font-size: 14px;
    transition: color 0.15s ease;
}

.nav-right a {
    margin-right: 0;
    margin-left: 10px;
}

.topbar nav a:hover,
.topbar nav a.active {
    color: #fff;
    font-weight: 600;
}

.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 4px;
    line-height: 1;
    vertical-align: middle;
}

.topbar-recherche {
    display: inline-block;
    vertical-align: middle;
    width: 220px;
    margin-left: 14px;
}

.topbar-recherche input {
    width: 100%;
    padding: 7px 14px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    background: #ffffff;
    color: #1c1c1c;
    outline: none;
}

.topbar-recherche input:focus {
    background: #fff;
}

.topbar-recherche input::placeholder {
    color: #777;
}

/* --- Contenu --- */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.titre-site {
    text-align: center;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 20px 0 40px;
}

.titre-page {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin: 10px 0 30px;
}

.titre-section {
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gris-bordure);
}

.titre-section:first-of-type {
    margin-top: 20px;
}

.sous-titre {
    text-align: center;
    color: var(--gris-texte);
    margin-top: -20px;
    margin-bottom: 30px;
}

/* --- Barre de recherche --- */
.barre-recherche {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.barre-recherche input {
    width: 100%;
    max-width: 720px;
    padding: 14px 22px;
    border-radius: 30px;
    border: 1px solid var(--gris-bordure);
    font-size: 15px;
    outline: none;
}

.barre-recherche input:focus {
    border-color: var(--rouge);
}

/* --- Grille de cartes --- */
.grille-objets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.carte-objet {
    display: block;
    position: relative;
    border: 1px solid var(--gris-bordure);
    border-radius: 10px;
    padding: 20px;
    background: var(--surface);
    transition: box-shadow 0.15s ease, transform 0.15s ease, background-color 0.2s ease;
}

.carte-lien-principal {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.carte-objet:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.carte-objet h2 {
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 12px;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.carte-objet p {
    font-size: 14px;
    color: var(--gris-texte);
    margin: 6px 0;
    text-align: center;
}

.carte-categorie {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rouge);
    font-weight: 700;
}

.hashtags {
    color: var(--gris-texte);
    position: relative;
    z-index: 2;
}

.carte-media {
    position: relative;
}

.vignette {
    height: 150px;
    margin-bottom: 14px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-alt);
}

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

/* --- Graphique "AURA" décoratif --- */
.aura {
    position: relative;
    height: 150px;
    margin-bottom: 14px;
}

.aura-barre {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 13px;
}

.aura-barre-haut {
    justify-content: flex-start;
}

.aura-barre-bas {
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.aura-bloc {
    display: inline-block;
    height: 16px;
    width: 65%;
    background: var(--rouge);
}

.aura-ligne {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
}

/* --- Formulaires --- */
.formulaire {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.formulaire label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
}

.texte-aide {
    font-size: 12px;
    font-weight: 400;
    color: var(--gris-texte);
    margin: 0;
}

.formulaire input,
.formulaire textarea,
.formulaire select {
    padding: 10px 14px;
    border: 1px solid var(--gris-bordure);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    background: var(--surface);
    color: var(--noir);
}

.formulaire button,
.bouton-principal {
    background: var(--rouge);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.formulaire button:hover,
.bouton-principal:hover {
    background: var(--rouge-fonce);
}

.message-erreur {
    max-width: 480px;
    margin: 0 auto 16px;
    background: var(--erreur-fond);
    border: 1px solid var(--rouge);
    color: var(--rouge-fonce);
    padding: 10px 16px;
    border-radius: 6px;
    text-align: center;
}

.empty-state {
    text-align: center;
    color: var(--gris-texte);
    padding: 60px 0;
}

/* --- Détail d'un objet --- */
.detail-objet {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.detail-objet .description {
    text-align: center;
    color: var(--gris-texte);
    margin: 20px 0;
}

.hashtag-lien {
    color: var(--rouge);
    font-weight: 600;
    margin: 0 4px;
    position: relative;
    z-index: 2;
}

.hashtag-lien:hover {
    text-decoration: underline;
}

.provider-lien {
    color: var(--rouge);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.provider-lien:hover {
    text-decoration: underline;
}

.proposant {
    margin-top: 16px;
    color: var(--gris-texte);
    font-size: 14px;
}

.proposant a {
    color: var(--rouge);
    font-weight: 600;
}

.detail-objet .bouton-principal {
    margin-top: 20px;
}

.galerie {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.galerie-piste {
    display: flex;
    transition: transform 0.35s ease;
}

.galerie-piste img {
    flex: 0 0 100%;
    width: 100%;
    height: 360px;
    object-fit: contain;
    background: transparent;
    cursor: zoom-in;
}

.galerie-precedent,
.galerie-suivant {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.galerie-precedent {
    left: 10px;
}

.galerie-suivant {
    right: 10px;
}

.galerie-precedent:hover,
.galerie-suivant:hover {
    background: rgba(0, 0, 0, 0.7);
}

.galerie-puces {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.galerie-puce {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--gris-bordure);
    cursor: pointer;
    padding: 0;
}

.galerie-puce.active {
    background: var(--rouge);
}

/* --- Lightbox (photo en grand) --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.visible {
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.lightbox-overlay.visible img {
    transform: scale(1);
}

.lightbox-fermer {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

/* --- Popup d'erreur (ex: fichier trop lourd) --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}

.popup-overlay.visible {
    opacity: 1;
}

.popup-boite {
    background: var(--surface);
    color: var(--noir);
    border-radius: 10px;
    padding: 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.popup-overlay.visible .popup-boite {
    transform: scale(1);
}

.popup-boite h2 {
    color: var(--rouge);
    margin: 0 0 12px;
    font-size: 20px;
}

.popup-boite p {
    margin: 0 0 20px;
    color: var(--gris-texte);
    font-size: 14px;
    line-height: 1.5;
}

.popup-boite .bouton-principal {
    display: inline-block;
}

.actions-proprietaire {
    margin-top: 16px;
    font-size: 14px;
}

.actions-proprietaire a {
    color: var(--rouge);
    font-weight: 600;
}

.tableau-mes-objets {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tableau-mes-objets th,
.tableau-mes-objets td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gris-bordure);
    font-size: 14px;
}

.tableau-mes-objets a {
    color: var(--rouge);
    font-weight: 600;
    margin-right: 12px;
}

.miniatures-existantes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.miniature-existante {
    position: relative;
    width: 110px;
}

.miniature-existante img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gris-bordure);
}

.miniature-choix-couverture {
    color: var(--gris-texte) !important;
}

.miniature-choix-couverture input:checked + * ,
.miniature-existante:has(input[name="couverture"]:checked) img {
    border-color: var(--rouge);
    border-width: 2px;
}

.miniature-existante label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    color: var(--rouge-fonce);
}

.confirmation {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.confirmation .actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.bouton-danger {
    background: var(--rouge);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.bouton-secondaire {
    background: var(--surface-alt);
    color: var(--noir);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* --- Widget de chat --- */
#chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

#chat-bulle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rouge);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#chat-bulle.a-des-messages-non-lus::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ffb400;
    border: 2px solid #fff;
    border-radius: 50%;
}

#chat-bulle:hover {
    background: var(--rouge-fonce);
}

#chat-fenetre {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 48px);
    height: 420px;
    max-height: calc(100vh - 120px);
    background: var(--surface);
    border: 1px solid var(--gris-bordure);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-fenetre.cachee {
    display: none;
}

#chat-entete {
    background: var(--rouge);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
}

#chat-entete button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.chat-entete-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    padding-right: 16px;
}

.chat-supprimer {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--gris-texte);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

.chat-supprimer:hover {
    color: var(--rouge);
}

.chat-auteur-utilisateur {
    color: #3b82f6;
}

.chat-auteur-admin {
    color: var(--rouge-fonce);
}

.chat-heure {
    color: var(--gris-texte);
    font-size: 11px;
}

.chat-message p {
    margin: 2px 0 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

#chat-formulaire {
    display: flex;
    border-top: 1px solid var(--gris-bordure);
}

#chat-saisie {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    border-radius: 0;
}

#chat-formulaire button {
    background: var(--rouge);
    color: #fff;
    border: none;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}

#chat-formulaire button:hover {
    background: var(--rouge-fonce);
}

#chat-connexion-requise {
    padding: 12px 14px;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--gris-bordure);
    margin: 0;
}

#chat-connexion-requise a {
    color: var(--rouge);
    font-weight: 700;
}

@media (max-width: 480px) {
    #chat-fenetre {
        width: calc(100vw - 24px);
        right: -12px;
    }
}

/* --- Pied de page --- */
.site-footer {
    text-align: center;
    color: var(--gris-texte);
    font-size: 13px;
    padding: 20px 0 40px;
}

/* --- Responsive : menu mobile en panneau coulissant --- */
@media (max-width: 860px) {
    .topbar {
        padding: 12px 20px;
    }

    .topbar-ligne {
        display: flex;
    }

    .menu-mobile-toggle {
        display: block;
    }

    .menu-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1999;
    }

    .menu-mobile-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-mobile-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--rouge-fonce);
        padding: 60px 20px 30px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 2000;
    }

    .menu-mobile-panel.ouvert {
        transform: translateX(0);
    }

    .menu-mobile-fermer {
        display: block;
        position: absolute;
        top: 14px;
        right: 16px;
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.ouvert .nav-dropdown-menu {
        display: block;
    }

    .menu-mobile-panel .nav-left,
    .menu-mobile-panel .nav-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        margin: 0;
    }

    .menu-mobile-panel .nav-right {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .topbar nav a {
        margin-right: 0;
        padding: 8px 0;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-toggle {
        margin-right: 0;
        font-size: 16px;
        padding: 8px 10px;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        padding: 4px 0;
    }

    .topbar .nav-dropdown-menu a {
        color: rgba(255, 255, 255, 0.92);
        padding: 8px 20px;
        width: auto;
    }

    .topbar .nav-dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .theme-toggle {
        margin: 6px 0;
    }

    .topbar-recherche {
        width: 100%;
        margin: 8px 0 0;
    }

    .titre-site {
        font-size: 38px;
    }
}

/* --- Étoiles (affichage lecture seule) --- */
.etoiles-affichage {
    position: relative;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 2px;
    vertical-align: middle;
}

.etoiles-fond {
    color: var(--gris-bordure);
}

.etoiles-remplies {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--rouge);
}

.carte-notation {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 4px 0 10px;
}

.notation-compte {
    font-size: 12px;
    color: var(--gris-texte);
    margin-left: 4px;
}

/* --- Bouton favori sur les cartes --- */
.carte-favori {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gris-bordure);
    background: var(--surface);
    color: var(--gris-bordure);
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
}

.carte-favori.actif {
    color: var(--rouge);
    border-color: var(--rouge);
}

.carte-favori:hover {
    color: var(--rouge);
}

/* --- Bouton favori sur la page détail --- */
.bouton-favori {
    display: inline-block;
    margin: 6px 0 20px;
    background: none;
    border: 1px solid var(--gris-bordure);
    color: var(--gris-texte);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.bouton-favori.actif {
    color: var(--rouge);
    border-color: var(--rouge);
}

/* --- Notation interactive --- */
.notation {
    margin: 16px 0;
    text-align: center;
}

.notation-moyenne {
    margin-bottom: 8px;
}

.notation-label {
    font-size: 13px;
    color: var(--gris-texte);
    margin: 0 0 4px;
}

.etoiles-cliquables {
    display: inline-flex;
    gap: 4px;
}

.etoile-bouton {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--gris-bordure);
    cursor: pointer;
    padding: 0;
}

.etoile-bouton.pleine,
.etoile-bouton.survol {
    color: var(--rouge);
}

.notation-connexion {
    font-size: 13px;
    color: var(--gris-texte);
}

.notation-connexion a {
    color: var(--rouge);
    font-weight: 600;
}

/* --- Signalement --- */
.signaler-ligne {
    text-align: center;
    margin-top: 6px;
    font-size: 12px;
}

.lien-signaler {
    background: none;
    border: none;
    color: var(--gris-texte);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.signaler-ligne a {
    color: var(--rouge);
    font-weight: 600;
}

.popup-boite textarea.signalement-texte {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gris-bordure);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: var(--surface);
    color: var(--noir);
    resize: vertical;
    margin-bottom: 16px;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* --- Page d'administration --- */
.liste-signalements {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.alerte-signalement {
    border: 1px solid var(--rouge);
    background: var(--erreur-fond);
    border-radius: 8px;
    padding: 16px 18px;
}

.alerte-titre {
    margin: 0 0 6px;
    font-weight: 700;
}

.alerte-titre a {
    color: var(--rouge-fonce);
}

.alerte-motif {
    margin: 0 0 6px;
    font-style: italic;
}

.alerte-meta {
    margin: 0;
    font-size: 12px;
    color: var(--gris-texte);
}

.alerte-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.alerte-actions form {
    display: inline;
}

.lien-danger {
    background: none;
    border: none;
    color: var(--rouge);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-size: 14px;
    margin-left: 12px;
}

/* --- Carrousel d'objets (page d'accueil) --- */
.carrousel-objets {
    position: relative;
    margin-bottom: 10px;
}

.carrousel-objets-piste {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}

.carrousel-objets-piste::-webkit-scrollbar {
    height: 6px;
}

.carrousel-objets-piste::-webkit-scrollbar-thumb {
    background: var(--gris-bordure);
    border-radius: 3px;
}

.carrousel-objets-piste .carte-objet {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

.carrousel-objets-precedent,
.carrousel-objets-suivant {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: 1px solid var(--gris-bordure);
    color: var(--noir);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carrousel-objets-precedent {
    left: -18px;
}

.carrousel-objets-suivant {
    right: -18px;
}

.carrousel-objets-precedent:hover,
.carrousel-objets-suivant:hover {
    background: var(--rouge);
    color: #fff;
    border-color: var(--rouge);
}

@media (max-width: 992px) {
    .carrousel-objets-piste .carte-objet {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (max-width: 700px) {
    .carrousel-objets-piste .carte-objet {
        flex-basis: calc((100% - 20px) / 2);
    }
    .carrousel-objets-precedent {
        left: 4px;
    }
    .carrousel-objets-suivant {
        right: 4px;
    }
}

@media (max-width: 460px) {
    .carrousel-objets-piste .carte-objet {
        flex-basis: 85%;
    }
}

/* --- Onglets d'administration --- */
.admin-onglets {
    display: flex;
    gap: 6px;
    margin: 24px 0 20px;
    border-bottom: 2px solid var(--gris-bordure);
    flex-wrap: wrap;
}

.admin-onglet {
    background: none;
    border: none;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--gris-texte);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-onglet.actif {
    color: var(--rouge);
    border-color: var(--rouge);
}

.admin-panneau.cache {
    display: none;
}

/* --- Photo de profil --- */
.photo-profil-actuelle {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
}

.photo-profil-actuelle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gris-bordure);
    display: block;
}

.photo-profil-vide {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rouge);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.photo-profil-publique {
    width: 110px;
    height: 110px;
}

/* --- Page À propos --- */
.page-apropos {
    max-width: 720px;
    margin: 0 auto;
}

.page-apropos .sous-titre {
    margin-bottom: 10px;
}

.page-apropos p {
    line-height: 1.7;
    color: var(--gris-texte);
}

/* --- Menus déroulants de catégories dans le bandeau --- */
.nav-dropdown {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    cursor: pointer;
    padding: 0 4px 0 2px;
    margin-right: 18px;
    line-height: 1;
}

.nav-dropdown-toggle:hover {
    color: #fff;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--gris-bordure);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    min-width: 240px;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.ouvert .nav-dropdown-menu {
    display: block;
}

.topbar .nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--noir);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
}

.topbar .nav-dropdown-menu a:hover {
    background: var(--surface-alt);
    color: var(--rouge);
    font-weight: 400;
}

.filtre-actif {
    text-align: center;
    color: var(--gris-texte);
    margin: -14px 0 24px;
}

.filtre-actif a {
    color: var(--rouge);
    font-weight: 600;
}

/* --- Correctif final : sur mobile, seul le clic (pas le survol) contrôle le sous-menu --- */
@media (max-width: 860px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.ouvert .nav-dropdown-menu {
        display: block;
    }
}

/* --- Nom de l'objet dans le jeu --- */
/* (affiché en texte simple, comme les autres lignes d'information) */

/* --- Filtres de la page favoris --- */
.filtre-favoris {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: flex-end;
    margin: 0 0 30px;
}

.filtre-favoris label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    color: var(--gris-texte);
    gap: 4px;
}

.filtre-favoris select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--gris-bordure);
    background: var(--surface);
    color: var(--noir);
    font-size: 14px;
    min-width: 180px;
}

/* --- Message "en cours" lors de la publication --- */
.spinner-bouton {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tourner 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes tourner {
    to {
        transform: rotate(360deg);
    }
}

/* --- Provenance / disclaimer sur la fiche objet --- */
.provenance-objet {
    text-align: center;
    font-size: 15px;
}

.disclaimer-telechargement {
    max-width: 480px;
    margin: 10px auto 0;
    text-align: center;
    font-size: 12px;
    color: var(--gris-texte);
    font-style: italic;
    line-height: 1.5;
}

.hashtags-en-plus {
    color: var(--gris-texte);
    font-size: 12px;
}

/* --- Case "Rester connecté" --- */
.case-souvenir {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-weight: 400 !important;
}

.case-souvenir input {
    width: auto;
}
