﻿/* app.css — version refondue (design élégant, maquettes alignées) */

:root {
    --accent: #F5A623;
    --charcoal: #1C1C1C;
    --gray: #9A9A9A;
    --light: #EDEDED;
    --white: #FFFFFF;
    --success: #27AE60;
    --error: #E63946;
    --info: #2D9CDB;
    --dark: #000;
    --layout-header: 56px; /* hauteur du header global */
    --layout-bottom: 64px; /* hauteur de la bottom-nav globale */
    --chat-composer-h: 88px; /* hauteur approximative de ta zone d'envoi (footer du chat) */
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--charcoal);
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: #fff;
}

/* Reset pour iOS Safari - force l'héritage des couleurs */
button, input, select, textarea {
    color: inherit;
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */ .app-container {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 1 auto;
    padding-bottom: 64px;
}

/* Header */ .header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--light);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.logo-text {
    font-weight: 700;
    letter-spacing: .2px;
}

/* Icon buttons */
.icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    color: #000;
}

    .icon-btn:hover {
        background: var(--light);
    }

    .icon-btn:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .icon-btn svg {
        width: 22px;
        height: 22px;
        display: block;
        color: inherit;
    }

    .icon-btn.more {
        margin-left: auto
    }

/* Bottom nav */ .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--light);
    height: 56px;
}

    .bottom-nav .nav-inner {
        max-width: 640px;
        margin: 0 auto;
        display: flex;
        height: 100%;
    }

    .bottom-nav a {
        flex: 1 1 25%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--gray);
        font-size: 11px;
        gap: 2px;
    }

        .bottom-nav a[aria-current="page"] {
            color: var(--charcoal);
        }

        .bottom-nav a svg {
            width: 20px;
            height: 20px;
        }

        .bottom-nav a .dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: transparent;
        }

        .bottom-nav a[aria-current="page"] .dot {
            background: var(--accent);
        }

/* Typography */ .h1 {
    font-size: clamp(28px,5vw,40px);
    font-weight: 800;
    margin: 0 0 10px;
}

.h2 {
    font-size: clamp(22px,3.5vw,28px);
    font-weight: 800;
    margin: 0 0 8px;
}

.h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.lead {
    font-size: 18px;
}

.muted {
    color: #555;
}

.center {
    text-align: center;
}

.maxw-2 {
    max-width: 720px;
    margin-inline: auto;
}

