/* Inscripline × Mister Pool 22 — Design system
   Co-branding : la plateforme d'inscription "Inscripline" (violet / bleu nuit,
   pictogramme liste + curseur) habille la ligue de billard "Mister Pool 22".
   On garde l'ADN billard — billes numérotées, liseré de rail — recoloré dans
   la palette Inscripline : violet dominant, bleu nuit structurel, magenta en
   éclat rare (le dégradé du logo). */

:root {
    /* --- Palette Inscripline --- */
    --midnight:     #101a39;   /* bleu nuit du logo — barres, pied de page, encre, billes "empochées" */
    --midnight-700: #1c2a54;

    --violet:       #7c3aed;   /* violet de marque — actions, focus, étape active (AA sur blanc) */
    --violet-600:   #6d28d9;
    --violet-100:   #ede6fe;
    --violet-950:   #4c1d95;   /* profondeur des billes */

    --magenta:      #d22ffc;   /* éclat chaud — dégradés, reflet de bille, à doser */
    --periwinkle:   #5b6ef2;   /* accent froid — liens, infos, divisions */
    --periwinkle-100:#e7e9fd;

    --brand-gradient: linear-gradient(120deg, #d22ffc 0%, #7c3aed 52%, #5b6ef2 100%);

    --haze:  #f5f4fb;          /* fond de page — blanc cassé froid, léger lavande */
    --cloud: #ffffff;          /* cartes */
    --ink:   #171a2b;

    --slate-600: #565b73;
    --slate-400: #9297ac;
    --line:      #e6e5f1;
    --line-100:  #f1f0f8;

    --go:      #12996a;  --go-100:      #dcf3ea;   /* "validé définitivement" (émeraude froide) */
    --pending: #b5641b;  --pending-100: #f7ebd9;   /* "brouillon" (ambre chaud, contraste volontaire) */
    --danger:  #d5405c;  --danger-100:  #fbe6ea;

    /* --- Alias des anciens noms de tokens (compat des règles + var() inline) --- */
    --blue-950: var(--midnight);
    --blue-900: var(--midnight);
    --blue-800: var(--violet-600);
    --blue-700: var(--violet);
    --blue-600: var(--periwinkle);
    --blue-500: var(--periwinkle);
    --blue-100: var(--violet-100);
    --blue-50:  var(--haze);

    --felt-900: var(--midnight);
    --felt-700: var(--go);
    --felt-500: var(--go);
    --felt-100: var(--go-100);

    --gold-700: var(--pending);
    --gold-600: var(--pending);
    --gold-100: var(--pending-100);

    --gray-600: var(--slate-600);
    --gray-400: var(--slate-400);
    --gray-200: var(--line);
    --gray-100: var(--haze);
    --white:    var(--cloud);

    --green: var(--go);
    --red:   var(--danger);
    --amber: var(--pending);

    --radius:   12px;
    --radius-sm: 8px;
    --shadow: 0 3px 16px rgba(16, 26, 57, 0.07);
    --shadow-lg: 0 16px 40px rgba(16, 26, 57, 0.18);

    --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--midnight); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; }
p { line-height: 1.6; color: var(--gray-600); }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Liseré de rail (diamants de table, recoloré Inscripline) ---------- */
.rail-diamonds {
    height: 6px;
    background-image:
        repeating-linear-gradient(-45deg,
            transparent 0 7px,
            rgba(255,255,255,.26) 7px 11px,
            transparent 11px 18px),
        var(--brand-gradient);
}

