/* _____________ location/STYLE.CSS _____________ */

body {
  font-family: sans-serif;
  padding: 20px;
  max-width: 600px;
  margin: auto;
}

select, input, button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  background-color: white;
}


.date-restriction-info {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  background-color: #f8f9fa;
  border-left: 3px solid #007bff;
  padding: 8px 12px;
  border-radius: 4px;
}

.date-restriction-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 8px;
  border-radius: 4px;
  margin: 5px 0;
  font-size: 0.9rem;
}

/* ===================================
   STYLES BOUTONS DE RÉSERVATION
   =================================== */
#reserver {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

#reserver:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

#reserver:active {
  transform: translateY(0) !important;
}

/* Bouton PROVISOIRE (gris - discret) */
#reserver-provisoire {
  background: #e9e9ed;
  color: black !important;
  font-weight: normal !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#reserver-provisoire:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4) !important;
}

#reserver-provisoire:active {
  transform: translateY(0) !important;
}

/* Style pour les boutons désactivés */
button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}


/* ===================================
   STYLES PAGE SUCCESS.PHP
   =================================== */

.success-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    color: white;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.calendar-status {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}

.calendar-status.warning {
    border-left-color: #FF9800;
}

.reservation-details {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
    backdrop-filter: blur(10px);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-label {
    font-weight: 600;
    opacity: 0.8;
}

.detail-value {
    font-weight: bold;
}

.next-steps {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
}

.next-steps h3 {
    margin-bottom: 15px;
    color: #fff;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.next-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.error-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: #f44336;
    border-radius: 20px;
    color: white;
    text-align: center;
}

.btn-home {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-home:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.calendar-integration {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.calendar-integration h4 {
    margin-bottom: 15px;
    color: #fff;
}

.calendar-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: rgba(255,255,255,0.3);
}


/* ===================================
   STYLES PAGE CANCEL.PHP
   =================================== */

.cancel-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    color: white;
    text-align: center;
}

.cancel-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cancel-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.cancel-message {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.cancel-submessage {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.7;
    line-height: 1.5;
}

.info-box {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.info-box h3 {
    margin-bottom: 15px;
    color: #fff;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #adb5bd;
}

/* Note: .btn-home est déjà défini dans la section SUCCESS.PHP,
   mais on ajoute les variantes spécifiques à cancel.php */

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.session-info {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    opacity: 0.6;
}
