/* Définition des variables pour une maintenance facile */
:root {
    --primary-color: #2563eb; /* Bleu moderne */
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --bg-overlay: rgba(243, 244, 246, 0.85); /* Un peu plus de transparence pour voir le fond */
    --font-main: 'Figtree', sans-serif;
}

/* Amélioration du fond de page */
body {
    font-family: var(--font-main);
    background-image: url('../Images/fond.jpg'); /* Assure-toi du chemin relatif */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
}

/* Le conteneur principal avec un effet de flou (Glassmorphism) */
.main-wrapper {
    min-height: 100vh;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(5px); /* Floute légèrement l'image de fond derrière le contenu */
}

/* Système de grille (Row/Col) plus moderne */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Espace entre les colonnes */
    margin-bottom: 1.5rem;
}

.col {
    flex: 1;
    min-width: 300px; /* Force le passage à la ligne sur mobile */
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem; /* Coins arrondis */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Ombre légère */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Style pour le footer */
footer {
    border-top: 1px solid #e5e7eb;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Conteneur pour permettre le défilement horizontal sur mobile */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

/* En-tête du tableau */
thead {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

th {
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* Corps du tableau */
td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
}

/* Effet au survol d'une ligne */
tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Arrondir les coins du tableau (nécessite le conteneur) */
table tr:last-child td:first-child { border-bottom-left-radius: 0.75rem; }
table tr:last-child td:last-child { border-bottom-right-radius: 0.75rem; }

/* Base commune aux boutons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

/* Bouton Primaire (Bleu) */
.btn-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
}

/* Bouton Secondaire (Gris/Blanc) */
.btn-secondary {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Bouton Danger (Rouge) */
.btn-danger {
    background-color: #ef4444;
    color: white;
}
.btn-danger:hover {
    background-color: #dc2626;
}

/* État actif (clic) */
.btn:active {
    transform: scale(0.98);
}
