/**
 * PAGES RESPONSIVE - VERSION MOBILE
 * Styles responsive pour toutes les pages frontend
 */

/* ============================================
   PAGE HERO - TOUTES LES PAGES
   ============================================ */
@media (max-width: 768px) {
    .page-hero {
        padding: 6rem 1.5rem 3rem !important;
    }
    
    .page-hero h1 {
        font-size: 2rem !important;
    }
    
    .page-hero p {
        font-size: 1.05rem !important;
    }
    
    .page-hero .hero-badge {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 5rem 1rem 2.5rem !important;
    }
    
    .page-hero h1 {
        font-size: 1.75rem !important;
    }
    
    .page-hero p {
        font-size: 1rem !important;
    }
    
    .page-hero .hero-badge {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.8rem !important;
    }
}

/* ============================================
   BLOG PAGE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .blog-filters {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .post-card {
        border-radius: 16px !important;
    }
    
    .post-image {
        height: 200px !important;
    }
    
    .post-content {
        padding: 1.5rem !important;
    }
    
    .post-title {
        font-size: 1.25rem !important;
    }
    
    .post-excerpt {
        font-size: 0.95rem !important;
    }
    
    .post-meta {
        gap: 1rem !important;
        flex-wrap: wrap;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .blog-filters {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .filter-group label {
        font-size: 0.9rem !important;
    }
    
    .post-image {
        height: 180px !important;
    }
    
    .post-content {
        padding: 1.25rem !important;
    }
    
    .post-title {
        font-size: 1.125rem !important;
    }
    
    .post-excerpt {
        font-size: 0.9rem !important;
    }
    
    .post-featured-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.875rem !important;
    }
    
    .post-category {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.875rem !important;
    }
}

/* ============================================
   CONTACT PAGE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-info {
        padding: 2rem !important;
    }
    
    .contact-info h2 {
        font-size: 1.5rem !important;
    }
    
    .contact-item {
        padding: 1.25rem !important;
        gap: 1.25rem !important;
    }
    
    .contact-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    .contact-item h3 {
        font-size: 1.125rem !important;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.95rem !important;
    }
    
    .contact-form {
        padding: 2rem !important;
    }
    
    .contact-form h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2.5rem 1rem !important;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.75rem !important;
        border-radius: 16px !important;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.375rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .contact-item {
        padding: 1rem !important;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.375rem !important;
    }
    
    .contact-item h3 {
        font-size: 1.05rem !important;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   COURSES PAGE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .courses-filters {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .filter-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    .courses-container .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .courses-filters {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .filter-group label {
        font-size: 0.9rem !important;
    }
    
    .filter-group select,
    .filter-group input {
        font-size: 0.95rem !important;
        padding: 0.875rem 1rem !important;
    }
}

/* ============================================
   EDUCATION CYCLES (PRIMARY, MIDDLE, SECONDARY)
   ============================================ */
@media (max-width: 768px) {
    .grades-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin: 2rem 0 !important;
    }
    
    .grade-card {
        border-radius: 20px !important;
    }
    
    .grade-header {
        padding: 1.75rem !important;
        text-align: center !important;
    }
    
    .grade-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
        margin: 0 auto 1rem !important;
    }
    
    .grade-title {
        font-size: 1.375rem !important;
    }
    
    .grade-body {
        padding: 1.75rem !important;
    }
    
    .subjects-list {
        padding: 0 !important;
    }
    
    .subject-item {
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
        margin-bottom: 0.625rem !important;
    }
    
    .subject-item i {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    .grades-grid {
        gap: 1.5rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .grade-card {
        border-radius: 16px !important;
    }
    
    .grade-header {
        padding: 1.5rem !important;
    }
    
    .grade-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.75rem !important;
    }
    
    .grade-title {
        font-size: 1.25rem !important;
    }
    
    .grade-body {
        padding: 1.5rem !important;
    }
    
    .subject-item {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.9rem !important;
        gap: 0.75rem !important;
    }
    
    .subject-item i {
        font-size: 1rem !important;
        width: 20px;
    }
}

/* ============================================
   DASHBOARD PAGE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 2rem 1.5rem !important;
    }
    
    .dashboard-header h1 {
        font-size: 1.75rem !important;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stat-card h3 {
        font-size: 1rem !important;
    }
    
    .stat-card .stat-number {
        font-size: 2rem !important;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .dashboard-card {
        padding: 1.5rem !important;
    }
    
    .dashboard-card h2 {
        font-size: 1.375rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1.75rem 1rem !important;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem !important;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr !important;
        gap: 0.875rem !important;
    }
    
    .stat-card {
        padding: 1.25rem !important;
    }
    
    .stat-card h3 {
        font-size: 0.95rem !important;
    }
    
    .stat-card .stat-number {
        font-size: 1.75rem !important;
    }
    
    .dashboard-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .dashboard-card h2 {
        font-size: 1.25rem !important;
    }
}

/* ============================================
   GRILLES GÉNÉRIQUES
   ============================================ */
