:root {
    --bg:        #0a0a14;
    --surface:   #12121f;
    --surface2:  #1a1a2e;
    --gold:      #C8A84B;
    --gold-dim:  rgba(200, 168, 75, 0.2);
    --gold-low:  rgba(200, 168, 75, 0.06);
    --text:      #f0f0f0;
    --muted:     #a8a8a8;
    --blue-o:    #0081C8;
    --yellow-o:  #FCB131;
    --green-o:   #00A651;
    --red-o:     #EE334E;
    --grey-o:    #888888;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@media (pointer: fine) {
    *, *::before, *::after { cursor: none !important; }
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 129, 200, 0.15) 0%, transparent 70%);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text);
    padding: 0;
    margin: 0;
}

h1, h2 {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    color: var(--gold);
    padding-top: 40px;
}

main, .hero-section { flex: 1; }

.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;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

:focus:not(:focus-visible) { outline: none; }

/* ─── CUSTOM CURSOR ─── */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s, background .2s, opacity .2s;
}

#cursor.big {
    width: 40px;
    height: 40px;
    background: rgba(200, 168, 75, .25);
    border: 1px solid var(--gold);
}

/* ─── NAV ─── */
nav {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    min-width: 0;
}

nav a {
    display: block;
    padding: 18px 22px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover                { color: var(--text); }
nav a:hover::after         { width: 70%; }
nav a.active,
nav a.current              { color: var(--gold); }
nav a.active::after,
nav a.current::after       { width: 70%; background: var(--gold); }

/* ─── SEARCH ─── */
#search-form {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#search-input {
    width: 0;
    height: 40px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    pointer-events: none;
}

#search-input.expanded {
    width: 220px;
    opacity: 1;
    padding: 0 15px;
    pointer-events: auto;
}

#search-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

#search-btn::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-65%, -65%);
}

#search-btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(30%, 120%) rotate(45deg);
    transform-origin: left center;
    border-radius: 2px;
}

#burger { display: none; }

.mobile-search-item { display: none; }

/* ─── HERO ─── */
.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    max-width: 780px;
}

.hero-eyebrow {
    font-size: .78rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    animation: fadeUp .8s ease both;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 11vw, 10rem);
    line-height: .9;
    letter-spacing: .02em;
    animation: fadeUp .8s .15s ease both;
}

.hero-title span {
    color: var(--gold);
    display: block;
}

.hero-subtitle {
    margin-top: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 300;
    opacity: .75;
    max-width: 480px;
    line-height: 1.6;
    animation: fadeUp .8s .3s ease both;
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    animation: fadeUp .8s .45s ease both;
}

.btn-primary {
    padding: .85rem 2.5rem;
    background: var(--gold);
    color: var(--bg);
    font-size: .82rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 153, 42, .4);
}

.btn-secondary {
    padding: .85rem 2.5rem;
    border: 1px solid var(--gold-dim);
    color: var(--text);
    font-size: .82rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── STATS BAND ─── */
.stats-band {
    background: var(--gold);
    padding: 1.4rem 4rem;
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--bg);
    line-height: 1;
}

.stat-label {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(10, 10, 15, 0.85);
    margin-top: .2rem;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(10, 10, 15, .2);
}

/* ─── FILTER BAR ─── */
.filter-bar {
    max-width: 100%;
    margin: 0 20px 44px;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--gold-dim);
    border-top: 3px solid var(--gold);
}

.filter-bar span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-right: 10px;
    white-space: nowrap;
}

.f-btn {
    background: none;
    border: 1px solid var(--gold-dim);
    color: var(--muted);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 34px;
    transition: all .2s;
    cursor: pointer;
}

