/**
 * ================================================================
 * AT Association Management - Styles FO
 * ================================================================
 */

.atam-vote-box,
.atam-vote-live {
    max-width: 860px;
    margin: 24px auto;
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.atam-vote-header {
    margin-bottom: 22px;
}

.atam-vote-session,
.atam-live-session {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #135e96;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.atam-vote-box h2,
.atam-vote-live h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.atam-vote-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.atam-front-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.atam-front-grid input {
    width: 100%;
    border: 1px solid #dcdfe4;
    border-radius: 12px;
    padding: 13px 15px;
    box-sizing: border-box;
}

.atam-choice-list {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.atam-choice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
}

.atam-choice-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.atam-choice-card input {
    margin: 0;
}

.atam-choice-card span {
    font-weight: 700;
}

.atam-front-btn {
    border: none;
    background: #2271b1;
    color: #fff;
    border-radius: 12px;
    padding: 13px 20px;
    font-weight: 700;
    cursor: pointer;
}

.atam-front-btn:hover {
    background: #135e96;
}

.atam-front-message {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.atam-front-message.success {
    background: #e8f6ed;
    color: #1f7a3f;
    border: 1px solid #b7ebc6;
}

.atam-front-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.atam-front-message.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.atam-live-card {
    text-align: center;
}

.atam-live-count {
    font-size: 30px;
    margin: 18px 0;
}

.atam-live-count strong {
    font-size: 54px;
}

.atam-live-progress {
    height: 16px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin: 18px auto;
    max-width: 620px;
}

.atam-live-progress span {
    display: block;
    height: 100%;
    background: #2271b1;
    transition: width .3s ease;
}

.atam-live-percent {
    font-weight: 700;
    color: #475569;
}

@media (max-width: 680px) {
    .atam-front-grid {
        grid-template-columns: 1fr;
    }

    .atam-vote-box,
    .atam-vote-live {
        padding: 22px;
    }
}

/* ================================================================
 * UX dynamique V0.2
 * ================================================================ */

.atam-voter-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 20px;
}

.atam-front-link {
    border: 0;
    background: transparent;
    color: #135e96;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}

.atam-front-link:hover {
    text-decoration: underline;
}

.atam-live-loader {
    padding: 18px;
    text-align: center;
    color: #64748b;
}

.atam-vote-identify-form button[disabled],
.atam-vote-submit-form button[disabled] {
    opacity: .65;
    cursor: wait;
}

/* ================================================================
   V0.3 - Listes front CA et Bureau
   ================================================================ */

.atam-front-governance-list {
    margin:2rem 0;
}

.atam-front-governance-title {
    margin-bottom:1rem;
}

.atam-front-member-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1rem;
}

.atam-front-member-card {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:1rem;
    box-shadow:0 6px 18px rgba(15,23,42,0.04);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:.9rem;
}

.atam-front-member-card h3 {
    margin:0 0 .35rem 0;
    font-size:1.05rem;
    line-height:1.25;
}

.atam-front-member-role {
    display:inline-flex;
    width:max-content;
    max-width:100%;
    border-radius:999px;
    padding:.35rem .6rem;
    background:#e8f1fb;
    color:#135e96;
    font-size:.85rem;
    font-weight:700;
}

.atam-front-member-structure {
    margin-top:.55rem;
    color:#64748b;
    font-size:.9rem;
}

.atam-front-member-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    padding:.65rem .9rem;
    background:#2271b1;
    color:#fff;
    text-decoration:none;
    font-weight:700;
}

.atam-front-member-link:hover {
    color:#fff;
    opacity:.9;
}

.atam-front-empty {
    padding:1rem;
    border:1px dashed #cbd5e1;
    border-radius:12px;
    color:#64748b;
    background:#f8fafc;
}
