/* Boots Rider - Mes cartes de cours styles */
.brmc-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 900px;
    margin: 20px auto;
    color: #2c3e50;
}

/* Login Form Styling */
.brmc-login-wrapper { max-width: 480px; }

.brmc-login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.brmc-login-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #1a202c;
    text-align: center;
}

.brmc-login-header p {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 24px;
    line-height: 1.5;
    text-align: center;
}

.brmc-form-group { margin-bottom: 16px; }

.brmc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #2d3748;
}

.brmc-form-group input[type="text"],
.brmc-form-group input[type="email"],
.brmc-form-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.brmc-form-group input:focus {
    border-color: #3182ce;
    outline: none;
}

.brmc-btn-submit {
    width: 100%;
    background: #3182ce;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.brmc-btn-submit:hover { background: #2b6cb0; }

/* Notification Card Styling */
.brmc-notify-card {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-left: 5px solid #3182ce;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.brmc-notify-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: #2b6cb0;
}

.brmc-notify-header p {
    margin: 0 0 16px 0;
    font-size: 0.88rem;
    color: #4a5568;
}

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

.brmc-notify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.brmc-btn-save {
    background: #3182ce;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}
.brmc-btn-save:hover { background: #2b6cb0; }

.brmc-btn-whatsapp-direct {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
}
.brmc-btn-whatsapp-direct:hover { background: #128c7e; color: #ffffff; }

.brmc-idweb-badge {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.brmc-logout-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8rem;
    color: #e53e3e;
    text-decoration: none;
}
.brmc-logout-link:hover { text-decoration: underline; }

.brmc-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.brmc-notice-warning { background: #fff3cd; color: #856404; border-left: 5px solid #ffeba2; }
.brmc-notice-error { background: #f8d7da; color: #721c24; border-left: 5px solid #f5c6cb; }
.brmc-notice-info { background: #d1ecf1; color: #0c5460; border-left: 5px solid #bee5eb; }

.brmc-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.brmc-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.brmc-summary-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a202c;
}

.brmc-season-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.brmc-stat-box {
    background: #f7fafc;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.brmc-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brmc-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
}

.brmc-stat-value.negative { color: #e53e3e; }
.text-green { color: #38a169; }
.text-red { color: #e53e3e; }

.brmc-alert-regularisation {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-left: 5px solid #e53e3e;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 30px;
}

.brmc-alert-title {
    font-weight: 700;
    color: #c53030;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.brmc-pending-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.brmc-pending-list li {
    margin-bottom: 4px;
    color: #742a2a;
}

.brmc-section-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 30px 0 16px 0;
    border-bottom: 2px solid #cbd5e0;
    padding-bottom: 8px;
}

.brmc-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brmc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.brmc-card-standard { border-top: 4px solid #3182ce; }
.brmc-card-kdo { border-top: 4px solid #d69e2e; background: #fffaf0; }
.brmc-card-promo { border-top: 4px solid #38a169; }
.brmc-card-carryover { border-top: 4px solid #805ad5; }
.brmc-card-unlimited_giant { border-top: 4px solid #d69e2e; background: #fffdf5; }

.brmc-card-completed {
    opacity: 0.75;
    background: #f7fafc;
}

.brmc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.brmc-card-header h3, .brmc-card-header h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #1a202c;
}

.brmc-card-subtitle {
    font-size: 0.85rem;
    color: #718096;
}

.brmc-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.brmc-badge-standard { background: #ebf8ff; color: #2b6cb0; }
.brmc-badge-kdo { background: #fefcbf; color: #975a16; }
.brmc-badge-promo { background: #f0fff4; color: #22543d; }
.brmc-badge-carryover { background: #faf5ff; color: #553c9a; }
.brmc-badge-unlimited_giant { background: #d69e2e; color: #ffffff; }

.brmc-grid-cases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 10px;
}

.brmc-case {
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 65px;
}

.brmc-case-used {
    border-style: solid;
    border-color: #38a169;
    background: #f0fff4;
}

.brmc-case-num {
    font-size: 0.7rem;
    color: #a0aec0;
    display: block;
}

.brmc-case-stamp {
    font-size: 1.2rem;
    color: #38a169;
    font-weight: bold;
    line-height: 1;
}

.brmc-case-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #276749;
    margin-top: 2px;
}

.brmc-case-dispo {
    font-size: 0.75rem;
    color: #cbd5e0;
    margin-top: 4px;
}

.brmc-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.brmc-history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.brmc-history-table th, .brmc-history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
}

.brmc-history-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
}

.brmc-status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.brmc-status-p { background: #c6f6d5; color: #22543d; }
.brmc-status-a { background: #fed7d7; color: #742a2a; }

.text-center { text-align: center; }


/* Champ WhatsApp grisé et désactivé */
.brmc-btn-whatsapp-direct {
	display:none;
}
.brmc-field-disabled label {
    color: #a0aec0;
}

.brmc-form-group input.brmc-input-disabled,
.brmc-form-group input.brmc-input-disabled:disabled {
    background-color: #edf2f7;
    border-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.brmc-form-group input.brmc-input-disabled::placeholder {
    color: #a0aec0;
    font-style: italic;
}
/* FIN: Champ WhatsApp grisé et désactivé */