.f-btn:hover           { border-color: var(--gold); color: var(--text); }
.f-btn.active          { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 800; box-shadow: 0 4px 20px rgba(200,168,75,.3); }
.f-btn.hiver.active    { background: #0081C8; border-color: #0081C8; color: #fff; box-shadow: 0 4px 20px rgba(0,129,200,.3); }
.f-btn.ete.active      { background: #FCB131; border-color: #FCB131; color: var(--bg); box-shadow: 0 4px 20px rgba(252,177,49,.3); }

/* ─── CATALOGUE ─── */
.catalogue {
    max-width: 100%;
    margin: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 4px;
}

/* ─── CARDS ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--gold-dim);
    position: relative;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
    animation: cardIn .6s cubic-bezier(.16, 1, .3, 1) both;
}

.card:nth-child(n+4) { content-visibility: auto; contain-intrinsic-size: 0 560px; }
.card:nth-child(n+7) { animation: none; }

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-dim);
    z-index: 2;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
    z-index: 3;
}

.card:hover::before { transform: scaleX(1); }

.card-banner {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: var(--surface2);
}

.card-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.card:hover .card-banner img { transform: scale(1.06); }

.card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.card-banner .fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-category {
    position: absolute;
    top: 14px; left: 14px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--bg);
    background: var(--gold);
    padding: 3px 10px;
    z-index: 2;
    font-weight: 700;
}

.card-num {
    position: absolute;
    bottom: 10px; right: 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    z-index: 2;
}

.card-body {
    padding: 26px 28px 20px;
    border-top: 3px solid var(--surface2);
    transition: border-color .2s;
}

.card:hover .card-body { border-top-color: var(--gold); }

.card-sport {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 5px;
    text-align: left;
}

.card-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 18px;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 18px;
    background: var(--surface2);
    border: 1px solid var(--gold-dim);
}

.card-stats .stat-item {
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid var(--gold-dim);
}

.card-stats .stat-item:last-child { border-right: none; }

.stat-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    color: var(--gold);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 3px;
}

.card-desc {
    font-size: 0.86rem;
    line-height: 1.75;
    color: rgba(240, 240, 240, 0.75);
    margin-bottom: 18px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.tag {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid var(--gold-dim);
    color: var(--muted);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: var(--surface2);
    border-top: 1px solid var(--gold-dim);
}

.origin {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.origin strong { color: var(--text); }

.difficulty { display: flex; gap: 3px; align-items: center; }

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(200, 168, 75, 0.3);
}

.dot.fill { background: var(--gold); border-color: var(--gold); }

/* ─── TABLE ─── */
table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gold-dim);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

table::before {
    content: '';
    display: block;
    height: 5px;
    position: absolute;
    top: 0; left: 0; right: 0;
    background: linear-gradient(to right,
        #0081C8 0%,  #0081C8 20%,
        #FCB131 20%, #FCB131 40%,
        #888888 40%, #888888 60%,
        #00A651 60%, #00A651 80%,
        #EE334E 80%, #EE334E 100%
    );
}

th {
    background: var(--surface2);
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--gold-dim);
}

th:first-child { text-align: center; color: var(--muted); }

td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: background 0.2s;
}

