/* ========================================
   RESPONSIVE MOBILE - KARAMEL DESIGN
   ======================================== */

/* Mobile First - Base styles are for mobile */

/* ========================================
   NAVIGATION MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav {
        padding: 1rem 0;
    }

    .nav__wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav__logo img {
        width: 100px;
        height: auto;
    }

    /* Hamburger Menu */
    .nav__toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 9999999 !important;
        position: relative;
    }

    .nav__toggle span {
        width: 25px;
        height: 3px;
        background: var(--color-accent);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* MENU MOBILE - VERSION ULTRA-AGRESSIVE */
    .nav__menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background-color: #0A0A0A !important;
        background: #0A0A0A !important;
        backdrop-filter: none !important;
        padding: 5rem 2rem 2rem !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .nav__menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav__link {
        font-size: 1.25rem;
        padding: 0.75rem 0;
        display: block;
        color: #FFFFFF;
    }

    .nav__menu .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin-top: auto;
    }

    /* Désactive toute interaction derrière le menu quand il est ouvert */
    body.menu-open header,
    body.menu-open main,
    body.menu-open .hero,
    body.menu-open footer {
        pointer-events: none !important;
    }

    body.menu-open {
        overflow: hidden !important;
        touch-action: none !important;
    }
}

/* ========================================
   HERO SECTION MOBILE
   ======================================== */

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 8rem 0 4rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Texte en premier, slider en dessous */
    .hero__text {
        order: -1;
    }

    .hero__image {
        order: 1;
        margin-top: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero__cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero__cta .btn {
        width: 100%;
        padding: 1rem;
    }

    .hero__slider-container {
        min-height: 300px;
    }
}

/* ========================================
   SECTIONS MOBILE
   ======================================== */

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section__header {
        margin-bottom: 2rem;
    }

    .section__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section__subtitle {
        font-size: 0.875rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ========================================
   CATEGORIES MOBILE
   ======================================== */

@media (max-width: 768px) {
    .categories__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        min-height: 250px;
    }

    .category-card__title {
        font-size: 1.5rem;
    }

    .category-card__count {
        font-size: 0.875rem;
    }
}

/* ========================================
   PRESTATION DETAIL MOBILE
   ======================================== */

@media (max-width: 968px) {
    .prestation-detail {
        padding: 8rem 0 3rem;
    }

    .prestation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prestation-media {
        position: relative;
        height: 300px;
    }

    .prestation-media img,
    .prestation-media video {
        position: relative;
        top: 0;
    }

    .prestation-title {
        font-size: 2rem;
    }

    .prestation-price {
        font-size: 1.75rem;
    }

    .prestation-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .prestation-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .prestation-actions .btn {
        width: 100%;
    }
}

/* ========================================
   RESERVATION MOBILE
   ======================================== */

@media (max-width: 968px) {
    .reservation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calendar-section,
    .form-section {
        padding: 1.5rem;
    }

    .calendar-grid {
        gap: 0.5rem;
    }

    .calendar-day {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .time-slot {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   FOOTER MOBILE
   ======================================== */

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer__content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .footer__logo {
        margin: 0 auto 1rem;
    }

    .footer__menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .footer__address {
        font-style: normal;
    }

    .footer__bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   BUTTONS MOBILE
   ======================================== */

@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   FORMS MOBILE
   ======================================== */

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ========================================
   TOUCH OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav__link,
    .btn,
    .category-card,
    .faq-question,
    .contact-card {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .category-card:hover,
    .prestation-card:hover,
    .faq-item:hover,
    .contact-card:hover {
        transform: none;
    }

    /* Add active states instead */
    .category-card:active,
    .prestation-card:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* ========================================
   SMALL MOBILE (< 480px)
   ======================================== */

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .prestation-title {
        font-size: 1.75rem;
    }

    .calendar-header h2 {
        font-size: 1.125rem;
    }

    .time-grid {
        grid-template-columns: 1fr;
    }
}