/* Hero */ .hero--soft {
    background: linear-gradient(180deg,#FFF 0%,#FFF7EB 100%);
    padding: 56px 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media(min-width:900px) {
    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
        align-items: center;
    }
}

.hero-title {
    font-size: clamp(32px,5vw,48px);
    line-height: 1.1;
    margin: 8px 0 12px;
}

.hero-sub {
    font-size: 18px;
    color: #444;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
}

.cta--dark {
    background: #1C1C1C;
    color: #fff;
}

.cta--accent {
    background: #F5A623;
    color: #000;
}

.cta--light {
    background: #fff;
    color: #000;
    border-color: #EDEDED;
}

.cta:hover {
    opacity: .95;
}

/* Sections */ .section {
    padding: 40px 16px;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
}

.section--accent {
    background: #FFF6E7;
}

.section--soft {
    background: #FAFAFA;
}

/* Cards */ .card {
    border: 1px solid var(--light);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.card--elevated {
    border-color: #eee;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.card-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Role cards */ .backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60rem 40rem at 80% -10%, rgba(245,166,35,.08), transparent), radial-gradient(40rem 32rem at -10% 20%, rgba(245,166,35,.06), transparent);
}

.roles-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media(min-width:900px) {
    .roles-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.role-card {
    border: 1px solid #eee;
    border-radius: 24px;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(6px);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transition: transform .2s ease,box-shadow .2s ease;
}

    .role-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(0,0,0,.08);
    }

.role-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iconbox {
    display: grid;
    place-items: center;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    background: rgba(245,166,35,.2);
}

    .iconbox svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.role-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

    .role-list li {
        display: flex;
        gap: 8px;
        align-items: flex-start;
    }

    .role-list .dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #F5A623;
        margin-top: 6px;
    }

.role-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.btn {
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.btn--dark {
    background: #1C1C1C;
    color: #fff;
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    filter: saturate(.5);
}

/* Settings */ .settings-halo {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(60rem 40rem at 80% -10%, rgba(245,166,35,.10), transparent), radial-gradient(40rem 32rem at -10% 20%, rgba(245,166,35,.06), transparent);
}

.settings-panel {
    border: 1px solid #eee;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.settings-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F4F4F4;
}

    .row:last-child {
        border-bottom: none;
    }

.row-a {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.row-text {
    flex: 1;
    min-width: 0;
}

.row-title {
    font-weight: 600;
}

.row-sub {
    font-size: 13px;
    color: #666;
}

.chevron {
    color: #bbb;
    font-size: 20px;
}

/* Switch */ .switch {
    position: relative;
    height: 28px;
    width: 48px;
    border-radius: 999px;
    background: #ddd;
    border: none;
    cursor: pointer;
}

    .switch.on {
        background: #F5A623;
    }

.knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    transition: transform .15s ease;
}

    .knob.on {
        transform: translateX(20px);
    }

/* Footer */ .footer {
    padding: 24px 16px;
    color: var(--gray);
    font-size: 13px;
    border-top: 1px solid var(--light);
    text-align: center;
}

/* How it works: 3 colonnes desktop */
.how-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media(min-width:900px) {
    .how-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Contact */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    max-width: 720px;
    margin: 16px auto 0;
}

@media(max-width:700px) {
    .social-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:420px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--light);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

    .social-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
    }

.social-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(245,166,35,.18);
}

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

/* Icônes dans paramètres */

.iconbox-svg svg {
    width: 20px;
    height: 20px;
    display: block;
}

.iconbox-emoji {
    font-size: 18px;
    line-height: 1;
}

/* --- Auth pages --- */
.auth-wrap {
    min-height: calc(100dvh - 56px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--light);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

    /* bouton œil uniquement dans les cartes d'auth */
    .auth-card .icon-btn {
        width: 36px;
        height: 36px;
    }

.auth-head {
    margin-bottom: 12px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.auth-sub {
    color: #666;
    margin: 4px 0 0;
}

.link-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.label {
    font-size: 14px;
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light);
    border-radius: 12px;
    box-sizing: border-box;
}

    .input:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }


.input--withbtn {
    padding-right: 48px;
    box-sizing: border-box;
}


.input-pass {
    position: relative;
}

    .input-pass .input {
        width: 100%;
        box-sizing: border-box;
    }

    .input-pass .icon-btn--ghost {
        position: absolute; /* <-- indispensable */
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        border: 0;
        background: transparent;
    }


.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

    .alert.error {
        background: #FFF1F1;
        color: #7A0000;
        border: 1px solid #FAD4D4;
    }

.tos {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.auth-back {
    margin-top: 10px;
    text-align: center;
}

.w-full {
    width: 100%;
}

.btn--accent {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.btn--light {
    background: var(--light);
    color: #000;
    font-weight: 700;
}

.btn--dark {
    background: var(--charcoal);
    color: #fff;
    font-weight: 700;
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--light);
    color: var(--charcoal);
    border-radius: 12px;
    padding: 10px 14px;
}

.btn:hover {
    opacity: .95;
}

/* --- Profile --- */
.profile-wrap {
    min-height: calc(100dvh - 56px);
    background: #fafafa;
}

.profile-hero {
    position: relative;
    padding: 38px 16px 16px;
}

.halo {
    position: absolute;
    inset: 0;
    background: radial-gradient(60rem 40rem at 80% -10%, rgba(245,166,35,.10), transparent), radial-gradient(40rem 32rem at -10% 20%, rgba(245,166,35,.06), transparent);
}

.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    padding-top: 8px;
    text-align: center;
}

.avatar-ring {
    display: inline-grid;
    place-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    outline: 8px solid rgba(255,255,255,.8);
}