td:first-child  { text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--gold); }
td:nth-child(2) { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.03em; }
td:nth-child(3) { color: #5bb8ff; }
td:nth-child(4) { color: #FCB131; }
td:nth-child(5) { color: var(--muted); font-size: 0.9rem; }
td:nth-child(6) { color: #cce8ff; font-weight: 600; }
td:nth-child(7) { color: var(--muted); font-size: 0.9rem; }

tr:hover td      { background: var(--gold-low); }
tr:last-child td { border-bottom: none; }

/* ─── RINGS ─── */
.rings {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid;
    margin-right: -10px;
}

.ring:nth-child(2),
.ring:nth-child(4) { margin-top: 25px; }

.bleu  { border-color: #0081C8; }
.jaune { border-color: #FCB131; }
.gris  { border-color: #888888; }
.vert  { border-color: #00A651; }
.rouge { border-color: #EE334E; }

/* ─── QUIZ / FORM ─── */
.reponse {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 12px 18px;
    border-left: 3px solid var(--gold);
    background: var(--gold-low);
    margin-bottom: 20px;
}

/* ─── FOOTER ─── */
footer {
    position: relative;
    height: auto;
    min-height: 65px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    margin-top: 80px;
    padding: 20px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── HISTOIRE SECTION ─── */
.histoire-wrapper {
    position: relative;
    height: calc(5 * 100vh);
}

.histoire-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    z-index: 0;
    border-top: 1px solid gold;
}

.histoire-panel[data-index="0"] { z-index: 10; background: var(--bg); }
.histoire-panel[data-index="1"] { z-index: 11; background: #0c0c18; }
.histoire-panel[data-index="2"] { z-index: 12; background: #0e0e1a; }
.histoire-panel[data-index="3"] { z-index: 13; background: #10101c; }
.histoire-panel[data-index="4"] { z-index: 14; background: #12121f; }

.histoire-panel[data-index="0"]::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--gold), transparent); }
.histoire-panel[data-index="1"]::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, #0081C8, transparent); }
.histoire-panel[data-index="2"]::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, #FCB131, transparent); }
.histoire-panel[data-index="3"]::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, #00A651, transparent); }
.histoire-panel[data-index="4"]::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, #EE334E, transparent); }

.hp-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 0 40px;
    animation: hp-reveal .7s cubic-bezier(.16,1,.3,1) both;
}

.hp-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.hp-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 1.8rem;
    text-align: left;
    text-transform: none;
    padding-top: 0;
}

.hp-title span { color: var(--gold); display: block; }

.hp-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(240, 240, 240, 0.80);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hp-facts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hp-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    border-left: 2px solid var(--gold-dim);
}

.hp-fact-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
}

.hp-fact-lbl {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hp-deco {
    position: absolute;
    right: -40px;
    bottom: -40px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.hp-year-bg {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(8rem, 20vw, 18rem);
    color: rgba(229, 200, 111, 0.534);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.hp-scroll-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 2.5rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hp-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    position: relative;
    animation: bounce 2s ease-in-out infinite;
}

.hp-arrow::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: translate(-50%, -65%) rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

@keyframes hp-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── TIMELINE ─── */
.timeline-section {
    padding: 100px 20px;
    background: var(--bg);
    border-top: 1px solid var(--gold-dim);
}

.tl-container {
    max-width: 1100px;
    margin: 0 auto;
}

.tl-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 60px;
    text-align: center;
    opacity: 0.7;
    padding-top: 0;
}

.tl-line {
    list-style: none;
    padding-left: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 12px;
}

.tl-line::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px; right: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim) 15%, var(--gold-dim) 85%, transparent);
}

.tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
    text-align: center;
    position: relative;
}

.tl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--gold);
    flex-shrink: 0;
    transition: background .3s;
}

.tl-item:hover .tl-dot { background: var(--gold); }

.tl-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.tl-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
    max-width: 100px;
}

/* ─── JO FORM ─── */
.jo-form {
    --or:       #C9A84C;
    --or-clair: #F0D080;
    --or-sombre:#8B6914;
    --noir:     #0A0A0A;
    --noir-2:   #111111;
    --noir-3:   #1A1A1A;
    --texte:    #E8D9A0;
}

.jo-form *, .jo-form *::before, .jo-form *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.jo-form {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    background-color: var(--noir);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    padding: 2rem;
}

.jo-form .jo-rings {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
    opacity: 0.75;
    animation: jo-fadeDown 0.8s ease both;
}

.jo-form .jo-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--or);
    margin-top: 0;
}

.jo-form .jo-ring:nth-child(even) { margin-top: 14px; }

.jo-form .jo-card {
    position: relative;
    background: linear-gradient(160deg, var(--noir-3) 0%, var(--noir-2) 100%);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 4px;
    padding: 3rem 2.8rem 2.6rem;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 0 0 1px rgba(201,168,76,0.08),
        0 25px 60px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(201,168,76,0.15);
    animation: jo-fadeUp 0.9s 0.1s ease both;
}

.jo-form .jo-card::before, .jo-form .jo-card::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--or);
    border-style: solid;
}

.jo-form .jo-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.jo-form .jo-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.jo-form .jo-header { text-align: center; margin-bottom: 2.4rem; }

.jo-form .jo-subtitle {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 0.6rem;
}

.jo-form .jo-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.9rem;
    color: var(--or-clair);
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(201,168,76,0.3);
}

.jo-form .jo-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1rem auto 0;
    max-width: 240px;
}

.jo-form .jo-divider span {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--or-sombre));
}

.jo-form .jo-divider span:last-child {
    background: linear-gradient(to left, transparent, var(--or-sombre));
}

.jo-form .jo-divider-icon { color: var(--or); font-size: 0.7rem; }

.jo-form .jo-field { margin-bottom: 1.4rem; }

.jo-form label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 0.55rem;
}

.jo-form .jo-input-wrap { position: relative; }

.jo-form input[type="text"],
.jo-form input[type="number"] {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 2px;
    padding: 0.8rem 1rem;
    color: var(--texte);
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.jo-form input::placeholder { color: rgba(232,217,160,0.25); }

.jo-form input:focus {
    border-color: var(--or);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08), inset 0 1px 3px rgba(0,0,0,0.4);
}

