/* France Décor - Responsive Stylesheet */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Navigation adjustments */
    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .navbar-nav a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .navbar-toggle {
        display: flex;
        z-index: 999;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero section */
    .hero {
        padding: 120px 0 60px;
        min-height: 90vh;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-item .image-placeholder {
        height: 200px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Newsletter */
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .form-checkbox {
        text-align: center;
        font-size: 0.8rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section .social-icons {
        justify-content: center;
    }

    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }

    /* Cookie modal */
    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }

    .cookie-modal-header {
        padding: 15px;
    }

    .cookie-modal-body {
        padding: 15px;
    }

    .cookie-modal-footer {
        padding: 15px;
    }

    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-toggle {
        align-self: flex-end;
    }

    /* Thank you page */
    .thank-you-page {
        padding: 120px 0 50px;
    }

    .thank-you-content {
        padding: 0 10px;
    }

    .thank-you-icon {
        font-size: 3rem;
    }

    .thank-you-benefits {
        padding: 1.5rem;
    }

    .social-follow .social-icons {
        justify-content: center;
    }

    /* Legal pages */
    .legal-page {
        padding: 120px 0 50px;
    }

    .legal-content {
        padding: 0 10px;
    }

    .legal-navigation {
        flex-direction: column;
        align-items: center;
    }

    .legal-navigation .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Cookie table */
    .cookie-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
        min-width: 100px;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 50px 0;
    }

    .service-card,
    .testimonial-card {
        padding: 1.2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .portfolio-item .image-placeholder {
        height: 180px;
    }

    .image-placeholder {
        height: 200px;
        padding: 1rem;
    }

    .image-placeholder i {
        font-size: 2rem;
    }

    .about-stats .stat h4 {
        font-size: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .cookie-content {
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .thank-you-benefits,
    .newsletter-info {
        padding: 1rem;
    }

    .thank-you-benefits li {
        font-size: 0.9rem;
    }

    .legal-content h1 {
        font-size: 1.6rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }
}

/* Landscape phone orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: 100px 0 40px;
    }

    .navbar-menu {
        padding: 1rem 0;
    }

    .navbar-nav {
        gap: 1rem;
    }

    section {
        padding: 40px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-placeholder {
        border-width: 1px;
    }
    
    .service-icon,
    .social-icons a {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid #c0392b;
        outline-offset: 2px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .image-placeholder {
        background-color: #2c3e50;
        border-color: #34495e;
        color: #bdc3c7;
    }

    .image-placeholder i {
        color: #7f8c8d;
    }
}

/* Print optimizations */
@media print {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    section {
        padding: 1rem 0;
        break-inside: avoid;
    }

    .service-card,
    .testimonial-card,
    .portfolio-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .btn {
        display: none;
    }

    .social-icons {
        display: none;
    }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        container-type: inline-size;
    }

    @container (max-width: 600px) {
        .service-card {
            padding: 1rem;
        }
    }
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .portfolio-overlay {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        transform: none;
    }

    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
}

/* Large screens optimization */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
