@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* 🎨 Déclaration des couleurs */
:root {
    --main-color: #1F3D5A;
    --bg-color: #F4ECE2;
    --accent-hover: #14283d;
    --consent-bg: #2c3e50;
    --consent-hover: #1a242f;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--main-color);
}

/* Garde le fond noir du bandeau */
header {
    background-image: url("header-bg.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 4rem;
}

/* Mise en page en ligne : logo + titre + slogan */
.header-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo presque aussi haut que le bandeau */
.logo {
    height: 100px;  /* ajuste à volonté */
    width: auto;
}

/* Titre + slogan */
.site-title h1 {
    margin: 0;
    font-size: 2.2rem;
}

.site-title .slogan {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

main {
    max-width: 960px;
    margin: auto;
    padding: 2rem;
}

h2 {
    font-size: 1.5rem;
    cursor: pointer;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
}

/* Bandeau déroulant (trait bleu sur le côté) */
.content {
    display: none;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid var(--main-color);
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 8px;
}

.card {
    padding: 1rem;
    background: #f4f4f4;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

footer {
    background-image: url("footer-bg.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid var(--main-color);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--accent-hover);
}

.contact-form .consent {
    display: block;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.4;
}

.contact-form .consent input {
    margin-right: 0.5rem;
}

.flash-messages {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    color: #fff;
}

.flash.success {
    background-color: #28a745;
}

.flash.error {
    background-color: #dc3545;
}

/* 🍪 Cookie banner stylisé */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--main-color);
    color: white;
    padding: 1em;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-banner button {
    margin-left: 1em;
    padding: 0.5em 1em;
    background-color: white;
    color: var(--main-color);
    border: none;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
}

.cookie-banner button:hover {
    background-color: var(--bg-color);
}

/* Footer déjà en blanc */
footer a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}