@media (max-width: 768px) {
    .info-grid,
    .features-section,
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .info-card,
    .feature-box,
    .benefit-card {
        padding: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .info-grid,
    .features-section,
    .benefits-grid {
        gap: 1.25rem !important;
    }
    
    .info-card,
    .feature-box,
    .benefit-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* ============================================
   FORMULAIRES GÉNÉRIQUES
   ============================================ */
@media (max-width: 480px) {
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="search"],
    textarea,
    select {
        font-size: 0.95rem !important;
        padding: 0.875rem 1rem !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
    }
    
    .btn-submit {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* ============================================
   SECTIONS CONTENT
   ============================================ */
@media (max-width: 768px) {
    .section-content {
        padding: 3rem 1.5rem !important;
    }
    
    .section-content h2 {
        font-size: 1.75rem !important;
    }
    
    .section-content p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 2.5rem 1rem !important;
    }
    
    .section-content h2 {
        font-size: 1.5rem !important;
    }
    
    .section-content p {
        font-size: 0.95rem !important;
    }
}

/* ============================================
   IMAGES ET MÉDIAS
   ============================================ */
@media (max-width: 768px) {
    .content-image,
    .page-image {
        height: auto !important;
        max-height: 300px !important;
    }
}

@media (max-width: 480px) {
    .content-image,
    .page-image {
        max-height: 250px !important;
    }
}

/* ============================================
   NAVIGATION ET BREADCRUMBS
   ============================================ */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem !important;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem !important;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
@media (max-width: 480px) {
    .pagination {
        gap: 0.375rem !important;
    }
    
    .pagination-item {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================
   CARDS GÉNÉRIQUES
   ============================================ */
@media (max-width: 768px) {
    .card,
    .info-box,
    .content-box {
        padding: 1.75rem !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .card,
    .info-box,
    .content-box {
        padding: 1.5rem !important;
        border-radius: 14px !important;
    }
}

/* ============================================
   BADGES ET TAGS
   ============================================ */
@media (max-width: 480px) {
    .badge,
    .tag,
    .label {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.875rem !important;
    }
}

/* ============================================
   BOUTONS ACTIONS
   ============================================ */
@media (max-width: 480px) {
    .action-buttons,
    .cta-group,
    .button-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .action-buttons .btn,
    .cta-group .btn,
    .button-group .btn {
        width: 100% !important;
    }
}

/* ============================================
   TABLEAUX RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 0.875rem !important;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem !important;
    }
}

/* ============================================
   POST PAGE (Article détail)
   ============================================ */
@media (max-width: 768px) {
    .post-header {
        padding: 3rem 0 2.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .post-container {
        padding: 0 1.5rem !important;
    }
    
    .post-featured-image {
        border-radius: 16px !important;
        margin-bottom: 2rem !important;
    }
    
    .post-featured-image-placeholder {
        height: 300px !important;
        font-size: 4rem !important;
    }
    
    .post-body {
        padding: 2rem !important;
        border-radius: 20px !important;
        margin-bottom: 2rem !important;
    }
    
    .post-content {
        font-size: 1.05rem !important;
        line-height: 1.85 !important;
    }
    
    .post-content h1,
    .post-content h2 {
        font-size: 1.5rem !important;
    }
    
    .post-content h3,
    .post-content h4 {
        font-size: 1.25rem !important;
    }
    
    .post-author-box {
        padding: 1.75rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .post-author-avatar {
        width: 70px !important;
        height: 70px !important;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 2.5rem 0 2rem !important;
    }
    
    .post-container {
        padding: 0 1rem !important;
    }
    
    .post-featured-image {
        border-radius: 12px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .post-featured-image-placeholder {
        height: 250px !important;
        font-size: 3rem !important;
    }
    
    .post-body {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .post-content {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }
    
    .post-content h1,
    .post-content h2 {
        font-size: 1.375rem !important;
        margin-top: 1.5rem !important;
    }
    
    .post-content h3,
    .post-content h4 {
        font-size: 1.125rem !important;
    }
    
    .post-content ul,
    .post-content ol {
        padding-right: 1.5rem !important;
    }
    
    .post-content blockquote {
        padding: 1.25rem 1.5rem !important;
        border-right-width: 3px !important;
        font-size: 0.95rem !important;
    }
    
    .post-author-box {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .post-author-avatar {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ============================================
   ORIENTATION PAYSAGE
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .page-hero {
        padding: 4rem 1.5rem 2.5rem !important;
    }
    
    .page-hero h1 {
        font-size: 1.875rem !important;
    }
    
    .post-header {
        padding: 2.5rem 0 2rem !important;
    }
}

