/* ==========================================================================
   QUAI 36 BOOKING 2 - STYLES GLOBAUX & MISE EN PAGE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 0%, #131B2C 0%, var(--bg-deep) 75%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-300);
}

input, select, textarea, button {
  font-family: inherit;
}

.ambient-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, rgba(19, 27, 44, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Utilitaires */
.text-gold { color: var(--gold-400); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.badge-confirmed {
  background: var(--status-confirmed-bg);
  border: 1.5px solid var(--status-confirmed-border);
  color: var(--status-confirmed-text);
}

.badge-option {
  background: var(--status-option-bg);
  border: 1.5px solid var(--status-option-border);
  color: var(--status-option-text);
}

.badge-request {
  background: var(--status-request-bg);
  border: 1.5px solid var(--status-request-border);
  color: var(--status-request-text);
}

.badge-cancelled {
  background: var(--status-cancelled-bg);
  border: 1.5px solid var(--status-cancelled-border);
  color: var(--status-cancelled-text);
}

.badge-fulltime {
  background: var(--status-fulltime-bg);
  border: 1.5px solid var(--status-fulltime-border);
  color: var(--status-fulltime-text);
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  padding: 3rem 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand h4 {
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--gold-400);
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

.footer-meta span {
  color: var(--text-secondary);
}

/* Modal générique */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 18, 0.8);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
}

/* Autocomplétion Tiers & Prospects Dolibarr */
.customer-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #111927;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.customer-autocomplete-item {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.customer-autocomplete-item:hover,
.customer-autocomplete-item.focused {
  background: rgba(212, 175, 55, 0.12);
}

.customer-autocomplete-item:last-child {
  border-bottom: none;
}

.customer-autocomplete-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-autocomplete-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.customer-autocomplete-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.customer-autocomplete-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.customer-badge-client {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.customer-badge-prospect {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.customer-autocomplete-create {
  background: rgba(212, 175, 55, 0.08);
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.customer-autocomplete-create:hover {
  background: rgba(212, 175, 55, 0.18);
  color: #FFF;
}

