/* ==========================================================================
   J'agis pour Thézy — style.css v3
   Design épuré et moderne, fidèle à la charte graphique (palette du logo).
   ========================================================================== */

:root {
    /* Palette — charte graphique */
    --carmin: #8B1A1A;
    --carmin-vif: #A32020;
    --foret: #2D4A10;
    --foret-fonce: #1E3208;
    --prairie: #7DB83A;
    --ciel: #87C4E0;
    --creme: #F8F6F2;
    --creme-2: #F0EEE7;
    --encre: #2C2C2C;
    --gris: #66665F;
    --blanc: #FFFEFB;

    /* Teintes dérivées */
    --hairline: rgba(45, 74, 16, 0.12);
    --hairline-soft: rgba(45, 74, 16, 0.08);
    --ciel-fond: rgba(135, 196, 224, 0.14);
    --prairie-fond: rgba(125, 184, 58, 0.12);

    /* Typographie */
    --font-title: 'Roboto Slab', Georgia, serif;
    --font-body: 'Open Sans', system-ui, sans-serif;

    /* Géométrie */
    --radius: 16px;
    --radius-s: 10px;

    /* Ombres très douces */
    --shadow-rest: 0 1px 2px rgba(30, 50, 8, 0.04);
    --shadow-hover: 0 18px 36px -18px rgba(30, 50, 8, 0.25);

    /* Mouvement */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.2s var(--ease-out);
    --t-med: 0.45s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--encre);
    background-color: var(--creme);
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--carmin);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--carmin-vif);
}

:focus-visible {
    outline: 3px solid rgba(125, 184, 58, 0.7);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--foret);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: -0.01em;
    color: var(--carmin);
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
    font-size: 1.3rem;
}

/* Filet d'accent sous les titres de section centrés */
h2.text-center {
    margin-bottom: 0.75rem;
}

h2.text-center::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--prairie);
    margin: 0.85rem auto 0;
}

.section-padding {
    padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.alt-bg {
    background-color: var(--creme-2);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   En-tête
   ========================================================================== */

header {
    background-color: rgba(248, 246, 242, 0.88);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid var(--hairline-soft);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    /* Décalé vers le bord gauche de l'écran */
    margin-left: clamp(-30px, -2.5vw, -6px);
    border-radius: 50%;
}

.logo {
    height: clamp(96px, 13vw, 165px);
    width: auto;
    /* Le logo déborde volontairement du bandeau d'en-tête */
    margin-bottom: clamp(-70px, -6vw, -30px);
    filter: drop-shadow(0 10px 20px rgba(30, 50, 8, 0.2));
    transition: transform var(--t-med);
}

.logo-link:hover .logo {
    transform: rotate(-3deg) scale(1.04);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 34px;
}

.nav-menu a {
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    color: var(--foret);
    padding: 6px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--prairie);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--foret-fonce);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    font-size: 1.7em;
    background: none;
    border: none;
    color: var(--foret);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

/* ==========================================================================
   Héros
   ========================================================================== */

.hero {
    position: relative;
    background: linear-gradient(180deg, #E3F0F8 0%, #EFF1E9 62%, var(--creme) 100%);
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(7.5rem, 16vw, 11.5rem);
    overflow: hidden;
}

/* Décor animé du héros : nuages, oiseaux, arbres et herbes dans le vent */
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    left: -320px;
    width: 290px;
    height: 87px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cellipse cx='58' cy='40' rx='42' ry='17' fill='white'/%3E%3Cellipse cx='100' cy='28' rx='36' ry='17' fill='white'/%3E%3Cellipse cx='142' cy='41' rx='46' ry='16' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.95;
    filter: drop-shadow(0 8px 14px rgba(135, 196, 224, 0.45));
    animation: skyDrift linear infinite;
}

.cloud-1 {
    top: 9%;
    animation-duration: 65s;
    animation-delay: -26s;
}

.cloud-2 {
    top: 26%;
    width: 200px;
    height: 60px;
    opacity: 0.8;
    animation-duration: 90s;
    animation-delay: -58s;
}

.cloud-3 {
    top: 3%;
    width: 150px;
    height: 45px;
    opacity: 0.7;
    animation-duration: 48s;
    animation-delay: -9s;
}

.birds {
    position: absolute;
    left: -130px;
    width: 100px;
    height: 33px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 26'%3E%3Cpath d='M2 14 Q7 7 12 14 M12 14 Q17 7 22 14 M34 8 Q39 1 44 8 M44 8 Q49 1 54 8 M58 20 Q63 13 68 20 M68 20 Q73 13 78 20' stroke='%232D4A10' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    animation: skyDrift linear infinite;
}

.birds-1 {
    top: 15%;
    animation-duration: 32s;
    animation-delay: -10s;
}

.birds-2 {
    top: 31%;
    width: 70px;
    opacity: 0.5;
    animation-duration: 44s;
    animation-delay: -28s;
}

@keyframes skyDrift {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 480px));
    }
}