.avatar {
    border-radius: 999px;
    display: block;
}

.profile-title {
    margin: 12px 0 2px;
    font-size: clamp(24px,3.5vw,32px);
    font-weight: 800;
}

.profile-sub {
    color: #666;
    margin: 0;
}

.profile-actions {
    max-width: 880px;
    margin: 0 auto;
    padding: 16px;
}

.panel {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(6px);
    border: 1px solid var(--light);
    border-radius: 24px;
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.profile-actions.rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-actions.row {
    border-bottom: 1px solid #eee;
}

    .row:last-child {
        border-bottom: none;
    }

.profile-actions.row-a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
}

    .row-a:hover {
        background: #f7f7f7;
    }

.profile-actions.row.group.danger .row-a {
    background: transparent;
}

    .row.group.danger .row-a:hover {
        background: rgba(230,57,70,.06);
    }


.profile-actions.row.group.danger .iconbox {
    background: #ffe6e6;
}

.row-title {
    font-weight: 700;
}

.row-sub {
    font-size: 13px;
    color: #666;
}

.chevron {
    color: #bbb;
    margin-left: auto;
}

.logout-form {
    margin: 14px 0 24px;
    display: flex;
    justify-content: center;
}

details[open] p {
    animation: fadeIn .25s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Correctif autocomplete --- */
.ac-wrap {
    position: relative;
}

.ac-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--light);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 260px;
    overflow: auto;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    list-style: none;
}

.ac-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

    .ac-item:hover, .ac-item.is-active {
        background: #f7f7f7;
    }


/* Évite que des conteneurs parents interceptent le clic */
.app-main, .section, .container {
    overflow: visible !important;
}

/* Create Listing */
.create-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

    .create-stepper .step {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        border: 1px solid var(--light);
        color: var(--charcoal);
        font-weight: 600;
    }

        .create-stepper .step.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

    .create-stepper .step-line {
        height: 2px;
        width: 24px;
        background: var(--light);
    }

.stepper-note {
    text-align: center;
    color: var(--charcoal);
    font-size: 14px;
    margin-top: 6px;
}

.note-link {
    color: var(--accent);
    text-decoration: underline;
}

.form-card {
    border: 1px solid var(--light);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.input, .select, .textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light);
    border-radius: 12px;
    font: inherit;
}

.textarea {
    min-height: 100px;
    resize: vertical;
}

.help {
    font-size: 12px;
    color: var(--gray);
}

.actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 12px;
}

/* Photo grid - Images carrées avec recadrage */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 12px;
}

.photo-tile {
    position: relative;
    border: 1px solid var(--light);
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1/1; /* Force le conteneur à être carré */
    display: grid;
    place-items: center;
}

    .photo-tile img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1/1; /* Force l'image à être carrée */
        object-fit: cover; /* Recadre l'image pour remplir le carré */
        display: block; /* Élimine les espaces blancs */
    }

.photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s ease;
}

    .photo-remove:hover {
        background: #333;
    }

    .photo-remove:active {
        transform: scale(0.95);
    }

/* CategoryPicker */
.catpick-trigger {
    width: 100%;
    text-align: left;
    border: 1px solid var(--light);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}

.catpick-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: grid;
    place-items: center;
    z-index: 9999;
    padding: 16px;
    overflow-y: auto;
}