/* ---------- Topbar ---------- */
.topbar {
    background: linear-gradient(100deg, var(--midnight), var(--midnight-700));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Plaque "tableau d'affichage" : ligue + saison sportive, à droite de la barre */
.scoreboard {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-left: 14px;
    border-left: 2px solid transparent;
    border-image: var(--brand-gradient) 1;
    font-family: var(--font-mono);
    line-height: 1.15;
    text-align: left;
}
.scoreboard .sb-league {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.scoreboard .sb-season {
    color: var(--periwinkle);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar .admin-badge { margin-left: 10px; align-self: center; }
.nav-links a, .nav-links button {
    color: #eaf1ff;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links button:hover {
    background: rgba(255,255,255,.14);
    text-decoration: none;
}
.nav-links .btn-ghost-cta {
    background: rgba(255,255,255,.96);
    color: var(--blue-800);
}
.nav-links .btn-ghost-cta:hover { background: #fff; }
.nav-toggle { display: none; }

.topbar-admin { box-shadow: inset 0 3px 0 var(--magenta), var(--shadow); }
.admin-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    background: var(--magenta);
    color: #23093a;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(150deg, var(--midnight) 0%, var(--midnight-700) 48%, #3a2a78 100%);
    color: #fff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -45% auto;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(210,47,252,.24), transparent 70%);
    border-radius: 50%;
}
.hero-logo {
    display: block;
    height: 46px;
    width: auto;
    margin-bottom: 22px;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: .8px;
}
.hero h1 { color: #fff; font-size: 2.7rem; max-width: 620px; }
.hero p.lead { color: #d8e6ef; font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Aperçu ardoise (visuel de la home) ---------- */
.ledger-preview {
    position: absolute;
    right: 20px;
    top: 90px;
    width: 250px;
    background: var(--gray-100);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    transform: rotate(2.5deg);
    z-index: 1;
}
.ledger-preview .eyebrow {
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    border-image: var(--brand-gradient) 1;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.ledger-preview .ledger-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: .82rem;
    font-weight: 600;
}
.ledger-preview .ledger-step .num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #b98cff, var(--violet) 46%, var(--violet-950));
    color: #fff;
    font-family: var(--font-mono);
    font-size: .68rem;
    display: flex; align-items: center; justify-content: center;
}
.ledger-preview .ledger-step.done .num {
    background: var(--midnight);
    box-shadow: inset 0 2px 5px rgba(0,0,0,.5);
}
@media (max-width: 980px) { .ledger-preview { display: none; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.32), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: var(--violet-600); }
.btn-light { background: #fff; color: var(--violet-600); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-secondary { background: var(--violet-100); color: var(--violet-600); border-color: var(--violet-100); }
.btn-secondary:hover { background: #e2d7fd; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger-100); }
.btn-danger:hover { background: var(--danger-100); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Cards / sections ---------- */
.section { padding: 56px 0; }
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.card + .card { margin-top: 20px; }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--line-100);
    box-shadow: 0 2px 0 -1px var(--violet-100);
    flex-wrap: wrap;
}
.card-header h2, .card-header h3 { margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.feature {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.feature .icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.feature .icon img {
    width: 46px; height: 46px;
    object-fit: contain;
}

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.price-table th, .price-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
    font-size: .95rem;
}
.price-table th { color: var(--blue-900); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-mono); font-weight: 600; }
.price-table td.amount { font-family: var(--font-mono); font-weight: 600; color: var(--blue-700); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
    display: block;
    font-weight: 600;
    font-size: .86rem;
    color: var(--blue-900);
    margin-bottom: 6px;
}
label .req { color: var(--red); }
.hint { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-100);
}
input::placeholder { color: var(--gray-400); }
.field-error { border-color: var(--red) !important; }
.error-text { color: var(--red); font-size: .82rem; margin-top: 4px; }

.licence-gratuite-indicator { margin-top: 8px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.checkbox-row input { width: auto; margin-top: 3px; cursor: pointer; }
.checkbox-row label { font-weight: 500; margin: 0; color: var(--ink); }

/* ---------- Alerts / flash ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert-success { background: var(--go-100); color: #0b5b40; border-color: #b6e5d1; }
.alert-error   { background: var(--danger-100); color: #8a2438; border-color: #f2c9d2; }
.alert-info    { background: var(--violet-100); color: var(--violet-600); border-color: #dccdfb; }
.alert-warning { background: var(--pending-100); color: var(--pending); border-color: #ecd8a4; }

/* ---------- Badge / tag ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.badge-draft { background: var(--pending-100); color: var(--pending); }
.badge-submitted { background: var(--go-100); color: #0b5b40; }
.badge-blue { background: var(--periwinkle-100); color: #33409e; }

/* ---------- Stepper (billes numérotées) ---------- */
.stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.step {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 7px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--gray-200);
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-400);
}
.step .num {
    width: 27px; height: 27px;
    border-radius: 50%;
    background: var(--haze);
    color: var(--slate-400);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}
.step .num::after {
    content: "";
    position: absolute;
    top: 3px; left: 5px;
    width: 9px; height: 6px;
    background: rgba(255,255,255,.6);
    border-radius: 50%;
    filter: blur(.5px);
}
.step.active { border-color: var(--violet); color: var(--violet-600); box-shadow: 0 0 0 3px var(--violet-100); }
.step.active .num { background: radial-gradient(circle at 32% 28%, #b98cff, var(--violet) 46%, var(--violet-950)); color: #fff; }
.step.done { color: var(--violet-600); }
.step.done .num { background: var(--midnight); color: #fff; box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.step.done .num::after { opacity: .28; }
.step-sep { width: 22px; height: 2px; background: var(--gray-200); background-image: linear-gradient(90deg, var(--gray-400) 0 4px, transparent 4px 8px); background-size: 8px 2px; }

/* ---------- Team cards ---------- */
.team-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 18px;
}
.team-card-head {
    background: var(--blue-50);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--blue-100);
}
.team-card-head h3 { margin: 0; color: var(--blue-900); }
.team-card-body { padding: 20px 22px; }
.player-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--gray-200);
}
.player-row:last-child { border-bottom: none; }
.player-num {
    flex: 0 0 32px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--blue-700);
    font-family: var(--font-mono);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 3px;
    font-size: .82rem;
    position: relative;
    overflow: hidden;
}
.player-num::after {
    content: "";
    position: absolute;
    top: 4px; left: 6px;
    width: 8px; height: 5px;
    background: rgba(255,255,255,.5);
    border-radius: 50%;
}
.player-row.captain .player-num {
    background: radial-gradient(circle at 32% 28%, #b98cff, var(--violet) 46%, var(--violet-950));
    color: #fff;
}
.player-fields { flex: 1; min-width: 0; }
.form-row-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.form-row-fields:last-child { margin-bottom: 0; }

.player-search { position: relative; margin-bottom: 12px; }
.player-search-input {
    background: var(--haze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
    background-size: 15px;
    padding-left: 36px !important;
    border-color: var(--violet-100);
}
.player-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 260px;
    overflow-y: auto;
    z-index: 20;
}
.player-search-results.open { display: block; }
.player-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: .88rem;
    border-bottom: 1px solid var(--gray-100);
}
.player-search-result:last-child { border-bottom: none; }
.player-search-result:hover, .player-search-result.highlighted { background: var(--violet-100); }
.player-search-result .name { font-weight: 600; color: var(--ink); }
.player-search-result .meta { color: var(--gray-400); font-size: .78rem; font-family: var(--font-mono); }
.player-search-empty {
    padding: 10px 14px;
    font-size: .85rem;
    color: var(--gray-400);
}
.captain-tag {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue-700);
    letter-spacing: .5px;
    display: block;
    margin-bottom: 8px;
}
.remove-row-btn {
    background: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-400);
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 2px;
}
.remove-row-btn:hover { background: var(--danger-100); color: var(--danger); border-color: #f2c9d2; }

/* ---------- Admin: tuiles statistiques ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-tile {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--violet);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.stat-tile .stat-value { font-family: var(--font-mono); font-size: 1.85rem; font-weight: 700; color: var(--midnight); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile .stat-label { font-size: .8rem; color: var(--gray-600); margin-top: 6px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
    font-size: .9rem;
    vertical-align: middle;
}
.data-table th { color: var(--blue-900); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-mono); font-weight: 600; background: var(--gray-100); }
.data-table tbody tr:nth-child(even) { background: var(--haze); }
.data-table tbody tr:hover { background: var(--violet-100); }
.table-scroll { overflow-x: auto; }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-tabs a {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--gray-200);
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-600);
}
.filter-tabs a:hover { text-decoration: none; background: var(--blue-50); }
.filter-tabs a.active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

/* ---------- Visite guidée ---------- */
.tour-highlight {
    position: relative;
    z-index: 40;
    box-shadow: 0 0 0 4px var(--violet-100), 0 0 0 2px var(--violet);
    border-radius: var(--radius-sm);
    transition: box-shadow .2s ease;
}
.tour-bubble {
    position: fixed;
    z-index: 200;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 18px;
    font-size: .88rem;
}
.tour-eyebrow {
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--violet-600);
    margin-bottom: 6px;
}
.tour-bubble h4 { margin: 0 0 6px; font-size: .98rem; color: var(--blue-900); }
.tour-bubble p { margin: 0 0 14px; color: var(--gray-600); font-size: .85rem; line-height: 1.5; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-dismiss-all {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}
.tour-dismiss-all:hover { color: var(--red); }

/* ---------- Recap summary ---------- */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: .93rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--gray-600); }
.summary-row .value { font-weight: 700; color: var(--blue-900); }
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: var(--blue-900);
    color: #fff;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}
