:root {
  --color: #d59d22;
  --background-color: #111;
  --w-column: 200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
}

.skip-link {
  background-color: #007198;
  border: solid 3px white;
  color: white;
  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;
}

a {
  text-decoration: none;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 9px;
}

body {
  background-color: #111;
}
section {
  margin-top: 50px;
}

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;
}

#prestigeLogo {
  text-decoration: none;
}

.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;
}
/* Home acceuil CSS */

#home {
  background: linear-gradient(rgba(0, 0, 0, 0.1), #333),
    url("images/yachtBackgroundImage.jpg");
  background-position: center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

#home h1 {
  font-size: 6rem;
  margin-bottom: 10px;
  color: #d59d22;
}

#home h2 {
  font-size: 6.8rem;
  color: #fff;
  margin-bottom: 10px;
  text-transform: capitalize;
  -webkit-text-stroke: #fff 0.02px;
}
#home p {
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

/*A propos CSS*/
#a-propos {
  margin-top: 100px;
  margin-bottom: 170px;
  padding: 0 10%;
  width: 100%;
}

#lireHover {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: center;
  border-radius: 5px;
  font-size: 1.2rem;
  width: 100px;
  text-align: center;
  height: 44px;
}

#lireHover:hover {
  background-color: #d59d22;
  color: black;
  transition: 0.6s;
}

.title {
  text-transform: capitalize;
  margin: 70px 0;
  font-weight: bold;
  color: #d59d22;
  position: relative;
  margin-left: 15px;
  font-size: 1.95rem;
}
.title::after {
  position: absolute;
  left: -15px;
  content: "";
  height: 100%;
  background-color: #fff;
  width: 5px;
}
.img-desc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.img-desc .left {
  position: relative;
  margin-left: 10px;
  height: 250px;
  width: 40%;
}
.img-desc .right {
  width: 57%;
}

.img-desc .left .imgAbout {
  width: 100%;
  height: 100%;
  position: relative;
  box-shadow: 0 0 10px #d59d22;
}
.img-desc .left::after {
  position: absolute;
  bottom: -10px;
  right: 10px;
  content: "";
  height: 100%;
  background-color: #d59d22;
  width: 100%;
  z-index: -1;
}
.img-desc .right h4 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.img-desc .right p {
  color: #999;
  font-size: 1.2rem;
  margin-bottom: 36px;
}
.img-desc .right a {
  border: 1px solid #d59d22;
  color: #d59d22;
  font-size: 0.9rem;
  padding: 8px 25px;
  font-weight: bold;
}

/* CSS POUR LE CAROUSEL */
/* CSS POUR LE CAROUSEL */

