/**
 * ITS Rugby — Espace président (front)
 *
 * Styles pour le dashboard président + claim boxes sur les fiches singulières.
 * Couleur primaire : #1c3d34 (var(--teal) du CSS commun).
 */

/* ============== Dashboard ============== */
.its-president-dash {
    max-width: 900px;
    margin: 20px auto;
    font-size: 14px;
}
.its-president-dash h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--teal, #1c3d34);
}

/* ============== Tabs (legacy JS, conservés au cas où) ============== */
.its-president-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}
.its-president-tab {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #666;
    transition: .15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}
.its-president-tab:hover { color: var(--teal, #1c3d34); }
.its-president-tab.active {
    color: var(--teal, #1c3d34);
    border-bottom-color: var(--teal, #1c3d34);
}
.its-president-pane { display: none; }
.its-president-pane.active { display: block; }

/* ============== Cards ============== */
.its-president-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.its-president-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--teal, #1c3d34);
}
.its-president-card .meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.its-president-card .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.its-president-card .actions a {
    font-size: 12px;
    padding: 6px 14px;
    background: var(--teal, #1c3d34);
    color: #fff;
    font-weight: 600;
    transition: .15s;
    text-decoration: none;
    display: inline-block;
}
.its-president-card .actions a:hover {
    background: #172713;
    text-decoration: none;
}
.its-president-card .actions a.secondary {
    background: #f3f4f6;
    color: #333;
    border: 1px solid #ddd;
}
.its-president-card .actions a.secondary:hover { background: #e5e7eb; }

/* ============== Badges ============== */
.its-president-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 6px;
}
.its-president-badge-ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.its-president-badge-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* ============== Empty state ============== */
.its-president-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
    background: #fafafa;
    border: 1px solid #eee;
}

/* ============== Edit bar (modifier-president) ============== */
.its-president-edit-bar {
    position: sticky;
    top: 32px;
    z-index: 90;
    background: var(--teal, #1c3d34);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.its-president-edit-bar-title {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 700;
}
.its-president-edit-bar a {
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    text-decoration: none;
}
.its-president-edit-bar a:hover { color: #fff; }
.its-president-edit-bar button {
    background: #fff;
    color: var(--teal, #1c3d34);
    border: none;
    padding: 8px 24px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}
.its-president-edit-bar button:hover { background: #f3f4f6; }

/* ============== Forms ============== */
.its-president-form {
    max-width: 600px;
    margin: 0 auto;
}
.its-president-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}
.its-president-form input[type=text],
.its-president-form input[type=email],
.its-president-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 14px;
}
.its-president-form textarea { min-height: 100px; }
.its-president-form button[type=submit] {
    padding: 10px 24px;
    background: var(--teal, #1c3d34);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: .15s;
}
.its-president-form button[type=submit]:hover { background: #172713; }
.its-president-form .its-form-msg {
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}
.its-president-form .its-form-msg-ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.its-president-form .its-form-msg-err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============== Claim boxes (single president page) ============== */
.its-claim-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 22px;
    margin: 16px 0;
    border: 1px solid var(--sage, #ABC8A2);
    border-left: 4px solid var(--g-bright, #8ED968);
    background: linear-gradient(135deg, var(--sage-lt, #D7EAE2), #fff 65%);
    font-size: 13px;
    line-height: 1.55;
    color: var(--teal, #1c3d34);
    box-shadow: 0 2px 12px rgba(28,61,52,.07);
}
.its-claim-box p { margin: 0; font-weight: 500; max-width: 62ch; }
.its-claim-box form { margin: 0; flex-shrink: 0; }
.its-claim-box.its-claim-ok {
    border-color: #059669;
    border-left-color: #059669;
    background: #ecfdf5;
    color: #065f46;
    box-shadow: none;
}
.its-claim-box.its-claim-pending {
    border-color: #f59e0b;
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
    box-shadow: none;
}
.its-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: var(--teal, #1c3d34);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(28,61,52,.18);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.its-claim-btn:hover { background: #172713; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(28,61,52,.26); }
@media (max-width: 600px) {
    .its-claim-box { align-items: flex-start; }
    .its-claim-box form, .its-claim-box .its-claim-btn { width: 100%; }
    .its-claim-box .its-claim-btn { justify-content: center; }
}
