/* ===== RÉACTIF - STYLES RESPONSIVE ===== */

/* Grands écrans (max 1440px) */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

/* Ordinateurs portables (max 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
        padding: 0 1.5rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Petits ordinateurs portables (max 992px) */
@media (max-width: 992px) {
    /* Menu de navigation mobile */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition-slow);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        width: 100%;
    }
    
    .dropdown {
        position: relative;
    }
    
    .dropdown > .nav-link::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 8px;
        font-size: 0.8em;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > .nav-link::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
        margin-top: 8px;
        overflow: hidden;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
        animation: fadeIn 0.3s ease-in-out;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }
    
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu a {
        display: block;
        padding: 10px 20px;
        color: var(--dark);
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        cursor: pointer;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.05);
        padding-left: 25px;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-cta {
        margin-top: 1rem;
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Hero section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    /* Sections */
    .section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Bouton WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* Tablettes (max 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Grilles */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cartes de services */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Témoignages */
    .testimonial-slider {
        padding: 0 1rem;
    }
    
    /* Formulaire de contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .form-group:last-child {
        margin-bottom: 0;
    }
}

/* Téléphones (max 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2::after {
        width: 40px;
    }
    
    /* Menu mobile plus petit */
    .nav-menu {
        width: 280px;
        right: -280px;
    }
    
    /* Bouton WhatsApp plus petit */
    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
    
    /* Cartes et éléments */
    .card {
        padding: 1.25rem;
    }
    
    /* Pied de page */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column:not(:last-child) {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Très petits écrans (max 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Menu mobile plus étroit */
    .nav-menu {
        width: 260px;
        right: -260px;
        padding: 70px 1.25rem 1.25rem;
    }
    
    /* Ajustements des marges et espacements */
    .section {
        padding: 2.5rem 0;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .pt-4 {
        padding-top: 1.5rem;
    }
    
    .pb-4 {
        padding-bottom: 1.5rem;
    }
    
    .pt-5 {
        padding-top: 2rem;
    }
    
    .pb-5 {
        padding-bottom: 2rem;
    }
}

/* Mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .nav-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
}
