/**
 * IGEVENTS - STYLE ESPACE ADMINISTRATEUR
 * Thème Cosy, Élégant et Haut de Gamme
 * Palette : Beige crème (#F8F2EA), Blanc cassé (#FFFCF8), Doré champagne (#B59A7C), Marron taupe (#6D5847), Vert sauge (#DCE8D6), Vieux rose (#E8C6C2)
 */

:root {
  --cosy-bg: #F8F2EA;
  --cosy-card: #FFFCF8;
  --cosy-surface: #FFFFFF;
  --cosy-gold: #B59A7C;
  --cosy-gold-light: #CBB49C;
  --cosy-gold-dark: #977B5E;
  --cosy-taupe: #6D5847;
  --cosy-taupe-light: #8E7A6B;
  --cosy-taupe-dark: #4B3B2E;
  --cosy-border: rgba(181, 154, 124, 0.22);
  --cosy-border-focus: #B59A7C;

  /* Statuts */
  --status-pending-bg: #FAF3EB;
  --status-pending-text: #967450;
  --status-pending-border: #E8D6C4;

  --status-provisional-bg: #F5EFEB;
  --status-provisional-text: #705847;
  --status-provisional-border: #DECFC3;

  --status-confirmed-bg: #E8C6C2;
  --status-confirmed-text: #884B4B;
  --status-confirmed-border: #D9ABA5;

  --status-completed-bg: #DCE8D6;
  --status-completed-text: #45644C;
  --status-completed-border: #C8D8C0;

  --status-blocked-bg: #EBE6E1;
  --status-blocked-text: #6D5847;
  --status-blocked-border: #D5CCC3;

  --status-cancelled-bg: #F2EFEB;
  --status-cancelled-text: #999086;
  --status-cancelled-border: #DDD6CE;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 6px rgba(109, 88, 71, 0.04);
  --shadow-md: 0 8px 25px rgba(109, 88, 71, 0.08);
  --shadow-lg: 0 16px 45px rgba(109, 88, 71, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--cosy-bg);
  color: var(--cosy-taupe);
  line-height: 1.5;
  min-height: 100vh;
}

/* ----------------------------------------------------
   PAGE DE CONNEXION (SECTION 3)
   ---------------------------------------------------- */
.login-view-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 20px;
  background-color: var(--cosy-bg);
  position: relative;
  overflow: hidden;
}

.login-view-wrapper::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 154, 124, 0.12) 0%, rgba(248, 242, 234, 0) 70%);
  pointer-events: none;
}

.login-card {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  padding: 45px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo-img {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--cosy-taupe);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--cosy-taupe-light);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cosy-taupe);
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--cosy-taupe);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.login-input:focus {
  border-color: var(--cosy-gold);
  box-shadow: 0 0 0 3px rgba(181, 154, 124, 0.2);
}

.login-pin-field {
  display: none;
}

