@font-face {
    font-family: "Sintony";
    src: url("/assets/fonts/sintony/sintony-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sintony";
    src: url("/assets/fonts/sintony/sintony-latin-700-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --site-max-width: 1430px;

    /* Saison 2025–2026 */
    --lieu-1-2025: #ff9400;
    --lieu-2-2025: #ff1200;

    /* Saison 2026–2027 */
    --lieu-1-2026: #0096FF;
    --lieu-2-2026: #e53ea7;

    /* Saison courante */
    --lieu-1: var(--lieu-1-2026);
    --lieu-2: var(--lieu-2-2026);

    /* Thème général */
    --background: #000;
    --surface: #181818;
    --ink: #fff;
    --muted: #b0b0b0;
    --border: #383838;
    --link: var(--lieu-1);
    --font-size: 17px;

    /* Ronds décoratifs */
    --circle-color: var(--lieu-2);
    --circle-scale: 1;
}

.lieu-1-2025 {
    --circle-color: var(--lieu-1-2025);
}

.lieu-2-2025 {
    --circle-color: var(--lieu-2-2025);
}

.lieu-1-2026 {
    --circle-color: var(--lieu-1-2026);
}

.lieu-2-2026 {
    --circle-color: var(--lieu-2-2026);
}

* {
    box-sizing: border-box
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 1rem/1.65 "Sintony", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--background);
    isolation: isolate;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline
}

.skip {
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--surface);
    padding: 8px;
    z-index: 9
}

.skip:focus {
    top: 8px
}

.site-header {
    border-top: 0;
    background: transparent;
}

.header-inner {
    margin: auto;
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding: 10px 18px;
}

.brand {
    position: fixed;
    top: 20px;
    left: max(12px, calc((100vw - 1430px) / 2 - 210px));
    width: clamp(50px, calc((100vw - 1430px) / 2 - 40px), 250px);
    margin: 0;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.desktop-nav {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 24px
}

.desktop-nav a {
    color: var(--ink);
}

.desktop-nav a[aria-current] {
    color: var(--link)
}

.desktop-nav .subnav-link {
    display: none
}

.mobile-menu {
    display: none
}

.site-body {
    min-width: 0;
}

.site-layout {
    flex: 1;
    display: block;
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.site-shell {
    margin: auto;
    display: grid;
    grid-template-columns:minmax(0, 1fr) 340px;
    min-height: 590px
}

.main-content {
    padding: 42px 46px 70px 18px;
    border-right: 1px solid var(--border);
}

.main-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.15;
    font-weight: 400;
    font-style: oblique 8deg;
    text-transform: uppercase;
    margin: 0 0 52px;
}

.main-content h2 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-top: 34px;
}

.prose {
    font-size: 1rem;
    max-width: 770px;
}

.prose p {
    margin: 0 0 16px
}

.intro {
    margin-bottom: 24px
}

.upcoming {
    position: sticky;
    top: 20px;
    align-self: start;
    padding: 42px 20px 45px 26px
}

.upcoming h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 22px;
    letter-spacing: .01em
}

.event-card {
    display: grid;
    grid-template-columns:64px minmax(0, 1fr);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    min-height: 115px;
    background: var(--surface);
    font-style: oblique 8deg;
}

