/* DESIGN ORANGE/NOIR MÉTALLIQUE RESPONSIVE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    color: #f0f0f0;
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: clamp(20px, 5vw, 35px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 1px rgba(255,165,0,0.2);
    border: 1px solid rgba(255,165,0,0.3);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ffa500, #ff4500);
    box-shadow: 0 2px 10px rgba(255,140,0,0.5);
}

.login-box {
    max-width: 420px;
    width: 90%;
    margin: clamp(40px, 15vh, 80px) auto;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: clamp(25px, 8vw, 45px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 1px rgba(255,165,0,0.2);
    border: 1px solid rgba(255,165,0,0.3);
    text-align: center;
}

h1 { 
    background: linear-gradient(45deg, #ffa500, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 700;
    margin-bottom: clamp(20px, 5vw, 30px);
    text-shadow: 0 2px 10px rgba(255,165,0,0.3);
}

h2 { 
    color: #ffd700;
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 600;
    margin-bottom: clamp(15px, 4vw, 20px);
}

h3 { 
    color: #ffaa00;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 500;
    margin-bottom: 12px;
}

/* INPUTS RESPONSIFS */
input, textarea, select {
    width: 100%;
    padding: clamp(12px, 3vw, 16px) clamp(15px, 4vw, 20px);
    margin: 10px 0;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #444;
    border-radius: 12px;
    color: #f0f0f0;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 
        0 0 0 4px rgba(255,165,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    background: linear-gradient(145deg, #404040, #303030);
    transform: translateY(-1px);
}

textarea { 
    height: clamp(100px, 20vw, 140px); 
    resize: vertical; 
}

/* BOUTONS RESPONSIFS */
.btn {
    display: inline-block;
    padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    margin: 8px 4px;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    min-width: clamp(120px, 25vw, 160px);
    text-align: center;
    flex: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.btn:active { transform: translateY(-1px); }

/* COULEURS BOUTONS */
.btn-primary { background: linear-gradient(145deg, #ffa500, #ff8c00); box-shadow: 0 8px 25px rgba(255,165,0,0.4); }
.btn-success { background: linear-gradient(145deg, #ffaa00, #ff8800); box-shadow: 0 8px 25px rgba(255,170,0,0.5); }
.btn-danger { background: linear-gradient(145deg, #ff4444, #cc0000); box-shadow: 0 8px 25px rgba(255,68,68,0.4); }
.btn-warning { background: linear-gradient(145deg, #ffd700, #ffaa00); color: #1a1a1a; box-shadow: 0 8px 25px rgba(255,215,0,0.4); }
.btn-info { background: linear-gradient(145deg, #00bfff, #0099cc); box-shadow: 0 8px 25px rgba(0,191,255,0.4); }

/* TABLE RESPONSIVE */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
}

th {
    background: linear-gradient(90deg, #ffa500, #ff8c00, #ff4500);
    color: #1a1a1a;
    font-weight: 700;
    padding: clamp(12px, 3vw, 18px) 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(11px, 2.5vw, 13px);
}

td {
    padding: clamp(12px, 3vw, 18px) 16px;
    border-bottom: 1px solid rgba(255,165,0,0.1);
    color: #f0f0f0;
}

tr:hover td { background: rgba(255,165,0,0.1); transform: scale(1.01); }

/* MOBILE TABLE SCROLL */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

/* STATS RESPONSIVES */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(15px, 4vw, 25px);
    margin: clamp(25px, 6vw, 35px) 0;
}

.stat-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: clamp(25px, 6vw, 35px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,165,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card div:first-child { 
    font-size: clamp(28px, 10vw, 36px); 
    margin-bottom: 8px; 
}

/* GRILLE FORMULAIRES RESPONSIVE */
.forms { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: clamp(25px, 6vw, 40px); 
    margin: clamp(25px, 6vw, 35px) 0; 
}

@media (min-width: 900px) { 
    .forms { grid-template-columns: 1fr 1fr; } 
}

/* MENU BOUTONS RESPONSIF */
.menu-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 15px);
    margin: clamp(25px, 6vw, 30px) 0;
    padding: clamp(15px, 4vw, 20px);
    background: rgba(255,165,0,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,165,0,0.2);
}

/* INFO GRID RESPONSIVE */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 15px;
    border: 1px solid rgba(255,165,0,0.2);
}

@media (min-width: 768px) {
    .info-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* SUIVI RESPONSIF */
.suivi {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: clamp(20px, 5vw, 30px);
    border-radius: 15px;
    white-space: pre-wrap;
    font-family: 'Consolas', monospace;
    font-size: clamp(13px, 3vw, 15px);
    border-left: 5px solid #ffa500;
    margin: 25px 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

/* MESSAGES RESPONSIFS */
.success, .error { 
    padding: clamp(15px, 4vw, 18px) clamp(20px, 5vw, 25px);
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 600;
    font-size: clamp(14px, 3.5vw, 16px);
}

/* SMARTPHONE < 480px */
@media (max-width: 480px) {
    body { padding: 5px; }
    .container, .login-box { 
        width: 98%; 
        padding: 20px; 
        margin: 5px auto; 
        border-radius: 15px;
    }
    .btn { 
        min-width: 100%; 
        margin: 5px 0; 
        padding: 18px; 
    }
    table { font-size: 13px; }
}

/* TABLETTE 481-900px */
@media (min-width: 481px) and (max-width: 900px) {
    .container { width: 96%; padding: 25px; }
    .btn { min-width: 140px; }
}

/* PC > 900px */
@media (min-width: 901px) {
    body { padding: 20px; }
}

/* ANIMATIONS OPTIMISÉES MOBILE */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
