@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero {
        padding: 10rem 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        gap: 2rem;
    }
}

@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    header .container {
        height: 70px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .main-menu li {
        margin-left: 1rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .widget-row {
        flex-direction: column;
    }
    
    .login-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .client-dashboard {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .dashboard-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-nav ul li {
        margin: 0;
    }
    
    .dashboard-nav ul li a {
        padding: 0.5rem 1rem;
    }
    
    .dashboard-sidebar-footer {
        display: none;
    }
    
    .client-info {
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    header .container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        display: none;
    }
    
    nav.show {
        display: block;
    }
    
    .main-menu {
        flex-direction: column;
    }
    
    .main-menu li {
        margin: 0;
    }
    
    .main-menu li a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        margin-left: 1rem;
        display: none;
    }
    
    .dropdown.show .dropdown-menu {
        display: block;
    }
    
    .client-area {
        margin-top: 1rem;
    }
    
    .client-area a {
        display: block;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .contact-layout {
        flex-direction: column;
    }
    
    .blog-layout {
        flex-direction: column;
    }
    
    .documents-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-col.document-dossier,
    .document-col.document-date {
        display: none;
    }
    
    .document-item {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-actions {
        width: 100%;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
    
    .document-col.document-type {
        display: none;
    }
    
    .document-name {
        flex: 1;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0;
    }
    
    .page-banner {
        padding: 2rem 0;
    }
}

@media print {
    header, footer, .back-to-top, .cta, .dashboard-sidebar {
        display: none !important;
    }
    
    body {
        background-color: var(--white);
        color: #000;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .dashboard-content {
        width: 100%;
        padding: 0;
    }
    
    .widget, .documents-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn {
        display: none;
    }
}
