@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0; 
    box-sizing: border-box; 
}
html {
    font-size: 62.5%; 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px;
} 
::-webkit-scrollbar-thumb {
    background-color: #29d9d5; 
} 
::-webkit-scrollbar {
    width: 8px;
} 
body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
section {
    padding: 8rem 8%;
}

/* TITRES */
.title {
    font-family: 'Playfair Display', serif;
    text-transform: capitalize;
    margin-bottom: 5rem;
    font-weight: 700;
    color: #29d9d5;
    position: relative;
    padding-left: 2rem;
    font-size: 3.5rem;
}
.title::before {
    position: absolute;
    left: 0;
    content: "";
    height: 100%;
    background-color: #fff;
    width: 4px;
}

/* HEADER */
header {
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7rem;
    padding: 0 8%;
}
header .logo a {
    color: #29d9d5;
    font-size: 2.8rem;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
header .logo a span {
    color: #fff;
}
.menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.menu li {
    list-style-type: none;
}
.menu li a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.menu li a:hover {
    color: #29d9d5;
}
.btn-reservation {
    color: #29d9d5;
    font-size: 1.4rem;
    border: 2px solid #29d9d5;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}
.btn-reservation:hover {
    background-color: #29d9d5;
    color: #0a0a0a;
}

/* HOME / ACCUEIL */
.home {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0,0,0,0.7)), url("image/image.jpg");
    background-position: center;
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    flex-direction: column;
    background-size: cover;
    padding-top: 7rem;
}
.home h2 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}
.home h4 {
    font-size: 5rem;
    margin-bottom: 2rem;
    text-transform: capitalize;
    font-weight: 700;
}
.home p {
    font-size: 1.5rem;
    max-width: 700px;
    line-height: 1.6;
    color: #ccc;
    font-weight: 300;
}
.home-btn {
    margin-top: 2rem;
}

/* FORMULAIRE FIND TRIP */
.find_trip {
    background-color: #1a1a1a;
    padding: 3rem;
    width: 90%;
    max-width: 1100px;
    position: absolute;
    bottom: -6rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(41, 217, 213, 0.2);
}
.find_trip form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}
.find_trip form div {
    flex: 1 1 22rem;
}
.find_trip form label {
    color: #999;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}
.find_trip form input {
    padding: 1.2rem 1.5rem;
    background-color: #0a0a0a;
    border: 1px solid #333;
    outline: 0;
    width: 100%;
    font-size: 1.4rem;
    color: #fff;
    border-radius: 8px;
    transition: 0.3s;
}
.find_trip form input:focus {
    border-color: #29d9d5;
}
.find_trip form input[type="submit"]{
    flex: 1 1 15rem;
    background: #29d9d5;
    border: none;
    padding: 1.2rem 0;
    color: #0a0a0a;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 1.5rem;
}
.find_trip form input[type="submit"]:hover {
    box-shadow: 0 0 20px #29d9d5;
    transform: translateY(-2px);
}

/* A PROPOS */
#a-propos {
    margin-top: 10rem;
}
.img-desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    flex-wrap: wrap;
}
.img-desc .left {
    position: relative;
    flex: 1 1 45rem;
    height: 45rem;
}
.img-desc .left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 15px;
}
.img-desc .left::after {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    content: "";
    height: 100%;
    background-color: #29d9d5;
    width: 100%;
    z-index: 1;
    border-radius: 15px;
}
.img-desc .right {
    flex: 1 1 45rem;
}
.img-desc .right h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 700;
}
.img-desc .right p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    font-weight: 300;
}
.img-desc .right a {
    border: 2px solid #29d9d5;
    color: #29d9d5;
    font-size: 1.4rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
    text-decoration: none;
}
.img-desc .right a:hover {
    background: #29d9d5;
    color: #0a0a0a;
}

/* DESTINATIONS */
#popular-destination .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
} 
#popular-destination .content .box{
    overflow: hidden;
    position: relative;
    height: 45rem;
    border-radius: 15px;
    cursor: pointer;
}
#popular-destination .content .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.box:hover img {
    transform: scale(1.1);
}
.box .content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 3rem;
    transform: translateY(100%);
    transition: 0.5s;
}
.box:hover .content {
    transform: translateY(0);
}
.box .content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.box .content p{
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1rem;
}
.box .content a {
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    border: 2px solid #29d9d5;
    color: #29d9d5;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}
.box .content a:hover {
    background: #29d9d5;
    color: #0a0a0a;
}

/* contact CSS */
#contact {
    padding: 0 10px;
    margin-bottom: 50px;
    height: 90vh;
}
#contact form {
    background-color: #fff;
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.left-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.left-right .left , .left-right .right {
    display: flex;
    flex-direction: column;
    width: 49%;
}
#contact form label {
    color: #000;
    font-size: 14px;
    padding: 10px 0;
    font-weight: 600
}
#contact form input {
    padding: 8px;
    outline: 0;
    border: 1px solid #999;
}
textarea {
    height: 150px;
    resize: none;
    outline: 0;
    width: 100%;
    padding: 10px;
}
#contact form input:focus , textarea:focus {
    border: 1px solid #29d9d5;
}
iframe{
    height: 150px;
    width: 100%;
}
#contact button {
    width: fit-content;
    padding: 8px 40px;
    background-color: #111;
    border: 1px solid #111;
    color: #fff;
    cursor: pointer;
    transition: 0.5s;
}
#contact button:hover {
    letter-spacing: 1px;
}
footer{
    width: 100%;
    background-color: #222;
    padding: 10px 0;
    font-size: 14px;
    text-align: center;
}
footer p {
    color: #fff;
}
footer span {
    color: #29d9d5;
}





/* BASE */
* { box-sizing: border-box; }

/* CACHER LE BURGER SUR PC */
.responsive-menu { display: none; cursor: pointer; font-size: 2.5rem; color: #fff; }

/* MOBILE max 768px */
@media (max-width: 768px) {
    
    /* 1. AFFICHER LE BURGER */
    .responsive-menu { display: block; position: absolute; right: 5%; top: 20px; }
    
    /* 2. CACHER LE MENU ET LE FAIRE GLISSER */
    header .menu {
        position: fixed;
        top: 0;
        right: -100%; /* caché à droite */
        width: 70%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease;
        z-index: 999;
    }
    
    /* 3. QUAND ON CLIQUE : LE MENU ARRIVE */
    header .menu.responsive {
        right: 0; /* visible */
    }
    
    /* 4. FORMULAIRE CONTACT EN 1 COLONNE */
    .left-right {
        flex-direction: column;
    }
    .left-right .left, .left-right .right {
        width: 100%;
    }
}
@media (max-width: 768px) {

    /* HEADER */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
        position: relative;
    }
    .btn-reservation {
        display: none; /* on cache le gros bouton du header */
        font-size: 0; /* sécurité au cas où */
        padding: 0;
    }
    .home-btn {
        display: inline-block; /* on remet le bouton dans le home */
        padding: 10px 20px;
        font-size: 14px;
    }

    /* SECTION HOME */
    .home {
        flex-direction: column; /* image en haut, texte en bas */
        text-align: center;
        padding-top: 8rem; /* espace pour le header */
    }
    .home h2 {
        font-size: 2.5rem;
    }
    .home h4 {
        font-size: 1.8rem;
    }
    .home p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* BURGER */
    .responsive-menu { 
        display: block; 
        position: absolute; 
        right: 5%; 
        top: 15px;
        z-index: 1000;
    }
}