:root {
    --ink: #111111;
    --paper: #ffffff;
    --card: #ffffff;
    --line: #e6e6e6;
    --accent: #c8102e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Georgia, serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px 0;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lang-bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0;
    flex-shrink: 0;
}

.lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink);
    line-height: 0;
}

.lang-icon[aria-current="page"] {
    border-color: var(--ink);
}

.lang-flag {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-flag-fr {
    background-image: linear-gradient(
        90deg,
        #002395 0 33.33%,
        #fff 33.33% 66.66%,
        #ed2939 66.66% 100%
    );
}

.lang-flag-nl {
    background-image: linear-gradient(
        180deg,
        #ae1c28 0 33.33%,
        #fff 33.33% 66.66%,
        #21468b 66.66% 100%
    );
}

.lang-flag-de {
    background-image: linear-gradient(
        180deg,
        #000 0 33.33%,
        #dd0000 33.33% 66.66%,
        #ffce00 66.66% 100%
    );
}


.brand-block a {
    display: flex;
    line-height: 0;
}

.logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.hero {
    text-align: center;
    padding: 0 0 24px;
}

.hero-img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 2px auto 10px;
}

.kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3.4vw, 1.7rem);
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 10px;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 12px;
}

.lead {
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 0;
}

.event-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 24px;
}

.event-label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.event-card h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.event-sbk {
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.event-meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-lbl {
    display: inline-block;
    min-width: 7.5rem;
    font-weight: 700;
}

#event_date {
    font-size: 1.2rem;
    font-weight: 700;
}

.event-body {
    margin: 0 0 16px;
    line-height: 1.55;
}

.stage-card {
    margin-top: 20px;
}

.stage-quotes {
    margin: 0 0 16px;
    padding: 0;
    border: none;
}

.stage-quotes p {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
}

.stage-quotes p:last-child {
    margin-bottom: 0;
}

.formule {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px 6px;
    margin: 0 0 16px;
}

.formule legend {
    font-weight: 700;
    padding: 0 6px;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    margin: 0 0 10px;
    cursor: pointer;
}

.choice input {
    margin-top: 3px;
}

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

.form-help {
    margin: 0 0 20px;
    line-height: 1.55;
    font-size: 1.05rem;
    font-style: italic;
    opacity: 0.9;
}

.form-help + .form-help {
    margin-top: -8px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 700;
}

.field input {
    font: inherit;
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 8px;
}

.total-line {
    grid-column: 1 / -1;
    margin: 0 0 10px;
}

.submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.pay-ico {
    display: block;
    width: 73px;
    height: 52px;
    max-width: 73px;
    max-height: 52px;
    flex: 0 0 73px;
    overflow: visible;
    vertical-align: middle;
}

#btn_inscrire + .pay-ico {
    margin-left: 8px;
}

#btn_inscrire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

#btn_inscrire:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-msg {
    margin: 12px 0 0;
}

.form-msg.ok {
    color: #1a7f37;
}

.form-msg.err {
    color: var(--accent);
}

.form-card h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.btn-sondage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    margin-left: auto;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

#btn_sondage_send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#btn_sondage_send:disabled {
    opacity: 0.6;
    cursor: wait;
}

.participants-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 20px 64px;
}

.participants-main h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.participants-main h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.part-group {
    margin-top: 28px;
}

.part-group .totals {
    margin: 8px 0 12px;
}

.totals {
    margin: 20px 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.part-table {
    width: 100%;
    border-collapse: collapse;
}

.part-table th,
.part-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.part-table th:not(:first-child),
.part-table td:not(:first-child) {
    text-align: right;
    width: 7rem;
}

.part-table tbody tr:last-child td {
    border-bottom: none;
}

.vote-board {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.vote-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.vote-choice.win {
    border-color: var(--ink);
    background: #f6f6f6;
}

.vote-choice.tie {
    border-color: var(--ink);
}

.vote-name {
    font-weight: 700;
    flex: 1;
}

.vote-count {
    font-size: 1.4rem;
}

.vote-badge {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}
