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

@font-face {
    font-family: "Archivo Black";
    src: url("../fonts/archivo-black.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
    font-weight: 500 900;
    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: #0a0a0a;
    --bg-elevated: #121116;
    --surface: rgba(10, 10, 12, 0.55);
    --text: #f2f2f2;
    --text-muted: #c9c3cf;
    --text-soft: #b8b1be;
    --border: rgba(244, 241, 234, 0.14);
    --accent: #ffc531;
    --font-display: "Archivo Black", "Arial Black", sans-serif;
    --font-body: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 0;
    --line: #f2f2f2;
    --line-soft: #2e2e2e;
}

*,
*::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: 0;
}

.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: 0;
    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: 0;
    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);
}

/* Compteur : gros nombre de jours centré + bloc heures / minutes / secondes */
.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 3vw, 24px);
    width: 100%;
}

.countdown-days {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-days-value {
    font-family: var(--font-display);
    font-size: clamp(110px, 30vw, 260px);
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    text-shadow: var(--text-glow);
}

.countdown-days-label {
    margin-top: 0.2em;
    font-family: var(--font-display);
    font-size: clamp(30px, 6vw, 56px);
    line-height: 1;
    text-transform: uppercase;
    text-shadow: var(--text-glow);
}

.countdown-hms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 480px;
    background: rgba(10, 10, 10, 0.75);
    border: 2px solid var(--line);
}

.countdown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 4px;
}

.countdown-cell + .countdown-cell {
    border-left: 2px solid var(--line);
}

.countdown-value {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b5b5b5;
}

/* 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: 0;
}

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

.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: 0;
}

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

.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: 0;
}

.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: 0;
}

.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: 0;
}

.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: 0;
    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: 0;
}

.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: 0;
}

.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;
    /* Toutes les cartes d'une même ligne ont la même hauteur */
    align-items: stretch;
}

.stage-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(23, 21, 28, 0.94);
    border-radius: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-card .artist-list,
.stage-card .stage-coming {
    flex: 1;
}

/* Mini zoom au survol (souris uniquement), réglable dans Paramètres du site */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .stage-card:hover {
        z-index: 2;
        transform: scale(var(--card-zoom, 1.04));
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--stage, rgba(255, 255, 255, 0.2));
    }
}

.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: 0;
}

.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: 0;
    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);
}

/* ===================== Menu : boutons compte ===================== */
.menu-bottom form {
    margin: 0;
}