/* Arbres : balancés doucement par le vent, posés sur les collines */
.tree {
    position: absolute;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    transform-origin: bottom center;
    animation: windSway 5.5s ease-in-out infinite alternate;
}

.tree-1,
.tree-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 84'%3E%3Crect x='27' y='50' width='6' height='34' rx='3' fill='%236B4A2B'/%3E%3Cellipse cx='30' cy='32' rx='21' ry='27' fill='%233F7A1F'/%3E%3Cellipse cx='21' cy='42' rx='10' ry='12' fill='%235B9434' fill-opacity='0.85'/%3E%3C/svg%3E");
}

.tree-2,
.tree-4 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 90'%3E%3Crect x='19' y='58' width='6' height='32' rx='3' fill='%236B4A2B'/%3E%3Cellipse cx='22' cy='34' rx='14' ry='30' fill='%232D4A10'/%3E%3Cellipse cx='18' cy='44' rx='7' ry='14' fill='%23437A22' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.tree-1 {
    left: 5%;
    width: 96px;
    height: 134px;
    animation-duration: 6s;
}

.tree-2 {
    left: 14%;
    width: 52px;
    height: 106px;
    animation-duration: 5s;
    animation-delay: -2.2s;
}

.tree-3 {
    right: 6%;
    width: 116px;
    height: 162px;
    animation-duration: 6.8s;
    animation-delay: -3.5s;
}

.tree-4 {
    right: 17%;
    width: 46px;
    height: 94px;
    animation-duration: 4.6s;
    animation-delay: -1.4s;
}

/* Touffes d'herbe ondulant plus nerveusement */
.grass {
    position: absolute;
    bottom: 0;
    width: 46px;
    height: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M6 30 Q8 16 4 8 M14 30 Q15 12 12 2 M20 30 Q22 14 26 6 M28 30 Q30 18 36 12' stroke='%23437A22' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    transform-origin: bottom center;
    animation: grassSway 3.2s ease-in-out infinite alternate;
}

.grass-1 {
    left: 10%;
    animation-delay: -1s;
}

.grass-2 {
    left: 24%;
    width: 34px;
    height: 26px;
    animation-delay: -2.1s;
}

.grass-3 {
    right: 12%;
    width: 40px;
    animation-delay: -0.4s;
}

@keyframes windSway {
    from {
        transform: rotate(-1.7deg);
    }
    to {
        transform: rotate(2deg);
    }
}

@keyframes grassSway {
    from {
        transform: rotate(-4deg) skewX(-2deg);
    }
    to {
        transform: rotate(4.5deg) skewX(3deg);
    }
}

