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

body {
    background-image: url(Images/background-image.jpg);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
    font-weight: 200;
    letter-spacing: 1px;
}

/*Je design ma barre menu en appelant l'html que j'ai créé pour ça avec son sélecteur nav*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 150px;
    padding: 2rem;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

nav button{
    padding: 5px 10px;
    font-size: 0.8rem;
}

nav input{
    padding: 5px 5px;
    font-size: 0.8rem;
}

nav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: 'Audiowide', sans-serif;
    font-size: 1.2rem
}

.name {
    margin-right: auto;
    font-weight: 800;
    color: #fff;
    font-family: 'Audiowide', sans-serif;
}

.name a {
    font-size: 2rem;
}

nav a:not(.name a),
footer a {
    text-decoration: none;
    color: white;
    position: relative;
}

nav a:not(.name a)::before,
footer a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 4px;
    background-color: white;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .4s ease-in-out;
}

nav a:not(.name a):hover::before,
footer a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

/* ------------------------------------------------------- */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 10px 10px;
    font-size: 0.9rem;
    border: 2px solid #fff; 
    background-color: #000; 
    color: #fff; 
    border-radius: 5px 0 0 5px;
}

.search-form input[type="text"]::placeholder {
    color: white; 
    font-family: 'Oswald', sans-serif;
}

