:root {
    --color1: #1f5130;
    --color1-125: #183f25;
    --color1-150: #10291a;
    --color2: #4c9a5b;
    --color2-25: #dcecdf;
    --banana: #f2c12e;
    --banana-125: #d9a91a;
    --earth: #8a4b2a;
    --font1: "Quattrocento", Georgia, serif;
    --font2: "Roboto", "Helvetica Neue", sans-serif;
    --text: rgba(0, 0, 0, .5);
    --footer-bg: #f3f7ee;
}

body {
    font-family: var(--font2);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; overflow-x: clip; }

h1, h2, h3, h4, h5, h6, .h1, .h2 {
    font-family: var(--font1);
    font-weight: 700;
    color: var(--color1-150);
}

#contentArea a:not(.btn) { color: var(--color1); }

.btn-primary {
    --bs-btn-bg: var(--color1);
    --bs-btn-border-color: var(--color1);
    --bs-btn-hover-bg: var(--color1-125);
    --bs-btn-hover-border-color: var(--color1-125);
    font-family: var(--font1);
}

/* En-tête */
.site-navbar {
    background: #fff;
    padding: 20px 0;
    border-top: 10px solid var(--color1);
    box-shadow: 0 .4375rem 1.8125rem 0 rgba(0, 0, 0, .09);
    position: relative;
    z-index: 10;
}

.site-navbar .navbar-brand {
    font-family: var(--font1);
    font-weight: 700;
    font-size: 24px;
    color: #000;
}

.topmenu .nav-link {
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color1);
    padding: 5px 0 !important;
    margin-left: 15px;
    border-bottom: 2px solid transparent;
    transition: .2s all;
}

.topmenu .nav-link:hover,
.topmenu .nav-link:focus,
.topmenu .nav-link.active {
    color: #000;
    border-bottom-color: var(--color2);
}

@media (max-width: 767.98px) {
    .site-navbar .navbar-brand { font-size: 22px; }
    .topmenu { padding-top: 1rem; }
    .topmenu .nav-link { margin: 0; padding: 10px 0 !important; display: inline-block; }
}

/* Bandeaux image */
.hero {
    position: relative;
    background-color: #a391aa;
    background-size: cover;
    background-position: 50% 0;
    background-attachment: fixed;
    color: #fff;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 60, .35);
    z-index: -1;
}

.hero h1 { font-weight: 700; }

.hero h1, .hero .h2 {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.hero .h2 {
    font-family: var(--font2);
    font-weight: 400;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    color: rgba(255, 255, 255, .8);
    margin-top: 1rem;
}

.hero-page { padding: 50px 0; }

@media (hover: none) {
    .hero { background-attachment: scroll; }
}

/* Fil d'Ariane */
.breadcrumb { margin-bottom: .5rem; }
.breadcrumb-item.active { color: inherit; }
.hero .breadcrumb a, .hero .breadcrumb-item.active,
.hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .85) !important; }

.page-header { padding: 50px 0 10px; }

/* Pastille d'icône de contact */
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    box-sizing: content-box;
    padding: .25rem;
    border-radius: 50%;
    background: var(--color2-25);
    color: var(--color2);
    font-size: 1rem;
}

/* Pages légales */
.legal { color: rgba(0, 0, 0, .65); }
.legal h2 { font-size: 1.5rem; margin-top: 2rem !important; }

/* Pied de page */
#footerContent {
    background: var(--footer-bg);
    color: var(--text);
}

.footer-line1 { padding-top: 2rem; padding-bottom: 2rem; }

.footer-company { margin-top: 1.5rem; font-family: var(--font1); font-weight: 700; color: #000; }

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    justify-content: space-around;
}

.footer-menu h5 {
    font-family: var(--font2);
    font-weight: 400;
    font-size: 1rem;
    color: #000;
}

.footer-menu ul { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin: .25rem 0; }

.footer-menu a, .footer-social a {
    color: var(--text);
    text-decoration: none;
    transition: color .2s;
}

