:root {
    --primary-color: #04699D;
    --secondary-color: #EF8635;
    --accent-color: #7EB5EE;
    --dark-color: #52482C;
    --light-color: #f8f9fa;
    --text-color: #333;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Comic Sans MS', cursive, sans-serif; */
    background-color: #f9fafb;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Excursions Section */

.excursions-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80%;
    height: 4px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 10%;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 25px auto 0;
}

.excursion-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
    background: white;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
}

.excursion-card:nth-child(2) {
    animation-delay: 0.2s;
}

.excursion-card:nth-child(3) {
    animation-delay: 0.4s;
}

.excursion-card:nth-child(4) {
    animation-delay: 0.6s;
}

.excursion-card:nth-child(5) {
    animation-delay: 0.8s;
}

.excursion-card:nth-child(6) {
    animation-delay: 1s;
}

.excursion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* card  */

.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: slideshow 9s infinite;
}

.excursion-image {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}


.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}


.excursion-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.excursion-content {
    padding: 35px;
}

.excursion-highlights {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.excursion-highlights li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}

.excursion-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.excursion-info {
    background: rgba(126, 181, 238, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
}

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

.info-icon {
    color: var(--primary-color);
    min-width: 30px;
    font-size: 1.1rem;
}

.price-tag {
    background: var(--secondary-color);
    color: white;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 15px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(239, 134, 53, 0.3);
    transition: var(--transition);
}

.price-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 134, 53, 0.4);
}


/* IRANJA  */
.iranja1 {
    background-image: url('../images/Nosy iranja/photo (1).webp');
    animation-delay: 0s;
}

.iranja2 {
    background-image: url('../images/iranja2/1000027231.webp');
    animation-delay: 3s;
}

.iranja3 {
    background-image: url('../images/iranja2/1000027510.webp');
    animation-delay: 6s;
}
.iranja4 {
    background-image: url('../images/iranja2/1000027476.webp');
    animation-delay: 9s;
}
.iranja5 {
    background-image: url('../images/iranja2/1000027232.webp');
    animation-delay: 12s;
}

/* KOMBA  */
.komba1 {
    background-image: url('../images/View/komba-tanikely.webp');
    animation-delay: 0s;
}

.komba2 {
    background-image: url('../images/nuit sakatia/photo (4).webp');
    background-position: top;
    animation-delay: 3s;
}

.komba3 {
    background-image: url('../images/View/poisson.webp');
    animation-delay: 6s;
}

/* TOUR  */
.tour1 {
    background-image: url('../images/tour de l\'île Nosy be/photo (11).webp');
    animation-delay: 0s;
}

.tour2 {
    background-image: url('../images/tour de l\'île Nosy be/photo (15).webp');
    background-position: top;
    animation-delay: 3s;
}

.tour3 {
    background-image: url('../images/tour de l\'île Nosy be/photo (1).webp');
    animation-delay: 6s;
}

/* LOKOBE  */
.lokobe1 {
    background-image: url('../images/Lokobe/lokobe1.webp');
    animation-delay: 0s;
}

.lokobe2 {
    background-image: url('../images/Lokobe/lokobe2.webp');
    animation-delay: 3s;
}

.lokobe3 {
    background-image: url('../images/Lokobe/lokobe3.webp');
    animation-delay: 6s;
}

/* FAHINY  */
.fahiny1 {
    background-image: url('../images/View/nosyfahiny.webp');
    animation-delay: 0s;
}

.fahiny2 {
    background-image: url('../images/Nosy iranja/photo (5).webp');
    animation-delay: 3s;
}

.fahiny3 {
    background-image: url('../images/Nosy iranja/photo (2).webp');
    animation-delay: 6s;
}

/* SAKATIA  */
.sakatia1 {
    background-image: url('../images/View/photo (1).webp');
    animation-delay: 0s;
}

.sakatia2 {
    background-image: url('../images/View/photo (7).webp');
    animation-delay: 3s;
}

.sakatia3 {
    background-image: url('../images/View/tortueSakatia.jpg');
    animation-delay: 6s;
}

/* QUAD  */
.quad1 {
    background-image: url('../images/tour de l\'île Nosy be/quad.webp');
    animation-delay: 0s;
}

.quad2 {
    background-image: url('../images/tour de l\'île Nosy be/photo (10).webp');
    animation-delay: 3s;
}

.quad3 {
    background-image: url('../images/tour de l\'île Nosy be/photo (11).webp');
    animation-delay: 6s;
}

/* .quad-btn{
    color: #f8f9fa;
    background-color: var(--secondary-color);
    border: none;
    font-weight: bolder;
} */
/* .quad-btn {
    padding: 15px 35px;
    border: none;
    background-color: lightgray;
    color: black;
    cursor: pointer;
    font-weight: bold;
    border-radius: 2vh;
    transition: background-color 0.3s;
}

.quad-btn.active-btn {
    background-color: #ff9900;
    color: white;
} */

.quad-options {
    text-align: center;
    padding: 3rem 1rem;
}

.quad-options__title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.quad-options__duration {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quad-options__btn {
    padding: 0.8rem 2rem;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 50px;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.quad-options__btn:hover,
.quad-options__btn:focus {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.quad-options__btn[aria-pressed="true"] {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

@media (max-width: 768px) {
    .quad-options__duration {
        flex-direction: column;
        align-items: center;
    }
}

/* Animation du diaporama */
@keyframes slideshow {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .excursion-image {
        height: 350px;
    }

    .section-title {
        margin-top: 8vh;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .excursions-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .excursion-image {
        height: 300px;
    }

    nav {
        flex-wrap: wrap;
    }

    .form-select {
        margin-top: 10px;
    }

    .section-title {
        margin-top: 8vh;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .excursion-image {
        height: 250px;
    }

    .excursion-content {
        padding: 25px;
    }

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

    nav a {
        margin: 0 8px;
        font-size: 0.9rem;
    }

    .section-title {
        margin-top: 8vh;
    }
}