/* Style de base */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #004a7f; /* Bleu foncé */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #ffc107; /* Jaune/Or */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-around; /* Ou space-between */
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #005a9f; /* Bleu légèrement plus clair */
    border-radius: 4px;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

footer {
    background-color: #f8f9fa; /* Gris clair */
    color: #6c757d; /* Gris moyen */
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6; /* Gris très clair */
}

/* Sections communes */
section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header {
    background-color: #e9ecef; /* Gris plus clair */
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    color: #004a7f;
}

/* Boutons CTA */
.cta-button {
    display: inline-block;
    background-color: #ffc107; /* Jaune/Or */
    color: #333;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e0a800; /* Jaune plus foncé */
}

.cta-button.secondary {
    background-color: #6c757d; /* Gris moyen */
    color: #fff;
}

.cta-button.secondary:hover {
    background-color: #5a6268; /* Gris plus foncé */
}

/* Page d'accueil spécifique */
.hero {
    text-align: center;
    background-color: #004a7f;
    color: #fff;
    padding: 3rem 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.key-benefits h2, .services-overview h2, .testimonials h2, .cta-guide h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #004a7f;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
    color: #005a9f;
}

.testimonials blockquote {
    background-color: #e9ecef;
    border-left: 5px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
}

.testimonials footer {
    text-align: right;
    font-style: normal;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
}

.cta-guide {
    text-align: center;
    background-color: #e9ecef;
}

/* Pages de contenu (Pourquoi Mérida, Investir, Services, etc.) */
.merida-content h2, .guide-content h2, .services-content h2, .blog-content h2, .contact-content h2, .properties-content h2 {
    color: #004a7f;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content ol, .guide-content ul, .services-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content li, .services-content li {
    margin-bottom: 0.5rem;
}

/* Formulaire de contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 2fr 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box; /* Important pour que padding ne dépasse pas width */
}

.form-group textarea {
    resize: vertical;
}

/* Blog */
.blog-post-summary {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-summary:last-child {
    border-bottom: none;
}

.blog-post-summary h3 {
    margin-bottom: 0.5rem;
}

.blog-post-summary a {
    color: #005a9f;
    text-decoration: none;
    font-weight: bold;
}

.blog-post-summary a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav a {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