.jo-form input:focus + .jo-focus-bar { transform: scaleX(1); }

.jo-form .jo-focus-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--or-sombre), var(--or-clair), var(--or-sombre));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: 0 0 2px 2px;
}

.jo-form .jo-error {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.3rem 0.7rem;
    background: rgba(180,30,30,0.2);
    border: 1px solid rgba(220,60,60,0.4);
    border-left: 3px solid #ff4444;
    border-radius: 2px;
    color: #ff8080;
    font-size: 0.75rem;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.04em;
    animation: jo-fadeDown 0.3s ease both;
}

.jo-form .jo-btn-wrap { margin-top: 2rem; }

.jo-form input[type="submit"] {
    width: 100%;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--or-sombre) 0%, var(--or) 50%, var(--or-sombre) 100%);
    background-size: 200% 100%;
    background-position: right;
    border: none;
    border-radius: 2px;
    color: var(--noir);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background-position 0.4s ease, box-shadow 0.3s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(201,168,76,0.2);
    cursor: pointer;
}

.jo-form input[type="submit"]:hover {
    background-position: left;
    box-shadow: 0 6px 28px rgba(201,168,76,0.4);
    transform: translateY(-1px);
}

.jo-form input[type="submit"]:active { transform: translateY(0); }

.jo-form .jo-footer-note {
    margin-top: 1.8rem;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: #9e8840;
    text-transform: uppercase;
}

/* ─── JO RESULT (page traitement) ─── */
.jo-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.jo-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.2);
    border-left: 3px solid var(--or);
    border-radius: 2px;
}

.jo-result-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--or);
    font-weight: 500;
    /* réinitialise le style span hérité de .jo-form span */
    display: inline;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-left: none;
    color: var(--or);
    font-family: 'Raleway', sans-serif;
    animation: none;
}

.jo-result-value {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--or-clair);
    font-weight: 600;
    letter-spacing: 0.05em;
    /* réinitialise le style span hérité de .jo-form span */
    display: inline;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-left: none;
    animation: none;
}

.jo-btn-retour {
    display: block;
    width: 100%;
    padding: 0.95rem;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 2px;
    color: var(--or);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.15s;
}

.jo-btn-retour:hover {
    background: rgba(201,168,76,0.1);
    color: var(--or-clair);
    box-shadow: 0 4px 20px rgba(201,168,76,0.15);
    transform: translateY(-1px);
}

.jo-btn-retour:active { transform: translateY(0); }

@keyframes jo-fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 0.75; transform: translateY(0); }
}

@keyframes jo-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── CSS-ONLY FILTER (radio buttons) ─── */
#f-all, #f-ete, #f-hiver { display: none; }

.card[data-s] { display: block; }

#f-ete:checked   ~ .catalogue .card[data-s="hiver"],
#f-hiver:checked ~ .catalogue .card[data-s="ete"] { display: none; }

.fb-all { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 800; box-shadow: 0 4px 20px rgba(200,168,75,.3); }

#f-ete:checked   ~ .filter-bar .fb-all,
#f-hiver:checked ~ .filter-bar .fb-all {
    background: none;
    border-color: var(--gold-dim);
    color: var(--muted);
    font-weight: 700;
    box-shadow: none;
}

#f-all:checked   ~ .filter-bar .fb-all   { background: var(--gold);  border-color: var(--gold);  color: var(--bg); font-weight: 800; box-shadow: 0 4px 20px rgba(200,168,75,.3); }
#f-ete:checked   ~ .filter-bar .fb-ete   { background: #FCB131;       border-color: #FCB131;       color: var(--bg); font-weight: 800; box-shadow: 0 4px 20px rgba(252,177,49,.3); }
#f-hiver:checked ~ .filter-bar .fb-hiver { background: #0081C8;       border-color: #0081C8;       color: #fff;      font-weight: 800; box-shadow: 0 4px 20px rgba(0,129,200,.3); }

