/* ─── Championnats ─── */

.champ-main-title {
    margin-bottom: 4px;
}

.champ-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* ─── Grid des cartes ─── */
.champ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ─── Carte ─── */
.champ-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.champ-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.champ-card__header {
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 700;
}

.champ-card__header i {
    margin-right: 8px;
}

.champ-card__body {
    padding: 16px 20px;
    flex: 1;
}

.champ-card__body p {
    margin: 6px 0;
    font-size: 0.93rem;
}

.champ-card__footer {
    padding: 12px 20px 20px;
}

/* ─── Status badges ─── */
.champ-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.champ-status--ok {
    background: #e7f7ed;
    color: #1b7f4b;
}

.champ-status--wait {
    background: #eef3ff;
    color: #470000;
}

.champ-status--n1 {
    background: #fef3c7;
    color: #92400e;
}

.champ-status--none {
    background: #fdeaea;
    color: #c62828;
}

.champ-status--pending {
    background: #fff3e0;
    color: #e65100;
}

.champ-pending-amount {
    font-size: 0.85rem;
    color: #888;
}

/* ─── Prix indicatif ─── */
.champ-prix {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

/* ─── Boutons ─── */
.champ-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.champ-btn--primary {
    background: #e5141c;
    color: #fff;
    width: 100%;
    text-align: center;
}

.champ-btn--primary:hover,
.champ-btn--primary:focus {
    background: #c4111a !important;
    color: #fff !important;
}

.champ-btn--success {
    background: #1b7f4b;
    color: #fff;
}

.champ-btn--success:hover,
.champ-btn--success:focus {
    background: #15663d !important;
    color: #fff !important;
}

.champ-btn--outline {
    background: transparent;
    color: #555;
    border: 2px solid #ddd;
}

.champ-btn--outline:hover,
.champ-btn--outline:focus {
    border-color: #999 !important;
    color: #333 !important;
    background: transparent !important;
}

.champ-btn--disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    width: 100%;
    text-align: center;
}

.champ-btn-back {
    background: transparent;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    margin-bottom: 20px;
    transition: 0.15s;
}

.champ-btn-back:hover,
.champ-btn-back:focus {
    border-color: #999 !important;
    color: #333 !important;
    background: transparent !important;
}

.champ-btn-confirm {
    background: #e5141c;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
    width: 100%;
}

.champ-btn-confirm:hover,
.champ-btn-confirm:focus {
    background: #c4111a !important;
    color: #fff !important;
}

.champ-btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ─── Inscription panel ─── */
.champ-inscription {
    max-width: 700px;
}

.champ-step {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.champ-step h4 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #333;
}

.champ-help {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ─── Team info block ─── */
.champ-team-info {
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #1b7f4b;
}

.champ-team-info p {
    margin: 4px 0;
    font-size: 0.93rem;
}

.champ-team-n1 {
    border-left-color: #b45309;
    background: #fffbeb;
}

.champ-team-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1b7f4b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.champ-team-badge--n1 {
    color: #92400e;
}

.champ-team-badge--create {
    color: #470000;
}

.champ-team-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ─── Create form ─── */
.champ-create-form {
    padding: 12px 16px;
    border-radius: 8px;
    background: #f0f4ff;
    border-left: 4px solid #470000;
}

.champ-form-group {
    margin-bottom: 14px;
}

.champ-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #444;
}

.champ-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.93rem;
    box-sizing: border-box;
}

.champ-input:focus {
    outline: none;
    border-color: #470000;
    box-shadow: 0 0 0 3px rgba(44, 75, 209, 0.1);
}

/* ─── Licence selection ─── */
.champ-licence-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.champ-licence-price {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.champ-licence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: 0.15s;
}

.champ-licence-item:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
}

.champ-licence-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e5141c;
    flex-shrink: 0;
}

.champ-licence-name {
    flex: 1;
    font-weight: 500;
}

.champ-licence-amount {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ─── Recap ─── */
.champ-recap-box {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.champ-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.champ-recap-row:last-child {
    border-bottom: none;
}

.champ-recap-label {
    color: #555;
    font-size: 0.93rem;
}

.champ-recap-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.champ-recap-total {
    background: #f8f9fa;
    border-top: 2px solid #e5141c;
}

.champ-recap-total .champ-recap-label {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.champ-recap-total .champ-recap-value {
    font-size: 1.1rem;
    color: #e5141c;
}

/* ─── Actions ─── */
.champ-actions {
    margin-top: 8px;
}

/* ─── Payment notice block ─── */
.champ-payment-notice {
    background: #e7f7ed;
    border: 1px solid #a7e3c0;
    border-left: 4px solid #1b7f4b;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.champ-payment-notice__header {
    font-weight: 700;
    font-size: 0.92rem;
    color: #14532d;
    margin-bottom: 8px;
}

.champ-payment-notice__header i {
    color: #1b7f4b;
    margin-right: 6px;
}

.champ-payment-notice__list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.champ-payment-notice__list li {
    font-size: 0.86rem;
    color: #166534;
    line-height: 1.5;
    margin-bottom: 2px;
}

/* ─── Members list ─── */
.champ-members-list {
    margin-top: 10px;
}

.champ-members-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 4px;
}

.champ-members-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.champ-members-list li {
    padding: 4px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.champ-members-list li:last-child {
    border-bottom: none;
}

.champ-members-licence {
    font-size: 0.8rem;
    color: #888;
    background: #f0f0f0;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.champ-members-nolic {
    color: #b0b0b0;
    font-style: italic;
    background: transparent;
}

/* ─── Select2 fix double arrow ─── */
#champ-step-members .select2-container .select2-selection--single {
    background-image: none !important;
}

#champ-step-members .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
}

/* ─── Remove member button ─── */
.champ-btn-remove-member {
    background: transparent;
    border: none;
    color: #c62828;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 6px;
    line-height: 1;
    transition: 0.15s;
}

.champ-btn-remove-member:hover,
.champ-btn-remove-member:focus {
    color: #fff !important;
    background: #e5141c !important;
    border-radius: 4px;
}

/* ─── Add member section ─── */
.champ-add-member {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f0f4ff;
    border-left: 4px solid #470000;
}

/* ─── Utility ─── */
.champ-loading {
    color: #999;
    font-style: italic;
}

.champ-muted {
    color: #999;
    font-size: 0.9rem;
}

.champ-error {
    color: #c62828;
    background: #fdeaea;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ─── Paiement Stripe ─── */
.champ-step-payment h4 {
    color: #1b7f4b;
}

#champ-card-element {
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 10px;
}

#champ-card-element.StripeElement--focus {
    border-color: #1b7f4b;
    box-shadow: 0 0 0 3px rgba(27, 127, 75, 0.12);
}

#champ-card-element.StripeElement--invalid {
    border-color: #c62828;
}

#champ-card-errors {
    color: #c62828;
    background: #fdeaea;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 6px;
}

.champ-payment-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
    margin-top: 12px;
}

.champ-payment-info i {
    color: #1b7f4b;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
    .champ-grid {
        grid-template-columns: 1fr;
    }

    .champ-team-actions {
        flex-direction: column;
    }

    .champ-team-actions .champ-btn {
        width: 100%;
        text-align: center;
    }
}