.total-row .amount { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-row .detail { font-size: .85rem; font-weight: 500; color: var(--blue-100); margin-left: 4px; }

/* ---------- Footer ---------- */
footer {
    margin-top: auto;
    background: var(--midnight);
    color: #9298c4;
    padding: 32px 0;
    font-size: .85rem;
}
footer a { color: #cdd3f5; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-credit { display: inline-block; margin-top: 4px; font-size: .8rem; opacity: .7; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 12px; }
.muted { color: var(--gray-600); }
.small { font-size: .85rem; }

/* ---------- Modale (popup composition d'équipe) ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 26, 57, .55);
}
.modal-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 26px 28px;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-box h3 { color: var(--blue-900); padding-right: 28px; }
.modal-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--gray-600);
    cursor: pointer;
}
.modal-close:hover { background: var(--gray-200); color: var(--ink); }

.composition-list { margin: 0; padding-left: 22px; }
.composition-list li { padding: 6px 0; color: var(--ink); font-size: .95rem; }
.captain-inline {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-700);
    letter-spacing: .4px;
    margin-left: 6px;
}

/* ---------- Pastilles d'équipes (tableau de bord public) ---------- */
.team-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.team-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-800);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.team-pill:hover { background: var(--blue-100); transform: translateY(-1px); }
.team-pill .badge { text-transform: none; }

.danger-zone { border-top: 3px solid var(--red); }
.danger-zone h3 { color: var(--red); }

/* ---------- Lockup logo au-dessus des cartes de connexion ---------- */
.auth-brand {
    text-align: center;
    margin: 8px 0 22px;
}
.auth-brand img {
    height: 52px;
    width: auto;
}
.auth-brand p {
    margin: 12px 0 0;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--slate-400);
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .topbar-admin .scoreboard { display: none; }
    .topbar-admin .topbar-inner { gap: 10px; }
}

@media (max-width: 860px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border-radius: 8px;
        background: rgba(255,255,255,.14);
        border: none;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
    }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--midnight-700);
        flex-direction: column;
        padding: 10px;
        box-shadow: var(--shadow-lg);
        z-index: 60;
    }
    .nav-links.open a, .nav-links.open button { width: 100%; text-align: left; }
    .topbar-inner { height: 60px; }
    .brand-logo { height: 26px; }
    .scoreboard { padding-left: 10px; }
    .scoreboard .sb-season { display: none; }
    .scoreboard .sb-league { font-size: .66rem; letter-spacing: .08em; }
    .player-row { gap: 8px; }
    .form-row-fields { grid-template-columns: 1fr; }
    .card { padding: 20px; }
    .hero { padding: 44px 0 60px; }
    .hero h1 { font-size: 1.7rem; }
    .total-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
