/* DartClub — refonte du côté joueur, lot 1 : le socle.
   Jetons (--dc-…) et pièces communes (.dc-…), chargés par le gabarit du côté joueur à la suite des feuilles actuelles.

   Règles d'écriture, toutes vérifiées par tests/test-refonte-lot1-socle.php :
   1. chaque sélecteur commence par une classe .dc- ; aucune autre classe, aucun identifiant, aucun élément seul ;
   2. seule exception : le bloc :root, qui ne déclare que des jetons --dc- ;
   3. toute variable lue est une --dc- : la feuille ne suit ni les couleurs du site, ni les thèmes de saison ;
   4. aucun import, aucune police, aucune adresse de fichier, aucune règle « prioritaire » ;
   5. aucun texte dans la feuille : les mots passent par les fichiers de langue ;
   6. chaque pièce fixe elle-même sa boîte, sa police, ses couleurs : elle ne compte sur aucune autre feuille ;
   7. bouclier de saison : une pièce qui peut être un lien fixe sa couleur par une classe triplée ;
   8. tailles de texte en rem (elles suivent le réglage « grande police » du téléphone), hauteurs en minimum ;
   9. une règle « réduire les animations » qui ne vise que des pièces dc-.
   Tant qu'aucune page ne porte une classe dc-, cette feuille ne change rien à l'écran. */

:root {
  /* couleurs réellement affichées par le site (themes.css) */
  --dc-fond: #1a1410;
  --dc-carte: #1f1a14;
  --dc-champ: #2a2318;
  --dc-or: #D4A843;
  --dc-texte: #f0e6d6;
  --dc-texte-doux: #a89880;
  --dc-texte-sombre: #8f8270;
  --dc-trait: rgba(212,168,67,0.15);
  --dc-trait-or: rgba(212,168,67,0.3);
  --dc-encre: #1a1410;
  /* couleurs que le site n'a pas : reprises de la maquette validée */
  --dc-fond-haut: #120e0a;
  --dc-fond-moyen: #3a2e1f;
  --dc-carte-2: #2e2417;
  --dc-trait-fort: #7a6848;
  --dc-bleu: #a6cdff;
  --dc-orange: #ffa772;
  /* tailles de texte */
  --dc-t-geant: 2.5rem;
  --dc-t-chiffre: 2rem;
  --dc-t-page: 1.5rem;
  --dc-t-bloc: 1.125rem;
  --dc-t-texte: 1rem;
  --dc-t-second: .875rem;
  --dc-t-etat: .8125rem;
  --dc-t-mini: .75rem;
  --dc-il-texte: 1.5;
  --dc-il-titre: 1.2;
  /* espacements, arrondis, hauteurs de toucher */
  --dc-e-1: 4px;
  --dc-e-2: 8px;
  --dc-e-3: 12px;
  --dc-e-4: 16px;
  --dc-e-5: 24px;
  --dc-e-6: 32px;
  --dc-r-carte: 12px;
  --dc-r-bouton: 10px;
  --dc-r-etat: 6px;
  --dc-h-toucher: 44px;
  --dc-h-action: 48px;
  --dc-h-ligne: 56px;
  /* polices du site (fonts.css n'est pas touché) */
  --dc-police-titre: 'Cinzel', Georgia, serif;
  --dc-police-texte: 'Inter', 'Segoe UI', -apple-system, sans-serif
}

/* ---------- textes ---------- */
/* Titres : classe triplée depuis le lot 4. Posé dans une page d'aujourd'hui, un titre doit gagner contre les règles de
   cette page (titre des pages légales, des sections, des en-têtes de guide), sans règle prioritaire ; le trait décoratif
   que certaines sections ajoutent sous leur titre est éteint. Un titre ne sort jamais de l'écran : un mot trop long
   (mots composés allemands) se coupe. */
.dc-titre-page.dc-titre-page.dc-titre-page,
.dc-titre-bloc.dc-titre-bloc.dc-titre-bloc {
  box-sizing: border-box;
  display: block;
  position: static;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-titre);
  font-size: var(--dc-t-page);
  font-weight: 700;
  font-style: normal;
  line-height: var(--dc-il-titre);
  letter-spacing: .03em;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
  color: var(--dc-or);
  background: none;
  border: 0;
  border-radius: 0
}
/* titre de page : sur un écran étroit il rétrécit un peu (de 24 px à 20 px au plus bas), pour qu'un mot long tienne sur la ligne */
.dc-titre-page.dc-titre-page.dc-titre-page { font-size: clamp(1.25rem, 6.2vw, var(--dc-t-page)) }
.dc-titre-bloc.dc-titre-bloc.dc-titre-bloc { font-size: var(--dc-t-bloc) }
.dc-titre-page.dc-titre-page::after,
.dc-titre-bloc.dc-titre-bloc::after { content: none }
.dc-doux.dc-doux { font-size: var(--dc-t-second); color: var(--dc-texte-doux) }
.dc-chiffre { font-size: var(--dc-t-chiffre); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums }

