/* Ministère de la Famille – Design moderne */
:root {
  --primary: #84228A;
  --secondary: #F4A300;
  --background: #FAF6EF;
  --neutral: #7A7073;
  --accent: #C2649A;
  --alert: #D96B6B;
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #2c3e50;
  --gradient-primary: linear-gradient(135deg, #84228A 0%, #C2649A 100%);
  --gradient-secondary: linear-gradient(135deg, #F4A300 0%, #ffd700 100%);
  --shadow-light: 0 2px 10px rgba(132, 34, 138, 0.1);
  --shadow-medium: 0 4px 20px rgba(132, 34, 138, 0.15);
  --shadow-heavy: 0 8px 30px rgba(132, 34, 138, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--neutral);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden; /* Prevent horizontal scroll from full-width elements */
}

/* Navigation moderne */
nav {
  background: var(--gradient-primary);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav .nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: relative;
}

nav .logo {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle__label {
  font-size: 0.95rem;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-overlay {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::before {
  width: 80%;
}

/* Menu déroulant discret et élégant */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  /* Hériter des styles des liens de navigation */
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  background: transparent;
  border: none;
  font-size: inherit;
  font-family: inherit;
  overflow: hidden;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.dropdown-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.dropdown-link:hover::before {
  width: 80%;
}

.dropdown-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(132, 34, 138, 0.1);
}

.dropdown-container:hover .dropdown-submenu,
.dropdown-container.active .dropdown-submenu {
  display: block;
  animation: slideDown 0.25s ease;
}

.dropdown-submenu a {
  display: block;
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}

.dropdown-submenu a:last-child {
  border-bottom: none;
}

.dropdown-submenu a:hover {
  background: #f8f9fa;
  color: var(--primary);
  padding-left: 20px;
}

.dropdown-submenu a::before {
  display: none;
}

/* Animation subtile pour le déroulement */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Menu utilisateur avec bouton Connexion */
.user-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.btn-connexion {
  color: white;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  height: 40px;
  line-height: 1;
}

.btn-connexion:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.btn-connexion i {
  font-size: 1.1rem;
}

.user-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 40px;
  line-height: 1;
}

.user-profile-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar i {
  font-size: 1.8rem;
  color: white;
}

.user-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: white;
}

.user-submenu {
  right: 0;
  left: auto;
  min-width: 220px;
  padding: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(132, 34, 138, 0.1);
  overflow: hidden;
}

.submenu-item {
  display: block;
  color: #333 !important;
  padding: 10px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}

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

.submenu-item:hover {
  background: #f8f9fa;
  color: var(--primary) !important;
  padding-left: 20px;
}

.submenu-item i {
  font-size: 0.9rem;
  margin-right: 8px;
  color: #666;
  width: auto;
  display: inline;
}

.submenu-item:hover i {
  color: var(--primary);
}

.submenu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Pages admin/membre/conseiller/superviseur/gestionnaire pleine largeur */
body.admin-page main,
body.membre-page main,
body.conseiller-page main,
body.superviseur-page main,
body.gestionnaire-page main {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px); /* Hauteur de la nav */
}

.admin-sidebar {
  width: 250px;
  background: var(--background);
  color: var(--neutral);
  padding: 2rem 0;
  box-shadow: 2px 0 10px rgba(132, 34, 138, 0.08);
  border-right: 1px solid rgba(132, 34, 138, 0.1);
}

.admin-content {
  flex: 1;
  padding: 2rem;
  background: var(--background);
  overflow-x: auto;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== DASHBOARD MODERNE ===== */

/* Stats Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(132, 34, 138, 0.08);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(132, 34, 138, 0.15);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-filter {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #374151;
  background: white;
  cursor: pointer;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

.stat-change i {
  font-size: 0.75rem;
}

/* Charts Section */
.dashboard-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(132, 34, 138, 0.08);
}

.chart-main {
  min-height: 400px;
}

.chart-secondary {
  min-height: 400px;
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.chart-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-tab {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--neutral);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.chart-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.current {
  background: #2d3748;
}

.legend-dot.last {
  background: #d1d5db;
}

.chart-body {
  position: relative;
  height: 300px;
}

/* Traffic List */
.traffic-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.traffic-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.traffic-name {
  min-width: 80px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.traffic-bar {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.traffic-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Bottom Charts */
.dashboard-bottom-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.location-legend {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.location-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.location-name {
  flex: 1;
  color: #374151;
}

.location-percent {
  color: #6b7280;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-bottom-charts {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* Pages de formulaires individuelles */
.form-page-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.form-page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.form-page-header h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.form-description {
  font-size: 1.1rem;
  color: var(--neutral);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.form-container {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.modern-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(132, 34, 138, 0.1);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.form-section h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--neutral);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 34, 138, 0.1);
  transform: translateY(-1px);
}

.form-text {
  color: var(--neutral);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.error-message {
  color: var(--alert);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(132, 34, 138, 0.1);
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: #f8f9fa;
  color: var(--neutral);
  border: 2px solid #dee2e6;
}

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

.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  font-weight: 500;
  position: relative;
  transition: opacity 0.5s ease;
}

.alert-success {
  background: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

.alert-error, .alert-danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-dismissible {
  padding-right: 3rem;
}

.btn-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.btn-close:hover {
  opacity: 1;
}

/* Styles pour les checkboxes */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--neutral);
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 0.25rem;
  cursor: pointer;
}

/* Responsive pour les formulaires */
@media (max-width: 768px) {
  .form-page-header h1 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* Boutons modernes */
.btn {
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--dark);
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Cards modernes */
.card {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-light);
  padding: 2.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(132, 34, 138, 0.05);
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.card-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.card-description {
  color: var(--neutral);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}

/* Sections modernes */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 0 0 3rem 3rem;
}

.hero h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Grille 5 colonnes pour les pôles */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.poles-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsivité */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav.has-mobile-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
  }

  nav.has-mobile-nav .nav-links a {
    width: 100%;
  }

  nav.has-mobile-nav.is-open .nav-links {
    display: flex;
  }

  nav .nav-container {
    padding: 0.75rem 1rem;
  }

  nav.has-mobile-nav .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
  }

  nav.has-mobile-nav.is-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 1200px) {
  .grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .pole-card.compact {
    min-height: 120px;
    padding: 0.8rem;
  }
  
  .pole-card.compact .card-title {
    font-size: 0.8rem;
  }
  
  .pole-card.compact .card-description {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .grid-5 {
    grid-template-columns: 1fr;
  }
  
  .pole-card.compact {
    min-height: 100px;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* Footer moderne */
footer {
  background: var(--gradient-primary);
  color: #fff;
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
  border-radius: 3rem 3rem 0 0;
  text-align: left;
}

.public-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.public-footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(380px, 1.8fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.public-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.public-footer__logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.public-footer__logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.public-footer__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.public-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.public-footer__cta-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.public-footer__cta-text i {
  font-size: 1.1rem;
}

.public-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.75rem;
}

.public-footer__eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.public-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.public-footer__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.public-footer__links a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.public-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.public-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-footer__legal-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.public-footer__legal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .public-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .public-footer__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================= */
/* NOUVEAUX STYLES POUR LES PAGES MODERNISÉES */
/* ========================================= */

/* Search Section */
.search-section {
  padding: 2rem 0;
  background: var(--white);
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.search-input-group {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
}

.search-input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral);
  font-size: 1.2rem;
}

.search-input-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 2rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 34, 138, 0.1);
}

/* FAQ Styles */
.faq-categories {
  padding: 2rem 0;
  background: var(--light);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--white);
  border: 2px solid #e0e0e0;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--neutral);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--white);
}