.catpick-panel {
    background: #fff;
    width: min(720px, 94vw);
    max-height: min(86vh, 800px);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.catpick-header {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    padding: 12px 8px;
    background: var(--accent);
    color: #000;
    flex-shrink: 0;
}

.catpick-title {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.catpick-body {
    padding: 12px;
    overflow-y: auto;
    background: #f7f8fa;
    flex: 1 1 auto;
}

.catpick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catpick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .catpick-item:hover {
        background: #f9f9f9;
        border-color: var(--accent);
        transform: translateX(2px);
    }

.catpick-item--group {
    background: var(--light);
    border-color: #ffe3b7;
    font-weight: 600;
}

    .catpick-item--group:hover {
        background: #fff3d6;
    }

.catpick-item-title {
    font-size: 16px;
}

.catpick-chevron {
    font-weight: 700;
    color: var(--accent);
}

/* --- Mes annonces : mini-carte --- */
.listing-card {
    position: relative;
    border: 1px solid var(--dark);
    border-radius: 20px;
    background: #fff;
    padding: 10px 10px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
    max-width: 400px; /* Ajouter cette ligne */
    margin: 0 auto; /* Et celle-ci pour centrer */
}

.listing-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

/* Ajoutez cette classe dans app.css */
.listings-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media(min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 820px;
        margin: 0 auto;
    }
}

@media(min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}
/* Badge de modération seul élément textuel */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--light);
    background: #fafafa;
    color: #555;
}

.status--ok {
    background: #ECF8F1;
    color: #137A3A;
    border-color: #D3EFE0;
}

.status--ko {
    background: #FFF1F1;
    color: #7A0000;
    border-color: #FAD4D4;
}

.status--pending {
    background: #FFF8E8;
    color: #7A4D00;
    border-color: #FFE3B7;
}

.actions-top, .actions-bottom {
    display: flex;
    gap: 6px;
}

/* Image centrée */
.listing-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--light);
    background: #f7f7f7;
    /* Retirez: display: grid, place-items: center, aspect-ratio */
}

    .listing-media img {
        display: block;
        width: 100%;
        height: auto; /* ← changé de 100% à auto */
        aspect-ratio: 4/3; /* ← ajouté sur l'image */
        object-fit: cover;
    }

/* Barre basse */
.listing-card__bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/*Modal*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: grid;
    place-items: center;
    z-index: 1000;
}

.modal-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

    .modal-panel h2 {
        margin-top: 0;
    }

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* --- Recherche --- */
.search-toolbar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.req {
    color: #E63946;
}

.actions--end {
    justify-content: flex-end;
}

.history-panel {
    margin-top: 12px;
    border: 1px solid var(--light);
    border-radius: 12px;
    padding: 10px;
    background: #fff
}

.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.history-item {
    width: 100%;
    text-align: left;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer
}

    .history-item:hover {
        background: #f5f5f5;
        border-color: var(--accent)
    }

.h-title {
    font-weight: 700
}

.h-sub {
    font-size: 12px;
    color: #666
}

.h-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px
}

.chip-cat {
    font-weight: 700;
}

.chip-addr, .chip-q, .chip-dist {
    color: #555;
}

/* --- Boutons flottants en bas --- */
.search-bottom-bar {
    position: fixed;
    bottom: 88px; /* juste au-dessus de la nav bar */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.circle-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: #eee;
    color: #fff;
}

    .circle-btn.orange {
        background: var(--accent);
    }

    .circle-btn.gray {
        background: var(--light);
    }

    .circle-btn svg {
        width: 26px;
        height: 26px;
        stroke: #fff;
    }

    .circle-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* --- Résultats recherche --- */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.filters-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.select.sm {
    padding: 8px 10px;
    border-radius: 10px;
}

.filter-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--light);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

    .filter-chip.is-active {
        background: #FFF3D6;
        border-color: var(--accent);
        color: #7A4D00;
    }

    .filter-chip:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.filters-panel {
    border: 1px solid var(--light);
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    margin-bottom: 12px;
}

/* Filtres : grille responsive */
.filter-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media(min-width:700px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
/* Option : largeur plus grande sur l'adresse pour desktop */
@media(min-width:900px) {
    #faddr {
        width: 100%;
    }
}


