/* L'écran Accords : la tonalité et ses 14 accords, la progression et ses retouches.
   Reprend la maquette `maquettes/outils/accords/index.html`, avec les jetons de `jetons.css` (aucune couleur ici). Fond clair, cartes blanches.
   Deux dispositions : le poste (deux colonnes) et le téléphone (classe .m, posée à 700 px : une colonne, 44 px de cible au toucher). */

.accords { display: flex; flex-direction: column; gap: 14px; }
.acd-titre h2 { margin: 0; }
.acd-notation-tel { display: none; }
.acd-vue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.acd-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.acd-carte { gap: 0; }
.acd-etiq { margin: 0 0 12px; font-family: var(--titre); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.acd-aide { margin: 8px 0 0; color: var(--doux); font-size: 13px; }

/* Les couleurs de degré de la tonalité : le trait en haut d'une case ou d'une carte. Elles ne servent qu'aux degrés. */
.d1 { --c: var(--degre-1); } .d2 { --c: var(--degre-2); } .d3 { --c: var(--degre-3); } .d4 { --c: var(--degre-4); }
.d5 { --c: var(--degre-5); } .d6 { --c: var(--degre-6); } .d7 { --c: var(--degre-7); }

/* Tonalité */
.acd-ton-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.acd-ton-nom { margin: 0; font-family: var(--titre); font-size: 28px; font-weight: 700; }
.acd-ton-info { color: var(--doux); font-size: 14px; }
.acd-degres { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.acd-deg { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 3px 4px; border: 1px solid var(--bord); border-radius: 10px; background: var(--carte); text-align: center; }
.acd-deg::before { content: ""; position: absolute; left: 6px; right: 6px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.acd-deg .acd-rom { margin-bottom: 2px; font-family: var(--titre); font-weight: 500; font-size: 12.5px; color: var(--doux); }
.acd-ajout { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 34px; padding: 4px 2px; border: 0; border-radius: 7px; background: none;
  font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--encre); }
.acd-ajout.s7 { font-weight: 500; font-size: 13px; color: var(--doux); border-top: 1px dashed var(--bord); border-radius: 0 0 7px 7px; }
.acd-plus { position: absolute; right: 4px; font-size: 12px; color: var(--accent); opacity: 0; transition: opacity .15s; }
@media (hover: hover) {
  .acd-ajout:hover { background: var(--accent-voile); color: var(--encre); }
  .acd-ajout:hover .acd-plus { opacity: 1; }
}
.acd-ajout:focus-visible .acd-plus { opacity: 1; }

/* Progression */
.acd-prog-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.acd-prog-nom { font-family: var(--titre); font-weight: 600; font-size: 18px; }
.acd-prog-deg { color: var(--doux); font-size: 14px; }
.acd-badge { padding: 2px 8px; border-radius: 999px; background: var(--alerte-fond); color: var(--alerte); font-size: 12px; font-weight: 600; }
.acd-badge[hidden], .acd-lien[hidden], .acd-reinit[hidden] { display: none; }
.acd-reinit { margin-left: auto; }
.acd-lien { padding: 6px 2px; border: 0; background: none; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.acd-accords { display: flex; flex-wrap: wrap; gap: 10px; min-height: 96px; margin: 0; padding: 0; list-style: none; }
.acd-acc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 96px; min-height: 96px; padding: 12px 6px 28px;
  border: 1px solid var(--bord); border-radius: 12px; background: var(--carte); user-select: none; -webkit-user-select: none;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; }
.acd-acc::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.acd-acc .acd-rom { font-family: var(--titre); font-weight: 600; font-size: 13px; color: var(--doux); }
.acd-acc .acd-nm { font-family: var(--titre); font-weight: 700; font-size: 19px; white-space: nowrap; }
/* Les notes passent à la ligne (quatre pour une septième) : la bande du bas reste à la poignée et au numéro. */
.acd-acc .acd-nt { font-size: 11.5px; line-height: 1.25; color: var(--doux); text-align: center; }
.acd-acc .acd-num { position: absolute; right: 7px; bottom: 5px; font-size: 11px; color: var(--doux); }
.acd-acc:has(.acd-choisir[aria-pressed="true"]) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.acd-acc.glisse { z-index: 5; transform: scale(1.04); box-shadow: var(--ombre-glisse); cursor: grabbing; transition: none; }
.acd-acc.cible { outline: 2px dashed var(--accent); outline-offset: 2px; }
/* Toute la carte est le bouton qui choisit l'accord ; la poignée, posée après lui, reste au-dessus. */
.acd-choisir { all: unset; position: absolute; inset: 0; border-radius: 12px; cursor: pointer; }
/* Le focus clavier des éléments qui peuvent être « choisis » (filet accent de 2 px) : un contour décalé de 2 px au-delà de ce filet, donc visible aussi sur l'élément choisi. */
.acd-choisir:focus-visible, .acd-mini:focus-visible, .acd-choix-pos button:focus-visible { outline: 3px solid var(--anneau); outline-offset: 4px; }
.acd-poignee { position: absolute; left: 3px; bottom: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--trait-fort); cursor: grab; touch-action: none; }
.acd-poignee svg { width: 14px; height: 14px; }

.acd-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--bord); }
.acd-quel { margin-right: 4px; font-weight: 600; }
.acd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--trait-fort); border-radius: 999px;
  background: var(--carte); color: var(--encre); font-weight: 500; font-size: 14px; }
