

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

:root {
    --evolv-black: #000000;
    --evolv-red: #F90101;
    --evolv-dark-gray: #1a1a1a;
    --evolv-light-gray: #f5f5f5;
    --evolv-white: #ffffff;
    --evolv-gold: #C9A227;
}

body {
        
        font-family: Arial, Helvetica, sans-serif;
    background: var(--evolv-light-gray);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HEADER / NAVBAR === */
.navbar {
    background: var(--evolv-black);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-logo span {
    color: var(--evolv-red);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--evolv-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: var(--evolv-white);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: var(--evolv-white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--evolv-red);
    color: var(--evolv-white);
}

.nav-links a.btn-logout {
    border: 2px solid var(--evolv-red);
    color: var(--evolv-red);
}

.nav-links a.btn-logout:hover {
    background: var(--evolv-red);
    color: var(--evolv-white);
}

/* === CONTAINER PRINCIPAL === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix global pour éviter les débordements */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* === CARTES / CARDS === */
.card {
    background: var(--evolv-white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--evolv-light-gray);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--evolv-black);
}

/* === GRILLE STATISTIQUES === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--evolv-white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--evolv-red);
}

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

.stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--evolv-red);
    margin: 10px 0;
}

.stat-label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--evolv-red);
    color: var(--evolv-white);
    border-color: var(--evolv-red);
}

.btn-primary:hover {
    background: #d10101;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 1, 1, 0.4);
}

.btn-secondary {
    background: var(--evolv-black);
    color: var(--evolv-white);
    border-color: var(--evolv-black);
}

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

.btn-outline {
    background: transparent;
    color: var(--evolv-red);
    border: 2px solid var(--evolv-red);
}

.btn-outline:hover {
    background: var(--evolv-red);
    color: var(--evolv-white);
}

.btn-danger {
    background: #dc3545;
    color: var(--evolv-white);
    border-color: #dc3545;
}

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

/* === FORMULAIRES === */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--evolv-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--evolv-red);
    box-shadow: 0 0 0 3px rgba(249, 1, 1, 0.1);
}

select.form-control {
    cursor: pointer;
}

/* === TABLEAUX === */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--evolv-white);
}

thead {
    background: var(--evolv-black);
    color: var(--evolv-white);
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
    background: #f9f9f9;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* === MESSAGES === */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* === SECTION RECORDS === */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--evolv-light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.record-item:hover {
    background: #e8e8e8;
}

.record-exercise {
    font-weight: 600;
    color: var(--evolv-black);
}

.record-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--evolv-red);
}

/* === GRAPHIQUE === */
#chart-container,
.chart-wrapper {
    background: var(--evolv-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.chart-wrapper {
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.chart-wrapper canvas,
#chart-container canvas {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

#chart-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

#chart-message p:first-child {
    font-size: 18px;
    font-weight: 600;
}

/* === PAGE LOGIN / INSCRIPTION === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--evolv-black) 0%, #1a1a1a 100%);
    padding: 20px;
}

.auth-card {
    background: var(--evolv-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 80px;
    width: auto;
}

.auth-logo h1 {
    color: var(--evolv-red);
    font-size: 28px;
    margin-top: 15px;
    letter-spacing: 3px;
}

.auth-title {
    text-align: center;
    font-size: 24px;
    color: var(--evolv-black);
    margin-bottom: 30px;
    font-weight: 700;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: var(--evolv-red);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* === PROFIL === */
.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.profile-item {
    padding: 20px;
    background: var(--evolv-light-gray);
    border-radius: 10px;
}

.profile-item label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.profile-item span {
    font-size: 18px;
    font-weight: 600;
    color: var(--evolv-black);
}

/* === WELCOME MESSAGE === */
.welcome-section {
    background: linear-gradient(135deg, var(--evolv-black) 0%, #2a2a2a 100%);
    color: var(--evolv-white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-section p {
    opacity: 0.9;
    font-size: 16px;
}

/* === ÉTAT VIDE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* === FILTRE === */
.filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-section label {
    font-weight: 600;
    color: #333;
}

.filter-section select {
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    min-width: 200px;
}

.filter-section select:focus {
    outline: none;
    border-color: var(--evolv-red);
}

/* === ACTIONS FORMULAIRE === */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 1;
}

/* === CONFIRMATION BOX === */
.confirm-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirm-box p {
    margin-bottom: 15px;
    font-weight: 500;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--evolv-black);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        text-align: center;
        border-radius: 8px;
    }
    
    .navbar-content {
        position: relative;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section select {
        width: 100%;
    }
    
    th, td {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* === FOOTER === */
footer {
    background: var(--evolv-black);
    color: #888;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 14px;
}

footer a {
    color: var(--evolv-red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
