:root {
  --color: #d59d22;
  --background-color: #111;
  --color: #fff;
  --w-column: 200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
}

a {
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 9px;
}

body {
  background-color: #111;
}

nav {
  background-color: #222;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 0 5%;
}

nav .logo a {
  font-size: 3rem;
  color: #d59d22;
}

nav .logo a span {
  color: #fff;
}

.sous-menu {
  display: none;
  margin-bottom: 30px;
  position: absolute;
  background-color: #111;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  width: 120%;
  left: 50%;
  transform: translateX(-50%);
}

.sous-menu li {
  margin: 0;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  list-style-type: none;
}

.sous-menu li:hover a {
  background-color: #d59d22;
}

.sous-menu li a:hover {
  background-color: #d59d22;
}

.navbar li {
  position: relative;
}

nav ul li a {
  padding: 16px;
  display: block;
}

.navbar li:hover .sous-menu {
  display: block;
}

.menu {
  margin-right: 0;
  display: flex;
  align-items: center;
}
.menu > li {
  position: relative;
  list-style-type: none;
  padding: 0 15px;
}

.menu li a {
  color: #fff;
  font-size: 1.7rem;
  text-decoration: none;
}

.menuNav:hover + .sous-menu,
.sous-menu:hover {
  display: block;
}

/* CSS POUR LES DISPLAY DES BATEAUX A LOUER */

.containers {
  width: 90%;
  margin: 70px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
}

section {
  flex: 1; 
  margin-top: 100px;
}

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

#s1 {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px;
}

.sm {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 10px;
  margin-top: 20px;
  flex: 1 1 30%; 
}

.xl > img {
  width: 680px;
  height: 450px;
}

.sm > img {
  height: 200px;
  width: 300px;
}


#s2 {
  width: 100%;
}

#s2 > div:nth-child(1) {
  height: 160px;
}

#s2 > div:nth-child(1) > h1 {
  font-size: 5rem;
  font-weight: 700;
  color: #d59d22;
}

#s2 > div:nth-child(1) > h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: white;
}

#s2 > div:nth-child(2) {
  height: 330px;
}

#s2 > div:nth-child(3) {
  height: 500px;
}

button {
  background-color: #d59d22;
  color: black;
  padding: 10px 180px;
  margin-top: 16px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: bold;
  transition: 0.5s;
  display: block;
  margin-right: auto;
  margin-left: auto;
  height: 44px;
}

/* Style pour centrer le texte du bouton */
button span {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

button:hover {
  background-color: #b88310;
}

.descriptif-section {
  padding-top: 15px;
}

.descriptif {
  font-size: 2.25rem;
  padding-top: 10px;
  color: #d59d22;
}

.bold {
  font-size: 2rem;
  border-bottom: 1px white solid;
  padding-bottom: 10px;
  font-weight: initial;
  color: white;
}

h3,
h6 {
  color: white;
}

#descriptionYacht {
  color: white;
  font-size: 1.8rem;
  margin-top: 10px;
  font-weight: initial;
  font-family: "Raleway", sans-serif;
  line-height: 1.35;
}

/* CSS POUR LE CATALOGUE PHP */

#catalogue {
  padding: 50px 0;
}

#catalogue h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 30px;
  color: #d59d22;
  margin-top: 45px;
}

.bateaux {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bateau {
  height: 650px;
  width: 30%;
  margin: 1%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.bateau:hover {
  transform: translateY(-10px);
}

.bateau img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.details {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  transition: height 0.3s ease-in-out;
  overflow: hidden;
}

.bateau:hover .details {
  height: 200px;
}

.details h2 {
  margin-bottom: 10px;
  font-size: 1.9rem;
}

.details p {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.blue {
  color: #d59d22 !important;
}

.btn-reserver,
.btn-voir-plus {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48%;
  padding: 10px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.6rem;
  /* margin-top: 10px; */
  transition: 0.5s;
  height: 44px;
}

.btn-reserver:hover,
.btn-voir-plus:hover {
  background-color: #0d4076;
}

#lien-reserver {
  display: flex;
  padding: 10px 20px;
  background-color: #d59d22;
  color: black;
  justify-content: center;
  text-decoration: none;
  align-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 25px;
  width: 350px;
  transition: background-color 0.5s;
  height: 44px;
}

#lien-reserver:hover {
  background-color: #d49714;
}

.prix-tri {
  font-size: 1.7rem;
  margin-right: 10px;
}

.prix-tri:nth-child(1) {
  color: #d59d22;
  text-decoration: none;
  margin-left: 55px;
}

.prix-tri:nth-child(2) {
  color: #d59d22;
  text-decoration: none;
  margin-left: 10px;
}

.prix-tri:hover {
  text-decoration: underline;
}

/* CSS POUR LE FORMULAIRE */

#formulaire {
  background-color: #111;
  padding: 50px;
  border-radius: 10px;
}

#form-title {
  color: #d59d22;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 18px;
}

#no-bg {
  background-color: #222;
}

label {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 5px;
  display: block;
}

input[type="text"],
input[type="date"],
input[type="email"],
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #555;
  color: #fff;
}

input[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: #d59d22;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background-color: #d59d22;
}

.formulaire-required {
  color: #d59d22;
}

#prix-total-input {
  margin-top: 10px;
  text-align: center;
}

#prix-total {
  color: #d59d22;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

#total-price {
  color: #fff;
}

.email-invalide {
  background-color: red;
}

/* IA UTILISÉ POUR AJOUTER UN ICONE DE MENU DÉROULANT */
select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M7.41 7.84L12 12.42l4.58-4.58c.78-.78 2.05-.78 2.83 0.78.78.78 2.05 0 2.83l-6.58 6.59c-.78.78-2.05.78-2.83 0L4.58 10.67c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  background-color: #555;
  color: #fff;
}