.acd-btn svg { width: 16px; height: 16px; }
.acd-btn.acd-rond { width: 40px; padding: 0; }
@media (hover: hover) { .acd-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-voile); } }
.acd-btn:disabled { opacity: .4; cursor: default; }
.acd-btn[aria-pressed="true"] { background: var(--choix-clair-fond); color: var(--choix-clair-encre); box-shadow: inset 0 0 0 2px var(--choix-clair-filet); }
.acd-btn.acd-danger { color: var(--alerte); }
.acd-tout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.acd-etq { margin-right: 8px; font-size: 13px; color: var(--doux); }

/* Un message : en bas de l'écran, lu aussi par un lecteur d'écran. */
.acd-message { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 12px; max-width: 90vw;
  padding: 10px 16px; border-radius: 10px; background: var(--encre); color: var(--carte); font-size: 14px; opacity: 0; transform: translateX(-50%) translateY(20px);
  pointer-events: none; transition: opacity .2s, transform .2s; }
.acd-message.vu { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .acd-vue { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .acd-acc, .acd-message, .acd-plus { transition: none; }
}

/* Téléphone */
body.m .acd-notation-tel { display: flex; justify-content: flex-end; }
body.m .accords .seg button { min-height: 44px; }
body.m .acd-vue, body.m .acd-col { gap: 14px; }
body.m .acd-carte { padding: 14px; }
body.m .acd-ton-nom { font-size: 24px; }
body.m .acd-degres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body.m .acd-ajout { min-height: 44px; font-size: 13.5px; }
body.m .acd-ajout.s7 { font-size: 12.5px; }
body.m .acd-plus { display: none; }
body.m .acd-accords { gap: 6px; }
body.m .acd-acc { width: 72px; min-height: 90px; padding: 11px 4px 34px; }
body.m .acd-acc .acd-nm { font-size: 16px; }
body.m .acd-acc .acd-nt { font-size: 10.5px; }
body.m .acd-acc .acd-num { bottom: 8px; }
body.m .acd-poignee { width: 44px; height: 30px; left: 0; bottom: 2px; }
body.m .acd-btn { min-height: 44px; }
body.m .acd-btn.acd-rond { width: 44px; }

/* ===== Étape 4 : lecture, instrument, positions ===== */

/* L'accord qui sonne : « en cours », accent plein et texte blanc (`outils.md`, deux styles « choisi »). */
.acd-acc.joue { background: var(--etat-actif); border-color: var(--etat-actif); }
.acd-acc.joue .acd-rom, .acd-acc.joue .acd-nm, .acd-acc.joue .acd-nt, .acd-acc.joue .acd-num, .acd-acc.joue .acd-poignee { color: var(--etat-actif-encre); }

/* Lecture */
.acd-lecture { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; }
.acd-ecouter { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 150px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--action-fond); color: var(--action-encre); font-family: var(--titre); font-weight: 600; font-size: 17px; }
.acd-ecouter svg { width: 20px; height: 20px; }
@media (hover: hover) { .acd-ecouter:hover { background: var(--sapin-2); } }
.acd-ecouter.en-cours { background: var(--etat-actif); color: var(--etat-actif-encre); }
@media (hover: hover) { .acd-ecouter.en-cours:hover { background: var(--etat-actif); color: var(--etat-actif-encre); } }
.acd-tempo { display: flex; align-items: center; gap: 10px; }
.acd-tempo output { min-width: 52px; text-align: right; font-family: var(--titre); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.acd-u { margin-left: -4px; color: var(--doux); font-size: 13px; }
.acd-tempo input[type="range"] { flex: 1; min-width: 80px; height: 28px; accent-color: var(--accent); }
.acd-lecture-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.acd-duree { color: var(--doux); font-size: 13px; }
.acd-inter { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.acd-inter input { appearance: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--trait-fort); transition: background .15s; cursor: pointer; }
.acd-inter input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--carte); transition: left .15s; }
.acd-inter input:checked { background: var(--etat-actif); }
.acd-inter input:checked::after { left: 21px; }
.acd-inter input:focus-visible { outline: 3px solid var(--anneau); outline-offset: 2px; }

