/* Styles globaux */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    box-sizing: border-box;
    padding-top: 60px; /* Ajoute de l'espace pour compenser la hauteur du header */
}

/* Header Section */
header {
    background-color: #b08429;
    width: 100%;
    padding: 8px 0; /* Hauteur du header */
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.logo img {
    width: 100px;
    height: auto;
    mix-blend-mode: multiply;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-right: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #2e2e2e;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

nav ul li a:hover {
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions button {
    margin-left: 10px;
    background: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #b08429;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
}

.header-actions button:hover {
    background: #2e2e2e;
    color: #ffffff;
}

.client-actions button {
    margin-left: 10px;
    background: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #b08429;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
}
.client-actions button:hover {
    background: #2e2e2e;
    color: #ffffff;
}
/* Menu déroulant */
.sidepanel  {
    width: 0;
    position: fixed;
    z-index: 1;
    height: 300px;
    top: 20px;
    right: 0;
    background-color: black;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
  }

  .sidepanel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 0.9em;
    color: #818181;
    display: block;
    transition: 0.3s;
  }

  .sidepanel a:hover {
    color: #f1f1f1;
  }

  .sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
  }
  .openbtn {
    display: block;
    font-size: 20px;
    cursor: pointer;
    background-color: #b08429;
    color: white;
    padding: 10px 15px;
    border: none;
    float:right;

  }

  .openbtn:hover {
    background-color:#444;
  }


/* Hero Section */
#hero {
    background-color: #b08429;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 15px;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Styles pour le bouton de recherche d'hébergement */
.search-bar button {
    background: #ffffff;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #b08429;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
}

.search-bar button:hover {
    background: #2e2e2e;
    color: #ffffff;
}

/* Formulaire de Recherche en Popup */
.form-popup {
    display: none;
    position: fixed;
    z-index: 1001; /* Doit être supérieur au header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.form-container {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #b08429;
    font-size: 1.5em;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}

.form-container select,
.form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    transition: border-color 0.3s;
}

.form-container select:focus,
.form-container input:focus {
    border-color: #b08429;
    outline: none;
}

.form-container .btn-action {
    width: 100%;
    padding: 10px;
    background-color: #b08429;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 10px;
}

.form-container .btn-action:hover {
    background-color: #8a6821;
    transform: scale(1.02);
}

.form-container .btn-cancel {
    width: 100%;
    padding: 10px;
    background-color: #cccccc;
    color: #333333;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.2s;
}

.form-container .btn-cancel:hover {
    background-color: #999999;
    transform: scale(1.02);
}

/* Card Section */
.section {
    padding: 30px 20px;
    background: #f8f8f8;
}

.section h2 {
    text-align: center;
    font-size: 2em;
    color: #2e2e2e;
    margin-bottom: 20px;
}

.section p {
    text-align: center;
    color: #808080;
    margin-bottom: 30px;
}

.card-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hotel-card {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
    transition: transform 0.3s ease;
}

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

.hotel-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.hotel-info {
    padding: 10px;
    text-align: center;
}

.hotel-info h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #2e2e2e;
}

.hotel-info p {
    color: #808080;
    margin-bottom: 8px;
}

.hotel-info .price {
    color: #b08429;
    font-weight: bold;
    margin-bottom: 10px;
}

.rating {
    font-weight: bold;
    color: #b08429;
}

.stars {
    color: #FFD700;
    margin-left: 5px;
}

.hotel-info .btn-action {
    margin-top: 10px;
    background: #b08429;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.hotel-info .btn-action:hover {
    background: #8a6821;
}

/* Filtres de Recherche */
.filtres {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.filtres label {
    font-weight: bold;
    color: #2e2e2e;
}

.filtres select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}

.filtres select:focus {
    border-color: #b08429;
    outline: none;
}

/* Formulaire de Réservation */
.reservation-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.reservation-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.reservation-form input,
.reservation-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.reservation-form .btn-action {
    width: 100%;
    padding: 10px;
    background-color: #b08429;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reservation-form .btn-action:hover {
    background-color: #8a6821;
}

/* Classe pour centrer les titres */
.title-center {
    text-align: center;
    margin-bottom: 20px;
    color: #2e2e2e;
}

/* Footer Section */
footer {
    background-color: #2e2e2e;
    color: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #f5f5f5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #808080;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #b08429;
}

.footer-section p {
    color: #808080;
}

/* Styles additionnels pour les pages d'inscription et de connexion */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

.auth-footer a {
    color: #b08429;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #8a6821;
}


/* ========================= */
/* Ajouts pour le champ Description et rendu plus classe */
/* ========================= */

/* Le champ description devient un rectangle fixe, ne change pas de forme au focus */
.reservation-form #description {
    width: 100%;
    height: 150px; 
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none; /* Désactivé pour garder la forme fixe */
    font-size: 0.95em;
    line-height: 1.4em;
    padding: 12px;
    transition: border-color 0.3s;
}

.reservation-form #description:focus {
    border-color: #b08429;
    outline: none;
    background: #fafafa; /* Pas de changement de couleur pour garder l'aspect stable */
}

/* Lien "Retourner à l'Accueil" reste cohérent */
.auth-footer a {
    color: #b08429;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted transparent;
    transition: color 0.3s, border-color 0.3s;
}

.auth-footer a:hover {
    color: #8a6821;
    border-bottom: 1px dotted #8a6821;
    text-decoration: none;
}