.faq-content {
  padding: 3rem 0;
}

.faq-category {
  display: none;
}

.faq-category.active {
  display: block;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  background: var(--gradient-primary);
  color: var(--white);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #6a1b6f 0%, #a5527f 100%);
}

.faq-question h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--secondary);
}

.faq-answer {
  background: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
}

.bible-verses {
  display: grid;
  gap: 1rem;
}

.verse {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--secondary);
}

.verse-text {
  font-style: italic;
  color: var(--primary);
  margin: 0.5rem 0 0 0;
}

/* Calendar Section */
.calendar-section {
  padding: 3rem 0;
}

.quick-actions {
  padding: 3rem 0;
  background: var(--light);
}

/* Contact Page Styles */
.contact-options {
  padding: 3rem 0;
  background: var(--light);
}

.contact-card {
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.contact-card.active {
  border-color: var(--secondary);
  background: var(--gradient-primary);
  color: var(--white);
}

.contact-card.active .card-icon {
  color: var(--secondary);
}

.contact-forms {
  padding: 3rem 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease-out;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.contact-form[style*="block"] {
  opacity: 1;
  transform: translateY(0);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light);
}

.form-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem auto;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 34, 138, 0.1);
}

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

.contact-info {
  padding: 3rem 0;
  background: var(--light);
}

.info-card {
  text-align: center;
}

/* Bug Report Styles */
.bug-options {
  padding: 3rem 0;
  background: var(--light);
}

.option-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.option-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.option-card.active {
  border-color: var(--secondary);
  background: var(--gradient-primary);
  color: var(--white);
}

.option-card.active .card-icon {
  color: var(--secondary);
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.option-card li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.option-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.option-card.active li:before {
  color: var(--secondary);
}

.bug-report-form {
  padding: 3rem 0;
}

.report-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  display: none;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed #e0e0e0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.file-label:hover {
  border-color: var(--primary);
  background: var(--light);
}

.file-label i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.file-label small {
  display: block;
  color: var(--neutral);
  margin-top: 0.5rem;
}

.file-preview {
  margin-top: 1rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--light);
  border-radius: 0.5rem;
}

.remove-file {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  margin-left: auto;
}

.help-section {
  padding: 3rem 0;
  background: var(--light);
}

.help-card {
  text-align: center;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--white);
  color: var(--primary);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  max-width: 400px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: none;
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: #28a745;
  background: #d4edda;
  color: #155724;
}

.toast.info {
  border-left-color: var(--primary);
  background: #e8f4fd;
  color: var(--primary);
}

.toast.warning {
  border-left-color: #ffc107;
  background: #fff3cd;
  color: #856404;
}

.toast.error {
  border-left-color: #dc3545;
  background: #f8d7da;
  color: #721c24;
}

/* ========================================= */
/* STYLES POUR LE CALENDRIER FONCTIONNEL */
/* ========================================= */

/* Calendrier */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 1rem 1rem 0 0;
}

.calendar-title {
  margin: 0;
  font-family: 'Open Sans', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.calendar-nav-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-btn:hover {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.1);
}

.calendar-grid {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 0 0 1rem 1rem;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--light);
  border-bottom: 1px solid #e0e0e0;
}

.day-header {
  padding: 1rem 0.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
}

