/* ====================
   MASTERCLASS MARIAGE - STYLES PRINCIPAUX
   ==================== */

:root {
    --primary: #8B0000;      /* Rouge foncé - Sang de Jésus */
    --primary-dark: #5C0000;
    --secondary: #DAA520;     /* Or - Gloire de Dieu */
    --secondary-light: #F0C040;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* ==================== HEADER & NAVIGATION ==================== */

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.btn-logout {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* ==================== CONTAINER PRINCIPAL ==================== */

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ==================== CARTES & GRILLES ==================== */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
    padding-left: 0.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ==================== FORMULAIRES ==================== */

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--secondary-light);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ==================== TABLEAUX ==================== */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f9f9f9;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ==================== SÉANCES (ONGLETS) ==================== */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    color: var(--gray);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== PRISE DE NOTES ==================== */

.notes-section {
    background: #fef9e6;
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.notes-section textarea {
    background: white;
    font-family: inherit;
    resize: vertical;
}

.notes-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ==================== EXERCICES ==================== */

.exercice {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.exercice h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.exercice-question {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.exercice-question label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==================== TÉLÉCHARGEMENTS ==================== */

.downloads {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    margin: 1.5rem 0;
}

.downloads h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.download-list {
    list-style: none;
}

.download-list li {
    margin-bottom: 0.75rem;
}

.download-list a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-list a:hover {
    text-decoration: underline;
}

/* ==================== PROGRESSION ==================== */

.progress-bar-container {
    background: #eee;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    background: var(--secondary);
    width: 0%;
    height: 100%;
    transition: width 0.5s;
}

/* ==================== ALERTES & MESSAGES ==================== */

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ==================== FOOTER ==================== */

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    th, td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ==================== VERSETS BIBLIQUES ==================== */

.verset {
    font-style: italic;
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--secondary);
    font-family: 'Georgia', serif;
}

/* ==================== EN-TÊTE DES SÉANCES ==================== */

.seance-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.seance-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.seance-header .meta {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* ==================== PAGINATION SÉANCES ==================== */

.seance-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.seance-navigation button {
    padding: 0.75rem 1.5rem;
}