@charset "UTF-8";

/* === RÉGLAGES GÉNÉRAUX === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: white;
  background: #f0f0f0;
  margin: 0;
  padding: 0;
}

/* === HEADER === */
header {
  background: url('IMAGES/fond1.jpg') no-repeat center center/cover;
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo-img {
  border: 3px solid white;
  border-radius: 50%;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
}

.slogan {
  margin-top: 20px;
  font-size: 1.2em;
}

/* === NAVIGATION === */
nav {
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  color: black;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: normal;
}

/* === SECTION OFFRES === */
.offers-section {
  background: url('IMAGES/fond2.jpg') no-repeat center center/cover;
  padding: 50px 20px;
  color: white;
}

.offers-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  border-bottom: 2px solid white;
  display: inline-block;
}

.offer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  color: black;
  border-radius: 30px;
  padding: 30px;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.offer img {
  width: 600px;
  height: 510px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}

.offer-text {
  flex: 1;
  min-width: 250px;
}

.offer button {
  margin-top: 15px;
  padding: 10px 25px;
  border: 2px solid black;
  background: white;
  cursor: pointer;
  font-weight: bold;
}

/* === FORMULAIRE AJOUT OFFRE === */
#formulaire-ajout form {
  color: white;
}

#formulaire-ajout input,
#formulaire-ajout textarea,
#formulaire-ajout button {
  background: transparent;
  border: 1px solid white;
  border-radius: 10px;
  color: white;
  padding: 8px;
  margin: 5px 0;
  width: 100%;
  box-sizing: border-box;
}

#formulaire-ajout input::placeholder,
#formulaire-ajout textarea::placeholder {
  color: #ffffff;
}

#formulaire-ajout button {
  background: white;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

#formulaire-ajout button:hover {
  background: #ddd;
}

#ajouter-offre {
  background: white;
  color: black;
  border: 2px solid black;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin: 20px 0;
}

#ajouter-offre:hover {
  background: black;
  color: white;
}

/* === FORMULAIRES GÉNÉRAUX === */
.form-style {
  background: white;
  border: 1px solid black;
  border-radius: 15px;
  padding: 15px;
  color: black;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-style input,
.form-style label,
.form-style button {
  background: transparent;
  border: 1px solid black;
  border-radius: 10px;
  color: black;
  padding: 6px;
  margin: 5px 0;
  width: 100%;
  box-sizing: border-box;
}

.form-style button {
  background: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.form-style button:hover {
  background: #ddd;
}

/* === TABLEAU === */
.table-style {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: transparent;
  color: white;
  border-radius: 10px;
  overflow: hidden;
}

.table-style th,
.table-style td {
  padding: 10px;
  border: 1px solid white;
  text-align: left;
}

.table-style th {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

/* === SECTION RÉSERVATIONS === */
.reservations-section {
  background: #8e6d99 no-repeat center center/cover;
  padding: 50px 20px;
  color: white;
}

.reservations-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid white;
  display: inline-block;
}

.reservation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.reservation-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 20px;
  color: black;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reservation-card p {
  margin: 10px 0;
}

.reservations-section select,
.reservations-section label {
  font-size: 1em;
  padding: 10px 15px;
  margin-right: 10px;
  border: 2px solid white;
  border-radius: 10px;
  background: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.reservations-section select:hover {
  background: #ddd;
}

.reservations-section select:focus {
  outline: none;
  border-color: #ccc;
}

/* === PAGE DE CONNEXION === */
body.page-connexion {
  height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f9d5ec, #d5e8f9, #e5d5f9);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.page-connexion {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px;
}

.page-connexion h2 {
  margin-bottom: 20px;
  color: black;
}

.form-connexion input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid black;
  border-radius: 10px;
  color: black;
  font-size: 1em;
  background: transparent;
}

.form-connexion input::placeholder {
  color: #333;
}

.form-connexion button {
  margin-top: 15px;
  padding: 10px 25px;
  border: 2px solid black;
  background: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 10px;
  font-size: 1em;
  transition: background 0.3s, color 0.3s;
}

.form-connexion button:hover {
  background: black;
  color: white;
}

.box-connexion {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px;
}

.decor-video {
  position: absolute;
  right: 0;
  top: 0;
  width: 73vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.decor-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === DASHBOARD === */
.dashboard {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background-color: #f5f8fb;
  min-height: 80vh;
  color: #333;
}

.dashboard h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #859bff;
}

.stats-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-box {
  background-color: #fff;
  border: 2px solid #859bff;
  border-radius: 12px;
  padding: 1rem 2rem;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-box h3 {
  font-size: 2rem;
  color: #859bff;
  margin: 0;
}

.stat-box p {
  font-size: 1rem;
  margin: 0.5rem 0 0;
  color: #555;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.8rem;
  border: 1px solid #859bff;
  text-align: left;
}

.dashboard-table th {
  background-color: #859bff;
  color: #fff;
}

.dashboard-table tr {
  background-color: #f9f9f9;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-content {
  position: relative;
  z-index: 1;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background-color: black !important;
  margin-top: 40px;
}

footer a {
  color: #859bff;
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .offer {
    flex-direction: column;
    text-align: center;
  }

  .offer img {
    width: 100%;
    height: auto;
  }

  .form-style,
  .table-style {
    font-size: 0.9em;
  }

  .reservation-cards {
    grid-template-columns: 1fr;
  }
}


.page-accueil video.background {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* === PAGE D'ACCUEIL === */
.page-accueil .container {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
  text-align: center;
}

.page-accueil .logo {
  font-size: 2.5em;
  font-weight: bold;
  color: #ff4da6;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 30px;
}

.page-accueil .buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-accueil .btn {
  position: relative;
  width: 200px;
  height: 130px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  text-decoration: none;
}

.page-accueil .btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.page-accueil .btn span {
  position: relative;
  font-weight: bold;
  font-size: 1.1em;
  color: black;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.page-accueil .btn:hover::before {
  background-color: rgba(255,255,255,0.4);
}

.page-accueil .btn:hover span {
  opacity: 1;
  color: white !important;
}

.carte-texte {
  background-color: rgba(0, 0, 0, 0.6); /* noir transparent */
  padding: 20px;
  border-radius: 20px;
  max-width: 80%;
  margin: 40px auto;
  text-align: center;
}

.carte-texte h2 {
  font-size: 1.5em;
  color: white;
  line-height: 1.6;
}

/* Conteneur pour les étapes */
.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille flexible */
  gap: 20px;
  padding: 20px;
  text-align: center;
}

/* Style de chaque étape */
.step {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.step img {
  width: 100%; /* Utiliser toute la largeur disponible */
  height: 200px; /* Hauteur ajustée pour un rectangle */
  object-fit: cover; /* Garde l'image proportionnelle en remplissant le conteneur */
  border-radius: 10%; /* Arrondir légèrement les coins */
  margin-bottom: 10px;
}

.step p {
  font-size: 1em;
  color: black;
  margin-top: 10px;
}


/* Effet au survol */
.step:hover {
  transform: translateY(-10px); /* Décalage lors du survol */
}



.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}