.carousel {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.carousel .list {
  width: min(1200px, 90vw);
  margin: auto;
  height: 100%;
  position: relative;
}

.carousel .list .item {
  position: absolute;
  inset: 0;
}

.carousel .list .item h4 {
  color: #d59d22;
  text-shadow: 2px 2px 4px #000;
}

.carousel .list .item figure {
  position: absolute;
  width: 70%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel .list .item figure img {
  width: 100%;
  transform: rotate(-30deg);
}

.carousel .list .item figure::before {
  content: "";
  position: absolute;
  background-color: #0b0b1b;
  width: 100%;
  height: 100px;
  top: 150%;
  left: 50px;
  border-radius: 50%;
  filter: blur(50px);
}

.carousel .list .item h4 {
  font-family: "League Gothic", sans-serif;
  font-size: 11em;
  line-height: 1em;
}

.carousel .list .item .description {
  align-items: center;
  color: #fff8;
  max-width: 400px;
  font-size: small;
  text-align: right;
}

.carousel .list .item .description i {
  height: 50px;
  color: #ffea7c;
  font-size: 2em;
  border: 1px solid #d59d22;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel .list .more {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 20px;
  grid-template-rows: 35px;
}

.carousel .list .more a {
  border-radius: 30px;
  font-family: "League Gothic", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: transparent;
  border: none;
  position: relative;
}

.carousel .list .more a:nth-child(1) {
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  height: 44px;
}

.carousel .list .more a:nth-child(2) {
  border: 2px solid transparent;
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  height: 44px;
}

.carousel .list .more a:nth-child(2) i {
  margin-right: 10px;
}

.carousel .list::after {
  content: "";
  position: absolute;
  right: var(--w-column);
  width: var(--w-column);
  height: 100%;
  border-left: 1px solid #324073;
  border-right: 1px solid #324073;
  pointer-events: none;
}

.carousel .list::before {
  content: "";
  position: absolute;
  z-index: 10;
  height: var(--w-column);
  width: 100%;
  top: 52%;
  border-top: 1px solid #324073;
  border-bottom: 1px solid #324073;
  pointer-events: none;
}

.carousel .list .more a {
  display: inline-block;
  border-radius: 30px;
  font-family: "League Gothic", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: transparent;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.carousel .list .more a:hover {
  color: #fff;
  text-decoration: underline;
}

.carousel .arrows {
  width: min(1200px, 90vw);
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -25px);
  pointer-events: none;
  z-index: 100;
}

.carousel .arrows button {
  top: 60%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #659cdf55;
  background-color: #232442;
  color: #fff7;
  font-size: large;
  cursor: pointer;
  pointer-events: auto;
  transition: 0.5s;
}

.carousel .arrows button:hover {
  border: 1px solid #659cdf;
  color: #fff;
}

.carousel .indicators {
  position: absolute;
  top: 52%;
  height: var(--w-column);
  width: min(1200px, 90vw);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

body .carousel {
  --calculation: 1; /* 1 or -1 */
}

body .carousel .list .item {
  transform: translateX(calc(100vw * var(--calculation)));
  transition: 0.5s;
  opacity: 0;
}

body .carousel .list .item figure img {
  transform: rotate(0deg);
  transition: transform 1s;
  transition-delay: 0.3s;
}

body .carousel .list .item .content .category,
body .carousel .list .item .content h4,
body .carousel .list .item .content .description,
body .carousel .list .item .content .more {
  transform: translateX(calc(200px * var(--calculation)));
  transition: 0.7s;
  opacity: 0;
  transition-delay: 0.3s;
  font-size: 11rem;
  text-transform: uppercase;
}

body .carousel .list .item .content h4 {
  transition-delay: 0.5s;
  color: #d59d22;
}

body .carousel .list .item .content .description {
  transition-delay: 0.7s;
}

body .carousel .list .item .content .more {
  transition-delay: 0.9s;
}

body .carousel .list .item.active {
  opacity: 1;
  transform: translateX(0);
}

body .carousel .list .item.active figure img {
  transform: rotate(-20deg);
}

body .carousel .list .item.active .content .category,
body .carousel .list .item.active .content h4,
body .carousel .list .item.active .content .description,
body .carousel .list .item.active .content .more {
  transform: translateX(0px);
  opacity: 1;
}

body .carousel .list .item.activeOld {
  transform: translateX(calc(-100vw * var(--calculation)));
}

/*Destination CSS*/

.boxDecouvrir {
  width: 180px;
  color: rgb(255, 255, 255);
  font-size: 0.8rem;
  padding: 12px 0;
  background-color: white;
  border: 0;
  border-radius: 20px;
  margin-top: 30px;
}

#popular-destination {
  padding: 0 10%;
  margin-bottom: 50px;
}

#popular-destination .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

#popular-destination .content .box {
  overflow: hidden;
  position: relative;
  height: 250px;
  transition: 1s;
}

#popular-destination .content .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.box .content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #d59d22;
  text-align: center;
  align-items: center;
  transform: translateX(100%);
  transition: 1s;
}

.box .content h4 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
}

.box .content p {
  color: white;
  padding: 2px;
  font-size: 1.1rem;
}

.box .content p:nth-child(3) {
  margin-bottom: 25px;
}

.box .content a {
  margin-top: 60px;
  padding: 15px 60px;
  color: #000000;
  font-weight: bold;
  font-size: 1.2rem;
  height: 44px;
  display: ruby; /* C'est le seul display qui ne casse pas la disposition de mes textes dans ma box et qui me permet de modifier la height */
}
.box:hover {
  box-shadow: 0 0 10px #d59d22;
}
.box:hover .content {
  cursor: pointer;
  transform: translateX(0);
}

/* CSS DERNIÈRS YACHTS  */

.derniers-bateaux {
  background-color: #111;
  color: #fff;
  margin: 150px 50px;
}

.derniers-bateaux h5 {
  font-size: 3.3rem;
  margin-bottom: 30px;
  text-align: center;
  color: #d59d22;
}

.yacht-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.yacht-item {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  width: 400px;
  margin: 20px;
  background-color: #1e1e1e;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.yacht-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.yacht-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.3s ease-in-out;
}

.yacht-item:hover img {
  transform: scale(1.05);
}

.yacht-item .yacht-title {
  margin: 20px;
  font-size: 2rem;
  text-align: center;
  text-transform: uppercase;
  color: #d59d22;
}

.yacht-item .yacht-details {
  padding: 0 20px;
}

.yacht-item p {
  margin: 12px 0 30px 0;
  font-size: 1.55rem;
  color: #ccc;
}

.yacht-item .voir-plus {
  display: block;
  width: 100%;
  background-color: #d59d22;
  color: black;
  padding: 15px 0;
  text-align: center;
  text-decoration: none;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  transition: background-color 0.5s;
  font-size: 1.35rem;
}

.yacht-item .voir-plus:hover {
  background-color: #d59d22; 
}


/* CSS FOOTER */

footer {
  background-color: #222;
  color: white;
  padding: 20px 0 60px 0;
}

.container {
  display: flex;
  justify-content: space-around;
}

.footer-section {
  flex: 1;
  text-align: center;
}

.footer-section p {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  font-size: 1.15rem;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.blue {
  color: #d59d22 !important;
}