:root {
    --bg-color: #fcfbfa;
    --text-color: #1c1b1a;
    --primary: #1a3a2a;
    /* Vert forêt */
    --border: #e4e2df;
    --font-title: "Playfair Display", Georgia, serif;
    --font-body: system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* --- Header Style Journal --- */
.site-header {
    background: #ffffff;
    width: 100%;
}

.header-top {
    text-align: center;
    padding: 2rem 1rem 1.5rem 1rem;
}

.brand { 
    font-family: var(--font-title); 
    font-size: 2.2rem; 
    font-weight: bold; 
    color: var(--primary); 
    text-decoration: none;
}

.main-nav {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1rem;
    position: relative;
}

.nav-links {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-size: 0.95rem; 
    font-weight: 500;
}

.btn-prive { 
    border: 1px solid var(--text-color); 
    padding: 0.3rem 0.8rem; 
}

/* --- Le Bouton Burger (Caché sur PC) --- */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 auto;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* --- Responsive Mobile/Tablette (Écrans inférieurs à 1125px) --- */
@media (max-width: 1125px) {
    .brand {
        font-size: 1.7rem;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Aligne le bouton burger à droite */
        padding: 0.5rem 1.5rem;
    }

    .burger-menu {
        display: flex; /* Affiche les 3 barres */
        margin: 0; /* Annule le centrage automatique */
    }

    .nav-links {
        display: none; /* Cache les liens par défaut */
        flex-direction: column;
        align-items: center; /* Centre les liens quand ils s'ouvrent */
        width: 100%;
        gap: 1.2rem;
        padding: 1rem 0;
        border-top: 1px dashed var(--border); /* Petite séparation subtile à l'ouverture */
        margin-top: 0.5rem;
    }

    /* La classe activée par le JavaScript */
    .nav-links.open {
        display: flex; 
    }
}

/* Hero avec CSS Grid */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 5rem 0;
}

.hero-text h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-text .lead {
    font-size: 1.15rem;
    color: #555;
}

.hero-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    padding: 0.5rem;
    background: #fff;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 6rem;
    font-size: 0.85rem;
    color: #666;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-credits {
    font-family: var(--font-body);
}

.footer-legal {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.footer-legal:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.page-title-block {
    margin: 4rem 0 2rem 0;
}

.page-title-block h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--text-color);
    margin-top: 2rem;
}

.doc-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.doc-row.header {
    font-weight: bold;
    font-size: 0.9rem;
    text-uppercase: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--text-color);
}

.doc-title {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-color);
}

.doc-date {
    color: #666;
    font-size: 0.9rem;
}

.doc-link {
    text-align: right;
}

.doc-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.doc-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .doc-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .doc-link { text-align: left; }
}
.form-wrapper {
    max-width: 600px;
    margin: 4rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-input {
    background-color: transparent;
    border: 1px solid var(--border);
    padding: 0.8rem;
    font-family: var(--font-body);
    color: var(--text-color);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #11261b;
}

.main-label {
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: normal !important;
}

.radio-label input[type="radio"], .checkbox-label input[type="checkbox"] {
    margin-top: 0.3rem;
    accent-color: var(--primary); /* Force la couleur verte du collectif sur la coche */
}

.input-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    font-style: italic;
}

.checkbox-group {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid var(--border);
}

.warning-text {
    color: #a30000 !important; /* Rouge foncé institutionnel, pas agressif mais sérieux */
    margin-top: 0.5rem;
    display: block;
    font-size: 0.8rem;
}

.timeline-section {
    margin: 4rem 0;
    border-left: 2px solid var(--primary);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

/* Le petit point d'ancrage sur la ligne */
.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-2rem - 7px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
}

.timeline-item h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0.3rem 0 0.8rem 0;
}

.timeline-item p {
    color: #444;
    max-width: 800px;
}