.calendar-day {
  background: var(--white);
  min-height: 100px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.calendar-day:hover {
  background: rgba(132, 34, 138, 0.05);
}

.calendar-day.empty {
  background: #f5f5f5;
  cursor: default;
}

.calendar-day.today {
  background: var(--gradient-primary);
  color: var(--white);
}

.calendar-day.today:hover {
  background: linear-gradient(135deg, #6a1b6f 0%, #a5527f 100%);
}

.day-number {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.calendar-legend {
  padding: 1rem;
  background: var(--light);
  border-radius: 0 0 1rem 1rem;
  text-align: center;
  color: var(--neutral);
  border-top: 1px solid #e0e0e0;
}

.calendar-legend p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.calendar-legend i {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Empty state pour les événements */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--neutral);
}

.empty-state i {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Open Sans', serif;
}

.empty-state p {
  margin-bottom: 2rem;
  color: var(--neutral);
}

/* Style pour le jour sélectionné */
.calendar-day.selected {
  background: var(--secondary) !important;
  color: var(--white) !important;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
  transform: scale(1.05);
}

.calendar-day.selected .day-number {
  color: var(--white);
}

/* Style pour le conteneur du titre du calendrier */
.calendar-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.today-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.today-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.today-btn i {
  font-size: 0.7rem;
}

/* Responsivité pour le calendrier */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 80px;
    padding: 0.3rem;
  }
  
  .day-number {
    font-size: 1rem;
  }
  
  .day-header {
    padding: 0.5rem 0.3rem;
    font-size: 0.8rem;
  }
  
  .calendar-title {
    font-size: 1.2rem;
  }
  
  .calendar-nav-btn {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .calendar-day {
    min-height: 60px;
    padding: 0.2rem;
  }
  
  .day-number {
    font-size: 0.9rem;
  }
  
  .day-header {
    padding: 0.3rem 0.2rem;
    font-size: 0.7rem;
  }
  
  .calendar-header {
    padding: 0.8rem;
  }
  
  .calendar-title {
    font-size: 1rem;
  }
}

/* Animation pour les changements de mois */
.calendar-grid {
  animation: fadeInCalendar 0.3s ease-out;
}

@keyframes fadeInCalendar {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Style pour le focus accessibility */
.calendar-day:focus,
.calendar-nav-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ========================================= */
/* STYLES POUR LES PÔLES INTERACTIFS */
/* ========================================= */

/* Pôles cliquables */
.pole-card {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.pole-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(132, 34, 138, 0.2);
}

.pole-card.active {
  border: 2px solid var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(132, 34, 138, 0.3);
}

.pole-indicator {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: var(--primary);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pole-card:hover .pole-indicator {
  opacity: 1;
  transform: scale(1.1);
}

.pole-card.active .pole-indicator i {
  transform: rotate(180deg);
}

/* Modal pour les activités des pôles */
.pole-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeInModal 0.3s ease;
}

.pole-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pole-modal-content {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideInModal 0.3s ease;
}

.pole-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 1rem 1rem 0 0;
}

.pole-modal-header h2 {
  margin: 0;
  font-family: 'Open Sans', serif;
}

.pole-modal-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pole-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.pole-modal-body {
  padding: 2rem;
}

.activity-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.activity-item {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.activity-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.activity-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-item p {
  margin: 0.5rem 0 0 0;
  color: var(--neutral);
  line-height: 1.6;
}

.activity-item ul {
  margin: 0.5rem 0 0 1rem;
  color: var(--neutral);
}

.activity-item ul li {
  margin: 0.3rem 0;
}

.pole-contact {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  text-align: center;
}

.pole-contact h4 {
  margin: 0 0 1rem 0;
  color: var(--white);
}

.pole-contact .btn {
  background: var(--white);
  color: var(--primary);
  border: none;
  margin-top: 1rem;
}

.pole-contact .btn:hover {
  background: var(--light);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInModal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .pole-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .pole-modal-header {
    padding: 1rem 1.5rem;
  }
  
  .pole-modal-body {
    padding: 1.5rem;
  }
  
  .pole-indicator {
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

/* ===================================
   CONTACT PAGE LAYOUT
   =================================== */

/* Layout principal de la page contact */
.contact-layout {
  padding: 2rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  min-height: 600px;
}

/* Menu latéral */
.contact-sidebar {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.contact-sidebar h3 {
  margin: 0 0 1.5rem 0;
  color: var(--primary);
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light);
}

.contact-sidebar {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  height: fit-content;
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-sidebar h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 2px solid var(--light);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  font-size: 0.9rem;
  color: var(--neutral);
}

.menu-item:hover {
  background: rgba(138, 43, 226, 0.08);
  border-color: rgba(138, 43, 226, 0.3);
  color: var(--neutral);
  transform: translateX(3px);
}

.menu-item:focus {
  outline: none;
  background: rgba(138, 43, 226, 0.06);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.menu-item.active {
  background: rgba(138, 43, 226, 0.12);
  border-color: rgba(138, 43, 226, 0.5);
  color: var(--neutral);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.15);
}

.menu-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--primary);
  transition: color 0.3s ease;
}

.menu-item:hover i,
.menu-item.active i {
  color: rgba(138, 43, 226, 0.8);
}

.menu-item span {
  font-weight: 500;
  line-height: 1.3;
}

/* Zone de contenu principal */
.contact-content {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-light);
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Instructions par défaut */
.form-instructions {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--neutral);
  transition: all 0.3s ease;
}

.instruction-icon {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.form-instructions:hover .instruction-icon {
  transform: scale(1.05);
}

.instruction-icon i {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.form-instructions:hover .instruction-icon i {
  opacity: 0.5;
  color: rgba(138, 43, 226, 0.6);
}

.form-instructions h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
}

.form-instructions p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Formulaires dans le nouveau layout */
.contact-content .contact-form {
  width: 100%;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.contact-content .contact-form[style*="block"] {
  opacity: 1;
  transform: translateY(0);
}

.contact-content .contact-form .form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light);
}

.contact-content .contact-form .form-header h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-content .contact-form .form-header p {
  color: var(--neutral);
  font-style: italic;
}

.contact-content .contact-form .form-icon i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Classes utilitaires pour l'affichage des formulaires */
.contact-form.hidden {
  display: none !important;
}

.contact-form.visible {
  display: block !important;
  animation: fadeInUp 0.4s ease;
}

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

/* Responsive design pour le contact layout */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-sidebar {
    position: static;
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .menu-item {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .menu-item span {
    display: none;
  }
  
  .menu-item:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  .contact-sidebar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .menu-item {
    min-width: auto;
  }
  
  .menu-item span {
    display: block;
    font-size: 0.8rem;
  }
  
  .contact-content .contact-form {
    padding: 1.5rem;
  }
  
  .form-instructions {
    padding: 2rem 1.5rem;
  }
  
  .instruction-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-layout {
    padding: 1rem 0;
  }
  
  .contact-wrapper {
    gap: 1rem;
  }
  
  .contact-sidebar {
    padding: 1rem;
  }
  
  .contact-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .menu-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .contact-content .contact-form {
    padding: 1rem;
  }
}

/* ===================================
   FORMULAIRES STANDARDISES
   =================================== */

/* Container principal pour tous les formulaires */
.couple-form-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

/* Header de formulaire standardisé */
.couple-form-container .form-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  margin: 0;
  margin-bottom: 2rem;
  border-radius: 1rem 1rem 0 0;
}

.couple-form-container .form-header h1 {
  color: var(--white) !important;
  margin: 0 0 1rem 0 !important;
  font-size: 2rem !important;
  font-weight: 700;
}

.couple-form-container .form-header .header-tagline {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem !important;
  margin-bottom: 1rem;
  font-weight: 500;
}

.couple-form-container .form-header .form-description {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1rem !important;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

/* Contenu des formulaires */
.couple-form-container form,
.couple-form-container .form-content {
  padding: 2rem;
}

/* Sections de formulaire */
.couple-form-container .form-section {
  background: var(--light);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(132, 34, 138, 0.1);
}

.couple-form-container .form-section h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* Sections côte à côte pour les couples */
.couple-sections-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.couple-section {
  flex: 1 1 0;
  min-width: 340px;
  background: var(--light);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(132, 34, 138, 0.1);
}

.couple-section h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  text-align: center;
}

/* Responsive pour les formulaires */
@media (max-width: 992px) {
  .couple-sections-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .couple-section {
    min-width: auto;
  }
  
  .couple-form-container {
    margin: 1rem;
    padding: 0;
  }
  
  .couple-form-container .form-header {
    padding: 1.5rem;
  }
  
  .couple-form-container form,
  .couple-form-container .form-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .couple-form-container .form-header h1 {
    font-size: 1.6rem !important;
  }
  
  .couple-form-container .form-header .header-tagline {
    font-size: 1rem !important;
  }
  
  .couple-form-container .form-header .form-description {
    font-size: 0.9rem !important;
  }
  
  .couple-form-container form,
  .couple-form-container .form-content {
    padding: 1rem;
  }
  
  .couple-form-container .form-section {
    padding: 1rem;
  }
}

/* ===================================
   FORMATIONS PAGE STYLES
   =================================== */

/* Section formations */
.formations-section {
  padding: 3rem 0;
}

.formations-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.formations-intro h2 {
  font-family: 'Open Sans', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.formations-intro p {
  font-size: 1.1rem;
  color: var(--neutral);
  line-height: 1.6;
}

/* ===================================
   AGENDA PAGE STYLES - MODERN CALENDAR
   =================================== */

/* Section agenda */
.agenda-section {
  padding: 3rem 0;
}

.agenda-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.agenda-intro h2 {
  font-family: 'Open Sans', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.agenda-intro p {
  font-size: 1.1rem;
  color: var(--neutral);
  line-height: 1.6;
}

/* Wrapper du calendrier */
.agenda-calendar-wrapper {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-medium);
  padding: 2rem;
  margin-bottom: 3rem;
}

/* En-tête du calendrier */
.agenda-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light);
}

