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

/* Semaine : sept boutons à partir d'aujourd'hui, défilables sur petit écran. */
.semaine { display: grid; grid-template-columns: repeat(7, minmax(2.9rem, 1fr)); gap: .35rem; margin: 0 0 1.6rem;
           overflow-x: auto; scrollbar-width: none; }
.semaine::-webkit-scrollbar { display: none; }
.semaine .jour { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .2rem .45rem;
                 border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface); text-decoration: none;
                 transition: border-color .15s, background .15s; }
.semaine .jour:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.semaine .nom { font-size: .72rem; font-weight: 600; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.semaine .numero { font-size: 1.15rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.semaine .pastille { min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; display: inline-flex; align-items: center;
                     justify-content: center; font-size: .72rem; font-weight: 700; background: var(--accent-doux); color: var(--accent); }
.semaine .pastille.zero { background: transparent; color: var(--doux); }
.semaine .aujourdhui .nom { color: var(--accent); }
.semaine .jour[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.semaine .jour[aria-current="page"] .nom { color: var(--sur-accent); opacity: .85; }
.semaine .jour[aria-current="page"] .pastille { background: var(--sur-accent); color: var(--accent); }
.semaine .jour[aria-current="page"] .pastille.zero { background: transparent; color: var(--sur-accent); }

.badge-aujourdhui { display: inline-block; vertical-align: middle; margin-left: .35rem; padding: .1rem .55rem; border-radius: 999px;
                    background: var(--accent-doux); color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: 0; }

/* Listes de sorties, regroupées par date. */
.groupe-jour + .groupe-jour { margin-top: 1.6rem; }
.date-groupe { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: 0 0 .6rem;
               font-size: .95rem; font-weight: 600; }
.date-groupe .relatif { color: var(--doux); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.sorties { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.carte-sortie { display: grid; grid-template-columns: 3.4rem 2rem minmax(0, 1fr); align-items: center; gap: .55rem;
                padding: .8rem .9rem; border: 1px solid var(--ligne); border-radius: 16px; background: var(--surface);
                text-decoration: none; transition: border-color .15s, transform .15s; }
.carte-sortie:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.carte-sortie:active { transform: scale(.99); }
.carte-sortie .heure { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); font-size: .95rem; }
.carte-sortie .emoji { font-size: 1.5rem; line-height: 1; text-align: center; }
.carte-sortie .corps { display: flex; flex-direction: column; min-width: 0; }
.carte-sortie .titre { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.carte-sortie .details-sortie { color: var(--doux); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passees .carte-sortie { opacity: .7; }
.passees .carte-sortie .heure { color: var(--doux); }

.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 a { color: var(--accent); }
.vide-emoji { font-size: 2.2rem; }
.lien-bas { margin: 2rem 0 0; text-align: center; font-size: .92rem; }
.lien-bas a { color: var(--doux); }

/* Fiche d'une sortie */
.fiche-emoji { font-size: 3rem; line-height: 1; margin: .25rem 0 .75rem; }
.categorie { display: inline-block; margin: 0 0 .5rem; padding: .15rem .65rem; border-radius: 999px; border: 1px solid var(--ligne);
             color: var(--doux); font-size: .8rem; font-weight: 600; }
.etat-passee { color: var(--doux); font-weight: 600; margin: .2rem 0 0; }
.infos { margin: 1.4rem 0; padding: .3rem 1rem; border: 1px solid var(--ligne); border-radius: 16px; background: var(--surface); }
.infos > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; }
.infos > div + div { border-top: 1px solid var(--ligne); }
.infos dt { color: var(--doux); font-size: .9rem; }
.infos dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.infos dd a { color: var(--accent); text-underline-offset: .15em; }
.infos .relatif { color: var(--doux); font-weight: 400; }
.description { margin: 0 0 1.4rem; line-height: 1.65; overflow-wrap: anywhere; }

/* Boutons, panneaux (Préférences, connexion) */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; 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; }
