:root {
    --primary-color: #000000;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #1a1a1a;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 80px; /* Hauteur fixe */
    overflow: hidden; /* Empêche le débordement */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%; /* Prend toute la hauteur du header */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%; /* Prend toute la hauteur disponible */
}

.logo img {
    height: auto; /* Hauteur automatique */
    max-height: 50px; /* Hauteur maximale */
    width: auto; /* Largeur automatique pour conserver les proportions */
    margin-right: 10px;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.book-now {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.book-now:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../image/others-img/heroImh.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    border: 2px solid white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Accommodations Section */
.accommodations {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.room-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.room-image {
    height: 240px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-location {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.room-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color)
}

.room-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color); 
    margin-bottom: 15px;
}

.room-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 20px;
}

.feature i {
    color: var(--primary-color);
}

.view-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-btn:hover {
    background-color: #333;
}

/* Features Section */
.features {
    background-color: #f0f0f0;
    padding: 100px 20px;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.features:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Styles pour la visite virtuelle */
.virtual-tour {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: #000;
    height: 100%;
    grid-column: span 3;
}

.virtual-tour-container {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 300px;
    overflow: hidden;
}

.virtual-tour-container iframe,
.virtual-tour-container script {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tour-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-label i {
    color: var(--accent-color);
}

/* Media Queries pour la galerie */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .virtual-tour {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .virtual-tour {
        grid-column: span 1;
        height: 250px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .virtual-tour-container {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 60px 15px;
    }
    
    .gallery-grid {
        gap: 10px;
    }
    
    .virtual-tour {
        height: 200px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .virtual-tour-container {
        min-height: 200px;
    }
    
    .tour-label {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.testimonials {
    background-color: #f0f0f0;
    padding: 100px 20px;
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-slider {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-content {
    background-color: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 30px;
    height: 30px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-content:before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    padding-left: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding-left: 30px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700; 
}

.author-info p {
    font-size: 0.9rem;
    color: #777;
}

.slider-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
}

.contact-item:hover{
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
    width: 45px;
    height: 45px; 
    display: flex; 
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-details p, .contact-details a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 500px; 
}

.footer-about p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i {
    color: var(--accent-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.newsletter-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #333;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h2 {
        font-size: 2.2rem; 
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }

    .room-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2rem;
    }
    .primary-btn{
        justify-content: center;
        text-align: center;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Modal Styles */
/* Modal Styles - Version corrigée */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-close:hover {
    color: #ffc107;
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffc107;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    max-width: 80%;
    z-index: 10001;
}

/* Ajout pour que les gallery-item avec images soient cliquables */
.gallery-item:not(.virtual-tour) {
    cursor: pointer;
}

.gallery-item:not(.virtual-tour):hover {
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}




@media (max-width: 768px) {
    /* Corriger la largeur et position du menu mobile */
    #navbar {
        position: relative;
    }

    .nav-links {
        display: none;
        position: fixed; /* Changé de absolute à fixed */
        top: 80px; /* Ajustez selon la hauteur de votre header */
        left: 0;
        right: 0; /* S'assure qu'il prend toute la largeur */
        width: 100vw; /* 100% de la largeur de la vue */
        background-color: white;
        flex-direction: column;
        padding: 20px 0; /* Réduit le padding latéral */
        z-index: 999;
        margin: 0;
    }

    .nav-links a {
        padding: 12px 20px; /* Ajout de padding horizontal */
        border-bottom: 1px solid #eee;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Assurez-vous que le header a une hauteur fixe */
    header {
        height: 80px; 
    }

    .header-container {
        height: 100%;
    }
}