.sr-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media(min-width:680px) {
    .sr-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width:980px) {
    .sr-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Carte résultats : variantes */
.sr-card .sr-top {
    margin-bottom: 8px;
}

.sr-card .sr-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-bottom {
    justify-content: space-between;
}

.sr-price-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.sr-total {
    font-size: 18px;
    font-weight: 800;
}

/* Aligner prix, frais et tooltip sur la même ligne */
.sr-line {
    display: flex;
    align-items: center; /* <-- clé : centre vertical */
    gap: 10px; /* espace homogène */
    flex-wrap: wrap;
    line-height: 1.2; /* réduit les écarts de baseline */
}

    .sr-line > span {
        display: inline-flex; /* texte + € restent groupés */
        align-items: center;
        gap: 6px;
    }

    .sr-line .dot {
        align-self: center; /* le séparateur est centré */
        opacity: .5;
    }

/* Bloc frais avec l'icône info */
.sr-fees {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* espace entre "0 €" et l'icône */
}

.sr-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

    .sr-card-link:hover .sr-card {
        transform: scale(1.01);
        transition: transform .15s ease-in-out;
    }

/* Tooltip minimal (data-tooltip) */
.tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--light);
    margin-left: 6px;
    position: relative;
    cursor: help;
    background: transparent;
    color: #000;
}

    .tip svg {
        width: 24px;
        height: 24px;
        display: block;
        stroke: currentColor; /* ← Ajoutez cette ligne explicitement */
    }

    .tip::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 130%;
        background: #111;
        color: #fff;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease;
        z-index: 20;
    }

    .tip::before {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 118%;
        border-width: 6px;
        border-style: solid;
        border-color: #111 transparent transparent transparent;
        opacity: 0;
        transition: opacity .15s ease;
        z-index: 19;
    }

    .tip:hover::after, .tip:hover::before,
    .tip:focus::after, .tip:focus::before {
        opacity: 1;
    }

.ad-wrap {
    padding: 12px;
    max-width: 720px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .ad-wrap {
        padding: 24px 16px;
    }
}

.seller-bar {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seller-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px
}

.seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.seller-meta {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.seller-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.seller-sub {
    font-size: 12px;
    color: #ccc;
}

.icon-btn.message {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

    .icon-btn.message:hover {
        background: rgba(255, 255, 255, 0.1);
    }


.ad-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 2px
}

.ad-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 800
}

/* coeur éteint = contour, allumé = rempli + couleur */
.icon-btn.heart svg {
    transition: fill .15s ease, stroke .15s ease;
}

.icon-btn.heart.is-on svg {
    fill: var(--accent);
    stroke: var(--accent);
}

.heart-svg {
    transition: transform .12s ease-in-out
}

.ad-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 0 6px 20px rgba(0,0,0,.06)
}

@media (min-width: 768px) {
    .ad-media {
        max-width: 480px;
        margin: 0 auto;
    }
}
.ad-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover
}

.ad-media .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.15)
}

.ad-media .prev {
    left: 8px
}

.ad-media .next {
    right: 8px
}

.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 2px
}

.pill {
    background: #f6f7f9;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 14px
}

.price {
    font-size: 20px;
    font-weight: 800
}

    .price .currency {
        font-size: .9em;
        margin-left: 2px;
        color: #444
    }

.ad-section {
    margin-top: 14px
}

.ad-h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 800
}

.ad-desc {
    color: #444;
    line-height: 1.45
}

.ad-cta {
    margin: 14px 0 24px;
    display: flex;
    justify-content: center; /*Ajouter cette ligne */
}

.inbox-wrap {
    padding: 10px
}

.inbox-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.inbox-card {
    border: 1px solid #111;
    border-radius: 12px;
    background: #fff;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.inbox-actions {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    gap: 10px
}

.icon.small {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #111
}

.inbox-avatar-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    padding: 16px
}

.inbox-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover
}

.inbox-username {
    font-size: 12px;
    color: #111
}

.chat-wrap {
    --chat-max: 720px; /* same as your max-width */
    --chat-pad-x: 10px; /* horizontal padding of the container */
    min-height: calc(100dvh - var(--layout-header) - var(--layout-bottom));
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    padding: 10px; /* <- this is what we mirror below via --chat-pad-x */
    gap: 10px;
    max-width: var(--chat-max);
    margin: 0 auto;
    position: relative;
}

@media (min-width:768px) {
    .chat-wrap {
        padding: 24px 16px;
        --chat-pad-x: 16px;
    }
}

