/**
 * Styles pour la page détail bien vendu
 * Design sobre et élégant
 */

/* ====================================
   HERO SECTION
   ==================================== */

.hero-wrapper {
    margin-top: 64px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 500px;
}

.hero-wrapper .hero-image-container {
    height: 580px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.hero-wrapper .hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-wrapper .vendu-badge {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-wrapper .vendu-text {
    font-weight: 700;
    letter-spacing: 3px;
}

/* Version mobile du hero */
.hero-wrapper .hero-image-container-mobile {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.hero-wrapper .hero-image-container-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-wrapper .hero-image-container-mobile .vendu-text {
    letter-spacing: 2px;
}

/* ====================================
   CONTENT GRID (2 colonnes)
   ==================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.content-grid .w3-col {
    float: none !important;
    width: auto !important;
}

/* ====================================
   SIDEBAR CARACTÉRISTIQUES
   ==================================== */

.caracteristiques-sidebar {
    position: sticky;
    top: 100px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.caracteristiques-sidebar .w3-row {
    display: flex;
    align-items: center;
}

.caracteristiques-sidebar .w3-col {
    float: none !important;
}

.caracteristiques-sidebar .w3-col.s7 {
    flex: 0 0 auto;
    text-align: left;
}

.caracteristiques-sidebar .w3-col.s5 {
    flex: 1;
    text-align: right;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.hero-title-container {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* ====================================
   SECTION DESCRIPTION (avec chevauchement)
   ==================================== */

.description-section {
    background: white; /* Fond blanc */
    color: #333;
    padding-top: 80px; /* Espace normal */
    padding-bottom: 80px;
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -120px; /* L'image chevauche la boîte (margin négatif pour remonter sous l'image) */
    position: relative;
    z-index: 10; /* En-dessous de l'image */
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 48px 32px;
    padding-top: 140px; /* Espace en haut pour laisser l'image chevaucher */
}

.description-content {
    padding-right: 32px;
}

.bien-titre {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.bien-ville {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 32px;
}

.bien-ville i {
    margin-right: 8px;
}

.bien-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.bien-description p {
    margin-bottom: 16px;
}

/* ====================================
   CARACTÉRISTIQUES (encadré droite)
   ==================================== */

.caracteristiques-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.car-titre {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #000;
}

.car-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.car-item:last-child {
    border-bottom: none;
}

.car-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.car-label i {
    margin-right: 8px;
    color: #666;
}

.car-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.prix-value {
    font-size: 1.5rem;
    color: #000;
    font-weight: 700;
}

/* ====================================
   SECTION CONSEILLÈRE
   ==================================== */

.conseillere-section {
    background: #f9f9f9;
}

.conseillere-presentation h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.conseillere-presentation p {
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Bloc Avis Google */
.avis-google-block {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.avis-google-block h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.avis-stars {
    font-size: 1.8rem;
    color: #ffc107; /* Or pour les étoiles */
    margin-bottom: 16px;
}

.avis-stars i {
    margin-right: 4px;
}

.avis-count {
    font-size: 1rem;
    color: #666;
    margin-left: 12px;
    font-weight: 600;
}

.voir-avis-btn {
    margin-top: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.voir-avis-btn:hover {
    background-color: #f5f5f5 !important;
    transform: translateY(-2px);
}

/* Bloc Contact */
.contact-block {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-block h4 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
}

.contact-cta {
    margin-bottom: 24px;
}

.cta-rdv-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.cta-rdv-btn:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-direct {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.contact-direct p {
    margin: 8px 0;
    font-size: 1.05rem;
}

.contact-direct a {
    color: #1a1f3a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-direct a:hover {
    color: #d4af37;
}

/* Réseaux sociaux */
.social-icons-detail {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.social-icons-detail a {
    font-size: 2rem;
    margin: 0 12px;
    color: #666;
    transition: all 0.3s ease;
}

.social-icons-detail a:hover {
    color: #d4af37;
    transform: scale(1.1);
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .caracteristiques-sidebar {
        position: static;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .description-container {
        margin-top: -80px;
        padding: 32px 24px;
    }

    .description-content {
        padding-right: 0;
        margin-bottom: 32px;
    }

    .bien-titre {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .hero-wrapper .hero-image-container {
        height: 300px;
    }

    .avis-block {
        margin-top: 28px !important;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .description-container {
        margin-top: -60px;
        padding: 24px 16px;
    }

    .bien-titre {
        font-size: 1.4rem;
    }

    .caracteristiques-card {
        padding: 24px 16px;
    }

    .prix-value {
        font-size: 1.3rem;
    }

    .avis-google-block,
    .contact-block {
        padding: 24px;
    }

    .cta-rdv-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
