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

/* ------------------------------------------------------------- variables */
:root {
  --encre:        #13222e;
  --encre-clair:  #294050;
  --papier:       #f6f5f1;
  --creux:        #ecebe4;
  --ligne:        #dbd7cc;
  --laiton:       #a87f3c;
  --laiton-vif:   #d3ab63;
  --brique:       #8c3a2b;
  --texte:        #1c2732;
  --doux:         #5e6b76;
  --rayon:        3px;
  --police:       'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--encre); text-decoration-color: var(--laiton); text-underline-offset: 2px; }
a:hover { color: var(--laiton); }

:focus-visible {
  outline: 2px solid var(--laiton);
  outline-offset: 2px;
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------ barre haute */
.barre {
  background: var(--encre);
  color: #fff;
  border-bottom: 3px solid var(--laiton);
}
.barre-interieur {
  max-width: 1080px; margin: 0 auto; padding: .7rem 1.1rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline;
  justify-content: space-between;
}
.marque { color: #fff; text-decoration: none; display: flex; gap: .7rem; align-items: baseline; }
.marque-nom { font-weight: 700; letter-spacing: -.01em; font-size: 1.12rem; }
.marque-qui { color: var(--laiton-vif); font-size: .9rem; }
.nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .95rem; }
.nav a { color: #d9dee2; text-decoration: none; padding-bottom: 2px; }
.nav a:hover { color: #fff; }
.nav a.ici { color: #fff; box-shadow: 0 2px 0 var(--laiton-vif); }
.nav-sortie { color: #93a0aa !important; }
.nav:focus { outline: none; }
.burger, .menu-voile, .nav-tete, .nav-icone, .nav-espace { display: none; }

/* ---------------------------------------- menu hamburger (petits écrans) */
@media (max-width: 960px) {
  .js .barre-interieur { flex-wrap: nowrap; align-items: center; }
  .js .marque { min-width: 0; }
  .js .marque-qui { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .js .burger {
    display: inline-flex; align-items: center; gap: .55rem; flex: none;
    font: inherit; font-size: .9rem; font-weight: 600; color: #fff; cursor: pointer;
    background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: var(--rayon);
    padding: .45rem .75rem;
  }
  .js .burger:hover { background: rgba(255,255,255,.1); }
  .burger-barres { display: flex; flex-direction: column; gap: 4px; width: 18px; }
  .burger-barres span { height: 2px; border-radius: 1px; background: #fff; transition: width .2s; }
  .burger-barres span:nth-child(2) { width: 65%; background: var(--laiton-vif); }
  .burger:hover .burger-barres span:nth-child(2) { width: 100%; }

  .js .menu-voile {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(10,18,25,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .menu-ouvert .menu-voile { opacity: 1; visibility: visible; transition: opacity .3s; }

  .js .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
    width: min(19rem, 86vw);
    flex-direction: column; flex-wrap: nowrap; gap: .15rem;
    padding: 0 .8rem 1.2rem; font-size: 1rem;
    background: var(--encre); border-left: 3px solid var(--laiton);
    box-shadow: -12px 0 40px rgba(0,0,0,.35);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s;
  }
  .menu-ouvert .nav { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
  body.menu-ouvert { overflow: hidden; }

  .js .nav-tete {
    display: flex; align-items: center; gap: .75rem;
    margin: 0 -.8rem .6rem; padding: 1rem .8rem 1rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav-avatar {
    flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--laiton); color: #fff; font-weight: 700; font-size: 1.1rem;
  }
  .nav-qui { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .nav-qui strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-qui span { color: var(--laiton-vif); font-size: .8rem; }
  .nav-fermer {
    margin-left: auto; flex: none; width: 2.4rem; height: 2.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
    transition: transform .2s, background .2s;
  }
  .nav-fermer:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }
  .nav-fermer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

  .js .nav a {
    display: flex; align-items: center; gap: .85rem;
    padding: .72rem .8rem; border-radius: 6px; border-left: 3px solid transparent;
    color: #d9dee2; box-shadow: none;
    opacity: 0; transform: translateX(14px);
    transition: opacity .3s, transform .3s, background .15s;
  }
  .menu-ouvert .nav a {
    opacity: 1; transform: none;
    transition-delay: calc(.06s + var(--i) * .035s), calc(.06s + var(--i) * .035s), 0s;
  }
  .js .nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .js .nav a.ici { background: rgba(211,171,99,.14); border-left-color: var(--laiton-vif); color: #fff; }
  .js .nav-icone {
    display: block; flex: none; width: 22px; height: 22px; color: #93a0aa;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  .js .nav a:hover .nav-icone { color: #fff; }
  .js .nav a.ici .nav-icone { color: var(--laiton-vif); }

  .js .nav-espace {
    display: block; flex: 1 0 1.2rem; margin: 0 .8rem .6rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .js .nav a.nav-sortie:hover { background: rgba(140,58,43,.3); color: #f2c2b8 !important; }
  .js .nav a.nav-sortie:hover .nav-icone { color: #f2c2b8; }
}

.contenu { max-width: 1080px; margin: 0 auto; padding: 1.4rem 1.1rem 3rem; }

.pied {
  max-width: 1080px; margin: 0 auto; padding: 1.2rem 1.1rem 2rem;
  color: var(--doux); font-size: .85rem; border-top: 1px solid var(--ligne);
}

/* ------------------------------------------------------------- messages */
.msg {
  margin: 0 0 1rem; padding: .7rem .9rem; border-radius: var(--rayon);
  border-left: 3px solid var(--laiton); background: var(--creux); font-size: .95rem;
}
.msg-erreur { border-left-color: var(--brique); background: #f6e9e6; color: #6d2c20; }
.msg-info { border-left-color: var(--encre-clair); }
.aide { color: var(--doux); font-size: .9rem; max-width: 62ch; }
.vide {
  color: var(--doux); background: var(--creux); padding: 1.2rem;
  border-radius: var(--rayon); max-width: 62ch;
}

/* ------------------------------------------------- bandeau du mois (héros) */
.bandeau-mois {
  background: var(--encre);
  color: #fff;
  border-radius: var(--rayon);
  padding: 1.3rem 1.4rem 1.5rem;
  margin-bottom: 1.8rem;
  position: relative;
}
.mois-nav { display: flex; align-items: center; gap: .5rem; }
.fleche {
  color: #fff; text-decoration: none; font-size: 1.5rem; line-height: 1;
  padding: .1rem .5rem; border: 1px solid rgba(255,255,255,.22); border-radius: var(--rayon);
}
.fleche:hover { background: rgba(255,255,255,.1); color: #fff; }
.mois-choix input[type="month"] {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--rayon); padding: .28rem .45rem; font: inherit; font-size: .9rem;
}
.mois-titre { margin: .9rem 0 0; color: var(--laiton-vif); font-size: .95rem; font-weight: 500; }
.total-geant {
  margin: .1rem 0 .2rem;
  font-size: clamp(2.5rem, 9vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.stats {
  display: flex; flex-wrap: wrap; gap: .2rem 2.2rem;
  margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(255,255,255,.16);
}
.stats div { min-width: 6.5rem; }
.stats dt { color: #9aa8b2; font-size: .78rem; }
.stats dd { margin: 0; font-weight: 600; font-size: 1.02rem; }
.stats-claires { border-top-color: var(--ligne); margin-top: 0; padding-top: 0; }
.stats-claires dt { color: var(--doux); }

.repartition { display: flex; gap: 3px; margin-top: 1.1rem; font-size: .74rem; }
.part {
  padding: .3rem .5rem; border-radius: 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: var(--encre); background: #c8cfd4;
}
.part-horaire { background: #cfd6da; }
.part-dispo { background: var(--laiton-vif); }
.part-forfait { background: #8fa3ae; }

.actions-mois { margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.bandeau-mois .btn-discret { color: #fff; border-color: rgba(255,255,255,.35); }
.bandeau-mois .btn-discret:hover { background: rgba(255,255,255,.12); }
.bandeau-mois-compact { padding: 1.1rem 1.4rem 1.2rem; margin-bottom: 1.2rem; }
.bandeau-mois-compact .mois-titre { margin-top: .6rem; }

/* --------------------------------------------------------- calendrier mensuel */
.grille-cal {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--ligne);
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  overflow: hidden;
}
.cal-entete {
  background: var(--creux); color: var(--doux); text-align: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: .5rem .2rem;
}
.cal-entete.cal-weekend { color: var(--brique); }
.case-jour {
  background: #fff; color: var(--texte); text-decoration: none;
  min-height: 5.2rem; padding: .4rem .45rem; display: flex; flex-direction: column;
  gap: .15rem; position: relative;
}
.case-jour:hover { background: var(--creux); }
.case-jour.cal-weekend { background: #fbf7ef; }
.case-jour.cal-weekend:hover { background: var(--creux); }
.case-jour.hors-mois { background: #fcfbf9; color: #c7c2b6; }
.case-jour.hors-mois .case-num { color: #c7c2b6; }
.case-jour.aujourdhui { box-shadow: inset 0 0 0 2px var(--laiton); }
.case-jour.aujourdhui .case-num {
  background: var(--brique); color: #fff; border-radius: 50%;
  width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
}
.case-jour.avec-travail { border-top: 3px solid var(--laiton-vif); }
.case-num { font-size: .92rem; font-weight: 700; }
.case-heures { font-size: .74rem; color: var(--doux); }
.case-montant { font-size: .74rem; font-weight: 600; color: var(--encre); margin-top: auto; }

.cal-totaux {
  display: flex; flex-wrap: wrap; gap: .5rem 2.2rem;
  margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--encre); color: #fff;
  border-radius: var(--rayon);
}
.cal-totaux p { margin: 0; display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; }
.cal-totaux-etiquette { color: #9aa8b2; font-size: .82rem; }
.cal-totaux strong { font-size: 1.15rem; }
.cal-totaux-gain { color: var(--laiton-vif); }

@media (max-width: 680px) {
  .grille-cal { grid-template-columns: repeat(7, 1fr); font-size: .8rem; }
  .case-jour { min-height: 3.6rem; padding: .3rem; }
  .case-heures, .case-montant { font-size: .64rem; }
  .cal-entete { font-size: .62rem; padding: .35rem .1rem; }
}

/* -------------------------------------------------------------- boutons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: .95rem;
  padding: .6rem 1.1rem; border-radius: var(--rayon); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-principal { background: var(--laiton); color: #fff; }
.btn-principal:hover { background: #916c30; color: #fff; }
.btn-discret { background: transparent; color: var(--encre); border-color: var(--ligne); }
.btn-discret:hover { background: var(--creux); color: var(--encre); }
.btn-petit { padding: .35rem .7rem; font-size: .85rem; }

.lien, .lien-danger {
  background: none; border: 0; padding: 0; font: inherit; font-size: .88rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.lien { color: var(--encre); text-decoration-color: var(--ligne); }
.lien-danger { color: var(--brique); text-decoration-color: #d9b7b0; }
.en-ligne { display: inline; }

/* ---------------------------------------------------------- formulaires */
.titre-page { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: .2rem 0 .6rem; }
.titre-section { font-size: 1.1rem; font-weight: 600; margin: 0 0 .3rem; }
.section {
  margin: 2rem 0 0; padding: 1.3rem; background: #fff;
  border: 1px solid var(--ligne); border-radius: var(--rayon);
}
.formulaire { margin-top: .9rem; }
.rangee { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: .9rem; }
.champ, label.champ { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 11rem; font-size: .85rem; color: var(--doux); }
.champ-court { flex: 0 1 9rem; }
.champ-montant { flex: 0 1 12rem; }
.pile { display: flex; flex-direction: column; gap: .9rem; }
.pile label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--doux); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="time"], input[type="number"], input[type="month"], select, textarea {
  font: inherit; color: var(--texte); background: #fff;
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: .55rem .6rem; width: 100%;
}
input:disabled { background: var(--creux); color: var(--doux); }
textarea { resize: vertical; }
.bordure-haut { border-top: 1px solid var(--ligne); margin-top: 1.4rem; padding-top: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* choix du type de prestation */
.types { border: 0; padding: 0; margin: 0 0 1.1rem; }
.types legend { font-size: .85rem; color: var(--doux); padding: 0; margin-bottom: .4rem; }
.type-choix {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--ligne); background: #fff; border-radius: var(--rayon);
  padding: .55rem .85rem; margin: 0 .5rem .5rem 0; font-size: .95rem;
}
.type-choix input { accent-color: var(--laiton); margin: 0; }
.type-choix:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); font-weight: 600; }
.bloc { margin-bottom: 1rem; }
.bloc[hidden] { display: none; }
.bloc.secondaire { opacity: .62; }

.forfaits { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 0; }
.forfait-ligne {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end;
  padding: .8rem; background: var(--creux); border-radius: var(--rayon);
}
.forfait-ligne.inactif { opacity: .6; }
.forfait-actions { display: flex; gap: .8rem; align-items: center; }

/* -------------------------------------------------------------- tableaux */
.table-defilante { overflow-x: auto; }
.journal, .liste {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--ligne); border-radius: var(--rayon);
}
.journal th, .liste th {
  text-align: left; font-size: .76rem; font-weight: 600; color: var(--doux);
  padding: .7rem .8rem; border-bottom: 1px solid var(--ligne); background: var(--creux);
  white-space: nowrap;
}
.journal td, .liste td {
  padding: .75rem .8rem; border-bottom: 1px solid #eeece6; vertical-align: top;
}
.journal tbody tr:last-child td, .liste tbody tr:last-child td { border-bottom: 0; }
.journal tbody tr:hover, .liste tbody tr:hover { background: #fcfbf8; }
.journal tr.jour-nouveau td { border-top: 1px solid var(--ligne); }
.num { text-align: right; white-space: nowrap; }
.montant { font-weight: 700; }
.detail { display: block; color: var(--doux); font-size: .82rem; }
.cel-date { white-space: nowrap; }
.jour-num { font-size: 1.15rem; font-weight: 700; margin-right: .3rem; }
.jour-nom { color: var(--doux); font-size: .82rem; }
.journal tr.a-note td { border-bottom: 0; }
.journal tr.ligne-note td { padding: 0 .8rem .8rem; }
.journal tbody tr.ligne-note:hover { background: transparent; }
.note-texte {
  display: block; white-space: pre-line; overflow-wrap: anywhere;
  font-size: .9rem; color: var(--texte);
  background: #fbf7ef; border-left: 3px solid var(--laiton-vif);
  border-radius: var(--rayon); padding: .5rem .75rem;
}
.note-etiquette {
  display: block; font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--laiton); margin-bottom: .2rem;
}
.client { display: inline-flex; align-items: center; gap: .4rem; }
.client-icone {
  flex: none; width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%;
  background: var(--creux); color: var(--laiton);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.cel-horaire { white-space: nowrap; }
.horaire { font-weight: 600; color: var(--encre); }
.horaire-fleche { color: var(--laiton); margin: 0 .3rem; }
.horaire-calculee { font-style: italic; color: var(--encre-clair); }
.horaire-lendemain { color: var(--brique); font-size: .68rem; margin-left: .15rem; }
.cel-actions { white-space: nowrap; font-size: .88rem; }
.cel-actions > * + * { margin-left: .7rem; }
tr.inactif td { background: #faf8f4; color: var(--doux); }

.pastille {
  display: inline-block; font-size: .74rem; font-weight: 600; padding: .16rem .5rem;
  border-radius: 2px; border: 1px solid var(--ligne); color: var(--encre); background: #fff;
}
.pastille-dispo { background: #f4e6cb; border-color: #e0c58f; }
.pastille-forfait { background: var(--encre); border-color: var(--encre); color: #fff; }
.pastille-admin { background: var(--encre-clair); border-color: var(--encre-clair); color: #fff; }
.pastille-bloque { background: #f6e9e6; border-color: #dcbbb3; color: var(--brique); }

.mini summary { cursor: pointer; font-size: .88rem; color: var(--encre); }
.pile-mini { display: flex; flex-direction: column; gap: .4rem; margin-top: .4rem; min-width: 11rem; }

/* ------------------------------------------------- pages de connexion */
.page-centree {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 1.2rem;
  background: var(--encre);
}
.carte-auth {
  background: var(--papier); width: 100%; max-width: 25rem;
  padding: 1.8rem; border-radius: var(--rayon); border-top: 3px solid var(--laiton);
}
.titre-auth { margin: 0 0 .3rem; font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.carte-auth .btn-principal { width: 100%; }
.carte-auth code { background: var(--creux); padding: .05rem .3rem; border-radius: 2px; }
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 4.6rem; }
.voir-mdp {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--encre);
  background: var(--creux); border: 1px solid var(--ligne); border-radius: 2px;
  padding: .2rem .55rem; cursor: pointer;
}
.voir-mdp:hover { background: var(--ligne); }

/* ------------------------------------------------------- page favoris */
.etapes { margin: .4rem 0 0; padding-left: 1.3rem; max-width: 62ch; }
.etapes li { margin-bottom: .35rem; }
.section[hidden] { display: none; }
.favori-carte { display: flex; align-items: center; gap: 1rem; }
.favori-icone { border-radius: 14px; flex: none; }
.favori-nom { margin: 0 0 .4rem; font-weight: 600; }

/* ------------------------------------------------------------- mobile */
@media (max-width: 680px) {
  .journal thead { display: none; }
  .journal, .journal tbody { display: block; border: 0; background: transparent; }
  .journal tbody tr {
    display: grid; grid-template-columns: 2.6rem 1fr auto auto;
    gap: .1rem .8rem; background: #fff; border: 1px solid var(--ligne);
    border-radius: var(--rayon); padding: .8rem; margin-bottom: .6rem;
  }
  .journal tbody tr:hover { background: #fff; }
  .journal td { border: 0 !important; padding: 0; }
  /* 1re ligne : type (forfait…) à gauche, prix à droite ; dessous : date ;
     puis client à gauche, horaire et durée à droite ; enfin les actions. */
  .journal td.cel-type {
    grid-column: 1 / 4; grid-row: 1; align-self: center;
    display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem;
  }
  .journal td.cel-type .detail { display: inline; }
  .journal td.cel-montant { grid-column: 4; grid-row: 1; align-self: center; font-size: 1.05rem; }
  .journal td.cel-type, .journal td.cel-montant { margin-bottom: .45rem; }
  .journal td.cel-date { grid-column: 1 / 3; grid-row: 2; }
  .jour-num { display: block; margin: 0; }
  .jour-nom { display: block; }
  .journal td.cel-client { grid-column: 1 / 3; grid-row: 3; margin-top: .45rem; min-width: 0; align-self: center; }
  .journal td.cel-horaire { grid-column: 3; grid-row: 3; margin-top: .45rem; align-self: center; text-align: right; }
  .journal td.cel-duree { grid-column: 4; grid-row: 3; margin-top: .45rem; align-self: center; }
  .journal td.cel-horaire .horaire { font-weight: 500; color: var(--doux); }
  .journal td.cel-horaire .horaire-fleche { margin: 0 .2rem; }
  .journal td.cel-actions {
    grid-column: 1 / -1; grid-row: 4;
    margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #eeece6 !important;
  }
  .journal tbody tr.a-note {
    margin-bottom: 0; border-bottom: 0;
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  }
  .journal tbody tr.ligne-note {
    display: block; margin-bottom: .6rem; padding: 0 .8rem .8rem;
    border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0;
  }
  .journal tr.ligne-note td { display: block; padding: 0; }
  .stats { gap: .6rem 1.4rem; }
  .section { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------- connexion sans mot de passe */
.choix-comptes { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0 1.3rem; }
.choix-comptes form { margin: 0; }
button.compte {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: #fff; border: 1px solid var(--ligne); border-left: 3px solid var(--laiton);
  border-radius: var(--rayon); padding: .7rem .9rem;
}
button.compte:hover { background: var(--creux); }
.compte-nom { font-weight: 600; font-size: 1rem; }
.compte-mail { color: var(--doux); font-size: .82rem; }
.compte-role {
  font-size: .7rem; font-weight: 600; color: #fff; background: var(--encre-clair);
  padding: .1rem .4rem; border-radius: 2px; margin-top: .25rem;
}
.repli { margin: 1rem 0; }
.repli summary { cursor: pointer; font-size: .9rem; color: var(--doux); }
.repli form { margin-top: .8rem; }
