:root {
    --history-green: #17251b;
    --history-green-soft: #243629;
    --history-cream: #f7f1e6;
    --history-paper: #fffaf1;
    --history-gold: #c59a45;
    --history-gold-soft: rgba(197, 154, 69, .18);
    --history-text: #253226;
    --history-muted: #6f746a;
    --history-border: rgba(72, 55, 27, .14);
    --history-shadow: 0 24px 70px rgba(19, 26, 20, .14);
}

body {
    background: var(--history-cream);
}

.history-page {
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(197,154,69,.12), transparent 28%),
        linear-gradient(180deg, #fbf5eb 0%, #f3eadb 100%);
    color: var(--history-text);
}

.history-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: var(--history-green);
}

.history-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-desktop-image, url("../images/histoire/hero-foret-souvenirs.jpg"));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.01);
}

.history-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(8,16,10,.48) 0%,
            rgba(8,16,10,.24) 34%,
            rgba(8,16,10,.08) 62%,
            rgba(8,16,10,0) 100%
        ),
        linear-gradient(0deg,
            rgba(8,16,10,.20) 0%,
            rgba(8,16,10,0) 48%
        );
}

.history-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: 0;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 72px;
    color: #fff;
    text-align: left;
}

.history-eyebrow,
.history-section-title span,
.history-intro-inner span,
.history-block-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: .78rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--history-gold);
}

.history-eyebrow::before,
.history-section-title span::before,
.history-intro-inner span::before,
.history-block-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .85;
}

.history-hero h1 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    line-height: .92;
    letter-spacing: -.055em;
    color: #fff;
}

.history-hero h2 {
    margin: 0 0 26px;
    max-width: 650px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 1.8vw, 1.05rem);
    line-height: 1.12;
    font-weight: 500;
    color: #f1d99d;
}

.history-hero p:last-child,
.history-hero .history-hero-text {
    max-width: 660px;
    margin: 0;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.78;
    color: rgba(255,255,255,.90);
}

.history-intro,
.history-values,
.history-quote,
.history-cta {
    padding: 84px 0;
}

.history-intro-inner {
    max-width: 970px;
    margin: 0 auto;
    padding: 58px;
    text-align: center;
    border: 1px solid var(--history-border);
    background: rgba(255, 250, 241, .82);
    box-shadow: 0 18px 48px rgba(19, 26, 20, .08);
    backdrop-filter: blur(8px);
}

.history-intro h2,
.history-section-title h2,
.history-cta h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    color: var(--history-green);
}

.history-intro p,
.history-intro .history-intro-text {
    max-width: 700px;
    margin: 30px auto 0;
    font-size: 1.08rem;
    line-height: 2;
    color: var(--history-muted);
    text-align: left;
}

.history-intro .history-intro-text p{
    margin: 0 0 1.6rem;
}

.history-intro .history-intro-text p:last-child{
    margin-bottom:0;
}

.history-intro .history-intro-text strong{
    color: var(--history-green);
    font-weight:700;
}

.history-blocks {
    padding: 16px 0 42px;
}

.history-story-block {
    position: relative;
    padding: 88px 0;
}

.history-story-block::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 62px;
    height: 1px;
    transform: translateX(-50%);
    background: var(--history-gold);
    opacity: .28;
}

.history-story-block:last-child::after {
    display: none;
}

.history-story-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.history-story-block.image-right .history-story-media {
    order: 2;
}

.history-story-media {
    position: relative;
    min-height: 500px;
    border-radius: 0;
    overflow: hidden;
    background: #d8c6a7;
    box-shadow: 0 18px 46px rgba(19, 26, 20, .10);
}

.history-story-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15,22,16,.16));
    pointer-events: none;
}

.history-story-media img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    object-fit: cover;
    transition: transform .7s ease;
}

.history-story-block:hover .history-story-media img {
    transform: scale(1.035);
}

.history-story-content {
    padding: clamp(10px, 2vw, 24px);
}

.history-story-content h2 {
    margin: 0 0 26px;
    max-width: 620px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -.04em;
    color: var(--history-green);
}

.history-story-content p,
.history-story-content .history-rich {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 2.05;
    color: var(--history-muted);
}


