/* =======================
   Fichier : assets/css/admin.css
   Version : Corrigée et complète
   ======================= */

/* === Variables CSS === */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #c0392b;
  --text-color: #333;
  --text-light: #7f8c8d;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* === Reset et base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7f9;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header Admin === */
header {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
}

header menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

header .logo {
  height: 70px;
  width: auto;
  margin-right: 1.5rem;
  object-fit: contain;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  flex: 1;
  min-width: 300px;
}

header p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.menu {
  display: flex;
  gap: 0.8rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.menu .item {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu .item:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu .item span {
  margin: 0;
}

/* Sidebar intégrée dans le header */
header .sidebar {
  display: none; /* Caché par défaut sur desktop */
}

/* === Structure principale === */
.admin-container {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 250px;
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 90;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.sidebar-header h2 {
  font-size: 1.2rem;
  color: white;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 0.2rem;
}

.sidebar nav ul li a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: var(--secondary-color);
}

.sidebar nav ul li.active a {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: var(--secondary-color);
}

.admin-content {
  flex: 1;
  padding: 2rem;
  transition: var(--transition);
  background-color: #f8f9fa;
  min-height: calc(100vh - 120px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
}

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

.user-info span {
  color: var(--text-light);
}

.logout-btn {
  padding: 0.5rem 1rem;
  background-color: var(--light-color);
  color: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.logout-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* === Cartes de statistiques === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-card p {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

/* === Panneaux d'administration === */
.admin-panel {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-panel h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

/* === Boutons d'administration === */
.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-danger, .btn-delete {
  background-color: var(--danger-color);
}

.btn-danger:hover, .btn-delete:hover {
  background-color: #a33225;
}

.btn-cancel {
  background-color: var(--text-light);
}

.btn-cancel:hover {
  background-color: #6c757d;
}

/* === Formulaires === */
.admin-form, .form-association {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.form-check input {
  margin-right: 0.5rem;
}

.form-check label {
  margin-bottom: 0;
  font-weight: normal;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -5px;
  margin-left: -5px;
}

.form-row .form-group {
  flex: 1 0 0%;
  padding-right: 5px;
  padding-left: 5px;
}

/* === Tableaux === */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.admin-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.admin-table tr:hover {
  background-color: #e9ecef;
}

.admin-table .actions {
  display: flex;
  gap: 0.5rem;
}

.inline-form {
  display: inline;
}

/* === Messages d'alerte === */
.alert, .errors {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.alert-danger, .errors {
  background-color: #f8d7da;
  border-left: 4px solid var(--danger-color);
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  border-left: 4px solid var(--success-color);
  color: #155724;
}

.errors ul {
  margin: 0;
  padding-left: 1.5rem;
}

.errors li {
  margin-bottom: 0.5rem;
}

/* === Recherche et filtres === */
.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-form input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* === Aperçu d'images === */
.current-image, #default-image-preview {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px dashed var(--border-color);
}

.current-image img, #image-preview, #default-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* === Page de connexion === */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  padding: 2rem;
}

.login-box {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.login-box > p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.login-box .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.login-box .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.login-box .form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.login-box .form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.login-box .btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.login-box .btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
}

.login-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.login-links a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.login-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Message d'erreur */
.login-box .alert.error {
  background-color: #fee;
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  text-align: left;
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    padding: 1rem;
  }
  
  .login-box {
    padding: 2rem 1.5rem;
  }
  
  .login-box h1 {
    font-size: 1.5rem;
  }
}

/* === Boutons du tableau de bord === */
.admin-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 60px;
  box-shadow: var(--shadow);
}

.admin-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.admin-button.danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #a33225 100%);
}

.admin-button.danger:hover {
  background: linear-gradient(135deg, #a33225 0%, #8a2b1f 100%);
}

/* Groupes de boutons par section */
.admin-panel h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
  font-size: 1.5rem;
}

/* Espacement entre les groupes de boutons */
.admin-panel > h2:first-child {
  margin-top: 0;
}

/* Style spécifique pour les formulaires de partenaires */
.partenaire-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.partenaire-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

/* Liste des partenaires */
.partenaires-list {
  margin-top: 2rem;
}

.partenaire-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: white;
  transition: var(--transition);
  gap: 1.5rem;
}

.partenaire-item:hover {
  box-shadow: var(--shadow);
}

.partenaire-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--light-color);
  padding: 0.5rem;
  flex-shrink: 0;
}

.partenaire-info {
  flex: 1;
}

.partenaire-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.partenaire-info p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.partenaire-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.partenaire-info a:hover {
  text-decoration: underline;
}

.delete-form {
  margin-left: auto;
  flex-shrink: 0;
}

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

