/* Responsive Design - Mobile First */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* Activités */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .activity-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    /* Témoignages */
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
    
    /* Galerie */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Formulaire de réservation */
    .booking-form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-map {
        margin-top: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-certifications {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-nav {
        padding: 0 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .language-selector select {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .nav-actions .btn-primary {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Typographie */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Activités */
    .card-content {
        padding: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .card-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Features */
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem 0.5rem;
    }
    
    /* Témoignages */
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-nav {
        gap: 0.5rem;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
    }
    
    /* Galerie */
    .gallery-item {
        height: 180px;
    }
    
    /* Formulaire */
    .booking-form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-certifications span {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .booking-form-container {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .activity-card,
    .gallery-item {
        max-width: 100%;
    }
    
    .gallery-item {
        height: 160px;
    }
}

/* Optimisations pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .activity-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .activity-card:active {
        transform: scale(0.98);
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .btn-outline:active {
        transform: scale(0.95);
    }
    
    /* Augmenter la taille des zones tactiles */
    .nav-link {
        padding: 10px 5px;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
    }
}

/* Mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-scroll {
        bottom: 1rem;
    }
    
    .nav-menu.active {
        padding-top: 80px;
        justify-content: flex-start;
        gap: 2rem;
    }
}

/* Amélioration de la performance sur mobile */
@media (max-width: 768px) {
    .hero-image {
        transform: scale(1.1);
    }
    
    .activity-card:hover .card-image img,
    .gallery-item:hover img {
        transform: none;
    }
    
    /* Réduire les animations sur mobile pour améliorer les performances */
    .hero-content {
        animation: none;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* Accessibilité - Réduction des mouvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll {
        animation: none;
    }
    
    .hero-content {
        animation: none;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .nav-link {
        color: #f0f0f0;
    }
    
    .nav-logo h2 {
        color: var(--primary-color);
    }
    
    .language-selector select {
        background: rgba(255, 255, 255, 0.1);
        color: #f0f0f0;
        border-color: var(--primary-color);
    }
}

