/* =====================================================================
   Fête Médiévale de Saint Savournin - Feuille de style principale
   Palette : vert (thème principal) + jaune/or (accents médiévaux)
   ===================================================================== */

:root {
    --color-green-dark: #234224;
    --color-green: #3a6b3a;
    --color-green-light: #5c8f5c;
    --color-gold: #d9a520;
    --color-yellow: #f0c419;
    --color-parchment: #f8f1de;
    --color-brown: #5c3d20;
    --color-text: #2b2b23;
    --color-white: #ffffff;

    --font-title: Georgia, 'Times New Roman', serif;
    --font-body: 'Segoe UI', Arial, sans-serif;

    --radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-parchment);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--color-green-dark);
}

a { color: var(--color-green-dark); }

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

.container--narrow { max-width: 760px; }

/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--color-green-dark);
    border-bottom: 4px solid var(--color-gold);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-yellow);
}

.site-logo__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px dashed var(--color-yellow);
    border-radius: 50%;
    font-size: 0.8rem;
}

.site-logo__text {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-yellow);
    display: block;
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    border-bottom-color: var(--color-yellow);
    color: var(--color-yellow);
}

.site-nav a.nav-facebook {
    background: var(--color-gold);
    color: var(--color-green-dark);
    padding: 6px 14px;
    border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
    color: var(--color-white);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    color: var(--color-yellow);
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-yellow);
    color: var(--color-green-dark);
}

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

.btn--small { padding: 6px 14px; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section--alt { background: rgba(58, 107, 58, 0.08); }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--color-gold);
}

.card__img { width: 100%; height: 170px; object-fit: cover; }
.card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card__date { color: var(--color-green); font-size: 0.9rem; font-weight: 600; }
.card__location { font-size: 0.9rem; }

/* ---------- Article ---------- */
.article-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin: 20px 0; }
.article-content { margin-top: 20px; }
.back-link { display: inline-block; margin-bottom: 16px; text-decoration: none; }

/* ---------- Formulaires ---------- */
.form { max-width: 600px; margin-top: 24px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; }
.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}
.form-group--honeypot { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; }
.alert--success { background: #e3f3e3; border: 1px solid var(--color-green); }
.alert--error { background: #fbe6e6; border: 1px solid #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-green-dark);
    color: var(--color-white);
    text-align: center;
    padding: 24px 20px;
    margin-top: 40px;
}

.site-footer a { color: var(--color-yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }
    .site-nav.open { display: flex; }
}