/* Silhouette de collines — clin d'œil au paysage du logo */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(90px, 14vw, 170px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 190' preserveAspectRatio='none'%3E%3Cpath d='M0,120 C240,58 480,148 720,108 C960,68 1200,140 1440,88 L1440,190 L0,190 Z' fill='%23A9C98C' fill-opacity='0.4'/%3E%3Cpath d='M0,152 C260,102 520,172 780,142 C1040,112 1260,172 1440,132 L1440,190 L0,190 Z' fill='%23769C50' fill-opacity='0.5'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: riseIn 0.9s var(--ease-out) both;
}

.hero-text-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.3rem;
    max-width: 720px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--foret);
}

.hero-kicker::before,
.hero-kicker::after {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--prairie);
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 4.3rem);
    line-height: 1.08;
    color: var(--foret-fonce);
    margin-bottom: 0;
    animation: titleFloat 5.5s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-title .accent {
    color: var(--carmin);
    position: relative;
    white-space: nowrap;
}

/* Trait ondulé qui se dessine sous « Thézy » à l'arrivée */
.hero-title .accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.14em;
    height: 0.2em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q20 2 40 7 Q60 11 80 6 Q100 2 118 7' stroke='%237DB83A' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    transform: scaleX(0);
    transform-origin: left center;
    animation: drawLine 0.7s var(--ease-out) 1s forwards;
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--gris);
    max-width: 34em;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 0.6rem;
}

.hero-actions .button {
    margin: 0;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.button {
    display: inline-block;
    padding: 0.85em 1.7em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    cursor: pointer;
    border: 1.5px solid transparent;
    color: #fff;
    background-color: var(--carmin);
    box-shadow: var(--shadow-rest);
    transition: background-color var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast),
                box-shadow var(--t-fast);
}

.button:hover {
    background-color: var(--carmin-vif);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button-secondary {
    background-color: transparent;
    color: var(--foret);
    border-color: rgba(45, 74, 16, 0.35);
    box-shadow: none;
}

.button-secondary:hover {
    background-color: var(--prairie-fond);
    border-color: var(--foret);
    color: var(--foret-fonce);
    box-shadow: none;
}

.button-small {
    padding: 0.65em 1.35em;
    font-size: 0.92rem;
}

/* ==========================================================================
   Apparition au défilement
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Décalage léger dans les grilles */
.missions-grid > :nth-child(2),
.article-grid > :nth-child(3n + 2),
.document-grid > :nth-child(2) {
    transition-delay: 0.1s;
}

.missions-grid > :nth-child(3),
.article-grid > :nth-child(3n) {
    transition-delay: 0.2s;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Bandeau Facebook
   ========================================================================== */

.facebook-invite {
    background-color: #EDF5FA;
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.facebook-invite-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.facebook-invite-text {
    max-width: 640px;
    font-size: 1.05rem;
    color: var(--encre);
}

.facebook-intro {
    font-weight: 700;
    color: var(--foret);
    margin-bottom: 0.4em;
}

.facebook-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #1877F2;
    animation: fbNudge 5s ease-in-out 2s infinite;
}

.facebook-button:hover,
.facebook-button:focus-visible {
    background-color: #1469D6;
    animation: none;
}

/* Double rebond périodique qui invite au clic */
@keyframes fbNudge {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow-rest);
    }
    66% {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 18px 28px -12px rgba(20, 105, 214, 0.55);
    }
    73% {
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow-rest);
    }
    79% {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 20px -10px rgba(20, 105, 214, 0.4);
    }
    86% {
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow-rest);
    }
}

.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    line-height: 0;
}

.facebook-icon svg {
    width: 16px;
    height: 16px;
}

.facebook-icon svg path:first-child {
    fill: #fff;
}

.facebook-icon svg path:last-child {
    fill: #1877F2;
}

/* ==========================================================================
   Présentation
   ========================================================================== */

#qui-sommes-nous {
    scroll-margin-top: 110px;
}

#nos-missions-principales,
#nos-dernieres-actualites {
    scroll-margin-top: 110px;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.presentation-text h2 {
    margin-bottom: 1.25rem;
}

.presentation-text p {
    max-width: 62ch;
}

