/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 20px;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.3rem;
    }
    
    /* Hero Sections */
    .about-hero h1,
    .products-hero h1 {
        font-size: 2.8rem;
    }
    
    .about-hero p,
    .products-hero p {
        font-size: 1.1rem;
    }
    
    /* Story & Commitment */
    .story-container,
    .commitment-container {
        gap: 3rem;
    }
    
    /* Products Grid */
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Header */
    header {
        padding: 0.8rem 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .logo-text {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    nav ul {
        margin-top: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.2rem;
    }
    
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Hero Sections */
    .about-hero,
    .products-hero {
        padding: 120px 0 80px;
        margin-top: 100px;
    }
    
    .about-hero h1,
    .products-hero h1 {
        font-size: 2.3rem;
        margin-bottom: 0.8rem;
    }
    
    .about-hero p,
    .products-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Sections Padding */
    .our-story,
    .our-values,
    .our-team,
    .our-numbers,
    .our-commitment,
    .about-cta,
    .products-section {
        padding: 3rem 0;
    }
    
    /* Story & Commitment */
    .story-container,
    .commitment-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .story-content h2,
    .commitment-content h2 {
        font-size: 2rem;
    }
    
    .story-content h2::after,
    .commitment-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .story-badge {
        top: -15px;
        right: -15px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Grid Systems */
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-info {
        padding: 1.2rem;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    /* Team Members */
    .team-member {
        padding: 1rem 0.8rem;
    }
    
    .member-image-container {
        width: 140px;
        height: 140px;
        margin-bottom: 0.8rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    /* Numbers */
    .number-card {
        padding: 1.2rem;
    }
    
    .number-value {
        font-size: 2.5rem;
    }
    
    .number-label {
        font-size: 1rem;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header */
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    nav ul li a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Hero Sections */
    .about-hero,
    .products-hero {
        padding: 100px 0 60px;
        margin-top: 80px;
    }
    
    .about-hero h1,
    .products-hero h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
    }
    
    .about-hero p,
    .products-hero p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    /* Sections Padding */
    .our-story,
    .our-values,
    .our-team,
    .our-numbers,
    .our-commitment,
    .about-cta,
    .products-section {
        padding: 2.5rem 0;
    }
    
    /* Grid Systems */
    .products-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Product Controls */
    .controls-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Team Members */
    .member-image-container {
        width: 120px;
        height: 120px;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-role {
        font-size: 0.85rem;
    }
    
    /* Numbers */
    .number-value {
        font-size: 2.2rem;
    }
    
    .number-label {
        font-size: 0.9rem;
    }
    
    /* Commitment List */
    .commitment-list li {
        padding: 0.8rem 0;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
        gap: 1.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    /* Ultra petits écrans */
    .about-hero h1,
    .products-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.7rem;
    }
    
    .product-card,
    .team-member,
    .value-card {
        margin: 0 0.5rem;
    }
    
    .member-image-container {
        width: 110px;
        height: 110px;
    }
}

/* ===== ANIMATIONS MOBILE OPTIMISÉES ===== */
@media (prefers-reduced-motion: no-preference) {
    /* Animations fluides pour mobile */
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Animation des cartes au hover (désactivé sur mobile) */
    @media (hover: hover) and (pointer: fine) {
        .product-card:hover,
        .team-member:hover,
        .value-card:hover {
            transform: translateY(-5px);
        }
    }
    
    /* Animation de pulse pour les interactions tactiles */
    .product-card:active,
    .team-member:active,
    .cta-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===== ORIENTATION SPECIFIQUE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .about-hero,
    .products-hero {
        padding: 100px 0 60px;
        min-height: 60vh;
    }
    
    .about-hero h1,
    .products-hero h1 {
        font-size: 2rem;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-circle img,
    .member-image,
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .product-card,
    .team-member,
    .value-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .product-description,
    .member-description {
        color: #b0b0b0;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Agrandir les zones cliquables pour le tactile */
    .filter-btn,
    .add-to-cart,
    .cta-button,
    .member-social a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .search-input {
        font-size: 16px; /* Empêche le zoom sur iOS */
    }
    
    /* Feedback visuel pour le tactile */
    .product-card:active,
    .team-member:active {
        background-color: rgba(76, 175, 80, 0.1);
    }
}

/* ===== PERFORMANCE MOBILE ===== */
@media (max-width: 768px) {
    /* Réduire les animations gourmandes */
    .product-card:hover .product-image {
        transform: none;
    }
    
    /* Optimiser les transitions */
    * {
        transition-duration: 0.3s !important;
    }
}