/* Base Styles */
:root {
    --primary-color: #d4af37; /* Gold color from logo */
    --secondary-color: #333333;
    --text-color: #333333;
    --light-color: #ffffff;
    --dark-color: #1a1a1a; /* Dark background color for footer */
    --gray-color: #f5f5f5;
    --dark-gray: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    /* Loi de Fitts - Augmenter la taille des boutons */
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    /* Améliorer l'accessibilité */
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

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

.btn-primary:hover {
    background-color: #b38728; /* Version plus foncée de l'or */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: #444444;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Loi de Fitts - Adaptation pour mobile */
@media (max-width: 768px) {
    .btn {
        padding: 16px 30px;
        font-size: 1.2rem;
        width: 100%;
        max-width: 300px;
        /* Positionner les boutons pour qu'ils soient facilement accessibles au pouce */
        margin: 10px auto;
    }
}

/* Header */
header {
    background-color: var(--light-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

/* Loi de Hick - Menu avec max 5 liens */
.main-menu {
    display: flex;
    align-items: center;
    /* Améliorer l'accessibilité */
    gap: 10px;
}

.main-menu li {
    margin-left: 20px;
    /* Loi de Fitts - Augmenter la zone cliquable */
    padding: 5px 0;
}

.main-menu a {
    font-weight: 600;
    position: relative;
    padding: 8px 12px;
    /* Loi de Fitts - Augmenter la zone cliquable */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-menu a:hover, .main-menu a.active {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.main-menu a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.language-switch a {
    padding: 5px 8px;
    margin: 0 2px;
}

.language-switch a.active {
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    /* Loi de Fitts - Augmenter la zone cliquable */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-color);
    padding: 120px 0;
    text-align: center;
    /* Pattern de lecture en Z (loi de Jakob Nielsen) */
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    /* Améliorer la lisibilité */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Améliorer la lisibilité pour le pattern en Z */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    /* Améliorer la lisibilité */
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Loi de Fitts - Boutons plus grands et faciles à cliquer */
    flex-wrap: wrap;
}

/* Loi de Fitts - Augmenter la taille des boutons sur mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--gray-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Property Types Section */
.property-types {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.property-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-type-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    /* Augmenter la taille pour faciliter le clic (loi de Fitts) */
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.property-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.property-type-img {
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-type-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.property-type-card:hover .property-type-img img {
    transform: scale(1.05);
}

.property-type-card h3 {
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    /* Augmenter la taille du texte pour meilleure lisibilité */
    font-weight: 600;
}

.property-type-card h3 {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 0;
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 10px;
}

.about-text h2:after {
    margin: 15px 0 0;
}

.about-text h3 {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content h2:after {
    background-color: var(--light-color);
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    color: #25D366;
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-link i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links h4, .footer-properties h4, .footer-contact h4 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h4:after, .footer-properties h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li, .footer-properties ul li {
    margin-bottom: 10px;
}

.footer-links a:hover, .footer-properties a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid, .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }
    
    .main-menu.active {
        left: 0;
    }
    
    .main-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 15px 30px; /* Larger touch target for mobile */
    }
    
    .services-grid, .property-types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .property-type-img {
        height: 180px;
    }
}