/* --- Variables pour une maintenance facile --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius: 0.25rem;
    --box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* --- Reset & Global --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #f1f2f6;
    color: var(--dark-color);
}

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

header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

nav .brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li a {
    display: block;
    padding: 0 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    line-height: 60px;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Typographie --- */
h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* --- Tableaux --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
    box-shadow: var(--box-shadow);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

thead th {
    background-color: var(--light-color);
    font-weight: bold;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* --- Formulaires --- */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

button, input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}
/* --- Style pour les filtres par colonne --- */
.filter-row th {
    padding: 5px;
}
.filter-row input {
    width: 95%;
    padding: 6px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style pour le menu actif */
nav ul li.active a {
    color: var(--primary-color);
    font-weight: bold;
}
/* Style pour les notifications */
.notice {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}
.notice.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.group-creation-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}
.group-creation-box h3 { margin-top: 0; }

.filter-row select.column-filter {
    width: 95%;
    padding: 6px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white; /* Assure un fond blanc */
}

.status-badge { padding: 3px 8px; border-radius: 12px; color: white; font-size: 0.8em; }
.status-brouillon { background-color: #6c757d; }
.status-en.attente { background-color: #ffc107; color: black; }
.status-en.cours { background-color: #17a2b8; }
.status-en.pause { background-color: #fd7e14; }
.status-stoppee { background-color: #dc3545; }
.status-terminee { background-color: #28a745; }
progress { width: 100%; }

.campaign-controls-box, .stats-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.campaign-controls-box h3, .stats-box h3 {
    margin-top: 0;
}
.status-info {
    margin-bottom: 15px;
    font-size: 1.1em;
}
.stats-box ul {
    list-style: none;
    padding: 0;
}
.stats-box li {
    padding: 5px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}