:root {
    --paper: #f4f0e6;
    --paper-deep: #e8e0d0;
    --ink: #1f2420;
    --field: #27342b;
    --leaf: #65735c;
    --earth: #a24e38;
    --straw: #cbb98e;
    --line: rgba(39, 52, 43, 0.23);
    --line-strong: rgba(39, 52, 43, 0.52);
    --max: 1440px;
    --gutter: clamp(1.15rem, 4vw, 4.5rem);
    --radius: 0.25rem;
    --shadow: 0 1.25rem 3.5rem rgba(33, 41, 34, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: var(--earth);
    color: #fff;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.08em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--earth);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: min(100%, var(--max));
    margin: 0 auto;
    min-height: 5.25rem;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: color-mix(in srgb, var(--paper) 93%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    border-left: 2px solid var(--field);
    border-bottom: 2px solid var(--field);
}

.brand-mark::before {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--field);
    border-radius: 50%;
    left: 0.55rem;
    bottom: 0.45rem;
}

.brand-mark span {
    position: absolute;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: var(--earth);
    left: 0.9rem;
    bottom: 0.78rem;
}

.brand-text {
    display: grid;
    line-height: 1.02;
}

.brand-text strong,
.brand-text em {
    font-style: normal;
}

.brand-text strong {
    font-size: 0.77rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brand-text em {
    margin-top: 0.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.6vw, 2.6rem);
}

.site-nav a {
    position: relative;
    color: var(--field);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.35rem;
    height: 2px;
    background: var(--earth);
    transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    right: 0;
}

.nav-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 1.7rem;
    height: 2px;
    margin: 0.38rem auto;
    background: var(--field);
    transition: transform 180ms ease;
}

.storyline {
    position: relative;
    width: min(100%, var(--max));
    margin: 0 auto;
    overflow: clip;
}

.storyline::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: var(--gutter);
    top: 7rem;
    bottom: 3rem;
    width: 1px;
    background: var(--line-strong);
}

.prologue,
.story-section {
    position: relative;
    z-index: 1;
    padding-left: calc(var(--gutter) + 2.7rem);
    padding-right: var(--gutter);
}

.prologue {
    min-height: min(760px, calc(100svh - 5.25rem));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 8rem);
    padding-top: clamp(5rem, 11vw, 9.5rem);
    padding-bottom: clamp(5rem, 10vw, 8rem);
}

.place-kicker,
.eyebrow,
.form-label {
    margin: 0 0 1.1rem;
    color: var(--earth);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.prologue h1,
.story-section h2,
.legal-page h1 {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--field);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.93;
}

.prologue h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(4rem, 8.5vw, 8.6rem);
}

.prologue h1 span {
    display: block;
    color: var(--ink);
    font-size: 0.43em;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.prologue-lead {
    max-width: 31ch;
    margin: 2rem 0 0;
    font-size: clamp(1.35rem, 2.4vw, 2.2rem);
    line-height: 1.2;
    font-weight: 650;
}

.prologue-object {
    max-width: 62ch;
    margin: 2rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid var(--straw);
}

.line-link {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 2.25rem;
    color: var(--field);
    font-weight: 750;
    text-decoration: none;
}

.line-link span {
    color: var(--earth);
    font-size: 1.25em;
}

.field-sign {
    position: relative;
    color: var(--leaf);
}

.field-sign::before {
    content: "";
    position: absolute;
    inset: 9% -8% -9% 10%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(101, 115, 92, 0.09), rgba(162, 78, 56, 0.05));
}

.field-sign svg {
    width: 100%;
    overflow: visible;
}

.field-sign path,
.field-sign circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    vector-effect: non-scaling-stroke;
}

.field-sign .escape {
    stroke: var(--earth);
}

.story-section {
    display: grid;
    grid-template-columns: minmax(4rem, 0.25fr) repeat(10, minmax(0, 1fr));
    column-gap: clamp(1rem, 2vw, 2rem);
    padding-top: clamp(6rem, 11vw, 10rem);
    padding-bottom: clamp(6rem, 11vw, 10rem);
    border-top: 1px solid var(--line);
}

.section-index {
    grid-column: 1;
    align-self: start;
    margin-top: 0.4rem;
    color: var(--leaf);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.section-index::before {
    content: "";
    position: absolute;
    left: calc(var(--gutter) - 4px);
    width: 9px;
    height: 9px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--earth);
}

.section-copy {
    grid-column: 2 / span 5;
}

.story-section h2 {
    max-width: 15ch;
    margin: 0 0 2.2rem;
    font-size: clamp(2.7rem, 5.3vw, 5.8rem);
}

.story-section p {
    max-width: 65ch;
}

.story-section p + p {
    margin-top: 1.2rem;
}

.territory-photo {
    margin: 0;
}

