/*
 * GAMEHOHO - Pack Organisateur Pro
 */

:root {
    --op-bg: #0a0c0f;
    --op-panel: #16213e;
    --op-panel-2: #0f3460;
    --op-border: rgba(74, 158, 255, 0.24);
    --op-green: #00ff88;
    --op-blue: #4a9eff;
    --op-gold: #ffd700;
    --op-text: #ffffff;
    --op-muted: #aab7d1;
    --op-radius: 8px;
    --op-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.organizer-pro-body {
    padding-top: 90px;
    background:
        linear-gradient(180deg, rgba(15, 52, 96, 0.20), transparent 420px),
        var(--op-bg);
    color: var(--op-text);
}

.op-container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 24px;
}

.op-hero,
.op-card,
.op-panel,
.op-match,
.op-template-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        var(--op-panel);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    box-shadow: var(--op-shadow);
}

.op-hero {
    padding: 28px;
    margin-bottom: 22px;
}

.op-eyebrow {
    color: var(--op-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.op-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.16;
}

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

.op-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    background: var(--op-panel-2);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.op-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.op-btn.primary {
    background: var(--op-green);
    color: #07111f;
    border-color: var(--op-green);
}

.op-btn.gold {
    background: var(--op-gold);
    color: #07111f;
    border-color: var(--op-gold);
}

.op-btn.danger {
    background: #ff5c5c;
    color: #fff;
    border-color: #ff5c5c;
}

.op-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.op-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.op-stat {
    padding: 18px;
    background: rgba(15, 52, 96, 0.72);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
}

.op-stat strong {
    display: block;
    color: var(--op-green);
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
}

.op-stat span {
    color: var(--op-muted);
    font-size: 13px;
}

.op-card,
.op-panel {
    padding: 20px;
    margin-bottom: 18px;
}

.op-card h2,
.op-panel h2 {
    margin: 0 0 14px;
    color: var(--op-green);
    font-size: 20px;
}

.op-card h2::after,
.op-panel h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--op-green);
}

.op-list {
    display: grid;
    gap: 10px;
}

.sport-rule-picker {
    display: grid;
    gap: 12px;
}

.sport-rule-picker label {
    color: var(--op-green);
    font-weight: 900;
}

.sport-rule-picker > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.sport-rule-picker select {
    min-height: 42px;
    width: 100%;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    background: #07111f;
    color: #fff;
    padding: 0 12px;
    font: inherit;
}

.sport-rule-selected {
    border-color: rgba(0, 255, 136, 0.36);
}

.sport-rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.sport-rule-section {
    padding: 18px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        #111a2b;
    box-shadow: var(--op-shadow);
}

.sport-rule-section h3 {
    margin: 0 0 12px;
    color: var(--op-green);
    font-size: 18px;
}

.sport-rule-section ul,
.sport-rule-brief ol {
    margin: 0;
    padding-left: 20px;
    color: #d8e2f4;
    line-height: 1.58;
}

.sport-rule-section li + li,
.sport-rule-brief li + li {
    margin-top: 8px;
}

.sport-rule-brief {
    border-color: rgba(255, 215, 0, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(74, 158, 255, 0.07)),
        var(--op-panel);
}

.op-match {
    padding: 14px;
    box-shadow: none;
}

.op-match-head,
.op-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.op-match-head {
    color: var(--op-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.op-players {
    font-weight: 800;
    color: #fff;
}

.op-score {
    color: var(--op-green);
    font-weight: 900;
}

.op-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(74, 158, 255, 0.16);
    color: #cfe3ff;
    font-size: 12px;
    font-weight: 800;
}

.op-status.termine {
    background: rgba(0, 255, 136, 0.16);
    color: var(--op-green);
}

.op-status.en_cours {
    background: rgba(255, 215, 0, 0.16);
    color: var(--op-gold);
}

.op-copybox,
.op-textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--op-radius);
    border: 1px solid var(--op-border);
    background: #0b172b;
    color: #dce8ff;
    font: inherit;
}

.op-copybox {
    display: block;
    word-break: break-all;
}

.op-textarea {
    min-height: 110px;
    resize: vertical;
}

.op-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: end;
}

.op-form-grid label,
.op-field {
    display: grid;
    gap: 7px;
    color: var(--op-muted);
    font-weight: 700;
    font-size: 13px;
}

