/* ===================================
   Home Page Styles
   =================================== */

.home-page .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #232323;
    overflow: hidden;
    margin-top: 0;
    padding-top: 280px;
    padding-left: 5%;
}

.home-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 75%;
    height: 100%;
    background-image: url('../../images/losmose-lit-king-size.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.home-page .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 75%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 139, 0.4) 0%, rgba(75, 0, 130, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

@media (min-width: 1025px) {
    .home-page .hero::before {
        background-attachment: fixed;
    }
}

.home-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    max-width: 80%;
    padding: 20px;
}

.home-page .hero-content h1 {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    letter-spacing: -1px;
}

.home-page .hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
    /* max-width: 500px; */
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .home-page .hero-content h1 {
        font-size: 64px;
    }

    .home-page .hero {
        padding-left: 3%;
    }
}

@media (max-width: 768px) {
    .home-page .hero {
        justify-content: center;
        padding-left: 0;
    }

    .home-page .hero::before,
    .home-page .hero::after {
        left: 0;
        width: 100%;
    }

    .home-page .hero-content {
        text-align: center;
    }

    .home-page .hero-content h1 {
        font-size: 41px;
    }

    .home-page .hero-content p {
        max-width: 100%;
    }
}

.home-page .section-logement {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

.home-page .logement-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.home-page .logement-image {
    flex: 1;
}

.home-page .image-wrapper {
    position: relative;
}

.home-page .image-wrapper>img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.home-page .image-overlay-card {
    position: absolute;
    bottom: -7rem;
    right: -9rem;
    width: 45%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.home-page .image-overlay-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.home-page .logement-content {
    flex: 1;
}

.home-page .section-header {
    margin-bottom: 4rem;
}

.home-page .subtitle {
    font-size: 1.8rem;
    font-family: 'Jost', sans-serif;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.home-page .title-large {
    font-size: 3rem;
    font-family: 'Montserrat';
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 500;
}

.home-page .separator {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 0 2rem 0;
}

.home-page .separator-left {
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 1.5rem 0 2rem 0;
}

.home-page .intro-text {
    font-size: 1.8rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .home-page .logement-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .home-page .image-overlay-card {
        right: -20px;
        bottom: -20px;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .home-page .image-overlay-card {
        position: static;
        width: 100%;
        margin-top: 1rem;
        border: none;
    }

    .home-page .title-large {
        font-size: 2rem;
    }
}

.home-page .image-grid-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.home-page .mosaic-item {
    overflow: hidden;
    height: 400px;
}

.home-page .mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-page .mosaic-item:hover img {
    transform: scale(1.05);
}

.home-page .equipements {
    padding: 6rem 0;
    background-color: #0a0a0a;
}

.home-page .equipements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
    margin-top: 2rem;
}

.home-page .equipement-card {
    background: transparent;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    text-align: left;
}

.home-page .equipement-card:hover {
    transform: translateY(-3px);
}

.home-page .equipement-card:hover .equipement-icon {
    transform: scale(1.1);
}

.home-page .equipement-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.home-page .equipement-icon i {
    font-size: 2.5rem;
    display: block;
}

.home-page .equipement-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.home-page .equipement-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .home-page .equipements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .home-page .equipements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-page .equipement-card {
        text-align: center;
    }
}

.home-page .cta-section {
    padding: 6rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../images/losmose-chambre-cosy.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

.home-page .cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.home-page .cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.home-page .dark-section {
    background-color: #121212;
}

/* ===================================
   Testimonials Section
   =================================== */
.home-page .testimonials-section {
    padding: 6rem 0;
    position: relative;
    background-image: url('../../images/losmose-chambre-romantique.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.home-page .testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Fixed frame background */
.home-page .testimonial-frame {
    position: relative;
    width: 80vw;
    max-width: 60%;
    margin: 0 auto;
    height: 500px;
    padding: 5rem 0;
    border: 3px solid rgba(171, 137, 101, 0.8);
    border-radius: 250px 250px 2px 2px;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Carousel content container */
.home-page .carousel-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 1200px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    text-align: center;
}

.home-page .testimonial-slide {
    position: absolute;
    width: 100%;
    padding: 5rem 3rem 3rem;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.home-page .testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.home-page .testimonial-slide.slide-out {
    transform: translateX(-100%);
    opacity: 0;
}

.home-page .quote-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.home-page .testimonial-text {
    font-size: 3.4rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.home-page .author {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-page .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.home-page .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.home-page .carousel-dots .dot.active {
    background-color: rgba(171, 137, 101, 0.9);
    width: 12px;
    height: 12px;
}

.home-page .carousel-dots .dot:hover {
    background-color: rgba(171, 137, 101, 0.6);
}

/* ===================================
   Instagram Gallery Section
   =================================== */
.home-page .instagram-section {
    padding: 6rem 0;
    background-color: #0a0a0a;
}

.home-page .instagram-header {
    margin-bottom: 3rem;
}

.home-page .follow-text {
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.home-page .instagram-handle {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.home-page .instagram-handle:hover {
    color: var(--primary-color);
}

.home-page .gallery-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.home-page .gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.home-page .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-page .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 139, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-page .gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.home-page .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.home-page .gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .home-page .gallery-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .home-page .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-page .testimonial-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .home-page .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .testimonial-content {
        padding: 2rem 1.5rem;
    }

    .home-page .testimonial-text {
        font-size: 1rem;
    }
}