/* ---------- icône (dessinée au trait, couleur du texte qui la porte) ---------- */
.dc-ic {
  box-sizing: border-box;
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.25rem;
  background: none;
  border: 0
}

/* ---------- boutons : contour doré (forme par défaut), plein (le bouton principal), discret (texte souligné) ---------- */
.dc-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dc-e-2);
  width: 100%;
  min-width: var(--dc-h-toucher);
  min-height: var(--dc-h-action);
  margin: 0;
  padding: 9px 16px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  background: transparent;
  border: 2px solid var(--dc-or);
  border-radius: var(--dc-r-bouton);
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .15s ease
}
.dc-btn.dc-btn.dc-btn { color: var(--dc-or) }
.dc-btn--plein { background: var(--dc-or) }
.dc-btn--plein.dc-btn--plein.dc-btn--plein { color: var(--dc-encre) }
.dc-btn--auto { width: auto; align-self: flex-start }
.dc-btn--discret,
.dc-lien {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 0;
  min-height: var(--dc-h-toucher);
  margin: 0;
  padding: 0 2px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 400;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer
}
.dc-btn--discret.dc-btn--discret.dc-btn--discret,
.dc-lien.dc-lien.dc-lien { color: var(--dc-texte) }
/* désactivé : graisse normale et fond marqué, jamais l'effacement ; la raison est écrite sous le bouton */
.dc-btn:disabled,
.dc-btn[aria-disabled="true"] {
  font-weight: 400;
  background: var(--dc-carte-2);
  border-color: var(--dc-trait-fort);
  cursor: not-allowed
}
.dc-btn.dc-btn.dc-btn:disabled,
.dc-btn.dc-btn.dc-btn[aria-disabled="true"] { color: var(--dc-texte-doux) }
.dc-btn--discret:disabled,
.dc-btn--discret[aria-disabled="true"] { background: none; text-decoration: none }

/* ---------- carte ---------- */
.dc-carte {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: var(--dc-e-4);
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 400;
  line-height: var(--dc-il-texte);
  text-align: left;
  text-decoration: none;
  color: var(--dc-texte);
  background: var(--dc-carte);
  border: 1px solid var(--dc-trait);
  border-radius: var(--dc-r-carte)
}
/* l'écart entre les blocs d'une carte est tenu par la carte, pas par les marges des blocs
   (la page du match n'a pas la remise à zéro des marges du site) */
.dc-carte > p,
.dc-carte > h2,
.dc-carte > h3,
.dc-carte > h4,
.dc-carte > ul,
.dc-carte > ol { margin: 0 }
.dc-carte--etat { border: 2px solid var(--dc-or) }
.dc-carte--attente { background: transparent; border: 2px solid var(--dc-trait-fort) }

/* ---------- étiquettes d'état : icône + mot + fond ; cinq familles qui se lisent en niveaux de gris ---------- */
.dc-etat {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 4px 9px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-etat);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  color: var(--dc-texte);
  background: var(--dc-fond-haut);
  border: 1px solid var(--dc-trait-fort);
  border-radius: var(--dc-r-etat)
}
.dc-etat .dc-ic { width: 1rem; height: 1rem; vertical-align: 0 }
/* action : plein, très clair, texte foncé, capitales, angles droits (pour ne pas être prise pour un bouton doré) */
.dc-etat--action {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dc-encre);
  background: var(--dc-texte);
  border-color: var(--dc-texte);
  border-radius: 0
}
/* en cours : contour épais, fond moyen, gras */
.dc-etat--encours { font-weight: 700; background: var(--dc-fond-moyen); border: 2px solid var(--dc-bleu) }
/* fait : fond sombre, texte clair, demi-gras (la coche et le mot disent « réglé ») */
.dc-etat--fait { font-weight: 600 }
/* problème : trait plein très épais, sans fond */
.dc-etat--probleme { font-weight: 600; background: transparent; border: 3px solid var(--dc-orange) }
/* neutre : fond sombre, graisse normale (le sablier et le mot disent « en attente ») */
.dc-etat--neutre { font-weight: 400 }
.dc-toi {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  padding: 0 6px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-etat);
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  color: var(--dc-encre);
  background: var(--dc-texte);
  border: 0
}
.dc-vip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0 5px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-etat);
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  color: var(--dc-or);
  background: none;
  border: 1px solid var(--dc-or);
  border-radius: 4px
}
.dc-vip .dc-ic { width: .8125rem; height: .8125rem; vertical-align: 0 }
.dc-pastille {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0 5px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-etat);
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  color: var(--dc-encre);
  background: var(--dc-texte);
  border: 0;
  border-radius: 10px
}

