/* === VARIABLES CSS ET COULEURS OFFICIELLES CHANTRES UNIS === */
:root {
  /* Couleurs officielles Chantres Unis */
  --bleu-cui: #3EA9D4;        /* RGB(62, 169, 212) */
  --rouge-cui: #B42D24;       /* RGB(180, 45, 36) */
  --gris-secondaire: #757575; /* RGB(117, 117, 117) */
  --blanc: #FFFFFF;           /* RGB(255, 255, 255) */
  --noir: #000000;            /* RGB(0, 0, 0) */
  
  /* Couleurs dérivées pour l'interface */
  --bleu-cui-light: #E8F4F8;
  --rouge-cui-light: #F4E8E7;
  --gris-light: #F5F5F5;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  /* Typographie */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Bordures */
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--noir);
  background-color: var(--blanc);
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER ET LOGO === */
.header {
  background: linear-gradient(135deg, var(--bleu-cui) 0%, var(--rouge-cui) 100%);
  color: var(--blanc);
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.header-simple {
  background-color: var(--blanc);
  border-bottom: 3px solid var(--bleu-cui);
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header {
  background: linear-gradient(90deg, var(--bleu-cui) 0%, var(--rouge-cui) 100%);
  color: var(--blanc);
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-simple .logo-container,
.dashboard-header .logo-container {
  flex-direction: row;
  gap: var(--spacing-md);
}

.logo {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header h1,
.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-simple h1 {
  color: var(--bleu-cui);
  font-size: 2rem;
  text-shadow: none;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: var(--spacing-sm);
}

/* === NAVIGATION === */
.nav-link {
  color: var(--bleu-cui);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dashboard-header .nav-link {
  color: var(--blanc);
  background-color: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  color: var(--rouge-cui);
}

.dashboard-header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--blanc);
}

/* === CONTENU PRINCIPAL === */
.main-content {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--gris-secondaire);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mission-card {
  background: linear-gradient(135deg, var(--bleu-cui-light) 0%, var(--rouge-cui-light) 100%);
  border: 2px solid var(--bleu-cui);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) auto;
  max-width: 600px;
}

.mission-card h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.mission-card p {
  color: var(--noir);
  font-weight: 500;
  font-size: 1.1rem;
}

/* === BOUTONS === */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bleu-cui) 0%, #2E8CB8 100%);
  color: var(--blanc);
  box-shadow: var(--shadow);
}

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

.btn-secondary {
  background-color: var(--blanc);
  color: var(--bleu-cui);
  border: 2px solid var(--bleu-cui);
}

.btn-secondary:hover {
  background-color: var(--bleu-cui);
  color: var(--blanc);
}

