/* Styles généraux */
body {
    font-family: 'Raleway', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Padding légèrement augmenté pour plus de respiration */
}

/* Header et navigation - VERSION OPTIMISÉE */
.header {
    background-color: #f5f0e6;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Meilleure répartition de l'espace */
    align-items: center;
    padding: 1rem 0;
    min-height: 80px;
    gap: 2rem; /* Espacement augmenté pour plus de clarté */
    max-width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 101;
}

.logo img {
    height: auto;
    width: auto;
    max-width: 200px; /* Taille réduite pour laisser plus de place à la navigation */
    max-height: 65px;
    filter: contrast(1.2) brightness(1.1);
    background-color: #f5f0e6 !important;
    padding: 5px;
    border-radius: 4px;
}

/* Navigation optimisée */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end; /* Alignement à droite pour un meilleur équilibre */
    align-items: center;
    max-width: calc(100% - 220px); /* Ajusté selon la nouvelle taille du logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 0.5rem; /* Utilisation de gap pour un espacement uniforme */
    flex-wrap: nowrap; /* Empêche le retour à la ligne sur desktop */
    justify-content: flex-end;
}

.nav-item {
    flex-shrink: 0;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 400; /* Poids normal comme dans le footer */
    font-size: 0.9rem; /* Taille similaire au footer (0.9rem) */
    transition: all 0.3s ease;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    display: block;
    text-align: center;
    line-height: 1.6; /* Hauteur de ligne identique au footer */
}

.nav-link:hover {
    color: #ffffff;
    background-color: #a39274;
    transform: translateY(-2px); /* Léger effet de survol */
}

/* Menu burger pour mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #333333;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    color: #333333;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #a39274;
}

/* Sections de contenu */
.page-content {
    padding: 3rem 0;
}

.intro-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.6;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    color: #333333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #a39274;
}

/* Mise en page améliorée */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-box {
    background-color: #f5f0e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cta-section {
    background-color: #f5f0e6;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 4rem;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #a39274;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #a39274;
    border: 2px solid #a39274;
}

.btn-secondary:hover {
    background-color: #a39274;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #333333;
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #a39274;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.75rem;
}

.footer-link a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #a39274;
}

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

/* Icônes de services */
.service-icon {
    font-size: 0 !important;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    background-color: inherit !important;
    border: none !important;
}

.service-card:nth-child(1) .service-icon {
    background-image: url('../images/icons/maison.png');
    background-color: #ffffff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.service-card:nth-child(2) .service-icon {
    background-image: url('../images/icons/scpi.png');
    background-color: #ffffff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.service-card:nth-child(3) .service-icon {
    background-image: url('../images/icons/conseil-financier.png');
    background-color: #ffffff !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive design optimisé */
@media (max-width: 1024px) {
    .header-content {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem; /* Taille légèrement réduite mais cohérente */
        padding: 0.5rem 0.6rem;
    }
    
    .logo img {
        max-width: 180px;
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 3; /* Assure que le burger apparaît à droite */
    }
    
    nav {
        order: 4; /* Navigation après le burger */
    }
    
    .nav-menu {
        position: fixed;
        top: 100px; /* Position sous le header */
        left: 0;
        right: 0;
        background-color: #f5f0e6;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: 6px;
        font-size: 0.9rem; /* Taille cohérente avec le footer */
    }
    
    .header-content {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        order: 1; /* Logo en premier */
    }
    
    .logo img {
        max-width: 160px;
        max-height: 55px;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.8rem 0;
        gap: 1rem;
    }
    
    .logo img {
        max-width: 140px;
        max-height: 50px;
    }
    
    .page-content {
        padding: 2rem 0;
    }
    
    .page-title {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    
    .intro-section {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .info-box {
        padding: 1.25rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
}

/* Animation du menu burger */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}