/* ---------- onglets : gras + trait épais dessous ; ils passent à la ligne, jamais de défilement de côté ---------- */
.dc-onglets {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--dc-trait-fort)
}
.dc-onglets > li { box-sizing: border-box; display: flex; flex: 1 0 auto; margin: 0; padding: 0; list-style: none }
.dc-onglet {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 0 auto;
  min-width: var(--dc-h-toucher);
  min-height: var(--dc-h-toucher);
  margin: 0 0 -1px;
  padding: 6px 8px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer
}
.dc-onglet.dc-onglet.dc-onglet { color: var(--dc-texte-doux) }
.dc-onglet[aria-current="page"],
.dc-onglet[aria-selected="true"] { font-weight: 700; border-bottom-color: var(--dc-or) }
.dc-onglet.dc-onglet.dc-onglet[aria-current="page"],
.dc-onglet.dc-onglet.dc-onglet[aria-selected="true"] { color: var(--dc-texte) }
.dc-onglet .dc-ic { width: 1rem; height: 1rem; vertical-align: -3px }
/* Téléphone : des cases de même largeur, pour que la disposition ne dépende ni du gras de l'onglet ouvert ni de la langue.
   Trois par rang ; deux par rang quand il y a deux ou quatre onglets (l'aide : toujours 2 + 2). Un onglet ne reste jamais
   seul et étiré sur toute la largeur. Le nombre d'onglets est lu par la feuille : aucune classe à poser dans les pages. */
@media (max-width: 768px) {
  .dc-onglets > li { flex: 0 0 calc(33.333% - 1.5px); min-width: 0 }
  .dc-onglets > li:first-child:nth-last-child(2),
  .dc-onglets > li:nth-child(2):last-child,
  .dc-onglets > li:first-child:nth-last-child(4),
  .dc-onglets > li:nth-child(2):nth-last-child(3),
  .dc-onglets > li:nth-child(3):nth-last-child(2),
  .dc-onglets > li:nth-child(4):last-child { flex-basis: calc(50% - 1.5px) }
  .dc-onglet { flex: 1 1 auto; min-width: 0; padding: 6px 4px }
}

/* ---------- listes et lignes (classement, joueurs) ---------- */
.dc-liste {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0
}
.dc-ligne {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: var(--dc-h-ligne);
  margin: 0;
  padding: 6px 4px 6px 10px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  list-style: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--dc-trait);
  border-radius: 0;
  box-shadow: none
}
.dc-ligne.dc-ligne.dc-ligne { color: var(--dc-texte) }
.dc-liste > .dc-ligne:last-child { border-bottom: 0 }
/* ma ligne : fond marqué + barre à gauche (et le mot « Toi » dans la page), sans décaler le contenu */
.dc-ligne--moi { background: var(--dc-carte-2); box-shadow: inset 5px 0 0 var(--dc-or) }
.dc-ligne--tete { min-height: 36px; font-size: var(--dc-t-etat); border-bottom: 1px solid var(--dc-trait-fort) }
.dc-ligne--tete.dc-ligne--tete.dc-ligne--tete { color: var(--dc-texte-doux) }
/* corps d'une ligne : un titre et, dessous, une ligne de précision (liste d'entrées de l'aide) */
.dc-ligne-corps {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-weight: 700;
  overflow-wrap: anywhere
}
.dc-ligne-corps > .dc-doux { font-weight: 400; line-height: 1.4 }

/* ---------- lot 4 : bandeau d'onglets-liens (nom du groupe à gauche, lien à droite, puis la rangée .dc-onglets) ---------- */
.dc-bandeau {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 45rem;
  margin: 0 auto;
  padding: var(--dc-e-3) var(--dc-e-4) 0;
  font-family: var(--dc-police-texte);
  text-align: left;
  background: none;
  border: 0
}
.dc-bandeau--large { max-width: 68.75rem }
.dc-bandeau-tete {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--dc-e-3);
  min-height: var(--dc-h-toucher);
  margin: 0;
  padding: 0
}
.dc-bandeau-nom {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-titre);
  font-size: var(--dc-t-second);
  font-weight: 700;
  line-height: var(--dc-il-titre);
  letter-spacing: .06em;
  color: var(--dc-texte-doux)
}
/* un lien qui mène à la page ouverte : gras et trait épaissi, jamais la couleur seule */
.dc-lien[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px }

/* ---------- lot 4 : pile (cartes ou boutons l'un sous l'autre, écart de 16 px) ---------- */
.dc-pile {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--dc-e-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0
}

/* ---------- lot 4 : colonne de lecture (Aide, pages légales, journal) ----------
   Classe doublée : la colonne est posée sur des conteneurs qui gardent leur ancienne classe (pages légales).
   Les règles de descendance ne touchent que les blocs SANS classe : une date de mise à jour, un encadré, un bouton
   ou une pièce gardent leur propre règle. */
