* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

body {
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(13,43,43,1) 23%, rgba(49,81,76,1) 50%, rgba(13,43,43,1) 81%, rgba(0,0,0,1) 100%);
}

h1 {
    color: white;
    font-size: 3.5rem;
    padding-bottom: 30px;
}

h2 {
    color: white;
    font-size: 3rem;
    padding-bottom: 20px;
}

h3 {
    color: white;
    font-size : 2rem;
    padding-bottom: 20px;
}

p {
    color: white;
}

p,
button,
input[type="email"],
a {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* SCROLL-BAR */

body::-webkit-scrollbar {
    width: 12px; 
  }
  
  body::-webkit-scrollbar-track {
    background: black; 
  }
  
  body::-webkit-scrollbar-thumb {
    background-color: white; 
    border-radius: 20px; 
    border: 3px solid black; 
  }

/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    height: 80px;
    position: fixed;
    top: 0px;
    left: 0px;
    width: calc(100% - 40px);
    transition: all 0.3s ease-in-out;
}

.header__main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    width: 100px;
}

header a {
    text-decoration: none;
}

.header__scroll {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: white;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* BUTTON */

.button {
    color: black;
    background-color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    border: solid 2px white;
    cursor: pointer;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.button__secondary {
    color: white;
    background-color: black;
    border: solid 2px black;
}

.button__secondary:hover {
    background-color: transparent;
    color: black;
}

.button__container {
    padding-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button__container__center {
    justify-content: center;
}

/* SECTION */

section {
    width: 100%;
    padding: 100px 0px;
}

.container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0px 20px;
    width: -webkit-fill-available;
}

.section1 {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../img/pexels-pripicart-620335.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
}

.section__col2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 60px;
}

.section__col3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
}

.full__image {
    display: block;
    margin: 0 auto;
    width: 100%;
}

.number {
    font-size: 6rem;
}

.section__border {
    border-radius: 30px;
    background-color: black;
    padding: 80px;
    min-height: 200px;
}

.form__newsletter input[type="email"] {
    color: white;
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

.form__newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.form__newsletter {
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 10px 10px 30px;
    display: flex;
    align-items: center;
}

/* Footer */

footer {
    background-color: black;
    padding: 100px 0;
}

.socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.socials img {
    width: 20px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.socials a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.footer__title {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__menu {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer__menu a {
    text-decoration: none;
    color: white;
}

.footer__menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

footer .logo {
    margin-bottom: 20px;
}

/* Section container */

.testimonials {
    overflow: hidden;
}

.testimonials__container {
    display: flex;
    transition: all 0.3s ease-in-out;
}

.testimonials__item {
    width: 100%;
    flex: none;
    text-align: center;
}

.testimonials__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.testimonials__toggle img {
    height: 40px;
    width: 40px;
    cursor: pointer;
}

.text__center {
    text-align: center;
}

.testimonials__author {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.testimonials__picture {
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

.testimonials__stars {
    width: 100px;
}

/* Form */

input[type="date"],
select {
    border: 2px solid white;
    background-color: #f4f4f9;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: 10px;
}

label {
    font-size: 0.9rem;
    font-weight: bold;
}

fieldset {
    display: flex;
    flex-direction: column;
    border: none;
    gap: 3px;
    width: 100%;
}

.hidden {
    display: none;
}

/* Responsive */

@media screen and (max-width: 1000px) {
    .section__col3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .section__col2,
    .section__col3 {
        grid-template-columns: 1fr;
    }

    .number {
        font-size: 3rem;
    }
}

@media screen and (max-width: 600px) {
    nav {
        flex-direction: column;
        position: fixed;
        top: 0px;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: black;
        justify-content: center;
        transition: all 0.3s ease-in-out;
    }    

    header .button {
        padding: 8px 15px;
    }

    .menu__mobile {
        width: 40px;
        height: 40px;
        display: block;
        position: relative;
    }

    .menu__mobile:before, 
    .menu__mobile:after {
        display: block;
        width: 40px;
        height: 3px;
        background-color: white;
        content: "";
        border-radius: 3px;
        position: absolute;
        transition: all 0.3s ease-in-out;
    }

    .menu__mobile:before {
        top: 10px;
        left: 0px;
    }

    .menu__mobile:after {
        bottom: 10px;
        left: 0px;
    }

    .menu__mobile__close:before {
        transform: rotate(45deg);
        top: 18.5px;
    }

    .menu__mobile__close::after {
        transform: rotate(-45deg);
        bottom: 18.5px;
    }

    .menu__open {
        left: 0px;
    }

    .remove {
        display: none;
    }

    .header__button {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .section__border {
        padding: 30px;
    }

    .form__newsletter {
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
    }

    .form__newsletter input[type="email"] {
        padding: 20px;
    }

    .form__newsletter button {
        width: 100%;
    }
}

@media screen and (min-width: 600px) {
    .menu__mobile {
        display: none;
    }
}

/* Cars */

.cars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cars__card {
    display: block;
    background-color: black;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    
}

.cars__brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.cars__pills {
    display: flex;
    gap: 10px;
}

.cars__pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    padding: 3px 15px 3px 10px;
    border-radius: 30px;
}

.cars__pill img {
    width:60%;
}

.cars__photo {
    width: 100%;
    padding: 20px 0px;
}

.cars__price {
    font-weight: bold;
    font-size: 2rem;
}

@media screen and (max-width: 900px) {
    .cars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .cars {
        grid-template-columns: 1fr;
    }
}

/* Search */

.search {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
}

.search__container {
    padding: 0px 0px 80px;
}

legend {
    display: none;
}

@media screen and (max-width: 1070px) {
    .search {
        flex-wrap: wrap;
    }
} 

/* Car-sheet */

.sheet__photo {
    width: 100%;
}

/* Reservation */

.reservation {
    background-color: black;
    padding: 30px;
    border-radius: 20px;
    position: sticky;
    top: 80px;
}

.reservation__car {
    display: flex;
    gap: 30px;
    align-items: center;
}

.reservation__car > div:first-child {
    width: 30%;
}

.reservation__car img {
    width: 100%;
}

.reservation__form {
    display: flex;
    flex-direction: column;
}

.reservation__form label {
    color: white;
    padding: 10px 3px;
}

input[type="text"],
input[type="email"],
select {
    border: 2px solid white;
    background-color: #f4f4f9;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: 10px;
}

.reservation__form .button {
    margin: 30px 0 0;
}

.reservation__form h2 {
    font-size: 1.8rem;
    margin: 30px 0 10px;
    padding: 0px;
}

.section__aligntop {
    align-items: start;
}

.text__icons {
    width: 20px;
    height: auto;
    margin: 0 10px -2px 0;
}

/* Confirmation de réservation */

.section__full__height {
    min-height: 100vh;
    padding: 0px;
    display: flex;
    align-items: center;
}

.section__full__height .container {
    padding: 100px 20px;
}