/* ========================================
   CSS ADMINISTRATION
   ======================================== */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ========================================
   PAGE DE CONNEXION
   ======================================== */
.admin-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 2.5rem;
    text-align: center;
}

.login-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    margin-bottom: 2rem;
}

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

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 2rem;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* Alertes */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ========================================
   DASHBOARD ADMIN
   ======================================== */
.admin-dashboard {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header Admin */
.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-logout, .btn-back {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-logout:hover, .btn-back:hover {
    background: rgba(255,255,255,0.3);
}

/* Navigation Admin */
.admin-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.admin-nav ul {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    list-style: none;
    gap: 0;
}

.admin-nav li {
    margin: 0;
}

.admin-nav a {
    color: #666;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

/* Contenu principal */
.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Grille du tableau de bord */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-card:hover {
    transform: translateY(-2px);
}

.btn-card.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-card.disabled:hover {
    transform: none;
}

/* Actions rapides */
.quick-actions {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.action-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

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

/* ========================================
   FORMULAIRES
   ======================================== */
.settings-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.settings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.settings-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.settings-form input:focus {
    outline: none;
    border-color: #667eea;
}

.settings-form small {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Grille d'informations */
.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

/* ========================================
   FORMULAIRES AVANCÉS
   ======================================== */
.content-form {
    margin-top: 2rem;
}

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

.competence-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.competence-item h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.experiences-container {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

.experience-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.experience-item h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Nouvelle expérience */
.new-experience {
    border: 2px dashed #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.new-experience h4 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-experience h4 i {
    font-size: 1rem;
}

/* ========================================
   ONGLETS DESIGN
   ======================================== */
.design-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   PROJETS
   ======================================== */
.projects-container {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

.project-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.project-item h5 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Nouveau projet */
.new-project {
    border: 2px dashed #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.new-project h5 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-project h5 i {
    font-size: 1rem;
}

/* ========================================
   TEXTAREA
   ======================================== */
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-nav ul {
        flex-direction: column;
    }
    
    .admin-nav a {
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        flex-direction: column;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .design-tabs {
        flex-direction: column;
    }
    
    .competences-grid {
        grid-template-columns: 1fr;
    }
}

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

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.stats-icon {
    font-size: 3rem;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Activités récentes */
.activities-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.activity-icon {
    color: #28a745;
    font-size: 1.5rem;
}

.activity-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.activity-content p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Tentatives échouées */
.failed-logins-list {
    display: grid;
    gap: 1rem;
}

.failed-login-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.failed-login-icon {
    color: #dc3545;
    font-size: 1.5rem;
}

.failed-login-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.failed-login-content p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Actions de sécurité */
.security-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #5a6268;
}

/* ========================================
   MESSAGES
   ======================================== */
.messages-actions {
    margin-bottom: 2rem;
}

.messages-list {
    display: grid;
    gap: 1.5rem;
}

.message-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.message-item:hover {
    transform: translateY(-2px);
}

.message-item.unread {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

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

.message-info h4 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.message-email {
    color: #667eea;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.message-date {
    color: #666;
    margin: 0;
    font-size: 0.8rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.unread {
    background: #dc3545;
    color: white;
}

.status-badge.read {
    background: #28a745;
    color: white;
}

.message-content h5 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.message-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    background: #667eea;
}

.btn-small:hover {
    transform: translateY(-1px);
    background: #5a6fd8;
}

.btn-small.btn-danger {
    background: #dc3545;
}

.btn-small.btn-danger:hover {
    background: #c82333;
}

.no-messages {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-messages i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-messages h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.no-messages p {
    color: #666;
    margin: 0;
} 