:root {
    --bg: #f3f3f4;
    --surface: #ffffff;
    --text: #141414;
    --muted: #6b7280;
    --primary: #e30613;
    --primary-dark: #b8050f;
    --primary-light: #fff1f2;
    --accent: #0a0a0a;
    --accent-soft: #1a1a1a;
    /* Barres de l'administration : gris ardoise plutôt que noir */
    --chrome: #2a2f37;
    --chrome-soft: #343a44;
    --danger: #c1121f;
    --info: #2563eb;
    --info-light: #eff6ff;
    --violet: #7c3aed;
    --violet-dark: #6d28d9;
    --border: #e4e4e7;
    --shadow: 0 10px 30px rgba(10, 10, 10, 0.08);
    --shadow-strong: 0 16px 40px rgba(10, 10, 10, 0.14);
    --radius: 12px;
    --container-width: 1100px;
    --public-gutter: 1rem;
    /* Site public : menu mobile + grilles jusqu’à cette largeur (téléphones et tablettes) */
    --public-mobile-max: 1023px;
    --public-desktop-min: 1024px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--primary);
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3 {
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.container-wide {
    width: min(1440px, calc(100% - 2rem));
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    display: block;
    height: 2.75rem;
    width: auto;
    aspect-ratio: 1;
    /* Disque noir du logo décalé vers la droite dans l'image source :
       on découpe le cercle autour du disque puis on le recentre. */
    clip-path: circle(48.2% at 51.8% 49.9%);
    transform: translateX(-1.8%) scale(1.045);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

@media (min-width: 769px) {
    .admin-layout {
        height: 100vh;
        overflow: hidden;
    }

    .admin-sidebar {
        height: 100vh;
        overflow-y: auto;
    }

    .admin-main {
        overflow-y: auto;
        min-height: 0;
    }
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--chrome) 0%, var(--chrome-soft) 100%);
    border-right: none;
    box-shadow: var(--shadow-strong);
    padding: 1.25rem 1rem;
    color: #f5f5f5;
}

.admin-sidebar .brand {
    padding: 0 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    color: #ffffff;
}