.footer-menu a:hover, .footer-social a:hover { color: #000; }

.footer-line2 {
    background: rgba(0, 0, 0, .04);
    padding: 1rem 0;
    font-size: .9rem;
}

.footer-social { text-align: right; }

@media (max-width: 575.98px) {
    .footer-social { text-align: left; margin-top: .75rem; }
}

/* Retour en haut */
#scrollToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color1);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .3s all;
    z-index: 50;
}

#scrollToTop.active { opacity: 1; pointer-events: auto; transform: none; }
#scrollToTop:hover { background: var(--color1-125); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .hero { background-attachment: scroll; }
}

/* Index de l'égalité professionnelle */
.egalite-section {
    background:
        radial-gradient(circle at 8% 10%, rgba(92, 207, 230, .18), transparent 40%),
        radial-gradient(circle at 92% 90%, rgba(98, 168, 124, .22), transparent 45%),
        var(--footer-bg);
}

.egalite {
    background: rgba(255, 255, 255, .85);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 48px);
    box-shadow: 0 .4375rem 1.8125rem 0 rgba(0, 0, 0, .07);
}

.egalite-head { text-align: center; margin-bottom: 2rem; }

.egalite-title {
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    max-width: 900px;
    margin: .5rem auto 0;
    color: #24502f;
    text-wrap: balance;
}

