:root {
    color-scheme: dark;
    --dark: #121113;
    --panel: #201e22;
    --red: #bb1836;
    --accent: #ff6a80;
    --paper: #f3f0eb;
    --text: #f8f5f3;
    --muted: #d0c8cc;
    font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--text); line-height: 1.6; }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ee7186; outline-offset: 4px; }
.wrap { width: min(1120px, 90%); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 76px; }
.top { border-bottom: 1px solid #fff2; }
.brand { display: inline-flex; gap: .75rem; align-items: center; font-weight: 900; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand small { display: block; font-size: .75rem; letter-spacing: .14em; margin-top: .25rem; }
.monogram { background: var(--red); padding: .55rem .85rem; font-size: 1.35rem; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2.4rem); }
nav a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }
.button { display: inline-block; border: 0; border-radius: 4px; background: var(--red); color: white; text-decoration: none; font-weight: 750; padding: .85rem 1.25rem; }
.button:hover { background: #a01631; }
.compact { padding: .55rem .85rem; }
.hero { min-height: 610px; display: grid; align-items: center; background: linear-gradient(105deg, #191316, #471521); border-bottom: 5px solid var(--red); }
.hero.has-photo {
    background: linear-gradient(90deg, #100e11f5 3%, #100e11bd 37%, #100e1138 75%), url('terrain.webp') center 52% / cover;
}
.hero-content { padding-block: 5rem; }
.eyebrow { color: var(--accent); font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 .8rem; }
h1, h2, h3, p { margin: 0 0 .8rem; }
h1, h2 { line-height: .98; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(5rem, 13vw, 10rem); text-transform: uppercase; font-weight: 950; }
.hero em { font-style: normal; color: #ff5773; }
.hero-copy { max-width: 29rem; font-size: 1.2rem; margin-block: 1.35rem; }
.secondary { margin-left: 1rem; font-weight: 650; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1.35rem; }
h3 { line-height: 1.2; }
.club { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.club > p { font-size: 1.15rem; color: var(--muted); }
.paper { background: var(--paper); color: #211c20; }
.paper .eyebrow, .paper a { color: #a21431; }
.team-grid, .match-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid article { background: white; padding: 1.35rem; border-top: 4px solid var(--red); }
.team-grid a { font-weight: 700; }
.venue { margin: 1.5rem 0 0; }
.match-grid, .trial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.match-panel { background: var(--panel); border: 1px solid #fff2; padding: 1.25rem; margin-bottom: .6rem; }
.match-panel p { color: var(--muted); }
.match { border-top: 1px solid #fff2; padding: .7rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.match small { color: var(--muted); display: block; }
.trial { background: #30121b; }
.trial.has-photo { background: linear-gradient(90deg, #210e16e8, #210e16bc), url('entrainement.webp') center / cover; }
.trial-grid { align-items: center; gap: clamp(1.2rem, 6vw, 5rem); }
.trial-grid p { max-width: 34rem; }
.form-card { color-scheme: light; display: grid; gap: .9rem; background: var(--paper); color: #211c20; border-radius: 6px; padding: clamp(1rem, 3vw, 1.65rem); }
.form-card label { display: grid; gap: .25rem; font-size: .95rem; font-weight: 650; min-width: 0; }
input, select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #aa9da2; border-radius: 4px; background: white; color: #211c20; padding: .6rem .7rem; }
.notice { color: #153a24; background: #dff4e5; padding: .7rem 1rem; border-radius: 4px; }
.notice.error { color: #751327; background: #ffe3e9; }
footer { border-top: 1px solid #fff2; }
footer .bar { flex-wrap: wrap; padding-block: 1rem; }
.admin h1 { font-size: clamp(2.7rem, 7vw, 4.5rem); }
.admin h2 { font-size: clamp(2rem, 5vw, 3rem); }
.admin section { margin-top: 2.5rem; }
.admin-login { max-width: 420px; }
.admin-nav { flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 700px) {
    .top .bar { flex-wrap: wrap; gap: .8rem; padding-block: .8rem; }
    .top nav { order: 2; flex-basis: 100%; }
    .hero { min-height: 520px; }
    .hero.has-photo { background-position: center, 58% center; }
    .club, .team-grid, .match-grid, .trial-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 365px) {
    .secondary { display: block; margin: .7rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Shared navigation and editorial pages */
.icon { width: 1.25em; height: 1.25em; vertical-align: -.22em; flex: none; }
.skip-link { position: absolute; top: .5rem; left: .5rem; background: var(--paper); color: var(--dark); padding: .6rem; transform: translateY(-150%); z-index: 2; }
.skip-link:focus { transform: none; }
.top nav a { white-space: nowrap; padding-block: .4rem; border-bottom: 2px solid transparent; }
.top nav a[aria-current] { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; }
.page-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.page-heading h1, .article h1, .trial h1 { font-size: clamp(3rem, 8vw, 6.75rem); font-weight: 900; }
.page-heading > p:last-child, .lead { font-size: 1.15rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 0; }
.score-strip { background: var(--panel); border-bottom: 1px solid #fff2; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 1.25rem; padding-block: 1.35rem; }
.score-grid > div { display: flex; align-items: flex-start; gap: .75rem; }
.score-grid .icon, .history .icon { color: var(--accent); font-size: 1.2rem; }
.score-grid strong, .score-grid small, .score-grid div span span { display: block; }
.score-grid small { font-size: .875rem; color: var(--muted); }
.score-grid a, .section-head a { font-weight: 750; }
.feature, .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1rem, 5vw, 4rem); }
.feature img, .gallery-grid img, .article img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.feature p { margin-bottom: 1.2rem; }
.history { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.history > div { padding: 1.1rem; border-top: 3px solid var(--red); background: var(--panel); }
.history strong, .history span { display: block; }
.history strong { font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1.2; }
.history .icon { float: right; }
.paper .team-grid article > .icon { color: #a21431; font-size: 1.55rem; margin-bottom: .5rem; }
.schedule { border-top: 1px solid #211c2022; padding-top: .7rem; }
.match-panel h2, .match-grid section h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.empty-state { background: white; border-left: 4px solid var(--red); padding: 1.35rem; display: flex; gap: 1rem; }
.empty-state .icon { color: #a21431; font-size: 1.55rem; }
.empty-state p, .news-copy p:last-child { margin-bottom: 0; }
.news-grid article { padding: 0; overflow: hidden; }
.news-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-copy { padding: 1.2rem; overflow-wrap: anywhere; }
.news-copy h3 { font-size: 1.4rem; }
.article { max-width: 800px; overflow-wrap: anywhere; }
.article h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.article .eyebrow { margin-top: 1.5rem; }
.article img { margin-block: 1.5rem; }
.article-body { font-size: 1.08rem; }
.gallery-grid { gap: 1.25rem; margin-bottom: 1.5rem; }
.gallery-grid figure { margin: 0; background: var(--panel); }
.gallery-grid figcaption { padding: .8rem 1rem; }
details { border-top: 1px solid #fff3; padding-block: .65rem; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: .55rem; }
.news-editor { margin-top: 1rem; max-width: 720px; }
.news-editor form { margin-top: .65rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; padding-block: 1.75rem; }
.footer-grid p { color: var(--muted); margin-top: .35rem; margin-bottom: 0; }
.footer-grid nav { flex-wrap: wrap; }
@media (max-width: 900px) {
    .top .bar { flex-wrap: wrap; padding-block: .65rem; gap: .65rem; }
    .top nav { order: 2; flex-basis: 100%; flex-wrap: wrap; }
    .menu-toggle:not([hidden]) { order: 1; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border: 1px solid #fff5; border-radius: 4px; background: var(--panel); color: var(--text); font-weight: 750; }
    .menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
    .menu-toggle:not([hidden]) + nav { display: grid; gap: 0; border-top: 1px solid #fff3; }
    .menu-toggle:not([hidden]) + nav a { padding: .65rem .2rem; border-bottom: 1px solid #fff2; }
}
@media (max-width: 390px) {
    .top .bar { gap: .4rem; }
    .top .brand { gap: .35rem; font-size: .85rem; }
    .top .brand img { width: 32px; height: 32px; }
    .top .brand small { font-size: .62rem; }
    .top .button.compact, .top .menu-toggle { padding: .45rem .5rem; font-size: .875rem; }
}
@media (max-width: 700px) {
    .score-grid, .feature, .gallery-grid { grid-template-columns: 1fr; }
    .history { gap: .5rem; }
    .history > div { padding: .65rem; }
    .history .icon { float: none; }
}

/* Club information and membership */
.news-art { display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 75% 0%, #86203a, #21151d 70%); color: #ff8498; }
.news-art .icon { width: 3.5rem; height: 3.5rem; }
.article-source { margin-top: 1.35rem; }
.info-card, .team-profile, .archive-result { background: white; padding: clamp(1rem, 3vw, 1.55rem); border-top: 3px solid var(--red); overflow-wrap: anywhere; }
.info-card .icon, .team-profile .icon { color: #a21431; }
.team-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.team-profile { display: flex; flex-direction: column; }
.team-profile header > .icon { font-size: 1.55rem; margin-bottom: .65rem; }
.team-profile h2, .join-steps h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin-bottom: .7rem; }
.team-profile dl { flex: 1; margin: .35rem 0 1rem; }
.team-profile dl div { border-top: 1px solid #211c2022; padding-block: .55rem; }
.team-profile dt { font-weight: 750; }
.team-profile dd { margin: .15rem 0 0; }
.join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; counter-reset: join-step; padding: 0; margin: 0; }
.join-steps li { background: var(--panel); border-top: 3px solid var(--red); padding: 1.2rem; counter-increment: join-step; }
.join-steps li::before { content: counter(join-step, decimal-leading-zero); color: var(--accent); font-weight: 850; display: block; margin-bottom: .5rem; }
.archive-result { display: flex; align-items: center; justify-content: space-between; gap: .85rem; }
.archive-result small { display: block; }
.archive-result > strong { white-space: nowrap; font-size: 1.35rem; color: #a21431; }
.trial-membership { padding-bottom: 2rem; }
.home-gallery { margin-bottom: 0; color: var(--text); }
.home-join { background: linear-gradient(110deg, #30121b, var(--dark)); }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: flex-end; }
.site-footer { background: #171418; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 1.4rem; padding-block: 2.75rem; }
.site-footer nav { display: grid; align-content: start; gap: .55rem; }
.site-footer .icon { color: var(--accent); }
.social-link { display: inline-flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid #fff3; text-decoration: none; }
.social-link .icon { width: 1.6rem; height: 1.6rem; }
.social-link small { color: var(--muted); }
.footer-base { border-top: 1px solid #fff3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: .85rem; color: var(--muted); }
@media (max-width: 950px) {
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .team-profile-grid, .join-steps { grid-template-columns: 1fr; }
    .join-actions { justify-content: flex-start; }
}
@media (max-width: 440px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.gallery-social { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 6vw, 4.5rem); margin-top: 2.4rem; }
.gallery-social img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
    .gallery-social { grid-template-columns: 1fr; }
    .gallery-social > a { max-width: 340px; }
}

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #100e11ef, #100e11af 34%, #100e1120 76%), linear-gradient(0deg, #100e11a0, transparent 45%); }
.score-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.score-card { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 300px; overflow: hidden; background: #291920; }
.score-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.score-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #100e11 4%, #100e11b8 56%, #100e1120); }
.score-content { padding: clamp(1rem, 4vw, 1.7rem); }
.score-content > small, .score-content > p { display: block; margin-top: .65rem; margin-bottom: 0; }
.score-content > small { color: var(--muted); }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .65rem; }
.match-teams span { display: flex; align-items: center; gap: .5rem; overflow-wrap: anywhere; font-weight: 700; }
.match-teams > strong { white-space: nowrap; background: var(--red); color: white; padding: .25rem .55rem; border-radius: 3px; }
.match-teams span:last-child { flex-direction: row-reverse; text-align: right; }
.match-teams img { flex: none; width: clamp(26px, 5vw, 48px); height: clamp(26px, 5vw, 48px); object-fit: contain; background: #fff; border-radius: 4px; padding: 4px; }
.match-row { display: block; }
.match-row > small { display: block; margin-top: .6rem; }
.editorial-gallery { align-items: start; gap: 1rem; }
.editorial-gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #201e22; }
.editorial-gallery figcaption { color: var(--text); }
.team-photo { margin: 0 0 1rem; }
.team-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 38%; }
.team-photo figcaption, .article-cover figcaption { font-size: .875rem; margin-top: .4rem; }
.article-cover { margin: 1.5rem 0; }
.article-cover img { margin: 0; aspect-ratio: auto; max-height: 650px; object-fit: contain; background: var(--panel); }
.article-gallery { margin-top: 2rem; }
.article-gallery h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.article-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.gallery-picker { margin: 0; min-width: 0; }
.gallery-picker label { display: flex; align-items: start; gap: .5rem; }
.gallery-picker input { width: auto; margin-top: .35rem; flex: none; }
.home-join.paper, .trial.paper { background: #fff; color: #211c20; }
.trial.paper .form-card { border: 1px solid #ddd4d5; }
.paper a.button { color: white; }
.paper a.button-white { color: #8d1029; background: white; border: 1px solid #8d1029; }
.paper a.button-white:hover { background: #f9e9ec; }
@media (max-width: 700px) {
    .score-cards { grid-template-columns: 1fr; }
    .hero-photo { object-position: 58% center; }
}
@media (max-width: 440px) {
    .match-teams span, .match-teams span:last-child { flex-direction: column; text-align: center; justify-content: center; }
}