.btn-login-champagne {
  background: var(--cosy-gold);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(181, 154, 124, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login-champagne:hover:not(:disabled) {
  background: var(--cosy-taupe);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 88, 71, 0.25);
}

.btn-login-champagne:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-error-msg {
  display: none;
  background: #FDF2F1;
  border: 1px solid var(--rose-border);
  color: var(--rose-text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 15px;
  text-align: left;
}

.login-hint-badge {
  margin-top: 25px;
  padding: 12px;
  background: rgba(181, 154, 124, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--cosy-taupe-light);
  line-height: 1.4;
}

/* ----------------------------------------------------
   INTERFACE ADMIN PRINCIPALE (SECTION 4)
   ---------------------------------------------------- */
.admin-app-layout {
  display: none;
  min-height: 100vh;
}

/* Sidebar Menu Latéral */
.admin-sidebar {
  width: 270px;
  background: var(--cosy-card);
  border-right: 1px solid var(--cosy-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.sidebar-brand-box {
  padding: 25px 24px;
  border-bottom: 1px solid var(--cosy-border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-logo {
  height: 48px;
  width: auto;
}

.sidebar-brand-text h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cosy-taupe);
  font-weight: 700;
  line-height: 1.1;
}

.sidebar-brand-text span {
  font-size: 0.75rem;
  color: var(--cosy-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-nav-list {
  list-style: none;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-nav-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--cosy-taupe);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item-content svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  opacity: 0.85;
}

.sidebar-nav-item button:hover {
  background: rgba(181, 154, 124, 0.12);
  color: var(--cosy-taupe-dark);
}

.sidebar-nav-item button.is-active {
  background: var(--cosy-gold);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(181, 154, 124, 0.35);
}

.sidebar-nav-item button.is-active svg {
  opacity: 1;
}

/* Badge de compteur de nouvelles demandes */
.nav-badge-count {
  background: #B34444;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  line-height: 1.2;
}

.sidebar-nav-item button.is-active .nav-badge-count {
  background: #FFFFFF;
  color: var(--cosy-taupe);
}

.sidebar-footer-box {
  padding: 16px 20px;
  border-top: 1px solid var(--cosy-border);
}

.btn-sidebar-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cosy-border);
  background: transparent;
  color: var(--cosy-taupe-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sidebar-logout:hover {
  background: #FDF2F1;
  border-color: var(--rose-border);
  color: var(--rose-text);
}

/* Zone principale de contenu */
.admin-main-stage {
  margin-left: 270px;
  flex-grow: 1;
  padding: 30px 40px 60px;
  min-height: 100vh;
}

/* Barre supérieure Admin */
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-bar-welcome h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--cosy-taupe);
  font-weight: 600;
}

.top-bar-welcome p {
  color: var(--cosy-taupe-light);
  font-size: 0.95rem;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-action-champagne {
  background: var(--cosy-gold);
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(181, 154, 124, 0.3);
}

.btn-action-champagne:hover {
  background: var(--cosy-taupe);
  transform: translateY(-1px);
}

.btn-action-outline {
  background: #FFFFFF;
  color: var(--cosy-taupe);
  border: 1px solid var(--cosy-border);
  border-radius: 25px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-action-outline:hover {
  border-color: var(--cosy-gold);
  color: var(--cosy-gold);
}

/* Vues des onglets */
.admin-tab-pane {
  display: none;
}

.admin-tab-pane.is-visible {
  display: block;
  animation: fadeInPane 0.25s ease forwards;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   CARTES DE STATISTIQUES (SECTION 4)
   ---------------------------------------------------- */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card-cosy {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-cosy:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cosy-taupe-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.stat-card-header svg {
  width: 20px;
  height: 20px;
  fill: var(--cosy-gold);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cosy-taupe);
  line-height: 1;
}

.stat-card-footer {
  font-size: 0.82rem;
  color: var(--cosy-taupe-light);
  margin-top: 4px;
}

/* Prochain événement card spéciale */
.stat-card-next-event {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFCF8 0%, #F5EFEB 100%);
  border: 1px solid rgba(181, 154, 124, 0.35);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
}

.next-event-details h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--cosy-taupe);
  margin-bottom: 4px;
}

.next-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--cosy-taupe-light);
  margin-top: 6px;
}

.next-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Grille à 2 colonnes pour Dashboard */
.dashboard-twocol-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
}

.dashboard-panel-box {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cosy-border);
}

.panel-header-row h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cosy-taupe);
}

/* Liste d'événements à venir */
.upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-event-item {
  background: #FFFFFF;
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.upcoming-event-item:hover {
  border-color: var(--cosy-gold);
  box-shadow: 0 4px 12px rgba(181, 154, 124, 0.15);
}

.event-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-date-badge {
  background: var(--cosy-bg);
  border: 1px solid var(--cosy-border);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 58px;
}

.event-date-day {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cosy-taupe);
  line-height: 1;
}

.event-date-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cosy-gold);
  font-weight: 600;
}

.event-item-info h4 {
  font-size: 1rem;
  color: var(--cosy-taupe);
  margin-bottom: 3px;
}

.event-item-info p {
  font-size: 0.85rem;
  color: var(--cosy-taupe-light);
}

/* Badges de statut élégants */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.status-pill.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.status-pill.provisional {
  background: var(--status-provisional-bg);
  color: var(--status-provisional-text);
  border: 1px solid var(--status-provisional-border);
}

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

.status-pill.completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-text);
  border: 1px solid var(--status-completed-border);
}

.status-pill.blocked {
  background: var(--status-blocked-bg);
  color: var(--status-blocked-text);
  border: 1px solid var(--status-blocked-border);
}

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

/* ----------------------------------------------------
   CALENDRIER ADMINISTRATEUR MULTI-VUES (SECTION 5)
   ---------------------------------------------------- */
.admin-calendar-wrapper {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.calendar-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cosy-border);
}

.calendar-view-switcher {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--cosy-border);
  border-radius: 25px;
  padding: 4px;
}

.calendar-view-switcher button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cosy-taupe);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-view-switcher button.is-active {
  background: var(--cosy-gold);
  color: #FFFFFF;
  font-weight: 600;
}

.calendar-month-selector {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calendar-month-selector h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--cosy-taupe);
  min-width: 220px;
  text-align: center;
  text-transform: capitalize;
}

.calendar-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Grille du Calendrier Admin - Vue Mensuelle */
.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.admin-cal-weekday-header {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cosy-taupe-light);
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-cal-day-cell {
  background: #FFFFFF;
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-md);
  min-height: 110px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.admin-cal-day-cell:hover {
  border-color: var(--cosy-gold);
  box-shadow: 0 4px 14px rgba(109, 88, 71, 0.08);
}

.admin-cal-day-cell.is-today {
  border-color: var(--cosy-gold);
  background: #FFFDF9;
}