.dc-lecture.dc-lecture {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 45rem;
  min-width: 0;
  margin: 0 auto;
  padding: var(--dc-e-4) var(--dc-e-4) var(--dc-e-6);
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: break-word;
  color: var(--dc-texte);
  background: none;
  border: 0
}
.dc-lecture.dc-lecture .dc-titre-page.dc-titre-page { margin-bottom: var(--dc-e-3) }
/* la phrase de présentation placée juste sous un titre de page */
.dc-titre-page.dc-titre-page + .dc-doux.dc-doux { margin: 0 0 var(--dc-e-4); line-height: var(--dc-il-texte) }
.dc-lecture.dc-lecture > .dc-pile,
.dc-lecture.dc-lecture > .dc-liste,
.dc-lecture.dc-lecture > .dc-carte { margin-bottom: var(--dc-e-5) }
.dc-lecture.dc-lecture > h2,
.dc-lecture.dc-lecture > h3 {
  box-sizing: border-box;
  display: block;
  margin: 28px 0 10px;
  padding: 0;
  font-family: var(--dc-police-titre);
  font-size: var(--dc-t-bloc);
  font-weight: 700;
  font-style: normal;
  line-height: var(--dc-il-titre);
  letter-spacing: .03em;
  text-transform: none;
  text-align: left;
  overflow-wrap: anywhere;
  hyphens: auto;
  color: var(--dc-or);
  background: none;
  border: 0;
  border-radius: 0
}
.dc-lecture.dc-lecture > h3 {
  margin: 20px 0 8px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  letter-spacing: normal;
  color: var(--dc-texte)
}
.dc-lecture.dc-lecture p:not([class]),
.dc-lecture.dc-lecture li:not([class]) { font-size: var(--dc-t-texte); line-height: 1.6; color: var(--dc-texte) }
.dc-lecture.dc-lecture > p:not([class]) { margin: 0 0 var(--dc-e-3) }
.dc-lecture.dc-lecture > ul,
.dc-lecture.dc-lecture > ol { margin: 0 0 var(--dc-e-4); padding: 0 0 0 20px }
.dc-lecture.dc-lecture a:not([class]) { overflow-wrap: anywhere }

/* ---------- lot 4 : colonne des pages du club (pile de cartes) ---------- */
.dc-page.dc-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--dc-e-4);
  width: 100%;
  max-width: 45rem;
  min-width: 0;
  margin: 0 auto;
  padding: var(--dc-e-4) var(--dc-e-4) var(--dc-e-6);
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  line-height: var(--dc-il-texte);
  text-align: left;
  color: var(--dc-texte);
  background: none;
  border: 0
}
.dc-page--large.dc-page--large { max-width: 68.75rem }

/* ---------- lot 4b : en-tête de page (le titre de page, puis une phrase de présentation) ----------
   L'écart entre le titre et la phrase est tenu par l'en-tête ; dans une colonne du club, l'écart qui suit est tenu par la colonne. */
.dc-entete {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0 0 var(--dc-e-4);
  padding: 0;
  text-align: left;
  background: none;
  border: 0
}
.dc-entete.dc-entete > .dc-titre-page + .dc-doux.dc-doux { margin: 0 }
.dc-page.dc-page > .dc-entete { margin: 0 }

/* ---------- lot 4 : tableau qui tient dans sa carte (cellules qui passent à la ligne, pas de capitales) ---------- */
.dc-tableau.dc-tableau {
  box-sizing: border-box;
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  line-height: 1.35;
  white-space: normal;
  background: none;
  border: 0
}
.dc-tableau.dc-tableau th,
.dc-tableau.dc-tableau td {
  box-sizing: border-box;
  padding: var(--dc-e-2) 6px;
  font-size: var(--dc-t-second);
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--dc-texte);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--dc-trait)
}
.dc-tableau.dc-tableau th { font-weight: 700; color: var(--dc-texte-doux); border-bottom: 1px solid var(--dc-trait-fort) }

/* ---------- lot 4 : tuiles (un chiffre ou une icône, puis son libellé), deux par rang ---------- */
.dc-tuiles {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none
}
.dc-tuile {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  line-height: 1.35;
  text-align: left;
  color: var(--dc-texte-doux);
  background: var(--dc-fond-haut);
  border: 1px solid var(--dc-trait);
  border-radius: 10px
}
.dc-tuile > b {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--dc-texte)
}
.dc-tuile .dc-ic { width: 1.375rem; height: 1.375rem; vertical-align: 0 }

/* ---------- lot 4 : jauge d'avancement (toujours doublée d'une phrase : jamais la barre seule) ---------- */
.dc-jauge {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--dc-fond-haut);
  border: 1px solid var(--dc-trait-fort);
  border-radius: 6px
}
.dc-jauge > .dc-jauge-plein { display: block; height: 100%; background: var(--dc-or); border-radius: 0 }

