/* ------------------------------ */
/* BASE */
/* ------------------------------ */

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg,#f0f0f5,#dfe3e8);
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Boutons généraux */
.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    margin: 10px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn.full {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 14px 0;
    margin-top: 25px;
}

.btn.primary {
    background: #007bff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

/* ------------------------------ */
/* CARTE GÉNÉRALE */
/* ------------------------------ */

.card {
    background: white;
    padding: 0px 5px;   /* Réduction du padding */
    border-radius: 10px;  /* Coins plus petits */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);  /* Ombre plus légère */
    margin-bottom: 5px;  /* Moins d'espace entre les cartes */
}


/* ------------------------------ */
/* DASHBOARD (INDEX) */
/* ------------------------------ */

.card-dashboard {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon {
    font-size: 40px;
}

.info {
    flex: 1;
}

.label {
    font-size: 15px;   /* texte plus petit */
    font-weight: bold;
    margin-bottom: 4px;
}


.bar {
    width: 100%;
    height: 10px;        /* hauteur réduite */
    border-radius: 5px;  /* coins plus fins */
    margin: 3px 0;       /* moins d'espacement */
}


.fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #007bff);
    width: 0;
    transition: width 0.4s ease;
}

.percent {
    font-size: 14px;
    color: #333;
    margin-top: 4px;
}

/* ------------------------------ */
/* ADMIN */
/* ------------------------------ */

/* Grille admin : 2 colonnes équilibrées */
.card.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Colonnes */
.left, .right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Liste des barres existantes */
.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bloc d'une ligne */
.item, .add-item {
    display: grid;
    grid-template-columns: 2fr 1fr 80px;
    gap: 20px;
    align-items: end;
    padding: 12px 15px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    box-sizing: border-box;
    width: 100%;
}

/* Champs */
.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.field input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Petits champs */
.field.small {
    width: 100px;
}

.field.tiny {
    width: 60px;
    text-align: center;
}

/* Empêche les débordements */
.add-item {
    grid-template-columns: 2fr 1fr;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */

@media (max-width: 900px) {
    .card.form {
        grid-template-columns: 1fr;
    }

    .item, .add-item {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .item, .add-item {
        grid-template-columns: 1fr;
    }

    .field.small,
    .field.tiny {
        width: 100%;
    }

    .btn.full {
        width: 100%;
    }
}
/* Boutons plus petits pour la partie publique */
.btn-small {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-top: 10px;
}

