/* Reset CSS de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "TitreVert";
  src: url("../assets/fonts/rexton-black.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Icons */
.icon {
  width: 20px; /* Définis a ... pixels */
  height: auto;
}

main {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Styles généraux */
body {
  position: relative;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #232323;
  background-image: url(/assets/background/image0.jpg);
}

.homepage {
  position: relative;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #232323;
  overflow: hidden;
}

/* Bandeau d'annonces */
.announcement-bar {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  font-size: 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  overflow: hidden;
  white-space: nowrap;
}

/* Animation de défilement */
.announcement-bar span {
  display: inline-block;
  padding-left: 70%;
  animation: marquee 28s linear infinite;
}

/* Définition de l'animation */
@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Navigation */
header {
  background-color: #161b24;
  border-bottom: 1px solid #229a1a;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
  margin-top: 40px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  color: #229a1a;
}

/* Menu hamburger pour mobile */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Media query pour le menu mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav ul {
    flex-direction: column;
    position: fixed;
    top: 40px;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #161b24;
    padding-top: 60px;
    transition: right 0.3s ease;
    align-items: center;
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .social-icons li {
    margin: 0 10px;
  }

  /* Animation du hamburger */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  background-color: #229a1a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}

.hotelbase-text .btn {
  background-color: #229a1a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
}

.hotel-2text .btn {
  background-color: #229a1a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
}

.hero .btn:hover {
  background-color: #fff;
  color: #229a1a;
}

.hotelbase-text .btn:hover {
  background-color: #fff;
  color: #229a1a;
}

.hotel-2text .btn:hover {
  background-color: #fff;
  color: #229a1a;
}

/* Produits phares */
.featured-projects {
  padding: 2rem;
  text-align: center;
}

.featured-projects h2 {
  margin-bottom: 2rem;
}

.product-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.product-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-item img {
  width: 100%;
  height: auto;
}

.product-item h3 {
  margin: 1rem 0;
}

.product-item p {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.product-item .btn {
  display: block;
  background-color: #3393d6;
  color: #fff;
  padding: 0.75rem;
  text-decoration: none;
  text-align: center;
  border-radius: 0 0 5px 5px;
}

.product-item .btn:hover {
  background-color: #229a1a;
}

/*Base*/
.hero {
  background-image: url("../assets/images/background.gif");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: 0px 0px 10px black;
  color: white;
  padding: 20px;
}

/*About*/
/* Titre principal */
.hotel-title {
  text-align: center;
  font-size: 3rem;
  color: #229a1a;
  font-family: "Playfair Display", arial, serif;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

/* Titre chevauchant */
.overlapping-title {
  font-family: "TitreVert", arial, sans-serif;
  position: relative;
  top: 0px; /* Changé de 30px à -30px pour placer le titre au-dessus */
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: bold;
  z-index: 10;
  white-space: nowrap;
  color: #229a1a;
  text-align: center;
  margin-bottom: 10px; /* Ajout d'une marge en bas pour créer de l'espace */
}

.middle-title {
  font-family: "TitreVert", arial, sans-serif;
  position: relative;
  top: 21px; /* Changé de 30px à -30px pour placer le titre au-dessus */
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: bold;
  z-index: 10;
  white-space: nowrap;
  color: #229a1a;
  text-align: center;
  margin-bottom: 10px; /* Ajout d'une marge en bas pour créer de l'espace */
}

.hotel-section {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0; /* Ajout de padding en haut */
}

/* Conteneur principal */
.hotel-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}

.projects-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
}

/* Bloc de texte */
.hotelbase-text {
  width: 50%;
  background-color: #bebebe;
  box-sizing: border-box;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hotel-text {
  width: 50%;
  background-color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hotel-2text {
  width: 50%;
  background-color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.text1 {
  background-color: #5ff3f8;
  padding: 40px;
}

.text2 {
  background-color: #fca1d3;
  padding: 40px;
}

/* Image sur la droite */
.hotel-image {
  width: 50%;
  display: flex;
}

.hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hotel-content {
    flex-direction: column;
  }

  .hotel-text,
  .hotel-2text,
  .hotel-image {
    width: 100%;
  }

  .hotel-image {
    height: auto;
    max-height: none;
  }

  .hotel-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
  }

  .overlapping-title {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    font-size: 2.5rem;
  }

  .hotel-section {
    padding-top: 40px;
  }

  /* Nouvelle règle pour la page projects.html */
  .projects-content {
    flex-direction: column;
  }

  .projects-content .hotel-text {
    display: flex;
    flex-direction: column;
  }

  .projects-content .hotel-image {
    order: 1;
  }

  .projects-content .text1 {
    order: 2;
  }

  .projects-content .text2 {
    order: 3;
  }

  .overlapping-title{
    font-size: 1rem;
  }

  .middle-title{
    font-size: 1rem;
  }

  footer {
    display: none;
  }
}

/* Pied de page */
footer {
  background-color: #161b24;
  color: #fff;
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 2;
}

footer a {
  color: white; /* Couleur du texte du lien */
  text-decoration: none; /* Enlève le soulignement */
}

footer a:hover {
  color: #229a1a; /* Couleur verte au survol */
  text-decoration: underline; /* Ajoute un soulignement au survol (optionnel) */
}

/* Contact Section Styles */
.contact-section {
  background-color: #232323;
  color: white;
  padding: 60px 20px;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  max-width: 1600px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 160px;
  position: relative;
  align-items: start;
}

.contact-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  font-size: 1.2rem;
}

.contact-column h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.contact-column ul {
  list-style: none;
  padding: 0;
}

.contact-column ul li {
  margin-bottom: 20px;
}

.contact-column a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-column a:hover {
  color: #229a1a;
}

/* Ajout des séparateurs */
.contact-column:nth-child(-n + 2)::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.contact-bell-icon {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: auto;
}

@media (max-width: 1200px) {
  .contact-container {
    gap: 80px;
  }

  .contact-column:nth-child(-n + 2)::after {
    right: -40px;
  }
}

@media (min-width: 768px) {
  #momo2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-bell-icon {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    width: 100px;
  }

  .contact-column:nth-child(-n + 2)::after {
    display: none;
  }
  .contact-column {
    font-size: 1rem;
  }

  .contact-column h2 {
    font-size: 1.5rem;
  }

  #momo {
    display: none;
  }

  .hotelbase-text {
    width: 90vw;
    display: flex;
    justify-content: center;
  }
}

/* Styles du popup */
.popup {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  position: relative;
}

/* Bouton de fermeture */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/* Bouton mail */
.mail-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.mail-btn:hover {
  background: #229a1a;
}

#momo {
  cursor: pointer;
}

#momo2 {
  cursor: pointer;
}

/* Projects page */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-card h3 {
  margin: 10px 0;
  font-size: 1.5rem;
}

.project-card p {
  color: #555;
}

.project-links .btn {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 10px;
  background: #229a1a;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.project-links .btn:hover {
  background: #232323;
  color: #229a1a;
}

.project-links a {
  color: white; /* Couleur du texte du lien */
  text-decoration: none; /* Enlève le soulignement */
}

.project-links a:hover {
  color: #229a1a; /* Couleur verte au survol */
  text-decoration: underline; /* Ajoute un soulignement au survol (optionnel) */
}

#language-switcher {
  position: fixed; /* reste visible même au scroll */
  top: 53px;
  left: 10px;
  z-index: 1010; /* pour rester au-dessus du reste */
}

#language-switcher button {
  margin-right: 5px;
  padding: 5px 10px;
  cursor: pointer;
}