@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* --- 1. BASE & FOND --- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.75); 
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --primary: #7F008A;  /* Votre violet/magenta élégant */
    --accent: #FEA3FF;   /* Bleu clair vibrant */
    --text: #1e293b;
    --text-light: #64748b;
    --radius: 16px;
}

* { box-sizing: border-box; }

@font-face {
    font-family: 'Quicksand-VariableFont_wght';
    src: url('../polices/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Quicksand-VariableFont_wght', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    /* Fond dégradé subtil pour faire ressortir l'effet verre */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le contenu horizontalement */
}

/* --- 2. CONTENEUR FLUIDE CENTRÉ --- */
.container {
    width: 90%; 
    max-width: 1100px; 
    margin: 10px auto;
    width: 100%; /* S'assure de prendre la place définie par le parent */
}

/* --- 3. LE STYLE "GLASS" --- */
header, 
.admin-panel, 
form, 
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
    padding: 30px; 
    margin-bottom: 25px;
}

/* --- 4. HEADER & NAVIGATION --- */
header {
    width: 90%;
    max-width: 1100px;
    margin-top: 20px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header strong {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-size: 1.2rem;
}

nav { display: flex; gap: 15px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; transition: color 0.3s;}
nav a:hover { color: var(--primary); }

/* --- 5. ÉLÉMENTS ÉLÉGANTS --- */
h1, h2, h3 {
    text-align: center; 
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
    margin-top: 0;
}

input, select, textarea {
    font-family: 'Quicksand-VariableFont_wght', sans-serif;
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.5); 
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 159, 253, 0.1);
}

.btn {
    font-family: 'Quicksand-VariableFont_wght', sans-serif;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px; 
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
    background: var(--primary);
    backdrop-filter: blur(4px);
    text-align: center;
}

.btn:hover {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(0, 159, 253, 0.4);
}

/* Tableaux */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; 
}

th {
    background: rgba(127, 0, 138, 0.05); /* Nuance de votre primary */
    color: var(--primary);
    padding: 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: left;
}

td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* --- 6. ADAPTATION MOBILE --- */
@media (max-width: 900px) {
    .container, header { width: 95%; padding: 15px; }
    header { flex-direction: column; gap: 15px; text-align: center; }
    nav { justify-content: center; }
    .btn { width: 100%; margin-bottom: 10px; }
}