:root {
    --color-red: rgb(205, 37, 50);
    --color-white: rgb(255, 255, 255);
    --color-black: rgb(0, 0, 0);
    --color-gray-100: rgb(245, 245, 245);
    --color-gray-300: rgb(210, 210, 210);
    --font-main: "Bolle Votica", Helvetica, Arial, sans-serif;
    --font-body: Helvetica, Arial, sans-serif;
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.6rem, 3vw, 2.4rem);
    --text-xxl: clamp(2rem, 5vw, 3.4rem);
    --lh-tight: 1.15;
    --lh-body: 1.55;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;
    --radius-none: 0;
    --radius-soft: 4px;
    --border-main: 2px solid var(--color-black);
    --shadow-soft: 0 3px 0 rgba(0, 0, 0, 0.15);
    --header-expanded: 160px;
    --header-compact: 72px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background: var(--color-red);
    line-height: var(--lh-body);
    text-rendering: optimizeLegibility;
}

.site-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.site-shell::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12) 1px, transparent 1px), radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 26px 26px, 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 99;
    background: var(--color-white);
    border: var(--border-main);
    color: var(--color-black);
    padding: var(--space-2) var(--space-3);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(205, 37, 50, 0.93), rgba(163, 29, 40, 0.84));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    height: calc(var(--header-expanded) - (var(--header-expanded) - var(--header-compact)) * var(--header-progress, 0));
    padding: 0 clamp(14px, 3vw, 36px);
    transition: background-color 260ms ease, box-shadow 260ms ease;
}

.header-inner {
    width: min(1180px, 94vw);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: transform 260ms ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.swiss-flag {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    background: #a31d28;
    outline: 2px solid #fff;
    outline-offset: -2px;
    box-shadow: inset 0 0 0 2px #fff, 0 8px 18px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.swiss-flag::before,
.swiss-flag::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--color-white);
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.swiss-flag::before {
    width: 36px;
    height: 12px;
}

.swiss-flag::after {
    width: 12px;
    height: 36px;
}

.brand-title {
    font-family: var(--font-main);
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
}

.brand-title:hover,
.brand-title:focus-visible {
    color: rgba(255, 255, 255, 0.88);
}

.brand-sub {
    margin-top: 4px;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.has-scrolled .site-header .brand {
    transform: scale(0.9);
    transform-origin: left center;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font: 700 var(--text-sm) var(--font-main);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 14px;
}

.site-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: flex-end;
    transition: transform 260ms ease;
}

.site-nav a {
    text-decoration: none;
    color: var(--color-white);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.95;
    transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    opacity: 1;
    color: rgba(255, 255, 255, 0.82);
}

main {
    position: relative;
    z-index: 2;
    width: min(1160px, 94vw);
    margin: var(--space-6) auto var(--space-8);
    display: grid;
    gap: var(--space-5);
}

section[id] {
    scroll-margin-top: calc(var(--header-compact) + 22px);
}

#groupe {
    order: -10;
}

#prochaines-dates {
    order: -20;
}