.chat-bar {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: calc(var(--layout-header) + 0px); /* colle juste sous le header global */
    z-index: 5;
}

.chat-bar-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.chat-bar .seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff
}

.chat-bar .seller-name {
    font-weight: 700
}

.chat-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
    padding-bottom: calc(var(--chat-composer-h) + 16px);
}

/* === Fixed footer aligned to container width === */
.chat-footer {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--layout-bottom); /* above bottom nav */
    z-index: 20;
    width: calc(min(var(--chat-max), 100vw) - (var(--chat-pad-x) * 2));
    background: #fff;
    box-shadow: 0 -6px 16px rgba(0,0,0,.06);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    /* Keep inner content aligned with container padding */
    .chat-footer > .offer-line,
    .chat-footer > .composer {
        padding-left: var(--chat-pad-x);
        padding-right: var(--chat-pad-x);
    }


.offer-line {
    font-size: 12px;
    color: #444;
    margin-left: 4px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: auto;
}

    .offer-line:hover {
        color: var(--accent);
        text-decoration: underline;
    }

    .offer-line:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 4px;
    }

.bubble {
    position: relative;
    max-width: 86%;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

    .bubble.them {
        align-self: flex-start
    }

    .bubble.me {
        align-self: flex-end;
        background: #fff
    }

    .bubble.offer {
        border: 1px solid var(--light);
        background: #fff;
    }


.bubble-title {
    font-weight: 700;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px
}

.bubble-text {
    font-size: 14px;
    color: #111
}

.composer {
    display: flex;
    align-items: center;
    gap: 8px
}

.composer-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    font-family: inherit; 
    resize: none; /* empêche le redimensionnement manuel */
    overflow-y: auto; /* scroll si trop de lignes */
    max-height: 120px; /*limite la hauteur */
    min-height: 40px; /*hauteur minimale */
}

.composer-btn {
    border: none;
    background: #000;
    color: #fff;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .composer-btn:active {
        transform: translateY(1px)
    }

    .composer-btn:hover {
        background: #333;
    }

/* Bouton image (label cliquable) */
.composer-btn--image {
    background: #000;
}

    .composer-btn--image:hover {
        background: #333;
    }

    .composer-btn--image svg {
        display: block;
    }

.composer-btn--disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* Offer modal */
.offer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.offer-dialog {
    background: #fff;
    border: 1px solid var(--light);
    border-radius: 16px;
    width: min(520px,92vw);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: 16px 16px 12px;
}


.offer-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.offer-label {
    color: #F5A623;
    font-size: 13px;
    margin-bottom: 6px;
}

.offer-input {
    width: 100%;
    border: none;
    border-bottom: 3px solid #F5A623;
    padding: 6px 2px 8px;
    font: inherit;
    outline: none;
}

.offer-actions {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    margin-top: 14px;
}

.offer-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    font-weight: 600;
    color: #F5A623;
    cursor: pointer;
    border-radius: 8px;
}

    .offer-btn:focus {
        outline: 2px solid #F5A623;
        outline-offset: 2px;
    }

.offer-btn--primary {
    color: #111;
    background: #F5A623;
    border: 1px solid #F5A623;
}

.offer-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
}

.photo-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.btn-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn-photo:hover {
        background: #e6e6e6;
    }

    .btn-photo[disabled],
    .btn-photo:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.upload-status {
    color: #444;
    font-size: 0.9rem;
    margin-top: 6px;
    margin-left: 4px;
}

    .upload-status small {
        color: #777;
    }

.more-section--code {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.more-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.code-display-box {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
    letter-spacing: 0.1em;
    background-color: #fafafa;
}

.code-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.code-validate-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #ffbd3d;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.code-message {
    margin-top: 6px;
    font-size: 0.9rem;
}

.code-message--ok {
    color: #2e7d32;
}

.code-message--error {
    color: #c62828;
}

.profile-public-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}