.agenda-current-period {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex: 1;
  text-align: center;
}

.agenda-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.agenda-nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.agenda-view-controls {
  display: flex;
  gap: 0.5rem;
  background: var(--light);
  padding: 0.25rem;
  border-radius: 0.75rem;
}

.agenda-view-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--neutral);
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.agenda-view-btn--active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(132, 34, 138, 0.2);
}

/* Calendrier hebdomadaire */
.agenda-calendar {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--light);
}

.agenda-calendar-days-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 0;
  background: var(--gradient-primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.agenda-time-column {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.agenda-day-header {
  padding: 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.agenda-day-header:last-child {
  border-right: none;
}

.agenda-day-header--today {
  background: rgba(255, 255, 255, 0.2);
}

.agenda-day-header--today .agenda-day-date {
  background: var(--secondary);
  color: var(--dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.agenda-day-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.agenda-day-date {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Grille horaire */
.agenda-calendar-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  background: var(--white);
  min-height: 600px;
}

.agenda-time-slot {
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  color: var(--neutral);
  font-weight: 600;
  border-right: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  text-align: right;
}

.agenda-day-column {
  border-right: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  position: relative;
  background: var(--background);
  transition: background 0.2s ease;
}

.agenda-day-column:hover {
  background: rgba(132, 34, 138, 0.02);
}

.agenda-day-column:last-child {
  border-right: none;
}

/* Événement dans le calendrier */
.agenda-event {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 0.85rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agenda-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.agenda-event--formation {
  background: rgba(59, 130, 246, 0.9);
  border-left: 3px solid #2563eb;
  color: var(--white);
}

.agenda-event--conference {
  background: rgba(244, 163, 0, 0.9);
  border-left: 3px solid #d97706;
  color: var(--dark);
}

.agenda-event--rencontre {
  background: rgba(132, 34, 138, 0.9);
  border-left: 3px solid #6b21a8;
  color: var(--white);
}

.agenda-event--celebration {
  background: rgba(194, 100, 154, 0.9);
  border-left: 3px solid #a21caf;
  color: var(--white);
}

.agenda-event--default {
  background: rgba(122, 112, 115, 0.9);
  border-left: 3px solid #4b5563;
  color: var(--white);
}

.agenda-event-time {
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.agenda-event-title {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Section événements à venir */
.agenda-upcoming {
  padding: 2rem 0;
}

.agenda-upcoming h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.agenda-upcoming-subtitle {
  text-align: center;
  color: var(--neutral);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.agenda-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Carte événement */
.agenda-event-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(132, 34, 138, 0.1);
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
}

.agenda-event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.agenda-event-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 1rem;
  background: rgba(132, 34, 138, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.agenda-event-content {
  flex: 1;
}

.agenda-event-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.agenda-event-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.15);
  color: #b02a37;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.agenda-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.agenda-event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neutral);
  font-size: 0.9rem;
}

.agenda-event-meta-item i {
  color: var(--primary);
}

.agenda-event-description {
  margin: 0;
  color: var(--neutral);
  line-height: 1.5;
  font-size: 0.95rem;
}

.agenda-empty {
  text-align: center;
  padding: 3rem;
  color: var(--neutral);
  background: var(--light);
  border-radius: 1rem;
}

.agenda-empty i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.agenda-empty p {
  margin: 0;
  font-size: 1.1rem;
}

/* Responsivité */
@media (max-width: 1024px) {
  .agenda-calendar-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .agenda-current-period {
    flex: 1 0 100%;
    order: -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .agenda-intro h2 {
    font-size: 2rem;
  }
  
  .agenda-calendar-wrapper {
    padding: 1rem;
  }
  
  .agenda-calendar-header {
    gap: 0.75rem;
  }
  
  .agenda-current-period {
    font-size: 1.2rem;
  }
  
  .agenda-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .agenda-view-controls {
    flex: 1 0 100%;
    order: 2;
  }
  
  .agenda-upcoming-grid {
    grid-template-columns: 1fr;
  }
  
  .agenda-event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Section formations */
.formations-section {
  padding: 3rem 0;
}

.formations-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.formations-intro h2 {
  font-family: 'Open Sans', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.formations-intro p {
  font-size: 1.1rem;
  color: var(--neutral);
  line-height: 1.6;
}

/* Grille des formations - style moderne inspiré de l'image */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Carte de formation - nouveau design */
.formation-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out;
}

.formation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.formation-card--upcoming {
  opacity: 0.9;
}

/* Images de formation */
.formation-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--gradient-primary);
}

.formation-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  border: none;
}

.formation-card:hover .formation-thumbnail {
  transform: scale(1.08);
}

/* Corps de la carte */
.formation-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.formation-title {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.formation-description {
  color: var(--neutral);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

/* Métadonnées - style icônes + texte */
.formation-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.formation-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral);
  font-size: 0.9rem;
}

.formation-meta-item i {
  color: var(--primary);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.formation-meta-item span {
  font-weight: 500;
}

/* Bouton d'inscription - style moderne */
.formation-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.formation-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(132, 34, 138, 0.3);
}

.formation-btn i {
  font-size: 1.1rem;
}

.formation-btn--disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.formation-btn--disabled:hover {
  background: #e0e0e0;
  transform: none;
  box-shadow: none;
}

/* Message si aucune formation */
.no-formations {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: var(--light);
  border-radius: 1rem;
  color: var(--neutral);
}

/* Utilité pour les images fluides */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Responsivité */
@media (max-width: 768px) {
  .formations-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .formation-image {
    height: 180px;
  }
  
  .formations-intro h2 {
    font-size: 2rem;
  }
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Suppression des anciens styles non utilisés */

/* Boutons de formation */
.formation-footer .btn {
  flex: 1;
  min-width: 150px;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
}

.formation-footer .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.formation-footer .btn-secondary {
  background: #f8f9fa;
  color: var(--neutral);
  border: 2px solid #e9ecef;
}

.formation-footer .btn-secondary:hover {
  background: #e9ecef;
  transform: none;
}

.formation-footer .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Bouton outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Section contact formation */
.formation-contact {
  text-align: center;
  margin-top: 3rem;
}

.contact-card {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-card h3 {
  margin: 0 0 1rem 0;
  font-family: 'Open Sans', serif;
  font-size: 1.5rem;
}

.contact-card p {
  margin: 0 0 1.5rem 0;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-card .btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.contact-card .btn-outline:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ===================================
   FORMULAIRES UNIFORMES ET SIMPLIFIÉS
   =================================== */

/* Container principal pour tous les formulaires */
.couple-form-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

/* Header uniforme pour tous les formulaires */
.form-header {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  margin-bottom: 0 !important;
}

.form-header h1 {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  margin: 0 0 0.5rem 0 !important;
  font-weight: 700;
}

.form-header .header-tagline {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem !important;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.form-header .form-description {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem !important;
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenu du formulaire */
.form-content {
  padding: 2rem;
}

/* Sections de formulaire */
.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.form-section h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(132, 34, 138, 0.1);
}

/* Rangées de champs */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

/* Groupes de champs */
.form-group {
  margin-bottom: 1rem;
}

/* Labels uniformes */
.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-label.required::after {
  content: " *";
  color: var(--alert);
}

/* Champs de saisie uniformes */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 34, 138, 0.1);
}

/* Textarea spécifique */
.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Checkboxes et radios */
.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-check-item:hover {
  background: rgba(132, 34, 138, 0.05);
  border-color: var(--primary);
}

.form-check-item input[type="checkbox"],
.form-check-item input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.form-check-item label {
  margin: 0;
  font-weight: 500;
  color: var(--neutral);
  cursor: pointer;
}

/* Messages d'erreur */
.form-message.error {
  color: var(--alert);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Sections spéciales pour couples */
.couple-sections-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.couple-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--light);
  box-shadow: 0 2px 8px rgba(132, 34, 138, 0.05);
}

.couple-section h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

/* Boutons d'action */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--light);
}

.btn-submit {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-reset {
  background: #f8f9fa;
  color: var(--neutral);
  padding: 0.75rem 2rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Responsive pour formulaires */
@media (max-width: 768px) {
  .couple-form-container {
    margin: 1rem;
    padding: 0;
  }
  
  .form-header {
    padding: 1.5rem 1rem;
  }
  
  .form-header h1 {
    font-size: 1.5rem !important;
  }
  
  .form-content {
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .couple-sections-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-submit,
  .btn-reset {
    width: 100%;
  }
}

/* ===== STYLES ADMIN PANEL ===== */

/* Sidebar Admin */
.sidebar {
  min-height: 100vh;
  background: var(--background);
  color: var(--neutral);
}

.admin-sidebar .sidebar-content {
  padding: 1.5rem;
}

.admin-sidebar .nav {
  gap: 0.5rem;
}

.admin-sidebar .nav-link {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--neutral);
  transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
  color: var(--primary);
  background-color: rgba(132, 34, 138, 0.08);
  transform: translateX(4px);
}

.admin-sidebar .nav-link.active {
  color: white !important;
  background: var(--gradient-primary) !important;
  box-shadow: 0 2px 8px rgba(132, 34, 138, 0.3);
  font-weight: 600;
}

.admin-sidebar .nav-link i {
  font-size: 1.2rem;
}

.admin-sidebar hr {
  border-color: rgba(132, 34, 138, 0.15);
  margin: 2rem 0;
}

.admin-sidebar .nav-link[href*="home"] {
  opacity: 0.8;
}

/* Stats Cards Admin */
.stats-card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}

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

/* Boutons Admin */
.admin-content .btn-primary {
  background: var(--gradient-primary);
  border: none;
  transition: all 0.3s ease;
}

.admin-content .btn-primary:hover {
  background: linear-gradient(135deg, #6b1c71 0%, #a8507e 100%);
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

/* Header Admin - Fondu sans bordure */
.admin-header {
  border: none;
  border-bottom: none;
  background: transparent;
  box-shadow: none;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.admin-header h1 {
  color: var(--primary);
  font-weight: 600;
  width: 100%;
  text-align: center;
  margin: 0;
}

.admin-header .btn-toolbar {
  position: absolute;
  right: 2rem;
  top: 0;
}

/* Flash Messages Admin */
.admin-content .alert {
  margin-bottom: 1.5rem;
}

/* Formulaires inline dans les tables admin */
.inline-form {
  display: inline;
}

/* JSON viewer dans modal */
.json-viewer {
  max-height: 500px;
  overflow-y: auto;
  border-radius: 5px;
  font-family: monospace;
}

.json-viewer pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Thumbnail d'image dans les forms */
.form-image-thumbnail {
  max-width: 150px;
  max-height: 100px;
}

/* Logo container */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-icc {
  height: 40px;
  max-width: 100%;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.logo-famille {
  height: 40px;
  max-width: 100%;
  background: transparent;
  border-radius: 4px;
  padding: 2px;
  box-shadow: none;
  opacity: 0.85;
}

/* Icones dans texte */
.icon-in-text {
  color: var(--primary);
  margin-right: 0.5rem;
}

.dropdown-icon {
  font-size: 0.75rem;
  margin-left: 6px;
}

/* Container principal */
main.main-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* Classes utilitaires */
.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ==============================================
   STYLES HARMONISÉS POUR LES PAGES ADMIN
   ============================================== */

/* Stats Cards harmonisées avec la charte du site */
.admin-stats-card {
  background: var(--gradient-primary);
  border: none;
  color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.admin-stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.admin-stats-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.admin-stats-card:hover::before {
  transform: scale(1.2);
}

/* Cards harmonisées */
.admin-content .card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  background: var(--white);
}

.admin-content .card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.admin-content .card-header {
  background: var(--white);
  border-bottom: 2px solid var(--background);
  padding: 1.5rem;
  border-radius: 1rem 1rem 0 0;
  font-weight: 600;
  color: var(--dark);
}

.admin-content .card-body {
  padding: 1.5rem;
}

/* Badges harmonisés avec la charte */
.admin-content .badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

/* Badges avec couleurs de la charte */
.admin-content .badge.bg-primary-subtle {
  background-color: rgba(132, 34, 138, 0.1) !important;
  color: var(--primary) !important;
  border-color: rgba(132, 34, 138, 0.2);
}

.admin-content .badge.bg-success-subtle {
  background-color: rgba(40, 167, 69, 0.1) !important;
  color: #28a745 !important;
  border-color: rgba(40, 167, 69, 0.2);
}

.admin-content .badge.bg-info-subtle {
  background-color: rgba(244, 163, 0, 0.1) !important;
  color: var(--secondary) !important;
  border-color: rgba(244, 163, 0, 0.2);
}

.admin-content .badge.bg-warning-subtle {
  background-color: rgba(255, 193, 7, 0.1) !important;
  color: #b45309 !important;
  border-color: rgba(255, 193, 7, 0.2);
}

.admin-content .badge.bg-danger-subtle {
  background-color: rgba(217, 107, 107, 0.1) !important;
  color: var(--alert) !important;
  border-color: rgba(217, 107, 107, 0.2);
}

.admin-content .badge.bg-secondary-subtle {
  background-color: rgba(122, 112, 115, 0.1) !important;
  color: var(--neutral) !important;
  border-color: rgba(122, 112, 115, 0.2);
}

/* Tables harmonisées */
.admin-content .table {
  margin-bottom: 0;
  color: var(--neutral);
}

.admin-content .table th {
  border-bottom: 2px solid var(--background);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.25rem 1rem;
  background: var(--light);
}

.admin-content .table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--background);
  vertical-align: middle;
}

.admin-content .table tbody tr {
  transition: all 0.3s ease;
}

.admin-content .table tbody tr:hover {
  background: linear-gradient(90deg, rgba(132, 34, 138, 0.02) 0%, rgba(244, 163, 0, 0.02) 100%);
  transform: translateX(3px);
}

/* Avatars harmonisés */
.admin-content .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-light);
  background: var(--gradient-primary);
}

/* Boutons d'action harmonisés */
.admin-content .btn.rounded-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  transition: all 0.3s ease;
  border: 2px solid;
  font-weight: 600;
}

.admin-content .btn.rounded-circle:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-medium);
}

.admin-content .btn-outline-primary.rounded-circle {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-content .btn-outline-primary.rounded-circle:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: white;
}

.admin-content .btn-outline-danger.rounded-circle {
  border-color: var(--alert);
  color: var(--alert);
}

.admin-content .btn-outline-danger.rounded-circle:hover {
  background: linear-gradient(135deg, var(--alert) 0%, #ff4757 100%);
  border-color: var(--alert);
  color: white;
}

.admin-content .btn-outline-info.rounded-circle {
  border-color: var(--secondary);
  color: var(--secondary);
}

.admin-content .btn-outline-info.rounded-circle:hover {
  background: var(--gradient-secondary);
  border-color: var(--secondary);
  color: white;
}

/* Input groups harmonisés */
.admin-content .input-group-text {
  background: var(--light);
  border-color: var(--background);
  color: var(--neutral);
  font-weight: 600;
}

.admin-content .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(132, 34, 138, 0.25);
}

.admin-content .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(132, 34, 138, 0.25);
}

/* Boutons principaux harmonisés */
.admin-content .btn-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.admin-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.admin-content .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-width: 2px;
}

.admin-content .btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
}

