:root {
    --sage: #4A7C63;
    --sage-dark: #335744;
    --sage-light: #E9F2ED;
    --terracotta: #D97757;
    --terracotta-dark: #A6512F;
    --ink: #1F2421;
    --slate: #3D6B99;
    --gray: #6B6F6D;
    --bg: #FAFAF8;
    --white: #FFFFFF;
    --border: #E7E5DF;
}

/* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
        }

        body {
            font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg);
            color: var(--ink);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

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

        /* ===== SELECTS (style de formulaire uniforme, chevron personnalisé) ===== */
        select {
            width: 100%;
            padding: 10px 36px 10px 14px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
            background-color: var(--white);
            color: var(--ink);
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236B6F6D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
            background-repeat: no-repeat;
            background-position: right 14px center;
        }

        select:focus {
            outline: none;
            border-color: var(--sage);
        }

        .page-content {
            flex: 1 0 auto;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: inherit;
            font-weight: 600;
            color: var(--ink);
            line-height: 1.25;
        }

        h1 { font-size: 32px; }
        h2 { font-size: 24px; }
        h3 { font-size: 20px; }
        h4 { font-size: 18px; }
        h5, h6 { font-size: 16px; }

        /* ===== HEADER ===== */
        header {
            background: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--ink);
        }

        .logo-icon {
            display: flex;
            color: var(--sage);
        }

        .logo-icon svg {
            width: 32px;
            height: 32px;
            display: block;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 400;
            color: var(--sage);
        }

        .logo-text span {
            color: var(--terracotta);
        }

        nav {
            display: flex;
            gap: 25px;
            align-items: center;
        }

        nav a {
            text-decoration: none;
            color: var(--gray);
            font-weight: 500;
            transition: color 0.3s;
            font-size: 15px;
        }

        nav a:hover {
            color: var(--sage-dark);
        }

        .nav-messages {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .header-badge {
            background: #E53935;
            color: white;
            font-size: 11px;
            font-weight: 700;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s;
        }

        .btn-primary {
            background: var(--sage);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--sage-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74,124,99,0.3);
        }

        .btn-secondary {
            background: var(--sage-light);
            color: var(--sage-dark);
        }

        .btn-secondary:hover {
            background: var(--sage);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74,124,99,0.3);
        }

        .btn-outline {
            background: transparent;
            border: none;
            box-shadow: inset 0 0 0 2px var(--sage);
            color: var(--sage);
        }

        .btn-outline:hover {
            background: var(--sage);
            color: var(--white);
        }

        .btn-danger {
            background: #E53935;
            color: white;
        }

        .btn-danger:hover {
            background: #C62828;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(229,57,53,0.3);
        }

        .btn-cta {
            background: var(--terracotta);
            color: var(--white);
        }

        .btn-cta:hover {
            background: var(--terracotta-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(166,81,47,0.3);
        }

        .btn-small {
            padding: 6px 14px;
            font-size: 13px;
        }

        /* ===== HERO SECTION ===== */
        .hero {
            background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
            color: white;
            padding: 80px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '🐾';
            position: absolute;
            font-size: 200px;
            opacity: 0.1;
            top: -30px;
            right: -30px;
            transform: rotate(15deg);
        }

        .hero::after {
            content: '🐕';
            position: absolute;
            font-size: 150px;
            opacity: 0.1;
            bottom: -20px;
            left: -20px;
            transform: rotate(-10deg);
        }

        .hero-content {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 48px;
            margin-bottom: 15px;
            font-weight: 600;
            color: var(--white);
        }

        .hero p {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-buttons .btn {
            font-size: 16px;
            padding: 14px 30px;
        }

        /* ===== SEARCH BAR ===== */
        .search-section {
            max-width: 900px;
            margin: -30px auto 40px;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .search-bar {
            background: var(--white);
            border-radius: 4px;
            padding: 10px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .search-input-wrapper {
            position: relative;
            flex: 1;
            min-width: 150px;
        }

        .search-bar input,
        .search-bar select {
            width: 100%;
            padding: 12px 20px;
            border: 2px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        .search-bar select {
            flex: 1;
            min-width: 150px;
            width: auto;
            padding-right: 36px;
        }

        .search-bar input:focus,
        .search-bar select:focus {
            border-color: var(--sage);
        }

        .search-bar button {
            background: var(--sage);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.3s;
        }

        .search-bar button:hover {
            background: var(--sage-dark);
        }

        .search-suggestions {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: var(--white);
            border-radius: 4px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            list-style: none;
            margin: 0;
            padding: 6px 0;
            z-index: 20;
            max-height: 280px;
            overflow-y: auto;
            text-align: left;
        }

        .search-suggestion {
            padding: 10px 16px;
            font-size: 14px;
            color: var(--ink);
            cursor: pointer;
        }

        .search-suggestion:hover,
        .search-suggestion.is-active {
            background: var(--sage-light);
        }

        /* ===== CATEGORIES ===== */
        .section-title {
            text-align: center;
            font-size: 32px;
            margin: 50px 0 30px;
            color: var(--ink);
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: var(--sage);
            margin: 10px auto;
            border-radius: 4px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto 50px;
            padding: 0 20px;
        }

        .category-card {
            display: block;
            background: var(--white);
            border-radius: 4px;
            padding: 25px 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            border: 2px solid transparent;
            text-decoration: none;
            color: inherit;
        }

        .category-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.1);
            border-color: var(--sage);
        }

        .category-icon {
            font-size: 40px;
            margin-bottom: 10px;
            display: block;
        }

        .category-name {
            font-weight: 600;
            font-size: 15px;
            color: var(--gray);
        }

        .category-count {
            font-size: 12px;
            color: var(--gray);
            margin-top: 5px;
        }

        /* ===== ANNONCES EN VEDETTE ===== */
        .annonces-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            max-width: 1200px;
            margin: 0 auto 50px;
            padding: 0 20px;
        }

        .etat-vide {
            max-width: 480px;
            margin: 20px auto 50px;
            padding: 50px 20px;
            text-align: center;
        }

        .etat-vide-icone {
            width: 72px;
            height: 72px;
            margin: 0 auto 20px;
            color: var(--sage-light);
            opacity: 0.6;
        }

        .etat-vide-icone svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .etat-vide-titre {
            font-size: 22px;
            margin-bottom: 10px;
            color: var(--ink);
        }

        .etat-vide-texte {
            color: var(--gray);
            margin-bottom: 24px;
        }

        .etat-vide-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .annonce-card {
            display: block;
            background: var(--white);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            transition: all 0.3s;
            text-decoration: none;
            color: inherit;
        }

        .annonce-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        }

        .annonce-card-boostee {
            border: 2px solid var(--terracotta);
            box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        }

        .annonce-card-boostee:hover {
            box-shadow: 0 12px 32px rgba(0,0,0,0.16);
        }

        .annonce-image {
            height: 200px;
            background: linear-gradient(135deg, var(--sage-light), var(--white));
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            position: relative;
        }

        .annonce-photo-count {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: rgba(31,36,33,0.75);
            color: var(--white);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
        }

        .annonce-badges {
            position: absolute;
            top: 12px;
            left: 12px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

        .annonce-badge {
            background: var(--sage-light);
            color: var(--sage-dark);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .annonce-badge-boost {
            background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
            color: var(--white);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .annonce-badge-verified {
            background: var(--sage-dark);
            color: var(--white);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .annonce-badge-pro {
            background: var(--ink);
            color: var(--white);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .annonce-badge-service {
            background: var(--slate);
            color: var(--white);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .annonce-fav {
            position: absolute;
            top: 12px;
            right: 12px;
            background: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.3s;
        }

        .annonce-fav:hover {
            background: #FFEBEE;
            transform: scale(1.1);
        }

        .annonce-fav.is-favori {
            background: #FFEBEE;
        }

        .annonce-indisponible {
            background: #FFEBEE;
            color: #C62828;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 4px;
            display: inline-block;
            margin-bottom: 8px;
        }

        .annonce-info {
            padding: 18px;
        }

        .annonce-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--ink);
        }

        .annonce-price-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
        }

        .annonce-price {
            font-size: 20px;
            font-weight: 700;
            color: var(--sage);
        }

        .annonce-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 13px;
            color: var(--gray);
            margin-top: 10px;
        }

        .annonce-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* ===== PAGE DÉTAIL ANNONCE ===== */
        .annonce-detail {
            max-width: 1000px;
            margin: 30px auto 60px;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 35px;
        }

        .annonce-detail-gallery {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0; /* evite que le titre/prix (grid item sans min-width:0) force la colonne au-dela du viewport mobile */
        }

        .gallery-main {
            position: relative;
            height: 420px;
            border-radius: 4px;
            overflow: hidden;
            cursor: zoom-in;
            background: var(--sage-light);
        }

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

        .gallery-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.85);
            color: var(--ink);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 4px;
            font-size: 22px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .gallery-arrow:hover {
            background: var(--white);
        }

        .gallery-arrow-prev {
            left: 12px;
        }

        .gallery-arrow-next {
            right: 12px;
        }

        .gallery-thumbs {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            margin-top: 14px;
        }

        .gallery-thumb {
            flex-shrink: 0;
            width: 72px;
            height: 72px;
            border-radius: 4px;
            overflow: hidden;
            border: 2px solid transparent;
            padding: 0;
            cursor: pointer;
            background: none;
            transition: border-color 0.3s;
        }

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

        .gallery-thumb.is-active {
            border-color: var(--sage);
        }

        .annonce-detail-noimage {
            position: relative;
            height: 420px;
            background: linear-gradient(135deg, var(--sage-light), var(--white));
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 90px;
        }

        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(31,36,33,0.92);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .lightbox[hidden] {
            display: none;
        }

        .lightbox-image {
            max-width: 90vw;
            max-height: 85vh;
            object-fit: contain;
            cursor: zoom-out;
            border-radius: 4px;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            background: none;
            border: none;
            color: var(--white);
            font-size: 36px;
            cursor: pointer;
            line-height: 1;
        }

        .lightbox-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.15);
            color: var(--white);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 4px;
            font-size: 28px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .lightbox-arrow:hover {
            background: rgba(255,255,255,0.3);
        }

        .lightbox-arrow-prev {
            left: 24px;
        }

        .lightbox-arrow-next {
            right: 24px;
        }

        .annonce-detail-info {
            background: var(--white);
            border-radius: 4px;
            padding: 25px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            min-width: 0;
        }

        .annonce-detail-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .annonce-detail-title-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap; /* le titre + bouton Partager (flex-shrink:0) ne tiennent pas cote a cote a 320px */
        }

        .annonce-detail-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .annonce-fav-static {
            position: static;
            flex-shrink: 0;
        }

        .annonce-detail-price {
            font-size: 28px;
            font-weight: 700;
            color: var(--sage);
            margin: 10px 0;
        }

        .annonce-detail-meta {
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 20px;
        }

        .annonce-detail-description {
            white-space: pre-line;
            margin-bottom: 25px;
            color: var(--ink);
        }

        .annonce-detail-vendeur {
            border-top: 1px solid var(--border);
            padding-top: 20px;
        }

        .annonce-detail-vendeur-avis {
            font-size: 14px;
            color: var(--gray);
            margin-bottom: 12px;
        }

        .btn-contact-vendeur {
            display: block;
            width: 100%;
            text-align: center;
            padding: 16px 20px;
            font-size: 16px;
            margin-bottom: 15px;
            background: var(--terracotta);
            color: var(--white);
            box-shadow: none;
        }

        .btn-contact-vendeur:hover {
            background: var(--terracotta-dark);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(217,119,87,0.35);
        }

        .annonce-detail-vendeur-lien {
            display: block;
            width: 100%;
            text-align: center;
            margin-bottom: 15px;
        }

        .contact-form-panel {
            margin-top: 15px;
        }

        .contact-form-submit-row {
            text-align: center;
        }

        .annonce-signaler {
            margin-top: 15px;
        }

        .signaler-toggle {
            background: none;
            border: none;
            padding: 0;
            font-size: 13px;
            color: var(--gray);
            cursor: pointer;
            text-decoration: underline;
        }

        .signaler-toggle:hover {
            color: var(--ink);
        }

        .signaler-panel {
            margin-top: 12px;
        }

        @media (max-width: 768px) {
            .annonce-detail {
                grid-template-columns: 1fr;
            }
        }

        /* ===== PROFIL VENDEUR ===== */
        .vendeur-profil {
            max-width: 1100px;
            margin: 30px auto 60px;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 35px;
            align-items: start;
        }

        .vendeur-profil-annonces .annonces-grid {
            max-width: none;
            margin: 0 0 40px;
            padding: 0;
        }

        .vendeur-profil-carte {
            background: var(--white);
            border-radius: 4px;
            padding: 25px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            position: sticky;
            top: 20px;
        }

        .vendeur-carte-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .vendeur-carte-header h2 {
            font-size: 20px;
        }

        .vendeur-carte-infos {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 14px;
            color: var(--ink);
            margin-bottom: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }

        .vendeur-carte-note {
            font-size: 14px;
            color: var(--gray);
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }

        @media (max-width: 768px) {
            .vendeur-profil {
                grid-template-columns: 1fr;
            }

            .vendeur-profil-carte {
                position: static;
            }
        }

        /* ===== PROMO SERVICES ===== */
        .services-promo {
            max-width: 760px;
            margin: 50px auto;
            padding: 40px 30px;
            text-align: center;
            background: var(--sage-light);
            border-radius: 8px;
        }

        .services-promo h2 {
            font-size: 26px;
            color: var(--ink);
            margin-bottom: 12px;
        }

        .services-promo p {
            color: var(--gray);
            max-width: 560px;
            margin: 0 auto 20px;
        }

        .pwa-promo {
            max-width: 760px;
            margin: 60px auto 50px;
            padding: 60px 30px;
            text-align: center;
            background: var(--white);
            border: 2px solid var(--sage-light);
            border-radius: 8px;
        }

        .pwa-promo h2 {
            font-size: 26px;
            color: var(--ink);
            margin-bottom: 12px;
        }

        .pwa-promo p {
            color: var(--gray);
            max-width: 560px;
            margin: 0 auto 20px;
        }

        /* ===== AVANTAGES ===== */
        .features {
            background: var(--white);
            padding: 60px 20px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .feature-card {
            text-align: center;
            padding: 30px 20px;
        }

        .feature-icon {
            font-size: 45px;
            margin-bottom: 15px;
            display: block;
        }

        .feature-card h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: var(--ink);
        }

        .feature-card p {
            color: var(--gray);
            font-size: 14px;
        }

        /* ===== ALERTES ===== */
        .alert {
            padding: 12px 18px;
            border-radius: 4px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .alert-success {
            background: var(--sage-light);
            color: var(--sage-dark);
        }

        .alert-danger {
            background: #FFEBEE;
            color: #C62828;
        }

        /* ===== MESSAGERIE ===== */
        .messages-page,
        .conversation-page,
        .compte-page {
            max-width: 800px;
            margin: 30px auto 60px;
            padding: 0 20px;
        }

        .conversations-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .conversation-card {
            background: var(--white);
            border-radius: 4px;
            padding: 15px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            transition: all 0.3s;
            position: relative;
        }

        .conversation-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .conversation-card.unread {
            border: 2px solid var(--sage);
        }

        .conversation-card-link {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            color: inherit;
        }

        .conversation-thumbnail {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            border-radius: 4px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--sage-light), var(--white));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
        }

        .conversation-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .conversation-info {
            flex: 1;
            min-width: 0;
        }

        .conversation-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 10px;
        }

        .conversation-date {
            font-size: 12px;
            color: var(--gray);
            white-space: nowrap;
        }

        .conversation-annonce-title {
            font-size: 13px;
            color: var(--sage);
            font-weight: 600;
            margin: 2px 0;
        }

        a.conversation-annonce-title {
            display: block;
            text-decoration: none;
            margin: 10px 0 0;
            padding-top: 10px;
            border-top: 1px solid var(--border);
        }

        a.conversation-annonce-title:hover {
            text-decoration: underline;
        }

        .conversation-preview {
            font-size: 14px;
            color: var(--gray);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .conversation-unread-badge {
            background: #E53935;
            color: white;
            font-size: 12px;
            font-weight: 700;
            min-width: 22px;
            height: 22px;
            padding: 0 6px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .conversation-back {
            display: inline-block;
            margin-bottom: 15px;
            color: var(--sage);
            text-decoration: none;
            font-weight: 600;
        }

        .conversation-page-header {
            background: var(--white);
            border-radius: 4px;
            padding: 18px 20px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            margin-bottom: 20px;
        }

        .conversation-page-header h1 {
            font-size: 22px;
            margin-bottom: 5px;
        }

        .conversation-annonce-link {
            color: var(--sage);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
        }

        .conversation-thread {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 25px;
        }

        .message-bubble {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 4px;
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .message-bubble.mine {
            align-self: flex-end;
            background: var(--sage);
            color: white;
        }

        .message-bubble.theirs {
            align-self: flex-start;
        }

        .message-content {
            white-space: pre-line;
        }

        .message-date {
            font-size: 11px;
            opacity: 0.7;
            margin-top: 6px;
        }

        .compte-card {
            background: var(--white);
            border-radius: 4px;
            padding: 25px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
        }

        .compte-card p {
            margin-bottom: 12px;
        }

        .compte-page > .compte-card,
        .compte-page > .compte-card + .compte-card {
            margin-top: 20px;
        }

        .compte-card form > div,
        .auth-card form > div,
        .signaler-panel form > div,
        .contact-form-panel form > div {
            margin-bottom: 16px;
        }

        .compte-card label,
        .auth-card label,
        .signaler-panel label,
        .partage-modal label,
        .contact-form-panel label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 14px;
        }

        .compte-card input[type="text"],
        .compte-card input[type="email"],
        .compte-card input[type="password"],
        .compte-card input[type="number"],
        .compte-card input[type="tel"],
        .compte-card textarea,
        .auth-card input[type="text"],
        .auth-card input[type="email"],
        .auth-card input[type="password"],
        .auth-card textarea,
        .signaler-panel textarea,
        .partage-modal input[type="email"],
        .partage-modal textarea,
        .contact-form-panel textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
            background: var(--white);
            color: var(--ink);
        }

        .compte-card textarea,
        .auth-card textarea,
        .signaler-panel textarea,
        .partage-modal textarea {
            min-height: 100px;
            resize: vertical;
        }

        .partage-modal form > div {
            margin-bottom: 16px;
        }

        .compte-card input:focus,
        .compte-card textarea:focus,
        .auth-card input:focus,
        .signaler-panel textarea:focus {
            outline: none;
            border-color: var(--sage);
        }

        .compte-card .form-help,
        .compte-card .form-text,
        .auth-card .form-help {
            font-size: 12px;
            color: var(--gray);
            margin-top: 4px;
        }

        .compte-card .form-error,
        .auth-card .form-error {
            color: #C0392B;
            font-size: 13px;
            margin-top: 4px;
        }

        /* ===== Pages d'authentification (login / inscription) ===== */
        .auth-page {
            max-width: 420px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .auth-card {
            background: var(--white);
            border-radius: 4px;
            padding: 30px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
        }

        .contact-page {
            max-width: 560px;
        }

        .contact-page .auth-card textarea {
            min-height: 160px;
        }

        .auth-card .btn {
            width: 100%;
            margin-top: 6px;
        }

        /* =====  Groupe "champ mot de passe + bouton œil" =====
           Le bouton est sorti du champ (à côté, pas superposé) : les
           gestionnaires de mots de passe des navigateurs/extensions
           injectent leur propre icône à l'intérieur du champ, à droite, et
           se superposaient à notre bouton quand il flottait par-dessus
           l'input (clé + œil mélangés, illisible). En plaçant le bouton
           HORS du champ, dans son propre élément juste à côté, il n'y a
           plus aucun chevauchement possible, quel que soit le navigateur. */
        .password-field {
            display: flex;
            align-items: stretch;
        }

        .password-field input {
            flex: 1;
            min-width: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            border-right: none;
        }

        .password-field input:focus {
            /* Le focus doit rester visible sur les 4 côtés du champ, pas
               seulement 3 : la bordure droite du bouton voisin referme
               visuellement le groupe. */
            position: relative;
            z-index: 1;
        }

        .password-field-toggle {
            flex-shrink: 0;
            width: 44px;
            min-width: 44px;
            background: var(--white);
            border: 1px solid var(--border);
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
        }

        .password-field-toggle svg {
            flex-shrink: 0;
        }

        .password-field-toggle svg[hidden] {
            display: none;
        }

        .password-field-toggle:hover {
            color: var(--sage-dark);
        }

        .password-field-toggle:focus-visible {
            outline: 2px solid var(--sage);
            outline-offset: -2px;
            color: var(--sage-dark);
            position: relative;
            z-index: 1;
        }

        /* Masque l'œil natif d'Edge et le bouton d'auto-remplissage de
           Safari : sans ça, ils s'ajoutent À CÔTÉ de notre bouton (dans le
           champ) et dédoublent l'icône. */
        input[type="password"]::-ms-reveal,
        input[type="password"]::-ms-clear {
            display: none;
        }

        input::-webkit-credentials-auto-fill-button {
            visibility: hidden;
            display: none !important;
            pointer-events: none;
        }

        .auth-links {
            text-align: center;
            margin-top: 18px;
            font-size: 14px;
            color: var(--gray);
        }

        .auth-hint {
            text-align: center;
            margin-bottom: 20px;
            font-size: 14px;
            color: var(--gray);
        }

        .auth-hint a {
            color: var(--sage);
            font-weight: 600;
            text-decoration: none;
        }

        .auth-hint a:hover {
            text-decoration: underline;
        }

        .auth-links a {
            color: var(--sage);
            font-weight: 600;
            text-decoration: none;
        }

        .auth-links a:hover {
            text-decoration: underline;
        }

        /* ===== Mon compte : disposition à onglets ===== */
        .compte-layout-page {
            max-width: 1100px;
            margin: 30px auto 60px;
            padding: 0 20px;
        }

        .compte-layout {
            display: grid;
            grid-template-columns: 240px 1fr;
            gap: 30px;
            align-items: start;
        }

        .compte-tabs {
            display: flex;
            flex-direction: column;
            gap: 4px;
            background: var(--white);
            border-radius: 4px;
            padding: 12px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            position: sticky;
            top: 90px;
        }

        .compte-tab-link {
            display: block;
            width: 100%;
            padding: 10px 14px;
            border-radius: 4px;
            border: none;
            background: none;
            color: var(--ink);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            text-align: left;
            cursor: pointer;
        }

        .compte-tab-link:hover {
            background: var(--sage-light);
        }

        .compte-tab-link.is-active {
            background: var(--sage);
            color: var(--white);
        }

        /* Onglet "Offre illimitée" : terracotta, réservé aux actions de conversion */
        .compte-tab-link-cta {
            color: var(--terracotta-dark);
        }

        .compte-tab-link-cta:hover {
            background: var(--terracotta);
            color: var(--white);
        }

        .compte-tab-link-cta.is-active {
            background: var(--terracotta);
            color: var(--white);
        }

        .compte-tab-panels {
            min-width: 0;
        }

        .compte-tab-panel[hidden] {
            display: none;
        }

        .compte-tab-panel > .section-title {
            text-align: left;
            font-size: 24px;
            margin: 0 0 20px;
        }

        .compte-tab-panel > .compte-card + .compte-card,
        .compte-tab-panel > .compte-card + h2 {
            margin-top: 20px;
        }

        @media (max-width: 768px) {
            .compte-layout {
                grid-template-columns: 1fr;
            }

            .compte-tabs {
                position: static;
                flex-direction: row;
                flex-wrap: wrap;
            }

            .compte-tab-link {
                width: auto;
                flex: 1 1 auto;
                text-align: center;
            }
        }

        .avis-auteur a {
            color: var(--sage);
            text-decoration: none;
        }

        .avis-auteur a:hover {
            text-decoration: underline;
        }

        .mes-annonces-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .mon-annonce-card {
            background: var(--white);
            border-radius: 4px;
            padding: 16px 20px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
        }

        .mon-annonce-header {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .mon-annonce-thumbnail {
            width: 64px;
            height: 64px;
            flex-shrink: 0;
            border-radius: 4px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--sage-light), var(--white));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
        }

        .mon-annonce-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* ===== ÉTAPE POST-DÉPÔT (récapitulatif + offre de mise en avant) ===== */
        .publiee-recap {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .publiee-photo {
            width: 100px;
            height: 100px;
            flex-shrink: 0;
            border-radius: 4px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--sage-light), var(--white));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
        }

        .publiee-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .publiee-titre {
            font-size: 20px;
            font-weight: 600;
            color: var(--ink);
            margin-bottom: 6px;
        }

        .publiee-prix {
            font-size: 22px;
            font-weight: 700;
            color: var(--sage-dark);
        }

        .publiee-offre {
            margin-top: 20px;
            text-align: center;
        }

        .publiee-offre-titre {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .publiee-offre-texte {
            color: var(--gray);
            margin-bottom: 18px;
        }

        .publiee-skip {
            text-align: center;
            margin-top: 20px;
        }

        .mon-annonce-title a {
            font-size: 16px;
            font-weight: 600;
            color: var(--ink);
            text-decoration: none;
        }

        .mon-annonce-title a:hover {
            color: var(--sage-dark);
        }

        .mon-annonce-details {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--gray);
            margin-top: 4px;
        }

        .mon-annonce-prix {
            font-weight: 700;
            color: var(--sage);
        }

        .mon-annonce-statut {
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            color: white;
        }

        .mon-annonce-statut.statut-en_ligne {
            background: var(--sage);
        }

        .mon-annonce-statut.statut-vendue {
            background: var(--gray);
        }

        .mon-annonce-statut.statut-masquee {
            background: var(--gray);
        }

        .mon-annonce-statut.statut-en_attente_moderation {
            background: var(--gray);
        }

        .mon-annonce-statut.statut-retire_admin {
            background: #C62828;
        }

        .mon-annonce-statut.statut-masque {
            /* variante service (sans e final) du statut masque/masquee cote annonce */
            background: var(--gray);
        }

        .mon-annonce-groupes {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border);
        }

        .mon-annonce-groupe {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }

        .mon-annonce-groupe-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            color: var(--gray);
            font-weight: 600;
        }

        .mon-annonce-groupe-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }

        .mon-annonce-groupe-options {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }

        .mon-annonce-groupe-options .mon-annonce-groupe-label {
            display: block;
            text-align: center;
            font-size: 13px;
            margin-bottom: 8px;
        }

        .mon-annonce-groupe-options .mon-annonce-groupe-actions {
            justify-content: center;
            align-items: flex-start;
        }

        .mon-annonce-option {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-width: 220px;
        }

        .mon-annonce-option .btn {
            align-self: center;
        }

        .mon-annonce-option-desc {
            font-size: 12px;
            color: var(--gray);
            line-height: 1.4;
            text-align: center;
        }

        .marquer-vendue-form {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .marquer-vendue-select {
            width: auto;
            padding: 7px 28px 7px 10px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 13px;
            font-family: inherit;
            background-color: var(--white);
            color: var(--ink);
            max-width: 180px;
            background-position: right 10px center;
        }

        .lien-supprimer {
            background: none;
            border: none;
            padding: 0;
            font-size: 13px;
            color: #C0392B;
            cursor: pointer;
            text-decoration: underline;
        }

        .lien-supprimer:hover {
            color: #962D21;
        }

        .promo-input {
            width: 110px;
            padding: 8px 10px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 13px;
            font-family: inherit;
            text-transform: uppercase;
        }

        .promo-input:focus {
            outline: none;
            border-color: var(--sage);
        }

        .promo-toggle-link {
            background: none;
            border: none;
            padding: 0;
            font-size: 12px;
            color: var(--sage-dark);
            cursor: pointer;
            text-decoration: underline;
        }

        .promo-toggle-link:hover {
            color: var(--sage);
        }

        .promo-code-panel:not([hidden]) {
            display: inline-flex;
        }

        .paiement-boutons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .paiement-icone {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        .btn-paypal,
        .btn-stripe {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .btn-paypal {
            background: #0070BA;
            color: var(--white);
        }

        .btn-paypal:hover {
            background: #003087;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,112,186,0.3);
        }

        .btn-stripe {
            background: #635BFF;
            color: var(--white);
        }

        .btn-stripe:hover {
            background: #4B44CC;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99,91,255,0.3);
        }

        .paiement-choix-retour {
            display: inline-block;
            margin-bottom: 16px;
            color: var(--sage-dark);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
        }

        .paiement-choix-retour:hover {
            text-decoration: underline;
        }

        .paiement-choix-recap {
            margin-bottom: 20px;
        }

        .paiement-choix-cible {
            color: var(--gray);
            font-size: 14px;
            margin-bottom: 8px;
        }

        .paiement-choix-prix {
            font-size: 32px;
            font-weight: 700;
            color: var(--terracotta);
            margin-top: 16px;
        }

        .paiement-choix-promo-panel {
            margin: 12px 0;
        }

        .paiement-choix-recompense {
            background: var(--sage-light);
        }

        .paiement-choix-recompense-titre {
            font-weight: 600;
            color: var(--sage-dark);
            margin-bottom: 4px;
        }

        .paiement-choix-recompense-detail {
            font-size: 13px;
            color: var(--sage-dark);
            margin-bottom: 0;
        }

        .paiement-choix-boutons {
            margin-top: 20px;
            justify-content: center;
        }

        .paiement-choix-avantages-titre {
            font-size: 17px;
            color: var(--ink);
            margin-bottom: 6px;
            text-align: center;
        }

        .paiement-choix-avantages .pro-avantages-grid {
            margin-bottom: 4px;
        }

        .avis-liste {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .avis-card {
            background: var(--white);
            border-radius: 4px;
            padding: 18px 20px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
        }

        .avis-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .avis-note {
            font-size: 15px;
        }

        .avis-date {
            font-size: 12px;
            color: var(--gray);
        }

        .avis-auteur {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .avis-commentaire {
            font-size: 14px;
            color: var(--ink);
        }

        /* ===== PARRAINAGE ===== */
        .parrainage-accroche {
            font-size: 18px;
            font-weight: 700;
            color: var(--sage-dark);
            margin-bottom: 6px;
        }

        .parrainage-intro {
            color: var(--gray);
            font-size: 14px;
        }

        .parrainage-lien-row {
            display: flex;
            gap: 10px;
            margin-top: 14px;
        }

        .parrainage-lien-input {
            flex: 1;
            min-width: 0;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
            background: var(--bg);
            color: var(--ink);
        }

        .parrainage-copie-confirmation {
            margin-top: 8px;
            font-size: 13px;
            color: var(--sage-dark);
        }

        .parrainage-copie-confirmation:not([hidden]) {
            display: block;
        }

        .parrainage-partage-boutons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }

        .parrainage-stats-row {
            display: flex;
            justify-content: space-around;
            text-align: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .parrainage-stat {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .parrainage-stat-nombre {
            font-size: 28px;
            font-weight: 700;
            color: var(--sage-dark);
        }

        .parrainage-stat-label {
            font-size: 13px;
            color: var(--gray);
        }

        .parrainage-souscard-titre {
            font-size: 16px;
            margin-bottom: 14px;
        }

        .parrainage-recompenses-liste,
        .parrainage-filleuls-liste {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .parrainage-recompense-item,
        .parrainage-filleul-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: var(--bg);
            border-radius: 4px;
            font-size: 14px;
        }

        .parrainage-recompense-expiration {
            font-size: 12px;
            color: var(--gray);
        }

        .parrainage-statut {
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            color: white;
        }

        .parrainage-statut.statut-inscrit {
            background: var(--gray);
        }

        .parrainage-statut.statut-qualifie {
            background: var(--sage);
        }

        .parrainage-statut.statut-refuse {
            background: #C62828;
        }

        /* ===== DEVENIR PRO ===== */
        .pro-avantages-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 16px;
            margin: 20px 0 26px;
        }

        .pro-avantage-card {
            flex: 0 1 calc(50% - 8px);
            background: var(--sage-light);
            border-radius: 6px;
            padding: 20px 18px;
        }

        .pro-avantage-card .pro-avantage-icone {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--terracotta);
            font-size: 20px;
            margin-bottom: 12px;
        }

        .pro-avantage-card h3 {
            font-size: 15px;
            color: var(--ink);
            margin-bottom: 6px;
        }

        .pro-avantage-card p {
            font-size: 13px;
            color: var(--gray);
            line-height: 1.5;
        }

        @media (max-width: 520px) {
            .pro-avantage-card {
                flex-basis: 100%;
            }
        }

        .pro-cta-row {
            text-align: center;
            margin-top: 24px;
        }

        .avis-moyenne {
            font-size: 15px;
            color: var(--gray);
        }

        /* ===== TUILES PHOTOS (dépôt / modification d'annonce) ===== */
        .photo-tuiles {
            margin-bottom: 16px;
        }

        .photo-tuiles label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 14px;
        }

        .photo-tuiles-grille {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .photo-tuile {
            width: 90px;
            height: 90px;
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }

        .photo-tuile-vide {
            border: 2px dashed var(--border);
            background: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
        }

        .photo-tuile-vide:hover {
            border-color: var(--sage);
            color: var(--sage);
        }

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

        .photo-tuile-retrait-form {
            display: contents;
        }

        .photo-tuile-retrait {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            border: none;
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .photo-tuile-retrait:hover {
            background: var(--terracotta-dark);
        }

        .photo-tuiles-input-cache {
            display: none;
        }

        /* ===== LISTE ANNONCES ===== */
        .liste-page {
            max-width: 1200px;
            margin: 30px auto 60px;
            padding: 0 20px;
        }

        .liste-filtres {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 15px;
            align-items: end;
            background: var(--white);
            border-radius: 4px;
            padding: 20px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            margin-bottom: 20px;
        }

        .filtre-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 0;
        }

        .filtre-group label {
            font-size: 12px;
            font-weight: 600;
            color: var(--gray);
        }

        .filtre-group select,
        .filtre-group input {
            padding: 9px 12px;
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
        }

        .filtre-group select {
            padding-right: 36px;
        }

        .filtre-actions {
            flex-direction: row;
            align-self: end;
            gap: 10px;
        }

        .filtre-groupe-double {
            display: flex;
            gap: 15px;
            grid-column: span 2;
        }

        .filtre-groupe-double .filtre-group {
            flex: 1;
            min-width: 0;
        }

        .liste-recherche-active {
            font-size: 15px;
            color: var(--ink);
            margin-bottom: 15px;
        }

        .liste-total {
            color: var(--gray);
            margin-bottom: 15px;
            font-size: 14px;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        .pagination-info {
            color: var(--gray);
            font-size: 14px;
        }

        /* ===== FOOTER ===== */
        footer {
            background: var(--sage-dark);
            color: white;
            padding: 50px 20px 20px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }

        .footer-col h4 {
            font-size: 18px;
            margin-bottom: 15px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-brand-text {
            font-weight: 400;
            color: var(--sage-light);
        }

        .footer-brand-accent {
            color: var(--terracotta);
        }

        .footer-logo-icon {
            display: flex;
            color: var(--sage-light);
        }

        .footer-logo-icon svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .footer-col h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 3px;
            background: var(--sage-light);
        }

        .footer-col a {
            display: block;
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            margin-bottom: 8px;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-col a:hover {
            color: var(--sage-light);
        }

        .footer-bottom {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 14px;
            opacity: 0.7;
        }

        .footer-cookies-lien {
            color: inherit;
            text-decoration: underline;
        }

        .footer-cookies-lien:hover {
            color: var(--terracotta);
        }

        /* ===== BANNIERE CONSENTEMENT COOKIES ===== */
        .cookie-banniere {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%; /* la resolution auto via left/right seule se montre instable
                            (largeur figee a une valeur trop grande) sur cet element qui a
                            une transition et est bascule via [hidden] ; une largeur
                            explicite elimine toute ambiguite de calcul. */
            z-index: 1000;
            background: var(--sage-dark);
            color: var(--white);
            padding: 16px 20px;
            box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
        }

        .cookie-banniere-contenu {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }

        .cookie-banniere-contenu p {
            margin: 0;
            font-size: 14px;
            flex: 1 1 320px;
            min-width: 0; /* evite que le texte force le bandeau au-dela du viewport (piege flex min-width:auto) */
        }

        .cookie-banniere-actions {
            display: flex;
            gap: 10px;
            flex-shrink: 0;
        }

        .cookie-banniere-actions .btn-outline {
            box-shadow: inset 0 0 0 2px var(--white);
            color: var(--white);
        }

        .cookie-banniere-actions .btn-outline:hover {
            background: var(--white);
            color: var(--sage-dark);
        }

        /* ===== PAGES LEGALES ===== */
        .legal-page {
            max-width: 780px;
            margin: 30px auto 60px;
            padding: 0 20px;
        }

        .legal-header {
            margin-bottom: 24px;
        }

        .legal-header h1 {
            margin-bottom: 6px;
        }

        .legal-updated {
            color: var(--gray);
            font-size: 14px;
        }

        .legal-card {
            background: var(--white);
            border-radius: 4px;
            padding: 30px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
        }

        .legal-toc {
            background: var(--white);
            border-radius: 4px;
            padding: 20px 24px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.06);
            margin-bottom: 24px;
        }

        .legal-toc h2 {
            font-size: 15px;
            margin-bottom: 12px;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .legal-toc ol {
            columns: 2;
            column-gap: 30px;
            padding-left: 20px;
            font-size: 14px;
        }

        .legal-toc li {
            margin-bottom: 8px;
            break-inside: avoid;
        }

        .legal-toc a {
            color: var(--ink);
            text-decoration: none;
        }

        .legal-toc a:hover {
            color: var(--sage-dark);
            text-decoration: underline;
        }

        .legal-article {
            margin-bottom: 32px;
            scroll-margin-top: 90px;
        }

        .legal-article:last-child {
            margin-bottom: 0;
        }

        .legal-article h2 {
            font-size: 19px;
            color: var(--sage-dark);
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .legal-article p {
            margin-bottom: 12px;
        }

        .legal-article p:last-child {
            margin-bottom: 0;
        }

        .legal-article ul,
        .legal-article ol {
            margin: 0 0 12px 20px;
        }

        .legal-article ul:last-child,
        .legal-article ol:last-child {
            margin-bottom: 0;
        }

        .legal-intro {
            color: var(--gray);
            margin-bottom: 24px;
        }

        .legal-article li {
            margin-bottom: 6px;
        }

        .legal-article a {
            color: var(--sage-dark);
            font-weight: 600;
            text-decoration: none;
        }

        .legal-article a:hover {
            text-decoration: underline;
        }

        .legal-facts {
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 14px 20px;
            font-size: 15px;
        }

        .legal-facts dt {
            font-weight: 600;
            color: var(--gray);
        }

        .legal-facts dd {
            color: var(--ink);
        }

        .legal-table {
            width: 100%;
            border-collapse: collapse;
            margin: 4px 0 16px;
            font-size: 14px;
            display: block;
            overflow-x: auto; /* table-layout:auto peut forcer la largeur du tableau
                                  au-dela de 100% si un mot ne peut pas se couper (ex:
                                  "supplementaires") ; il doit alors defiler DANS son
                                  propre cadre, pas faire defiler toute la page. */
        }

        .legal-table th,
        .legal-table td {
            text-align: left;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border);
        }

        .legal-table th {
            background: var(--sage-light);
            color: var(--sage-dark);
            font-weight: 600;
        }

        .legal-footer-links {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 14px;
        }

        .legal-footer-links a {
            color: var(--sage);
            font-weight: 600;
            text-decoration: none;
        }

        .legal-footer-links a:hover {
            text-decoration: underline;
        }

        /* ===== PAGE INSTALLER L'APPLICATION ===== */
        .pwa-install-confirmation {
            text-align: center;
            background: var(--sage-light);
            border-radius: 8px;
            padding: 40px 30px;
            margin-bottom: 24px;
        }

        .pwa-install-confirmation-icone {
            font-size: 36px;
            display: block;
            margin-bottom: 10px;
        }

        .pwa-install-confirmation h2 {
            color: var(--sage-dark);
            margin-bottom: 8px;
        }

        .pwa-install-confirmation p {
            color: var(--gray);
        }

        .pwa-install-blocs {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
        }

        .pwa-install-bloc {
            flex: 1 1 300px;
        }

        .pwa-install-bloc .btn {
            margin-top: 8px;
        }

        .pwa-install-indisponible {
            margin-top: 14px;
            font-size: 13px;
            color: var(--gray);
        }

        /* ----- Mockup téléphone (visuel d'en-tête) ----- */
        .pwa-hero {
            display: flex;
            justify-content: center;
            margin-bottom: 28px;
        }

        .pwa-hero-phone {
            width: 130px;
            height: 230px;
            border: 3px solid var(--sage-dark);
            border-radius: 24px;
            padding: 12px 10px 16px;
            background: var(--white);
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        }

        .pwa-hero-phone-notch {
            width: 36px;
            height: 5px;
            border-radius: 3px;
            background: var(--sage-dark);
            margin: 0 auto 12px;
        }

        .pwa-hero-phone-screen {
            background: var(--sage-light);
            border-radius: 12px;
            height: 100%;
            padding: 12px 10px;
        }

        .pwa-hero-app-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .pwa-hero-app-dot {
            aspect-ratio: 1;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.7);
        }

        .pwa-hero-app-icon {
            aspect-ratio: 1;
            border-radius: 8px;
            background: var(--sage-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 10px rgba(51, 87, 68, 0.4);
        }

        .pwa-hero-app-icon-logo {
            width: 65%;
            height: 65%;
            color: var(--white);
        }

        .pwa-hero-app-icon-logo svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* ----- Étapes iOS (icônes + numérotation) ----- */
        .pwa-steps {
            margin-top: 20px;
        }

        .pwa-step {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 14px 0;
        }

        .pwa-step + .pwa-step {
            border-top: 1px solid var(--border);
        }

        .pwa-step-icone {
            position: relative;
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--sage-light);
            color: var(--sage-dark);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pwa-step-icone svg {
            width: 22px;
            height: 22px;
        }

        .pwa-step-numero {
            position: absolute;
            bottom: -4px;
            right: -4px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--terracotta);
            color: var(--white);
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--white);
        }

        .pwa-step p {
            margin: 0;
            padding-top: 10px;
        }

        /* ===== CASE A COCHER (formulaires) ===== */
        .form-check {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 16px;
        }

        .form-check input[type="checkbox"] {
            width: 17px;
            height: 17px;
            margin-top: 2px;
            accent-color: var(--sage);
            flex-shrink: 0;
        }

        .form-check label {
            font-size: 14px;
            font-weight: 400;
            margin-bottom: 0;
        }

        .form-check a {
            color: var(--sage-dark);
            font-weight: 600;
            text-decoration: none;
        }

        .form-check a:hover {
            text-decoration: underline;
        }

        /* ===== BOUTON PARTAGER ===== */
        .partage {
            position: relative;
        }

        .partage-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 4px;
            color: var(--sage-dark);
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
        }

        .partage-toggle:hover {
            background: var(--sage-light);
            border-color: var(--sage);
        }

        .partage-menu {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 20;
            min-width: 190px;
            background: var(--white);
            border-radius: 4px;
            border: 1px solid var(--border);
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            padding: 6px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .partage-menu[hidden] {
            display: none;
        }

        .partage-menu-item {
            display: block;
            padding: 9px 12px;
            border-radius: 4px;
            color: var(--ink);
            text-decoration: none;
            font-size: 14px;
            cursor: pointer;
        }

        .partage-menu-item:hover {
            background: var(--sage-light);
            color: var(--sage-dark);
        }

        .partage-copie-confirmation {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 20;
            background: var(--sage-dark);
            color: var(--white);
            font-size: 13px;
            font-weight: 600;
            padding: 8px 14px;
            border-radius: 4px;
            white-space: nowrap;
        }

        .partage-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(31,36,33,0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 100;
        }

        .partage-modal-overlay[hidden] {
            display: none;
        }

        .partage-modal {
            position: relative;
            width: 100%;
            max-width: 440px;
            max-height: 90vh;
            overflow-y: auto;
            background: var(--white);
            border-radius: 4px;
            padding: 30px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        }

        .partage-modal h2 {
            font-size: 20px;
            margin-bottom: 18px;
            color: var(--ink);
            padding-right: 20px;
        }

        .partage-modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 30px;
            height: 30px;
            border: none;
            background: transparent;
            color: var(--gray);
            font-size: 22px;
            line-height: 1;
            border-radius: 4px;
            cursor: pointer;
        }

        .partage-modal-close:hover {
            background: var(--sage-light);
            color: var(--sage-dark);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 15px;
            }

            nav {
                flex-wrap: wrap;
                justify-content: center;
                gap: 12px;
            }

            .hero h1 {
                font-size: 32px;
            }

            .hero {
                padding: 50px 20px;
            }

            .search-bar {
                flex-direction: column;
                border-radius: 4px;
            }

            .search-input-wrapper,
            .search-bar select {
                width: 100%;
            }

            /* grid-template-columns: repeat(auto-fit, minmax(160px,1fr)) ne
               laisse pas assez de place pour .filtre-actions sous 480px :
               les boutons (texte non coupable) debordent de leur colonne. */
            .liste-filtres {
                grid-template-columns: 1fr;
            }

            .filtre-groupe-double {
                grid-column: auto;
            }

            .section-title {
                font-size: 26px;
            }

            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .legal-toc ol {
                columns: 1;
            }

            .legal-facts {
                grid-template-columns: 1fr;
                gap: 4px 0;
            }

            .legal-facts dt {
                margin-top: 8px;
            }
        }

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

/* Onglet "Statistiques" de Mon compte (phase 2C) */
.compte-stats-banner {
    background: var(--sage-light);
    color: var(--sage-dark);
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}

.compte-stats-subtitle {
    margin: 24px 0 10px;
    font-size: 16px;
}

.compte-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-size: 14px;
    display: block;
    overflow-x: auto; /* comme .legal-table : le tableau defile DANS son
                          propre cadre a 375px, jamais toute la page. */
}

.compte-stats-table th,
.compte-stats-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.compte-stats-table td.wrap {
    white-space: normal;
}

.compte-stats-table th {
    background: var(--sage-light);
    color: var(--sage-dark);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compte-stats-table tr:last-child td {
    border-bottom: none;
}
