/* =========================================
   Concours Manager - Styles Frontend
   ========================================= */

/* Conteneurs généraux */
.cm-wrap {
    max-width: 600px;
    margin: 2rem auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cm-card {
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* Messages d'alerte (Notices) */
.cm-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid #ccc;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    border-radius: 2px;
}

.cm-notice h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333;
}

.cm-notice p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.cm-lead {
    font-size: 1.1em;
}

/* Variantes de notices */
.cm-notice-error {
    border-left-color: #dc3232;
    border: 1px solid #c00;
}

.cm-notice-warning {
    border-left-color: #ffb900;
    border: 1px solid #ffb900;
}

.cm-notice-success {
    border-left-color: #46b450;
    border: 1px solid #46b450;
}

.cm-notice-info {
    border-left-color: #00a0d2;
    border: 1px solid #00a0d2;
}

.cm-score-highlight {
    font-size: 1.3em;
    color: #d63638;
}

.cm-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* Erreurs simples */
.cm-error {
    color: #dc3232;
    padding: 10px;
    background: #ffebeb;
    border: 1px solid #dc3232;
    border-radius: 4px;
    margin: 10px 0;
}

/* Formulaires et Inputs */
.cm-select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cm-form-actions {
    margin-top: 15px;
}

/* Boutons */
.cm-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.cm-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.cm-btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.cm-btn-secondary {
    background: #f6f7f7;
    border-color: #2271b1;
    color: #2271b1;
}
.cm-btn-secondary:hover {
    background: #f0f0f1;
}

.cm-btn-danger {
    background: #d63638;
    border-color: #b32d2e;
    color: #fff;
}
.cm-btn-danger:hover {
    background: #b32d2e;
    border-color: #8a2424;
}

.cm-btn-lg {
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 15px;
}

/* Badges Diplômes */
.cm-badge {
    margin: 15px 0;
    padding: 15px;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: default;
    transition: transform 0.2s;
}

.cm-badge:hover {
    transform: scale(1.02);
}

.cm-badge-or { background: #D4AF37; }
.cm-badge-argent { background: #C0C0C0; color: #333; }
.cm-badge-bronze { background: #CD7F32; }

/* Tableaux de détails */
.cm-detail-box {
    margin-top: 1rem;
}

.cm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ccd0d4;
}

.cm-table th, .cm-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f1;
    text-align: left;
}

.cm-table th {
    background: #f6f7f7;
    font-weight: 600;
}

/* Classes utilitaires pour le tableau */
.cm-row-eliminated {
    color: grey;
    text-decoration: line-through;
}

.cm-row-joker-success {
    color: green;
    font-weight: bold;
}

.cm-row-joker-error {
    color: red;
    font-weight: bold;
}

.cm-row-error {
    color: red;
}

.cm-table-footer {
    margin-top: 10px;
    font-weight: normal;
}
