/* ================================================
   vendus.css — Styles spécifiques page Nos Succès
   Complète style.css sans le surcharger
   ================================================ */

/* --- HERO VENDUS --- */
.hero--vendus {
    min-height: 80vh;
    background-color: var(--text-color);
}

.hero-vendus-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

.hero-vendus-title span {
    color: var(--accent-color);
    font-weight: 700;
    font-style: italic;
}

.hero-vendus-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.br-desktop { display: inline; }

/* --- BADGE VENDU — RUBAN MINIMALISTE --- */

/*
 * Overlay semi-transparent sur la photo pour les biens vendus.
 * Donne un effet "archive" discret sans masquer le visuel.
 */
.card-sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 37, 47, 0.35);
    pointer-events: none;
}

/*
 * Ruban "Vendu" — diagonal, coin supérieur droit.
 * Couleur : --accent-color #d4af37 (or de la charte).
 * Minimaliste : texte uppercase Montserrat, pas de bordure décorative excessive.
 */
.card-ribbon {
    position: absolute;
    top: 18px;
    right: -30px;
    width: 120px;
    padding: 5px 0;
    background: var(--accent-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

/* Variante "Loué" — même style, cohérence visuelle */
.property-card--sold .card-ribbon {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Désature légèrement la photo pour renforcer l'effet "vendu" */
.property-card--sold .card-photo img {
    filter: saturate(0.85);
    transition: filter 0.4s ease, transform 0.5s ease;
}

.property-card--sold:hover .card-photo img {
    filter: saturate(1);
}

/* Prix en muted pour les vendus (confidentiel ou affiché) */
.property-card--sold .card-price {
    color: var(--muted-text);
    font-size: 1.1rem;
}

/* --- CTA BAS DE PAGE --- */
.vendus-cta-section {
    background: var(--text-color);
    padding: 6rem 2rem;
}

.vendus-cta-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.vendus-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: none;
    color: #fff;
    line-height: 1.2;
}

.vendus-cta-sub {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* Bouton accent plein */
.btn--accent {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.btn--accent:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .br-desktop { display: none; }
    .hero-vendus-title { font-size: 1.3rem; }
    .vendus-cta-section { padding: 4rem 1.5rem; }

    /* Ruban plus compact sur mobile */
    .card-ribbon {
        top: 14px;
        right: -28px;
        width: 110px;
        font-size: 0.58rem;
    }
}