.presentation-image img {
    border-radius: var(--radius);
    border: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow-rest);
}

/* ==========================================================================
   Missions — liste éditoriale numérotée, sans cartes
   ========================================================================== */

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(2.5rem, 5vw, 4rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    counter-reset: mission;
}

.mission-item {
    text-align: left;
}

.mission-item::before {
    counter-increment: mission;
    content: counter(mission, decimal-leading-zero);
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.18em;
    color: var(--carmin);
    opacity: 0.55;
    margin-bottom: 1rem;
}

.mission-icon {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 6px var(--prairie-fond);
}

.mission-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.mission-item p {
    color: var(--gris);
    font-size: 1rem;
}

/* ==========================================================================
   Articles — cartes sobres
   ========================================================================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.article-card {
    background-color: var(--blanc);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-rest);
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(125, 184, 58, 0.5);
}

.article-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-bottom: 1px solid var(--hairline-soft);
}

.article-card-content {
    padding: 1.6rem 1.6rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.22rem;
    line-height: 1.3;
}

.excerpt {
    font-size: 0.98rem;
    color: var(--gris);
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.article-card .button {
    align-self: flex-start;
}

.read-more {
    font-weight: 600;
    color: var(--foret);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.read-more::after {
    content: '→';
    transition: transform var(--t-fast);
}

.read-more:hover {
    color: var(--carmin);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* ==========================================================================
   Bandeau « Rejoignez l'aventure »
   ========================================================================== */

.cta-join {
    background-color: var(--foret-fonce);
    background-image: radial-gradient(40rem 20rem at 12% 110%, rgba(125, 184, 58, 0.18), transparent 60%);
    color: rgba(255, 255, 255, 0.92);
}

.cta-join h2 {
    color: #fff;
}

.cta-join h2.text-center::after {
    background-color: var(--prairie);
}

.cta-join p {
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto 1.75rem;
    color: rgba(255, 255, 255, 0.82);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.cta-buttons .button {
    margin: 0;
}

.cta-join .button {
    background-color: #fff;
    color: var(--foret-fonce);
}

.cta-join .button:hover {
    background-color: var(--creme);
    color: var(--foret-fonce);
}

/* Bouton « Devenir Membre » — ombre décalée pleine, cœur battant */
.cta-join .button-join {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1em 2em;
    font-size: 1.08rem;
    background-color: #fff;
    color: var(--foret-fonce);
    box-shadow: 6px 6px 0 var(--prairie);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.cta-join .button-join:hover {
    background-color: #fff;
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--prairie);
}

.cta-join .button-join:active {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 var(--prairie);
}

.join-heart {
    width: 21px;
    height: 21px;
    fill: var(--carmin);
    flex-shrink: 0;
}

.button-join:hover .join-heart {
    animation: heartBeat 0.7s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    70% {
        transform: scale(1.2);
    }
}

.cta-join .button-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cta-join .button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

footer {
    background-color: var(--foret-fonce);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.78);
    padding: clamp(2.75rem, 5vw, 3.75rem) 0;
    text-align: center;
    font-size: 0.95rem;
}

footer a {
    color: rgba(214, 232, 188, 0.95);
}

footer a:hover {
    color: #fff;
}

footer p {
    margin-bottom: 10px;
}

/* ==========================================================================
   En-têtes de pages intérieures
   ========================================================================== */

.page-header {
    background-color: var(--creme-2);
    border-bottom: 1px solid var(--hairline-soft);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--gris);
    max-width: 46em;
    margin: 0 auto;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-form-container {
    background-color: var(--blanc);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-rest);
}

#confirmationMessage {
    display: none;
    background-color: var(--prairie-fond);
    border: 1px solid rgba(125, 184, 58, 0.45);
    color: var(--foret-fonce);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-s);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.25rem;
}

#confirmationMessage.fade-in {
    animation: riseIn 0.5s var(--ease-out) both;
}

#contactForm {
    scroll-margin-top: 160px;
}