.op-form-grid input,
.op-form-grid select,
.op-form-grid textarea,
.op-field input,
.op-field select,
.op-field textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--op-radius);
    border: 1px solid var(--op-border);
    background: #0b172b;
    color: #fff;
    font: inherit;
}

.op-form-grid textarea,
.op-field textarea {
    min-height: 110px;
    resize: vertical;
}

.op-qr {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: var(--op-radius);
}

.op-qr img {
    display: block;
    width: 190px;
    height: 190px;
}

.op-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.op-sponsor {
    min-height: 92px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    background: rgba(15, 52, 96, 0.46);
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.op-sponsor img {
    max-width: 120px;
    max-height: 42px;
    object-fit: contain;
}

.op-progress {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #0b172b;
    border: 1px solid var(--op-border);
}

.op-progress span {
    display: block;
    height: 100%;
    background: var(--op-green);
}

.op-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.op-checklist li {
    padding: 10px 12px;
    border-radius: var(--op-radius);
    background: rgba(15, 52, 96, 0.58);
    border: 1px solid rgba(74, 158, 255, 0.18);
    color: #dce8ff;
}

.op-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.op-template-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
}

.op-template-card.locked {
    opacity: 0.68;
    filter: grayscale(0.35);
}

.op-template-card.locked::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--op-radius);
    border: 1px solid rgba(255, 215, 0, 0.34);
    pointer-events: none;
}

.op-lock-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.42);
    color: var(--op-gold);
    font-size: 12px;
    font-weight: 900;
}

.op-template-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
}

.op-template-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 10px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.13);
    color: var(--op-green);
    font-size: 12px;
    font-weight: 800;
}

.op-template-meta {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    color: var(--op-muted);
    font-size: 14px;
}

.op-template-card .op-btn {
    margin-top: auto;
}

.assistant-page {
    padding-top: 30px;
    padding-bottom: 44px;
}

.assistant-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 8%, rgba(0, 136, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(0, 255, 136, 0.08), transparent 42%),
        var(--op-panel);
}

.assistant-hero-copy {
    max-width: 760px;
}

.assistant-hero .op-muted {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
}

.assistant-mini-panel {
    padding: 20px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: var(--op-radius);
    background: rgba(4, 14, 22, 0.78);
    box-shadow: inset 4px 0 0 rgba(0, 255, 136, 0.86);
}

.assistant-mini-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--op-gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.assistant-mini-panel strong {
    display: block;
    color: var(--op-green);
    font-size: 22px;
    line-height: 1.2;
}

.assistant-mini-panel p {
    color: var(--op-muted);
    margin: 10px 0 16px;
}

.assistant-mini-steps {
    display: grid;
    gap: 8px;
}

.assistant-mini-steps span {
    padding: 10px 12px;
    border: 1px solid rgba(74, 158, 255, 0.22);
    border-radius: 8px;
    background: rgba(15, 52, 96, 0.4);
    color: #e8f0fb;
    font-weight: 800;
}

.assistant-proof-grid,
.assistant-format-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.assistant-proof-grid article,
.assistant-format-card {
    padding: 18px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    background: rgba(11, 18, 31, 0.82);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.assistant-proof-grid strong,
.assistant-format-card strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.assistant-proof-grid span,
.assistant-format-card span {
    display: block;
    margin-top: 8px;
    color: var(--op-muted);
    line-height: 1.55;
}

.assistant-main-grid {
    margin-bottom: 2px;
}

.assistant-preset-panel .op-muted {
    margin-top: -4px;
    margin-bottom: 14px;
    line-height: 1.55;
}

.assistant-preset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-preset-list .op-btn {
    justify-content: flex-start;
    min-height: 40px;
    font-size: 13px;
}

.assistant-recommendation {
    border-color: rgba(0, 255, 136, 0.32);
}

.assistant-warning {
    color: var(--op-gold);
    font-weight: 900;
}

.assistant-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: center;
}

.assistant-sample-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.assistant-sample-grid span {
    padding: 13px;
    border-radius: 8px;
    background: rgba(15, 52, 96, 0.62);
    border: 1px solid rgba(74, 158, 255, 0.22);
    color: #fff;
    font-weight: 800;
}

.assistant-format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assistant-format-card {
    margin-bottom: 0;
}

