/* ========================================
   RENTILOC CUSTOM STYLES
   Palette: Orange chaud + neutre
======================================== */

/* === GENERAL === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #555555;
    background-color: #F9F7F1;
}

/* Links */
a {
    color: #FF7F00;
    text-decoration: none;
}
a:hover {
    color: #FF9933;
    text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #333333;
    font-weight: 700;
}

/* Buttons */
.btn-primary, .custom-primary-btn {
    background-color: #FF7F00;
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover, .custom-primary-btn:hover {
    background-color: #FF9933;
    color: #fff;
}

/* === HERO SECTION === */
.home-banner-section {
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    color: #fff;
}

.home-banner-section .banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.home-banner-section .banner-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.home-banner-section .demo-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Hero Stats */
.home-banner-section .total-client h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.home-banner-section .total-client p {
    font-size: 0.9rem;
}

/* === HOW IT WORKS SECTION === */
.how-it-works-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 80px 0;
    background-color: #FFF7EE;
}

.how-it-works-step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 25px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    position: relative;
}

.how-it-works-step .icon {
    font-size: 40px;
    color: #FF7F00;
    margin-bottom: 15px;
}

.how-it-works-step h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.how-it-works-step p {
    font-size: 0.95rem;
    color: #555;
}

/* Flèche entre étapes (desktop) */
.how-it-works-step::after {
    content: "\2192"; /* flèche droite */
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #FF7F00;
}
.how-it-works-step:last-child::after {
    display: none;
}

/* Responsive: empiler verticalement sur mobile */
@media (max-width: 992px) {
    .how-it-works-container {
        flex-direction: column;
        align-items: center;
    }
    .how-it-works-step::after {
        content: "\2193"; /* flèche bas */
        right: auto;
        left: 50%;
        top: 100%;
        transform: translateX(-50%) translateY(10px);
    }
}

/* === PROPERTIES SECTION === */
.properties-section {
    padding: 80px 0;
}

.property-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.property-card .property-content {
    padding: 20px;
}

.property-card h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.property-card p {
    font-size: 0.9rem;
    color: #555;
}

.property-card .btn {
    margin-top: 15px;
}

/* === TRUST / CLIENT SECTION === */
.customer-section {
    padding: 80px 0;
    background-color: #FFF7EE;
}

.customer-card {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === TESTIMONIALS === */
.client-section-container {
    background-color: #fff;
    padding: 80px 0;
}

.client-testimonial-slide {
    padding: 20px;
    background-color: #FFF7EE;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin: 15px;
}

.client-testimonial-slide p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === FAQ === */
.faq-main-container {
    background-color: #FFF7EE;
    padding: 80px 0;
}

.custom-accordion-header {
    font-weight: 600;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 12px;
    background-color: #fff;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.custom-accordion-header:hover {
    background-color: #FFFAF0;
}

/* === FORM CTA === */
.landlord-cta {
    background-color: #FF7F00;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 16px;
    margin-top: 40px;
}
.landlord-cta a {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}
.landlord-cta a:hover {
    color: #FFF5E6;
}

/* Comment ça marche */
.how-it-works-header {
    text-align: center;
    margin-bottom: 40px;
}

.how-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.how-it-works-step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 25px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    position: relative;
}

/* Flèche entre étapes */
.how-it-works-step::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #FF7F00;
}
.how-it-works-step:last-child::after { display: none; }

/* Mobile : empile vertical */
@media (max-width: 992px) {
    .how-steps {
        flex-direction: column;
        align-items: center;
    }
    .how-it-works-step::after {
        content: "\2193";
        right: auto;
        left: 50%;
        top: 100%;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Forcer centrage du h2 et du p dans la section "Comment ça marche" */
.how-it-works-header h2,
.how-it-works-header p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Centrage du titre et du texte "Comment ça marche" uniquement pour desktop */
@media (min-width: 992px) {
    .how-it-works-header {
        display: flex;
        flex-direction: column;
        align-items: center; /* centre horizontalement les enfants */
        text-align: center;  /* texte centré */
        max-width: 800px;    /* limite la largeur pour que ce soit joli */
        margin: 0 auto 40px auto; /* centrage + marge inférieure */
    }

    .how-it-works-header h2,
    .how-it-works-header p {
        text-align: center !important;
        margin: 0 auto !important;
    }
}

.properties-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.properties-section .section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.properties-section .section-header p {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.property-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-info {
    padding: 15px;
    text-align: center;
}

.property-info h4 {
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 5px;
}

.property-details {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.property-price {
    font-size: 18px;
    font-weight: 600;
    color: #FF7F00;
}

/* Badges */
.property-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.property-badge.location {
    background-color: #FF7F00;
    color: #fff;
}

.property-badge.sale {
    background-color: #28a745;
    color: #fff;
}

/* CTA Button */
.property-cta {
    background-color: #FF7F00;
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.property-cta:hover {
    background-color: #e67300;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero .container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

/* Correction texte tronqué dans Comment ça marche */
.how-steps .how-it-works-step h5 {
    white-space: nowrap;          /* Empêche le mot de se couper */
    overflow: visible;            /* Affiche tout le texte */
    text-overflow: initial;       /* Annule tout ellipsis éventuel */
}

/* Assure un espace suffisant pour le texte */
.how-it-works-step {
    flex: 1;
    min-width: 250px;             /* Largeur minimum pour le titre */
}

/* Desktop : largeur stable pour éviter les coupures */
@media (min-width: 992px) {
    .how-steps {
        display: flex;
        justify-content: center;
        gap: 35px;
        align-items: stretch;
    }
}

/* Empêche Google Translate de casser le texte et force l'adaptation */
.how-it-works-step h5,
.how-it-works-step p {
    white-space: normal !important; 
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Assure un espace suffisant même si la traduction est plus longue */
.how-it-works-step {
    min-width: 280px !important;
    max-width: 100% !important;
}

/* Sur desktop : garantit que les blocs ne se compressent plus */
@media (min-width: 992px) {
    .how-steps {
        display: flex;
        justify-content: center;
        gap: 40px;
        align-items: stretch;
        flex-wrap: nowrap !important;
    }
}

/* Empêche Google Translate de tronquer ou compresser le texte */
.notranslate {
    white-space: normal !important;
    display: block !important;
    overflow: visible !important;
    width: auto !important;
}

/* Force une largeur minimale même quand Google change le mot */
.how-it-works-step {
    min-width: 300px !important;
    word-break: break-word !important;
}

/* Desktop : empêche les colonnes d'écraser le texte après traduction */
@media (min-width: 992px) {
    .how-steps {
        display: flex;
        gap: 40px;
        flex-wrap: nowrap !important;
        justify-content: center;
    }
}
