/* Memo — feuille de style unique, mobile d'abord, sans dépendance externe. */

:root {
  --fond: #f6f5f1;
  --surface: #ffffff;
  --texte: #1f2328;
  --discret: #5d636b;
  --bordure: #d9d6cf;
  --accent: #2f5d62;
  --accent-texte: #ffffff;
  --accent-doux: #e3eeee;
  --oral: #8a4b08;
  --oral-fond: #fdf0dc;
  --danger: #b42318;
  --ok: #1d7a46;
  --n1: #b42318;
  --n2: #b25e09;
  --n3: #1d6fa3;
  --n4: #1d7a46;
  --rayon: 12px;
  --nav-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121416;
    --surface: #1c1f22;
    --texte: #e8e6e1;
    --discret: #a3a8ae;
    --bordure: #33383d;
    --accent: #5fa8ad;
    --accent-texte: #0d1a1b;
    --accent-doux: #1d3133;
    --oral: #f2b766;
    --oral-fond: #3a2a14;
    --danger: #f07167;
    --ok: #5cc98a;
    --n1: #e5534b;
    --n2: #d9822b;
    --n3: #4a9fd6;
    --n4: #3fb27a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1rem calc(var(--nav-h) + 2rem + env(safe-area-inset-bottom));
}
body.sans-nav .page { padding-bottom: 2rem; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .3rem; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.discret { color: var(--discret); font-size: .95rem; }
.texte { white-space: pre-line; overflow-wrap: anywhere; }
.vide { color: var(--discret); padding: 1rem; text-align: center; background: var(--surface);
        border: 1px dashed var(--bordure); border-radius: var(--rayon); }
.alerte { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger);
          padding: .75rem 1rem; border-radius: var(--rayon); }

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .6rem 1.1rem;
  border: 1px solid var(--bordure); border-radius: var(--rayon);
  background: var(--surface); color: var(--texte);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
}
.bouton:hover { border-color: var(--accent); }
.bouton.principal { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.bouton.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.bouton.geant { display: flex; width: 100%; min-height: 64px; font-size: 1.25rem; margin: 1rem 0; }

/* ---------- formulaires ---------- */
input[type=text], input[type=search], input[type=url], input[type=number], input[type=password],
input[type=file], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem;
  border: 1px solid var(--bordure); border-radius: var(--rayon);
  background: var(--surface); color: var(--texte); font: inherit;
}
textarea { resize: vertical; }
label { font-weight: 600; }
.requis { font-weight: 400; color: var(--discret); font-size: .9rem; }
.pile { display: flex; flex-direction: column; gap: .6rem; }
.pile > label { margin-top: .3rem; margin-bottom: -.3rem; }
.ligne { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ligne > div { display: flex; flex-direction: column; gap: .3rem; }
.case { display: flex; align-items: center; gap: .6rem; min-height: 48px; font-weight: 400; }
.case input, .choix input { width: 22px; height: 22px; accent-color: var(--accent); }
.choix { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .5rem .9rem; margin: 0; }
.choix legend { font-weight: 600; padding: 0 .3rem; }
.choix label { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 400; }

.recherche { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.recherche input[type=search] { flex: 1 1 100%; }
.recherche select { flex: 1 1 12rem; width: auto; }
.recherche .bouton { flex: 0 0 auto; }

/* ---------- repliables ---------- */
details.repli {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  margin: .6rem 0;
}
details.repli > summary {
  min-height: 48px; padding: .75rem 1rem; cursor: pointer; font-weight: 600;
  list-style-position: inside;
}
details.repli[open] > summary { border-bottom: 1px solid var(--bordure); }
details.repli > form, details.repli > div { padding: .75rem 1rem 1rem; }
details.repli.danger > summary { color: var(--danger); }
details.mini > summary { cursor: pointer; color: var(--discret); font-size: .9rem; min-height: 44px;
                         display: flex; align-items: center; }
details.mini form { margin: .3rem 0 .6rem; }

/* ---------- accueil ---------- */
.entete h1 { margin-bottom: 0; }
.entete p { margin-top: .2rem; }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.tuile { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
         padding: .9rem 1rem; display: flex; flex-direction: column; }
.chiffre { font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.libelle { color: var(--discret); font-size: .95rem; }

.tableau { width: 100%; border-collapse: collapse; background: var(--surface);
           border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.tableau th, .tableau td { padding: .65rem .6rem; border-bottom: 1px solid var(--bordure); text-align: left; }
.tableau th { font-size: .85rem; color: var(--discret); font-weight: 600; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- révision ---------- */
.barre-seance { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
                font-weight: 600; margin-bottom: .75rem; }
.carte-revision { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
                  padding: 1.25rem; }
.carte-revision .question { font-size: 1.3rem; font-weight: 600; line-height: 1.4; margin: 0 0 1.25rem; }
.bandeau-oral { display: inline-block; background: var(--oral-fond); color: var(--oral); font-weight: 700;
                padding: .35rem .8rem; border-radius: 999px; margin: 0 0 .9rem; font-size: .95rem; }
.bandeau-oral.petit { font-size: .8rem; padding: .15rem .6rem; margin-bottom: .4rem; }
details.reveler > summary { list-style: none; width: 100%; min-height: 56px; }
details.reveler > summary::-webkit-details-marker { display: none; }
details.reveler[open] > summary { display: none; }
.reponse { border-top: 1px solid var(--bordure); padding-top: 1rem; }
.reponse > .texte:first-child { font-size: 1.15rem; margin-top: 0; }
.a-dire { background: var(--accent-doux); border-radius: var(--rayon); padding: .8rem 1rem; margin: 1rem 0; }
.a-dire h2, .a-dire h3 { margin: 0 0 .3rem; font-size: .95rem; color: var(--accent); }
.a-dire p { margin: 0; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.25rem; }
.bouton.note { min-height: 64px; color: #fff; border: 0; font-size: 1.05rem; flex-direction: column; gap: 0; }
.bouton.note .num { font-size: .85rem; opacity: .85; }
.note-1 { background: var(--n1); }
.note-2 { background: var(--n2); }
.note-3 { background: var(--n3); }
.note-4 { background: var(--n4); }
@media (prefers-color-scheme: dark) { .bouton.note { color: #0d0f10; } }

.fin-seance { text-align: center; padding: 2rem 0; }
.fin-seance .chiffre { font-size: 3.5rem; margin: .5rem 0 0; }
.fin-seance .pile { max-width: 360px; margin: 1.5rem auto 0; }

/* ---------- images ---------- */
figure.image { margin: 1rem 0; }
figure.image img { display: block; max-width: 100%; height: auto; border-radius: var(--rayon);
                   border: 1px solid var(--bordure); }
figure.image figcaption { color: var(--discret); font-size: .9rem; margin-top: .35rem; }

/* ---------- consulter ---------- */
.filtres { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .5rem;
           scrollbar-width: thin; }
.puce { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem;
        border: 1px solid var(--bordure); border-radius: 999px; text-decoration: none; color: var(--texte);
        background: var(--surface); white-space: nowrap; }
.puce.actif { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }

.liste-fiches { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.liste-fiches a { display: block; min-height: 48px; padding: .7rem 1rem; background: var(--surface);
                  border: 1px solid var(--bordure); border-radius: var(--rayon); text-decoration: none;
                  color: var(--texte); }
.liste-fiches a:hover { border-color: var(--accent); }
.liste-fiches .titre { display: block; font-weight: 600; }
.liste-fiches.compacte a { padding: .55rem .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem .75rem; color: var(--discret); font-size: .9rem; }
.annee { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.pastille { display: inline-block; padding: 0 .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
            background: var(--oral-fond); color: var(--oral); }
.pastille.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }

/* ---------- frise ---------- */
.frise { position: relative; margin-left: .4rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.decennie h2 { position: relative; margin-top: 1.5rem; }
.decennie h2::before { content: ""; position: absolute; left: calc(-1.25rem - 9px); top: .35em;
                       width: 15px; height: 15px; border-radius: 50%; background: var(--accent);
                       border: 3px solid var(--fond); }
.decennie ol { list-style: none; padding: 0; margin: 0; }
.decennie li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .45rem 0;
               border-bottom: 1px solid var(--bordure); min-height: 44px; }
.decennie li .annee { min-width: 3.2rem; }

/* ---------- fiche ---------- */
.fil { margin: 0; font-size: .9rem; }
.fiche h1 { margin-bottom: .3rem; }
.bloc { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
        padding: 1rem; margin: 1rem 0; }
.note-verif { border-left: 4px solid var(--oral); background: var(--oral-fond); padding: .7rem 1rem;
              border-radius: 0 var(--rayon) var(--rayon) 0; margin: 1rem 0; }
.note-verif h2 { margin: 0 0 .3rem; font-size: .95rem; color: var(--oral); }
.note-verif p { margin: 0; }
.sources { padding-left: 1.2rem; }
.sources li { margin: .35rem 0; overflow-wrap: anywhere; }
.carte-liste { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
               padding: .8rem 1rem .2rem; margin: .5rem 0; }
.carte-liste .question { font-weight: 600; margin: 0 0 .3rem; }
.carte-liste p { margin: 0 0 .4rem; }
.actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 2rem; }
.actions > form .bouton, .actions > .bouton { width: 100%; }

/* ---------- connexion ---------- */
.connexion { max-width: 360px; margin: 12vh auto 0; text-align: center; }
.connexion .pile { text-align: left; margin-top: 1.5rem; }

/* ---------- barre haute : retour à l'accueil depuis chaque page ---------- */
.barre-haut {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--bordure);
  padding-top: env(safe-area-inset-top);
}
.barre-haut-int {
  max-width: 760px; margin: 0 auto; padding: 0 1rem; min-height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.barre-haut .marque { font-weight: 700; color: var(--discret); letter-spacing: .02em; }
.retour-accueil {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 .9rem 0 .2rem;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.retour-accueil:hover, .retour-accueil:focus-visible { text-decoration: underline; }

/* ---------- navigation basse ---------- */
.nav-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--bordure);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-bas a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--nav-h); color: var(--texte); text-decoration: none; font-size: .875rem; font-weight: 600;
  border-top: 3px solid transparent;
}
.nav-bas .ico { font-size: 1.35rem; line-height: 1.1; height: 1.6rem; display: flex; align-items: center; }
.nav-bas .ico .picto { display: block; }
.nav-bas a.actif { color: var(--accent); border-top-color: var(--accent); }
.nav-bas a:hover { color: var(--accent); }

/* ---------- menu de l'accueil ---------- */
.menu-accueil { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 1.25rem; }
.menu-accueil .entree {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem;
  align-items: center; min-height: 84px; padding: .85rem 1rem;
  background: var(--surface); border: 2px solid var(--bordure); border-radius: var(--rayon);
  color: var(--texte); text-decoration: none;
}
.menu-accueil .entree:hover, .menu-accueil .entree:focus-visible { border-color: var(--accent); }
.menu-accueil .picto { grid-row: 1 / span 2; color: var(--accent); }
.menu-accueil .nom { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.menu-accueil .desc { color: var(--discret); font-size: .9rem; line-height: 1.3; }
@media (max-width: 380px) { .menu-accueil { grid-template-columns: 1fr; } }

.aide { margin: -.2rem 0 0; }

/* ---------- orchestre ---------- */
.p-trompettes   { --c: #d64545; }
.p-trombones    { --c: #e8833a; }
.p-batterie     { --c: #64748b; }
.p-contrebasses { --c: #8a5a32; }
.p-guitares     { --c: #a83fb0; }
.p-vibraphone   { --c: #6f5bd6; }
.p-claviers     { --c: #3b6fd4; }
.p-saxophones   { --c: #4c9a2a; }
.p-clarinettes  { --c: #1a9e8f; }
.p-violon       { --c: #c9a227; }
.p-accordeon    { --c: #b4532a; }
.p-harmonica    { --c: #0e8fb5; }
.p-voix         { --c: #e0607e; }
.p-direction    { --c: var(--accent); }
:root { --plancher: #eee3d0; --plancher-fonce: #e2d3ba; --marche: #cbb894; }
@media (prefers-color-scheme: dark) {
  :root { --plancher: #2a251e; --plancher-fonce: #332c23; --marche: #4a3f30; }
  .p-contrebasses { --c: #b5824f; }
  .p-batterie { --c: #94a3b8; }
}

.filtres.enroule { flex-wrap: wrap; overflow-x: visible; }
.legende { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.legende a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .25rem .7rem;
             border: 1px solid var(--bordure); border-radius: 999px; background: var(--surface);
             color: var(--texte); text-decoration: none; font-size: .9rem; }
.legende a:hover { border-color: var(--c); }
.pastille-couleur { width: .9rem; height: .9rem; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.abr { font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 0 .3rem; border-radius: 4px;
       background: var(--c); color: #fff; }
@media (prefers-color-scheme: dark) { .abr { color: #111; } }
.effectif { font-variant-numeric: tabular-nums; color: var(--discret); font-weight: 600; }

.scene { display: flex; flex-direction: column; gap: .75rem; }
.repere { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
          font-weight: 700; color: var(--discret); margin: 0; }
.repere-cote { display: none; }
.plateau, .cote, .duo, .rang, .avant-scene, .solistes { display: contents; }

.pupitre { background: var(--plancher); border-radius: var(--rayon); padding: .6rem .6rem .7rem;
           border-top: 5px solid var(--c); }
.pupitre h2 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin: 0 0 .5rem; }
.p-trompettes { order: 1; }  .p-trombones { order: 2; }  .p-batterie { order: 3; }
.p-contrebasses { order: 4; } .p-guitares { order: 5; }  .p-vibraphone { order: 6; }
.p-claviers { order: 7; }    .p-saxophones { order: 8; } .p-clarinettes { order: 9; }
.p-voix { order: 10; }       .p-violon { order: 11; }    .p-direction { order: 12; }
.p-accordeon { order: 11; }  .p-harmonica { order: 11; }
.solistes-droite { display: contents; }
.scene > .salle { order: 20; } .scene > .repere-salle { order: 21; }

.sous-pupitre + .sous-pupitre { margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--bordure); }
.sous-pupitre h3 { display: flex; align-items: center; gap: .4rem; font-size: .9rem; margin: 0 0 .4rem; }
.tessiture { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em;
  padding: 0 .25em; border-radius: 4px; background: var(--c, var(--accent)); color: #fff; font-size: .72rem;
  font-weight: 800; line-height: 1; vertical-align: .08em; }
.sieges { list-style: none; margin: 0; padding: 0; display: grid;
          grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .4rem; }
.siege { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 52px;
         padding: .35rem .55rem .35rem .65rem; border-radius: 8px; text-decoration: none; color: var(--texte);
         background: color-mix(in srgb, var(--c) 13%, var(--surface));
         border: 1px solid color-mix(in srgb, var(--c) 45%, var(--bordure)); border-left: 5px solid var(--c); }
.siege:hover, .siege:focus-visible { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.siege .nom { font-weight: 700; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
.siege .details { color: var(--discret); font-size: .8rem; line-height: 1.25; }
.siege .ne { font-variant-numeric: tabular-nums; font-weight: 600; }
.siege.brouillon { border-style: dashed; border-left-style: solid; }
.marque-brouillon { font-size: .7rem; font-style: italic; color: var(--oral); line-height: 1.2; }

.salle { width: 100%; height: 36px; color: var(--bordure); }
.hors-scene { margin-top: 1.5rem; }
code { font-size: .9em; background: var(--accent-doux); padding: 0 .25rem; border-radius: 4px; }

/* Vraie disposition de scène sur grand écran */
@media (min-width: 700px) {
  body.large .page { max-width: 1320px; }
  .scene { position: relative; gap: 0; padding: .5rem 0 0; }
  .plateau { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; position: relative; isolation: isolate;
             padding: .9rem 4.5% 1.2rem; }
  .plateau::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--plancher);
                     clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
  .cote { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
  .repere-cote { display: block; margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
                 text-transform: uppercase; color: var(--discret); }
  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-items: start; }
  .duo > .pupitre:only-child { grid-column: 1 / -1; }
  .rang { display: flex; gap: .7rem; align-items: stretch; padding: .55rem; border-radius: 10px;
          background: var(--plancher-fonce); box-shadow: 0 6px 0 var(--marche); margin-bottom: 6px; }
  /* perspective vue de la salle : le fond de scène est plus étroit que l'avant */
  .rang-3 { margin-inline: 5%; } .rang-2 { margin-inline: 2.5%; } .rang-1 { margin-inline: 0; }
  .rang > .pupitre { flex: 1 1 0; min-width: 0; }
  .rang-1 > .p-saxophones { flex-grow: 2.4; }
  .rang-1 > .p-clarinettes { min-width: 10.5rem; }
  .pupitre { background: color-mix(in srgb, var(--surface) 55%, var(--plancher)); }
  .avant-scene { display: block; background: var(--plancher-fonce); padding: .8rem 4% 2rem;
                 border-top: 3px dashed var(--marche); border-radius: 0 0 50% 50% / 0 0 48px 48px; }
  .avant-scene .repere-cote { text-align: center; margin-bottom: .5rem; }
  .solistes { display: flex; justify-content: center; gap: .9rem; align-items: start; }
  .solistes > .pupitre { flex: 0 1 22rem; min-width: 0; }
  .solistes > .p-direction { order: 2; flex-basis: 26rem; border: 2px solid var(--c); border-top-width: 5px; }
  .solistes > .p-voix { order: 1; }
  .solistes-droite { display: flex; flex-direction: column; gap: .6rem; order: 3; flex: 0 1 22rem; min-width: 0; }
  .sieges { grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); }
  .salle { height: 44px; margin-top: .4rem; }
}

/* ---------- grand écran ---------- */
@media (min-width: 800px) {
  .page { padding-top: 2rem; }
  .nav-bas { left: 50%; right: auto; width: 760px; transform: translateX(-50%);
             border: 1px solid var(--bordure); border-bottom: 0; border-radius: var(--rayon) var(--rayon) 0 0; }
  .notes { grid-template-columns: repeat(4, 1fr); }
  .recherche input[type=search] { flex: 1 1 auto; width: auto; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions > details { flex: 1 1 100%; }
  .actions > form, .actions > .bouton { flex: 1 1 0; }
}

/* Saxophones : une teinte par tessiture, en plus de la lettre */
.tessiture.t-S { background: #7a55c7; }
.tessiture.t-A { background: #0f7c8f; }
.tessiture.t-T { background: #2e7d32; }
.tessiture.t-B { background: #96591a; }

/* Scène sur écran moyen (700 à 1099 px) : même plan de scène, en plus serré */
@media (min-width: 700px) and (max-width: 1099px) {
  body.large .page { padding-inline: .5rem; }
  .plateau { gap: .6rem; padding: .7rem 3% 1rem; }
  .cote, .duo, .rang { gap: .45rem; }
  .rang { padding: .4rem; }
  .rang-3, .rang-2 { margin-inline: 0; }
  .rang-1 { flex-direction: column; }
  .rang-1 > .p-clarinettes { min-width: 0; }
  .pupitre { padding: .45rem .45rem .55rem; }
  .pupitre h2 { font-size: .9rem; }
  .sieges { grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: .3rem; }
  .siege { min-height: 44px; padding: .3rem .4rem; }
  .siege .nom { font-size: .82rem; }
  .siege .details { font-size: .7rem; }
  .solistes { gap: .5rem; }
  .solistes > .pupitre, .solistes > .p-direction, .solistes-droite { flex: 1 1 0; }
}

/* Liens d'écoute */
.ecoutes { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ecoutes a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .3rem .8rem;
  border: 1px solid var(--bordure); border-radius: 999px; background: var(--surface); color: var(--texte);
  text-decoration: none; font-weight: 600; font-size: .92rem; }
.ecoutes a:hover, .ecoutes a:focus-visible { border-color: var(--accent); color: var(--accent); }
.ecoutes .lecture { color: var(--accent); font-size: .8rem; }

/* Choix du thème de révision */
.themes { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1rem; }
.themes-titre { color: var(--discret); font-size: .92rem; margin-right: .15rem; }
.themes .puce { gap: .4rem; }
.themes .compte { font-size: .8rem; font-weight: 700; min-width: 1.6em; padding: .05rem .4rem; border-radius: 999px;
  background: var(--bordure); color: var(--texte); text-align: center; }
.themes .puce.actif .compte { background: rgba(255, 255, 255, .25); color: inherit; }

/* Tableau des domaines : tient sur un téléphone sans défilement horizontal */
@media (max-width: 480px) {
  .tableau th, .tableau td { padding: .45rem .3rem; font-size: .86rem; }
  .tableau th { white-space: normal; }
}

/* Page « Ouvrir sur mon téléphone » */
.acces-mobile { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; background: var(--surface);
  border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1rem; margin-bottom: 1rem; }
.acces-mobile .qr { background: #fff; padding: .4rem; border-radius: 8px; line-height: 0; }
.acces-mobile .qr svg { width: 200px; height: 200px; }
.acces-mobile .adresse { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; word-break: break-all; margin: .2rem 0 0; }
.avertissement { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--rayon); padding: .8rem 1rem; }
