/*
Theme Name: theme Wami  
Author: Wami  
Author URI: 
Version: 1.0.0
Text Domain: wami
*/


/* Centrer et réduire la taille des titres de section */
h1{
    text-align: center;
    font-size: 2.5em; /* Taille plus petite */
    margin-bottom: 15px; /* Réduire l’espace sous le titre */
	border-bottom: 1px solid grey;
}

h2 {
    text-align: center;
    font-size: 1.5em; /* Taille plus petite */
    margin-bottom: 0px; /* Réduire l’espace sous le titre */
}


/* Centrer la grille et limiter la largeur */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 10px; /* Espace entre les cartes */
    max-width: 1000px; /* Largeur max */
    margin: 0px auto 40px auto; /* Centrage */
    padding: 20px; /* Espace autour */
}

/* Style des cartes produits */
.produit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 100%;
    max-width: 300px; /* Taille uniforme */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.produit:hover {
    transform: scale(1.05);
}

/* Taille uniforme des images */
.produit img {
    width: 100%;
    height: 200px; /* Hauteur fixe */
    object-fit: cover; /* Remplir sans déformer */
    border-radius: 8px;
}

/* Style du titre */
.produit h2 {
    font-size: 1.2em;
    margin-top: 10px;
    color: #333;
}

/* Disponibilité */
.available {
    color: green;
    font-weight: bold;
    margin-top: 5px;
}

.not-available {
    color: red;
    font-weight: bold;
    margin-top: 5px;
}







/* Conteneur principal */
.product-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.product-header{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
	align-items: center;
}

/* Image et description en ligne */
.product-image {
    width: 40%;
	max-width: 500px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
}

.product-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.product-description {
	display:flex;
	flex-direction: column;
	align-items: flex-start;
    width: 60%;
    padding-left: 20px;
	text-align: left;
}
.product-container > div:first-child {
    display: flex;
    align-items: center;
}

/* Section de réservation */
/* Conteneur principal de la réservation */
.reservation-container {
    display: flex;
    justify-content: center;
    max-width: 100vw;
    margin: 40px auto;
}

/* Calendrier */
.calendar-container {
	flex : 1;
    max-width: 	fit-content;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 20px;
}

.form-field{
	flex : 2;
}

/* Formulaire */
.form-container {
    width: 90vw;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
/* Formulaire en deux colonnes */
#reservation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
	display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

/* Ligne contenant deux champs */
.form-row {
    display: flex;
    gap: 15px;
}

/* Chaque champ prend 50% de la ligne */
.form-group {
    width: 50%;
    display: flex;
    flex-direction: column;
}

/* Champs en pleine largeur */
.form-group.full-width {
    width: 100%;
}

/* Style des champs */
.form-group input, 
.form-group textarea {
    width: 90% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 16px !important;
}

/* Style des champs */
.form-group input:focus, 
.form-group textarea:focus {
    border-color: #007BFF !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5) !important;
}

/* Style du bouton */
#submit-button {
    background-color: #007BFF;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
}

/* Effet hover sur le bouton */
#submit-button:hover {
    background-color: #0056b3;
}

/* Style des labels */
.reservation-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Color Reservations Status */
.status-accepted{
	color: green;
	font-weight: bold;
}
.status-pending{
	color: orange;
	font-weight: bold;
}
.status-declined{
	color: red;
	font-weight: bold;
}





.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}




















.info-icon {
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    color: blue;
    background-color: #f0f0f0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
}

/* Overlay for the popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Popup container */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Popup content */
.popup-content {
    padding: 20px;
}

.popup-content .close-icon {
    display: block;
    cursor: pointer;
    color: red;
    float: right;
    font-weight: bold;
}