/* Instrument */
.acd-inst-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.acd-inst-tete .acd-etiq { margin: 0; }
.acd-pictos { display: flex; gap: 6px; }
.acd-picto { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--carte); color: var(--encre); }
.acd-picto svg { width: 26px; height: 26px; }
.acd-picto[aria-pressed="true"] { background: var(--choix-clair-fond); color: var(--choix-clair-encre); border-color: var(--choix-clair-filet); box-shadow: inset 0 0 0 2px var(--choix-clair-filet); }
.acd-aide-haut { margin-top: 0; }
.acd-sous { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; font-family: var(--titre); font-weight: 600; font-size: 15px; }
.acd-sous-premier { margin-top: 6px; }
.acd-aide-i { margin: 0; color: var(--doux); font-family: var(--corps); font-weight: 400; font-size: 13px; }
.acd-zone { flex-wrap: wrap; }
.acd-zone button { min-width: 44px; padding: 8px 12px; }

/* La grille : un petit diagramme par accord, dans sa position préférée */
.acd-bande { display: flex; gap: 6px; overflow-x: auto; margin: -4px -6px -4px; padding: 8px 8px 12px; scrollbar-width: thin; }
.acd-bande > div { flex: 0 0 auto; }
.acd-mini { flex: 0 0 auto; width: 84px; padding: 6px 4px 4px; border: 1px solid var(--bord); border-radius: 10px; background: var(--carte); color: var(--encre); text-align: center; }
.acd-mini .acd-nm { font-family: var(--titre); font-weight: 600; font-size: 13px; white-space: nowrap; }
.acd-mini svg { display: block; margin: 0 auto; }
.acd-mini .acd-ren { margin: 2px 0 0; font-size: 10.5px; color: var(--doux); }
.acd-mini[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.acd-mini.joue { background: var(--etat-actif); border-color: var(--etat-actif); color: var(--etat-actif-encre); }
.acd-mini.joue .acd-ren { color: var(--etat-actif-encre); }
.acd-mini.joue .dg-fond { fill: var(--carte); }

/* L'accord choisi : son diagramme, ses notes, ses positions */
.acd-detail { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 4px; }
.acd-detail-diag { position: relative; padding: 10px; border: 1px solid var(--bord); border-radius: 12px; background: var(--carte); }
.acd-etoile { position: absolute; right: 8px; top: 8px; color: var(--prefere); }
.acd-etoile svg { width: 18px; height: 18px; }
.acd-detail.piano { grid-template-columns: 1fr; }
.acd-detail.piano .acd-detail-diag { display: flex; justify-content: center; justify-self: stretch; }
.acd-detail-info h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; font-family: var(--titre); font-size: 24px; }
.acd-detail-info h3 small { color: var(--doux); font-size: 14px; font-weight: 500; }
.acd-notes-acc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.acd-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--bord); border-radius: 999px; font-size: 13px; }
.acd-pastille i { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--matiere-contour-pastille); border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; }
.acd-pos-nav { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.acd-lib { min-width: 120px; font-weight: 600; white-space: nowrap; }
.acd-forme { margin: -4px 0 10px; color: var(--doux); font-size: 13px; }
.acd-preferee { min-height: 44px; }
.acd-preferee svg { color: var(--prefere); }
.acd-preferee[aria-pressed="true"] { background: var(--prefere-fond); border-color: var(--prefere); box-shadow: inset 0 0 0 2px var(--prefere); color: var(--prefere-encre); }
.acd-choix-pos { display: flex; gap: 6px; overflow-x: auto; margin: 0 -6px -4px; padding: 8px 8px 12px; }
.acd-choix-pos button { position: relative; flex: 0 0 auto; padding: 4px 4px 2px; border: 1px solid var(--bord); border-radius: 10px; background: var(--carte); }
.acd-choix-pos button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.acd-choix-pos .acd-st { position: absolute; right: 3px; top: 2px; color: var(--prefere); font-size: 12px; }

/* Les couleurs des notes dans les diagrammes : la place de la note dans l'accord (`outils.md`, exception de Ludo du 08/11/2026) */
.dg-fond { fill: none; }
.dg-case { stroke: var(--trait-fort); }
.dg-corde { stroke: var(--doux); }
.dg-debut { fill: var(--doux); font-family: var(--corps); }
.dg-muet { fill: var(--doux); font-family: var(--corps); }
.dg-barre { fill: var(--encre); opacity: .14; }
.dg-pt { stroke: var(--matiere-contour-pastille); }
.dg-vide { fill: var(--carte); }
.dg-txt { font-family: var(--corps); }
.dg-pt.i1 { fill: var(--degre-1); } .dg-txt.i1 { fill: var(--degre-1-encre); } .dg-vide.i1 { stroke: var(--degre-1); }
.dg-pt.i3 { fill: var(--degre-3); } .dg-txt.i3 { fill: var(--degre-3-encre); } .dg-vide.i3 { stroke: var(--degre-3); }
.dg-pt.i5 { fill: var(--degre-5); } .dg-txt.i5 { fill: var(--degre-5-encre); } .dg-vide.i5 { stroke: var(--degre-5); }
.dg-pt.i7 { fill: var(--degre-7); } .dg-txt.i7 { fill: var(--degre-7-encre); } .dg-vide.i7 { stroke: var(--degre-7); }
.acd-pastille i.i1 { background: var(--degre-1); color: var(--degre-1-encre); }
.acd-pastille i.i3 { background: var(--degre-3); color: var(--degre-3-encre); }
.acd-pastille i.i5 { background: var(--degre-5); color: var(--degre-5-encre); }
.acd-pastille i.i7 { background: var(--degre-7); color: var(--degre-7-encre); }
.cl-blanche { fill: var(--carte); stroke: var(--trait-fort); }
.cl-noire { fill: var(--encre); }
.cl-octave { fill: var(--doux); font-family: var(--corps); }

/* L'enchaînement proposé après une étoile */
.acd-sugg { margin-top: 14px; padding: 14px; border: 1px solid var(--bord); border-radius: 12px; background: var(--sauge-pale); }
.acd-sugg[hidden] { display: none; }
.acd-sugg-titre { margin: 0 0 10px; font-weight: 600; }
.acd-sugg .acd-lien { color: var(--sapin); }
.acd-sugg-choix { display: flex; flex-direction: column; gap: 8px; }
.acd-sugg-choix button { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--carte); color: var(--encre); text-align: left; }
.acd-sugg-choix b { font-family: var(--titre); font-weight: 700; font-size: 15px; }
.acd-sugg-choix span { color: var(--doux); font-size: 13px; }
@media (hover: hover) { .acd-sugg-choix button:hover { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } }

