/* ============================================
   RESPONSIVE CSS - Media queries
   ============================================ */

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 768px) {
    /* Menu hamburger visible */
    .menu-toggle {
        display: flex;
    }

    /* Menu caché par défaut */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-fast) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    /* Menu ouvert */
    nav ul.active {
        right: 0;
    }

    nav ul li {
        opacity: 0;
        transform: translateX(20px);
        transition: all var(--transition-fast) ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.4s; }

    nav a {
        font-size: 1.3rem;
    }

    nav .container {
        padding: 1rem 1.5rem;
    }

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

    .hero-code {
        order: -1;
    }

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

    /* Sections */
    .section-header h2::before {
        position: static;
        display: block;
        margin-bottom: 0.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    /* Services - 1 colonne + CENTRAGE */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .service-card {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Stack - CENTRAGE */
    .stack-grid {
        grid-template-columns: 1fr !important;
    }

    .stack-category {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Bloc Pourquoi - Version mobile */
    .pourquoi-desktop {
        display: none;
    }
    
    .pourquoi-mobile {
        display: block !important;
    }

    /* Pricing - 1 colonne + CENTRAGE */
    #tarifs > div:nth-of-type(2) {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    #tarifs > div:nth-of-type(2) > div {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Options supplémentaires - CENTRAGE */
    #tarifs > div:nth-of-type(3) {
        max-width: 100% !important;
        padding: 1.5rem 1rem !important;
        margin: 0 auto !important;
    }

    /* Process timeline */
    .process-timeline {
        padding-left: 1rem;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Contact grid - 1 colonne + CENTRAGE */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-item {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Formulaire - CENTRAGE */
    #contact > div:first-of-type {
        max-width: 100% !important;
        padding: 0 !important;
    }

    #contact > div:first-of-type > div {
        padding: 2rem 1.5rem !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    /* Boutons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        margin: 0;
        padding: 2rem 1.5rem;
    }
}

/* ===== TABLETTE (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Services - 2 colonnes centrées */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Pricing - 2 colonnes centrées */
    #tarifs > div:nth-of-type(2) {
        max-width: 800px !important;
        margin: 0 auto !important;
    }

    /* Stack - 2 colonnes centrées */
    .stack-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 700px;
        margin: 0 auto;
    }

    /* Contact - 2 colonnes centrées */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Section padding */
    section {
        padding: 4rem 2rem;
    }
}