/* Header admin harmonisé */
.admin-header {
  border-bottom: 3px solid var(--background) !important;
  background: linear-gradient(90deg, rgba(132, 34, 138, 0.02) 0%, rgba(244, 163, 0, 0.02) 100%);
  padding: 2rem 0 !important;
  margin-bottom: 2rem !important;
  border-radius: 1rem;
}

.admin-header h1 {
  color: var(--dark);
  font-weight: 800;
  font-family: 'Open Sans', sans-serif;
}

.admin-header .badge {
  background: var(--gradient-primary) !important;
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Modals harmonisés */
.admin-content .modal-content {
  border: none;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.admin-content .modal-header {
  background: var(--gradient-primary);
  color: white;
  border-bottom: none;
  padding: 1.5rem;
  font-weight: 700;
}

.admin-content .modal-header.bg-light {
  background: var(--light) !important;
  color: var(--dark) !important;
}

.admin-content .modal-footer {
  border-top: 2px solid var(--background);
  padding: 1.5rem;
  background: var(--light);
}

.admin-content .modal .card {
  box-shadow: var(--shadow-light);
  border-radius: 0.75rem;
}

.admin-content .modal .card-header.bg-primary {
  background: var(--gradient-primary) !important;
}

.admin-content .modal .card-header.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.admin-content .modal .card-header.bg-info {
  background: var(--gradient-secondary) !important;
}

/* Empty states harmonisés */
.admin-content .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--neutral);
  background: var(--light);
  border-radius: 1rem;
  margin: 2rem 0;
}

