/* ============================================
   AMÉLIORATIONS RESPONSIVE COMPLÈTES
   ============================================ */

/* ===== BREAKPOINTS STANDARDS ===== */
/* Mobile: 320px - 480px */
/* Tablette: 481px - 768px */
/* Tablette paysage / Petit desktop: 769px - 1024px */
/* Desktop: 1025px+ */

/* ===== AMÉLIORATIONS GLOBALES ===== */
@media (max-width: 768px) {
    /* Prévenir le scroll horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Améliorer les espacements sur mobile */
    main > section:not(.hero):not(.availability-calendar) {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    /* Optimiser les titres */
    h2 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

/* ===== HEADER ET NAVIGATION ===== */
/* Tablettes en mode portrait - Menu burger */
@media (max-width: 900px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .nav-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.6rem;
        order: 1;
    }
    
    .burger-menu {
        display: block;
        order: 2;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    nav ul li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tablettes en mode paysage et petits écrans desktop - Menu complet visible */
@media (max-width: 1024px) and (min-width: 901px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .nav-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    nav {
        display: block;
    }
    
    nav ul {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
    }
    
    .burger-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo::after {
        font-size: 0.6rem;
    }
    
    .burger-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    nav ul li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .burger-menu {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
}

/* ===== SECTION HERO ===== */
@media (max-width: 1024px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 450px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
    
    .season-buttons {
        top: 5.5rem;
        right: 1rem;
    }
    
    .season-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .season-buttons {
        top: 4.5rem;
        right: 0.8rem;
        gap: 0.3rem;
    }
    
    .season-btn {
        width: 38px;
        height: 38px;
    }
    
    .season-icon {
        font-size: 0.9rem;
    }
}

/* ===== SECTION DESCRIPTION ===== */
@media (max-width: 1024px) {
    .description {
        padding: 4rem 1.5rem;
    }
    
    .description h2 {
        font-size: 2.5rem;
    }
    
    .description-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .description {
        padding: 3rem 1rem;
        margin: 2rem 0;
    }
    
    .description h2 {
        font-size: 2rem;
    }
    
    .description-subtitle {
        font-size: 1rem;
    }
    
    .description-text {
        font-size: 0.95rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .description {
        padding: 2rem 0.8rem;
    }
    
    .description h2 {
        font-size: 1.8rem;
    }
    
    .description-subtitle {
        font-size: 0.95rem;
    }
    
    .description-text {
        font-size: 0.9rem;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}

/* ===== CARROUSEL CHALET ===== */
@media (max-width: 1024px) {
    .chalet-carousel {
        padding: 3.5rem 1.5rem;
    }
    
    .chalet-carousel h2 {
        font-size: 2.2rem;
    }
    
    .carousel-wrapper {
        height: 450px;
    }
    
    .carousel-slide {
        height: 450px;
    }
    
    .carousel-slide img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .chalet-carousel {
        padding: 3rem 1rem;
    }
    
    .chalet-carousel h2 {
        font-size: 2rem;
    }
    
    .chalet-carousel p {
        font-size: 1rem;
    }
    
    .carousel-wrapper {
        height: 350px;
    }
    
    .carousel-slide {
        height: 350px;
    }
    
    .carousel-slide img {
        height: 350px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .chalet-carousel {
        padding: 2rem 0.5rem;
    }
    
    .chalet-carousel h2 {
        font-size: 1.6rem;
    }
    
    .chalet-carousel p {
        font-size: 0.9rem;
    }
    
    .carousel-wrapper {
        height: 250px;
    }
    
    .carousel-slide {
        height: 250px;
    }
    
    .carousel-slide img {
        height: 250px;
        object-fit: cover;
    }
    
    .slide-caption {
        padding: 1rem 0.8rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 8px;
    }
    
    .carousel-btn.next {
        right: 8px;
    }
    
    .category-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ===== ACTIVITÉS SAISONNIÈRES ===== */
@media (max-width: 1024px) {
    .seasonal-activities {
        padding: 3rem 1.5rem;
    }
    
    .seasonal-activities h2 {
        font-size: 2.2rem;
    }
    
    .seasonal-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .seasonal-activities {
        padding: 2.5rem 1rem;
    }
    
    .seasonal-activities h2 {
        font-size: 1.8rem;
    }
    
    .seasonal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .season-card {
        padding: 2rem 1.5rem;
    }
    
    .season-card h3 {
        font-size: 1.5rem;
    }
    
    .season-card ul {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .seasonal-activities {
        padding: 2rem 0.8rem;
    }
    
    .seasonal-activities h2 {
        font-size: 1.6rem;
    }
    
    .season-card {
        padding: 1.5rem 1rem;
    }
    
    .season-card h3 {
        font-size: 1.3rem;
    }
    
    .season-card p {
        font-size: 0.9rem;
    }
    
    .season-card ul {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===== TÉMOIGNAGES ===== */
@media (max-width: 1024px) {
    .testimonials {
        padding: 3rem 1.5rem;
    }
    
    .testimonials h2 {
        font-size: 2.2rem;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 2.5rem 1rem;
    }
    
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .testimonial-title {
        font-size: 1.1rem;
    }
    
    .testimonial p {
        font-size: 0.95rem;
    }
    
    .testimonial-author {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 2rem 0.8rem;
    }
    
    .testimonials h2 {
        font-size: 1.6rem;
    }
    
    .testimonial {
        padding: 1.2rem;
    }
    
    .testimonial-title {
        font-size: 1rem;
    }
    
    .testimonial p {
        font-size: 0.9rem;
    }
    
    .testimonial-author {
        font-size: 0.8rem;
    }
}

/* ===== CALENDRIER DISPONIBILITÉS ===== */
@media (max-width: 1024px) {
    .availability-calendar {
        padding: 2.5rem 1.5rem;
        margin: 4rem auto;
    }
    
    .calendar-header h3 {
        font-size: 1.6rem;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.8rem 0.3rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .availability-calendar {
        padding: 2rem 1rem;
        margin: 3rem auto;
    }
    
    .calendar-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .calendar-title-container h2 {
        font-size: 1.6rem;
    }
    
    .calendar-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .calendar-header h3 {
        font-size: 1.4rem;
        width: 100%;
        text-align: center;
    }
    
    .calendar-nav {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    .calendar-day-header {
        padding: 0.8rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 45px;
        padding: 0.6rem 0.2rem;
        font-size: 0.85rem;
    }
    
    .calendar-legend {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .admin-panel {
        padding: 1.5rem;
    }
    
    .admin-controls {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .availability-calendar {
        padding: 1.5rem 0.8rem;
        margin: 2rem auto;
    }
    
    .calendar-title-container h2 {
        font-size: 1.4rem;
    }
    
    .calendar-header h3 {
        font-size: 1.2rem;
    }
    
    .calendar-nav {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .calendar-day-header {
        padding: 0.6rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .calendar-day {
        min-height: 40px;
        padding: 0.5rem 0.1rem;
        font-size: 0.75rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .admin-panel {
        padding: 1.2rem;
    }
    
    .admin-panel h3 {
        font-size: 1.1rem;
    }
}

/* ===== GRILLES GÉNÉRALES ===== */
@media (max-width: 1024px) {
    .amenities-grid,
    .rules-container,
    .pricing-info,
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .amenities-grid,
    .rules-container,
    .pricing-info,
    .contact-details,
    .booking-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amenity-category,
    .rule,
    .pricing-card,
    .contact-item,
    .booking-step {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .amenity-category,
    .rule,
    .pricing-card,
    .contact-item,
    .booking-step {
        padding: 1.2rem;
    }
    
    .amenity-category h3,
    .rule h3,
    .pricing-card h3,
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 2rem;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    footer p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0.8rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

/* ===== LIGHTBOX ===== */
/* Styles identiques au carrousel de l'index */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        right: 5px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .lightbox-close {
        top: -30px;
        right: 0;
        font-size: 1.3rem;
        width: 28px;
        height: 28px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===== AMÉLIORATIONS TOUCH ===== */
@media (max-width: 768px) {
    /* Augmenter les zones de touch */
    button,
    .btn-primary,
    .carousel-btn,
    .calendar-nav,
    .admin-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Améliorer les liens */
    a {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Optimiser les images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== ORIENTATION PAYSAGE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .carousel-wrapper {
        height: 300px;
    }
    
    .carousel-slide {
        height: 300px;
    }
    
    .carousel-slide img {
        height: 300px;
    }
}

/* ===== COMMERCES ET RESTAURANTS ===== */
@media (max-width: 1024px) {
    .commerces,
    .restaurants {
        padding: 3rem 1.5rem;
    }
    
    .commerces h2,
    .restaurants h2 {
        font-size: 2.2rem;
    }
    
    .commerce-grid,
    .restaurant-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .commerce-item,
    .restaurant-item {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .commerces,
    .restaurants {
        padding: 2.5rem 1rem;
    }
    
    .commerces h2,
    .restaurants h2 {
        font-size: 1.8rem;
    }
    
    .commerce-content,
    .restaurant-content {
        padding: 1.5rem;
    }
    
    .commerce-item h3,
    .restaurant-item h3 {
        font-size: 1.4rem;
    }
    
    .commerce-item p,
    .restaurant-item p {
        font-size: 0.95rem;
    }
    
    .commerce-info,
    .restaurant-info {
        padding: 1.2rem;
    }
    
    .commerce-info p,
    .restaurant-info p {
        font-size: 0.9rem;
    }
    
    .commerce-links,
    .restaurant-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .commerce-link,
    .restaurant-link {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .commerces,
    .restaurants {
        padding: 2rem 0.8rem;
    }
    
    .commerces h2,
    .restaurants h2 {
        font-size: 1.6rem;
    }
    
    .commerce-content,
    .restaurant-content {
        padding: 1.2rem;
    }
    
    .commerce-item h3,
    .restaurant-item h3 {
        font-size: 1.2rem;
    }
    
    .commerce-item p,
    .restaurant-item p {
        font-size: 0.9rem;
    }
    
    .commerce-image,
    .restaurant-image {
        height: 180px;
    }
    
    .commerce-info,
    .restaurant-info {
        padding: 1rem;
    }
    
    .commerce-info p,
    .restaurant-info p {
        font-size: 0.85rem;
    }
    
    .commerce-link,
    .restaurant-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .special-badge {
        top: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* ===== ÉQUIPEMENTS ===== */
@media (max-width: 768px) {
    .amenities {
        padding: 2rem 1rem;
    }
    
    .amenities h2 {
        font-size: 1.8rem;
    }
    
    .rooms-gallery,
    .bathrooms-gallery {
        padding: 2rem 1rem;
    }
    
    .rooms-gallery h2,
    .bathrooms-gallery h2 {
        font-size: 1.8rem;
    }
    
    .room-slide,
    .bathroom-slide {
        flex-direction: column;
    }
    
    .room-info,
    .bathroom-info {
        width: 100%;
        padding: 1.5rem;
    }
    
    .room-carousel-container,
    .bathroom-carousel-container {
        width: 100%;
    }
    
    .room-carousel-container .carousel-image,
    .bathroom-carousel-container .carousel-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .amenities {
        padding: 1.5rem 0.8rem;
    }
    
    .amenities h2 {
        font-size: 1.6rem;
    }
    
    .rooms-gallery,
    .bathrooms-gallery {
        padding: 1.5rem 0.8rem;
    }
    
    .rooms-gallery h2,
    .bathrooms-gallery h2 {
        font-size: 1.6rem;
    }
    
    .room-info,
    .bathroom-info {
        padding: 1.2rem;
    }
    
    .room-info h3,
    .bathroom-info h3 {
        font-size: 1.3rem;
    }
    
    .room-info p,
    .bathroom-info p {
        font-size: 0.9rem;
    }
    
    .room-carousel-container .carousel-image,
    .bathroom-carousel-container .carousel-image {
        height: 200px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ===== TRÈS PETITS ÉCRANS ===== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .description h2 {
        font-size: 1.6rem;
    }
    
    .chalet-carousel h2 {
        font-size: 1.4rem;
    }
    
    .seasonal-activities h2 {
        font-size: 1.4rem;
    }
    
    .testimonials h2 {
        font-size: 1.4rem;
    }
    
    .calendar-day {
        min-height: 35px;
        font-size: 0.7rem;
    }
    
    .commerce-item h3,
    .restaurant-item h3 {
        font-size: 1.1rem;
    }
    
    .room-info h3,
    .bathroom-info h3 {
        font-size: 1.2rem;
    }
}

/* ===== AMÉLIORATIONS ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header,
    .burger-menu,
    .season-buttons,
    .carousel-btn,
    .calendar-nav,
    .admin-panel,
    footer {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
}

