/* ============================================
   THÈME TAVERNE - Ambiance médiévale chaleureuse
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Couleurs de base */
  --bg-primary: #0f0a07;
  --bg-secondary: #1a0f0a;
  --bg-tertiary: #2d1810;
  
  /* Couleurs des cartes */
  --card-bg-start: rgba(77, 40, 24, 0.9);
  --card-bg-end: rgba(58, 30, 18, 0.95);
  
  /* Accents */
  --accent-primary: #d4af37;
  --accent-primary-light: #f4d03f;
  --accent-primary-dark: #b8860b;
  --accent-secondary: #b87333;
  
  /* Couleurs de texte */
  --text-primary: #f4e8d0;
  --text-secondary: #d4c5a0;
  --text-muted: rgba(244, 232, 208, 0.7);
  
  /* Couleurs de statut */
  --color-success: #4caf50;
  --color-success-light: #66bb6a;
  --color-danger: #4caf50;
  --color-danger-light: #ff6b35;
  
  /* Typographie */
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  
  /* Espacements */
  --spacing-card: 1.2rem;
  --spacing-section: 1.5rem;
  --border-radius-card: 12px;
  --border-radius-btn: 6px;
  
  /* Effets */
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 15px 50px rgba(0, 0, 0, 0.8);
  --shadow-btn: 0 4px 15px rgba(0, 0, 0, 0.4);
  --transition-speed: 0.3s;
  
  /* Opacités */
  --opacity-modal-bg: 0.85;
  --opacity-card-border: 0.1;
}

/* Effet texture bois en arrière-plan */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    ),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23000000' fill-opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Effet de lumière de chandelle animée */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(212, 175, 55, 0.03) 0%,
    transparent 50%
  );
  animation: candlelight 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes candlelight {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  25% { opacity: 0.6; transform: scale(1.1) rotate(2deg); }
  50% { opacity: 0.5; transform: scale(0.95) rotate(-1deg); }
  75% { opacity: 0.7; transform: scale(1.05) rotate(1deg); }
}

/* Fond du body avec dégradé */
body {
  background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #120a06 100%);
}

/* Tableau planning */
.table-wrapper {
  border-color: var(--accent-primary) !important;
  background: rgba(77, 40, 24, 0.8) !important;
}

table {
  background: rgba(77, 40, 24, 0.6) !important;
}

th {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 134, 11, 0.1)) !important;
  color: var(--text-secondary) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

td {
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: var(--text-primary) !important;
}

.periode-col {
  color: var(--text-secondary) !important;
}

.dispo-btn {
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
}

.dispo-btn.active {
  background: var(--accent-primary) !important;
  color: #0f0a07 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5) !important;
}

/* Inputs et formulaires */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
  background: rgba(77, 40, 24, 0.8) !important;
  border: 2px solid rgba(212, 175, 55, 0.3) !important;
  color: var(--text-primary) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) !important;
}

/* Options de select */
select option {
  background: #2d1810 !important;
  color: var(--text-primary) !important;
}

/* Modals */
.modal-content {
  background: linear-gradient(145deg, rgba(77, 40, 24, 0.98), rgba(58, 30, 18, 0.98)) !important;
  border: 3px solid var(--accent-primary) !important;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4), 0 20px 60px rgba(0, 0, 0, 0.9) !important;
}

/* Badges */
.badge-complet {
  background: var(--color-danger) !important;
  color: white !important;
  border: 1px solid var(--color-danger-light) !important;
}

/* Barres de séparation */
hr {
  border-color: rgba(212, 175, 55, 0.3) !important;
}

/* Titres avec ombre dorée */
h1, h2, h3 {
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4) !important;
}
