/* Styles des pages, chargés via AssetMapper. Les couleurs viennent des variables de base.html.twig. */

/* Bilan de l'accueil */
.bilan { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.bilan-ligne { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .75rem .95rem; border-radius: 14px; border: 1px solid var(--ligne);
               background: var(--surface); font-weight: 600; text-decoration: none; }
.bilan-ligne .fleche { margin-left: auto; color: var(--doux); font-size: 1.3rem; line-height: 1; }
.bilan-a-prevoir { border-color: color-mix(in srgb, var(--manque) 45%, transparent); background: color-mix(in srgb, var(--manque) 10%, var(--surface)); }
.bilan-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.bilan-a-verifier { font-weight: 500; color: var(--doux); }

/* Cartes des membres */
.membres, .equipements { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.carte-membre { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .75rem;
                padding: .9rem 1rem; border: 1px solid var(--ligne); border-radius: 18px; background: var(--surface);
                text-decoration: none; transition: border-color .15s, transform .15s; }
.carte-membre:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.carte-membre:active { transform: scale(.99); }
.carte-membre .emoji { font-size: 2rem; line-height: 1; text-align: center; }
.carte-membre .corps { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.carte-membre .prenom { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.details-membre { color: var(--doux); font-size: .86rem; }
.mesures-courtes { display: flex; flex-wrap: wrap; gap: .3rem; margin: .15rem 0 0; }
.mesure-courte { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--fond); border: 1px solid var(--ligne);
                 font-size: .78rem; color: var(--doux); white-space: nowrap; }
.mesure-courte strong { color: var(--encre); }
.progression { display: block; height: .3rem; margin-top: .4rem; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.progression-ok { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.compteurs { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.compteur { font-size: .82rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Couleurs des statuts */
.statut-ok { color: var(--ok); }
.statut-manquant { color: var(--manque); }
.statut-a_remplacer { color: var(--remplacer); }
.statut-a_verifier { color: var(--verifier); }

/* Groupes (par membre ou par catégorie) */
.groupe + .groupe { margin-top: 1.5rem; }
.titre-groupe { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; font-size: 1rem; font-weight: 600; }
.titre-groupe a { text-decoration: none; }
.titre-groupe .total { color: var(--doux); font-size: .82rem; font-weight: 500; }
.groupe > .mesures-courtes { margin: -.2rem 0 .65rem; }
.titre-section { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }

/* Lignes d'équipement */
.ligne-equipement { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .6rem;
                    padding: .65rem .7rem .65rem .85rem; border: 1px solid var(--ligne); border-radius: 16px; background: var(--surface);
                    scroll-margin-top: 5rem; }
.ligne-equipement .emoji { font-size: 1.4rem; line-height: 1; text-align: center; }
.ligne-equipement .corps { display: flex; flex-direction: column; min-width: 0; }
.ligne-equipement .nom { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.details-equipement { color: var(--doux); font-size: .84rem; overflow-wrap: anywhere; }
.statut-ligne-manquant { border-color: color-mix(in srgb, var(--manque) 45%, transparent); }
.statut-ligne-a_remplacer { border-color: color-mix(in srgb, var(--remplacer) 45%, transparent); }
.statut-ligne-ok .nom { color: var(--doux); }

/* Les quatre boutons de statut : un toucher suffit. */
.choix-statut { display: flex; gap: .15rem; padding: .15rem; border-radius: 12px; background: var(--fond); border: 1px solid var(--ligne); }
.bouton-statut { width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent;
                 border-radius: 9px; background: transparent; font-size: 1.02rem; line-height: 1; opacity: .38; filter: grayscale(.7);
                 transition: opacity .15s, background .15s, filter .15s; }
.bouton-statut:hover, .bouton-statut:focus-visible { opacity: .85; filter: none; }
.bouton-statut[aria-pressed="true"] { opacity: 1; filter: none; background: var(--surface); border-color: var(--ligne); box-shadow: 0 2px 6px -3px rgba(0,0,0,.35); }
@media (max-width: 400px) {
    .ligne-equipement:has(.choix-statut) { grid-template-columns: 1.7rem minmax(0, 1fr); }
    .ligne-equipement .choix-statut { grid-column: 1 / -1; justify-content: space-between; }
    .bouton-statut { flex: 1; }
}
.bouton-fait { width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 1px solid var(--ligne); background: var(--fond); font-size: 1.15rem; }
.bouton-fait:hover { border-color: var(--ok); }
.legende { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0 0 1rem; font-size: .8rem; }

/* Fiche d'un membre */
.fiche-entete { display: flex; align-items: center; gap: 1rem; }
.fiche-entete .sous-titre { margin-bottom: 1.25rem; }
.fiche-emoji { font-size: 3rem; line-height: 1; margin: 0 0 .75rem; }
.fiche-entete .fiche-emoji { margin: 0 0 1rem; }
.discret { font-size: .88rem; }
.note-membre { margin: 0 0 1.25rem; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.mesures { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin: 0; }
.mesure { padding: .6rem .75rem; border-radius: 12px; background: var(--fond); border: 1px solid var(--ligne); }
.mesure dt { color: var(--doux); font-size: .8rem; }
.mesure dd { margin: .1rem 0 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.mesure-vide dd { font-weight: 500; font-size: .85rem; color: var(--doux); font-style: italic; }
.mesure dd.mesure-note { font-weight: 400; font-size: .78rem; color: var(--doux); }
.astuce { margin-top: 1.5rem; text-align: center; }

.vide { border: 1px dashed var(--ligne); border-radius: 18px; padding: 2rem 1.25rem; text-align: center; color: var(--doux); }
.vide p { margin: .3rem 0; }
.vide-emoji { font-size: 2.2rem; margin: 0; }

/* Boutons, panneaux (Préférences, connexion) */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--accent); border-radius: 12px;
          padding: .7rem 1.2rem; background: var(--accent); color: var(--sur-accent); font-weight: 600; text-decoration: none; }
.bouton:hover { filter: brightness(1.06); }
.panneau { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 1.25rem; margin-bottom: 1.25rem; }
.panneau h2 { font-size: 1.05rem; margin: 0 0 .9rem; }
.details { color: var(--doux); font-size: .9rem; margin: .7rem 0 0; }
.panneau ol { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--doux); font-size: .95rem; }
.panneau li + li { margin-top: .3rem; }
.choix-theme { border: 0; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.option-theme { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--ligne); border-radius: 12px;
                background: var(--fond); font-weight: 600; cursor: pointer; }
.option-theme:has(input:checked) { border-color: var(--accent); outline: 2px solid var(--accent-doux); }
.option-theme input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0; }
@media (max-width: 420px) { .choix-theme { grid-template-columns: 1fr; } .panneau .bouton { width: 100%; } }

.connexion { max-width: 360px; margin: 1.5rem auto; text-align: left; }
.connexion .fiche-emoji { font-size: 2.4rem; }
.connexion label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
.connexion input[type="password"] { width: 100%; font: inherit; font-size: 1.1rem; padding: .75rem .85rem; border: 1px solid var(--ligne);
                                    border-radius: 12px; background: var(--fond); color: var(--encre); }
.connexion input:focus { outline: 3px solid var(--accent-doux); border-color: var(--accent); }
.connexion .bouton { width: 100%; margin-top: 1.25rem; padding: .85rem; font-size: 1.05rem; }
.erreur { background: color-mix(in srgb, #d9534f 18%, transparent); color: #e0716d; padding: .7rem .9rem; border-radius: 12px; margin: 0 0 .5rem; }
