/* ===============================================
   DCONSULTING V2 - RESPONSIVE STYLES
   Mobile-first responsive design
   =============================================== */

/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* Hero */
    .hero {
        padding: 8rem 0 6rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-tags {
        justify-content: center;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Qualiopi */
    .qualiopi-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .qualiopi-visual {
        order: 2;
    }

    .qualiopi-content {
        order: 1;
    }

    .qualiopi-image {
        margin: 0 auto;
    }

    /* CPF */
    .cpf-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-social {
        justify-content: center;
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
        --spacing-xl: 2rem;
    }

    /* Typography */
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .section-description {
        font-size: 1rem;
    }

    /* Header */
    .nav-container {
        height: 70px;
    }

    .nav-logo img {
        width: 40px;
        height: 40px;
    }

    .nav-brand {
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 100;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    .btn-nav-contact {
        margin-top: 0.5rem;
        display: block;
        text-align: center;
    }

    /* Hero */
    .hero {
        margin-top: 70px;
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-tags {
        flex-direction: column;
        align-items: center;
    }

    .hero-tag {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* About */
    .about-qualities {
        grid-template-columns: 1fr;
    }

    .about-frame {
        display: none;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Qualiopi */
    .qualiopi-badge {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* CPF */
    .cpf-title {
        font-size: 2rem;
    }

    .cpf-card {
        padding: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-details {
        align-items: center;
    }

    /* Toast */
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    /* Buttons */
    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        font-size: 15px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cpf-title {
        font-size: 1.75rem;
    }

    .service-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }

    .quality-icon,
    .contact-detail-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav-toggle,
    .hero-actions,
    .contact-form-wrapper,
    .toast {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --color-gray-200: #999;
        --color-gray-300: #888;
        --color-gray-400: #666;
    }

    .btn {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* ===== DARK MODE SUPPORT (Optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Vous pouvez activer le mode sombre si souhaité
    :root {
        --color-white: #0F172A;
        --color-light: #1E293B;
        --color-gray-900: #F8F9FC;
        --color-gray-800: #E2E8F0;
        --color-gray-700: #CBD5E1;
    }
    */
}