/* ---------- formulaires : libellé au-dessus, champ de 48 px (16 px de texte : pas de zoom d'Android), aide dessous ---------- */
.dc-libelle {
  box-sizing: border-box;
  display: block;
  margin: 0 0 var(--dc-e-1);
  padding: 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 600;
  line-height: var(--dc-il-texte);
  text-align: left;
  color: var(--dc-texte);
  background: none;
  border: 0
}
.dc-champ {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: var(--dc-h-action);
  margin: 0;
  padding: 10px 12px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 400;
  font-style: normal;
  line-height: var(--dc-il-texte);
  text-align: left;
  text-decoration: none;
  color: var(--dc-texte);
  background: var(--dc-fond-haut);
  border: 1.5px solid var(--dc-trait-fort);
  border-radius: var(--dc-r-bouton);
  box-shadow: none
}
.dc-champ::placeholder { color: var(--dc-texte-doux) }
/* erreur : bordure épaissie (l'icône et la phrase sont dans la page) */
.dc-champ--erreur { border: 3px solid var(--dc-orange) }
.dc-aide {
  box-sizing: border-box;
  display: block;
  margin: var(--dc-e-1) 0 0;
  padding: 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 400;
  line-height: var(--dc-il-texte);
  text-align: left;
  color: var(--dc-texte-doux);
  background: none;
  border: 0
}

/* ---------- avatar : une pièce, cinq tailles (32 px par défaut) ; initiales si pas d'image ---------- */
.dc-avatar {
  --dc-avatar-t: 32px;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--dc-avatar-t);
  height: var(--dc-avatar-t);
  margin: 0;
  padding: 0;
  overflow: hidden;
  object-fit: cover;
  font-family: var(--dc-police-texte);
  font-size: max(var(--dc-t-etat), calc(var(--dc-avatar-t) * .36));
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: -.03em;
  text-decoration: none;
  vertical-align: middle;
  color: var(--dc-texte);
  background: var(--dc-fond-moyen);
  border: 1px solid var(--dc-trait-fort);
  border-radius: 50%
}
.dc-avatar--24 { --dc-avatar-t: 24px }
.dc-avatar--32 { --dc-avatar-t: 32px }
.dc-avatar--40 { --dc-avatar-t: 40px }
.dc-avatar--64 { --dc-avatar-t: 64px }
.dc-avatar--96 { --dc-avatar-t: 96px }
.dc-avatar--neutre { color: var(--dc-texte-doux); background: var(--dc-fond-haut) }

/* ---------- lot 6 : texte présent pour les lecteurs d'écran, absent de l'écran ---------- */
.dc-lu {
  box-sizing: border-box;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0
}

/* ---------- lot 6 : onglet « parent » (la page ouverte est rangée sous cet onglet) : même aspect que l'onglet ouvert ---------- */
.dc-onglet[aria-current="true"] { font-weight: 700; border-bottom-color: var(--dc-or) }
.dc-onglet.dc-onglet.dc-onglet[aria-current="true"] { color: var(--dc-texte) }

/* ---------- lot 6 : classement ----------
   Le conteneur rhabille le TABLEAU qu'il contient (le tableau garde sa classe et ses requêtes : seul l'affichage change).
   Classe triplée : les règles du tableau d'aujourd'hui (cases en 13 px, capitales des en-têtes, pseudo coupé à 160 px,
   teintes des trois premiers) pèsent jusqu'à deux classes et deux éléments ; ces règles-ci doivent gagner sans règle
   prioritaire. Les teintes des trois premiers restent (décor) : la place est écrite. */
.dc-classement.dc-classement {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-texte);
  text-align: left
}
.dc-classement.dc-classement table {
  box-sizing: border-box;
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-family: var(--dc-police-texte);
  font-variant-numeric: tabular-nums
}
/* ligne cachée par le champ de recherche (la feuille d'aujourd'hui force l'affichage des lignes sur téléphone) */
.dc-classement.dc-classement tr[hidden] { display: none }
.dc-classement.dc-classement.dc-classement th,
.dc-classement.dc-classement.dc-classement td {
  box-sizing: border-box;
  min-width: 0;
  padding: 6px;
  font-size: var(--dc-t-second);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  word-break: normal
}
.dc-classement.dc-classement.dc-classement th {
  padding: 8px 6px;
  font-size: var(--dc-t-etat);
  font-weight: 600;
  color: var(--dc-texte-doux);
  background: none;
  border-bottom: 1px solid var(--dc-trait-fort)
}
/* Sur téléphone, une feuille d'aujourd'hui force la taille du texte des cases (12 px, règle prioritaire) : la taille est donc
   portée par le contenu de la case (un mot ou un nombre dans sa balise), que cette règle prioritaire ne touche pas. */
.dc-classement.dc-classement th > span { font-size: var(--dc-t-etat) }
.dc-classement.dc-classement td > span,
.dc-classement.dc-classement td > strong { font-size: var(--dc-t-second) }
.dc-classement.dc-classement td:first-child > strong,
.dc-classement.dc-classement td:last-child > strong { font-size: var(--dc-t-texte) }
/* Téléphone : la colonne « Tournois » (ou « Matchs ») est cachée, son nombre est écrit sous la valeur (maquette validée) ;
   ordinateur : la colonne est affichée, cette précision ne l'est pas. */