.profile-public-card {
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-public-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-public-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-public-name {
    font-size: 1.4rem;
    margin: 0;
}

.profile-public-username {
    margin: 4px 0 0;
    color: #777;
    font-size: 0.9rem;
}

.profile-public-scores {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .profile-public-scores {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-score-card {
    border-radius: 12px;
    padding: 10px;
    background: #f9f9f9;
}

.profile-score-label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}

.profile-score-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.profile-score-meta {
    font-size: 0.8rem;
    color: #777;
}

.profile-score-empty {
    color: #999;
}

.profile-public-loading,
.profile-public-error {
    text-align: center;
    padding: 24px 8px;
    color: #555;
}

.btn-review-icon {
    font-size: 26px;
    line-height: 1;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-review-active {
    background: #ffe9b3; /* une légère couleur pour indiquer la sélection */
    border-color: #ffbd3d;
}

.page-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.reviews-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 700px) {
    .reviews-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reviews-summary-card {
    border-radius: 12px;
    padding: 10px;
    background: #f9f9f9;
}

.summary-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.summary-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.summary-meta {
    font-size: 0.8rem;
    color: #888;
}

.summary-empty {
    color: #aaa;
}

.reviews-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 700px) {
    .reviews-filters {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.filter-label {
    font-size: 0.85rem;
    color: #666;
    margin-right: 4px;
}

.chip {
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 0.85rem;
    cursor: pointer;
}

.chip--active {
    background: #ffe9b3;
    border-color: #ffbd3d;
}

.reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.review-item {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (min-width: 700px) {
    .review-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

.review-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-from {
    font-size: 0.95rem;
    font-weight: 500;
}

.review-role {
    font-size: 0.8rem;
    color: #777;
    margin-left: 4px;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

.review-right {
    margin-left: 50px;
    max-width: 480px;
}

.review-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.review-tag--positive {
    background: #e5f8e8;
    color: #217a33;
}

.review-tag--negative {
    background: #fde5e5;
    color: #b92525;
}

.review-comment {
    font-size: 0.9rem;
    color: #444;
}
/* Guides (seller / buyer / condition) */

.guide-page {
    padding-block: 32px;
}

.guide-hero {
    border-radius: 20px;
    padding: 20px 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFF7EB 0%, #FFFFFF 40%, #FFF1D0 100%);
    border: 1px solid var(--light);
}

.guide-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffffaa;
    border: 1px solid var(--light);
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.guide-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.guide-hero-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.guide-hero-sub {
    font-size: 14px;
    color: var(--charcoal);
    max-width: 520px;
}

/* Cards / steps */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.guide-card {
    border-radius: 18px;
    border: 1px solid var(--light);
    background: #fff;
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #FFF4D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.guide-step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}

.guide-card-title {
    font-weight: 600;
    font-size: 14px;
}

.guide-card-text {
    font-size: 13px;
    color: var(--charcoal);
}

.guide-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--gray);
}

/* Condition cards */

.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.condition-card {
    border-radius: 18px;
    border: 1px solid var(--light);
    background: #fff;
    padding: 14px 14px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #FFF4D9;
    color: #7A4D00;
}

.condition-title {
    font-weight: 600;
    font-size: 14px;
}

.condition-text {
    font-size: 13px;
    color: var(--charcoal);
}

.condition-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 10px;
}
/* Prohibited products */

.prohib-hero {
    border-radius: 20px;
    padding: 20px 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFF0F0 0%, #FFFFFF 40%, #FFE0E0 100%);
    border: 1px solid #F5A5A5;
}

.prohib-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffffaa;
    border: 1px solid #F5A5A5;
    font-size: 12px;
    color: #B03232;
    margin-bottom: 8px;
}

.prohib-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #E63946;
}

.prohib-hero-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.prohib-hero-sub {
    font-size: 14px;
    color: var(--charcoal);
    max-width: 540px;
}

.allowed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.allowed-card {
    border-radius: 18px;
    border: 1px solid var(--light);
    background: #fff;
    padding: 14px 14px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.allowed-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.allowed-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--charcoal);
}

.rules-block {
    border-radius: 18px;
    border: 1px solid var(--light);
    background: #fff;
    padding: 14px 14px 16px;
    margin-top: 8px;
}

.rules-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--charcoal);
}