/* Balance femmes / hommes */
.egalite-balance { width: 190px; height: auto; overflow: visible; }
.balance-post { fill: #24502f; }
.balance-pivot { fill: var(--color2); stroke: #fff; stroke-width: 3; }
.balance-string { stroke: #8aa594; stroke-width: 1.5; fill: none; }
.balance-plate { fill: var(--color2-25); stroke: var(--color2); stroke-width: 2; }
.balance-symbol { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.balance-female { stroke: #ec5a8a; }
.balance-male { stroke: #2f8fe0; }

.balance-beam { transform-origin: 100px 22px; }
.balance-pan-left { transform-origin: 28px 25px; }
.balance-pan-right { transform-origin: 172px 25px; }

.egalite.is-visible .balance-beam { animation: balance-swing 2.6s cubic-bezier(.36, .07, .19, .97) both; }
.egalite.is-visible .balance-pan { animation: balance-counter 2.6s cubic-bezier(.36, .07, .19, .97) both; }
.egalite.is-visible .balance-symbol { animation: balance-hop .5s ease-out 2.5s both; }

@keyframes balance-swing {
    0% { transform: rotate(-16deg); }
    25% { transform: rotate(11deg); }
    45% { transform: rotate(-6deg); }
    65% { transform: rotate(3deg); }
    82% { transform: rotate(-1deg); }
    100% { transform: rotate(0); }
}

@keyframes balance-counter {
    0% { transform: rotate(16deg); }
    25% { transform: rotate(-11deg); }
    45% { transform: rotate(6deg); }
    65% { transform: rotate(-3deg); }
    82% { transform: rotate(1deg); }
    100% { transform: rotate(0); }
}

@keyframes balance-hop {
    50% { translate: 0 -6px; }
}

/* Graphique */
.egalite-body {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 767.98px) {
    .egalite-body { grid-template-columns: 1fr; }
    .egalite-chart { max-width: 340px; margin-inline: auto; }
}

.egalite-chart { position: relative; margin: 0; }
.egalite-chart svg { width: 100%; height: auto; display: block; overflow: visible; }

.egalite-track, .egalite-arc { fill: none; stroke-width: 58; transition: opacity .25s, stroke-width .25s; }
.egalite-track { opacity: .2; }
.egalite-arc { stroke-dasharray: var(--len) 100; }

.egalite-label {
    font-family: var(--font2);
    font-weight: 700;
    font-size: 17px;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, .18);
    stroke-width: 2px;
    pointer-events: none;
}

.egalite-label.is-dark { fill: #24502f; stroke: rgba(255, 255, 255, .8); }

.egalite-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: baseline;
    text-align: center;
    pointer-events: none;
}

.egalite-score {
    font-family: var(--font1);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 4.6rem);
    line-height: 1;
    color: #3c8a3f;
}

.egalite-outof { font-size: 1.2rem; font-weight: 700; color: #3c8a3f; margin-left: 2px; }
.egalite-caption { flex-basis: 100%; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Légende */
.egalite-legend { list-style: none; padding: 0; margin: 0 0 1.75rem; }

.egalite-item {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    color: #2b3a30;
    cursor: default;
    transition: background .2s, transform .2s;
}

.egalite-item[data-index]:hover, .egalite-item[data-index]:focus-visible, .egalite-item.is-active {
    background: color-mix(in srgb, var(--c) 12%, transparent);
    transform: translateX(4px);
    outline: none;
}

.egalite-item.is-off { opacity: .55; }
.egalite-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.egalite-text { font-size: 1rem; line-height: 1.35; }
.egalite-points { font-size: .95rem; white-space: nowrap; color: var(--text); }
.egalite-points strong { font-family: var(--font1); font-size: 1.5rem; color: #24502f; }

.egalite-bar { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, #eee); overflow: hidden; }
.egalite-bar span { display: block; height: 100%; width: calc(var(--ratio) * 100%); background: var(--c); border-radius: inherit; }

/* Jauge de la note globale (75 = seuil légal) */
.egalite-gauge {
    --gauge: #3c8a3f;
    background: var(--color2-25);
    border-radius: 14px;
    padding: 14px 16px 12px;
    color: #24502f;
}

.egalite-gauge.is-below { --gauge: #e5484d; background: #fde8e8; }

.egalite-gauge-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.egalite-gauge-head > span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.egalite-gauge-head strong { font-family: var(--font1); font-size: 1.1rem; color: var(--gauge); }
.egalite-gauge-head strong span { font-size: 1.6rem; }

.egalite-gauge-track {
    position: relative;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .8);
}

.egalite-gauge-fill {
    display: block;
    height: 100%;
    width: calc(var(--total) * 1%);
    border-radius: inherit;
    background: var(--gauge);
}

.egalite-gauge-threshold, .egalite-gauge-tick {
    width: 3px;
    border-radius: 2px;
    background: #24502f;
}

.egalite-gauge-threshold { position: absolute; left: 75%; top: -4px; bottom: -4px; }

.egalite-gauge-note { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: .8rem; line-height: 1.35; color: #4a5d50; }
.egalite-gauge-tick { flex: none; height: 14px; }

/* Survol : une part est mise en avant */
.egalite.has-focus .egalite-arc, .egalite.has-focus .egalite-track { opacity: .25; }
.egalite.has-focus .egalite-track { opacity: .08; }
.egalite .egalite-arc.is-active { opacity: 1; stroke-width: 66; }
.egalite .egalite-track.is-active { opacity: .3; stroke-width: 66; }

/* États de départ de l'animation (seulement si le JS est là) */
.egalite.js-anim .egalite-arc { stroke-dasharray: 0 100; }
.egalite.js-anim .egalite-label, .egalite.js-anim .egalite-item { opacity: 0; }
.egalite.js-anim .egalite-item { transform: translateY(12px); }
.egalite.js-anim .egalite-bar span { width: 0; }
.egalite.js-anim .egalite-gauge-fill { width: 0; }

.egalite.js-anim.is-visible .egalite-arc {
    stroke-dasharray: var(--len) 100;
    transition: stroke-dasharray 1.1s cubic-bezier(.22, 1, .36, 1) var(--delay), opacity .25s, stroke-width .25s;
}
.egalite.js-anim.is-visible .egalite-label { opacity: 1; transition: opacity .5s var(--delay); }
.egalite.js-anim.is-visible .egalite-item { opacity: 1; transform: none; transition: opacity .5s var(--delay), transform .5s var(--delay), background .2s; }
.egalite.js-anim.is-visible .egalite-item.is-off { opacity: .55; }
.egalite.js-anim.is-visible .egalite-bar span { width: calc(var(--ratio) * 100%); transition: width 1s cubic-bezier(.22, 1, .36, 1) calc(var(--delay) + .2s); }
.egalite.js-anim.is-visible .egalite-gauge-fill { width: calc(var(--total) * 1%); transition: width 1.6s cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: reduce) {
    .egalite.is-visible .balance-beam, .egalite.is-visible .balance-pan, .egalite.is-visible .balance-symbol { animation: none; }
}

/* Accueil */
.btn-banana {
    --bs-btn-bg: var(--banana);
    --bs-btn-border-color: var(--banana);
    --bs-btn-color: var(--color1-150);
    --bs-btn-hover-bg: var(--banana-125);
    --bs-btn-hover-border-color: var(--banana-125);
    --bs-btn-hover-color: var(--color1-150);
    --bs-btn-active-bg: var(--banana-125);
    font-family: var(--font1);
    font-weight: 700;
}

.home-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: 50% 60%;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(16, 41, 26, .85) 0%, rgba(16, 41, 26, .55) 55%, rgba(16, 41, 26, .2) 100%);
}

.home-hero-inner { padding: 100px 12px 140px; }

.home-eyebrow {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    margin-bottom: 1.25rem;
}

.home-title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 1;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.home-tagline {
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    max-width: 640px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2.25rem;
}

.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.home-reveal { animation: home-reveal .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) both; }

@keyframes home-reveal {
    from { opacity: 0; transform: translateY(24px); }
}

.home-scroll {
    position: absolute;
    left: 50%;
    bottom: 96px;
    width: 30px;
    height: 48px;
    margin-left: -15px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 15px;
}

.home-scroll span {
    position: absolute;
    left: 50%;
    top: 9px;
    width: 4px;
    height: 9px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: home-scroll 1.8s ease-in-out infinite;
}

@keyframes home-scroll {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* Chiffres clés */
.home-stats {
    position: relative;
    z-index: 2;
    margin-top: -70px;
}

.home-stats .row {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1rem 2.5rem rgba(16, 41, 26, .12);
    padding: 28px 12px;
    margin: 0;
}

.home-stat { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.home-stat-value { font-family: var(--font1); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--color1); }
.home-stat-value small { font-size: .5em; color: var(--color2); }
.home-stat-label { font-size: .95rem; color: #4a5d50; }

@media (min-width: 992px) {
    .home-stats .col-lg-3 + .col-lg-3 .home-stat { border-left: 1px solid #e7ece8; }
}

/* Sections */
.home-section { padding: clamp(64px, 10vw, 120px) 0; }
.home-kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--color2); margin-bottom: .5rem; }
.home-h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
.home-lead { font-size: 1.1rem; line-height: 1.7; color: #4a5d50; }

.home-photo { position: relative; margin: 0; }

.home-photo::before {
    content: "";
    position: absolute;
    inset: 24px -18px -18px 24px;
    border-radius: 24px;
    background: var(--banana);
    z-index: -1;
}

.home-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; }

/* Diaporama « Notre exploitation » : images empilées, fondu de l'une à l'autre */
.home-slideshow { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; }
.home-slideshow img {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s linear;
}
.home-slideshow img.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.home-slideshow-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.home-slideshow-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: background .3s ease, transform .3s ease;
    cursor: pointer;
}
.home-slideshow-dots button.is-active { background: var(--banana); transform: scale(1.25); }
.home-slideshow-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .home-slideshow img { transition: opacity .3s ease; transform: none; }
}

/* Parcours de la banane */
.home-steps-section { background: var(--footer-bg); }

.home-steps-intro { max-width: 640px; margin: 1rem auto 0; }

.home-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-step {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #e3ebe0;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(16, 41, 26, .055);
    transition: transform .25s, box-shadow .25s;
}

.home-step:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(16, 41, 26, .1); }

.home-step-visual { position: relative; flex: 0 0 150px; }
.home-step-visual img { display: block; width: 150px; height: 150px; object-fit: contain; }

.home-step-num {
    position: absolute;
    bottom: -2px;
    left: -4px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: var(--banana);
    color: var(--color1-150);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.home-step p { font-size: .96rem; color: #4a5d50; margin: 0; }

@media (max-width: 991.98px) {
    .home-steps { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
}

@media (max-width: 519.98px) {
    .home-step { flex-direction: column; text-align: center; padding: 22px 18px; }
    .home-step-visual { flex-basis: auto; }
}

.home-card svg { width: 44px; height: 44px; fill: none; stroke: var(--color1); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Engagements */
.home-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e7ece8;
    border-radius: 18px;
    padding: 26px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.home-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(16, 41, 26, .08); border-color: var(--color2-25); }
.home-card svg { width: 40px; height: 40px; margin-bottom: 14px; stroke: var(--color2); }
.home-card h3 { font-size: 1.2rem; }
.home-card p { color: #4a5d50; margin-bottom: 0; }
#contentArea .home-card-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--color1); text-decoration: none; }
.home-card-link:hover span { margin-left: 4px; }

/* Galerie */
.home-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.home-gallery-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.home-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.home-gallery-item:hover img { transform: scale(1.06); }

.home-lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
.home-lightbox::backdrop { background: rgba(10, 20, 14, .85); }
.home-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; display: block; }
.home-lightbox-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 1.6rem; line-height: 1; }

/* Contact */
/* Page Notre histoire */
.histoire-apercu {
    background: var(--banana);
    color: var(--color1-150);
    text-align: center;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 16px;
}

.histoire-head { padding: 50px 0 24px; text-align: center; }
.histoire-head .breadcrumb { justify-content: center; }
.histoire-intro { max-width: 720px; margin: 0 auto; }

.histoire-frise { padding: 8px 0 clamp(48px, 7vw, 96px); }
.histoire-frise figure { margin: 0; text-align: center; }
.histoire-frise img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 1.5rem 3rem rgba(16, 41, 26, .14);
}
.histoire-frise figcaption { margin-top: 1rem; font-family: var(--font1); font-style: italic; color: #4a5d50; }

.histoire-timeline-section { background: var(--footer-bg); padding: clamp(56px, 8vw, 110px) 0; }

.histoire-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.histoire-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 70px;
    border-left: 3px dashed rgba(76, 154, 91, .45);
}

.histoire-step {
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0 32px;
    padding-bottom: clamp(40px, 6vw, 72px);
}
.histoire-step:last-child { padding-bottom: 0; }

.histoire-year { position: relative; text-align: center; }
.histoire-year span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--banana);
    color: var(--color1-150);
    font-family: var(--font1);
    font-weight: 700;
    font-size: 1.15rem;
    border: 4px solid var(--footer-bg);
    box-shadow: 0 .5rem 1.2rem rgba(16, 41, 26, .12);
}
.histoire-step:last-child .histoire-year span { background: var(--color1); color: #fff; font-size: .95rem; }

.histoire-body {
    background: #fff;
    border: 1px solid #e3ebe0;
    border-radius: 22px;
    padding: clamp(22px, 3vw, 36px);
    box-shadow: 0 8px 25px rgba(16, 41, 26, .055);
}
.histoire-body h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.histoire-body p { font-size: 1.02rem; line-height: 1.7; color: #4a5d50; margin: 0; }

.histoire-figure { margin: 1.5rem 0 0; }
.histoire-figure img { display: block; width: 100%; aspect-ratio: 5 / 2; max-height: 300px; object-fit: cover; border-radius: 16px; }
.histoire-figure-wide img { aspect-ratio: 21 / 9; max-height: 420px; border-radius: 24px; }

/* Illustrations verticales (4:5) des étapes : carrées sur tablette, hautes sur téléphone */
.histoire-scrolly .histoire-figure img { aspect-ratio: 1 / 1; max-height: 440px; }

@media (max-width: 575.98px) {
    .histoire-figure img { aspect-ratio: 3 / 2; }
    .histoire-scrolly .histoire-figure img { aspect-ratio: 4 / 5; }
}

/* Chronologie « scrollytelling » : sur ordinateur, l'illustration reste à gauche et change à chaque date */
@media (min-width: 992px) {
    .histoire-scrolly.has-media {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 0 clamp(32px, 4vw, 64px);
        align-items: start;
    }
    .histoire-scrolly.has-media .histoire-figure { display: none; }
    .histoire-scrolly.has-media .histoire-timeline::before { left: 56px; }
    .histoire-scrolly.has-media .histoire-step { grid-template-columns: 112px minmax(0, 1fr); gap: 0 24px; }
    .histoire-scrolly.has-media .histoire-year span { min-width: 84px; padding: 8px 12px; font-size: 1.05rem; }
    .histoire-scrolly.has-media .histoire-body { transition: border-color .4s ease, box-shadow .4s ease; }
    .histoire-scrolly.has-media .histoire-step.is-current .histoire-body {
        border-color: rgba(76, 154, 91, .55);
        box-shadow: 0 12px 30px rgba(16, 41, 26, .10);
    }

    .histoire-scrolly-media {
        position: sticky;
        top: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .histoire-scrolly-stack {
        position: relative;
        width: min(100%, calc((100vh - 110px) * 0.8));
        aspect-ratio: 4 / 5;
        border-radius: 24px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1.5rem 3rem rgba(16, 41, 26, .14);
    }
    .histoire-scrolly-stack img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transform: scale(1.03);
        transition: opacity .7s ease, transform 1.2s ease;
    }
    .histoire-scrolly-stack img.is-active { opacity: 1; transform: none; }
    .histoire-scrolly-label {
        margin: 14px 0 0;
        font-family: var(--font1);
        font-style: italic;
        color: #4a5d50;
        text-align: center;
    }
}
@media (max-width: 991.98px) {
    .histoire-scrolly-media { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .histoire-scrolly-stack img { transition: none; transform: none; }
    .histoire-scrolly.has-media .histoire-body { transition: none; }
}

@media (max-width: 767.98px) {
    .histoire-timeline::before { left: 22px; }
    .histoire-step { grid-template-columns: 1fr; gap: 14px; padding-left: 0; }
    .histoire-year { text-align: left; padding-left: 0; }
    .histoire-year span { border-color: var(--footer-bg); }
}

.histoire-memoire { padding: clamp(56px, 8vw, 110px) 0; }
.histoire-memoire-wrap { max-width: 1200px; margin: 0 auto; }
.histoire-memoire-media { margin: 0; }
.histoire-memoire-media img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply; /* le blanc du papier aquarelle se fond dans le fond de page */
}
.histoire-memoire-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    margin: clamp(-64px, -5vw, -32px) clamp(0px, 3vw, 40px) 0; /* chevauchement réduit : les personnages de la scène restent visibles */
    /* haut légèrement transparent pour fondre le bloc dans l'aquarelle */
    background: linear-gradient(to bottom, color-mix(in srgb, var(--color1) 55%, transparent) 0, var(--color1) 150px);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: rgba(255, 255, 255, .88);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
}
.histoire-memoire-col + .histoire-memoire-col {
    border-left: 1px solid rgba(255, 255, 255, .25);
    padding-left: clamp(28px, 4vw, 56px);
    align-self: center;
}
.histoire-memoire-card .home-kicker { color: var(--banana); }
.histoire-memoire-card .home-h2 { color: #fff; }
.histoire-memoire-card p { font-size: 1.05rem; line-height: 1.75; }
@media (max-width: 991.98px) {
    .histoire-memoire-card { grid-template-columns: 1fr; gap: 0; margin: -32px 0 0; }
    .histoire-memoire-col + .histoire-memoire-col { border-left: 0; padding-left: 0; }
}

.histoire-vestiges { background: var(--footer-bg); padding: clamp(56px, 8vw, 110px) 0; }
.histoire-vestige { position: relative; padding-top: 2.4rem; }
.histoire-vestige-num {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color2-25);
    color: var(--color1);
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.histoire-today { padding: clamp(56px, 8vw, 110px) 0; }
.histoire-sources { padding: 0 0 48px; color: #6b7a6e; }

/* Page Contact */
.contact-hero {
    position: relative;
    height: clamp(240px, 36vw, 520px);
    background-size: cover;
    background-position: 50% 40%;
    background-color: #f3f7ee;
    padding-top: 24px;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(243, 247, 238, 0), var(--footer-bg));
}

.contact-hero .breadcrumb {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    font-size: .9rem;
}

main:has(.contact-page) { background: var(--footer-bg); }

.contact-page {
    background: var(--footer-bg);
    padding-bottom: clamp(64px, 10vw, 120px);
}

.contact-card {
    position: relative;
    z-index: 1;
    margin-top: clamp(-160px, -12vw, -60px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(16, 41, 26, .12);
}

.contact-aside {
    background: var(--color1);
    color: rgba(255, 255, 255, .85);
    padding: clamp(28px, 4vw, 48px);
}

.contact-aside .home-h2 { color: #fff; }
.contact-aside .home-kicker { color: var(--banana); }
.contact-aside .contact-icon { background: rgba(255, 255, 255, .12); color: var(--banana); }
#contentArea .contact-aside a:not(.btn) { color: #fff; }

.contact-form-wrap { padding: clamp(28px, 4vw, 48px); }

.contact-form .form-label { font-weight: 500; color: var(--color1-150); }
.contact-form .form-control, .contact-form .form-select { padding: .7rem .9rem; border-radius: 12px; border-color: #d5dfd3; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--color2); box-shadow: 0 0 0 .25rem rgba(76, 154, 91, .2); }
.contact-form .form-check-input:checked { background-color: var(--color1); border-color: var(--color1); }

/* Champ piège pour les robots, invisible pour les visiteurs */
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-success { text-align: center; padding: clamp(24px, 6vw, 64px) 0; }
.contact-success h2 { font-size: 1.6rem; margin: 1rem 0 .5rem; }
.contact-success p { max-width: 460px; margin: 0 auto 1.5rem; color: #4a5d50; }

.contact-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color2-25);
    color: var(--color1);
    font-size: 1.8rem;
}

@media (max-width: 991.98px) {
    .contact-card { grid-template-columns: 1fr; }
}

.home-contact { padding-bottom: clamp(64px, 10vw, 120px); }

.home-contact-media { margin: 0 clamp(0px, 3vw, 40px); }
.home-contact-media img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply; /* le blanc du papier aquarelle se fond dans le fond de page */
}
.home-contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    margin-top: clamp(-140px, -12vw, -60px);
    /* haut légèrement transparent pour fondre le bloc dans l'aquarelle */
    background: linear-gradient(to bottom, color-mix(in srgb, var(--color1) 55%, transparent) 0, var(--color1) 150px);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: rgba(255, 255, 255, .85);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
}

.home-contact-card .home-h2 { color: #fff; }
.home-contact-card .home-kicker { color: var(--banana); }
.home-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.home-contact-list li { display: flex; align-items: center; gap: 14px; }
.home-contact-list .contact-icon { background: rgba(255, 255, 255, .12); color: var(--banana); }
#contentArea .home-contact-list a { color: #fff; }

.home-map {
    position: relative;
    justify-self: center;
    width: min(100%, 400px);
    margin: 0;
    text-align: center;
}

/* Anneaux qui s'élargissent autour de la carte, comme un repère GPS */
.home-map::before,
.home-map::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--banana);
    opacity: 0;
    animation: home-map-pulse 3.2s ease-out infinite;
    pointer-events: none;
}

.home-map::after { animation-delay: 1.6s; }

@keyframes home-map-pulse {
    0%   { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.18); opacity: 0; }
}

.home-map-circle {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    clip-path: circle(50%);
    background: var(--color1-125);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .9);
}

/* Carte plus grande que le cercle : les commandes Google sortent du cadre */
.home-map-circle iframe {
    position: absolute;
    inset: -18%;
    width: 136%;
    height: 136%;
    border: 0;
}

/* Liseré blanc posé par-dessus la carte */
.home-map-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px #fff, inset 0 0 30px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.home-map figcaption { margin-top: 14px; font-size: .75rem; color: rgba(255, 255, 255, .55); }

@media (max-width: 991.98px) {
    .home-contact-media { margin: 0; }
    .home-contact-card { grid-template-columns: 1fr; margin-top: -32px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-scroll span, .home-reveal, .home-map::before, .home-map::after { animation: none; }
}