.territory-photo img {
    width: 100%;
    height: auto;
    background: var(--paper-deep);
    box-shadow: var(--shadow);
}

.territory-photo figcaption {
    margin-top: 0.75rem;
    color: color-mix(in srgb, var(--ink) 75%, transparent);
    font-size: 0.78rem;
    line-height: 1.45;
}

.territory-photo figcaption span {
    display: block;
    margin-bottom: 0.13rem;
    color: var(--field);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mairie-photo {
    grid-column: 8 / -1;
    align-self: end;
    margin-top: 7rem;
}

.game-section {
    min-height: 720px;
    background: var(--field);
    color: #f5f1e8;
    border-top-color: rgba(255, 255, 255, 0.15);
}

.game-section .section-index {
    color: rgba(245, 241, 232, 0.55);
}

.game-section .section-index::before {
    background: var(--field);
    border-color: #e6c7a8;
}

.game-statement {
    grid-column: 2 / span 6;
}

.game-section h2,
.game-section .eyebrow {
    color: #f5f1e8;
}

.game-section .eyebrow {
    opacity: 0.7;
}

.game-copy {
    grid-column: 8 / -1;
    align-self: center;
    color: rgba(245, 241, 232, 0.86);
}

.touchline {
    position: absolute;
    left: calc(var(--gutter) + 4rem);
    right: var(--gutter);
    bottom: 3.1rem;
    height: 2px;
    background: rgba(245, 241, 232, 0.42);
}

.touchline-circle {
    position: absolute;
    left: 52%;
    top: 50%;
    width: 7rem;
    height: 7rem;
    border: 2px solid rgba(245, 241, 232, 0.42);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.touchline-ball {
    position: absolute;
    left: 52%;
    top: 50%;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: #e6c7a8;
    transform: translate(-50%, -50%);
}

.village-section {
    background-image: linear-gradient(90deg, transparent 0, transparent 64%, rgba(203, 185, 142, 0.09) 64%, rgba(203, 185, 142, 0.09) 100%);
}

.village-copy {
    grid-column: 2 / span 5;
}

.territory-sequence {
    grid-column: 8 / -1;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-top: 3.5rem;
}

.field-photo {
    width: 72%;
    margin-left: auto;
}

.facts-section {
    background: var(--paper-deep);
}

.facts-intro {
    grid-column: 2 / span 4;
}

.facts-list {
    grid-column: 7 / -1;
    margin: 0;
    border-top: 2px solid var(--field);
}

.facts-list div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.9fr) 1.4fr;
    gap: 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line-strong);
}