.admin-content .empty-state i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
  color: var(--primary);
}

/* Animations harmonisées */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-content .card {
  animation: fadeInUp 0.6s ease-out;
}

/* States de chargement */
.admin-content .loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.admin-content .loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--background);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast notifications harmonisés */
.toast-container .toast {
  border-radius: 0.75rem;
  box-shadow: var(--shadow-medium);
  border: none;
}

.toast.text-bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.toast.text-bg-danger {
  background: linear-gradient(135deg, var(--alert) 0%, #ff4757 100%) !important;
}

.toast.text-bg-info {
  background: var(--gradient-secondary) !important;
}

.toast.text-bg-primary {
  background: var(--gradient-primary) !important;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    min-height: auto;
  }
  
  .admin-header h1 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .admin-header .btn-toolbar {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .admin-content .card-header,
  .admin-content .card-body {
    padding: 1rem;
  }
  
  .admin-content .table th,
  .admin-content .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .admin-content .btn.rounded-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem;
  }
  
  .admin-stats-card {
    margin-bottom: 1rem;
  }
}

/* Formulaires harmonisés */
.form-page .card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  background: var(--white);
}

.form-page .card-header {
  background: var(--gradient-primary);
  color: white;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem;
  font-weight: 700;
}

.form-page .form-control:focus,
.form-page .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(132, 34, 138, 0.25);
}

