:root {
    --primary-color: #002e5d; /* Bleu Gendarmerie */
    --secondary-color: #0056b3;
    --accent-color: #c9a338; /* Or/Jaune */
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a, .nav-links button {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-login {
    background-color: var(--accent-color) !important;
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0,46,93,0.9), rgba(0,46,93,0.8)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Flag_of_France.svg/2560px-Flag_of_France.svg.png'); /* Placeholder BG */
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-hero {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 10px;
    transition: transform 0.2s;
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* Forms */
.form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Dashboard Specifics */
.admin-panel { padding: 2rem; max-width: 1400px; margin: auto; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.widget { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.status-badge { padding: 5px 10px; border-radius: 4px; font-weight: bold; font-size: 0.85rem; }
.status-En { background: #ffeeba; color: #856404; }
.status-Accepté { background: #d4edda; color: #155724; }
.status-Refusé { background: #f8d7da; color: #721c24; }
.action-btn { padding: 5px 10px; border: none; cursor: pointer; border-radius: 4px; margin-right: 5px; }
.btn-accept { background: #28a745; color: white; }
.btn-reject { background: #dc3545; color: white; }
.btn-view { background: var(--secondary-color); color: white; }

.results-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.results-table th, .results-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.results-table th { background-color: #f8f9fa; font-weight: 600; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}
.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
