@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200;300;400;500;600;700;800;900&display=swap');

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #f5f5f5;
      color: #333;
      animation: fadeIn 0.5s ease-out;
    }
    /* index.html */
    .hotel-block {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      background-image: url('../images/home1.jpg');
      background-size: cover;
      background-position: center;
      position: relative;
      padding: 40px;
      gap: 30px;
    }
    .overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1;
      border-radius: 12px;
    }
    .intro {
      position: relative;
      z-index: 2;
      color: #fff;
      text-align: center;
      padding: 40px 20px;
    }
    .intro h1 {
      font-size: 2.5em;
      margin-bottom: 10px;
      text-shadow: 2px 2px 6px #000;
    }
    .intro p {
      font-size: 1.2em;
      max-width: 800px;
      margin: 0 auto;
      text-shadow: 1px 1px 3px #000;
    }
    .hotel-content {
      position: relative;
      z-index: 2;
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 12px;
      padding: 30px;
    }
    .hotel-list {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-right: 10px;
    }

    .hotel-list img {
        width: 80%;
        height: 100px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: transform 0.3s, border-color 0.3s;
        position: relative;
        }
    .hotel-list img:hover {
      transform: scale(1.02);
      border-color: #ffd700;
    }
    .hotel-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    }
    .hotel-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    }
    .hotel-thumb:hover img {
    transform: scale(1.05);
    }

    .hotel-thumb .label-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: white;
    font-weight: bold;
    font-size: 1.3em;
    text-align: center;
    transition: opacity 0.3s ease;
    }
    .hotel-thumb:hover .label-overlay {
    opacity: 1;
    }
    .hotel-details {
      flex: 2;
    }
    .hotel-details h2 {
      margin-bottom: 20px;
      font-size: 1.8em;
    }
    .rooms-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }
    .room {
      background: #fff;
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .room-img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 10px;
    }
    .room-title {
      font-weight: bold;
      font-size: 1.1em;
    }
    .price {
      color: #e91e63;
      font-size: 1.2em;
      margin: 5px 0;
    }
    .desc {
      margin-bottom: 10px;
    }
    .actions {
      display: flex;
      gap: 10px;
    }
    .actions button {
      padding: 8px 16px;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s;
      font-size: 0.9em;
    }
    .btn-info {
      background: #2196f3;
      color: white;
    }
    .btn-reserve {
      background: #ffd700;
      color: black;
    }
    .confirmation-popup {
      position: fixed;
      top: 20px;
      right: 20px;
      background: #4CAF50;
      color: white;
      padding: 15px 25px;
      border-radius: 5px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      animation: slideIn 0.5s, fadeOut 0.5s 9.5s forwards;
      max-width: 350px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .confirmation-popup::before {
      content: "✓";
      font-size: 20px;
      font-weight: bold;
    }
    .close-btn {
      margin-left: auto;
      background: none;
      border: none;
      color: white;
      font-weight: bold;
      cursor: pointer;
      font-size: 16px;
    }
    @keyframes slideIn {
      from { transform: translateX(100%); }
      to { transform: translateX(0); }
    }
    @keyframes fadeOut {
      from { opacity: 1; }
      to { opacity: 0; }
    }
    
    @media (max-width: 768px) {
      .hotel-content {
        flex-direction: column;
      }
    }
    /* Animation d'apparition */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @media (max-width: 1024px) {
  .intro h1 {
    font-size: 2em;
  }

  .intro p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .hotel-block {
    padding: 20px;
  }

  .intro {
    padding: 20px 10px;
  }

  .hotel-content {
    flex-direction: column;
    padding: 20px 15px;
  }

  .hotel-list {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding-right: 0;
  gap: 15px;
}

.hotel-thumb {
  width: 45%;
  max-width: 160px;
}


  .hotel-list img {
    width: 100%;
    height: auto;
  }

  .hotel-details {
    width: 100%;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .intro h1 {
    font-size: 1.5em;
  }

  .hotel-thumb {
    width: 100%;
  }

  .confirmation-popup {
    top: 10px;
    right: 10px;
    max-width: 90%;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .confirmation-popup::before {
    font-size: 16px;
  }
}
