:root {
    color-scheme: light;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    color: #20223c;
    background: #f7f8fa;
    line-height: 1.5;
    --accent: #223d57;
    --muted: #515b6e;
    --border: #d5dce3;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2.5rem, 69rem); margin-inline: auto; }
.hero { padding: 1.6rem 0 2.75rem; background: linear-gradient(115deg, #d7eeec, #e4e8f4 62%, #eadfed); }
.brand { color: inherit; font-size: 1.4rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.edition { margin: 1.75rem 0 .55rem; color: #344658; font-weight: 600; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 22ch; margin-bottom: .75rem; font-size: clamp(1.85rem, 4.5vw, 3.2rem); line-height: 1.05; }
h2 { margin-bottom: .9rem; font-size: 1.45rem; line-height: 1.2; }
.subtitle { margin-bottom: 0; font-size: 1.15rem; }
main { padding-block: 1.75rem 2.25rem; }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .65rem; background: #181923; }
.card { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.6rem); background: white; border: 1px solid var(--border); border-radius: .65rem; }
.card > :last-child, .status { margin-bottom: 0; }
label { display: block; margin-bottom: .4rem; font-weight: 650; }
textarea, input { width: 100%; padding: .65rem .75rem; border: 1px solid #8794a4; border-radius: .38rem; color: inherit; background: white; font: inherit; }
textarea { display: block; resize: vertical; }
.question-name { margin-bottom: .85rem; }
button { padding: .6rem 1.05rem; border: 1px solid var(--accent); border-radius: .38rem; background: var(--accent); color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button.secondary { background: white; color: var(--accent); }
:focus-visible { outline: 3px solid #5580a7; outline-offset: 3px; }
.hint, time { color: var(--muted); font-size: .92rem; }
.hint { margin: .55rem 0 .9rem; }
.status:not(:empty) { margin-top: .65rem; }
.status[data-error] { color: #982f38; }
.resources, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.5rem; margin-top: 1.3rem; }
.toolbar { justify-content: space-between; }
.resources a { color: var(--accent); text-underline-offset: .2em; }
.regie { max-width: 52rem; }
.regie h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.regie .login { max-width: 28rem; }
.login input { margin-bottom: .75rem; }
.questions { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.questions .card { margin: 0; }
.questions .body { margin: .65rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.questions [data-treated] { background: #eef4f1; }

.spectateur {
    --accent: #234f7a;
    --green: #256458;
    --violet: #60457e;
    --muted: #506174;
    --border: #d4e0e8;
    --brand-line: linear-gradient(90deg, #397eae 0%, #54a68c 48%, #8a65aa 100%);
    color: #24364d;
    background: #f5f8fb;
}
.spectateur a { text-underline-offset: .2em; }
.spectateur :focus-visible { outline-color: var(--violet); }
.spectateur .skip-link {
    position: absolute;
    z-index: 1;
    padding: .6rem 1rem;
    background: white;
    color: var(--accent);
}
.spectateur .skip-link:not(:focus) { clip-path: inset(50%); }
.spectateur .site-nav { background: #fff; border-bottom: 1px solid var(--border); }
.spectateur .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; padding-block: .55rem; }
.spectateur .nav-links a { padding: .35rem .45rem; color: var(--accent); font-weight: 650; text-decoration: none; }
.spectateur .nav-links a[href="#chat-du-direct"] {
    padding-inline: .75rem;
    border-radius: .4rem;
    color: var(--violet);
    background: #f0eaf6;
}
.spectateur .nav-links a:is(:hover, :focus-visible) { text-decoration: underline; }
.spectateur .hero {
    border-bottom: .25rem solid transparent;
    background:
        linear-gradient(105deg, #eff7fc 12%, #eaf6f2f2 51%, #eee6f4b8 100%) padding-box,
        url("https://acfos-tv.fr/wp-content/uploads/2026/04/Visuel-mains.jpg") center / cover padding-box,
        var(--brand-line) border-box;
}
.spectateur .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 15rem);
    align-items: center;
    gap: 1.5rem;
}
.spectateur .hero-inner .edition { margin-top: 0; color: var(--green); font-weight: 750; }
.spectateur .hero h1 { color: #203b5c; line-height: 1.1; }
.spectateur .hero .subtitle { color: var(--violet); }
.spectateur .hero-logo { display: block; padding: .7rem; border-radius: .7rem; background: #ffffffdf; }
.spectateur .hero-logo img { display: block; width: 100%; height: auto; }
.spectateur .hero-date { margin: .85rem 0 0; color: var(--muted); }
.spectateur .quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .7rem;
    margin-bottom: 1.75rem;
}
.spectateur .quick-links a {
    display: grid;
    place-items: center;
    padding: .7rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    background: #e9f2f9;
    color: var(--accent);
    font-weight: 650;
    text-align: center;
}
.spectateur .quick-links a:nth-child(2) { color: var(--green); background: #e8f4ef; }
.spectateur .quick-links a:nth-child(3) { color: var(--violet); background: #f0eaf6; }
.spectateur .quick-links a:hover { border-color: currentColor; }
.spectateur #live-title, .spectateur .content-section > h2 { color: var(--accent); }
.spectateur iframe.player { border: 1px solid #d4e0e8; }
.spectateur .content-section { margin-top: 2.6rem; }
.spectateur .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.spectateur .logo-grid li > :is(a, div) {
    display: grid;
    grid-template-rows: 4rem 1fr;
    justify-items: center;
    align-items: center;
    gap: .65rem;
    height: 100%;
    padding: .9rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
    color: var(--accent);
    background: white;
    font-weight: 650;
    text-align: center;
}
.spectateur .logo-grid a:hover { border-color: var(--accent); background: #f0f6f7; }
.spectateur .logo-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
.spectateur .detail-grid, .spectateur .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: .9rem;
}
.spectateur .detail-grid > .card { min-width: 0; margin: 0; }
.spectateur .detail-logo {
    display: block;
    width: min(100%, 13rem);
    height: 4rem;
    margin-bottom: 1rem;
    object-fit: contain;
    object-position: left center;
}
.spectateur .contact-list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.spectateur .contact-list a { color: inherit; overflow-wrap: anywhere; }
.spectateur .attendance-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.spectateur .attendance-grid figure { margin: 0; text-align: center; }
.spectateur .attendance-grid img { display: block; max-width: 100%; height: auto; margin-bottom: .4rem; }
.spectateur .teaser { max-width: 48rem; }
.spectateur .venue-photo { width: 100%; height: auto; border-radius: .65rem; }
.spectateur .site-footer {
    padding: 1.6rem 0 2rem;
    border-top: .25rem solid transparent;
    background: linear-gradient(#234365, #234365) padding-box, var(--brand-line) border-box;
    color: white;
}
.spectateur .site-footer h2 { font-size: 1.15rem; }
.spectateur #chat-du-direct {
    border-top: .25rem solid #8a65aa;
    box-shadow: 0 .2rem .75rem #234f7a0b;
}
.spectateur #chat-title, .spectateur .chat-messages strong { color: var(--violet); }
.spectateur #chat-form button { background: var(--violet); border-color: var(--violet); }
.spectateur #chat-form button:not(:disabled):hover { background: #4c3567; }
.chat-messages {
    height: clamp(13rem, 36vh, 19rem);
    overflow-y: auto;
    margin: .6rem 0 1rem;
    padding: .25rem .9rem;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: .45rem;
    background: #f6f3f9;
}
.chat-messages li { padding: .55rem 0; overflow-wrap: anywhere; }
.chat-messages li + li { border-top: 1px solid var(--border); }
.chat-messages time { margin-left: .45rem; }
.chat-messages p { margin: .15rem 0 0; white-space: pre-wrap; }
#chat-form input { max-width: 24rem; }
#chat-form :is(input, textarea) { margin-bottom: .75rem; }

@media (max-width: 38rem) {
    .spectateur .hero { padding-block: 1rem 1.45rem; }
    .spectateur .hero-inner { grid-template-columns: 1fr; gap: .85rem; }
    .spectateur .hero-logo { order: -1; width: 6rem; padding: .3rem; }
    .spectateur .nav-links { gap: .2rem .35rem; }
    .spectateur .quick-links { gap: .45rem; }
    .spectateur #chat-form button { width: 100%; }
}
