/* Boutons */
.btn-menu {
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-menu.active, 
.btn-menu:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-ajouter {
  background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 12px var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  margin-bottom: var(--spacing-lg);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  transition: all 0.3s ease;
}

.btn-ajouter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-supprimer {
  background: linear-gradient(135deg, var(--primary-red) 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
  transition: all 0.3s ease;
}

.btn-supprimer:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Badges */
.badge-type {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.badge-type.vaccination {
  background: linear-gradient(135deg, var(--primary-red) 0%, #c0392b 100%);
}

.badge-type.veterinaire {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
}

.badge-type.urgence {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #d35400 100%);
  animation: pulseUrgence 1s infinite;
}

.badge-type.toilettage {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #8e44ad 100%);
}

/* Cartes et conteneurs */
.section-contenu {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-contenu:not(.hidden) {
  opacity: 1;
}

/* Info items */
.info-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--gray-bg);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-item.special {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
  border-left-color: var(--primary-red);
}

/* Animations */
@keyframes pulseUrgence {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.6);
  }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Badge jours - Style manquant */
.badge-jours {
    color: white !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: inline-block;
    min-width: 25px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
}

/* Styles des rappels profil */
.rappel-veto {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.rappel-veto h3 {
    color: var(--gray-dark) !important;
    margin: 0;
    font-size: 16px;
}

.rappel-veto p {
    margin: 8px 0;
    color: var(--gray-dark) !important;
    font-size: 14px;
}

.rappel-frequence {
    color: var(--gray-medium) !important;
    font-style: italic;
    font-size: 12px !important;
    margin-top: 10px !important;
}

.total-depenses {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--primary-blue);
}

.total-depenses p {
    color: var(--gray-dark) !important;
    font-weight: 600;
}

/* Info details dans profil */
.info-icone {
    margin-right: 10px;
    font-size: 18px;
}

.info-details {
    flex: 1;
}

.info-label {
    font-weight: bold;
    color: var(--gray-dark) !important;
    font-size: 14px;
}

.info-valeur {
    color: #34495e !important;
    font-size: 14px;
}

.info-valeur a {
    color: var(--primary-blue);
    text-decoration: none;
}

.info-valeur a:hover {
    text-decoration: underline;
}

/* Corrections pour les icônes de rappels */
.info-rappel {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tendances de poids */
.poids-tendance {
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
}

.poids-hausse { color: var(--primary-red); }
.poids-baisse { color: var(--primary-green); }
.poids-stable { color: #f39c12; }

/* Badges de type avec emojis */
.badge-type::before {
    margin-right: 5px;
}

.badge-type.vaccination::before { content: '💉'; }
.badge-type.veterinaire::before { content: '🧑‍⚕️'; }
.badge-type.urgence::before { content: '🚨'; }
.badge-type.toilettage::before { content: '✂️'; }
.badge-type.traitement::before { content: '💊'; }
.badge-type.controle::before { content: '🩺'; }
.badge-type.routine::before { content: '🔄'; }
.badge-type.divers::before { content: '📝'; }

/* Total row dans tableaux */
.total-row {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%) !important;
    border-top: 3px solid var(--primary-blue) !important;
    font-weight: bold;
}

.total-row:hover {
    background: linear-gradient(135deg, #d4e9f7 0%, #e6f3ff 100%) !important;
}

.total-prix {
    color: var(--primary-red);
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Messages d'état vides */
.etat-vide {
    text-align: center;
    color: var(--gray-medium);
    font-size: 18px;
    padding: 40px;
    background: var(--gray-bg);
    border-radius: var(--border-radius-md);
    border: 2px dashed #bdc3c7;
}

.etat-vide.success {
    color: var(--primary-green);
    background: linear-gradient(135deg, #f0fff0 0%, #e6f7e6 100%);
    border-color: var(--primary-green);
}

/* No events */
.no-events {
    text-align: center;
    color: var(--gray-medium);
    font-size: 18px;
    padding: 40px;
    background: var(--gray-bg);
    border-radius: var(--border-radius-md);
    border: 2px dashed #bdc3c7;
}

/* ===== BOUTONS MANQUANTS ===== */

/* Boutons navigation calendrier */
.btn-nav-mois {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-mois:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-aujourd-hui {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d35400 100%);
    color: white;
    border: none;
    padding: 10px var(--spacing-md);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    white-space: nowrap;
}

.btn-aujourd-hui:hover {
    background: linear-gradient(135deg, #d35400 0%, #ba4a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Bouton ajouter poids */
.btn-ajouter-poids {
    background: linear-gradient(135deg, #f39c12 0%, var(--primary-orange) 100%);
    color: white;
    border: none;
    padding: 12px var(--spacing-lg);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
}

.btn-ajouter-poids:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Boutons checklist */
.btn-reset {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d35400 100%);
    color: white;
    border: none;
    padding: 8px var(--spacing-md);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #d35400 0%, #ba4a00 100%);
    transform: translateY(-2px);
}

.btn-reload {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 8px var(--spacing-md);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reload:hover {
    background: linear-gradient(135deg, #2ecc71 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
}

/* Bouton fermer modal */
.btn-fermer {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    padding: 10px var(--spacing-lg);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    margin-top: var(--spacing-lg);
}

.btn-fermer:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
}

/* ===== STYLES CARTE MANQUANTS ===== */

/* Filtres carte */
.carte-filtres {
    background: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid #e9ecef;
}

.filtres-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.filtres-header h4 {
    margin: 0;
    color: var(--gray-dark);
    font-size: 16px;
}

.filtres-boutons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.filtre-btn {
    background: linear-gradient(135deg, var(--gray-light) 0%, #bdc3c7 100%);
    color: var(--gray-dark);
    border: none;
    padding: 12px var(--spacing-lg);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.filtre-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filtre-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.filtre-btn .count {
    background: rgba(255,255,255,0.3);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.filtre-btn.active .count {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Recherche lieu */
.filtre-recherche {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
}

#recherche-lieu {
    width: 100%;
    max-width: 300px;
    padding: 12px var(--spacing-lg);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-xl);
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--gray-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#recherche-lieu:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

#recherche-lieu::placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* Légende carte */
.legende-carte {
    background: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.legende-carte h4 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--gray-dark);
    text-align: center;
}

.legende-items {
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-dark);
}

.couleur-point {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.legende-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray-light);
}

.btn-legende {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 8px var(--spacing-md);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.btn-legende:hover {
    background: linear-gradient(135deg, #2ecc71 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* ===== STYLES CHECKLIST MANQUANTS ===== */

/* Actions checklist */
.checklist-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

/* Message debug checklist */
.checklist-debug {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    font-size: 14px;
}

/* Forcer l'affichage des checklists */
.checklist-container.hidden {
    display: none !important;
}

.checklist-container:not(.hidden) {
    display: block !important;
}

/* Améliorer les états cochés */
.checklist-item.checked {
    background: linear-gradient(135deg, #d5f4e6 0%, #a8e6cf 100%) !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
    border-left: 4px solid var(--primary-green) !important;
}

.checklist-item.checked input[type="checkbox"] {
    accent-color: var(--primary-green);
}

/* ===== MODAL ADMINISTRATION ===== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.admin-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--gray-bg);
    border-radius: var(--border-radius-md);
}

.admin-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-dark);
}

.admin-section button {
    margin: var(--spacing-xs);
    padding: 8px var(--spacing-md);
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-section button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* ===== MENU BURGER ===== */

/* Bouton burger (masqué par défaut) */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    position: fixed; /* Changé de absolute à fixed */
    top: 15px; /* Position fixe depuis le haut */
    right: var(--spacing-lg);
    transition: all 0.3s ease;
    z-index: 1002; /* Z-index plus élevé */
}

.burger-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Lines du burger */
.burger-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

/* Animation burger actif */
.burger-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay pour fermer le menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Empêcher le scroll quand menu ouvert */
body.menu-open {
    overflow: hidden;
}

/* ===== STYLES MOBILE MENU ===== */

/* Menu mobile caché par défaut */
.menu-principal.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--gray-dark) 0%, #34495e 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px var(--spacing-lg) var(--spacing-xl);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

/* Menu mobile ouvert */
.menu-principal.mobile-open {
    right: 0 !important;
    transform: translateX(0) !important;
}

/* Boutons dans le menu mobile */
.mobile-menu .btn-menu {
    width: 100%;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.mobile-menu .btn-menu:hover,
.mobile-menu .btn-menu.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

/* Icônes dans le menu mobile */
.mobile-menu .btn-menu::before {
    content: attr(data-icon);
    margin-right: var(--spacing-sm);
    font-size: 18px;
}

/* Animation d'entrée des items */
.mobile-menu .btn-menu {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInMenuItem 0.3s ease forwards;
}

.mobile-menu .btn-menu:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .btn-menu:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu .btn-menu:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu .btn-menu:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu .btn-menu:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu .btn-menu:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu .btn-menu:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInMenuItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Titre du menu mobile */
.mobile-menu::before {
    content: "🐾 Navigation";
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Version du carnet en bas */
.mobile-menu::after {
    content: "Carnet Tiger v2.0";
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bouton profil mobile uniquement */
.mobile-menu .btn-menu[data-section="profil"] {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    margin-bottom: var(--spacing-lg);
}

.mobile-menu .btn-menu[data-section="profil"]:hover,
.mobile-menu .btn-menu[data-section="profil"].active {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.6);
}

.mobile-menu .btn-menu[data-section="profil"]::before {
    content: "🐶";
}

/* Masquer le bouton profil sur desktop */
@media (min-width: 769px) {
    .btn-menu[data-section="profil"] {
        display: none !important;
    }
}


/* ===== STYLES LIENS UTILES ===== */

.liens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.liens-categorie {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.liens-categorie:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.liens-header {
    padding: var(--spacing-md);
    background: var(--gray-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.liens-header h3 {
    margin: 0;
    color: var(--gray-dark);
    font-size: 16px;
}

.liens-count {
    background: rgba(255,255,255,0.8);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--gray-medium);
    font-weight: 600;
}

.liens-liste {
    padding: var(--spacing-md);
}

.lien-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
    position: relative;
}

.lien-card:hover {
    background: var(--gray-bg);
    transform: translateX(5px);
}

.lien-icone {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}

.lien-contenu {
    flex: 1;
}

.lien-contenu h4 {
    margin: 0 0 5px 0;
    color: var(--gray-dark);
    font-size: 14px;
}

.lien-contenu p {
    margin: 0 0 8px 0;
    color: var(--gray-medium);
    font-size: 12px;
    line-height: 1.3;
}

.lien-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.lien-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* Actions des liens */
.lien-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-modifier-mini {
    background: var(--primary-orange);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-modifier-mini:hover {
    transform: scale(1.1);
    background: #d35400;
}

.btn-supprimer-mini {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-supprimer-mini:hover {
    transform: scale(1.1);
    background: #c0392b;
}

.liens-vide {
    text-align: center;
    color: var(--gray-medium);
    font-style: italic;
    padding: var(--spacing-lg);
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden; /* Empêche le scroll */
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--gray-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px; /* Réduit de 20px à 15px */
}

.btn-valider {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-annuler {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* Ajuster les marges pour que tout rentre */
.popup-content .form-group {
    margin-bottom: 12px; /* Réduit de 15px à 12px */
}

.popup-content .form-group input,
.popup-content .form-group select {
    padding: 6px; /* Réduit de 8px à 6px */
    font-size: 13px; /* Réduit de 14px à 13px */
}

.popup-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Version ultra-compacte */
.popup-content {
    padding: 20px; /* Au lieu de 25px */
    width: 350px; /* Au lieu de 400px */
}

.popup-content .form-group {
    margin-bottom: 10px; /* Encore plus compact */
}

.popup-content label {
    font-size: 13px;
    margin-bottom: 3px;
}

.liens-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.liens-actions .btn-ajouter {
    flex: 1;
    max-width: 200px;
}

/* ===== BOUTONS D'ACTIONS TABLEAUX ===== */

.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.btn-action {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin: 0 2px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.btn-action:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-modifier {
    background: linear-gradient(135deg, #f39c12 0%, var(--primary-orange) 100%);
    color: white;
}

.btn-modifier:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d35400 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.btn-supprimer {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c0392b 100%);
    color: white;
}

.btn-supprimer:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Tooltips pour les boutons d'actions */
.btn-action::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-action:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* Mobile */
@media (max-width: 768px) {
    .liens-grid {
        grid-template-columns: 1fr;
    }
    
    .lien-card {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .btn-supprimer-mini {
        position: absolute;
        top: 5px;
        right: 5px;
    }
    
    .btn-action {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin: 0 1px;
    }
    
    .actions-cell {
        padding: 5px;
    }
}