.rules-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rules-icon {
    font-size: 14px;
    line-height: 1.3;
    margin-top: 1px;
}

.rules-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 10px;
}
/* Infos hub */

.infos-page {
    padding-block: 32px;
}

.infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.infos-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 18px;
    border: 1px solid var(--light);
    background: #fff;
    padding: 14px 14px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.infos-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.infos-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #FFF4D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.infos-card-title {
    font-weight: 600;
    font-size: 14px;
}

.infos-card-tag {
    font-size: 11px;
    color: var(--gray);
}

.infos-card-text {
    font-size: 13px;
    color: var(--charcoal);
}

.infos-card-link {
    margin-top: 6px;
    font-size: 13px;
}

    .infos-card-link a {
        color: var(--accent);
        text-decoration: underline;
    }

/* Cookies Page */
/* Cookies Page - Version sobre et textuelle */
.cookies-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--light);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 767px) {
    .cookies-wrapper {
        padding: 24px 16px;
    }
}

.cookies-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--charcoal);
}

.cookies-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light);
}

.cookies-h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--charcoal);
}

.cookies-wrapper p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

.cookies-wrapper ul {
    margin: 12px 0 24px;
    padding-left: 24px;
}

    .cookies-wrapper ul li {
        font-size: 15px;
        line-height: 1.6;
        color: #444;
        margin-bottom: 6px;
    }

/* Table */
.cookies-table {
    overflow-x: auto;
    margin: 20px 0 32px;
}

    .cookies-table table {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid var(--light);
        border-radius: 8px;
        overflow: hidden;
    }

    .cookies-table thead {
        background: #f7f8fa;
    }

    .cookies-table th {
        padding: 12px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        color: var(--charcoal);
        border-bottom: 2px solid var(--light);
    }

    .cookies-table td {
        padding: 12px;
        font-size: 14px;
        line-height: 1.5;
        color: #444;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: top;
    }

    .cookies-table tbody tr:last-child td {
        border-bottom: none;
    }

    .cookies-table tbody tr:hover {
        background: #fafafa;
    }

/* Back button */
.cookies-back {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--light);
    text-align: center;
}

/* Mobile responsive table */
@media (max-width: 767px) {
    .cookies-table {
        font-size: 13px;
    }

        .cookies-table th,
        .cookies-table td {
            padding: 10px 8px;
            font-size: 13px;
        }
}

/* Bandeau cookies */
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: var(--white);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

    .cookie-text strong {
        display: block;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .cookie-text p {
        margin: 0 0 8px 0;
        font-size: 14px;
        line-height: 1.5;
        color: #ddd;
    }

.cookie-link {
    background: none;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

    .cookie-link:hover {
        color: #ffbd3d;
    }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .cookie-actions {
        justify-content: flex-end;
    }
}

.cookie-actions .btn {
    white-space: nowrap;
}

/* Variante pour le bouton ghost dans le banner */
.cookie-banner .btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

    .cookie-banner .btn--ghost:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

.kpi-label {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.small {
    font-size: 0.85rem;
}

.kpi-table th,
.kpi-table td {
    padding: 8px 14px;
}

    .kpi-table th:first-child,
    .kpi-table td:first-child {
        width: 60%;
    }

    .kpi-table th:last-child,
    .kpi-table td:last-child {
        text-align: right;
        width: 40%;
    }

.admin-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.report-type-badge {
    font-size: 11px;
    padding: 4px 8px;
}

.report-type--listing {
    background: #EAF5FF;
    border-color: #C6DFFF;
    color: #114A7A;
}

.report-type--message {
    background: #FFF8E8;
    border-color: #FFE3B7;
    color: #7A4D00;
}

.report-type--user {
    background: #ECF8F1;
    border-color: #D3EFE0;
    color: #137A3A;
}

.report-target {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.report-target-main {
    font-size: 14px;
    font-weight: 500;
}

.report-target-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.report-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}