/* 
   Kanz Ennakhil - Styles responsives
   Adaptations pour différentes tailles d'écran
*/

/* ===== Tablettes et petits écrans (max-width: 992px) ===== */
@media (max-width: 992px) {
    /* Header */
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    /* Navigation */
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px 15px;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Section À propos */
    .about-content {
        flex-direction: column;
    }
    
    .about-text, 
    .about-image {
        flex: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    /* Produits */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Contact */
    .contact-info,
    .contact-form {
        flex: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer-column {
        flex: 48%;
        margin-bottom: 30px;
    }
}

/* ===== Mobiles et tablettes en portrait (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Header */
    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: absolute;
        top: 25px;
        right: 30px;
        z-index: 999;
        cursor: pointer;
    }
    
    .rtl .mobile-menu-btn {
        right: auto;
        left: 30px;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn span:nth-child(1) {
        top: 0;
    }
    
    .mobile-menu-btn span:nth-child(2) {
        top: 9px;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        top: 18px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: white;
        z-index: 998;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    .rtl .main-nav {
        right: auto;
        left: -280px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.show {
        right: 0;
    }
    
    .rtl .main-nav.show {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 0;
    }
    
    .lang-switcher {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        justify-content: center;
    }
    
    /* Hero */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    /* Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Produits */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Qualité */
    .quality-features {
        flex-direction: column;
    }
    
    .quality-feature {
        margin-bottom: 30px;
    }
    
    /* Témoignages */
    .testimonial-card {
        min-width: 260px;
        padding: 20px;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        border-radius: 30px !important;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: 30px !important;
    }
    
    /* Footer */
    .footer-column {
        flex: 100%;
        margin-bottom: 30px;
    }
}

/* ===== Petits mobiles (max-width: 576px) ===== */
@media (max-width: 576px) {
    /* Container */
    .container {
        width: 95%;
    }
    
    /* Header */
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        margin-bottom: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* About */
    .about-section {
        padding: 40px 0;
    }
    
    /* Products */
    .products-section {
        padding: 40px 0;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 40px 0;
    }
    
    /* Forms */
    .form-control {
        padding: 10px;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 20px;
    }
}