.facts-list dt {
    color: var(--leaf);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.facts-list dd {
    margin: 0;
    font-weight: 650;
}

.source-note {
    grid-column: 7 / -1;
    margin-top: 1.4rem;
    color: color-mix(in srgb, var(--ink) 72%, transparent);
    font-size: 0.85rem;
}

.contact-section {
    padding-bottom: 8rem;
}

.contact-signature {
    grid-column: 2 / span 4;
}

.contact-signature address {
    margin: 2rem 0;
    font-style: normal;
    line-height: 1.8;
}

.contact-direct {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 750;
}

.contact-form-wrap {
    grid-column: 7 / -1;
    padding-top: 0.55rem;
}

.form-heading {
    padding-bottom: 1.6rem;
    border-bottom: 2px solid var(--field);
}

.form-heading p:last-child {
    margin-bottom: 0;
    color: color-mix(in srgb, var(--ink) 75%, transparent);
    font-size: 0.92rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.contact-form label:not(.honeypot label) {
    margin-top: 1.3rem;
    color: var(--field);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0 0.75rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 10rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-bottom-color: var(--earth);
    box-shadow: 0 2px 0 var(--earth);
}

.form-foot {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: start;
    gap: 1.4rem;
    margin-top: 1.8rem;
}

.form-foot button {
    padding: 0.8rem 0;
    color: var(--field);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--earth);
    font-weight: 800;
    cursor: pointer;
}

.form-foot button:hover {
    color: var(--earth);
}

.form-foot p {
    margin: 0;
    color: color-mix(in srgb, var(--ink) 68%, transparent);
    font-size: 0.78rem;
}

.form-notice {
    margin: 1.2rem 0 0.5rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid;
    font-size: 0.9rem;
}

.form-notice.is-success {
    border-color: var(--leaf);
    background: rgba(101, 115, 92, 0.1);
}

.form-notice.is-error {
    border-color: var(--earth);
    background: rgba(162, 78, 56, 0.08);
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.site-footer {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 3rem var(--gutter) 2.4rem calc(var(--gutter) + 2.7rem);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
}

.footer-line {
    width: 100%;
    height: 1px;
    margin-bottom: 2.2rem;
    background: rgba(255, 255, 255, 0.22);
}

.footer-primary,
.footer-secondary {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-primary p {
    margin: 0 0 2.3rem;
}

.footer-primary strong {
    color: #fff;
}

.footer-secondary {
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.78rem;
}

.footer-secondary p {
    margin: 0;
}

.footer-secondary nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Pages documentaires : elles reprennent la ligne du site sans simuler une nouvelle architecture. */
.legal-page {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(5rem, 9vw, 8rem) var(--gutter) 7rem calc(var(--gutter) + 2.7rem);
    position: relative;
}

.legal-page::before {
    content: "";
    position: absolute;
    left: var(--gutter);
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-strong);
}

.legal-page h1 {
    max-width: 12ch;
    margin: 0 0 3rem;
    font-size: clamp(3.3rem, 7vw, 7rem);
}

.legal-page h2 {
    max-width: 28ch;
    margin: 3rem 0 1rem;
    color: var(--field);
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.legal-page p,
.legal-page li,
.legal-page dd {
    max-width: 72ch;
}

.legal-page .lead {
    max-width: 55ch;
    font-size: 1.2rem;
}

.legal-page dl {
    max-width: 72ch;
    margin: 2rem 0;
}

.legal-page dt {
    margin-top: 1rem;
    color: var(--leaf);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legal-page dd {
    margin: 0.2rem 0 0;
}

.legal-placeholder {
    max-width: 72ch;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--earth);
    background: rgba(162, 78, 56, 0.08);
}

.credit-list {
    max-width: 80ch;
    padding: 0;
    list-style: none;
}

.credit-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.credit-list strong {
    display: block;
    color: var(--field);
}

.reveal {
    transition: transform 520ms ease, opacity 520ms ease;
}

.js-ready .reveal:not(.is-visible) {
    opacity: 0.78;
    transform: translateY(0.8rem);
}

@media (max-width: 980px) {
    .site-header {
        min-height: 4.8rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: var(--gutter);
        right: var(--gutter);
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.2rem;
        background: var(--paper);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .prologue {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .field-sign {
        width: min(80%, 620px);
        margin-left: auto;
    }

    .story-section {
        grid-template-columns: 3.4rem repeat(6, minmax(0, 1fr));
    }

    .section-copy,
    .game-statement,
    .village-copy,
    .facts-intro,
    .contact-signature {
        grid-column: 2 / -1;
    }

    .mairie-photo,
    .game-copy,
    .territory-sequence,
    .facts-list,
    .source-note,
    .contact-form-wrap {
        grid-column: 2 / -1;
        margin-top: 3rem;
    }

    .mairie-photo {
        width: min(82%, 700px);
        margin-left: auto;
    }

    .game-copy {
        max-width: 46rem;
        margin-left: auto;
    }

    .facts-list {
        width: min(100%, 760px);
    }
}

@media (max-width: 680px) {
    :root {
        --gutter: 1.05rem;
    }

    html {
        scroll-padding-top: 5rem;
    }

    .brand-text strong {
        font-size: 0.64rem;
    }

    .brand-text em {
        font-size: 0.9rem;
    }

    .storyline::before {
        left: 1.35rem;
    }

    .prologue,
    .story-section {
        padding-left: 3.5rem;
        padding-right: 1.05rem;
    }

    .prologue {
        gap: 3.2rem;
        padding-top: 4.6rem;
        padding-bottom: 4.8rem;
    }

    .prologue h1 {
        font-size: clamp(3.5rem, 17vw, 5.8rem);
    }

    .prologue-lead {
        font-size: 1.4rem;
    }

    .field-sign {
        width: 100%;
    }

    .story-section {
        display: block;
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }

    .section-index {
        margin-bottom: 1.3rem;
    }

    .section-index::before {
        left: calc(var(--gutter) + 0.25rem);
    }

    .story-section h2 {
        font-size: clamp(2.75rem, 12vw, 4.4rem);
    }

    .mairie-photo,
    .game-copy,
    .territory-sequence,
    .facts-list,
    .source-note,
    .contact-form-wrap {
        width: 100%;
        margin: 2.8rem 0 0;
    }

    .game-section {
        min-height: 0;
        padding-bottom: 8.5rem;
    }

    .touchline {
        left: 3.5rem;
        right: 1rem;
    }

    .territory-sequence {
        gap: 2.5rem;
    }

    .field-photo {
        width: 80%;
        margin-left: auto;
    }

    .facts-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .form-foot {
        grid-template-columns: 1fr;
    }

    .form-foot button {
        justify-self: start;
    }

    .site-footer {
        padding-left: 3.5rem;
        padding-right: 1.05rem;
    }

    .footer-primary,
    .footer-secondary {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-secondary nav {
        margin-top: 1rem;
    }

    .legal-page {
        padding-left: 3.5rem;
        padding-right: 1.05rem;
    }

    .legal-page::before {
        left: 1.35rem;
    }
}

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