/* Styles pour la page Exercices (pages/exercices.php) */

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

.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}

.header .subtitle {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Preview section pour non-authentifiés */
.coach-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.coach-preview h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.coach-preview > p {
    color: #4a5568;
    font-size: 1.05rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.preview-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.preview-feature {
    background: white;
    border-radius: 12px;
    padding: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.preview-feature h3 {
    color: #667eea;
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
}

.preview-feature p {
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.coach-cta {
    display: inline-block;
    padding: 0.95rem 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.coach-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.55);
}

.coach-cta.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.35);
}

.coach-cta.secondary:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.55);
}

/* Message coach */
.coach-message {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-left: 4px solid #00bcd4;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    color: #006064;
    line-height: 1.7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.coach-message.preview {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff9800;
    color: #e65100;
}

.coach-message strong {
    font-size: 1.05rem;
}

/* Niveau & catégories */
.level-section,
.category-section {
    margin: 2.5rem 0;
    background: white;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
    color: #1f2937;
}

.section-header p {
    margin: 0 0 1.25rem 0;
    color: #4b5563;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

.level-card {
    display: block;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, #edf2ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    background: #f3f4f6;
    border-radius: 999px;
    color: #111827;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #e5e7eb;
}

/* Liste d'exercices (authentifiés) */
.exercices-list-wrapper {
    margin: 2rem 0;
}

/* Coach WebM overlay */
.coach-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    height: auto;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.coach-overlay.active {
    opacity: 1;
    animation: slideInUp 0.6s ease-out;
}

.coach-overlay video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: transparent;
}

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

@media (max-width: 900px) {
    .header h1 { font-size: 2.1rem; }
    .header .subtitle { font-size: 1rem; }
}

@media (max-width: 640px) {
    .main-content { padding: 1.5rem 1rem 2.5rem; }
    .coach-preview { padding: 1.5rem; }
    .preview-features { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .coach-cta { width: 100%; text-align: center; }
    .level-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .chip { font-size: 0.9rem; }
}