.admin-sidebar .brand-logo {
    height: 3rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.admin-nav-section {
    margin-top: 1rem;
}

.admin-nav-section:first-of-type {
    margin-top: 0.5rem;
}

.admin-nav-section-title {
    margin: 0 0 0.35rem;
    padding: 0 0.75rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.admin-nav-section-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav > a,
.admin-nav-section-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-badge {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--danger);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
}

.admin-nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-nav > a:hover,
.admin-nav-section-links a:hover {
    background: rgba(227, 6, 19, 0.18);
    color: #ffffff;
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-user {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.5rem;
}

.admin-sidebar-footer button {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-sidebar-footer button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.admin-mobile-header {
    display: none;
}

.admin-backdrop {
    display: none;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-content {
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem 2rem;
    flex: 1;
}

.site-header,
.public-site-header {
    background: var(--accent);
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-strong);
}

.header-inner,
.public-site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 0;
}

.site-header .brand,
.public-site-header__brand {
    margin-right: auto;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
    font-weight: 600;
}

.site-header .brand-logo,
.public-site-header__brand .brand-logo {
    height: 3rem;
    width: 3rem;
    flex-shrink: 0;
}

.public-site-header__site-name {
    line-height: 1.25;
}

.public-site-header__menu-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.public-site-header__menu-toggle:hover {
    background: rgba(227, 6, 19, 0.22);
}

.public-site-header__menu-icon {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav,
.public-site-header__nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav .admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
    background: rgba(227, 6, 19, 0.22);
    color: #ffffff;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-panel button,
button,
.button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.1s ease;
}

button.public-site-header__menu-toggle {
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.75rem;
    border-radius: 8px;
}

button.public-site-header__menu-toggle:hover {
    background: rgba(227, 6, 19, 0.22);
    color: #ffffff;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
}

button:active,
.button:active {
    transform: translateY(1px);
}

.button.secondary {
    background: var(--accent-soft);
}

.button.secondary:hover {
    background: var(--accent);
}

.button-compact {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.25;
}

button.danger,
.button.danger {
    background: var(--danger);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.card h2 {
    margin-top: 0;
    color: var(--accent);
}

.card.narrow {
    max-width: 560px;
    margin-inline: auto;
    border-top: 4px solid var(--primary);
}

.card.registration-card {
    width: 100%;
    padding: 0;
    /* clip (et non hidden) pour garder les éléments sticky fonctionnels */
    overflow: clip;
    border-top: none;
    margin-top: 1.5rem;
}

.registration-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 55%, #2a2a2a 100%);
    color: #ffffff;
    padding: 1.35rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.registration-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.registration-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    max-width: 760px;
}

.registration-hero h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.registration-hero-desc {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.registration-body {
    padding: 2rem 2.5rem 2.5rem;
}

.registration-draft-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.registration-draft-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.registration-draft-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.registration-draft-notice {
    margin-bottom: 1rem;
}

/* Mise en page : navigation des étapes + formulaire */

.registration-layout [hidden] {
    display: none !important;
}

/* Numéros d'étape calculés : une section masquée ne laisse pas de trou */
.registration-steps ol,
.registration-form {
    counter-reset: reg-step;
}

.registration-steps li,
.registration-section {
    counter-increment: reg-step;
}

.registration-steps-num::before,
.registration-section-num::before {
    content: counter(reg-step);
}

.registration-layout {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.registration-steps,
.registration-main {
    min-width: 0;
}

.registration-steps {
    position: sticky;
    top: 1.25rem;
}

.registration-steps ol {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.registration-steps a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.registration-steps a:hover {
    background: #f4f4f5;
    color: var(--text);
}

.registration-steps-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--muted);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.registration-steps a.is-active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.registration-steps a.is-active .registration-steps-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.registration-form {
    gap: 1.25rem;
}

.registration-form .registration-section {
    display: block;
    min-width: 0;
    scroll-margin-top: 1.25rem;
    padding: 1.4rem 1.6rem 1.6rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-section > legend.registration-section-head {
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--accent);
}

.registration-section-head + * {
    clear: both;
}

.registration-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.registration-section-desc {
    margin: 0.2rem 0 1rem 2.55rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.registration-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f1f1f3;
}

.registration-form .form-field label,
.registration-form .choice-field legend {
    font-size: 0.86rem;
    font-weight: 600;
    color: #374151;
}

.registration-form .form-field-span-full {
    grid-column: 1 / -1;
}

.registration-form .form-field {
    align-content: start;
}

.required-mark {
    color: var(--primary);
}

.registration-form input:not([type="radio"]),
.registration-form select,
.registration-form textarea {
    min-height: 2.9rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    background: #ffffff;
    font-size: 1rem;
}

.registration-form input:not([type="radio"])::placeholder,
.registration-form textarea::placeholder {
    color: #a1a1aa;
}

.registration-form input:not([type="radio"]):hover,
.registration-form select:hover,
.registration-form textarea:hover {
    border-color: #a1a1aa;
}

.registration-form input:not([type="radio"]):focus,
.registration-form select:focus,
.registration-form textarea:focus {
    outline: none;
    border-color: #71717a;
    box-shadow: none;
}

.registration-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.registration-form .form-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Choix Oui / Non en boutons segmentés */

.choice-field {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.choice-field legend {
    padding: 0;
    margin-bottom: 0.35rem;
}

.choice-group {
    display: flex;
    gap: 0.3rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}

.choice-option {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
}

.choice-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #52525b;
    text-align: center;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.choice-option:hover span {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
}

.choice-option input:checked + span {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(10, 10, 10, 0.18);
}

.choice-option input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Barre d'envoi, collée en bas de l'écran pendant le remplissage */

.registration-submit-bar {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.25rem;
    padding: 1rem 1rem 1rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-strong);
}

.registration-submit-text {
    display: grid;
    gap: 0.15rem;
}

.registration-submit-text strong {
    font-size: 1rem;
    color: var(--accent);
}

.registration-submit-text span {
    font-size: 0.86rem;
    color: var(--muted);
}

.registration-submit-btn {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
}

.registration-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

@media (max-width: 900px) {
    .registration-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .registration-steps {
        top: 0;
        z-index: 6;
        margin: 0 -1.25rem;
        padding: 0.6rem 1.25rem;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--border);
    }

    .registration-steps ol {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .registration-steps ol::-webkit-scrollbar {
        display: none;
    }

    .registration-steps a {
        padding: 0.4rem 0.75rem 0.4rem 0.4rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .registration-steps a.is-active {
        border-color: rgba(227, 6, 19, 0.3);
    }

    .registration-steps-num {
        width: 1.45rem;
        height: 1.45rem;
    }

    .registration-form .registration-section {
        scroll-margin-top: 4.5rem;
    }
}

@media (max-width: 768px) {
    .registration-hero {
        padding: 1.1rem 1.25rem;
    }

    .registration-body {
        padding: 1.25rem;
    }

    .registration-draft-banner {
        padding: 0.55rem 0.75rem;
        margin-bottom: 1rem;
    }

    .registration-draft-icon {
        width: 1.4rem;
        height: 1.4rem;
        font-size: 0.85rem;
    }

    .registration-draft-hint {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .registration-form .registration-section {
        padding: 1.1rem 1rem 1.2rem;
    }

    .registration-section-desc {
        margin-left: 0;
    }

    .registration-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .registration-submit-bar {
        bottom: 0;
        margin: 0.25rem -1.25rem -1.25rem;
        padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
        border-radius: 0;
        border-width: 1px 0 0;
    }

    .registration-submit-text {
        display: none;
    }

    .registration-submit-btn {
        width: 100%;
    }
}

.registration-thank-you {
    max-width: 720px;
    margin-inline: auto;
    border-top: 4px solid var(--primary);
    display: grid;
    gap: 1.75rem;
}

.registration-thank-you-intro h1 {
    margin-top: 0;
}

.registration-payment-step {
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
    border: 1px solid #fecdd3;
}

.registration-payment-step h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.registration-payment-step p {
    margin: 0 0 1rem;
}

.registration-payment-button {
    width: 100%;
    max-width: 320px;
}

.registration-thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-modal[hidden] {
    display: none !important;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
}

.payment-modal-panel {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    height: min(92vh, 900px);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.payment-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.payment-modal-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
}

.payment-modal-close:hover {
    color: var(--text);
    background: #f4f4f5;
}

.payment-modal-body {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
}

body.payment-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .payment-modal {
        padding: 0.5rem;
    }

    .payment-modal-panel {
        width: 100%;
        height: 96vh;
        border-radius: 10px;
    }

    .registration-payment-button {
        max-width: none;
        width: 100%;
    }
}

.feedback-widget[hidden] {
    display: none !important;
}

.feedback-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}

.feedback-widget > * {
    pointer-events: auto;
}

.feedback-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: var(--violet);
    box-shadow: var(--shadow-strong);
}

.feedback-button:hover {
    background: var(--violet-dark);
}

.feedback-button:focus-visible {
    outline: 2px solid var(--violet-dark);
    outline-offset: 3px;
}

.feedback-button svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-panel[hidden] {
    display: none;
}

.feedback-panel {
    width: min(24rem, calc(100vw - 2.5rem));
    max-height: min(80vh, 44rem);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
}

.feedback-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
    border-radius: var(--radius) var(--radius) 0 0;
}

.feedback-panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.feedback-close {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
}

.feedback-close:hover {
    background: #f4f4f5;
    color: var(--text);
}

.feedback-form[hidden] {
    display: none;
}

.feedback-form {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.feedback-kind {
    border: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.feedback-kind legend {
    padding: 0;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.feedback-kind-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-kind-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.1rem 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.feedback-kind-card:hover {
    border-color: #a1a1aa;
}

.feedback-kind-card svg {
    grid-row: 1 / span 2;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--muted);
}

.feedback-kind-label {
    font-weight: 600;
}

.feedback-kind-hint {
    font-size: 0.82rem;
    color: var(--muted);
}

.feedback-kind-option input:checked + .feedback-kind-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.feedback-kind-option input:checked + .feedback-kind-card svg {
    color: var(--primary);
}

.feedback-kind-option input:focus-visible + .feedback-kind-card {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.feedback-kind-option input[value="feature"]:checked + .feedback-kind-card {
    border-color: var(--info);
    background: var(--info-light);
}

.feedback-kind-option input[value="feature"]:checked + .feedback-kind-card svg {
    color: var(--info);
}

.feedback-kind-option input[value="feature"]:focus-visible + .feedback-kind-card {
    outline-color: var(--info);
}

.feedback-field {
    display: grid;
    gap: 0.3rem;
}

.feedback-field > span {
    font-weight: 600;
    font-size: 0.9rem;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.feedback-field textarea {
    resize: vertical;
    min-height: 6rem;
}

.feedback-error[hidden] {
    display: none;
}

.feedback-error {
    margin: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.88rem;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: progress;
}

.feedback-success[hidden] {
    display: none;
}

.feedback-success {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 1.75rem 1rem;
    text-align: center;
}

.feedback-success svg {
    width: 2.25rem;
    height: 2.25rem;
    fill: none;
    stroke: #15803d;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-success p {
    margin: 0;
    font-weight: 600;
}

.feedback-secondary {
    background: var(--accent-soft);
}

.feedback-secondary:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .feedback-widget {
        right: 1rem;
        bottom: 1rem;
        align-items: flex-end;
    }

    body.feedback-panel-open {
        overflow: hidden;
    }

    .feedback-widget.feedback-open .feedback-button {
        display: none;
    }

    .feedback-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overscroll-behavior: contain;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .feedback-panel-header {
        flex-shrink: 0;
        padding: 0.9rem 1rem;
        padding-top: calc(0.9rem + env(safe-area-inset-top));
        border-radius: 0;
    }

    .feedback-panel-header h2 {
        font-size: 1.15rem;
    }

    .feedback-close {
        font-size: 2rem;
        padding: 0 0.5rem;
    }

    .feedback-form {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        align-content: start;
        gap: 1.1rem;
        padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
    }

    .feedback-kind-card {
        padding: 0.85rem 0.9rem;
    }

    .feedback-field input,
    .feedback-field textarea {
        font-size: 1rem;
        padding: 0.75rem 0.8rem;
    }

    .feedback-field textarea {
        min-height: 9rem;
    }

    .feedback-actions {
        justify-content: stretch;
    }

    .feedback-submit {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .feedback-success {
        flex: 1;
        align-content: center;
        padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    }

    .feedback-button-label {
        display: none;
    }

    .feedback-button {
        padding: 0.85rem;
    }

    .feedback-button svg {
        width: 1.35rem;
        height: 1.35rem;
    }
}

.form-section {
    border: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.form-section legend {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
}

.form-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.form-field label {
    font-weight: 600;
}

.form-field-span-2 {
    grid-column: span 2;
}

.form-field-span-full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.form-hint {
    margin: -0.35rem 0 0.5rem;
    font-size: 0.9rem;
}

.form-delete {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.inline-form {
    margin: 0;
    display: contents;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-header-actions button.button {
    font: inherit;
    font-weight: 600;
    line-height: inherit;
}

.form {
    display: grid;
    gap: 0.75rem;
}

.form label {
    font-weight: 600;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

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

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: #fafafa;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wide {
    min-width: 1600px;
    font-size: 0.9rem;
}

.table-wide th,
.table-wide td {
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.stat-card h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary);
}

.details {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem 1rem;
}

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

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #e5e7eb;
}

.badge.pending { background: #fef3c7; }
.badge.validated { background: #dcfce7; }
.badge.rejected { background: #fee2e2; }

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-page,
.public-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(227, 6, 19, 0.12), transparent 45%),
        linear-gradient(160deg, var(--accent) 0%, var(--accent-soft) 55%, #2a2a2a 100%);
}

.auth-page .card,
.public-page .card {
    box-shadow: var(--shadow-strong);
}

.auth-actions {
    margin: 1.25rem 0 0;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.passkey-panel {
    display: grid;
    gap: 0.75rem;
}

.passkey-hint {
    margin: 0;
    font-size: 0.92rem;
}

.passkey-manage {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.passkey-manage h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--accent);
}

.passkey-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.passkey-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
}

.settings-section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--accent);
}

.settings-detail-list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0;
}

.settings-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    gap: 0.5rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f4f4f5;
}

.settings-detail-row:last-child {
    border-bottom: none;
}

.settings-detail-row dt {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.settings-detail-row dd {
    margin: 0;
    font-weight: 500;
}

.settings-actions {
    margin: 0;
}

.settings-passkey-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 420px;
}

.error-page {
    text-align: center;
}

.error-page h1 {
    margin-top: 0;
}

.error-code {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.public-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 0% 0%, rgba(227, 6, 19, 0.05), transparent 40%),
        var(--bg);
}

.public-site > main {
    flex: 1;
}

.public-page-shell,
.public-site > main.public-page-main {
    width: min(var(--container-width), calc(100% - 2 * var(--public-gutter)));
    max-width: var(--container-width);
    margin-inline: auto;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    box-sizing: border-box;
}

.public-site > main.container.public-page-main {
    width: min(var(--container-width), calc(100% - 2 * var(--public-gutter)));
    max-width: var(--container-width);
    margin-inline: auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
}

.public-site-header .public-page-shell {
    padding-top: 0;
    padding-bottom: 0;
}

.home-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0.5rem 0 1rem;
    padding: 2.5rem 2.75rem;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 55%, #2a2a2a 100%);
    color: #ffffff;
    box-shadow: var(--shadow-strong);
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -45%;
    right: -8%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--primary);
}

.home-hero-text {
    position: relative;
    max-width: 38rem;
}

.home-hero-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fca5a5;
}

