/* Global Styles */
:root {
    --primary-color: #E9C46A;
    --secondary-color: #F1FAEE;
    --dark-color: #2A2A2A;
    --light-color: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 140px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed;
    color: white;
    padding: 180px 0;
    margin-top: -140px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1, .hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navbar */
.navbar {
    padding: 0;
    min-height: 140px;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 120px;
    width: auto;
    margin-right: 25px;
}

/* Style élégant pour le texte */
.navbar-brand span {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 2px;
    line-height: 1;
    color: #2A2A2A;
    text-transform: capitalize;
    padding: 0.2em 0;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

/* Ligne décorative sous le texte */
.navbar-brand span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(233, 196, 106, 0.8) 0%,
        rgba(233, 196, 106, 0.2) 100%
    );
}

/* Second texte décoratif */
.navbar-brand span::before {
    content: 'Premium Properties';
    position: absolute;
    bottom: -1.2em;
    left: 2px;
    font-family: 'Cormorant', serif;
    font-size: 0.45em;
    font-weight: 300;
    font-style: italic;
    color: #666;
    letter-spacing: 3px;
    text-transform: none;
}

/* Animation au survol */
.navbar-brand:hover span {
    color: #E9C46A;
    transition: color 0.3s ease;
}

.navbar-brand:hover span::after {
    background: linear-gradient(to right, 
        rgba(42, 42, 42, 0.8) 0%,
        rgba(42, 42, 42, 0.2) 100%
    );
    transition: background 0.3s ease;
}

.navbar-brand img {
    height: 120px;  
    width: auto;
    margin-right: 25px;
    transition: transform 0.3s ease;  
}

.navbar-brand:hover img {
    transform: scale(1.05);  
}

.navbar-brand .brand-text {
    font-family: 'Cinzel', serif;  
    font-size: 2.8rem;
    font-weight: 600;
    color: #2A2A2A;
    text-decoration: none;
    letter-spacing: 3px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 5px;
}

.navbar-brand .brand-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #E9C46A, transparent);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand span {
    font-style: italic;
    display: inline-block;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.property-image {
    position: relative;
    height: 250px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--dark-color);
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.feature-item p {
    margin-bottom: 0;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--dark-color);
    padding: 0.75rem 2rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d4b15f;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Empêcher le défilement horizontal */
        width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar {
        width: 100%;
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero {
        padding: 80px 0;
        background-attachment: scroll !important; /* Désactiver fixed pour mobile */
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 120px 0 80px 0;
    }
    
    .page-header h1.display-4 {
        font-size: 2.2rem;
    }
}

/* Styles spécifiques pour les smartphones */
@media (max-width: 576px) {
    body {
        overflow-x: hidden; /* Empêcher le défilement horizontal */
        width: 100%;
    }
    
    .navbar {
        width: 100%;
        max-width: 100vw;
    }
    
    .navbar-brand {
        max-width: 75%;
    }
    
    .navbar-brand span {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 120px 0 60px 0;
        margin-top: -56px;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .hero h1.display-4 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .home-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
        hyphens: auto;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .hero p.lead {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem !important;
    }
    
    .hero .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 100px 0 60px 0;
        margin-top: -56px;
    }
    
    .page-header h1.display-4 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem !important;
    }
    
    .page-header p.lead {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.8rem;
        white-space: normal; /* Permettre le retour à la ligne sur mobile */
    }
}