.history-rich p {
    margin: 0 0 1.05em;
}

.history-rich p:last-child {
    margin-bottom: 0;
}

.history-rich strong {
    font-weight: 800;
    color: inherit;
}

.history-rich em {
    font-style: italic;
}

.history-rich ul,
.history-rich ol {
    margin: 0 0 1.05em 1.25em;
    padding: 0;
}

.history-rich li {
    margin: .35em 0;
}

.history-values {
    background: radial-gradient(circle at 20% 0%, rgba(197,154,69,.16), transparent 32%),
        linear-gradient(180deg, rgba(22,37,27,.98), rgba(22,37,27,.94));
    color: #fff;
}

.history-section-title {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.history-values .history-section-title h2 {
    color: #fff;
}

.history-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.history-value-card {
    padding: 32px 28px;
    min-height: 205px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.055);
    transition: transform .25s ease, background .25s ease;
}

.history-value-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.075);
}

.history-value-card strong {
    display: block;
    margin-bottom: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.1;
    color: #f1d99d;
}

.history-value-card p,
.history-value-card .history-rich {
    margin: 0;
    line-height: 1.75;
    color: rgba(255,255,255,.78);
}

.history-quote-card {
    max-width: 1000px;
    padding: clamp(42px, 6vw, 82px);
    text-align: center;
    border: 1px solid var(--history-border);
    background: radial-gradient(circle at 50% 0%, rgba(197,154,69,.13), transparent 34%),
        var(--history-paper);
    box-shadow: 0 18px 48px rgba(19, 26, 20, .09);
}

.history-quote blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.8rem, 2vw, 1.05rem);
    line-height: 1.16;
    letter-spacing: -.035em;
    color: var(--history-green);
}

.history-quote p {
    margin: 26px 0 0;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--history-gold);
}

.history-cta {
    padding-top: 20px;
}

.history-cta-inner {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.history-cta p,
.history-cta .history-cta-text {
    max-width: 650px;
    margin: 22px auto 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--history-muted);
}

.history-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--history-gold);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .04em;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.history-btn:hover {
    transform: translateY(-2px);
}

.history-btn-primary {
    background: var(--history-gold);
    color: #1c241b;
}

.history-btn-secondary {
    background: transparent;
    color: var(--history-green);
}

@media (max-width: 980px) {
.history-hero {
    min-height: 72vh;
}

.history-story-inner {
    grid-template-columns: 1fr;
}

.history-story-block.image-right .history-story-media {
    order: 0;
}

.history-story-media, .history-story-media img {
    min-height: 380px;
}

.history-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 768px) {
.history-hero {
    min-height: 100svh;
    height: 100svh;
    align-items: flex-end;
}

.history-hero-bg {
    background-image: var(--hero-mobile-image, var(--hero-desktop-image, url("../images/histoire/hero-foret-souvenirs.jpg")));
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
    transform: none;
}

.history-hero-overlay {
    background: linear-gradient(
                0deg,
                rgba(8,16,10,.68) 0%,
                rgba(8,16,10,.45) 24%,
                rgba(8,16,10,.15) 56%,
                rgba(8,16,10,0) 84%
            );
}

.history-hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 26px 48px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.history-hero h1 {
    max-width: 230px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.history-hero h2 {
    max-width: 330px;
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

.history-hero p:last-child,
.history-hero .history-hero-text {
    max-width: 330px;
    font-size: .92rem;
    line-height: 1.75;
}

.history-intro,
    .history-values,
    .history-quote,
    .history-cta {
    padding: 46px 0;
}

.history-intro-inner {
    padding: 30px 20px;
    text-align: left;
}

.history-intro-inner span,
    .history-section-title span {
    justify-content: flex-start;
}

.history-section-title {
    text-align: left;
}

.history-story-block {
    padding: 32px 0;
}

.history-story-content {
    padding: 0;
}

.history-story-media,
    .history-story-media img {
    min-height: 330px;
}

.history-values-grid {
    grid-template-columns: 1fr;
}

.history-value-card {
    min-height: auto;
}

.history-quote-card {
    padding: 34px 22px;
}

.history-cta-actions {
    flex-direction: column;
}

.history-btn {
    width: 100%;
}
}
