@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;500&display=swap');

:root {
    --main-green: #3bb96d;
    --main-blue: #0db7b3;
}

html {
    overflow-x: hidden;
}

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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.home {
    position: relative;
    overflow: hidden;
    height: 100dvh;
}

/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.329);
}

.navbar__logo {
    width: 50px;
}

.navbar__links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.navbar__item--a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: black;
}

.navbar__item--a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--main-green);
    transition: all .3s;
}

.navbar__item--a:hover::after {
    width: 100%;
}

.navbar__links--main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.navbar__links--main a {
    text-decoration: none;
    color: black;
}

.button {
    display: inline-block;
    border: solid var(--main-green) 2px;
    color: var(--main-green);
    color: black;
    border-radius: 5px;
    width: 80px;
    text-align: center;
    padding: 5px;
}

li:nth-of-type(2) a.button {
    background-color: var(--main-green);
    color: white;
}

.hamburger, .title, .logotitle {
    display: none;
}

.logotitle {
    width: 50px;
}
/* HOME */

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90dvh;
    gap: 50px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.container__info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}

.container__info--title {
    font-size: 40px;
    font-family: 'Poppins', sans-serif;
}

.container__info--description {
    font-family: 'poppins', sans-serif;
}

.container__info__stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    width: 100%;
}

.container__info__stats--info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.lotus {
    position: absolute;
    right: -250px;
    bottom: -250px;
    width: 800px;
    transform: rotate(-40deg);
    z-index: -1;
}

.lotus:nth-of-type(2) {
    left: -250px;
    transform: rotate(40deg);
    width: 600px;
}

/* ERROR */

.container--error {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 90dvh;
    width: 100%;
    max-width: 1000px;
}

.container__error {
    font-size: 50px;
    font-family: 'Poppins', sans-serif;
    color: var(--main-green);
}

.container__error--error {
    font-size: 50px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

/* REGISTER / LOGIN */

.form {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.form__container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.form__split {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form__title {
    font-size: 30px;
    font-weight: bold;
    border: solid 2px var(--main-green);
    padding: 10px 50px;
    border-radius: 5px;
}

.form__group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form__group--password {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 15px;
}

.form__input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: solid 1px var(--main-green);
}

.form__button {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: var(--main-green);
    color: black;
    font-size: 15px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

/* LOGIN */

.form__split--login {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.form--login {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    height: 80dvh;
}

/* VEHICULES */

.container__vehicule {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 1500px;
}

.container__vehicule__wrap,
.container__vehicule--form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.container__vehicule--form {
    flex-direction: column;
}

.container__vehicule__choice {
    width: 350px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    background-color: var(--main-green);
    color: white;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.container__vehicule__choice p,
.container__vehicule__choice--resa p {
    color: black;
    text-decoration: underline;
}

.container__vehicule__choice img,
.container__vehicule__choice--resa img {
    width: 350px;
    border-radius: 0 0 20px 20px;
}

.container__vehicule__choice img:hover,
.container__vehicule__choice--resa img:hover {
    border-radius: 0 0 80px 80px;
    transition: .4s;
}

.container__vehicule__choice img:not(:hover),
.container__vehicule__choice--resa img:not(:hover) {
    border-radius: 0 0 20px 20px;
    transition: .4s;
}

.container__vehicule__choice:hover{
    transform: scale(1.1);
    transition: .4s;
    background-color: var(--main-blue);
}

.container__vehicule__choice:not(:hover),
.container__vehicule__choice--resa:not(:hover) {
    transform: scale(1);
    transition: .4s;
}

/* Cookies Banner */

#cookie-banner button {
    background-color: var(--main-green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-left: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Arial', sans-serif;
}

#cookie-banner p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

#cookie-banner a {
    color: var(--main-blue);
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: #2980b9;
}

/* Agences */

.container__map {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    height: 85dvh;
    gap: 20px;
}

.container__map--extend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 100%;
}

.container__map__title {
    color: var(--main-green);
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 20px;
}

.container__map__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

.container__map__list--box {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.container__map__list--box p {
    color: var(--main-blue);
}

.container__map__list--item {
    list-style: none;
    font-size: 30px;
    text-decoration: underline var(--main-blue);
}

/* Dashboard */

.dashboard__container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    gap: 50px;
}

.dashboard__container__info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 50px;
    padding: 0 50px 0 50px;
}

.dashboard__label{
    display: inline-block;
    width: 150px;
}

.dashboard__input {
    background: none;
    border: solid 1px var(--main-green);
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    margin: 5px 0 5px 0;
    font-weight: bold;
}

.dashboard__reservation__title,
.dashboard__container__title {
    color: var(--main-blue);
}

.dashboard__reservation__table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.dashboard__reservation__table thead tr {
    background-color: var(--main-blue);
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.dashboard__reservation__table th, 
.dashboard__reservation__table td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}

.dashboard__reservation__table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.dashboard__reservation__table tbody tr:hover {
    background-color: #d1e7ff;
}

.dashboard__reservation__table tbody td {
    color: #333333;
}



/* Réservation */

.container__reservation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 50px;
}

.container__vehicule__choice--resa {
    width: 350px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    background-color: var(--main-green);
    color: white;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.reservation__form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}


.container__vehicule__choice--resa:hover {
    transform: scale(1.05);
    transition: .4s;
    background-color: var(--main-blue);
}

.container__vehicule__wrap input[type="radio"] {
    display: none;
}

.container__vehicule__wrap input[type="radio"]:checked + .container__vehicule__choice--resa {
    background-color: var(--main-blue);
    transition: .4s;
}

table {
    width: 80%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
    color: black;
}

td {
    padding: 6px 8px;
    border: 1px solid #ddd;

}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.participant {
    display: none;
    flex-direction: column;
    gap: 50px;
}

.participant__add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    margin: 20px;
}