.dc-classement.dc-classement .dc-classement-tel {
  display: block;
  margin: 0;
  padding: 0;
  font-size: var(--dc-t-etat);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--dc-texte-doux)
}
/* une ligne fait 56 px de haut au moins */
.dc-classement.dc-classement.dc-classement td { height: var(--dc-h-ligne) }
/* 1re colonne : la place, en gras */
.dc-classement.dc-classement.dc-classement th:first-child,
.dc-classement.dc-classement.dc-classement td:first-child { padding-left: 10px; text-align: left }
.dc-classement.dc-classement.dc-classement td:first-child { font-size: var(--dc-t-texte); font-weight: 700 }
/* 2e colonne : le joueur ; elle prend toute la place restante, le pseudo passe à la ligne plutôt que d'être coupé */
.dc-classement.dc-classement.dc-classement th:nth-child(2),
.dc-classement.dc-classement.dc-classement td:nth-child(2) {
  width: 100%;
  max-width: none;
  overflow: visible;
  text-align: left;
  white-space: normal
}
/* dernière colonne : la valeur du classement (points, Elo), en gras */
.dc-classement.dc-classement.dc-classement td:last-child { padding-right: 10px; font-size: var(--dc-t-texte); font-weight: 700 }
.dc-classement.dc-classement.dc-classement th:last-child { padding-right: 10px }
/* ma ligne : fond marqué + barre à gauche (et le mot « Toi » dans la page) */
.dc-classement.dc-classement.dc-classement tr[id="me-row"] > td { background: var(--dc-carte-2) }
.dc-classement.dc-classement.dc-classement tr[id="me-row"] > td:first-child { box-shadow: inset 5px 0 0 var(--dc-or) }

/* ---------- lot 6 : le joueur d'une ligne (avatar, pseudo en lien, étiquettes ; dessous, une ligne de précision) ----------
   Toute la case du joueur est la zone de toucher du lien (44 px de haut au moins) : le lien s'étend sur le bloc. */
.dc-joueur {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--dc-e-2);
  min-width: 0;
  min-height: var(--dc-h-toucher);
  margin: 0;
  padding: 0;
  font-size: var(--dc-t-second);
  text-align: left
}
.dc-joueur-corps {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0
}
.dc-joueur-tete {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
  margin: 0;
  padding: 0
}
.dc-joueur-nom.dc-joueur-nom.dc-joueur-nom {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  text-overflow: clip;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--dc-texte);
  background: none;
  border: 0
}
.dc-joueur-nom[href]::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0 }
/* le chevron reste à droite du pseudo, même quand le pseudo passe à la ligne */
.dc-joueur-nom .dc-ic { flex: none; width: 1rem; height: 1rem; vertical-align: 0; color: var(--dc-texte-doux) }
/* une photo d'avatar garde 32 px (une feuille d'aujourd'hui la réduit à 24 ou 20 px dans un tableau, sur téléphone) */
.dc-joueur img { min-width: 32px; min-height: 32px }
.dc-joueur-nom:focus-visible { outline: none }
.dc-joueur-nom:focus-visible::after { outline: 2px solid var(--dc-texte); outline-offset: -2px }
.dc-joueur-sous.dc-joueur-sous {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--dc-e-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: var(--dc-t-etat);
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  color: var(--dc-texte-doux)
}
/* variation de place : un signe et des mots ; le gras dit « ça a bougé », jamais une couleur */
.dc-var.dc-var {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: var(--dc-t-etat);
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--dc-texte);
  background: none;
  border: 0
}
.dc-var--stable.dc-var--stable { font-weight: 400; color: var(--dc-texte-doux) }

/* ---------- lot 6 : champ « Chercher un joueur dans ce classement » (libellé au-dessus, champ de 48 px, bouton « Effacer ») ---------- */
.dc-recherche {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--dc-e-1);
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  background: none;
  border: 0
}
.dc-recherche[hidden],
.dc-recherche .dc-btn[hidden] { display: none }
.dc-recherche > .dc-libelle { margin: 0 }
.dc-recherche-rang {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: var(--dc-e-2);
  min-width: 0;
  margin: 0;
  padding: 0
}
.dc-recherche-rang > .dc-champ { flex: 1 1 auto; width: auto; min-width: 0; -webkit-appearance: none; appearance: none }
.dc-recherche-rang > .dc-btn { flex: 0 0 auto; width: auto }

@media (hover: hover) {
  .dc-onglet[aria-current="true"]:hover { border-bottom-color: var(--dc-or) }
  .dc-joueur-nom.dc-joueur-nom.dc-joueur-nom:hover { text-decoration: underline; text-underline-offset: 3px }
}
/* ordinateur : cases plus larges */
@media (min-width: 769px) {
  .dc-classement.dc-classement.dc-classement th,
  .dc-classement.dc-classement.dc-classement td { padding: 8px 14px }
  .dc-classement.dc-classement .dc-classement-tel { display: none }
}

/* ---------- lot 6b : Palmarès, MVP du mois, défi du mois ----------
   Pièces du sous-lot 6b. Aucune pièce existante n'est modifiée ; aucune couleur ne porte un sens (la place, le rang et la
   valeur sont écrits). */