/* ═══════════════════════════════════════════
   MOBILE — max-width: 576px
═══════════════════════════════════════════ */
@media (max-width: 576px) {
    #cursor { display: none !important; }

    body {
        padding: 0;
        font-size: 1.1rem;
        min-height: 100vh;
        padding-bottom: 40px;
    }

    /* ── NAV container ── */
    nav { margin-bottom: 0; }

    .nav-container {
        padding: 0 16px;
        height: 64px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* ── Menu plein écran ── */
    #nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 200;
        padding: 80px 0 40px;
        overflow-y: auto;
    }

    #nav-links.open { display: flex; }

    #nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(200,168,75,0.08);
    }

    nav a {
        padding: 22px 40px;
        font-size: 1.15rem;
        letter-spacing: 0.14em;
        border-left: none;
        width: 100%;
        text-align: center;
        display: block;
    }

    nav a::after { display: none; }

    nav a:hover,
    nav a.active,
    nav a.current {
        background: var(--gold-low);
        color: var(--gold);
    }

    /* ── Fermer search desktop ── */
    #search-form { display: none; }

    /* ── Search mobile dans le menu ── */
    .mobile-search-item {
        display: flex;
        padding: 20px 40px;
        width: 100%;
        margin-top: 20px;
    }

    .mobile-search-item input {
        flex: 1;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--gold-dim);
        border-radius: 4px;
        color: var(--text);
        font-size: 1rem;
        padding: 12px 16px;
        outline: none;
        font-family: 'Segoe UI', sans-serif;
    }

    .mobile-search-item input::placeholder { color: var(--muted); }
    .mobile-search-item input:focus { border-color: var(--gold); }

    /* ── Burger button ── */
    #burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        padding: 6px;
        z-index: 300;
        flex-shrink: 0;
        cursor: pointer;
        position: relative;
    }

    #burger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: var(--text);
        border-radius: 2px;
        transition: transform .3s, opacity .3s, background .2s;
        transform-origin: center;
    }

    #burger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); background: var(--gold); }
    #burger.open span:nth-child(2) { opacity: 0; }
    #burger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); background: var(--gold); }

    /* ── Hero ── */
    .hero-section {
        min-height: unset;
        padding: 40px 16px 32px;
        align-items: flex-start;
    }

    .hero-video,
    .hero-overlay { display: none; }

    .hero-content { padding: 0; max-width: 100%; }

    .hero-eyebrow  { font-size: 0.88rem; margin-bottom: 0.8rem; animation: none; }
    .hero-title    { font-size: clamp(3.2rem, 16vw, 5rem); line-height: 0.92; animation: none; }
    .hero-subtitle { font-size: 1.1rem; margin-top: 1.2rem; opacity: 0.8; max-width: 100%; animation: none; }
    .hero-cta      { flex-direction: column; gap: 0.8rem; margin-top: 2rem; animation: none; }

    .btn-primary,
    .btn-secondary { text-align: center; padding: 1rem 2rem; font-size: 0.95rem; width: 100%; }

    /* ── Stats band ── */
    .stats-band  { padding: 1.2rem 1rem; gap: 1.8rem; margin-top: 0; flex-wrap: wrap; justify-content: center; }
    .stat-number { font-size: 2.4rem; }
    .stat-label  { font-size: 0.78rem; }
    .stat-item   { min-width: 80px; }
    .stat-sep    { display: none; }

    /* ── Filter bar — sous le menu burger ── */
    .filter-bar {
        position: relative;
        z-index: 1;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 0 20px;
        padding: 14px 12px;
        border-top-width: 2px;
    }

    .f-btn { padding: 12px 20px; font-size: 0.88rem; }

    /* ── Cards ── */
    .catalogue { grid-template-columns: 1fr; gap: 4px; margin: 0; }

    .card { animation: none; transition: none; content-visibility: visible; contain-intrinsic-size: none; }
    .card:nth-child(n+3) { content-visibility: auto; contain-intrinsic-size: 0 520px; }
    .card::before { display: none; }
    .card:hover { transform: none; box-shadow: none; }
    .card:hover .card-banner img { transform: none; }
    .card:hover .card-body { border-top-color: var(--surface2); }

    .card-banner    { height: 200px; }
    .card-body      { padding: 18px 18px 14px; }
    .card-sport     { font-size: 1.9rem; }
    .card-tagline   { font-size: 1rem; margin-bottom: 16px; }
    .card-stats .stat-item { padding: 12px 8px; }
    .stat-val       { font-size: 1.3rem; }
    .stat-lbl       { font-size: 0.7rem; }
    .card-desc      { font-size: 0.93rem; line-height: 1.72; }
    .card-num       { font-size: 3.8rem; }
    .card-category  { font-size: 0.72rem; padding: 4px 12px; }
    .tag            { font-size: 0.72rem; padding: 4px 10px; }
    .card-footer    { padding: 14px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .origin         { font-size: 0.88rem; }
    .dot            { width: 8px; height: 8px; }

    /* ── Table ── */
    table { display: block; overflow-x: auto; white-space: nowrap; font-size: 1rem; }
    th    { font-size: 0.85rem; padding: 16px; }
    td    { padding: 16px; font-size: 1rem; }

    /* ── Histoire ── */
    .hp-inner    { padding: 0 20px; animation: none; }
    .hp-title    { font-size: clamp(2.8rem, 12vw, 4rem); }
    .hp-body     { font-size: 0.95rem; }
    .hp-facts    { gap: 1.2rem; }
    .hp-fact-num { font-size: 1.4rem; }
    .hp-year-bg  { font-size: 6rem; right: -10px; }

    /* ── Timeline ── */
    .tl-line { flex-direction: column; align-items: flex-start; gap: 28px; }
    .tl-line::before {
        top: 8px; left: 7px; bottom: 8px; right: auto;
        width: 1px; height: auto;
        background: linear-gradient(180deg, transparent, var(--gold-dim) 15%, var(--gold-dim) 85%, transparent);
    }
    .tl-item  { flex-direction: row; align-items: flex-start; text-align: left; gap: 20px; }
    .tl-label { max-width: unset; }
    .timeline-section { padding: 60px 20px; }

    /* ── JO Form mobile ── */
    .jo-form {
        position: relative;
        z-index: 1;           /* bien sous le menu (z-index: 200) et burger (z-index: 300) */
        min-height: unset;
        padding: 2.5rem 1rem 3rem;
        align-items: stretch;
    }

    .jo-form .jo-rings {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .jo-form .jo-ring {
        width: 34px;
        height: 34px;
        border-width: 3.5px;
    }

    .jo-form .jo-card {
        max-width: 100%;          /* pleine largeur */
        width: 100%;
        padding: 2rem 1.4rem 2rem;
    }

    .jo-form .jo-title {
        font-size: 2.2rem;
    }

    .jo-form label {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }

    .jo-form input[type="text"],
    .jo-form input[type="number"] {
        font-size: 1.1rem;
        padding: 1rem 1rem;
    }

    .jo-form .jo-field {
        margin-bottom: 1.8rem;
    }

    .jo-form input[type="submit"] {
        font-size: 1rem;
        padding: 1.1rem;
        letter-spacing: 0.15em;
    }

    .jo-form .jo-btn-wrap {
        margin-top: 2.2rem;
    }

    .jo-form .jo-footer-note {
        font-size: 0.8rem;
        margin-top: 2rem;
    }

    .jo-form .jo-card::before,
    .jo-form .jo-card::after {
        width: 22px;
        height: 22px;
    }

    /* ── Divers ── */
    .reponse { font-size: 1.05rem; padding: 14px 20px; }
    h1, h2   { font-size: 1.6rem; letter-spacing: 0.1em; margin-bottom: 20px; }
    .ring    { width: 36px; height: 36px; border-width: 4px; margin-right: -8px; }
    .ring:nth-child(2),
    .ring:nth-child(4) { margin-top: 18px; }

    footer {
        margin-top: 40px;
        padding: 20px 16px;
        font-size: 0.9rem;
        min-height: unset;
    }

    .rings { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ─── PAGE RECHERCHE ─── */
.recherche-form {
    display: flex;
    flex: 1; /* ← pousse le footer vers le bas */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 60vh;           /* ← prend de la hauteur */
    justify-content: center;    /* ← centre verticalement */
    padding: 0 20px;
    animation: fadeUp .7s ease both;
}

.recherche-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.recherche-bar {
    display: flex;
    width: 100%;
    max-width: 520px;
    border-bottom: 2px solid var(--gold-dim);
    transition: border-color .2s;
}

.recherche-bar:focus-within {
    border-color: var(--gold);
}

.recherche-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    padding: 10px 4px;
    outline: none;
}

.recherche-input::placeholder { color: var(--muted); }

.recherche-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 0 10px 16px;
    transition: color .2s;
}

.recherche-btn:hover { color: var(--text); }