/* DEFQON1.NET — styles du site public (sans outil de compilation) */

@font-face {
    font-family: "Big Shoulders Display";
    src: url("../fonts/big-shoulders-display.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

/* Permet un passage en douceur quand la couleur d'accent change (navigateurs récents). */
@property --accent {
    syntax: "<color>";
    inherits: true;
    initial-value: #ffc531;
}

:root {
    transition: --accent 2s linear;
    --text-glow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.45);
    --bg: #0a0a0c;
    --bg-elevated: #121116;
    --surface: rgba(10, 10, 12, 0.55);
    --text: #f4f1ea;
    --text-muted: #c9c3cf;
    --text-soft: #b8b1be;
    --border: rgba(244, 241, 234, 0.14);
    --accent: #ffc531;
    --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
}

a {
    color: inherit;
}

a:hover {
    color: var(--accent);
}

.accent {
    color: var(--accent);
}

/* Lisibilité des textes posés sur les photos du carrousel */
.brand,
.hero-kicker,
.hero-info,
.hero-soon,
.hero-end,
.countdown-value,
.countdown-label {
    text-shadow: var(--text-glow);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 8px;
}

.skip-link:focus {
    left: 8px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* En-tête */
.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--gutter);
    padding-top: max(20px, env(safe-area-inset-top));
}

.brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 30px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--text);
    line-height: 1;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--surface);
    border: 1px solid rgba(244, 241, 234, 0.25);
    border-radius: 999px;
    cursor: pointer;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(244, 241, 234, 0.2);
    border-radius: 999px;
    cursor: pointer;
}

/* Accueil */
.page-home {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.page-home main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-bg,
.hero-scrim {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    background: #1a1420;
    overflow: hidden;
}

.hero-scrim {
    background: rgba(8, 7, 10, var(--scrim, 0.55));
}

/* Carrousel : la photo qui arrive se fond par-dessus celle qui part, avec un zoom lent */
.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity var(--fade, 1.5s) ease-in-out;
    will-change: opacity, transform;
}

.carousel-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide.is-leaving {
    opacity: 1;
    z-index: 1;
    transition: none;
}

.carousel-slide.is-active,
.carousel-slide.is-leaving {
    animation: carousel-zoom var(--kb-duration, 10s) linear forwards;
}

@keyframes carousel-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(var(--zoom, 1.08));
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide.is-active,
    .carousel-slide.is-leaving {
        animation: none;
    }
}

.hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 16px;
    text-align: center;
}

.hero-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-info,
.hero-soon {
    margin: 0;
    font-size: 16px;
    color: #dad4df;
}

.hero-soon {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 7vw, 80px);
    line-height: 1;
    color: var(--text);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 1.5vw, 12px);
    width: 100%;
    max-width: 920px;
}

.countdown-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 4px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.countdown-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(44px, 9vw, 132px);
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Cadre gris sous les textes (même style que les cases du compteur), uniquement quand le texte existe */
.hero-kicker,
.hero-info,
.hero-soon,
.hero-end {
    background: var(--surface);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    max-width: 100%;
}

.hero-kicker,
.hero-info {
    padding: 10px 20px;
    border-radius: 999px;
}

.hero-soon,
.hero-end {
    padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 40px);
    border-radius: var(--radius);
}

.hero-end > :last-child {
    margin-bottom: 0;
}

.rich-text {
    max-width: 760px;
    font-size: clamp(16px, 2vw, 20px);
}

.rich-text h2,
.rich-text h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.4em;
}

.rich-text h2 {
    font-size: clamp(40px, 7vw, 88px);
}

.rich-text h3 {
    font-size: clamp(28px, 4vw, 48px);
}

.rich-text p {
    margin: 0 0 0.8em;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 0 16px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    font-size: 12px;
    color: var(--text-soft);
}

/* Menu latéral */
.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(5, 5, 7, 0.6);
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 20px var(--gutter) 28px;
    padding-top: max(20px, env(safe-area-inset-top));
    background: var(--bg-elevated);
    border-left: 1px solid rgba(244, 241, 234, 0.1);
    overflow-y: auto;
}

.menu-backdrop[hidden],
.menu-drawer[hidden] {
    display: none;
}

.menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8c8494;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.lang-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
}

.lang-switch a.is-active {
    background: var(--text);
    color: var(--bg);
}

.menu-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
}

.button-outline {
    border: 1px solid rgba(244, 241, 234, 0.35);
}

body.menu-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .menu-drawer {
        animation: drawer-in 0.2s ease-out;
    }

    @keyframes drawer-in {
        from {
            transform: translateX(24px);
            opacity: 0;
        }
    }
}

/* ===================== Page lineup ===================== */
.page-lineup main {
    position: relative;
}

.lineup-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #0e0d11;
}

.lineup-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lineup-bg-dim {
    position: absolute;
    inset: 0;
    background: rgba(8, 7, 10, var(--dim, 0.6));
}

.lineup {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px var(--gutter) 48px;
}

.lineup-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}

.lineup-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: var(--text-glow);
}

.lineup-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(48px, 8vw, 104px);
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-shadow: var(--text-glow);
}

.lineup-draft {
    margin: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0a0a0c;
    background: #ffb020;
    border-radius: 999px;
}

.lineup-empty {
    margin: 32px 0;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px dashed rgba(244, 241, 234, 0.2);
    border-radius: var(--radius);
}

.lineup-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 20px calc(-1 * var(--gutter)) 0;
    padding: 10px var(--gutter);
    background: rgba(14, 13, 17, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.lineup-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.chip-row {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chip,
.segmented button,
.fav-toggle {
    flex: none;
    height: 44px;
    padding: 0 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    background: #1c1922;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.chip.is-active,
.segmented button.is-active {
    background: var(--text);
    color: #0a0a0c;
}

.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #1c1922;
    border-radius: 999px;
}

.segmented button {
    height: 36px;
    background: transparent;
}

.fav-toggle {
    background: transparent;
    border: 1px solid rgba(244, 241, 234, 0.3);
}

.fav-toggle.is-active {
    background: var(--accent);
    color: #0a0a0c;
    border-color: transparent;
}

.select-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft);
}

.select-label select {
    height: 44px;
    max-width: 210px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: #1c1922;
    border: 1px solid rgba(244, 241, 234, 0.2);
    border-radius: 999px;
}

.lineup-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.lineup-group[hidden],
.stage-card[hidden],
.artist[hidden] {
    display: none;
}

.lineup-group-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    letter-spacing: 0.02em;
    text-shadow: var(--text-glow);
}

.lineup-group-title span {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: capitalize;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    align-items: start;
}

.stage-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(23, 21, 28, 0.94);
    border-radius: var(--radius);
}

.stage-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 742 / 290;
    object-fit: cover;
}

.stage-banner-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 34px;
    letter-spacing: 0.04em;
    color: var(--stage-text, #fff);
    background: var(--stage, #6b6472);
}

.stage-bar {
    height: 4px;
    background: var(--stage, #6b6472);
}

.stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 4px;
}

.stage-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.stage-head span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.stage-coming {
    margin: 0;
    padding: 12px 14px 18px;
    font-size: 14px;
    color: #8c8494;
}

.artist-list {
    list-style: none;
    margin: 0;
    padding: 2px 6px 10px;
}

.artist {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 6px 4px 8px;
    border-top: 1px solid rgba(244, 241, 234, 0.06);
    border-radius: 8px;
}

.artist.is-fav {
    background: rgba(255, 255, 255, 0.05);
}

.artist-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.artist-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.artist-time {
    font-size: 12px;
    color: #a39ca9;
    font-variant-numeric: tabular-nums;
}

.artist.is-host .artist-name {
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    color: #a39ca9;
}

.star {
    flex: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
    line-height: 1;
    color: #8c8494;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.artist.is-fav .star {
    color: #0a0a0c;
    background: var(--accent);
}

.site-footer-static {
    position: relative;
    z-index: 1;
    padding-top: 8px;
}

/* Menu : liste des lineups */
.menu-years {
    display: flex;
    flex-direction: column;
}

.menu-years a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.menu-years a span {
    font-family: var(--font-body);
    font-size: 18px;
}

.menu-years a[aria-current="page"] {
    color: var(--accent);
}
