@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}

/* Scroll-bar*/
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  width: 5px;
  background-color: black;
  border-radius: 8px;
}

/* Global styles */
html {
  overflow-x: hidden;
}

body {
  background-color: wheat;
}

a {
  text-decoration: none;
  color: black;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

a:visited,
a:active,
a:focus {
  color: black;
}

button {
  color: black;
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8%;
  border-bottom: 1px solid black;
}

/* User Menu Styles */
.user-menu-container {
  position: relative;
}

.user-profile {
  border: 1px solid black;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.user-profile:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-dropdown-menu {
  position: absolute;
  height: 310px;
  top: 100%;
  right: 18px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  display: none;
  z-index: 1000;
}

.user-dropdown-menu.active {
  display: block;
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #333;
  transition: background-color 0.3s;
  font-size: 14px;
}

.user-dropdown-menu a:hover {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* Menu item en développement */
.menu-dev {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: auto;
}

.menu-dev:hover {
  background-color: transparent !important;
}

.dev-badge {
  font-size: 10px;
  background: #ffc107;
  color: #000;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: bold;
  text-transform: uppercase;
}

.dropdown-divider {
  height: 1px;
  background-color: #eee;
  margin: 8px 0;
}

.logout-link {
  color: #dc3545;
}
/* Classes */
.title {
  text-transform: uppercase;
  font-size: 60px;
  letter-spacing: 2px;
  color: #5e493a;
}

.small-title {
  padding: 10px 0;
  border-bottom: 1px solid black;
}

p {
  color: rgb(97, 96, 96);
  margin: 20px 0;
  letter-spacing: 2px;
  font-size: 13px;
  line-height: 25px;
}

/* Navbar styles */
.header_logo {
  height: 100px;
  display: flex;
  align-items: center;
}
.header_logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header_menu {
  display: flex;
}

.header_menu a {
  margin-left: 20px;
  padding-bottom: 3px;
  position: relative;
}

.header_menu a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0%;
  background-color: black;
  transition: 0.5s ease-out;
}

.header_menu a:hover:after {
  width: 100%;
}

.header_buttons .btn-login {
  position: relative;
  padding-bottom: 3px;
}

.header_buttons .btn-login:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0%;
  background-color: black;
  transition: 0.5s ease-out;
}

.header_buttons .btn-login:hover:after {
  width: 100%;
}

.header_buttons a {
  margin-left: 20px;
  margin-right: 20px;
}

.header_buttons a:last-child {
  border: 1px solid black;
  padding: 10px 30px;
  transition: 0.5s;
}

.header_buttons a:last-child:hover {
  background-color: black;
  color: white;
}

/* Home styles */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  height: calc(100vh - 80px);
  width: 100%;
  position: relative;
}

.home_left {
  width: 35%;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.home_right {
  width: 65%;
  height: 500px;
  margin-left: 35px;
  position: relative;
  overflow: auto;
}

.home_right img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Contenus de home_right */
.home-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.home-content.active {
  opacity: 1;
  visibility: visible;
}

/* Panneau de confirmation et réservation */
.home_about-me,
.home_book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  gap: 15px;
}

.home_button {
  display: flex;
  gap: 20px;
}

.home_button button,
.home_about-me button,
.home_book button {
  flex: 1;
  border: 1px solid black;
  cursor: pointer;
  padding: 8px 20px;
  background-color: transparent;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  color: black;
}

.home_button button i,
.home_about-me button i,
.home_book button i {
  color: inherit;
}

.home_button button:hover,
.home_about-me button:hover,
.home_book button:hover {
  background-color: black;
  color: white;
  transition: 0.5s ease-out;
}

.home_button button a,
.home_about-me button a,
.home_book button a {
  color: inherit;
  text-decoration: none;
}

/* Panneau de confirmation et réservation */
.home_about-me,
.home_book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  gap: 10px;
  overflow-y: auto;
}

/* Styles pour les images et titres des panneaux */
.home_about-me img,
.home_book img {
  height: 250px;
  width: 250px;
  border-radius: 8px;
  object-fit: cover;
}

.home_about-me h1,
.home_book h1 {
  font-size: 26px;
  color: black;
  margin: 0;
}

.home_about-me p,
.home_book p {
  margin: 5px 0;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}

/* Services styles */
.services {
  padding: 20px 8%;
}

.services h1 {
  text-align: right;
}

.services p {
  text-align: right;
}

.services_product {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  height: 80vh;
}

.div1 {
  grid-area: 1 / 1 / 6 / 3;
}

.div2 {
  grid-area: 2 / 3 / 7 / 5;
}

.div3 {
  grid-area: 1 / 5 / 7 / 6;
}

.div4 {
  grid-area: 1 / 3 / 2 / 5;
}

.div5 {
  grid-area: 6 / 1 / 7 / 3;
}

.div6 {
  grid-area: 1 / 6 / 6 / 8;
}

.div7 {
  grid-area: 6 / 6 / 7 / 8;
}

.services_product div img,
.services_product div video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s ease-out;
}

.services_product div img:hover,
.services_product div video:hover {
  filter: grayscale(0%);
}

.services_product span {
  color: #5e493a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
}