.event-date {
    background: var(--lieu-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700
}

.event-date .day {
    font-size: 1.6rem;
    line-height: 1.2
}

.event-date .month {
    font-size: 0.85rem;
    letter-spacing: .05em
}

.event-info {
    padding: 12px 11px
}

.event-info time {
    font-size: 1rem;
    color: var(--muted);
}

.event-info h3 {
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 8px 0 4px;
    font-weight: 600
}

.event-info h3 a {
    color: var(--ink)
}

.event-info p {
    font-size: 1rem;
    color: var(--muted);
    margin: 0;
}

.empty-events {
    font-size: 0.9rem;
}

.site-footer {
    background: #222;
    color: #e5e5e5;
    border-bottom: 14px solid #111
}

.footer-inner {
    max-width: 1180px;
    margin: auto;
    min-height: 150px;
    padding: 35px 18px;
    display: flex;
    justify-content: space-between;
    gap: 25px
}

.footer-inner strong {
    font-weight: 500
}

.footer-inner p, .footer-inner small {
    color: #bcbcbc;
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-contact a {
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 760px) {
    .header-inner {
        justify-content: flex-end;
        min-height: 76px;
        padding: 8px 18px;
    }

    .site-layout {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0;
        padding: 0;
    }

    .site-body {
        display: contents;
    }

    .site-header {
        grid-column: 2;
        grid-row: 1;
    }

    .site-shell {
        grid-column: 1 / -1;
    }

    .brand {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 0;
        padding: 8px 18px;
        align-self: center;
        justify-self: start;
    }

    .brand img {
        display: block;
        width: 52px;
        height: auto;
        max-width: none;
    }

    .desktop-nav {
        display: none
    }

    .mobile-menu {
        display: block;
        position: relative;
        margin-left: auto;
    }

    .mobile-menu summary {
        color: var(--ink);
        list-style: none;
        cursor: pointer;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 4px;
        font-size: 1rem;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none
    }

    .mobile-menu nav {
        background: var(--surface);
        position: absolute;
        right: 0;
        top: 100%;
        width: min(85vw, 280px);
        display: flex;
        flex-direction: column;
        border: 1px solid var(--border);
        box-shadow: 0 10px 20px #0002;
        z-index: 5
    }

    .mobile-menu nav a {
        padding: 12px 16px;
        color: var(--ink);
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu nav .subnav-link {
        padding-left: 32px;
        font-size: 0.9rem;
    }

    .site-shell {
        display: flex;
        flex-direction: column
    }

    .main-content {
        padding: 34px 20px 42px;
        border-right: 0;
    }

    .main-content h1 {
        margin-bottom: 30px
    }

    .upcoming {
        width: 100%;
        position: static;
        border-left: 0;
        border-top: 1px solid var(--border);
        padding: 26px 20px 35px
    }

    .event-card {
        max-width: 500px;
        grid-template-columns:75px minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        padding: 28px 20px
    }

    .footer-contact {
        align-items: flex-start
    }
}

/* Page Présentation */
.presentation-page .prose {
    max-width: 770px
}

.presentation-page .prose section {
    margin-bottom: 42px
}

.presentation-page .prose h2 {
    color: var(--ink);
    margin: 32px 0 22px;
    font-size: 1.5rem;
    font-weight: 400
}

.presentation-page .prose h3 {
    color: var(--ink);
    margin: 28px 0 16px;
    font-size: 1.2rem;
}

.presentation-page .prose p {
    margin: 0 0 16px
}

.presentation-page .prose strong {
    font-weight: 700
}

.presentation-page .place-address {
    text-align: center;
    color: var(--link);
    font-size: 0.9rem;
    margin: 16px 0 24px
}

.presentation-page .musicians {
    list-style: none;
    margin: 0 0 28px;
    padding: 0
}

.presentation-page .musicians li {
    margin: 0 0 13px;
    line-height: 1.65
}

@media (max-width: 760px) {
    .presentation-page .prose section {
        margin-bottom: 34px
    }

    .presentation-page .prose h2 {
        margin-top: 28px
    }

    .presentation-page .musicians li {
        margin-bottom: 10px
    }
}

.members-content > p:first-child {
    margin-bottom: 3rem;
}

.members-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Navigation desktop : sous-menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 12px 16px;
    white-space: nowrap;
}

/* Navigation mobile : sous-menu */
.mobile-menu .nav-subitem {
    padding-left: 2rem;
    font-size: 0.9em;
}

.event-detail {
    max-width: 850px;
}

.event-detail h1 {
    line-height: 1.2;
}

.event-page-date {
    margin: 1.5rem 0;
}

.event-poster {
    display: block;
    max-width: 680px;
    width: 100%;
    height: auto;
    margin: 1.5rem auto 2rem;
}

.event-detail > p {
    line-height: 1.7;
}

.social-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.2s ease;
}

.social-facebook:hover,
.social-facebook:focus-visible {
    color: #1877f2;
}

.decor-circle {
    position: fixed;
    width: 1000px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--circle-color);
    pointer-events: none;
    z-index: -1;
    scale: var(--circle-scale, 1);
    transition: scale 0.15s ease-out;
    transform-origin: center;
}

.circle-top-right {
    top: -300px;
    right: max(-100px, calc((100vw - var(--site-max-width)) / 2 - 100px));
}

.circle-middle-right {
    top: 50%;
    right: max(-100px, calc((100vw - var(--site-max-width)) / 2 - 100px));
    transform: translateY(-50%);
}

.circle-bottom-right {
    bottom: -300px;
    right: max(-100px, calc((100vw - var(--site-max-width)) / 2 - 100px));
}

.circle-top-left {
    top: -300px;
    left: max(-200px, calc((100vw - var(--site-max-width)) / 2 - 300px));
}

.circle-middle-left {
    top: 50%;
    left: max(-200px, calc((100vw - var(--site-max-width)) / 2 - 300px));
    transform: translateY(-50%);
}

.circle-bottom-left {
    bottom: -300px;
    left: max(-200px, calc((100vw - var(--site-max-width)) / 2 - 300px));
}

@media (max-width: 760px) {
    .decor-circle {
        width: 400px;
    }

    .circle-top-right {
        top: -100px;
        right: -150px;
    }

    .circle-middle-right {
        top: 50%;
        right: -150px;
        transform: translateY(-50%);
    }

    .circle-bottom-right {
        bottom: -100px;
        right: -150px;
    }

    .circle-top-left {
        top: -100px;
        left: -200px;
    }

    .circle-middle-left {
        top: 50%;
        left: -200px;
        transform: translateY(-50%);
    }

    .circle-bottom-left {
        bottom: -100px;
        left: -200px;
    }
}

.home-slogan {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.35;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 2rem;
}

.home-poster {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 3rem auto 0;
}

@media (max-width: 760px) {
    .home-slogan {
        font-size: 1.5rem;
    }

    .home-poster {
        max-width: 100%;
        margin-top: 2rem;
    }
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.past-event {
    display: block;
}

.past-event img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;
}

.past-event:hover img {
    opacity: 0.8;
}

@media (max-width: 760px) {
    .past-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