.admin-cal-day-cell.is-other-month {
  opacity: 0.35;
  background: #FAFAFA;
}

.admin-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.admin-day-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cosy-taupe);
}

.admin-cal-day-cell.is-today .admin-day-num {
  background: var(--cosy-gold);
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.admin-day-events-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

/* Carte d'événement miniature dans le calendrier */
.admin-cal-event-pill {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.15s ease;
  line-height: 1.2;
}

.admin-cal-event-pill:hover {
  transform: scale(1.02);
}

.admin-cal-event-pill.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.admin-cal-event-pill.provisional {
  background: var(--status-provisional-bg);
  color: var(--status-provisional-text);
  border: 1px solid var(--status-provisional-border);
}

.admin-cal-event-pill.confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-text);
  border: 1px solid var(--status-confirmed-border);
}

.admin-cal-event-pill.completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-text);
  border: 1px solid var(--status-completed-border);
}

.admin-cal-event-pill.blocked {
  background: var(--status-blocked-bg);
  color: var(--status-blocked-text);
  border: 1px solid var(--status-blocked-border);
  font-style: italic;
}

/* Légende Couleurs Administrateur (Section 5) */
.admin-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--cosy-border);
  font-size: 0.85rem;
}

.admin-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
}

/* ----------------------------------------------------
   TABLES DE GESTION (ÉVÉNEMENTS & DEMANDES)
   ---------------------------------------------------- */
.admin-table-container {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-filter-bar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--cosy-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.table-search-input {
  padding: 9px 15px;
  border: 1px solid var(--cosy-border);
  border-radius: 20px;
  font-size: 0.88rem;
  background: #FFFFFF;
  outline: none;
  min-width: 260px;
  font-family: var(--font-body);
}

.table-search-input:focus {
  border-color: var(--cosy-gold);
}

.table-filter-select {
  padding: 9px 14px;
  border: 1px solid var(--cosy-border);
  border-radius: 20px;
  font-size: 0.88rem;
  background: #FFFFFF;
  color: var(--cosy-taupe);
  outline: none;
  font-family: var(--font-body);
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-data-table th {
  background: #FAF7F2;
  color: var(--cosy-taupe);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cosy-border);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.admin-data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(181, 154, 124, 0.12);
  color: var(--cosy-taupe);
  vertical-align: middle;
}

.admin-data-table tr:hover td {
  background: #FFFDFB;
}

.table-actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-table-action {
  background: #FFFFFF;
  border: 1px solid var(--cosy-border);
  color: var(--cosy-taupe);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-table-action:hover {
  border-color: var(--cosy-gold);
  color: var(--cosy-gold);
}

.btn-table-action.btn-accept {
  background: var(--sage-bg);
  border-color: var(--sage-border);
  color: var(--sage-text);
}

.btn-table-action.btn-accept:hover {
  background: #C8D8C0;
}

.btn-table-action.btn-danger {
  color: var(--rose-text);
}

.btn-table-action.btn-danger:hover {
  background: #FDF2F1;
  border-color: var(--rose-border);
}

/* ----------------------------------------------------
   INDISPONIBILITÉS (SECTION 11)
   ---------------------------------------------------- */
.blocked-dates-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 25px;
}

.blocked-form-card {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ----------------------------------------------------
   PARAMÈTRES (SECTION 12)
   ---------------------------------------------------- */
.settings-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
}

.settings-card {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.settings-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--cosy-taupe);
  margin-bottom: 6px;
}

.settings-card p.card-desc {
  color: var(--cosy-taupe-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-field.full {
  grid-column: 1 / -1;
}

.settings-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cosy-taupe);
}

.checkbox-group-days {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}

.day-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ----------------------------------------------------
   MODALES (SECTION 5, 6, 10, 11)
   ---------------------------------------------------- */
.admin-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(75, 59, 46, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-overlay.is-open {
  display: flex;
}

.admin-modal-box {
  background: var(--cosy-card);
  border: 1px solid var(--cosy-border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header-bar {
  padding: 22px 28px;
  border-bottom: 1px solid var(--cosy-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-bar h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--cosy-taupe);
}

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--cosy-taupe-light);
  cursor: pointer;
  line-height: 1;
}

.modal-body-scroll {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer-bar {
  padding: 18px 28px;
  border-top: 1px solid var(--cosy-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF7F2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Toast Notifications */
.admin-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.admin-toast {
  background: var(--cosy-card);
  border-left: 5px solid var(--cosy-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
  color: var(--cosy-taupe);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s ease forwards;
  min-width: 280px;
}

.admin-toast.success {
  border-left-color: var(--sage-text);
}

.admin-toast.error {
  border-left-color: var(--rose-text);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main-stage {
    margin-left: 0;
    padding: 20px;
  }
  .dashboard-twocol-grid {
    grid-template-columns: 1fr;
  }
  .blocked-dates-layout {
    grid-template-columns: 1fr;
  }
}