.search-form input[type="submit"] {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 11px 11px;
    font-size: 0.9rem;
    font-family: 'Audiowide', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-form input[type="submit"]:hover{
    transform: scale(1.05);
}

/* -------------------------------------------------------------- */
header{
    width: 100vw;
    height: 100vh;
    background-attachment: fixed;
    color: #fff;
    font-size: 6vh;
}

.text{
    background-image: url(Images/background1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 57rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%; 
    font-family: 'Audiowide', sans-serif;
    z-index: 1;
    margin-top: 2.6rem;
}

.text h1, h2 {
    text-shadow: 
    -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px  1px 0 #000,
    1px  1px 0 #000; 
}

main{
    width: 80%;
    margin: 0 auto;
}


.presentation {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
    font-weight: 100;
}

.presentation h3{
    padding: 1rem;
    text-align: center;
    font-size: 2rem;
}

.presentation p{
    text-align: left;
    margin-bottom: 150px;
    margin-top: 40px;
}

.espace {
    height : 10px
}

.slidertitle{
    display: flex;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem;
}



/* -------------------------------MON PIED DE PAGE--------------------------  */
footer {
    background-color: #000;
    text-align: center;
    padding: 10px;
    width: 100%;
    z-index: 999;
    margin-top: 5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 200px;
    letter-spacing: 1px;
}



/* --------------------------------PAGE DES DONNEES PERSONNELLES------------------  */
.donnees_persos {
    font-family: 'Oswald', sans-serif;
    font-weight: 200px;
    letter-spacing: 1px;
    margin-top: 150px !important; /* Pour pas que ça passe sous la navbar */
    margin: auto;
    width: 80%; /* Pour que ça prenne pas toute la largeur */
    text-align: auto;
    color: #fff;
    display: flex; 
    flex-direction: column; 
    gap: 30px; /* Pour que les paragraphes soient écartés */
}

.donnees_persos h1 {
    font-size: 50px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Audiowide', sans-serif;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
}

.sectiondp{
    background-color: black;
    border : 2px solid white;
    padding : 2em 1.8em ; 
    margin-top: 0.1em;
    margin-bottom: 3rem;
}

.donnees_persos h2 {
    text-align: left; /* Aligner les h2 à gauche */
    font-size: 2em;
}

.donnees_persos ul {
    list-style-position: inside; /* Pour que les points soient au centre */
    list-style-type: none; 
}

/* --------------------------------PAGE DE LA FAQ------------------------------- */
details {
    width: 50rem;
    background: black;
    color: #fff;
    border: 3px solid #fff;
    padding: 1em 1em;
}

.containerfaq{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

details[open] {
    padding-bottom: 1rem;
}

summary{ 
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    font-size:  1.5rem;
    display: flex;
    justify-content: space-between;
}

details[open] p {
    font-family: 'Oswald', sans-serif;
    font-weight: 200px;
    letter-spacing: 1px;
    font-size: 1rem;
    padding-top: 2em;
}

.open{
    display: none;
}

details[open] .closed{
    display: none;
}

details[open] .open{
    display: block;
}

.h1faq{
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    font-size:  3rem;
    margin-top: 11rem;
    margin-bottom: 3rem; 
    text-align: center;
}

/* ---------------------------SLIDER DE LA PAGE D'ACCUEIL----------------------  */
.items {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 50px;  
}

.items .item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 300ms ease-in-out;
    z-index: -1;
    opacity: 0;
}

.item img {
    height: 200px;
    object-fit: contain;
    transition: all 0.5s ease;
}

.item.active {
    opacity: 1;
    z-index: 99;
}

.item.active img {
    height: 300px;
}

.item.prev {
    z-index: 2;
    opacity: 0.75;
    transform: translate(-150%, -50%);
    cursor: pointer;
}

.item.next {
    z-index: 2;
    opacity: 0.75;
    transform: translate(50%, -50%);
    cursor: pointer;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;

}

/* -----------------------------------------PAGE DES DESTINATIONS----------------------------- */

.planete {
    width: 350px; 
    border: none; 
    padding: 20px; 
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

.planete img:hover {
    animation:float 2s ease-in-out infinite; 
}

.planete a{
    text-decoration: none;
    color: white;
}

.planete-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* gap: 5rem; */
    margin-top: 40px;
    margin-bottom: 40px;
}

.planete-latest{
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 2rem; */
}

.planete img {
    height: 200px;
    object-fit: contain;
    border-radius: 5px; 
    margin-bottom: 15px; 
}

.planete h2 {
    font-size: 1.2rem; /* Taille de la police du titre */
    margin-bottom: 10px; 
}

.planete p {
    font-weight: 700;    
}

.destinationpage{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 150px;
}

.destinations-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    margin-top: 50px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 200;
}

.destinationpage h1{
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    font-size: 3rem;
}


/* ---------------------------------PAGE DU DETAIL DES ARTICLES -------------------------------------- */

.articlepage{
    display: flex;
    margin-top: 200px;
    margin-bottom: 50px;
    width: 100%;
    gap: 5rem;
    font-size: 1.2rem;
}

.article-info{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 100;
    letter-spacing: 1px;
}

.article-info-details {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
}

.article-details{
    display: flex;
    align-items: flex-start;
    width: 50%;
}

.article-details img{
    width: 90%;
    }

.article-details img{
    animation:float 5s ease-in-out infinite; 
}

button:not(.Valider), .button, button:not(.Valider):hover, .button:hover{
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 7px 15px;
    font-size: 1.1rem;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.article-info a{
    text-decoration: none;
    text-align: center;
}

button:hover, .button:hover{
    background-color: #fff;
    color: #000;
    font-weight: 400;
}

.liens-articles {
    display: flex;
    justify-content: space-around;  
    width: 100%;
}

.lien-article {
    color: white;
    /* text-decoration: none; */
    width: 150px; 
    font-family: 'Audiowide', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
}

.liens-articles:hover{
    text-decoration: underline;
}

.lien-article:visited {
    color: white;
}

/* ------------------------------------PAGE DE LA RESERVATION---------------------------  */

.reservation-page{
    margin-top: 200px;
    margin-bottom: 200px;
}

.reservation-container{
    margin-top: 200px;
    margin-bottom: 200px;
    border-radius: 10px;
    border: 2px solid white;
    padding: 2rem;
    width: 50%;
    margin: 0 auto;
}

.reservation-page h2{
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.reservation-page form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

.reservation-page form #prix{
    display: none;
}

.reservation-page input{
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* -------------------------------------------------RECAPITULATIF-------------------------------  */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}
.modal-content {
    background-color: black;
    margin: 15% auto;
    padding: 50px;
    border: 1px solid #ffffff;
    width: 80%;
}

#recap{
    margin-bottom: 20px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: rgb(255, 255, 255);
    text-decoration: none;
    cursor: pointer;
}

.confirmation-page{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 150px;
    margin-bottom: 150px;
}

.confirmation-container{
    display: flex;
    flex-direction: column;
gap: 2rem;
text-align: center;
}

.confirmation-container li{
    list-style-type: none;
}

.confirmation-container a, .confirmation-container a:hover, .article-info a:hover{
    text-decoration: none;
}

.error{
    color: red;
    margin-top: 250px;
    text-align: center;
}

/* ---------------------------------------PAGE A PROPOS----------------------------------  */

.h1apropos {
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    font-size:  3rem;
    margin-top: 11rem;
    margin-bottom: 3rem; 
    text-align: center;
}

.h3apropos {
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    font-size:  2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem; 
    text-align: center;
}

.texteapropos {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 1px;
    padding-top: 1.8em;
    width: 70%;
    /* text-align: center; */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8rem;
}

.texteapropos p {
    margin-bottom: 1rem;
}

.texteapropos h2 {
    font-size: 1.4rem;
}

.astronaute{
    float: right;
    max-width: 400px;
    max-height: 400px;
}

.mentions-legales {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    padding-top: 1.8em;
    letter-spacing: 1px;
    font-weight: 200;
    width: 70%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.mentions-legales p {
    margin-bottom: 1.2em; /* Ajoute un espace entre les paragraphes */
}

/* -----------------------------------SKIPLINK------------------------------------ */

.skip-link {
    background-color: #ffffff;
    border: solid 3px rgb(0, 0, 0);
    padding: 0.4em 0.5em;
    text-decoration: none;
  }

  .skip-link:not(:focus):not(:active) {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .skip-link:focus {
    left: 0;
    position: absolute;
    top: 0;
    z-index: 999;
    color: red;
  }

  

  /* -----------------------------------MEDIA QUERIES------------------------------------ */

@media (768px < width < 1200px) {
    .items {
        height: 250px;
    }

    .items .item {
        width: 175px;
    }

    .item img {
        height: 150px;
    }

    .item.active img {
        height: 200px;
    }

    .item.prev {
        transform: translate(-185%, -50%);
    }

    .item.next {
        transform: translate(85%, -50%);
    }
}


/* ----------------------------------------PAGE CONTACT ---------------------*/

.contact-form {
    scroll-snap-align: center;
    margin-top: 150px;
}

.contact-container {
    padding: 20px;
    max-width: 40%;
    margin: auto;
    margin-bottom: 0;
    background-color: black;
    font-family:'Audiowide', sans-serif;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 1px 0 20px black;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    
}

.contact-container div {
    width: 70%;
}

.contact-container legend{
    font-family: 'Audiowide', 'sans-serif';
    color: #BD721D;
    text-align: center;
    font-size: 2rem;
}

.contact-container h2 {
    font-family: 'Oswald', 'sans-serif';
    font-size: small;
    margin-bottom: 12px;
    font-weight: 150;
}

.contact-container label {
    display: block;
    margin-bottom: 8px;
}

.contact-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.Valider {
    color: #BD721D;
    background-color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Oswald', 'sans-serif';
    font-size: 1rem;
    margin-top: 10px;
    border: solid 2px #BD721D;
    padding: 0.5rem 2rem;
}

.Valider:hover {
    background-color: #BD721D;
    color: black;
}