.home-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    color: #ffffff;
}

.home-hero-lead {
    margin: 0;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.8);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.home-hero-cta {
    padding: 0.75rem 1.4rem;
    font-weight: 700;
}

.home-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.home-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.home-hero-badge {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), var(--shadow-strong);
}

.home-hero-badge img {
    width: 100%;
    height: 100%;
    /* Le disque noir du logo est décalé de ~6px vers la droite dans l'image source :
       on recentre et on zoome légèrement pour que le cercle colle au disque. */
    transform: translateX(-1.8%) scale(1.045);
}

.home-highlights {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.home-highlight > svg {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    padding: 0.45rem;
    border-radius: 10px;
    background: var(--primary-light);
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-highlight > span {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.home-highlight strong {
    color: var(--accent);
    font-size: 0.95rem;
}

.home-highlight span span {
    color: var(--muted);
    font-size: 0.88rem;
}

#planning,
#acces {
    scroll-margin-top: 1.5rem;
}

.home-venue-card {
    border-top: 3px solid var(--primary);
    margin-top: 0;
}

.home-news-column h2 {
    margin: 0 0 1rem;
    color: var(--accent);
}

.week-cal {
    display: grid;
    gap: 1rem;
}

.week-cal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.week-cal-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.week-cal-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--accent);
}

.week-cal-range {
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.week-cal-range-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.week-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.week-cal-nav-btn:hover {
    background: var(--primary-light);
    border-color: #fecaca;
    color: var(--primary-dark);
}

.week-cal-current-link-wrap {
    margin: -0.35rem 0 0;
}

.week-cal-current-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.week-cal-current-link:hover {
    text-decoration: underline;
}

.week-cal-following {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.week-cal-board {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: var(--shadow);
    overflow: visible;
}

.week-cal-head-row {
    display: grid;
    grid-template-columns: 3rem repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.week-cal-gutter {
    border-right: 1px solid var(--border);
}

.week-cal-day-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.55rem 0.25rem;
    border-right: 1px solid var(--border);
    text-align: center;
}

.week-cal-day-head:last-child {
    border-right: none;
}

.week-cal-day-head.is-today {
    background: var(--primary-light);
}

.week-cal-day-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.week-cal-day-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    color: var(--text);
}

.week-cal-day-head.is-today .week-cal-day-date {
    background: var(--primary);
    color: #fff;
}

.week-cal-body {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    min-height: 26rem;
}

.week-cal-hours {
    display: grid;
    grid-template-rows: repeat(14, 1fr);
    border-right: 1px solid var(--border);
    background: #fcfcfc;
}

.week-cal-hours span {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #a1a1aa;
    border-top: 1px dashed #ececef;
}

.week-cal-hours span:first-child {
    border-top: none;
}

.week-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    position: relative;
    overflow: visible;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent calc(100% / 14 - 1px),
        #ececef calc(100% / 14 - 1px),
        #ececef calc(100% / 14)
    );
}

.week-cal-day-col {
    position: relative;
    border-right: 1px solid var(--border);
    min-height: 100%;
    overflow: visible;
}

.week-cal-day-col:last-child {
    border-right: none;
}

.week-cal-day-col.is-today {
    background: rgba(227, 6, 19, 0.03);
}

.week-cal-slot {
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    overflow: visible;
    z-index: 1;
}

.week-cal-slot-surface {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    height: calc(100% - 2px);
    margin-top: 1px;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--slot-color) 82%, #ffffff) 0%, var(--slot-color) 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--slot-color) 35%, transparent);
    overflow: hidden;
    line-height: 1.2;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.week-cal-slot-surface .week-cal-slot-emoji {
    display: none;
}

.week-cal-slot {
    container-type: size;
}