#contact-principal {
    scroll-margin-top: 110px;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--foret);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="subject"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-s);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--encre);
    background-color: var(--creme);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="subject"]:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--foret);
    box-shadow: 0 0 0 4px var(--prairie-fond);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form .primary-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0;
    text-align: center;
}

.contact-info-container h2 {
    margin-bottom: 1.75rem;
}

.info-box {
    padding: 1.4rem 0;
    border-top: 1px solid var(--hairline-soft);
}

.info-box:last-of-type {
    border-bottom: 1px solid var(--hairline-soft);
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4em;
}

.info-box p {
    margin-bottom: 0;
    color: var(--gris);
}

.info-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.1rem;
}

/* ==========================================================================
   Documents
   ========================================================================== */

.document-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.document-column {
    background-color: var(--blanc);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-rest);
}

.column-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--foret);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hairline-soft);
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.25rem;
    background-color: var(--creme);
    border-radius: var(--radius-s);
    border: 1px solid var(--hairline-soft);
    color: var(--encre);
    transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}

.document-card::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: url('images/pdf-icon.svg') no-repeat center / contain;
}

.document-card:hover {
    background-color: #fff;
    border-color: rgba(125, 184, 58, 0.55);
    transform: translateX(4px);
}

.document-title {
    font-weight: 600;
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    color: var(--foret);
}

/* ==========================================================================
   Pages d'articles
   ========================================================================== */

.article-header {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem) 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.article-meta {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gris);
    margin-top: 0.75rem;
}

.article-content {
    max-width: 760px;
    margin: clamp(2rem, 5vw, 3.5rem) auto;
    padding: 0 20px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 2.5rem 0;
    border: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow-rest);
}

.article-content h2 {
    font-size: 1.6rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.article-content h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--prairie);
    margin-top: 0.6rem;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    padding-left: 1.75rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.75rem;
    background-color: var(--ciel-fond);
    border-radius: var(--radius-s);
    font-style: italic;
}

.article-content .button {
    margin-top: 1.25rem;
}

.article-content .article-main-image {
    display: block;
    margin: 0 auto 1rem;
    max-width: 80%;
    max-height: 640px;
    object-fit: contain;
}

.article-content .image-top-crop {
    object-fit: cover;
    object-position: top;
}

.article-content iframe {
    width: 100%;
    height: 300px;
    border: 1px solid var(--hairline-soft);
    border-radius: var(--radius);
}

.article-footer {
    text-align: center;
    margin: 2.5rem 0 1rem;
}

.back-to-articles {
    display: block;
    text-align: center;
    margin: 2.5rem auto;
    font-weight: 600;
}

/* Masquer tout widget météo potentiellement injecté */
[class*="weather"], [id*="weather"], [class*="météo"], [id*="météo"],
[class*="meteo"], [id*="meteo"], .weather-widget, #weather-widget {
    display: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .presentation-image {
        order: -1;
    }

    .articles-page-layout .article-grid {
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: clamp(6rem, 18vw, 8rem);
    }

    .facebook-invite-content {
        justify-content: center;
        text-align: center;
    }

    .facebook-intro {
        text-align: left;
    }

    .facebook-button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 5;
        background-color: var(--creme);
        border-top: 1px solid var(--hairline-soft);
        box-shadow: 0 18px 30px -12px rgba(30, 50, 8, 0.18);
        padding: 6px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--hairline-soft);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--creme-2);
    }

    .article-grid,
    .articles-page-layout .article-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mission-icon {
        width: 72px;
        height: 72px;
    }

    /* Décor du héros allégé sur mobile */
    .tree-1 {
        width: 64px;
        height: 92px;
        left: 2%;
    }

    .tree-2,
    .tree-4 {
        display: none;
    }

    .tree-3 {
        width: 76px;
        height: 108px;
        right: 3%;
    }

    .grass-2 {
        display: none;
    }
}

/* ==========================================================================
   Accessibilité — mouvement réduit
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