.form-page .btn-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-light);
}

.form-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

/* Profile Avatar Large */
.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.profile-avatar-large:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.avatar-initials-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
}

/* Profile Cards */
.profile-page .card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.profile-page .card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.profile-page .card-header {
  background: white;
  border-bottom: 2px solid var(--background);
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
}

.profile-page .card-header h5 {
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

/* Profile Form Elements */
.profile-page .form-label {
  color: var(--neutral);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.profile-page .form-control,
.profile-page .form-select {
  border: 2px solid var(--background);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(132, 34, 138, 0.15);
  background: white;
}

.profile-page .form-text {
  color: var(--neutral);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Profile Buttons */
.profile-page .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.profile-page .btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-light);
}

.profile-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.profile-page .btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.profile-page .btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.profile-page .btn-outline-secondary {
  border: 2px solid var(--neutral);
  color: var(--neutral);
}

.profile-page .btn-outline-secondary:hover {
  background: var(--neutral);
  color: white;
  transform: translateY(-2px);
}

.profile-page .btn-outline-danger {
  border: 2px solid var(--alert);
  color: var(--alert);
}

.profile-page .btn-outline-danger:hover {
  background: var(--alert);
  color: white;
  transform: translateY(-2px);
}

/* Profile Badges */
.profile-page .badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* Profile Switch */
.profile-page .form-check-input {
  width: 3rem;
  height: 1.5rem;
  border: 2px solid var(--background);
  cursor: pointer;
}

.profile-page .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.profile-page .form-check-label {
  margin-left: 0.5rem;
  cursor: pointer;
}

/* Profile Alerts */
.profile-page .alert {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.profile-page .alert-info {
  background: rgba(132, 34, 138, 0.1);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

/* Profile Stats Section */
.profile-page .card-body small.text-muted {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--neutral);
  opacity: 0.7;
}

.profile-page .card-body p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* Profile Actions Grid */
.profile-page .d-grid {
  gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-avatar-large {
    width: 90px;
    height: 90px;
  }
  
  .avatar-initials-large {
    font-size: 2rem;
  }
  
  .profile-page .card-header h5 {
    font-size: 1rem;
  }
}

/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

/* Modern Login Container */
.modern-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, #f8f4f0 100%);
  padding: 2rem 1rem;
}

.modern-login-card {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-heavy);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
}

.modern-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Login Header */
.modern-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-placeholder {
  display: flex;
  align-items: center;
}

.login-logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.login-header-text {
  text-align: right;
  font-size: 0.9rem;
  color: var(--neutral);
}

.account-prompt {
  display: block;
  margin-bottom: 0.25rem;
}

.signup-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  position: relative;
}

