/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: #2c3e50;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

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

/* Headers */
h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h2 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

/* Alerts / Flash messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid;
}

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

.alert-error, .error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

/* Forms */
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

button,
.btn {
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    background: #2980b9;
}

/* Tables */
table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

table th {
    background: #34495e;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

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

table tr:hover {
    background: #f8f9fa;
}

table a {
    color: #3498db;
    text-decoration: none;
    margin-right: 1rem;
}

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

/* Stats Dashboard */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 10vh auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.login-container input {
    margin-bottom: 1.5rem;
}

.login-container button {
    width: 100%;
}

.login-container p {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
}

.login-container a {
    color: #3498db;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

/* Hero (page d'accueil) */
.hero {
    max-width: 800px;
    margin: 10vh auto;
    text-align: center;
    padding: 3rem 2rem;
}

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

.hero p {
    font-size: 1.25rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.hero .btn {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    nav a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-muted {
    color: #7f8c8d;
}

table a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

table a:hover {
    color: #3498db;
    text-decoration: underline;
}

.vacation-banner{
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .6rem 1rem;
  background: #b91c1c; /* rouge “alerte” */
  color: #fff; font-weight: 600;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.08);
}
.vacation-banner .vac-dot{
  width: 10px; height: 10px; border-radius: 9999px;
  background: #fff; opacity: .9; display: inline-block;
  animation: vac-pulse 1.5s infinite ease-in-out;
}
@keyframes vac-pulse {
  0% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.4); opacity: .5; }
  100% { transform: scale(1); opacity: .9; }
}
.vacation-banner .vac-link{
  margin-left: auto; text-decoration: underline; color: #fff;
}
@media (max-width: 640px){
  .vacation-banner .vac-link{ margin-left: 0; }
}
