/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Satisfy&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAF7F2;
  --bg-secondary: #F2EDE4;
  --bg-hover: #EBE3D6;
  --text: #2a2a2a;
  --text-secondary: #3d3d3d;
  --text-light: #6b6b6b;
  --accent: #DFA84A;
  --accent-hover: #C8923A;
  --accent-light: #FDF3E0;
  --accent-sage: #DEE1D6;
  --accent-olive: #A49B5E;
  --green: #4a7c59;
  --green-light: #edf5f0;
  --red: #b94040;
  --red-light: #fdf0f0;
  --orange: #c46b2a;
  --orange-light: #fdf1e6;
  --purple: #6b5b8a;
  --purple-light: #f1eef8;
  --yellow: #8a7230;
  --yellow-light: #fdf8e6;
  --border: #DEE1D6;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-sweet: 'Satisfy', cursive;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-in { animation: slideIn 0.3s ease-out; }

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-sage);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Decorative dots */
.login-page::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #DFA84A;
  border-radius: 50%;
  top: 12%;
  left: 18%;
  opacity: 0.7;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #A49B5E;
  border-radius: 50%;
  bottom: 20%;
  right: 22%;
  opacity: 0.6;
}

/* SVG illustrations on login */
.login-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.login-deco-sun { top: 6%; right: 8%; opacity: 0.85; }
.login-deco-caterpillar { bottom: 8%; left: 5%; opacity: 0.80; }
.login-deco-daisy { top: 50%; right: 5%; opacity: 0.75; transform: translateY(-50%); }
.login-deco-snail { bottom: 5%; right: 10%; opacity: 0.80; }
.login-deco-dot1 { top: 30%; left: 8%; }
.login-deco-dot2 { top: 18%; right: 25%; }
.login-deco-dot3 { bottom: 30%; left: 20%; }

.login-container {
  background: white;
  border-radius: 20px;
  padding: 52px 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
  animation: fadeIn 0.4s ease-out;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(222,225,214,0.6);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo .school-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.login-logo h1 {
  font-family: var(--font-sweet);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.login-logo p {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.login-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  font-weight: 300;
  transition: all 0.3s ease;
  background: var(--bg);
  color: var(--text);
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: #999;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(223,168,74,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  width: 100%;
  padding: 13px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(223,168,74,0.35);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(223,168,74,0.35);
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-olive);
}

.btn-danger {
  background: var(--text);
  color: white;
}

.btn-danger:hover {
  background: #333;
}

.btn-green {
  background: var(--text);
  color: white;
}

.btn-green:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12px;
}

.btn-icon {
  padding: 6px 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-light);
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.error-msg {
  background: #fff5f5;
  color: #cc0000;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 16px;
  display: none;
  border: 1px solid #ffdddd;
}

.success-msg {
  background: var(--bg-secondary);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 16px;
  display: none;
  border: 1px solid var(--border);
}

.child-info {
  background: var(--accent-light);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  border: 1px solid rgba(223,168,74,0.2);
}

/* ============ APP LAYOUT ============ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 264px;
  background: var(--accent-sage);
  border-right: 1px solid #c8ccbf;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 8px 10px;
  margin-bottom: 16px;
}

.sidebar-header h2 {
  font-family: var(--font-sweet);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.3px;
}

.sidebar-header p {
  font-size: 11px;
  color: #5a5a5a;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  color: #3d3d3d;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.nav-item:hover {
  background: rgba(255,255,255,0.5);
  color: var(--text);
}

.nav-item.active {
  background: white;
  color: var(--accent-hover);
  font-weight: 400;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
}

.nav-divider {
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 10px 8px;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,0.10);
  margin-top: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.user-info .username {
  font-weight: 400;
}

.user-info .role-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logout-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #4a4a4a;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logout-btn:hover {
  background: #2a2a2a;
  color: white;
  border-color: #2a2a2a;
}

/* Main content */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  margin-left: 264px;
  padding: 48px 64px;
  max-width: 920px;
  animation: fadeIn 0.3s ease-out;
}

.page-header {
  margin-bottom: 36px;
}

.page-header .page-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.page-header h1 {
  font-family: var(--font-sweet);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text);
}

.page-header p {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 300;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* ============ HOME / ACCUEIL ============ */
.welcome-banner {
  background: var(--accent-sage);
  color: var(--text);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  border: 1px solid #c8ccbf;
}

.welcome-banner h2 {
  font-family: var(--font-sweet);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

@media (max-width: 768px) {
  .welcome-banner h2 {
    font-size: 24px;
  }
}

.welcome-banner p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
}

/* Leaders / Team */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.leader-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.leader-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.leader-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-sage);
}

.leader-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-sage);
  font-size: 36px;
}

.leader-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.leader-card .leader-role {
  font-size: 11px;
  color: var(--accent-olive);
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.leader-card .contact-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
}

.leader-card .contact-info div {
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-sweet);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  display: block;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-sage);
  transition: all 0.3s ease;
}

.team-member-photo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.team-member-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-sage);
  font-size: 28px;
}

.team-member p {
  font-size: 13px;
  font-weight: 400;
}

.team-member span {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 300;
}

