/* Thème Admin Uniforme - Orange Pastel */
/* Écrase tous les styles originaux */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #ffe4cc !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #ffe4cc !important;
    color: #333 !important;
    line-height: 1.6 !important;
    padding: 20px !important;
    min-height: 100vh !important;
}

/* Container */
.container {
/* Login container plus étroit */
.login-container, body .login-container, html body .login-container {
    max-width: 450px !important;
}
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: #fff8f3 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.15) !important;
    border: 2px solid #ffd8b8 !important;
}

/* Header */
.header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #ffd8b8 !important;
}

h1, h2, h3 {
    color: #e65100 !important;
    margin-bottom: 16px !important;
}

h1 { 
    font-size: 26px !important; 
    font-weight: 700 !important; 
}

h2 { 
    font-size: 22px !important; 
    font-weight: 600 !important; 
}

h3 { 
    font-size: 18px !important; 
    font-weight: 600 !important; 
}

/* Section titles */
.section-title {
    color: #e65100 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 25px 0 15px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #ffd8b8 0%, #ffe4cc 100%) !important;
    border-radius: 8px !important;
    border-left: 4px solid #ff8c42 !important;
}

/* Cards */
.demande-card {
    background: #ffffff !important;
    border: 2px solid #ffd8b8 !important;
    border-left: 4px solid #ff8c42 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.1) !important;
    transition: all 0.3s !important;
}

.demande-card:hover {
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.2) !important;
    transform: translateY(-2px) !important;
}

.demande-card h3 {
    margin-bottom: 10px !important;
    color: #e65100 !important;
}

.demande-info {
    color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

/* Tables */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 15px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.1) !important;
}

th {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%) !important;
    padding: 14px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #ffe4cc !important;
}

tr:hover {
    background: #fff5eb !important;
}

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

/* Badges */
.badge, .statut-en_attente, .statut-actif, .statut-refuse {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.statut-en_attente, .badge-warning {
    background: #ffd8b8 !important;
    color: #cc5500 !important;
}

.statut-actif, .badge-success {
    background: #c8e6c9 !important;
    color: #2e7d32 !important;
}

.statut-refuse, .badge-danger {
    background: #ffcdd2 !important;
    color: #c62828 !important;
}

.badge-info {
    background: #ffe0b2 !important;
    color: #e65100 !important;
}

.badge-neutral {
    background: #f5f5f5 !important;
    color: #666 !important;
}

/* Buttons - Uniform orange */
.btn, .back-btn, button[type="submit"], input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3) !important;
}

.btn:hover, .back-btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff7a2e 0%, #e55a2b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4) !important;
}

.btn-secondary {
    background: #fff !important;
    color: #ff8c42 !important;
    border: 2px solid #ff8c42 !important;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.1) !important;
}

.btn-secondary:hover {
    background: #fff5eb !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.2) !important;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

.btn-icon {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #ffd8b8 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    background: #ffffff !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #ff8c42 !important;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.2) !important;
}

/* Links */
a {
    color: #ff8c42 !important;
    text-decoration: none !important;
}

a:hover {
    color: #e65100 !important;
    text-decoration: underline !important;
}

/* Utility */
.text-center { text-align: center !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px !important;
    }
    
    .container {
/* Login container plus étroit */
.login-container, body .login-container, html body .login-container {
    max-width: 450px !important;
}
        padding: 20px !important;
    }
    
    table {
        font-size: 14px !important;
    }
    
    th, td {
        padding: 10px !important;
    }
}
/* HEADER - Boutons et nom en blanc */
.btn-header {
    color: white !important;
}

.btn-light-transparent {
    color: white !important;
}

.header-info h1 {
    color: white !important;
}

.header-info p {
    color: white !important;
}

.header-logo {
    color: white !important;
}

/* Inscription container */
.inscription-container, body .inscription-container { max-width: 380px !important; }