/* deux blocs côte à côte sur ordinateur, l'un sous l'autre sur téléphone (top 5, cartes du mois) */
.dc-duo {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--dc-e-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none
}
/* dans une ligne de liste : le rang écrit à gauche, la valeur à droite (le nombre en gras, son unité dessous) ;
   le joueur prend la place restante, son pseudo passe à la ligne plutôt que d'être coupé */
.dc-rang {
  box-sizing: border-box;
  flex: none;
  min-width: 1.875rem;
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  color: var(--dc-texte)
}
.dc-valeur {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  max-width: 45%;
  margin: 0 0 0 auto;
  padding: 0 6px 0 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-etat);
  font-weight: 400;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: right;
  color: var(--dc-texte-doux)
}
.dc-valeur > b { font-size: var(--dc-t-texte); font-weight: 700; white-space: nowrap; color: var(--dc-texte) }
.dc-ligne > .dc-joueur { flex: 1 1 auto }
/* une liste posée dans une carte (variante) : ses lignes vont d'un bord à l'autre du contenu de la carte ; « ma ligne » garde
   sa marge, pour la barre de gauche */
.dc-liste--carte > .dc-ligne { padding-left: 0; padding-right: 0 }
.dc-liste--carte > .dc-ligne--moi { padding-left: 10px; padding-right: 4px }
/* tuile de record : sous le chiffre et son libellé, le nom du détenteur */
.dc-tuile > strong { font-size: var(--dc-t-texte); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; color: var(--dc-texte) }
/* un libellé précédé de son icône (« Champion », « Meilleure progression ») */
.dc-libelle-ic {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: var(--dc-texte)
}
.dc-libelle-ic .dc-ic { flex: none; width: 1.125rem; height: 1.125rem; vertical-align: 0; color: var(--dc-or) }
/* podium d'une saison : trois blocs, le champion en premier et entouré d'un trait épais ; une colonne sur téléphone */
.dc-podium {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none
}
.dc-podium-carte {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  color: var(--dc-texte);
  background: var(--dc-fond-haut);
  border: 1px solid var(--dc-trait);
  border-radius: 10px
}
.dc-podium-carte--un { border: 2px solid var(--dc-or) }
.dc-podium-carte > p { margin: 0 }
/* la photo de la galerie (montrée seulement avec l'accord du joueur) : un vrai lien vers ses photos */
.dc-podium-photo {
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  background: var(--dc-fond-moyen);
  border: 1px solid var(--dc-trait-fort);
  border-radius: 8px
}
.dc-podium-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 0 }
.dc-podium-photo:focus-visible { outline: 2px solid var(--dc-texte); outline-offset: 2px }
/* récompense d'une saison : le libellé, puis le ou les joueurs */
.dc-recompense {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 8px 0 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--dc-texte);
  border-top: 1px solid var(--dc-trait)
}
/* MVP du mois : « Précédent · le mois · Suivant » sur une rangée, cibles de 44 px */
.dc-mois {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--dc-e-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-texte);
  line-height: 1.3;
  color: var(--dc-texte)
}
.dc-mois-nom { margin: 0; padding: 0; font-size: var(--dc-t-texte); font-weight: 700; text-align: center; color: var(--dc-texte) }
.dc-mois-suite { justify-self: end }
/* ordinateur */
@media (min-width: 769px) {
  .dc-duo { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .dc-podium { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
/* ---------- fin du lot 6b ---------- */

/* ---------- corrections du lot 6 (22/11) ---------- */
/* Second rang d'onglets (« Tous / Mes amis », « Saisons / Mois », vues des dotations et des photos) : des pastilles bordées,
   la vue ouverte est une pastille PLEINE (fond clair, texte foncé, en gras) : elle se lit par le contraste et la forme,
   en niveaux de gris aussi, jamais par la seule couleur. Le bandeau, au-dessus, garde son trait épais : les deux
   rangées ne se ressemblent plus. (La feuille n'écrit aucun texte : pas de coche par « content ».) */
.dc-onglets.dc-onglets--second { gap: 8px; margin: 4px 0 0; border-bottom: 0 }
.dc-onglets--second.dc-onglets--second.dc-onglets--second > li:nth-child(n) { flex: 0 0 auto; min-width: 0 }
.dc-onglets--second .dc-onglet.dc-onglet {
  flex: 0 1 auto;
  min-height: var(--dc-h-toucher);
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--dc-trait-fort);
  border-radius: 999px
}
.dc-onglets--second .dc-onglet.dc-onglet[aria-current="page"] { background: var(--dc-texte); border-color: var(--dc-texte) }
.dc-onglets--second .dc-onglet.dc-onglet.dc-onglet[aria-current="page"] { color: var(--dc-encre) }
@media (hover: hover) {
  .dc-onglets--second .dc-onglet.dc-onglet:hover { border-color: var(--dc-texte-doux) }
  .dc-onglets--second .dc-onglet.dc-onglet[aria-current="page"]:hover { border-color: var(--dc-texte) }
}
/* MVP du mois : « mois en cours » à droite, à la place de « Suivant ». */
.dc-mois > .dc-doux { justify-self: end; margin: 0; text-align: right }
/* Choix de la saison : un champ étroit (le nom de la saison y est écrit), pas toute la largeur de la page. */
.dc-champ.dc-champ--court { width: 100%; max-width: 20rem }
/* Téléphone : le champ « Chercher un joueur dans ce classement » n'est pas montré (décision du 20/11, navigation :
   « Chercher » est dans l'en-tête). Il reste sur ordinateur. */
@media (max-width: 768px) {
  .dc-recherche.dc-recherche { display: none }
}
/* ---------- fin des corrections du lot 6 ---------- */

/* ---------- décisions du 22/11 (Thibaud) ---------- */
/* « Ta place » : UNE ligne en haut du classement, la phrase puis le lien « Voir ma ligne » (à droite s'il tient sur la même
   rangée, dessous sinon) ; plus de carte qui cache la liste sur téléphone. La phrase est courte : elle tient sur une ligne. */
.dc-ta-place {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--dc-e-3);
  min-width: 0;
  min-height: var(--dc-h-toucher);
  margin: 0;
  padding: 0;
  font-family: var(--dc-police-texte);
  font-size: var(--dc-t-second);
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: var(--dc-texte);
  background: none;
  border: 0
}
.dc-ta-place > strong { font-weight: 700 }
.dc-ta-place > .dc-lien { margin-left: auto }
/* un nom en lien posé dans une phrase ou une liste (ex æquo, records du Palmarès) : à la taille et à la graisse du texte autour */
.dc-nom-lien.dc-nom-lien.dc-nom-lien { font-size: inherit; font-weight: inherit; color: var(--dc-texte) }
/* MVP du mois : « Précédent » et « Suivant » (ou « mois en cours ») prennent la largeur de leur texte, le nom du mois prend le
   reste et passe à la ligne au besoin. Avant : trois colonnes égales, « Précédent » sortait de la sienne à 320 px, et à 360 px
   sur le mois en cours. */
.dc-mois.dc-mois { grid-template-columns: auto minmax(0, 1fr) auto }
.dc-mois-nom.dc-mois-nom { min-width: 0; overflow-wrap: anywhere }
/* ---------- fin des décisions du 22/11 ---------- */

/* ---------- contour au clavier, en deux tons : visible sur fond sombre comme sur doré ---------- */
.dc-btn:focus-visible,
.dc-lien:focus-visible,
.dc-champ:focus-visible {
  outline: 2px solid var(--dc-texte);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--dc-encre)
}
.dc-onglet:focus-visible,
.dc-ligne:focus-visible { outline: 2px solid var(--dc-texte); outline-offset: -2px }

