/* style.css - Design commun Seniorissimo (version nettoyée et optimisée) */

/* Variables globales */
:root {
    --primary: #b71c1c;        /* Rouge principal */
    --primary-dark: #7f0000;
    --dark: #1a1a1a;
    --gray: #4a4a4a;
    --light-gray: #e0e0e0;
    --bg: #f8f9fa;
    --white: #ffffff;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--gray);
    line-height: 1.6;
    padding-top: 80px;
}

/* Navbar - structure générale */
nav {
    background: #222;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Liens de navigation centraux */
nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    height: 44px;
    box-sizing: border-box;
}

/* Administration à gauche */
.admin-left {
    flex: 0 0 auto;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background: var(--primary);
}

/* Boutons spéciaux (Administration, Connexion, Déconnexion) */
.admin-btn {
    background: var(--primary);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    height: 44px;
    box-sizing: border-box;
}

.admin-btn:hover {
    background: var(--primary-dark);
}

.admin-btn.active {
    background: var(--primary-dark);
}

/* Bloc à droite (Bonjour + Déconnexion / Connexion) */
.right-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.greeting {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Conteneur général */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Titres */
h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4rem;
}

/* Cartes */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 40px;
}

/* Alertes */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-danger  { background: #ffebee; color: #c62828; }

/* Formulaires */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray);
}

input, select, button {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--primary-dark);
}

/* Tableau */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #fafafa;
}

/* Boutons actions */
.btn-small {
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
}

.btn-delete {
    background: #d32f2f;
}

.btn-delete:hover {
    background: #b71c1c;
}

.btn-change {
    background: #1976d2;
}

.btn-change:hover {
    background: #1565c0;
}

.self-note {
    color: #757575;
    font-style: italic;
}




.demarche-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 6px solid #ccc;
    transition: all 0.2s;
}

.demarche-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.demarche-item.urgent   { border-left-color: #e74c3c; }
.demarche-item.encours  { border-left-color: #f39c12; }
.demarche-item.termine  { border-left-color: #27ae60; }

.demarche-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.demarche-info {
    color: #555;
    margin-bottom: 10px;
}

.demarche-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.status-select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.delete-demarche-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.delete-demarche-btn:hover {
    background: #c0392b;
}




.edit-demarche-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.edit-demarche-btn:hover {
    background: #2980b9;
}