.btn-accent {
  background: linear-gradient(135deg, var(--rouge-cui) 0%, #A02419 100%);
  color: var(--blanc);
  box-shadow: var(--shadow);
}

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

.btn-full {
  width: 100%;
}

.btn-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* === SECTIONS D'ACTIONS === */
.action-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.info-section {
  margin-bottom: var(--spacing-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-card {
  background-color: var(--blanc);
  border: 2px solid var(--bleu-cui-light);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.stat-card p {
  color: var(--gris-secondaire);
  font-weight: 500;
}

/* === FORMULAIRES === */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

.auth-card {
  background-color: var(--blanc);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 450px;
}

.signup-card {
  background-color: var(--blanc);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 800px;
  margin: var(--spacing-lg) auto;
}

.auth-card h2,
.signup-card h2 {
  color: var(--bleu-cui);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--gris-secondaire);
  margin-bottom: var(--spacing-lg);
}

.form-section {
  border: 2px solid var(--bleu-cui-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.form-section legend {
  color: var(--bleu-cui);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0 var(--spacing-sm);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group label {
  display: block;
  color: var(--noir);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid #E0E0E0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bleu-cui);
  box-shadow: 0 0 0 3px rgba(62, 169, 212, 0.1);
}

/* Style spécial pour la sélection d'association en haut */
.association-selection {
  background: linear-gradient(135deg, var(--bleu-cui-light) 0%, var(--rouge-cui-light) 100%);
  border: 2px solid var(--bleu-cui);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow);
}

.association-selection .form-group {
  margin-bottom: 0;
}

.association-selection label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-md);
}

.association-selection select {
  font-size: 1.1rem;
  font-weight: 500;
  border: 3px solid var(--bleu-cui);
  padding: var(--spacing-md);
  background-color: var(--blanc);
}

.association-selection select:focus {
  border-color: var(--rouge-cui);
  box-shadow: 0 0 0 3px rgba(62, 169, 212, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.forgot-password {
  color: var(--bleu-cui);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 500;
}

.auth-message.success {
  background-color: #E8F5E8;
  color: #2E7D32;
  border: 1px solid #4CAF50;
}

.auth-message.error {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #F44336;
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid #E0E0E0;
}

.link-accent {
  color: var(--rouge-cui);
  text-decoration: none;
  font-weight: 500;
}

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

/* === FORM ACTIONS === */
.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--bleu-cui-light);
}

.form-actions .btn {
  min-width: 180px;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.1rem;
  font-weight: 500;
}

.form-group small {
  display: block;
  color: var(--gris-secondaire);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
  font-style: italic;
}

/* Styles pour les champs en lecture seule */
.form-group input[readonly] {
  background-color: var(--gris-light);
  color: var(--gris-secondaire);
  cursor: not-allowed;
}

.form-group input[readonly]:focus {
  border-color: #E0E0E0;
  box-shadow: none;
}

/* === ACHIEVEMENTS & BADGES === */
.achievements-section {
    background: linear-gradient(135deg, var(--bleu-cui-light) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--bleu-cui-light);
}

.achievement-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--bleu-cui);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gris-cui);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar {
    position: relative;
    background: #e5e7eb;
    border-radius: 1rem;
    height: 1.5rem;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.progress-fill {
    background: linear-gradient(90deg, var(--bleu-cui) 0%, var(--rouge-cui) 100%);
    height: 100%;
    border-radius: 1rem;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.badge-item {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.badge-item.unlocked {
    border-color: var(--bleu-cui-light);
    background: linear-gradient(135deg, #fff 0%, var(--bleu-cui-light) 100%);
}

.badge-item.locked {
    opacity: 0.4;
    background: #f9fafb;
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    filter: grayscale(100%);
}

.badge-item.unlocked .badge-icon {
    filter: grayscale(0%);
}

.badge-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.badge-description {
    font-size: 0.625rem;
    color: var(--gris-cui);
    line-height: 1.3;
}

.badge-difficulty {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.5rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-difficulty.bronze {
    background: #cd7f32;
    color: white;
}

.badge-difficulty.silver {
    background: #c0c0c0;
    color: black;
}

.badge-difficulty.gold {
    background: #ffd700;
    color: black;
}

.badge-difficulty.platinum {
    background: #e5e4e2;
    color: black;
}

.recent-achievements {
    background: linear-gradient(135deg, var(--rouge-cui-light) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 1px solid var(--rouge-cui-light);
}

.new-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.new-badge {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--rouge-cui);
    animation: badgeUnlock 0.6s ease-out;
}

@keyframes badgeUnlock {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.new-badge-icon {
    font-size: 1.5rem;
}

.new-badge-info {
    flex: 1;
}

.new-badge-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.new-badge-points {
    font-size: 0.75rem;
    color: var(--rouge-cui);
    font-weight: 600;
}

/* === DASHBOARD === */
.dashboard-main {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.welcome-section {
  background: linear-gradient(135deg, var(--bleu-cui-light) 0%, var(--rouge-cui-light) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.welcome-title {
  font-size: 2rem;
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-sm);
}

.welcome-subtitle {
  color: var(--gris-secondaire);
  margin-bottom: var(--spacing-lg);
}

.status-container h3 {
  color: var(--noir);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
}

.status-ok {
  background-color: #E8F5E8;
  color: #2E7D32;
  border: 2px solid #4CAF50;
}

.status-late {
  background-color: #FFEBEE;
  color: #C62828;
  border: 2px solid #F44336;
}

.status-icon {
  font-size: 1.2rem;
}

/* === ACTIONS RAPIDES === */
.quick-actions {
  margin-bottom: var(--spacing-xl);
}

.quick-actions h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.action-card {
  background-color: var(--blanc);
  border: 2px solid var(--bleu-cui-light);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-5px);
  border-color: var(--bleu-cui);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.action-card h4 {
  color: var(--bleu-cui);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.action-card p {
  color: var(--gris-secondaire);
  font-size: 0.95rem;
}

/* Styles pour les cartes d'action comme liens */
.action-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.action-card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* === SECTION QR CODE === */
.qr-section {
  margin-bottom: var(--spacing-xl);
}

.qr-section h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.qr-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-lg);
  background-color: var(--blanc);
  border: 1px solid #E0E0E0;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
}

.qr-info h4 {
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-sm);
}

.qr-info p {
  color: var(--gris-secondaire);
  margin-bottom: var(--spacing-md);
}

.qr-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.qr-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-item strong {
  color: var(--noir);
  font-size: 0.9rem;
}

.url-display, .token-display {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
  background-color: var(--gris-light);
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
  color: var(--bleu-cui);
}

.qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.qr-code-display {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #E0E0E0;
  border-radius: var(--border-radius);
}

.qr-placeholder {
  text-align: center;
  color: var(--gris-secondaire);
  font-size: 0.9rem;
  padding: var(--spacing-sm);
}

.qr-code-display canvas, 
.qr-code-display img {
  max-width: 100%;
  max-height: 100%;
}

/* === ÉVÉNEMENTS === */
.events-section {
  margin-bottom: var(--spacing-xl);
}

.events-section h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.event-card {
  background-color: var(--blanc);
  border: 1px solid #E0E0E0;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
}

.event-card:hover {
  border-color: var(--bleu-cui);
  box-shadow: var(--shadow);
}

.event-date {
  background: linear-gradient(135deg, var(--bleu-cui) 0%, var(--rouge-cui) 100%);
  color: var(--blanc);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  text-align: center;
  min-width: 60px;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  color: var(--bleu-cui);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.event-details p {
  color: var(--gris-secondaire);
  margin-bottom: var(--spacing-xs);
}

.event-location {
  font-size: 0.9rem;
  color: var(--gris-secondaire);
}

.badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary {
  background-color: var(--bleu-cui);
  color: var(--blanc);
}

.badge-secondary {
  background-color: var(--gris-secondaire);
  color: var(--blanc);
}

/* === NOTIFICATIONS === */
.notifications-section h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.notification-item {
  background-color: var(--blanc);
  border: 1px solid #E0E0E0;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  gap: var(--spacing-md);
  transition: border-color 0.3s ease;
}

.notification-item:hover {
  border-color: var(--bleu-cui-light);
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-content h4 {
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-xs);
}

.notification-content p {
  color: var(--gris-secondaire);
  margin-bottom: var(--spacing-xs);
}

.notification-time {
  font-size: 0.8rem;
  color: var(--gris-secondaire);
  font-style: italic;
}

/* === TEMPLATE DE BADGE === */
.badge-template {
  position: fixed;
  top: -9999px;
  left: -9999px;
}

/* === APERÇU DE BADGE === */
.badge-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  background-color: var(--blanc);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.preview-header h3 {
  color: var(--bleu-cui);
  margin: 0;
}

.preview-content {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.badge-content-preview {
  width: 600px;
  max-width: 90vw;
  background: linear-gradient(135deg, var(--blanc) 0%, var(--bleu-cui-light) 100%);
  border: 5px solid var(--bleu-cui);
  padding: 2rem;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
}

.badge-content-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E0E0E0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" opacity="0.3"/></svg>');
  z-index: -1;
}

.badge-content-preview .badge-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--bleu-cui);
  padding-bottom: 1rem;
}

.badge-content-preview .badge-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.badge-content-preview .badge-header h1 {
  font-size: 2rem;
  color: var(--bleu-cui);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.badge-content-preview .badge-header p {
  font-size: 1rem;
  color: var(--rouge-cui);
  font-weight: 600;
}

.badge-content-preview .badge-info {
  margin-bottom: 2rem;
}

.badge-content-preview .badge-info h2 {
  font-size: 1.8rem;
  color: var(--rouge-cui);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badge-content-preview .member-details {
  background-color: var(--blanc);
  border: 2px solid var(--bleu-cui);
  border-radius: 1rem;
  padding: 1.5rem;
}

.badge-content-preview .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bleu-cui-light);
  font-size: 1.1rem;
}

.badge-content-preview .detail-row:last-child {
  border-bottom: none;
}

.badge-content-preview .detail-row .label {
  font-weight: 600;
  color: var(--bleu-cui);
}

.badge-content-preview .detail-row .value {
  font-weight: 700;
  color: var(--noir);
}

.badge-content-preview .detail-row .status-badge {
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
}

.badge-content-preview .badge-footer {
  text-align: center;
  border-top: 2px solid var(--bleu-cui);
  padding-top: 1rem;
  margin-top: 2rem;
}

.badge-content-preview .badge-footer p {
  font-size: 0.9rem;
  color: var(--gris-secondaire);
  font-style: italic;
  margin-bottom: 1rem;
}

.badge-content-preview .signature {
  font-size: 0.8rem;
  color: var(--bleu-cui);
  font-weight: 600;
}

.preview-actions {
  text-align: center;
  background-color: var(--blanc);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.badge-content {
  width: 21cm;
  height: 29.7cm;
  background: linear-gradient(135deg, var(--blanc) 0%, var(--bleu-cui-light) 100%);
  border: 5px solid var(--bleu-cui);
  padding: 2cm;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.badge-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E0E0E0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" opacity="0.3"/></svg>');
  z-index: -1;
}

.badge-header {
  text-align: center;
  margin-bottom: 3cm;
  border-bottom: 3px solid var(--bleu-cui);
  padding-bottom: 1cm;
}

.badge-logo {
  width: 4cm;
  height: 4cm;
  margin-bottom: 1cm;
}

.badge-header h1 {
  font-size: 3rem;
  color: var(--bleu-cui);
  margin-bottom: 0.5cm;
  font-weight: 700;
}

.badge-header p {
  font-size: 1.2rem;
  color: var(--rouge-cui);
  font-weight: 600;
}

.badge-info {
  margin-bottom: 3cm;
}

.badge-info h2 {
  font-size: 2.5rem;
  color: var(--rouge-cui);
  text-align: center;
  margin-bottom: 2cm;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.member-details {
  background-color: var(--blanc);
  border: 2px solid var(--bleu-cui);
  border-radius: 1cm;
  padding: 1.5cm;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5cm 0;
  border-bottom: 1px solid var(--bleu-cui-light);
  font-size: 1.3rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: var(--bleu-cui);
}

.detail-row .value {
  font-weight: 700;
  color: var(--noir);
}

.detail-row .status-badge {
  font-size: 1.1rem;
  padding: 0.3cm 0.8cm;
}

.badge-footer {
  position: absolute;
  bottom: 2cm;
  left: 2cm;
  right: 2cm;
  text-align: center;
  border-top: 2px solid var(--bleu-cui);
  padding-top: 1cm;
}

.badge-footer p {
  font-size: 1.1rem;
  color: var(--gris-secondaire);
  font-style: italic;
  margin-bottom: 1cm;
}

.signature {
  font-size: 1rem;
  color: var(--bleu-cui);
  font-weight: 600;
}

/* === FOOTER === */
.footer {
  background-color: var(--gris-light);
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  border-top: 1px solid #E0E0E0;
  margin-top: auto;
}

.footer p {
  color: var(--gris-secondaire);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.footer p:last-child {
  margin-bottom: 0;
}

/* === DASHBOARD RESPONSABLE === */
.members-section {
  margin-bottom: var(--spacing-xl);
}

.members-section h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.members-container {
  background-color: var(--blanc);
  border: 1px solid #E0E0E0;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  min-height: 300px;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.member-card {
  background-color: var(--blanc);
  border: 1px solid #E0E0E0;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.member-card:hover {
  border-color: var(--bleu-cui);
  box-shadow: var(--shadow);
}

.member-info h4 {
  color: var(--bleu-cui);
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
}

.member-info p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--gris-secondaire);
}

.member-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.9rem;
}

.association-info {
  background-color: var(--blanc);
  border: 2px solid var(--bleu-cui-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.association-info p {
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
}

.association-info strong {
  color: var(--bleu-cui);
}

.stats-section {
  margin-bottom: var(--spacing-xl);
}

.stats-section h3 {
  color: var(--bleu-cui);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.no-data {
  text-align: center;
  color: var(--gris-secondaire);
  font-style: italic;
  padding: var(--spacing-xl);
}

.loading {
  text-align: center;
  color: var(--gris-secondaire);
  padding: var(--spacing-xl);
  font-style: italic;
}

/* === STYLES QR CODE MODAL === */
.btn-action.btn-qr {
  background-color: #28a745;
  color: white;
  white-space: nowrap;
}

.btn-action.btn-qr:hover {
  background-color: #218838;
}

.btn-action.btn-delete {
  background-color: #dc3545;
  color: white;
  white-space: nowrap;
}

.btn-action.btn-delete:hover {
  background-color: #c82333;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.member-info {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.member-info h4 {
  color: var(--bleu-cui);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
}

.member-info p {
  margin-bottom: var(--spacing-xs);
  color: var(--gris-secondaire);
}

.qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.qr-code-container {
  padding: var(--spacing-md);
  background-color: white;
  border: 2px solid var(--bleu-cui-light);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  min-width: 220px;
}

.qr-url {
  font-size: 0.9rem;
  color: var(--gris-secondaire);
  word-break: break-all;
  text-align: center;
  max-width: 100%;
  padding: var(--spacing-xs);
  background-color: var(--gris-light);
  border-radius: var(--border-radius);
}

.qr-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .badge-preview {
    padding: var(--spacing-sm);
  }
  
  .preview-header {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .badge-content-preview {
    width: 100%;
    padding: 1rem;
  }
  
  .badge-content-preview .badge-header h1 {
    font-size: 1.5rem;
  }
  
  .badge-content-preview .badge-info h2 {
    font-size: 1.4rem;
  }
  
  .badge-content-preview .detail-row {
    font-size: 1rem;
  }
  .header h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .dashboard-header .logo-container {
    justify-content: center;
  }
  
  .event-card {
    flex-direction: column;
    text-align: center;
  }
  
  .notification-item {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .action-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 0.75rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 2rem;
  }
  
  .header {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .main-content,
  .dashboard-main {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .auth-card,
  .signup-card {
    padding: var(--spacing-lg);
  }
  
  .form-section {
    padding: var(--spacing-md);
  }
  
  .welcome-section {
    padding: var(--spacing-lg);
  }
}

/* === UTILITAIRES === */
.hidden {
  display: none !important;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.p-0 {
  padding: 0 !important;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* === IMPRESSION === */
@media print {
  body {
    background: white !important;
    font-size: 12pt;
  }
  
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .header,
  .footer,
  .dashboard-header,
  .nav-link {
    display: none !important;
  }
  
  .badge-content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    page-break-inside: avoid;
  }
}

/* === STYLES POUR L'ADMINISTRATION === */
.admin-main {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-section {
  margin-bottom: 2rem;
}

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

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
  background: var(--bleu-cui);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content h3 {
  margin: 0;
  font-size: 2rem;
  color: var(--bleu-cui);
}

.stat-content p {
  margin: 0.25rem 0 0 0;
  color: var(--gris-secondaire);
  font-size: 0.9rem;
}

.controls-section {
  margin-bottom: 2rem;
}

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

.controls-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  min-width: 150px;
}

.members-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.members-table-container {
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table th,
.members-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.members-table th {
  background: var(--bleu-cui);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.members-table tr:hover {
  background: #f9f9f9;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.role-membre {
  background: #e3f2fd;
  color: #1976d2;
}

.role-responsable_pays {
  background: #f3e5f5;
  color: #7b1fa2;
}

.role-admin_pays {
  background: #fff3e0;
  color: #f57c00;
}

.role-superadmin {
  background: #ffebee;
  color: #d32f2f;
}

.matricule-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  background: #f0f4f8;
  color: var(--bleu-cui);
  border: 1px solid var(--bleu-cui-light);
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-active {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-inactive {
  background: #ffebee;
  color: #d32f2f;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.text-muted {
  color: #999;
}

/* === PROFILE PHOTO SECTION === */
.profile-photo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.profile-photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.profile-photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--bleu-cui-light);
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gris-secondaire);
  text-align: center;
}

.photo-placeholder svg {
  margin-bottom: var(--spacing-xs);
  opacity: 0.7;
}

.photo-placeholder p {
  font-size: 0.9rem;
  margin: 0;
}

.profile-photo-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.profile-photo-actions .btn {
  min-width: 120px;
  font-size: 0.9rem;
}

.photo-guidelines {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
}

.photo-guidelines h4 {
  color: var(--bleu-cui);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.photo-guidelines ul {
  margin: 0;
  padding-left: var(--spacing-md);
  color: var(--gris-secondaire);
}

.photo-guidelines li {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.photo-guidelines li:last-child {
  margin-bottom: 0;
}

/* Responsive pour la section photo */
@media (max-width: 768px) {
  .profile-photo-section {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .profile-photo-preview {
    width: 120px;
    height: 120px;
  }
  
  .profile-photo-actions .btn {
    min-width: 100px;
    font-size: 0.8rem;
  }
}

/* Animation de hover sur la photo */
.profile-photo-preview:hover {
  border-color: var(--bleu-cui);
  box-shadow: 0 4px 12px rgba(62, 169, 212, 0.3);
  transition: all 0.3s ease;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #eee;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsive design pour l'administration */
@media (max-width: 768px) {
  .controls-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .controls-actions {
    justify-content: stretch;
  }
  
  .form-select {
    min-width: auto;
  }
  
  .members-table th,
  .members-table td {
    padding: 0.5rem;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .user-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* === ADMIN EDIT USER MODAL === */
.modal-large {
    max-width: 900px;
}

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

.form-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.form-section h4 {
    margin: 0 0 1rem 0;
    color: var(--bleu-cui);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--bleu-cui);
    padding-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gris-secondaire);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--bleu-cui);
    box-shadow: 0 0 0 2px rgba(62, 169, 212, 0.1);
}

.form-input[readonly] {
    background-color: #f8f9fa;
    color: var(--gris-secondaire);
}

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

@media (max-width: 768px) {
    .edit-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .modal-large {
        max-width: 95%;
    }
}

/* === STYLES POUR LE MODAL D'AJOUT DE MEMBRE === */
#addMemberModal .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

#addMemberModal .form-group label {
    font-weight: 600;
    color: var(--bleu-cui);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#addMemberModal .form-group input,
#addMemberModal .form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

#addMemberModal .form-group input:focus,
#addMemberModal .form-group select:focus {
    outline: none;
    border-color: var(--bleu-cui);
    box-shadow: 0 0 0 2px rgba(62, 169, 212, 0.1);
}

#addMemberModal .form-group input[required],
#addMemberModal .form-group select[required] {
    border-left: 3px solid var(--rouge-cui);
}

#addMemberModal .form-group input[required]:valid,
#addMemberModal .form-group select[required]:valid {
    border-left: 3px solid #28a745;
}

.btn.btn-primary {
    background-color: var(--bleu-cui);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.btn-primary:hover {
    background-color: #2e8ab8;
    transform: translateY(-1px);
}

.btn.btn-secondary {
    background-color: var(--gris-secondaire);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.btn-secondary:hover {
    background-color: #5a6268;
}