/* ---------- survol et appui (appareils à souris seulement : pas de survol collé sur téléphone) ---------- */
@media (hover: hover) {
  .dc-btn:hover { background: var(--dc-carte-2) }
  .dc-btn--plein:hover { background: var(--dc-or); box-shadow: 0 0 0 2px var(--dc-texte) }
  .dc-btn--discret:hover,
  .dc-lien:hover { background: none; text-decoration-thickness: 2px }
  .dc-onglet:hover { border-bottom-color: var(--dc-trait-fort) }
  .dc-onglet[aria-current="page"]:hover,
  .dc-onglet[aria-selected="true"]:hover { border-bottom-color: var(--dc-or) }
}
.dc-btn:active { background: var(--dc-carte-2) }
.dc-btn--plein:active { background: var(--dc-or); box-shadow: inset 0 0 0 2px var(--dc-encre) }
.dc-btn--discret:active,
.dc-lien:active { background: none; box-shadow: none }
/* un bouton désactivé ne réagit ni au survol ni à l'appui */
.dc-btn:disabled:hover,
.dc-btn:disabled:active,
.dc-btn[aria-disabled="true"]:hover,
.dc-btn[aria-disabled="true"]:active { background: var(--dc-carte-2); box-shadow: none }
.dc-btn--discret:disabled:hover,
.dc-btn--discret:disabled:active,
.dc-btn--discret[aria-disabled="true"]:hover,
.dc-btn--discret[aria-disabled="true"]:active { background: none }

/* ---------- ordinateur : cibles de 40 px à la souris, marges de carte plus larges ---------- */
@media (min-width: 769px) {
  .dc-carte { padding: 20px }
  .dc-onglets > li { flex: 0 0 auto }
  .dc-onglet { flex: 0 0 auto; padding: 6px 16px; font-size: .9375rem; white-space: nowrap; overflow-wrap: normal }
}
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .dc-btn { min-height: 40px; padding: 6px 14px }
  .dc-btn--discret,
  .dc-lien { min-height: 36px; padding: 0 2px }
}

/* ---------- réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .dc-btn,
  .dc-lien,
  .dc-onglet,
  .dc-ligne,
  .dc-champ { transition: none; animation: none; scroll-behavior: auto }
}
