/* HEADER HÉBERGEMENTS */
.hero-hebergements {
    height: 60vh;
    background-image: url('../images/hebergements/hero.jpg');
    background-size: cover;
    background-position: center bottom;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 300;
}

/* HÉBERGEMENTS */
.hebergements {
    background-color: white;
    padding: 0;
}

.hebergement {
    margin-bottom: 0;
    scroll-margin-top: 100px;
    width: 100%;
    padding: 4rem 0;
}

.hebergement:nth-child(odd) {
    background-color: #ffffff;
}

.hebergement:nth-child(even) {
    background-color: #f1eee9;
}

.hebergement .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hebergement-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hebergement-container.reverse {
    direction: rtl;
}

.hebergement-container.reverse > * {
    direction: ltr;
}

.hebergement-info {
    padding: 2rem 0;
}

.hebergement-title {
    font-size: 2.2rem;
    color: #8B4513;
    margin-bottom: 1.5rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.hebergement-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 2rem;
}

.hebergement-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem 1rem;
    justify-content: start;
}

.hebergement-features li {
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
}

.hebergement-features li::before {
    content: "✓";
    color: #8B4513;
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* SLIDERS DES HÉBERGEMENTS */
.hebergement-slider {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.slider-photo.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    color: #8B4513;
    border: none;
    font-size: 24px;
    font-weight: bold;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background-color: rgba(255,255,255,0.95);
    color: #964c21;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

/* SECTION SERVICES */
.services-section {
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e2d9 100%);
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.service-item {
    background: transparent;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
}

.service-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

.service-item:hover .service-icon {
    opacity: 1;
}

.service-item:hover .service-icon img {
    transform: scale(1.05);
}

.service-title {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #666;
    font-weight: normal;
}

/* MODAL GALERIE */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 30px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.modal-nav:hover {
    background-color: rgba(255,255,255,0.4);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 1rem;
    }

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

    .hebergement-container.reverse {
        direction: ltr;
    }

    .hebergement-title {
        font-size: 1.8rem;
    }

    .hebergement-slider {
        height: 300px;
        order: 1;
    }
    
    .hebergement-info {
        order: -1;
        padding: 0 0 2rem 0;
    }

    .hebergement-features {
        grid-template-columns: 1fr;
    }

    .modal-nav {
        font-size: 24px;
        padding: 10px 15px;
    }

    .modal-close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    .modal-counter {
        bottom: 10px;
        font-size: 12px;
    }

    .slider-nav {
        font-size: 20px;
        padding: 10px 12px;
        width: 44px;
        height: 44px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

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

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .section {
        padding: 0rem 0;
    }

    .hebergement {
        margin-bottom: 0;
    }

    .hebergement-slider {
        height: 250px;
    }

    .hebergement-features li {
        font-size: 0.9rem;
    }

    .slider-nav {
        font-size: 18px;
        padding: 8px 10px;
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-counter {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-reserver {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 1rem 0.3rem;
    }

    .hebergement-title {
        font-size: 1.5rem;
    }

    .hebergement-slider {
        height: 220px;
    }

    .slider-nav {
        font-size: 16px;
        padding: 6px 8px;
        width: 36px;
        height: 36px;
    }

    .slider-prev {
        left: 6px;
    }

    .slider-next {
        right: 6px;
    }
    
    .btn-reserver {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}