.button {
    width: 100%;
    font: inherit;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.button-solid {
    color: #0a0a0c;
    background: var(--accent);
}

.button-ghost {
    color: var(--text-soft);
}

/* ===================== Message de confirmation ===================== */
.flash {
    position: relative;
    z-index: 5;
    width: min(100% - 2 * var(--gutter), 560px);
    margin: 0 auto 16px;
    padding: 12px 16px;
    font-weight: 600;
    background: rgba(18, 17, 22, 0.92);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0;
}

/* ===================== Formulaires (connexion, compte…) ===================== */
.page-form main {
    padding: 8px var(--gutter) 56px;
}

.form-card,
.account {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.form-card {
    padding: clamp(20px, 5vw, 32px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
}

.account .form-card + .form-card {
    margin-top: 20px;
}

.form-card h1,
.form-card h2,
.account-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.form-card h1,
.account-title {
    font-size: clamp(32px, 8vw, 44px);
}

.form-card h2 {
    font-size: 26px;
}

.account-title {
    margin-bottom: 4px;
}

.account-email {
    margin: 0 0 20px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.form-card-danger {
    border-color: rgba(255, 77, 77, 0.45);
}

.form-intro {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    min-width: 0;
}

.field label {
    font-size: 14px;
    font-weight: 700;
}

.field-optional {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font: inherit;
    font-size: 16px; /* évite le zoom automatique sur iPhone */
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 241, 234, 0.22);
    border-radius: 0;
}

.field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

.field.has-error input {
    border-color: #ff6b6b;
}

.field-hint {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

.field-error {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #ff8a8a;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 14px;
}

@media (min-width: 520px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    cursor: pointer;
}

.checkbox input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
}

.btn-primary {
    color: #0a0a0c;
    background: var(--accent);
}

.btn-outline {
    border-color: rgba(244, 241, 234, 0.35);
}

.btn-danger {
    color: #fff;
    background: #c62f2f;
}

.btn-block {
    width: 100%;
}

.btn:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    margin-top: 18px;
    font-size: 14px;
}

.form-links a {
    color: var(--text-muted);
}

.account-logout {
    margin: 24px 0 0;
    text-align: center;
}

/* Champ piège anti-robots : invisible pour les humains. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===================== Double authentification ===================== */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-links form {
    margin: 0;
}

.link-button {
    padding: 0;
    font: inherit;
    color: var(--text-muted);
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

.badge-on {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0a0a0c;
    background: #3ddc84;
    border-radius: 0;
}

.qr-code {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 0 16px;
    padding: 10px;
    background: #fff;
    border-radius: 0;
}

.secret-key,
.recovery-codes code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.recovery-codes {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--accent);
    border-radius: 0;
}

.recovery-codes p {
    margin-top: 0;
}

.recovery-codes ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===================== Application smartphone ===================== */
.menu-hint {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pwa-update {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 100;
    width: min(100% - 2 * var(--gutter), 420px);
    padding: 16px 18px;
    text-align: center;
    background: rgba(18, 17, 22, 0.97);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
}

.pwa-update[hidden] {
    display: none;
}

.pwa-update-title {
    margin: 0 0 4px;
    font-weight: 800;
}

.pwa-update-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.pwa-update .btn {
    margin-top: 8px;
}

/* ===================== Pages légales ===================== */
.legal {
    max-width: 760px;
}

.legal h2 {
    margin: 28px 0 8px;
    font-size: 24px;
}

.legal p,
.legal li {
    color: var(--text-muted);
}

.legal a,
.form-legal a {
    color: var(--text);
}

.form-legal {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-soft);
}

.menu-legal {
    margin: 6px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--text-soft);
}

.menu-legal a {
    color: var(--text-soft);
}

/* =====================================================================
   Style « industriel » (angles droits, traits épais).
   Les couleurs vives viennent toujours de --accent (réglée dans le back-office)
   et de --stage (couleur de chaque scène).
   ===================================================================== */
body {
    font-synthesis: none; /* pas de faux gras sur Archivo Black */
}

.brand {
    font-size: clamp(20px, 4vw, 26px);
    letter-spacing: -0.01em;
}

.site-header {
    border-bottom: 2px solid var(--line);
    padding-bottom: max(14px, 1.4vw);
    padding-top: max(14px, env(safe-area-inset-top));
}

.menu-button,
.icon-button {
    background: rgba(10, 10, 10, 0.6);
    border: 2px solid var(--line);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.menu-button:hover,
.icon-button:hover {
    border-color: var(--accent);
}

/* Accueil : textes sur la photo */
.hero {
    gap: clamp(14px, 3vw, 22px);
}

.hero-kicker {
    padding: 0;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.3em;
}

.hero-info,
.hero-soon,
.hero-end {
    background: rgba(10, 10, 10, 0.75);
    border: 2px solid var(--line);
}

.hero-soon,
.rich-text h2,
.rich-text h3 {
    font-weight: 400;
    text-transform: uppercase;
}

/* Menu latéral */
.menu-drawer {
    background: var(--bg);
    border-left: 2px solid var(--line);
}

.lang-switch {
    gap: 0;
    padding: 0;
    background: none;
}

.lang-switch a {
    border: 2px solid var(--line);
}

.lang-switch a + a {
    border-left: 0;
}

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

.menu-years a {
    font-size: 28px;
    font-weight: 400;
    border-bottom: 2px solid var(--line-soft);
}

.button-outline,
.btn-outline {
    border: 2px solid var(--line);
}

.button-solid,
.btn-primary {
    color: var(--bg);
    border: 2px solid var(--accent);
}

/* ===================== Lineup ===================== */
.lineup-head {
    padding: 12px 0 20px;
}

.lineup-kicker {
    color: var(--text);
    font-weight: 600;
}

.lineup-title {
    font-weight: 400;
    font-size: clamp(72px, 14vw, 132px);
    line-height: 0.82;
    letter-spacing: -0.04em;
}

.lineup-draft {
    color: var(--bg);
    background: var(--accent);
}

.year-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.year-nav::-webkit-scrollbar {
    display: none;
}

.year-nav a {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 44px;
    padding: 0 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: rgba(10, 10, 10, 0.75);
    border: 2px solid var(--line);
}

.year-nav a + a {
    border-left: 0;
}

.year-nav a[aria-current="page"] {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

.lineup-toolbar {
    margin-top: 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--line);
}

.chip-row {
    gap: 0;
}

.chip,
.segmented button,
.fav-toggle,
.select-label select {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    border: 2px solid var(--line);
}

.chip + .chip {
    border-left: 0;
}

.chip.is-active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

.segmented {
    gap: 0;
    padding: 0;
    background: none;
}

.segmented button {
    height: 44px;
}

.segmented button + button {
    border-left: 0;
}

.segmented button.is-active {
    color: var(--bg);
    background: var(--text);
}

.select-label {
    color: #b5b5b5;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.select-label select {
    background: var(--bg);
}

.fav-toggle.is-active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

.lineup-empty {
    border: 2px dashed var(--line-soft);
}

.lineup-group-title {
    font-weight: 400;
    font-size: clamp(30px, 5vw, 44px);
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

.lineup-group-title span {
    text-transform: uppercase;
}

.stage-card {
    background: var(--bg);
    border: 2px solid var(--line);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .stage-card:hover {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
        border-color: var(--stage, var(--line));
    }
}

.stage-banner-fallback {
    font-weight: 400;
    font-size: 28px;
    text-transform: uppercase;
}

.stage-bar {
    height: 6px;
    border-top: 2px solid var(--line);
}

.stage-head h3 {
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
}

.artist {
    border-top: 1px solid var(--line-soft);
}

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

.artist-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.artist-time {
    color: #b5b5b5;
}

.artist.is-host .artist-name {
    font-family: var(--font-body);
    text-transform: none;
}

.star {
    color: var(--text);
    border: 2px solid var(--line-soft);
}

.star:hover {
    border-color: var(--line);
}

.artist.is-fav .star {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

/* Formulaires, messages, mise à jour de l'appli */
.form-card,
.flash,
.pwa-update {
    border: 2px solid var(--line);
}

.flash {
    border-left: 6px solid var(--accent);
}

.pwa-update {
    border-top: 6px solid var(--accent);
}

.form-card h1,
.form-card h2,
.account-title,
.legal h2 {
    font-weight: 400;
}

.field input {
    border: 2px solid var(--line-soft);
}

/* Smartphone */
@media (max-width: 640px) {
    .lineup-head {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right {
        width: 100%;
    }

    .select-label {
        flex: 1 1 100%;
    }

    .select-label select {
        flex: 1;
        max-width: none;
    }
}