/* Styles pour les très petits écrans */
@media (max-width: 375px) {
    body {
        overflow-x: hidden; /* Empêcher le défilement horizontal */
        width: 100%;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }
    
    .navbar {
        width: 100%;
        max-width: 100vw;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .navbar-brand {
        max-width: 70%;
    }
    
    .navbar-brand span {
        font-size: 1.2rem;
        margin-right: 0;
    }
    
    .navbar-brand img {
        height: 30px;
        margin-right: 10px;
    }
    
    .hero {
        padding: 100px 0 40px 0;
        margin-top: -56px;
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .home-title {
        font-size: 1.5rem !important;
        line-height: 1.1;
        padding: 0 5px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .hero p.lead {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 1rem !important;
        padding: 0 5px;
    }
    
    .hero .d-flex.justify-content-center {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .hero .btn-lg {
        width: 80%;
        margin: 0 auto;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Styles spécifiques pour les téléphones en mode portrait */
@media (max-height: 700px) and (max-width: 500px) {
    .hero {
        padding: 80px 0 30px 0;
    }
    
    .home-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero p.lead {
        font-size: 0.8rem;
        margin-bottom: 0.8rem !important;
    }
    
    .hero .btn-lg {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Styles spécifiques pour les appareils mobiles en mode paysage */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        overflow-x: hidden;
    }
    
    .hero {
        padding: 60px 0 30px 0;
        margin-top: -56px;
        background-attachment: scroll !important;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        width: 100%;
    }
    
    .home-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero p.lead {
        font-size: 0.9rem;
        margin-bottom: 0.8rem !important;
    }
    
    .hero .btn-lg {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 196, 106, 0.25);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover !important;
    background-position: center center !important;
    color: white;
    padding: 150px 0 100px 0;
    margin-top: -140px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.landlords-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://images.pexels.com/photos/323780/pexels-photo-323780.jpeg');
    background-position: center center !important;
}

.companies-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://images.pexels.com/photos/1643383/pexels-photo-1643383.jpeg');
    background-position: center center !important;
}

.about-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg');
    background-position: center center !important;
}

.contact-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://images.pexels.com/photos/269077/pexels-photo-269077.jpeg');
    background-position: center center !important;
}

.services-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg');
    background-position: center center !important;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 24px;
    color: white;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Feature List */
.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.feature-item p {
    margin-bottom: 0;
    color: #666;
}

/* Contact Form */
.contact-form label {
    font-weight: 400;
}

.contact-info i {
    font-size: 1.5rem;
    width: 2rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Style personnalisé pour les strong dans la section about */
.content-section strong {
    color: #2A2A2A;
    font-weight: 500;
    letter-spacing: -0.02em;
    font-size: 1.25em;
    position: relative;
    padding: 0 4px;
    display: inline-block;
    margin: 0 2px;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

/* Style spécial pour le titre Our Story */
.section-title {
    font-size: 2.5em;
    font-weight: 400;
    color: #2A2A2A;
    margin-bottom: 1.5em;
    position: relative;
    display: inline-block;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
}

.nowrap-title {
    white-space: nowrap !important;
    overflow: visible;
    font-size: 2.2em;
}

@media (max-width: 992px) {
    .nowrap-title {
        font-size: 1.8em;
    }
}

@media (max-width: 576px) {
    .nowrap-title {
        white-space: normal !important;
        font-size: 1.6em;
    }
}

/* About Page Styles */
.about-text {
    margin-bottom: 2rem;
    text-align: justify;
    line-height: 1.6;
    word-spacing: normal;
}

.about-text p {
    margin-bottom: 1rem;
    word-spacing: normal;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-color);
    word-spacing: 0.05em !important;
    letter-spacing: normal;
    white-space: normal !important;
}

.about-text .text-primary {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-text {
        text-align: left;
    }
    
    .about-text .text-primary {
        font-size: 1.2rem;
    }
}

/* Intro Text Styles */
.intro-text {
    word-spacing: 0.05em !important;
    white-space: normal !important;
    display: inline-block;
    width: 100%;
}

.intro-text strong {
    display: inline;
}

/* Tagline Styles */
.tagline {
    color: var(--primary-color) !important;
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

/* Mission Statement Styles */
.intro-text strong {
    display: inline;
    word-spacing: 0 !important;
    letter-spacing: -0.01em !important;
    white-space: normal !important;
}

.mission-text {
    word-spacing: 0 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    display: inline-block;
    width: auto;
    text-align: left;
    overflow: visible;
}

.nowrap-container {
    display: inline-block;
    white-space: nowrap !important;
    overflow: visible;
    max-width: 100%;
}

/* Focus Text Styles */
.focus-text {
    word-spacing: 0 !important;
    white-space: normal !important;
    letter-spacing: normal;
    text-align: justify;
    line-height: 1.6;
}

.focus-text strong {
    display: inline;
    word-spacing: 0;
    letter-spacing: normal;
}

.about-text .nowrap-title {
    display: inline-block;
    white-space: nowrap !important;
    overflow: visible;
    font-size: inherit;
}

.about-text .mission-text {
    word-spacing: 0 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    font-size: inherit;
}
