/* Responsive Design */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* Mobiles (480px et moins) */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        padding: 20px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* About */
    .about-description {
        font-size: 1rem;
    }
    
    .feature-item {
        gap: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1.25rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .image-placeholder {
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    /* Contact */
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-logo i {
        font-size: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    /* Modal */
    .modal-content {
        margin: 15% auto;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .demo-accounts {
        padding: 0.75rem;
    }
    
    .demo-accounts h4 {
        font-size: 0.875rem;
    }
    
    .demo-accounts p {
        font-size: 0.75rem;
    }
}

/* Très petits écrans (360px et moins) */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 0.75rem;
    }
}

/* Grands écrans (1200px et plus) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card {
        padding: 3rem;
    }
}

/* Très grands écrans (1600px et plus) */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services,
    .about,
    .contact {
        padding: 120px 0;
    }
}

/* Orientation paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        padding: 80px 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        width: auto;
        padding: 10px 20px;
    }
    
    .hero-stats {
        padding: 15px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre (si supporté par le navigateur) */
@media (prefers-color-scheme: dark) {
    /* Les styles du mode sombre peuvent être ajoutés ici si nécessaire */
}

/* Impression */
@media print {
    .navbar,
    .hero-stats,
    .footer,
    .modal {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-background,
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        color: var(--dark-color);
    }
    
    .services,
    .about,
    .contact {
        padding: 2rem 0;
    }
    
    .service-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .btn {
        display: none;
    }
}