.card {
    background: var(--color-white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    padding: clamp(14px, 2.5vw, 24px);
}

h2,
h3 {
    margin-top: 0;
    font-family: var(--font-main);
    line-height: var(--lh-tight);
    color: var(--color-black);
}

h2 {
    font-size: var(--text-xl);
}

p,
li,
label,
input,
textarea,
select,
small {
    font-size: var(--text-md);
}

ul {
    margin: 0;
    padding-left: 20px;
}

.past-dates {
    margin-top: var(--space-4);
}

.past-dates summary {
    cursor: pointer;
    font-weight: 700;
    font-size: var(--text-md);
    margin-bottom: var(--space-2);
}

.socials {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.socials a,
button,
.event-item a {
    background: var(--color-red);
    color: var(--color-white);
    border: var(--border-main);
    padding: 9px 12px;
    text-decoration: none;
    font: 700 var(--text-sm) var(--font-main);
    cursor: pointer;
}

.socials a:hover,
button:hover,
.event-item a:hover,
.socials a:focus-visible,
button:focus-visible,
.event-item a:focus-visible {
    background: var(--color-black);
}

.socials a.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    margin-top: var(--space-3);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.concert-subtitle {
    font-size: var(--text-lg);
    font-weight: 600;
}

.concert-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.concert-cta a {
    display: inline-block;
    background: var(--color-red);
    color: var(--color-white);
    border: var(--border-main);
    padding: 9px 12px;
    text-decoration: none;
    font: 700 var(--text-sm) var(--font-main);
}

.concert-cta a:hover,
.concert-cta a:focus-visible {
    background: var(--color-black);
}

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

.photo-item {
    border: 0;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    background: var(--color-white);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-item:hover img,
.photo-item:focus-visible img {
    transform: scale(1.03);
    transition: transform 180ms ease;
}

.events-list,
.comments-list {
    display: grid;
    gap: var(--space-3);
}

.event-item,
.comments-list article {
    border: var(--border-main);
    padding: var(--space-3);
    background: var(--color-white);
}

.comments-list article {
    border-color: rgb(128, 128, 128);
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.comments-head h2 {
    margin-bottom: 0;
}

.comment-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
}

.comment-composer {
    border: var(--border-main);
    background: var(--color-gray-100);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

.comment-composer .stack-form {
    margin-bottom: 0;
}

.stack-form {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

label {
    display: grid;
    gap: 5px;
    font-weight: 700;
}

input,
textarea,
select {
    font: inherit;
    color: var(--color-black);
    background: var(--color-white);
    border: var(--border-main);
    padding: 9px 10px;
    border-radius: var(--radius-none);
}

textarea {
    resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--color-black);
    outline-offset: 2px;
}

.flash {
    border: var(--border-main);
    padding: var(--space-3);
    background: var(--color-white);
}

.flash-error {
    background: var(--color-black);
    color: var(--color-white);
}

.site-footer {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    border-top: var(--border-main);
    padding: var(--space-6) 0;
}

.back-home {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 25;
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-white);
    text-decoration: none;
    padding: 6px 10px;
    font-size: var(--text-xs);
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.back-home.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-home:hover,
.back-home:focus-visible {
    background: rgba(0, 0, 0, 0.9);
}

.footer-inner {
    width: min(1160px, 94vw);
    margin: 0 auto;
}

.footer-inner h2 {
    color: var(--color-black);
}

.footer-inner a {
    color: var(--color-red);
    font-weight: 700;
    text-decoration: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
    gap: var(--space-5);
    align-items: start;
}

.contact-infos p {
    margin: 0 0 var(--space-3);
}

.contact-form {
    margin-bottom: 0;
}

.lightbox {
    width: min(96vw, 1400px);
    max-height: 94vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-figure {
    margin: 0;
    width: 100%;
    height: 94vh;
    display: grid;
    place-items: center;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border: 2px solid var(--color-white);
    background: #111;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 2px solid var(--color-white);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    font-family: var(--font-main);
    cursor: pointer;
}

.lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 64px;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

body.is-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 142px;
        padding: 0 var(--space-3);
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: var(--space-2);
    }

    .swiss-flag {
        width: 52px;
        height: 52px;
    }

    .swiss-flag::before {
        width: 26px;
        height: 9px;
    }

    .swiss-flag::after {
        width: 9px;
        height: 26px;
    }

    .brand-title {
        font-size: clamp(1rem, 4.6vw, 1.45rem);
        letter-spacing: 0.08em;
    }

    .brand-sub {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .menu-toggle {
        display: inline-block;
        justify-self: end;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        grid-column: 1 / -1;
        margin-top: var(--space-2);
        background: rgba(120, 18, 29, 0.45);
        padding: var(--space-2);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 14px;
        width: 100%;
        gap: 0.5rem;
    }

    .site-nav a {
        width: 100%;
        padding: 0.35rem 0;
        font-size: 0.84rem;
    }

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

    main {
        margin-top: var(--space-4);
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 44px;
        height: 54px;
        font-size: 1.8rem;
    }

    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}

.admin-page {
    background: var(--color-gray-100);
}

.admin-page .site-header {
    height: auto;
    min-height: auto;
    padding: var(--space-4);
}

.admin-page .site-header .brand h1 {
    font-size: var(--text-xl);
}

.admin-page .site-header .brand p {
    display: block;
    color: var(--color-white);
}

.admin-page .site-header nav,
.admin-page .site-header .site-nav {
    margin-top: var(--space-2);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.admin-page main {
    margin-top: var(--space-5);
}

/* Keep notices and scheduled news above the reordered presentation sections. */
main > .flash { order: -40; }
main > #news { order: -30; }
h1 { font-family: var(--font-main); font-size: var(--text-xl); line-height: var(--lh-tight); margin-top: 0; }
input, textarea, select { min-width: 0; max-width: 100%; }
.card, .contact-infos { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) {
    section[id], footer[id] { scroll-margin-top: 164px; }
    .site-nav { position: absolute; top: 100%; left: 0; margin: 0; background: #A31D28; border-radius: 0; }
    .header-inner { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
    .brand-text { min-width: 0; overflow-wrap: anywhere; }
}

.event-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.event-status { font-weight: bold; color: #A31D28; }
.lightbox-figure { height: auto; min-height: 40vh; }
.lightbox-figure img { max-height: 80vh; }
.lightbox-figure figcaption { padding: 10px; text-align: center; }
.lightbox-figure a { color: white; }
.admin-page .site-header { position: relative; flex-wrap: wrap; }
.admin-page .site-header .brand { flex-direction: column; align-items: flex-start; gap: 0; }
.admin-page .site-header nav { align-items: center; }
.admin-page .site-header nav a { color: white; }
.admin-page .site-header nav form { margin: 0; }
.admin-page section[id] { scroll-margin-top: 24px; }