.welcome-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.welcome-subtitle {
  color: var(--neutral);
  font-size: 1.1rem;
  margin: 0;
  margin-top: 1rem;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: 1.5rem;
}

.flash-message {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  border: none;
}

.flash-error {
  background: #fef2f2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

.flash-success {
  background: #f0fdf4;
  color: #16a34a;
  border-left: 4px solid #16a34a;
}

/* Social Section */
.social-section {
  text-align: center;
  margin-bottom: 2rem;
}

.social-text {
  color: var(--neutral);
  font-size: 0.95rem;
  margin: 0;
  position: relative;
}

.social-text::before,
.social-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: #e5e7eb;
}

.social-text::before {
  left: -100px;
}

.social-text::after {
  right: -100px;
}

/* Login Form */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #f3f4f6;
  border-radius: 0.875rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
  color: var(--dark);
  font-weight: 500;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(132, 34, 138, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Password Input Container */
.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--neutral);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  background: #f3f4f6;
  color: var(--primary);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--neutral);
  font-weight: 500;
}

.remember-me input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0.875rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.login-button:active {
  transform: translateY(0);
}

/* Back to site link */
.back-to-site {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.back-link {
  color: var(--neutral);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Register Button */
.register-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0.875rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.register-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.register-button:active {
  transform: translateY(0);
}

/* Terms Section */
.terms-section {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.terms-text {
  color: var(--neutral);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.terms-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Flash message info style */
.flash-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: 4px solid #1d4ed8;
}

/* ============================================
   MODERN PROFILE PAGE STYLES
   ============================================ */

/* Profile Container */
.modern-profile-container {
  min-height: 100vh;
  background: var(--background);
  padding: 2rem;
}

.modern-profile-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Profile Sections */
.profile-section {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.profile-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2rem 0;
  padding: 2rem 2rem 0 2rem;
}

.profile-subsection-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 2rem 0 1rem 0;
  padding: 0 2rem;
}

/* Left Column - Account Management */
.profile-left-column {
  display: flex;
  flex-direction: column;
}

.profile-left-column .profile-section {
  padding: 0 0 2rem 0;
}

/* Profile Photo Section */
.profile-photo-section {
  padding: 0 2rem 2rem 2rem;
  text-align: center;
}

.profile-photo-placeholder {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto;
  position: relative;
}

.profile-photo-close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #666;
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.profile-photo-close:hover {
  background: #333;
}

.upload-photo-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.upload-photo-btn:hover {
  background: var(--background);
  color: var(--accent);
}

/* Password Section */
.password-section {
  padding: 0 2rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 2rem;
}

.password-field {
  margin-bottom: 1.5rem;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral);
  margin-bottom: 0.5rem;
}

.profile-input, .profile-select, .profile-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #f0f0f0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafafa;
  color: var(--dark);
}

.profile-input:focus, .profile-select:focus, .profile-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(132, 34, 138, 0.1);
}

/* Password Toggle Button in Profile */
.password-input-container {
  position: relative;
}

.password-toggle-profile {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--neutral);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-profile:hover {
  background: #f3f4f6;
  color: var(--primary);
}

.password-toggle-profile .icon-eye-off {
  display: none;
}

.password-toggle-profile.is-visible .icon-eye {
  display: none;
}

.password-toggle-profile.is-visible .icon-eye-off {
  display: block;
}

.profile-input.input-error {
  border-color: #dc3545;
}

.profile-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}

.change-password-btn, .save-profile-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.change-password-btn:hover, .save-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cancel-btn {
  background: #f8f9fa;
  color: var(--neutral);
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #e9ecef;
  color: var(--dark);
}

/* Right Column - Profile Information */
.profile-right-column .profile-section {
  padding: 0 0 2rem 0;
}

.profile-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 1rem;
  padding: 2rem 2rem 0 2rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 2rem;
}

/* Profile Navigation */
.profile-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 0 1rem;
}

.nav-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.nav-link:hover {
  background: var(--background);
  color: var(--accent);
  text-decoration: none;
}

.logout-link {
  color: #dc3545;
}

.logout-link:hover {
  background: #f8d7da;
  color: #721c24;
}

/* Flash Messages in Profile */
.flash-messages {
  margin-bottom: 2rem;
  padding: 0 2rem;
}

/* Profile Responsive Design */
@media (max-width: 1200px) {
  .modern-profile-wrapper {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 968px) {
  .modern-profile-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .profile-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modern-profile-container {
    padding: 1rem;
  }
  
  .profile-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .profile-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .profile-section-title {
    font-size: 1.25rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
  }
  
  .profile-form-row, .password-section, .profile-photo-section, .profile-actions {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .profile-subsection-title {
    padding: 0 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-login-container {
    padding: 1rem;
  }
  
  .modern-login-card {
    padding: 2rem 1.5rem;
  }
  
  .modern-login-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .login-header-text {
    text-align: center;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .social-text::before,
  .social-text::after {
    width: 60px;
  }
  
  .social-text::before {
    left: -80px;
  }
  
  .social-text::after {
    right: -80px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .social-text::before,
  .social-text::after {
    display: none;
  }
}

/* ============================================
   LEGACY LOGIN PAGE STYLES (pour compatibilité)
   ============================================ */

/* Login Page Card */
.login-page .card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.login-page .card-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.login-page .card-header h3 {
  color: white;
  font-weight: 700;
  margin: 0;
}

.login-page .card-header p {
  opacity: 0.9;
}

/* Login Form Elements */
.login-page .form-label {
  color: var(--neutral);
  font-weight: 600;
}

.login-page .form-control {
  border: 2px solid var(--background);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.login-page .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(132, 34, 138, 0.15);
}

.login-page .form-control::placeholder {
  color: #999;
}

/* Login Button */
.login-page .btn-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.login-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Login Footer Link */
.login-page .border-top {
  border-color: var(--background) !important;
}

.login-page a {
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-page a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Responsive Login */
@media (max-width: 768px) {
  .login-page .col-md-5 {
    padding: 0 1rem;
  }
}