.participant__info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

hr {
    width: 100%;
    height: 2px;
}

.demandeSpeciale {
    display: none;
}

.payment__method {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.payment__method__stuff {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    font-size: 25px;
}

.payment__method__stuff input[type="radio"] {
    display: none;
}

.payment__method__stuff i {
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.2s, color 0.2s;
}

.payment__method__stuff input[type="radio"]:checked + i {
    color: #007bff;
    transform: scale(1.2);
}



/* Admin Panel */

.sidebar {
    height: 100%;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    padding-top: 20px;
}

.sidebar a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 20px;
    color: var(--main-green);
    display: block;
}

.sidebar a {
    color: var(--main-green);
    transition: color .4s;
    font-weight: bold;
}

.sidebar a:hover {
    color: var(--main-blue);
    transition: color .4s;
}

.main {
    margin-left: 160px;
    padding: 20px;
    box-sizing: border-box;
    width: calc(100% - 200px);
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.table__container {
    max-height: calc(100vh - 200px);
    width: calc(100% - 200px);
}

.table__admin {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.table__admin th,
.table__admin td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    word-wrap: break-word;
    white-space: normal;
    max-width: 300px;
}

.table__admin th {
    background-color: var(--main-green);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.table__admin tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table__admin tr:hover {
    background-color: #f1f1f1;
}

.table__admin td {
    color: #333;
}

.bento__box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bento {
    background-color: rgba(0, 0, 0, 0.404);
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50px;
    text-decoration: none;
}

.bento {
    transform: scale(1);
    transition: transform 0.4s;
}

.bento i {
    color: var(--main-green);
    transform: scale(1);
    transition: color 0.4s, transform 0.4s;
}

.bento:hover {
    transform: scale(1.05);
}

.bento:hover i {
    color: var(--main-blue);
    transform: scale(1.1) translateY(-10px);
}


.bento i {
    font-size: 100px;
    color: var(--main-green);
}

.bento h2 {
    color: white;
    font-size: 20px;
}

.update {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    width: 100%;
}

.update h1 {
    background-color: var(--main-green);
    width: 100%;
    text-align : center;
}
.update__form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    border: solid 2px var(--main-green);
    padding: 20px;
    gap: 20px;
}

.form__element {
    width: 200px;
    text-align: start;
}