/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .container {
        padding: 0 24px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        height: 60px;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu a {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 16px;
        border: none;
        background: transparent;
    }
    
    .nav-menu li:hover > .sub-menu {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Hero */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    /* Posts */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer-widgets {
        padding: 40px 0;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Header Actions */
    .header-actions .btn-text {
        display: none;
    }
    
    .header-actions .btn {
        padding: 8px 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .btn-dashboard i {
        font-size: 18px;
    }
    
    .btn-logout i {
        font-size: 18px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .card {
        padding: 24px;
    }
    
    .post-card .post-content {
        padding: 16px;
    }
    
    .post-card .post-title {
        font-size: 18px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .stat-number {
        font-size: 24px;
    }
    
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .site-header {
        position: relative;
    }
}

/* Impression */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .pagination,
    .hero-section {
        display: none !important;
    }
    
    .site-main {
        padding: 20px !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}