/* Barre du bas, au téléphone seulement */
.acd-barre-bas { display: none; }

/* Téléphone : sous la progression, le nom de l'accord choisi, puis ← → Septième Retirer, puis « Écouter l'accord » ; « Toute la progression » au-dessus
   de « En triades » et « En septièmes » côte à côte (Ludo, 08/11/2026). Le bouton Écouter passe dans la barre du bas. */
body.m .acd-quel { flex-basis: 100%; margin: 0; }
body.m #acdEcouterUn { order: 1; flex-basis: 100%; }
body.m .acd-tout .acd-etq { flex-basis: 100%; margin: 0; }
body.m .acd-tout .acd-btn { flex: 1; }
body.m .acd-lecture { display: block; }
body.m .acd-lecture .acd-ecouter { display: none; }
body.m .acd-lecture-bas { margin-top: 14px; }
body.m .acd-zone button { padding: 8px 9px; font-size: 13.5px; }
body.m .acd-detail { grid-template-columns: minmax(0, 1fr); justify-items: center; }
body.m .acd-detail-info { width: 100%; }
body.m .acd-message { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.m[data-vue="accords"] .acd-barre-bas { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--bord); background: var(--carte); box-shadow: var(--ombre-barre); }
.acd-barre-bas .acd-ecouter { flex: 1; }
.acd-resume { color: var(--doux); font-size: 13px; line-height: 1.25; }
.acd-resume b { display: block; color: var(--encre); font-family: var(--titre); font-size: 15px; }

