/*
Theme Name: Métairie du Ranch
Author: Théo H
Description: Thème sur mesure pour la ferme auberge Métairie du Ranch.
Version: 1.0
*/

:root {
    --primary-color: #b57c55;
    --accent-color: #6e3804;
    --text-color: #333;
    --bg-color: #f9f7f2;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
    background: #fdf1b8;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: url("http://metairieduranch.ch/wp-content/uploads/2026/02/template.png") no-repeat center center;
}

.header-left {
    flex: 0 0 30%;
    text-align: center;
}

.logo-bandeau > img {
    width: 250px;
}

.header-right h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-navigation {
    background: var(--primary-color);
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-navigation li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.main-navigation li a:hover {
    color: var(--accent-color);
}

.external-link {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- CONTENU --- */
.page-content {
    padding: 40px 0;
    min-height: 60vh;
}

h2 {
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

/* Boutons stylisés (WordPress) */
.wp-block-button__link {
    background-color: var(--accent-color) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    transition: transform 0.2s;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- FOOTER --- */
.site-footer {
    background: #222;
    color: #eee;
    padding: 40px 0;
    margin-top: 50px;
}

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

.site-footer h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.site-footer p {
    font-size: 0.9rem;
    margin: 5px 0;
}
.logo-header > img {
    width: 100px;
    max-width: 100px;
    margin-right: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
    }
    .header-left, .header-right {
        flex: 0 0 100%;
        text-align: center;
    }
}