/* ============ POSTS / FIL D'ACTUALITÉS ============ */
.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease-out;
}

.post-card:hover {
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: 0.3px;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: white;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

.post-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  white-space: pre-wrap;
  font-weight: 300;
}

.post-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.post-photos img {
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  max-height: 300px;
  object-fit: cover;
}

.post-photos img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: var(--font);
  color: var(--text-light);
  font-weight: 300;
}

.like-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.like-btn.liked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ============ CALENDAR ============ */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-nav h3 {
  font-family: var(--font-sweet);
  font-size: 26px;
  font-weight: 400;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.calendar-day-header {
  background: var(--accent-olive);
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-day {
  background: white;
  padding: 8px;
  min-height: 80px;
  font-size: 13px;
  transition: background 0.2s;
}

.calendar-day:hover {
  background: var(--bg-secondary);
}

.calendar-day.other-month {
  background: #f8f6f2;
  color: var(--text-light);
}

.calendar-day.today {
  background: var(--accent-light);
}

.calendar-day .day-number {
  font-weight: 400;
  margin-bottom: 4px;
}

.calendar-day.today .day-number {
  background: var(--accent);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.calendar-event-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 2px;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 2px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s;
}

.calendar-event-dot:hover {
  transform: scale(1.2);
}

@keyframes eventHighlight {
  0%   { background: #FDF3E0; box-shadow: 0 0 0 3px rgba(223,168,74,0.5); }
  70%  { background: #FDF3E0; box-shadow: 0 0 0 3px rgba(223,168,74,0.5); }
  100% { background: transparent; box-shadow: none; }
}

.event-highlight {
  animation: eventHighlight 2.5s ease-out forwards;
  border-radius: var(--radius-lg);
}

.calendar-event-dot.type-vente { background: var(--accent-light); color: #8a5a00; }
.calendar-event-dot.type-fete { background: #7B1C2E; color: white; }
.calendar-event-dot.type-reunion { background: var(--accent-sage); color: #3a3a3a; }
.calendar-event-dot.type-event { background: var(--accent-light); color: #8a5a00; }
.calendar-event-dot.type-autre { background: #e8e4dc; color: var(--text-secondary); }

.upcoming-events {
  margin-top: 28px;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  transition: all 0.3s ease;
  background: white;
}

.event-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.event-date-badge {
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
}

.event-date-badge .month {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  letter-spacing: 1px;
}

.event-date-badge .day {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
}

.event-info h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 3px;
}

.event-info p {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
}

.event-type-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============ VOLUNTEER NOTES ============ */
.note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease-out;
  background: white;
}

.note-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.note-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.note-card .note-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  white-space: pre-wrap;
  font-weight: 300;
  line-height: 1.7;
}

.note-card .note-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 300;
}

.volunteer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.volunteer-progress {
  flex: 1;
  height: 6px;
  background: var(--accent-sage);
  border-radius: 3px;
  overflow: hidden;
}

.volunteer-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.volunteer-count {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.volunteer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.volunteer-tag {
  font-size: 11px;
  padding: 4px 12px;
  background: var(--accent-sage);
  color: var(--text);
  border-radius: 14px;
  font-weight: 400;
  border: 1px solid #c8ccbf;
}

.volunteer-btn {
  margin-top: 14px;
}

/* ============ ADMIN ============ */
.admin-section {
  margin-bottom: 40px;
}

.admin-section h2 {
  font-family: var(--font-sweet);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.admin-form {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.admin-form h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 18px;
}

.admin-form p {
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--text);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 1px;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.admin-table tr:hover td {
  background: var(--bg-secondary);
}

/* ============ MODAL ============ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease-out;
}

.modal h2 {
  font-family: var(--font-sweet);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* Image lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  animation: fadeIn 0.3s ease-out;
}

/* ============ EMPTY STATES ============ */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 42px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  font-weight: 300;
}

/* ============ MOBILE TOGGLE ============ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 52px;
  background: var(--accent-sage);
  border-bottom: 1px solid #c8ccbf;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.mobile-header-title {
  font-family: var(--font-sweet);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.3px;
}

.mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-toggle:hover {
  background: rgba(255,255,255,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .main-content {
    margin-left: 0;
    padding: 24px 16px;
    padding-top: 68px;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    font-size: 11px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 4px;
  }

  .post-photos {
    grid-template-columns: 1fr;
  }

  .login-container {
    padding: 32px 24px;
  }

  .login-deco { display: none; }
}

/* ============ DÉCORATIONS DE FOND ============ */
.page-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco {
  position: absolute;
  opacity: 0.22;
}

.deco-sun {
  top: 6%;
  right: 3%;
}

.deco-caterpillar {
  bottom: 16%;
  left: 290px;
}

.deco-snail {
  bottom: 3%;
  right: 2%;
}

.deco-daisy {
  top: 52%;
  left: 280px;
}

.deco-whisk {
  top: 30%;
  right: 5%;
}

@media (max-width: 768px) {
  .deco-caterpillar { left: 10px; }
  .deco-daisy { left: 10px; }
  .deco-sun { top: 8%; right: 2%; }
  .deco-whisk { right: 2%; }
}

/* ============ UTILITIES ============ */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-light { color: var(--text-light); }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