.assistant-format-card > span {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--op-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.assistant-page-clean {
    width: min(100%, 1180px);
}

.assistant-page-clean .assistant-hero {
    padding: 34px;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    border-color: rgba(0, 255, 136, 0.24);
    background:
        radial-gradient(circle at 86% 12%, rgba(0, 136, 255, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(0, 255, 136, 0.11), rgba(74, 158, 255, 0.06) 42%, rgba(11, 18, 31, 0.92));
}

.assistant-page-clean .assistant-hero h1 {
    max-width: 780px;
    font-size: 40px;
    line-height: 1.08;
}

.assistant-page-clean .assistant-proof-grid article {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
        rgba(8, 15, 27, 0.88);
}

.assistant-visual-stack {
    display: grid;
    gap: 14px;
}

.assistant-visual-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(74, 158, 255, 0.24);
    border-radius: 14px;
    background: #101726;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.assistant-visual-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.assistant-visual-card figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.32);
    background: rgba(6, 12, 20, 0.78);
    color: var(--op-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.assistant-builder {
    padding: 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 255, 136, 0.26);
    border-radius: var(--op-radius);
    background:
        linear-gradient(135deg, rgba(0, 255, 136, 0.08), transparent 36%),
        rgba(8, 13, 23, 0.94);
    box-shadow: var(--op-shadow);
}

.assistant-builder-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.assistant-builder-head h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 26px;
}

.assistant-builder-head p {
    margin: 0;
}

.assistant-builder-badge {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.32);
    background: rgba(255, 215, 0, 0.12);
    color: var(--op-gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.assistant-form-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.assistant-field {
    min-height: 118px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(74, 158, 255, 0.22);
    border-radius: 10px;
    background: rgba(15, 52, 96, 0.30);
}

.assistant-field-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.13);
    border: 1px solid rgba(0, 255, 136, 0.25);
    font-size: 22px;
}

.assistant-field-copy {
    display: grid;
    gap: 2px;
}

.assistant-field-copy strong {
    color: #fff;
    font-size: 16px;
}

.assistant-field-copy small {
    color: var(--op-muted);
    font-size: 12px;
    line-height: 1.35;
}

.assistant-field input {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.20);
    background: rgba(3, 7, 14, 0.72);
    color: #fff;
    font-weight: 800;
}

.assistant-field input:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.72);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12);
}

.assistant-submit {
    grid-column: 1 / -1;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #00ff88 0%, #16d8ff 100%);
    color: #07111f;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(0, 255, 136, 0.18);
}

.assistant-submit:hover {
    transform: translateY(-1px);
}

.op-print-page {
    background: #fff;
    color: #111;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px;
}

.op-print-header {
    border-bottom: 3px solid #111;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.op-print-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}

.op-print-card {
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.op-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.op-print-table th,
.op-print-table td {
    padding: 9px;
    border-bottom: 1px solid #d9dfeb;
    text-align: left;
}

.op-print-table th {
    background: #eef3f8;
}

@media print {
    body.organizer-pro-body {
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
    }

    header,
    footer,
    .no-print,
    .op-actions {
        display: none !important;
    }

    .op-container {
        width: 100%;
        padding: 0;
    }

    .op-print-page {
        max-width: none;
        padding: 0;
    }
}

@media (max-width: 980px) {
    .op-grid,
    .op-print-grid,
    .assistant-hero,
    .assistant-empty {
        grid-template-columns: 1fr;
    }

    .assistant-proof-grid,
    .assistant-format-grid,
    .assistant-form-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .op-container {
        padding: 16px;
    }

    .op-hero h1 {
        font-size: 26px;
    }

    .sport-rule-picker > div {
        grid-template-columns: 1fr;
    }

    .op-actions,
    .op-match-head,
    .op-row {
        flex-direction: column;
        align-items: stretch;
    }

    .op-btn {
        width: 100%;
    }

    .assistant-proof-grid,
    .assistant-format-grid,
    .assistant-sample-grid,
    .assistant-preset-list,
    .assistant-form-cards {
        grid-template-columns: 1fr;
    }

    .assistant-mini-panel,
    .assistant-proof-grid article,
    .assistant-format-card,
    .assistant-builder {
        padding: 16px;
    }

    .assistant-builder-head {
        flex-direction: column;
    }

    .assistant-builder-badge {
        width: 100%;
        text-align: center;
    }

    .assistant-page-clean .assistant-hero h1 {
        font-size: 28px;
    }
}