@container (max-height: 2.6rem) {
    .week-cal-slot-surface {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
        white-space: nowrap;
    }

    .week-cal-slot-surface .week-cal-slot-time {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.week-cal-slot-popover {
    position: absolute;
    top: 0;
    left: calc(100% + 0.45rem);
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 7.5rem;
    max-width: 11rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(10, 10, 10, 0.45);
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.week-cal-slot-popover .week-cal-slot-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.week-cal-slot-popover .week-cal-slot-label {
    font-size: 0.98rem;
    font-weight: 800;
}

.week-cal-slot-popover .week-cal-slot-time {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 1;
}

.week-cal-slot-emoji {
    font-size: 0.82rem;
    line-height: 1;
}

.week-cal-slot-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.week-cal-slot-time {
    font-size: 0.68rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

.week-cal-slot-libre {
    --slot-color: #16a34a;
    --slot-bg: #ecfdf3;
    --slot-ink: #14532d;
}

.week-cal-slot-jeunes {
    --slot-color: #2563eb;
    --slot-bg: #eef4ff;
    --slot-ink: #1e3a8a;
}

.week-cal-slot-adultes {
    --slot-color: #ea580c;
    --slot-bg: #fff4ec;
    --slot-ink: #7c2d12;
}

.week-cal-slot-competition {
    --slot-color: #dc2626;
    --slot-bg: #fef1f1;
    --slot-ink: #7f1d1d;
}

.week-cal-slot-baby {
    --slot-color: #9333ea;
    --slot-bg: #f7f0ff;
    --slot-ink: #581c87;
}

.week-cal-slot:hover,
.week-cal-slot:focus-visible {
    z-index: 8;
    outline: none;
}

.week-cal-slot:hover .week-cal-slot-surface,
.week-cal-slot:focus-visible .week-cal-slot-surface {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--slot-color), 0 8px 18px color-mix(in srgb, var(--slot-color) 35%, transparent);
    transform: translateY(-1px);
}

.week-cal-slot:hover .week-cal-slot-popover,
.week-cal-slot:focus-visible .week-cal-slot-popover {
    opacity: 1;
    visibility: visible;
}

.week-cal-day-col:last-child .week-cal-slot-popover {
    left: auto;
    right: calc(100% + 0.45rem);
}

.week-cal-slot-up .week-cal-slot-popover {
    top: auto;
    bottom: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    max-width: none;
}

.week-cal-day-col:last-child .week-cal-slot-up .week-cal-slot-popover {
    left: 0;
    right: 0;
}

.week-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.week-cal-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.week-cal-legend-swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
}

.week-cal-legend-libre { background: #16a34a; }
.week-cal-legend-jeunes { background: #2563eb; }
.week-cal-legend-adultes { background: #ea580c; }
.week-cal-legend-competition { background: #dc2626; }
.week-cal-legend-baby { background: #9333ea; }

.week-cal-note {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.5;
}

.week-cal-note::before {
    content: "ℹ️ ";
}

.week-cal-mobile {
    display: none;
    gap: 0.65rem;
}

.week-cal-mobile-day {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.week-cal-mobile-day.is-today {
    border-color: #fecaca;
    box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.08);
}

.week-cal-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.week-cal-mobile-day.is-today .week-cal-mobile-head {
    background: var(--primary-light);
}

.week-cal-mobile-name {
    font-weight: 800;
    color: var(--text);
}

.week-cal-mobile-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.week-cal-mobile-empty {
    margin: 0;
    padding: 0.75rem;
    font-size: 0.88rem;
}

.week-cal-mobile-list {
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.week-cal-mobile-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    border-left: 3px solid var(--slot-color, var(--border));
    background: var(--slot-bg, transparent);
    color: var(--slot-ink, inherit);
}

.week-cal-mobile-copy {
    display: grid;
    gap: 0.1rem;
}

.week-cal-mobile-copy strong {
    font-size: 0.88rem;
}

.week-cal-mobile-copy span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.planning-page {
    display: grid;
    gap: 1rem;
}

.planning-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.planning-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.planning-subtitle {
    margin: 0.35rem 0 0;
}

.planning-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.planning-status {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.planning-status-saved {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.planning-status-default {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}

.planning-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.planning-form-card,
.planning-preview-card {
    margin-top: 0;
}

.planning-preview-card h2 {
    margin: 0 0 1rem;
    color: var(--accent);
}

.planning-slots-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 0.75rem;
}

.planning-slots-head h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent);
}

.planning-slots-table-wrap {
    overflow-x: auto;
}

.planning-slots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.planning-slots-table th,
.planning-slots-table td {
    padding: 0.45rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.planning-slots-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.planning-slots-table select,
.planning-slots-table input[type="time"] {
    width: 100%;
    min-width: 6.5rem;
}

.planning-form-actions {
    margin-top: 1.25rem;
}

.week-cal-preview .week-cal-board {
    font-size: 0.92rem;
}

.week-cal-preview .week-cal-body {
    min-height: 20rem;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: 2rem;
}

.home-info-card {
    margin-top: 0;
    border-top: 3px solid #ede9fe;
}

.home-info-card h2,
.home-venue-header h2 {
    margin: 0 0 0.75rem;
    color: var(--accent);
}

.home-info-legal-name {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.home-info-list {
    margin: 0;
    display: grid;
    gap: 0;
}

.home-info-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f4f4f5;
}

.home-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-info-row dt {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.home-info-row dd {
    margin: 0;
    font-weight: 500;
}

.home-info-link {
    font-weight: 600;
    text-decoration: none;
}

.home-info-link:hover {
    text-decoration: underline;
}

.home-venue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.home-venue-name {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.home-venue-detail {
    margin: 0.2rem 0 0.35rem;
    font-size: 0.92rem;
}

.home-venue-address {
    margin: 0;
    font-size: 0.95rem;
}

.home-venue-map-link {
    flex-shrink: 0;
}

.home-venue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.home-venue-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-venue-action:hover {
    background: #f4f4f5;
    border-color: var(--accent-soft);
}

.home-venue-action svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-venue-action.is-copied {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.home-map-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f4f4f5;
    line-height: 0;
}

.home-map-frame {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item h3 {
    margin: 0.35rem 0;
    color: var(--accent);
}

.news-item p,
.news-body {
    margin: 0;
}

.news-body.markdown p {
    margin: 0 0 0.75rem;
}

.news-body.markdown p:last-child {
    margin-bottom: 0;
}

.news-body.markdown a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.news-body.markdown a:hover {
    color: var(--primary);
}

.news-editor {
    display: grid;
    gap: 0.5rem;
}

.news-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.news-editor-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font: inherit;
    cursor: pointer;
}

.news-editor-btn:hover,
.news-editor-btn.is-active {
    border-color: var(--accent);
    color: var(--accent);
}

.news-editor-btn em {
    font-style: italic;
}

.news-editor-toolbar-sep {
    width: 1px;
    height: 1.25rem;
    background: var(--border);
    margin: 0 0.15rem;
}

.news-editor textarea,
.news-editor-preview {
    width: 100%;
    min-height: 12rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font: inherit;
    line-height: 1.5;
    background: #fff;
}

.news-editor-preview.markdown a {
    color: var(--accent);
    text-decoration: underline;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.errors {
    color: var(--danger);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.stats-tabs,
.home-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.stats-tab,
.home-tab {
    padding: 0.55rem 1rem;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.stats-tab:hover,
.home-tab:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.stats-tab.active,
.home-tab.active {
    color: var(--primary);
    background: var(--primary-light);
    border-bottom: 2px solid var(--primary);
}

.match-page-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 1.25rem;
}

.match-day-card {
    margin-bottom: 1.25rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.match-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.match-day-header-text h2 {
    margin: 0 0 0.25rem;
}

.match-day-header .button {
    flex-shrink: 0;
}

.public-site .nav a.nav-link--active,
.public-site-header .nav a.nav-link--active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 1023px) {
    .public-site-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .public-site-header__inner {
        flex-wrap: nowrap;
        align-items: center;
        padding: 0.75rem 0;
        gap: 0.65rem;
        position: relative;
        min-height: 3.25rem;
    }

    .public-site-header__brand {
        margin-right: 0;
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.65rem;
        min-height: 2.75rem;
    }

    .public-site-header__site-name {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-site-header__brand .brand-logo {
        height: 2.5rem;
        width: 2.5rem;
    }

    .public-site-header__menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        margin-left: auto;
        flex-shrink: 0;
    }

    .public-site-header__menu-icon {
        width: 1.2rem;
        box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    }

    .public-site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        margin-top: 0.35rem;
        right: 0;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        min-width: min(16rem, calc(100vw - 2rem));
        padding: 0.35rem;
        border-radius: var(--radius);
        background: var(--accent);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
    }

    .public-site-header--nav-open .public-site-header__nav {
        display: flex;
    }

    .public-site-header__nav a {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .public-site-header__inner {
        padding: 1.1rem 0;
        min-height: 4.25rem;
        gap: 1.15rem;
    }

    .public-site-header__brand {
        gap: 0.85rem;
        min-height: 3.25rem;
    }

    .public-site-header__brand .brand-logo {
        height: 3.25rem;
        width: 3.25rem;
    }

    .public-site-header__site-name {
        font-size: 1.125rem;
    }

    .public-site-header__nav {
        display: flex;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        min-width: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .public-site-header__nav a {
        padding: 0.6rem 0.95rem;
        font-size: 1rem;
    }
}

.match-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.match-photo-modal[hidden] {
    display: none !important;
}

.match-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.match-photo-modal-panel {
    position: relative;
    width: min(28rem, 100%);
    max-height: min(90vh, 36rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.match-photo-modal-panel h3 {
    margin: 0 0 0.75rem;
    padding-right: 2rem;
}

.match-photo-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #71717a;
}

.match-photo-modal-panel .muted {
    color: #374151;
}

.match-photo-team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.match-photo-team-btn {
    min-width: 3.75rem;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    background: #fff;
    color: var(--team-accent, var(--text));
    border: 2px solid var(--team-accent, var(--border));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.match-photo-team-btn:hover {
    background: color-mix(in srgb, var(--team-accent, var(--primary)) 14%, #fff);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.match-photo-team-btn:active {
    transform: translateY(1px);
}

.match-photo-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.match-photo-modal-actions .button.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.match-photo-modal-actions .button.secondary:hover {
    background: var(--bg);
    border-color: #cbd5e1;
}

body.match-photo-modal-open {
    overflow: hidden;
}

.composition-team-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.85rem;
}

.composition-team-photo-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    padding: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

button.composition-team-photo-card:hover {
    background: #fafafa;
    border-color: #cbd5e1;
    box-shadow: var(--shadow);
    transform: none;
}

.composition-team-photo-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 9rem;
    object-fit: cover;
}

.composition-team-photo-meta {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-match-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-match-photo-modal[hidden] {
    display: none !important;
}

.admin-match-photo-confirm-modal {
    z-index: 210;
}

.admin-match-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.admin-match-photo-modal-panel {
    position: relative;
    width: min(36rem, 100%);
    max-width: 100%;
    max-height: min(92vh, 40rem);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: var(--shadow-strong);
    box-sizing: border-box;
}

.admin-match-photo-confirm-panel {
    width: min(26rem, 100%);
    max-height: none;
}

.admin-match-photo-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.admin-match-photo-modal-body {
    min-width: 0;
    overflow: hidden;
}

.admin-match-photo-modal-body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(55vh, 24rem);
    object-fit: contain;
    background: #f4f4f5;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.admin-match-photo-modal-meta {
    margin-top: 0.85rem;
}

.admin-match-photo-modal-meta p {
    margin: 0.25rem 0;
}

.admin-match-photo-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

body.admin-match-photo-modal-open {
    overflow: hidden;
}

.match-day-photos-overview-panel {
    width: min(40rem, 100%);
    max-width: 100%;
    max-height: min(92vh, 44rem);
    overflow-x: hidden;
}

.match-day-photos-overview-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
    min-width: 0;
    overflow-x: hidden;
}

.match-day-photos-team-block {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: #fafafa;
    min-width: 0;
    overflow: hidden;
}

.match-day-photos-team-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.match-day-photos-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

button.admin-match-photo-thumb,
.admin-match-photo-thumb {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    font: inherit;
    font-weight: inherit;
    color: inherit;
}

button.admin-match-photo-thumb:hover {
    background: #fff;
    transform: none;
}

.admin-match-photo-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 4.5rem;
    object-fit: cover;
    vertical-align: top;
}

@media (max-width: 768px) {
    .match-photo-modal,
    .admin-match-photo-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .match-photo-modal-panel,
    .admin-match-photo-modal-panel {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100dvh;
        max-height: none;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .match-day-photos-overview-panel {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .match-day-photos-overview-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .admin-match-photo-confirm-panel {
        width: 100%;
        min-height: 100dvh;
        max-height: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .admin-match-photo-modal-body img {
        max-height: calc(100dvh - 13rem);
    }

    .match-photo-modal-panel h3,
    .admin-match-photo-modal-panel h3 {
        padding-right: 2.25rem;
    }
}

@media (max-width: 1023px) {
    .public-match-page .match-day-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .public-match-page .match-day-header-text {
        width: 100%;
    }

    .public-match-page .match-day-header-text h2 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .public-match-page .match-day-upload-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .public-match-page .match-teams-table-wrap {
        overflow: visible;
    }

    .public-match-page .match-teams-table {
        border: none;
        background: transparent;
    }

    .public-match-page .match-teams-table thead {
        display: none;
    }

    .public-match-page .match-teams-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .public-match-page .match-team-row {
        display: block;
        margin: 0;
        padding: 0.85rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }

    .public-match-page .match-teams-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border: none;
        text-align: right;
    }

    .public-match-page .match-teams-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        max-width: 45%;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--muted);
        text-align: left;
        text-transform: none;
    }

    .public-match-page .match-teams-table td.match-team-code {
        font-size: 1.15rem;
        font-weight: 700;
        padding-top: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid var(--border);
    }

    .public-match-page .match-teams-table td.match-team-code::before {
        content: attr(data-label);
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--muted);
    }

    .public-match-page .match-team-photo-status .match-team-photo-ok,
    .public-match-page .match-team-photo-status .match-team-photo-pending {
        text-align: right;
    }
}

.table-actions-col {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    min-width: 11.5rem;
}

.table-actions {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    vertical-align: middle;
}

.table-actions .button {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
}

.button-link {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.button-link:hover {
    color: var(--primary-dark);
}

.match-team-code {
    font-weight: 700;
}

.match-team-photo-status {
    white-space: nowrap;
}

.match-photo-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.match-photo-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 800;
}

.match-photo-status--received {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.match-photo-status--received .match-photo-status-icon {
    color: #15803d;
}

.match-photo-status--pending {
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.match-photos {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.match-photos h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.match-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.match-photo-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fafafa;
}

.match-photo-item img {
    display: block;
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.match-photo-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.match-photo-upload-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.match-photo-upload-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stats-kpi-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats-kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stats-kpi-card header {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.stats-kpi-card p {
    margin: 0;
    padding: 1.25rem 0.75rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.stats-warning {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
}

.stats-charts-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-charts-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.stats-chart-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.stats-chart-wide {
    margin-top: 1rem;
}

.stats-chart-medium {
    max-width: 480px;
    margin: 0 auto;
}

/* Joueurs / competitions matrix */
.joueurs-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.joueurs-kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.joueurs-kpi-card header {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    background: #f4f4f5;
    color: var(--muted);
}

.joueurs-kpi-card p {
    margin: 0;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.joueurs-kpi-criterium header { background: #fef3c7; color: #92400e; }
.joueurs-kpi-france header { background: #dbeafe; color: #1e40af; }
.joueurs-kpi-paris header { background: #ede9fe; color: #5b21b6; }
.joueurs-kpi-jeunes header { background: #dcfce7; color: #166534; }

/* Payments list */
.payments-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.payments-kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.payments-kpi-card header {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    background: #f4f4f5;
    color: var(--muted);
}

.payments-kpi-card p {
    margin: 0;
    padding: 0.75rem 0.5rem 0.35rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.payments-kpi-hint {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    padding: 0 0.5rem 0.65rem;
    line-height: 1.2;
}

.payments-kpi-paye header { background: #dcfce7; color: #166534; }
.payments-kpi-partiel header { background: #fef3c7; color: #92400e; }
.payments-kpi-impaye header { background: #fee2e2; color: #991b1b; }
.payments-kpi-total header { background: #e0e7ff; color: #3730a3; }
.payments-kpi-encaisse header { background: #dbeafe; color: #1e40af; }
.payments-kpi-reste header { background: #ffedd5; color: #c2410c; }

.payment-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.payment-status-partiel {
    background: #fef3c7;
    color: #92400e;
}

.payment-status-other {
    background: #f4f4f5;
    color: #52525b;
}

.payments-table-card .table-wide td.payments-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.payments-table-card .payments-amount-due {
    color: #991b1b;
    font-weight: 700;
}

/* Adherent profile */
.adherent-profile {
    display: grid;
    gap: 1.25rem;
}

.adherent-hero {
    margin-top: 0;
    padding: 1.5rem 1.75rem;
    border: none;
    background:
        radial-gradient(circle at top right, rgba(227, 6, 19, 0.14), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border-left: 4px solid var(--primary);
}

.adherent-hero-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.adherent-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.28);
    flex-shrink: 0;
}

.adherent-hero-content h1 {
    margin: 0.15rem 0 0.65rem;
}

.adherent-hero-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
}

.adherent-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.adherent-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #f4f4f5;
    color: var(--text);
    border: 1px solid var(--border);
}

.adherent-chip-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: #fecdd3;
}

.adherent-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.adherent-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.adherent-kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.adherent-kpi-card header {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    background: #f4f4f5;
    color: var(--muted);
}

.adherent-kpi-card p {
    margin: 0;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.adherent-kpi-competitions header {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.adherent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.adherent-section-card {
    margin-top: 0;
}

.adherent-section-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.adherent-section-sport { border-top: 3px solid #dbeafe; }
.adherent-section-contact { border-top: 3px solid #ede9fe; }
.adherent-section-parents { border-top: 3px solid #fef3c7; }
.adherent-section-medical { border-top: 3px solid #dcfce7; }
.adherent-section-competitions { border-top: 3px solid var(--primary); }
.adherent-section-notes { border-top: 3px solid #f4f4f5; }

.adherent-detail-list {
    margin: 0;
    display: grid;
    gap: 0;
}

.adherent-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f4f4f5;
}

.adherent-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adherent-detail-row dt {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.adherent-detail-row dd {
    margin: 0;
    font-weight: 500;
}

.adherent-contact-link {
    font-weight: 600;
    text-decoration: none;
}

.adherent-contact-link:hover {
    text-decoration: underline;
}

.adherent-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.adherent-status-yes {
    background: #dcfce7;
    color: #166534;
}

.adherent-status-no {
    background: #f4f4f5;
    color: #71717a;
}

.adherent-status-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.payment-mode-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.payment-mode-especes {
    background: #dcfce7;
    color: #166534;
}

.payment-mode-cheque {
    background: #dbeafe;
    color: #1e40af;
}

.payment-mode-virement {
    background: #ede9fe;
    color: #5b21b6;
}

.payment-mode-carte {
    background: #e0e7ff;
    color: #3730a3;
}

.payment-mode-coupon {
    background: #ffedd5;
    color: #c2410c;
}

.payment-mode-pass-plus {
    background: #ccfbf1;
    color: #0f766e;
}

.payment-mode-pass-sport {
    background: #cffafe;
    color: #0e7490;
}

.payment-mode-other {
    background: #f4f4f5;
    color: #52525b;
}

.adherent-competition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.adherent-competition-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fafafa;
}

.adherent-competition-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.adherent-competition-status {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.adherent-competition-criterium .adherent-competition-label { color: #92400e; }
.adherent-competition-france .adherent-competition-label { color: #1e40af; }
.adherent-competition-paris .adherent-competition-label { color: #5b21b6; }
.adherent-competition-jeunes .adherent-competition-label { color: #166534; }

.adherent-competition-yes {
    background: #dcfce7;
    color: #166534;
}

.adherent-competition-no {
    background: #f4f4f5;
    color: #71717a;
}

.adherent-competition-unknown {
    background: #e5e7eb;
    color: #6b7280;
}

.adherent-notes {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid var(--border);
    white-space: pre-wrap;
    line-height: 1.55;
}

.adherent-form-page {
    display: grid;
    gap: 1.25rem;
}

.adherent-form-header {
    align-items: center;
}

.adherent-form-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.adherent-form-subtitle {
    margin: 0.35rem 0 0;
    font-size: 1.1rem;
    color: var(--muted);
}

.adherent-form-card {
    padding: 1.5rem;
}

.adherent-form {
    display: grid;
    gap: 1.25rem;
}

.adherent-form .form-section {
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fafafa;
}

.adherent-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adherent-form input,
.adherent-form select,
.adherent-form textarea {
    background: #ffffff;
}

.adherent-form textarea {
    resize: vertical;
    min-height: 5.5rem;
}

.adherent-form-section-identity { border-top: 3px solid #dbeafe; }
.adherent-form-section-sport { border-top: 3px solid #dbeafe; }
.adherent-form-section-contact { border-top: 3px solid #ede9fe; }
.adherent-form-section-parents { border-top: 3px solid #fef3c7; }
.adherent-form-section-medical { border-top: 3px solid #dcfce7; }
.adherent-form-section-competitions { border-top: 3px solid var(--primary); }
.adherent-form-section-notes { border-top: 3px solid #f4f4f5; }

.adherent-form-actions {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
    .adherent-form .form-grid {
        grid-template-columns: 1fr;
    }

    .adherent-form .form-field-span-full,
    .adherent-form .form-field-span-2 {
        grid-column: auto;
    }

    .adherent-form-header {
        align-items: flex-start;
    }
}

.adherent-danger-zone {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff 0%, #fff1f2 100%);
}

.adherent-danger-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--danger);
}

/* Registration dossier (deliberately distinct from the adherent profile) */
.dossier {
    display: grid;
    gap: 1rem;
}

.dossier-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    box-shadow: var(--shadow);
}

.dossier-banner-pending { border-top: 4px solid #f59e0b; }
.dossier-banner-validated { border-top: 4px solid #22c55e; }
.dossier-banner-rejected { border-top: 4px solid #ef4444; }

.dossier-banner-main h1 {
    margin: 0.25rem 0 0.5rem;
    color: #ffffff;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.dossier-banner-eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.dossier-banner-meta {
    margin: 0;
    font-size: 0.86rem;
    color: #d1d5db;
}

.dossier-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    color: #ffffff;
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.dossier-banner-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

.dossier-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dossier-status-pending { background: #fbbf24; color: #422006; }
.dossier-status-validated { background: #4ade80; color: #052e16; }
.dossier-status-rejected { background: #f87171; color: #450a0a; }

.dossier-back {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d1d5db;
    text-decoration: none;
    border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

.dossier-back:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.dossier-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 1.1rem 1.25rem 1rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dossier-step {
    position: relative;
    display: grid;
    gap: 0.2rem;
    padding: 0 0.75rem;
}

.dossier-step::after {
    content: "";
    position: absolute;
    top: 0.42rem;
    left: 1.35rem;
    right: -0.35rem;
    height: 2px;
    background: var(--border);
}

.dossier-step:last-child::after {
    display: none;
}

.dossier-step-marker {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
}

.dossier-step-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.dossier-step-detail {
    font-size: 0.8rem;
    color: var(--muted);
}

.dossier-step-done .dossier-step-marker { background: #22c55e; border-color: #22c55e; }
.dossier-step-done::after { background: #86efac; }
.dossier-step-current .dossier-step-marker {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}
.dossier-step-current .dossier-step-label { color: #b45309; }
.dossier-step-rejected .dossier-step-marker { background: #ef4444; border-color: #ef4444; }
.dossier-step-rejected .dossier-step-label { color: #b91c1c; }
.dossier-step-todo .dossier-step-label { color: var(--muted); }

.dossier-archived-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.dossier-archived-note p {
    margin: 0;
    color: #166534;
    font-size: 0.9rem;
}

/* Duplicate groups: one ident + one color shared by the list rows and the dossier block. */
.dup-color-0 { --dup-accent: #f59e0b; --dup-surface: #fffbeb; --dup-border: #fde68a; --dup-text: #92400e; }
.dup-color-1 { --dup-accent: #6366f1; --dup-surface: #eef2ff; --dup-border: #c7d2fe; --dup-text: #3730a3; }
.dup-color-2 { --dup-accent: #14b8a6; --dup-surface: #f0fdfa; --dup-border: #99f6e4; --dup-text: #115e59; }
.dup-color-3 { --dup-accent: #ec4899; --dup-surface: #fdf2f8; --dup-border: #fbcfe8; --dup-text: #9d174d; }
.dup-color-4 { --dup-accent: #8b5cf6; --dup-surface: #f5f3ff; --dup-border: #ddd6fe; --dup-text: #5b21b6; }
.dup-color-5 { --dup-accent: #0ea5e9; --dup-surface: #f0f9ff; --dup-border: #bae6fd; --dup-text: #075985; }

.dup-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--dup-border);
    background: var(--dup-surface);
    color: var(--dup-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dup-row td {
    background: var(--dup-surface);
}

.dup-row td:first-child {
    box-shadow: inset 3px 0 0 var(--dup-accent);
}

.dup-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--dup-border);
    border-left: 4px solid var(--dup-accent);
    background: var(--dup-surface);
}

.dup-block-main {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.dup-block-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.dup-block-title {
    color: var(--dup-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.dup-block-list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding-left: 1.1rem;
}

.dup-block-list li {
    font-size: 0.85rem;
}

.dup-block-list .muted {
    margin-left: 0.4rem;
    font-size: 0.8rem;
}

.dossier-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1rem;
    align-items: start;
}

.dossier-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.dossier-panel {
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid #cbd5e1;
    border-radius: var(--radius);
}

.dossier-panel-completeness { border-left-color: #f59e0b; }
.dossier-panel-trace { border-left-color: #94a3b8; background: #fafafa; }

.dossier-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dossier-panel-head h2 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
}

.dossier-panel-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.dossier-gauge {
    height: 0.6rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.dossier-gauge-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #22c55e 100%);
}

.dossier-gauge-value {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.dossier-missing-title {
    margin: 0.9rem 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
}

.dossier-missing-none {
    margin: 0.6rem 0 0;
    font-size: 0.88rem;
    color: #166534;
}

.dossier-missing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dossier-missing-list li {
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dossier-fields {
    display: grid;
    gap: 0;
}

.dossier-field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.dossier-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dossier-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
}

.dossier-field-value {
    text-align: right;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
    overflow-wrap: anywhere;
}

.dossier-field-value a {
    font-weight: 600;
    text-decoration: none;
}

.dossier-field-value a:hover {
    text-decoration: underline;
}

.dossier-field-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    font-weight: 500;
}

.dossier-field-empty .dossier-field-value {
    font-weight: 500;
    font-style: italic;
    color: #a1a1aa;
}

.dossier-flags {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dossier-flag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #d4d4d8;
    background: #fafafa;
}

.dossier-flag-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.dossier-flag-value {
    font-size: 0.82rem;
    font-weight: 700;
}

.dossier-flag-yes {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.dossier-flag-yes .dossier-flag-value { color: #166534; }

.dossier-flag-no {
    border-left-color: #d4d4d8;
}

.dossier-flag-no .dossier-flag-value { color: #71717a; }

.dossier-flag-unknown {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.dossier-flag-unknown .dossier-flag-value {
    color: #b45309;
    font-style: italic;
}

.dossier-quote {
    margin: 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 6px 6px 0;
    background: #f8fafc;
    white-space: pre-wrap;
    line-height: 1.55;
}

.dossier-aside {
    position: sticky;
    top: 1rem;
}

.dossier-decision {
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid #f59e0b;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dossier-decision-closed {
    border-top-color: #22c55e;
}

.dossier-decision h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.dossier-decision > .muted {
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

.dossier-decision-form {
    display: grid;
    gap: 0.35rem;
}

.dossier-decision-form label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

.dossier-decision-form textarea,
.dossier-decision-form select {
    width: 100%;
}

.dossier-decision-form textarea {
    margin-bottom: 0.5rem;
}

.dossier-decision-save {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
}

.dossier-validate-form {
    margin-top: 0.65rem;
}

.dossier-decision-validate {
    width: 100%;
    text-align: center;
}

.dossier-decision-notes-label {
    margin: 0.85rem 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.dossier-decision-warning {
    margin: 0.85rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.merge-form {
    display: grid;
    gap: 1.25rem;
}

.merge-keep h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.merge-candidates {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.merge-candidate {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.merge-candidate-current {
    border-color: #f59e0b;
    background: #fffbeb;
}

.merge-candidate-body {
    display: grid;
    gap: 0.2rem;
}

.merge-th-ref {
    display: block;
    font-weight: 500;
    font-size: 0.75rem;
}

.merge-table th,
.merge-table td {
    vertical-align: top;
}

.merge-row-conflict th,
.merge-row-conflict td {
    background: #fff7ed;
}

.merge-conflict-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #fed7aa;
    color: #9a3412;
}

.merge-cell {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    cursor: pointer;
}

.merge-cell-empty span {
    font-style: italic;
    color: #a1a1aa;
    font-weight: 500;
}

.merge-cell-selected {
    background: #f0fdf4;
}

.merge-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.joueurs-filters-card {
    margin-bottom: 1.25rem;
}

.joueurs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: flex-end;
}

.joueurs-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 240px);
    flex: 1 1 220px;
}

.joueurs-filter span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.joueurs-filter input,
.joueurs-filter select {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: var(--surface);
}

.joueurs-filter input:focus,
.joueurs-filter select:focus {
    outline: 2px solid var(--primary-light);
    border-color: var(--primary);
}

.joueurs-filter-summary {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
}

.joueurs-matrix-scroll {
    max-height: min(70vh, 720px);
}

.joueurs-matrix {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.joueurs-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafafa;
}

.joueurs-matrix-comp {
    text-align: center !important;
    min-width: 7rem;
}

.joueurs-col-highlight {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.joueurs-matrix-sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    min-width: 11rem;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}

.joueurs-matrix-sticky-meta {
    position: sticky;
    left: 11rem;
    z-index: 1;
    background: var(--surface);
    min-width: 6rem;
    font-size: 0.85rem;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}

.joueurs-matrix-points {
    text-align: center;
    min-width: 4.5rem;
    font-variant-numeric: tabular-nums;
}

.joueurs-points {
    font-weight: 600;
}

.joueurs-points-live {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}

thead .joueurs-matrix-sticky,
thead .joueurs-matrix-sticky-meta {
    z-index: 3;
    background: #fafafa;
}

.joueurs-name {
    font-weight: 600;
    text-decoration: none;
}

.joueurs-name:hover {
    text-decoration: underline;
}

.joueurs-matrix-cell {
    text-align: center !important;
    padding: 0.55rem 0.35rem !important;
}

.matrix-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.matrix-yes {
    background: #dcfce7;
    color: #15803d;
}

.matrix-no {
    background: #f4f4f5;
    color: #a1a1aa;
}

.joueurs-matrix-total {
    text-align: center !important;
    font-weight: 700;
    min-width: 4rem;
}

.matrix-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
}

.matrix-total-zero {
    background: #f4f4f5;
    color: var(--muted);
    font-weight: 500;
}

.joueurs-matrix-row:nth-child(even) .joueurs-matrix-sticky,
.joueurs-matrix-row:nth-child(even) .joueurs-matrix-sticky-meta {
    background: #fcfcfc;
}

.joueurs-matrix-row:nth-child(even) td {
    background: #fcfcfc;
}

.joueurs-matrix-row:hover .joueurs-matrix-sticky,
.joueurs-matrix-row:hover .joueurs-matrix-sticky-meta,
.joueurs-matrix-row:hover td {
    background: #fff8f8;
}

.adherents-table-row td {
    font-size: 0.92rem;
}

.adherents-table-row td:last-child {
    white-space: nowrap;
}

.joueurs-matrix-footer td {
    background: #f9fafb;
    font-size: 0.9rem;
    border-top: 2px solid var(--border);
}

.joueurs-matrix-footer .joueurs-matrix-cell {
    font-weight: 700;
    color: var(--primary);
}

/* Sur mobile les tableaux joueurs / adherents deviennent des cartes empilees */
@media (max-width: 768px) {
    .joueurs-filters button {
        width: 100%;
    }

    .joueurs-matrix-scroll {
        max-height: none;
        overflow: visible;
        margin: 0;
    }

    .joueurs-matrix {
        min-width: 0;
        display: block;
    }

    .joueurs-matrix thead,
    .joueurs-matrix tfoot {
        display: none;
    }

    .joueurs-matrix tbody {
        display: grid;
        gap: 0.7rem;
    }

    .joueurs-matrix-row {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    }

    .joueurs-matrix-row td,
    .joueurs-matrix-row:nth-child(even) td,
    .joueurs-matrix-row:hover td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-width: 0;
        padding: 0.5rem 0.75rem !important;
        border: none;
        background: var(--surface);
        text-align: left !important;
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .joueurs-matrix-row td + td {
        border-top: 1px solid #f4f4f5;
    }

    .joueurs-matrix-row td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--muted);
    }

    .joueurs-matrix-row .joueurs-matrix-sticky,
    .joueurs-matrix-row .joueurs-matrix-sticky-meta,
    .joueurs-matrix-row:nth-child(even) .joueurs-matrix-sticky,
    .joueurs-matrix-row:nth-child(even) .joueurs-matrix-sticky-meta {
        position: static;
        min-width: 0;
        box-shadow: none;
    }

    .joueurs-matrix-row .joueurs-matrix-title,
    .joueurs-matrix-row:nth-child(even) .joueurs-matrix-title,
    .joueurs-matrix-row:hover .joueurs-matrix-title,
    .joueurs-matrix-row .joueurs-matrix-actions,
    .joueurs-matrix-row:nth-child(even) .joueurs-matrix-actions,
    .joueurs-matrix-row:hover .joueurs-matrix-actions {
        background: #fafafa;
    }

    .joueurs-matrix-title {
        padding: 0.65rem 0.75rem !important;
    }

    .joueurs-matrix-title .joueurs-name {
        font-size: 1rem;
    }

    .joueurs-matrix-row .joueurs-matrix-actions {
        justify-content: flex-end;
        gap: 1.25rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .joueurs-matrix-sep {
        display: none;
    }
}

@media (max-width: 900px) {
    .stats-kpi-grid,
    .stats-charts-row,
    .stats-charts-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-mobile-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 1rem;
        background: var(--chrome);
        border-bottom: 3px solid var(--primary);
        box-shadow: var(--shadow);
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .admin-mobile-brand {
        color: #ffffff;
        font-size: 0.95rem;
    }

    .admin-mobile-brand .brand-logo {
        height: 2rem;
    }

    .admin-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #ffffff;
        flex-shrink: 0;
    }

    .admin-nav-toggle svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .admin-nav-toggle:hover {
        background: rgba(227, 6, 19, 0.35);
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 40;
        width: min(280px, 88vw);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        padding-top: 1rem;
    }

    .admin-layout.nav-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgba(10, 10, 10, 0.45);
    }

    .admin-backdrop[hidden] {
        display: none;
    }

    .admin-content {
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header h1,
    .page-header h2 {
        margin: 0;
    }

    .page-header .button {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 1rem;
    }

    .card .page-header {
        margin-bottom: 0.5rem;
    }

    .actions {
        flex-direction: column;
    }

    .actions .button {
        width: 100%;
        text-align: center;
    }

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

    .form-field-span-2,
    .form-field-span-full {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .button,
    .form-actions button {
        width: 100%;
        text-align: center;
    }

    .details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .details dt,
    .details dd {
        margin: 0;
    }

    .stats-tabs {
        gap: 0.25rem;
    }

    .stats-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.65rem;
    }

    .stat-card h2 {
        font-size: 1.75rem;
    }

    .table-scroll {
        margin: 0 -0.25rem;
    }

    .table th,
    .table td {
        padding: 0.55rem 0.45rem;
        font-size: 0.9rem;
    }

    .table-actions-col {
        min-width: 7.25rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .table-actions .button {
        width: 100%;
    }

    .adherent-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .adherent-detail-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .adherent-competition-grid {
        grid-template-columns: 1fr;
    }

    .adherent-hero-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

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

    .dossier-aside {
        position: static;
    }

    .dossier-banner-side {
        align-items: flex-start;
    }

    .dossier-timeline {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .dossier-step {
        padding: 0 0 0 1.35rem;
    }

    .dossier-step::after {
        display: none;
    }

    .dossier-step-marker {
        position: absolute;
        top: 0.3rem;
        left: 0;
    }

    .dossier-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .dossier-field-value {
        text-align: left;
    }

    .home-venue-map-link {
        width: 100%;
        text-align: center;
    }

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

    .home-hero {
        padding: 1.75rem 1.4rem;
    }

    .home-hero-badge {
        display: none;
    }

    .home-hero-actions .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .home-highlights {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .week-cal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .week-cal-range-nav {
        align-self: flex-start;
    }

    .week-cal-board {
        display: none;
    }

    .week-cal-mobile {
        display: grid;
    }

    .week-cal-legend {
        display: none;
    }

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

    .planning-header {
        flex-direction: column;
    }

    .home-info-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .home-map-frame {
        height: 260px;
    }
}

/* --- Compositions d'équipes --- */

.composition-form {
    display: grid;
    gap: 1.25rem;
}

.composition-form-narrow {
    max-width: 28rem;
    gap: 1rem;
}

.composition-form-hint {
    margin: 0;
}

.composition-control {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    line-height: 1.35;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.composition-control:hover:not(:disabled):not([readonly]) {
    border-color: #d4d4d8;
}

.composition-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.composition-control[readonly] {
    background: #f4f4f5;
    color: #52525b;
    cursor: default;
}

select.composition-control {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    padding-right: 2.35rem;
    cursor: pointer;
}

.composition-control-color {
    height: 2.75rem;
    padding: 0.25rem 0.35rem;
    cursor: pointer;
}

.composition-color-field {
    max-width: 8rem;
}

.composition-form .form-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.composition-form .form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3f3f46;
    letter-spacing: 0.01em;
}

.composition-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.composition-share-input {
    flex: 1 1 16rem;
    min-width: 12rem;
}

.composition-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.composition-teams {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.composition-team-card {
    border: 1px solid var(--border);
    border-left: 4px solid var(--team-accent, var(--border));
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.composition-team-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f4f4f5;
}

.composition-match-field {
    grid-column: 1 / -1;
}

.composition-slots {
    display: grid;
    gap: 0.65rem;
}

.composition-slots-heading {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.composition-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    padding: 0.85rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
}

.composition-player-picker,
.filtered-picker {
    position: relative;
}

.composition-player-suggestions,
.filtered-picker-suggestions {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    max-height: 14rem;
    margin: 0;
    padding: 0.35rem 0;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.composition-player-suggestions li,
.filtered-picker-suggestions li {
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.35;
}

.composition-player-suggestions li[aria-selected="true"],
.filtered-picker-suggestions li[aria-selected="true"] {
    background: #f4f4f5;
}

.filtered-picker-input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .composition-team-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .composition-slots-grid {
        grid-template-columns: 1fr;
    }
}

.composition-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.composition-sheet-header {
    text-align: center;
    margin-bottom: 1rem;
}

.composition-sheet-title {
    margin: 0;
    font-size: 1.25rem;
}

.composition-sheet-date {
    margin: 0.35rem 0 0;
    color: #52525b;
}

.composition-sheet-table-wrap {
    overflow-x: auto;
}

.composition-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.composition-sheet-table th,
.composition-sheet-table td {
    border: 1px solid #d4d4d8;
    padding: 0.45rem 0.55rem;
    vertical-align: middle;
}

.composition-sheet-table th {
    background: #f4f4f5;
    font-weight: 600;
}

.composition-meta {
    width: 4.5rem;
    text-align: center;
    font-weight: 700;
    background: #fafafa;
}

.composition-meta span {
    display: block;
    line-height: 1.35;
}

.composition-team-code {
    font-size: 1.1rem;
}

.composition-division {
    font-size: 0.8rem;
    color: #52525b;
}

.composition-team-pill {
    font-weight: 700;
    text-align: center;
}

.composition-index {
    text-align: center;
    width: 2.5rem;
}

.composition-match-info {
    min-width: 10rem;
    white-space: pre-wrap;
}

.composition-player-name {
    min-width: 12rem;
}

.composition-public {
    padding: 0;
}

.page-timing {
    width: 100%;
    margin-top: auto;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #71717a;
    border-top: 1px solid var(--border);
    background: #fafafa;
    box-sizing: border-box;
    flex-shrink: 0;
}

.admin-layout .page-timing {
    margin-top: auto;
}

/* Résultat d'une équipe : bascule victoire / défaite + score */
.composition-form .composition-result-field {
    grid-column: 1 / -1;
}

.composition-result-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.composition-result-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3f3f46;
    letter-spacing: 0.01em;
}

.composition-outcome {
    display: inline-flex;
    flex: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.composition-outcome-option {
    position: relative;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.composition-outcome-option + .composition-outcome-option {
    border-left: 1px solid var(--border);
}

.composition-outcome-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.composition-outcome-option span {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
    color: var(--muted);
    background: var(--surface);
    transition: background 0.15s ease, color 0.15s ease;
}

.composition-outcome-option:hover span {
    color: var(--text);
}

.composition-outcome-option input:focus-visible + span {
    outline: 2px solid var(--info);
    outline-offset: -2px;
}

.composition-outcome-option input:checked + span {
    background: var(--accent-soft);
    color: #ffffff;
}

.composition-outcome-option--win input:checked + span {
    background: #16a34a;
}

.composition-outcome-option--loss input:checked + span {
    background: var(--danger);
}

.composition-form .composition-score-input {
    width: 9rem;
    flex: none;
}

.match-team-result {
    white-space: nowrap;
}

.match-outcome {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.35rem;
}

.match-outcome--win {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.match-outcome--loss {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Journées de match : carte par journée, ancre et mise en avant de la journée ciblée */
.public-match-page .match-day-card {
    position: relative;
    scroll-margin-top: 5rem;
    margin: 0 0 1.75rem;
    padding: 1.6rem 1.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.public-match-page .match-day-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.public-match-page .match-day-header-text h2 {
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.public-match-page .match-day-card .match-teams-table tbody tr:last-child td {
    border-bottom: none;
}

@media (min-width: 1024px) {
    .public-match-page .match-teams-table {
        table-layout: fixed;
        width: 100%;
    }

    .public-match-page .match-teams-table th:nth-child(1) { width: 12%; }
    .public-match-page .match-teams-table th:nth-child(2) { width: 12%; }
    .public-match-page .match-teams-table th:nth-child(3) { width: 32%; }
    .public-match-page .match-teams-table th:nth-child(4) { width: 22%; }
    .public-match-page .match-teams-table th:nth-child(5) { width: 22%; }

    .public-match-page .match-teams-table td {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1023px) {
    .public-match-page .match-day-card {
        padding: 1.25rem 1rem 1rem;
        border-radius: 14px;
    }

    .public-match-page .match-day-card .match-team-row {
        background: #fafafa;
        box-shadow: none;
    }
}

.match-day-date {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
}

.match-day-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.match-day-anchor:hover,
.match-day-anchor:focus-visible {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.match-day-anchor.is-copied {
    color: #166534;
    border-color: #86efac;
    background: #dcfce7;
}

.public-match-page .match-day-card.is-targeted {
    animation: match-day-target 2.4s ease-out;
}

@keyframes match-day-target {
    0%, 35% {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.18), 0 8px 24px rgba(15, 23, 42, 0.06);
    }
    100% {
        border-color: var(--border);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-match-page .match-day-card.is-targeted {
        animation: none;
        border-color: var(--primary);
    }
}