.div5,
.div4,
.div7,
.div3 {
  border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.div3 {
  background-color: black;
}

.div3 span {
  transform: rotate(-90deg);
  color: white;
  font-size: 60px;
}

/* Gallery styles */
.gallery-section {
  padding: 20px 8%;
  width: 100%;
}

.gallery-content {
  width: 100%;
  border: 1px solid black;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.gallery-section h1 {
  text-align: left;
  margin: 35px 0;
}

.gallery-section p {
  text-align: left;
}

.gallery-section img {
  width: 100%;
  transition: 0.5s;
  border-radius: 8px;
  filter: grayscale(100%);
}

.gallery-section img:hover {
  filter: grayscale(0%);
}

.gallery-content p {
  text-align: center;
  border: 1px solid black;
  border-radius: 8px;
  padding: 20px;
  margin: 0;
  margin-top: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Testimonials styles */
.testimonials-section {
  padding: 20px 8%;
}
.testimonials-section h1 {
  text-align: right;
  margin-top: 35px;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 35px;
  padding: 20px;
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.testimonial-content > div:first-child {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.testimonial-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  margin: 0 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.testimonial-separator {
  height: 1px;
  background-color: black;
  width: 80%;
  margin: 10px 0;
}

.opinion {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.opinion h2 {
  margin-bottom: 15px;
  text-transform: uppercase;
}

.opinion form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.opinion textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid black;
  border-radius: 4px;
  resize: vertical;
}

.opinion button {
  text-transform: uppercase;
  align-self: center;
  padding: 10px 30px;
  background: transparent;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.opinion button:hover {
  background: black;
  color: white;
}

/* Footer styles */
footer {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: auto auto;
  grid-column-gap: 35px;
  grid-row-gap: 20px;
  padding: 35px 8% 20px;
  margin-top: 35px;
  text-transform: uppercase;
  border-top: 1px solid black;
}

.col1 {
  grid-area: 1 / 1 / 2 / 4;
}

.col2 {
  grid-area: 1 / 4 / 2 / 6;
}

.col3 {
  grid-area: 1 / 6 / 2 / 8;
}

.col4 {
  grid-area: 1 / 8 / 2 / 10;
  position: relative;
  left: 80px;
}

.footer-bottom {
  grid-area: 2 / 1 / 3 / 10;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  color: #666;
}

.col2,
.col3 {
  display: flex;
  flex-direction: column;
}
.col2 a,
.col3 a {
  position: relative;
  margin-bottom: 8px;
  padding-bottom: 3px;
}

.col3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0%;
  background-color: black;
  transition: 0.5s ease-out;
}

.col3 a:hover::after {
  width: 50%;
}

.col4 button {
  border: 1px solid black;
  height: 150px;
  width: 150px;
  background-color: transparent;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.col4 button:hover {
  background-color: black;
  color: white;
}

.footer-newsletter {
  border: 1px solid black;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 10px;
}

.newsletter-content {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.footer-newsletter input {
  flex: 1;
  background-color: transparent;
  border: 0;
  outline: 0;
}

.footer-newsletter button {
  background-color: transparent;
  padding: 0 15px;
  border: none;
  text-transform: uppercase;
  transition: 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.footer-newsletter button:hover {
  font-weight: bold;
}

.icons {
  display: flex;
}

.icons i {
  border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  margin-right: 20px;
  font-size: 14px;
  border-radius: 50%;
  transition: 0.5s ease-out;
}
.icons i:hover {
  background-color: black;
  color: white;
}

/* Styles pour le système d'étoiles */
.rating-section {
  margin-bottom: 15px;
}

.rating-section h3 {
  margin-bottom: 10px;
  color: #5e493a;
  font-size: 16px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 30px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #ffc107;
}

.star-display {
  color: #ffc107;
  margin-left: 5px;
}

/* Styles pour la grid des témoignages */
.testimonial-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  margin: 30px 0;
  width: 100%;
  padding: 10px 0;
}

/* Quand on a plus de 4 avis, passer en grid */
.testimonial-container.grid-mode {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  flex-wrap: wrap !important;
}

.testimonial-item {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: 4px solid #5e493a;
  flex: 1;
  min-width: 0;
  display: block !important;
  float: none !important;
}

.testimonial-container.grid-mode .testimonial-item {
  flex: none;
  min-width: 300px;
}

.testimonial-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(94, 73, 58, 0.2);
  border-left-width: 6px;
}

.testimonial-item p {
  font-style: italic;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 16px;
}

.testimonial-item .star-display {
  margin: 10px 0;
  font-size: 18px;
}

.testimonial-item span {
  color: #5e493a;
  font-weight: bold;
  font-size: 14px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .testimonial-container {
    gap: 10px;
    padding: 10px;
  }

  .testimonial-item {
    padding: 15px;
    font-size: 14px;
  }

  .testimonial-item p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .testimonial-container.grid-mode {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .testimonial-container {
    gap: 8px;
  }

  .testimonial-item {
    padding: 12px;
  }

  .testimonial-item p {
    font-size: 13px;
  }

  .testimonial-item span {
    font-size: 12px;
  }
}

/* Styles pour le bouton Voir plus */
.voir-plus-container {
  text-align: center;
  margin: 20px 0;
}

.voir-plus-btn {
  background: #5e493a;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.voir-plus-btn:hover {
  background: #4a3a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.voir-plus-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Animation de chargement pour le bouton Voir plus */
.voir-plus-btn.loading {
  position: relative;
  cursor: not-allowed;
  opacity: 0.8;
  background: #6c5a47;
  pointer-events: none;
}

.voir-plus-btn.loading:hover {
  background: #6c5a47;
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.voir-plus-btn .fas.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Animation de pulsation pendant le chargement */
.voir-plus-btn.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  animation: pulse 1.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.loading {
  opacity: 0.7;
}
