/* Styles spécifiques à la page d'accueil */

/* Hero Section */
.hero {
    position: relative;
    height: 120vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -76px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.5s ease-out;
    animation: heroFadeIn 1.5s ease-out forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero:hover .hero-image img {
    transform: scale(1.1);
    transition: transform 8s ease;
}

.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.7)
    );
    z-index: 2;
    animation: overlayFadeIn 1.5s ease-out forwards;
}

@keyframes overlayFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    margin-top: 70px;
    animation: contentSlideIn 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes contentSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content h1.display-3 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero__content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #FFFFFF;
    margin: 2rem auto 0;
    max-width: 800px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__content h1.display-3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Destination Cards */
.destination-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 400px;
    cursor: pointer;
}

.destination-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-card__img {
    transform: scale(1.1);
}

.destination-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

.destination-card__title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    margin: 0;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.destination-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #fff;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.destination-card__content p {
    color: #fff;
    margin: 0 0 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.destination-card__content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: inline-block;
}

.destination-card:hover .destination-card__content {
    transform: translateY(0);
}

.destination-card:hover .destination-card__content p,
.destination-card:hover .destination-card__content .btn {
    opacity: 1;
    transform: translateY(0);
}

.destination-card:hover .destination-card__title {
    top: 30%;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--section-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Weather Section */
.weather-section {
    background-color: var(--section-bg);
    padding: 80px 0;
}

.weather-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.weather-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.weather-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.temperature {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
}

.weather-desc {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
}

.weather-details span {
    display: inline-block;
    margin: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.weather-details i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.current-time {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-color);
    text-align: center;
}

.current-time i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#currentTime {
    font-weight: 500;
}

/* Periods Card */
.periods-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.periods-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.periods-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.period-item {
    margin-bottom: 2rem;
}

.period-item:last-child {
    margin-bottom: 0;
}

.period-date {
    font-size: 1.5rem;
    color: #cd853f;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.period-description {
    color: #666;
    line-height: 1.6;
}

/* Travel Tips Card */
.tips-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tips-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tips-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tips-card:hover::before {
    opacity: 1;
}

.tips-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.tips-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tip-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(205, 133, 63, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.tip-item:hover {
    background: rgba(205, 133, 63, 0.1);
    transform: translateX(10px);
}

.tip-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.15);
}

.tip-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tip-content {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--section-bg);
}

.about-content {
    padding-right: 4rem;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1);
}

/* Testimonials Section avec Swiper */
.testimonials-section {
    padding: 5rem 0;
    background-color: #fff;
    overflow: hidden;
}

.testimonialSwiper {
    padding: 2rem 0 4rem 0;
}

.swiper-slide {
    height: auto;
    padding: 1rem;
}

.testimonial-card {
    height: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

.testimonial-content .rating {
    margin-bottom: 1rem;
}

.testimonial-content .rating i {
    color: var(--primary-color);
    margin: 0 2px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

/* Hide Lightbox close button */
.lb-close {
    display: none !important;
}