/* ===== Étape 5 : Mes progressions ===== */
.acd-enreg-lab { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.acd-enreg-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.acd-enreg-ligne input { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--carte); color: var(--encre); }
.acd-enreg-ligne input:focus-visible { outline: 3px solid var(--anneau); outline-offset: 2px; }
.acd-btn.acd-plein { min-height: 44px; border-color: var(--action-fond); background: var(--action-fond); color: var(--action-encre); }
@media (hover: hover) { .acd-btn.acd-plein:hover:not(:disabled) { border-color: var(--sapin-2); background: var(--sapin-2); } }
.acd-liste { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.acd-liste li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--bord); border-radius: 10px; }
.acd-liste li.courante { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.acd-liste li.acd-vide { padding: 12px; border-style: dashed; color: var(--doux); font-size: 14px; }
.acd-ouvrir { flex: 1; min-width: 0; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--encre); text-align: left; }
.acd-ouvrir b { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.acd-ouvrir span { color: var(--doux); font-size: 13px; }
.acd-ouvrir:focus-visible { outline: 3px solid var(--anneau); outline-offset: 2px; border-radius: 8px; }
.acd-secours { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--bord); }
.acd-secours .acd-aide { margin: 0; }

/* Un message avec une action (« Annuler » pendant 5 s) reçoit le toucher ; le message seul n'en reçoit pas. */
.acd-message.vu.actif { pointer-events: auto; }
.acd-message-act { min-height: 36px; padding: 6px 4px; border: 0; background: none; color: var(--sauge); font-weight: 600; text-decoration: underline; }
.acd-message-act:focus-visible { outline: 3px solid var(--sauge); outline-offset: 2px; }
body.m .acd-ouvrir b { font-size: 15px; }
/* Le champ Nom seul au-dessus, « Enregistrer » et « Partager » côte à côte dessous ; « Copie de secours » sur sa ligne, puis les deux liens côte à côte
   (l'un sous l'autre s'ils ne tiennent pas, jamais un seul isolé) (Ludo, 08/11/2026). */
body.m .acd-enreg-ligne input { flex-basis: 100%; }
body.m .acd-enreg-ligne .acd-btn { flex: 1 1 0; }
body.m .acd-secours .acd-aide { flex-basis: 100%; }
body.m .acd-secours .acd-lien { flex: 0 0 auto; white-space: nowrap; }
/* Les liens-boutons (Laisser les accords suivants, Exporter, Importer) ont aussi une cible de 44 px au toucher. */
body.m .acd-lien { display: inline-flex; align-items: center; min-height: 44px; }

/* Le lien retour, quand on arrive du cycle des quintes */
.acd-fil { display: flex; align-items: center; }
.acd-fil:has(.acd-retour[hidden]) { display: none; }
.acd-retour { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 500; text-decoration: none; }
.acd-retour[hidden] { display: none; }
.acd-retour svg { width: 18px; height: 18px; }
@media (hover: hover) { .acd-retour:hover { text-decoration: underline; text-underline-offset: 3px; } }
.acd-retour:focus-visible { outline: 3px solid var(--anneau); outline-offset: 2px; border-radius: 6px; }
