﻿/* ==========================================================================
   PROFILE CSS COMPLET - VERSION FUSIONNÉE ET OPTIMISÉE
   ========================================================================== */

/* ==========================================================================
   1. STRUCTURE DE BASE DU PROFIL - OPTIMISÉE
   ========================================================================== */

.profile-container {
    max-width: 1600px; /* Élargi pour éviter le scroll horizontal */
    margin: 50px auto;
    padding: 0 30px; /* Plus de padding sur les côtés */
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.profile-card {
    background: linear-gradient(180deg, #2d3748 0%, #1f2937 100%);
    border: none;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.profile-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.3);
}

.profile-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem; /* Plus grand pour meilleure lisibilité */
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.5);
    padding-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* ==========================================================================
   2. SYSTÈME D'ONGLETS
   ========================================================================== */

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #1f2937;
    border: 1px solid rgba(100, 100, 100, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-grow: 1;
    justify-content: center;
    border-right: 1px solid rgba(100, 100, 100, 0.2);
    position: relative;
    font-weight: 500;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background-color: rgba(55, 65, 81, 0.7);
    color: white;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(180deg, #3182ce 0%, #2c5282 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #2c5282;
}

.tab-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: currentColor;
    transition: transform 0.2s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.1);
}

.tab-btn.active .tab-icon {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* ==========================================================================
   3. MESSAGES DE NOTIFICATION
   ========================================================================== */

.success-message, .error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.error-message {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   4. STRUCTURE DES INFORMATIONS DE PROFIL
   ========================================================================== */

.profile-info {
    display: flex;
    gap: 2rem;
}

.avatar-container {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 0;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.4);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    background-color: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-icon {
    width: 80px;
    height: 80px;
    color: #60a5fa;
}

.profile-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    background-color: transparent;
    margin-bottom: 12px;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 400;
    background-color: rgba(70, 70, 70, 0.8);
    border-radius: 4px;
    padding: 8px 12px;
    width: 100%;
}

/* ==========================================================================
   5. BOUTONS ET ACTIONS
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Adaptation spécifique pour le hangar */
.hangar-section .section-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mon Hangar centré */
.hangar-section .section-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1;
}

/* Boutons groupés à droite */
.hangar-section .section-header .edit-links {
    margin-left: auto;
    display: flex;
    gap: 10px;
    z-index: 2;
}