.badge-danger { background-color: #e74c3c; color: white; }
.badge-warning { background-color: #f39c12; color: white; }
.badge-info { background-color: #3498db; color: white; }

.text-muted { color: #95a5a6; }

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
/* Styles pour les aperçus d'image */
.image-preview-container {
    margin: 15px 0;
}

.image-preview {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* États de validation */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
  .admin-buttons {
    grid-template-columns: 1fr;
  }
  
  .admin-button {
    min-height: 50px;
    padding: 0.8rem 1rem;
  }
  
  .partenaire-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .partenaire-logo {
    margin: 0 auto;
  }
  
  .delete-form {
    margin-left: 0;
    width: 100%;
  }
  
  .delete-form .admin-button {
    width: 100%;
  }
}

/* Animation pour les boutons */
@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.admin-button:active {
  animation: buttonPulse 0.3s ease;
}

/* États des boutons */
.admin-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Style pour les messages */
.error-messages {
  background-color: #fee;
  border-left: 4px solid var(--danger-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.error-messages p {
  color: var(--danger-color);
  margin-bottom: 0.5rem;
}

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

.success-message {
  background-color: #effef0;
  border-left: 4px solid var(--success-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.success-message p {
  color: var(--success-color);
  margin: 0;
  font-weight: 500;
}

/* === Responsive === */
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 70px;
    overflow: visible;
  }
  
  .sidebar-header h2,
  .sidebar nav ul li a span {
    display: none;
  }
  
  .admin-content {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  header menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  header .logo {
    height: 60px;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  header h1 {
    font-size: 1.5rem;
    min-width: auto;
  }
  
  .menu {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.3rem;
  }
  
  .menu {
    flex-direction: column;
    width: 100%;
  }
  
  .menu .item {
    width: 100%;
    justify-content: center;
  }
  
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-form {
    flex-direction: column;
    width: 100%;
  }
  
  .admin-table {
    display: block;
    overflow-x: auto;
  }
  
  .admin-table .actions {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group {
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 1rem;
  }
  
  /* Afficher la sidebar dans le header en mode mobile */
  header .sidebar {
    display: block;
    width: 100%;
    position: static;
    height: auto;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
  }
  
  header .sidebar nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  header .sidebar nav ul li a {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid transparent;
  }
  
  header .sidebar nav ul li a:hover,
  header .sidebar nav ul li.active a {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--secondary-color);
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.2rem;
  }
  
  header p {
    font-size: 0.85rem;
  }
  
  .admin-content {
    padding: 1rem;
  }
  
  .admin-form, .form-association {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

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

.admin-panel, .admin-form, .admin-table {
  animation: fadeIn 0.5s ease-out;
}

.stat-card {
  animation: fadeIn 0.5s ease-out;
}
/* ==================== */
/* ADMIN RESPONSIVE */
/* ==================== */

/* Tablettes admin (768px - 1024px) */
@media (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .sidebar nav ul li {
        flex: 1;
        min-width: 120px;
    }
    
    .sidebar nav ul li a {
        padding: 10px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar nav ul li a:hover,
    .sidebar nav ul li.active a {
        border-left: none;
        border-bottom-color: var(--secondary-color);
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .admin-table {
        overflow-x: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile admin (320px - 767px) */
@media (max-width: 767px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-form, .form-association {
        padding: 1rem;
    }
    
    .form-container, .form-container-admin {
        width: 95%;
        padding: 1rem;
    }
    
    header menu {
        flex-direction: column;
        text-align: center;
    }
    
    .menu {
        justify-content: center;
    }
}

/* Très petits écrans admin */
@media (max-width: 480px) {
    .admin-content {
        padding: 0.5rem;
    }
    
    .admin-panel {
        padding: 1rem;
    }
    
    .partenaire-item {
        flex-direction: column;
        text-align: center;
    }
    
    .partenaire-logo {
        margin: 0 auto;
    }
    
    .delete-form {
        margin-left: 0;
        width: 100%;
    }
}
.equipe-admin-container {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 20px;
}

.equipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
}

.equipe-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.membre-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.membre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.membre-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid #3498db;
}

.membre-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.membre-role {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.membre-contact {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.membre-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.membre-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-add {
    background: #2ecc71;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-add:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: #d5f4e6;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

@media (max-width: 768px) {
    .membres-grid {
        grid-template-columns: 1fr;
    }
    
    .equipe-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .membre-actions {
        flex-direction: column;
    }
}

/* Styles pour l'éditeur d'actualités */
.tox-tinymce {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

/* Styles pour les documents insérés */
.article-document {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.article-document-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.article-document-header i {
    color: #3498db;
    margin-right: 10px;
    font-size: 1.2rem;
}

.document-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.document-link:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.document-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

/* Styles pour la modal de sélection de documents */
.document-modal {
    animation: fadeIn 0.3s ease-out;
}

.document-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.document-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s;
}

.document-tab.active {
    background: #3498db;
    color: white;
}

.document-upload-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.document-upload-zone:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.document-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
}

.document-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
}

.document-item:hover {
    background: #f8f9fa;
}

.document-info {
    flex: 1;
}

.document-info strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.document-info small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

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

/* Styles CKEditor */
.ck-editor__editable {
    min-height: 400px;
    padding: 20px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
}

.ck.ck-editor {
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.ck.ck-toolbar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-bottom: 2px solid #e0e0e0 !important;
    padding: 10px !important;
    border-radius: 12px 12px 0 0 !important;
}

.ck.ck-button {
    border-radius: 6px !important;
    transition: all 0.3s !important;
}

.ck.ck-button:hover {
    background: #3498db !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.ck-document-uploader {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    color: white !important;
    border: none !important;
}

.ck-document-uploader:hover {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
}

/* Styles pour CKEditor */
.ck-editor__editable {
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
}

/* Styles pour les formulaires admin */
.admin-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.errors {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.errors ul {
    margin: 0;
    padding-left: 20px;
}