.edit-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.edit-btn:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.edit-btn.danger-btn {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

.edit-btn.danger-btn:hover {
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.edit-icon, .btn-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.verify-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
}

.verify-btn:hover {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.verification-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.profile-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.settings-btn {
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    color: white;
}

.settings-btn:hover {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
}

.action-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* ==========================================================================
   6. SECTIONS SPÉCIALISÉES - COULEURS
   ========================================================================== */

.sc-section, 
.stats-section,
.public-section,
.reputation-section {
    margin-top: 0;
    padding-top: 0;
}

/* Couleurs spécifiques pour chaque section */
.sc-section .section-title {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.stats-section .section-title {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.stats-section .avatar-container .avatar-icon {
    color: #22c55e;
}

.public-section .section-title {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.reputation-section .section-title {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.stats-profile-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* ==========================================================================
   7. SECTION STAR CITIZEN SPÉCIFIQUE
   ========================================================================== */

.sc-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.url-value {
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    background-color: rgba(55, 65, 81, 0.6) !important;
}

.url-value:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

.sc-urls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.detail-item.full-width {
    width: 100%;
    grid-column: 1 / -1;
}

.sc-link {
    color: #60a5fa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.sc-link:hover {
    color: #93c5fd;
}

.url-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sc-link:hover .url-icon {
    transform: translateX(3px);
}

/* Badges de vérification */
.verified-badge {
    color: #28a745;
    font-weight: bold;
}

.verified-badge .verified-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.unverified-badge {
    color: #dc3545;
    font-weight: bold;
}

.unverified-badge .unverified-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.org-logo {
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.no-org-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.no-org-placeholder .avatar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

/* ==========================================================================
   8. PROFIL PUBLIC ET RÉPUTATION
   ========================================================================== */

.public-profile-container,
.reputation-profile-container {
    width: 100%;
}

.public-profile-details,
.reputation-profile-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.bio-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-content {
    background-color: rgba(70, 70, 70, 0.8);
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    line-height: 1.6;
    color: #ffffff;
}

/* ==========================================================================
   9. SECTION HANGAR - TITRE ET STATISTIQUES OPTIMISÉES
   ========================================================================== */

.hangar-section .section-title {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.hangar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px; /* Plus d'espace */
    margin-bottom: 25px;
    padding: 25px; /* Plus de padding */
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    display: block;
    font-size: 2.2rem; /* Plus grand */
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem; /* Plus lisible */
    color: #e5e7eb;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   10. HANGAR - EN-TÊTE ET FILTRES OPTIMISÉS
   ========================================================================== */

.hangar-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: visible; /* Modifié pour les filtres */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    width: 100%; /* Assurer la largeur complète */
}

.hangar-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px; /* Plus d'espace */
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.table-title {
    color: #f59e0b;
    font-size: 1.2rem; /* Plus grand */
    font-weight: 700;
    margin: 0;
}

.table-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px; /* Réduit pour compacité */
    border-radius: 5px;
    font-size: 0.8rem; /* Optimisé */
    min-width: 120px; /* Réduit */
}

.filter-select option {
    background: #1f2937;
    color: white;
}

.ship-search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px; /* Réduit */
    border-radius: 5px;
    font-size: 0.8rem; /* Optimisé */
    width: 180px; /* Réduit */
    margin-right: 10px;
}

.ship-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ship-search-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.filter-reset-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 8px; /* Réduit */
    border-radius: 5px;
    font-size: 0.8rem; /* Optimisé */
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.results-count {
    font-size: 1rem;
    color: #e5e7eb;
    margin-left: 15px;
    font-style: italic;
    font-weight: 500;
}

/* ==========================================================================
   11. TABLEAU HANGAR OPTIMISÉ
   ========================================================================== */

.hangar-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.hangar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem; /* Réduit pour plus d'espace */
    table-layout: fixed; /* Largeurs fixes pour contrôler l'espace */
}

/* REDISTRIBUTION OPTIMISÉE DES LARGEURS DE COLONNES */
.hangar-table th:nth-child(1), .hangar-table td:nth-child(1) { width: 11%; } /* Constructeur */
.hangar-table th:nth-child(2), .hangar-table td:nth-child(2) { width: 18%; } /* Vaisseau */
.hangar-table th:nth-child(3), .hangar-table td:nth-child(3) { width: 7%; }  /* Taille */
.hangar-table th:nth-child(4), .hangar-table td:nth-child(4) { width: 11%; } /* Rôle */
.hangar-table th:nth-child(5), .hangar-table td:nth-child(5) { width: 9%; }  /* Assurance */
.hangar-table th:nth-child(6), .hangar-table td:nth-child(6) { width: 13%; } /* Statut */
.hangar-table th:nth-child(7), .hangar-table td:nth-child(7) { width: 7%; }  /* SCU */
.hangar-table th:nth-child(8), .hangar-table td:nth-child(8) { width: 10%; } /* Acquisition */
.hangar-table th:nth-child(9), .hangar-table td:nth-child(9) { width: 14%; } /* Actions */

.hangar-table th {
    background: rgba(55, 65, 81, 0.8);
    color: #ffffff;
    padding: 10px 6px; /* Réduit */
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem; /* Plus grand pour les en-têtes */
    text-transform: uppercase;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.hangar-table td {
    padding: 10px 6px; /* Réduit */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center !important;
}
.manufacturer-name,
.ship-name {
    text-align: center;
}

.ship-row {
    transition: all 0.2s ease;
}

.ship-row:hover {
    background: rgba(245, 158, 11, 0.08) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hangar-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   12. CELLULES SPÉCIFIQUES DU TABLEAU OPTIMISÉES
   ========================================================================== */

/* Cellule constructeur */
.manufacturer-cell {
    min-width: 100px; /* Réduit */
}

.manufacturer-name {
    font-weight: 700;
    color: #60a5fa;
    font-size: 0.8rem; /* Réduit */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cellule vaisseau */
.ship-cell {
    min-width: 150px; /* Réduit */
}

.ship-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center; /* ← AJOUTER CETTE LIGNE */
}

.ship-name {
    font-weight: 600;
    font-size: 0.8rem; /* Réduit */
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ship-notes {
    cursor: help;
    opacity: 0.8;
}

.notes-icon {
    width: 16px;
    height: 16px;
    color: #f59e0b;
}

/* Cellule taille */
.size-cell {
    text-align: center;
    min-width: 80px; /* Réduit */
}

/* Cellule focus/rôle */
.focus-cell {
    min-width: 100px; /* Réduit */
    font-size: 0.8rem; /* Réduit */
}

.focus-text {
    color: #e5e7eb;
}

/* Cellule assurance */
.insurance-cell {
    text-align: center;
    min-width: 90px; /* Réduit */
}

/* Cellule statut (Fly Ready) */
.flight-ready-cell {
    text-align: center;
    min-width: 110px; /* Réduit */
}

/* Cellule SCU */
.scu-cell {
    text-align: center;
    min-width: 80px; /* Réduit */
}

.scu-text {
    font-weight: 600;
    color: #e5e7eb;
}

/* Cellule acquisition */
.acquisition-cell {
    text-align: center;
    min-width: 90px; /* Réduit */
}

/* Cellule actions */
.actions-cell {
    text-align: center;
    min-width: 80px; /* Réduit */
}

/* ==========================================================================
   13. BADGES OPTIMISÉS
   ========================================================================== */

.size-badge, .insurance-badge, .acquisition-badge, .production-status {
    padding: 3px 6px; /* Plus compact */
    border-radius: 14px;
    font-size: 0.65rem; /* Réduit */
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    min-width: 45px; /* Réduit */
    text-align: center;
    transition: all 0.3s ease;
}

/* BADGES DE TAILLE */
.size-small { 
    background: rgba(34, 197, 94, 0.25); 
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.size-medium { 
    background: rgba(59, 130, 246, 0.25); 
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.size-large { 
    background: rgba(245, 158, 11, 0.25); 
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.size-capital { 
    background: rgba(239, 68, 68, 0.25); 
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* BADGES D'ASSURANCE */
.insurance-none { 
    background: rgba(107, 114, 128, 0.2); 
    color: #6b7280; 
}

.insurance-3-months, 
.insurance-6-months, 
.insurance-12-months { 
    background: rgba(59, 130, 246, 0.25); 
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.insurance-120-months { 
    background: rgba(147, 51, 234, 0.25); 
    color: #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.insurance-lti { 
    background: rgba(245, 158, 11, 0.25); 
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 800;
}

/* BADGES D'ACQUISITION */
.acquisition-pledge { 
    background: rgba(16, 185, 129, 0.25); 
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.acquisition-in-game { 
    background: rgba(59, 130, 246, 0.25); 
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* BADGES DE STATUT DE PRODUCTION */
.production-status {
    min-width: 80px; /* Réduit */
    padding: 3px 6px; /* Réduit */
    font-size: 0.7rem;
    font-weight: 700;
}

.production-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-flight-ready {
    background: rgba(34, 197, 94, 0.25);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-in-concept {
    background: rgba(239, 68, 68, 0.25);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-in-development {
    background: rgba(245, 158, 11, 0.25);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-in-production {
    background: rgba(59, 130, 246, 0.25);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-released,
.status-live {
    background: rgba(34, 197, 94, 0.25);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-unknown {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

/* ==========================================================================
   14. ACTIONS DU TABLEAU OPTIMISÉES
   ========================================================================== */

.ship-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    padding: 4px; /* Plus compact */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.edit-action {
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.edit-action:hover {
    background: rgba(96, 165, 250, 0.2);
    transform: translateY(-1px);
}

.delete-action {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.delete-action:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.action-icon {
    width: 12px; /* Plus petit */
    height: 12px;
}

/* ==========================================================================
   15. ANIMATIONS ET EFFETS
   ========================================================================== */

/* Animation pour les badges */
.size-badge:hover,
.insurance-badge:hover,
.acquisition-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Effet de pulsation pour LTI */
.insurance-lti {
    animation: lti-glow 2s ease-in-out infinite alternate;
}

@keyframes lti-glow {
    from {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    }
}

/* ==========================================================================
   16. HANGAR VIDE
   ========================================================================== */

.empty-hangar {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-hangar-icon {
    margin-bottom: 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: rgba(245, 158, 11, 0.5);
}

.empty-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-description {
    color: #cccccc;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.empty-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-cta:hover {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* ==========================================================================
   17. NAVIGATION PROFILE ET UTILITAIRES
   ========================================================================== */

.profile-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    flex-wrap: wrap;
}

.profile-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-nav-btn:hover {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* ==========================================================================
   18. RESPONSIVE DESIGN OPTIMISÉ
   ========================================================================== */

/* Nouveau breakpoint pour grands écrans */
@media (max-width: 1400px) {
    .profile-container {
        max-width: 95% !important;
        padding: 0 15px;
    }
    
    .hangar-table th,
    .hangar-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}

/* Écrans moyens - masquer le rôle */
@media (max-width: 1200px) {
    /* Cacher la colonne Rôle sur écrans moyens */
    .hangar-table th:nth-child(4),
    .hangar-table td:nth-child(4) {
        display: none;
    }
    
    /* Redistribuer les largeurs sans la colonne Rôle */
    .hangar-table th:nth-child(1), .hangar-table td:nth-child(1) { width: 12%; }
    .hangar-table th:nth-child(2), .hangar-table td:nth-child(2) { width: 20%; }
    .hangar-table th:nth-child(3), .hangar-table td:nth-child(3) { width: 8%; }
    .hangar-table th:nth-child(5), .hangar-table td:nth-child(5) { width: 10%; }
    .hangar-table th:nth-child(6), .hangar-table td:nth-child(6) { width: 15%; }
    .hangar-table th:nth-child(7), .hangar-table td:nth-child(7) { width: 8%; }
    .hangar-table th:nth-child(8), .hangar-table td:nth-child(8) { width: 12%; }
    .hangar-table th:nth-child(9), .hangar-table td:nth-child(9) { width: 15%; }
}

@media (max-width: 968px) {
    .hangar-table th:nth-child(4), /* Rôle */
    .hangar-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Header hangar responsive */
    .hangar-section .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hangar-section .section-title {
        order: 1;
    }
    
    .hangar-section .section-header .edit-links {
        order: 2;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* ONGLETS RESPONSIVE */
    .tabs-container {
        flex-direction: column;
        border-radius: 0.75rem;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid rgba(100, 100, 100, 0.2);
        justify-content: flex-start;
        padding: 0.85rem 1rem;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn.active::after {
        display: none;
    }

    /* PROFILE RESPONSIVE */
    .profile-info {
        flex-direction: column;
        align-items: center;
    }

    .avatar-container {
        padding-top: 0;
        margin-bottom: 20px;
    }

    .profile-details,
    .sc-profile-details,
    .stats-profile-details {
        width: 100%;
        grid-template-columns: 1fr;
    }
    
    .public-profile-details,
    .reputation-profile-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .edit-links {
        align-self: stretch;
        justify-content: flex-end;
    }

    /* HANGAR RESPONSIVE */
    .hangar-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hangar-table-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .table-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select,
    .ship-search-input {
        width: 100%;
        margin-right: 0;
    }
    
    .ship-search-input {
        margin-bottom: 0;
    }
    
    .filter-reset-btn {
        width: 100%;
    }
    
    .hangar-table th,
    .hangar-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .ship-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .production-status {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    /* Cacher SCU sur tablette */
    .hangar-table th:nth-child(7), /* SCU */
    .hangar-table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 480px) {
    /* PROFILE GÉNÉRAL */
    .profile-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .profile-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
    }

    .detail-item {
        padding: 0 0 12px 0;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .public-profile-details,
    .reputation-profile-details {
        grid-template-columns: 1fr;
    }

    .edit-btn,
    .verify-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .url-value {
        padding: 8px 10px !important;
    }
    
    .sc-urls-container {
        gap: 10px;
    }

    /* HANGAR MOBILE */
    .hangar-stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Cacher encore plus de colonnes sur mobile */
    .hangar-table th:nth-child(6), /* Statut */
    .hangar-table td:nth-child(6),
    .hangar-table th:nth-child(5), /* Assurance */
    .hangar-table td:nth-child(5) {
        display: none;
    }
    
    .hangar-table th {
        font-size: 0.8rem;
        padding: 10px 6px;
    }
    
    .hangar-table td {
        font-size: 0.8rem;
        padding: 10px 6px;
    }
    
    .manufacturer-name,
    .ship-name {
        font-size: 0.85rem;
    }
    
    .size-badge,
    .acquisition-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        min-width: 50px;
    }
    
    .results-count {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* NAVIGATION RESPONSIVE */
    .profile-navigation {
        flex-direction: column;
    }
    
    .profile-nav-btn {
        justify-content: center;
    }
}