@charset "UTF-8";
/* ESPORTIFY+ - Accessibilite */
/* 1. Lien d'évitement : visible uniquement au clavier. */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1200;
  display: inline-block;
  max-width: calc(100vw - 1rem);
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border: 2px solid #ffffff;
  border-radius: 0.5rem;
  background: #21163e;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease;
}
.skip-link:focus, .skip-link:focus-visible {
  transform: translateY(0);
  color: #ffffff;
}

/* 2. Le bouton A+ fonctionne sans transformer les tailles fixes en pixels. */
html[data-text-size=large] {
  font-size: 112.5%;
}

/* 3. Focus visible, y compris sur les contrôles personnalisés. */
:focus-visible {
  outline: 3px solid #ffbd70;
  outline-offset: 3px;
}

/* 4. Mode alternatif : noir / blanc / jaune, clairement différent
      du thème orange / violet normal. */
html[data-contrast=high] {
  color-scheme: dark;
  --es-arena: #050505;
  --es-background-glow: transparent;
  --es-surface: #181818;
  --es-surface-soft: #242424;
  --es-surface-hover: #303030;
  --es-border: #ffffff;
  --es-primary: #ffdf55;
  --es-primary-hover: #fff09e;
  --es-accent: #ffdf55;
  --es-text: #ffffff;
  --es-text-muted: #f1f1f1;
  --color-accent-soft: #ffdf55;
  --color-text-dark: #000000;
  --es-v1-deep: #000000;
  --es-v1-purple: #181818;
  --es-v1-card: #181818;
  --es-v1-table: #111111;
  --es-v1-border: #ffffff;
  --es-v1-text: #ffffff;
  --es-v1-ink: #000000;
  --es-v1-orange: #ffdf55;
  --es-v1-orange-light: #fff09e;
  --es-v1-deep-rgb: 0, 0, 0;
  --es-v1-purple-rgb: 24, 24, 24;
  --es-v1-purple-bright-rgb: 48, 48, 48;
  --es-v1-orange-rgb: 255, 223, 85;
  --es-v1-orange-soft-rgb: 255, 240, 158;
  --es-v1-ink-rgb: 0, 0, 0;
  --es-v1-shadow-rgb: 0, 0, 0;
  --bs-body-bg: #050505;
  --bs-body-bg-rgb: 5, 5, 5;
  --bs-body-color: #ffffff;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-emphasis-color: #ffffff;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-heading-color: #ffffff;
  --bs-secondary-color: #eeeeee;
  --bs-secondary-color-rgb: 238, 238, 238;
  --bs-secondary-bg: #181818;
  --bs-secondary-bg-rgb: 24, 24, 24;
  --bs-tertiary-bg: #242424;
  --bs-tertiary-bg-rgb: 36, 36, 36;
  --bs-border-color: #ffffff;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.75);
  --bs-primary: #ffdf55;
  --bs-primary-rgb: 255, 223, 85;
  --bs-warning: #ffdf55;
  --bs-warning-rgb: 255, 223, 85;
  --bs-link-color: #ffdf55;
  --bs-link-color-rgb: 255, 223, 85;
  --bs-link-hover-color: #fff09e;
  --bs-link-hover-color-rgb: 255, 240, 158;
}
html[data-contrast=high] .es-header,
html[data-contrast=high] .site-header {
  --es-header-bg: #101010;
  --es-header-surface: #222222;
  --es-header-hover: #303030;
  --es-header-orange: #ffdf55;
  --es-header-orange-light: #fff09e;
  --es-header-text: #ffffff;
  --es-header-muted: #eeeeee;
  --es-header-border: #ffffff;
}
html[data-contrast=high] body {
  background: #050505;
  color: #ffffff;
}
html[data-contrast=high] .site-header,
html[data-contrast=high] .es-header,
html[data-contrast=high] .site-footer {
  background: #101010;
  border-color: #ffdf55;
  color: #ffffff;
}
html[data-contrast=high] .site-footer p {
  color: #ffffff;
}
html[data-contrast=high] .bg-body,
html[data-contrast=high] .bg-body-secondary,
html[data-contrast=high] .bg-body-tertiary,
html[data-contrast=high] .bg-surface,
html[data-contrast=high] .card,
html[data-contrast=high] .es-card,
html[data-contrast=high] section[aria-labelledby=news-title] > details,
html[data-contrast=high] .organizer-stat,
html[data-contrast=high] .organizer-request-block,
html[data-contrast=high] .available-event-card,
html[data-contrast=high] .organizer-panel,
html[data-contrast=high] .organizer-dashboard,
html[data-contrast=high] .admin-control-panel,
html[data-contrast=high] .admin-live-details,
html[data-contrast=high] .admin-alerts-panel,
html[data-contrast=high] .admin-queue-item,
html[data-contrast=high] .admin-live-card,
html[data-contrast=high] .admin-versus-board,
html[data-contrast=high] .admin-versus-header,
html[data-contrast=high] .admin-versus-player,
html[data-contrast=high] .admin-score-strip,
html[data-contrast=high] .admin-live-log-panel,
html[data-contrast=high] .admin-page .role-banner,
html[data-contrast=high] .organizer-page .role-banner {
  background: #181818;
  background-image: none;
  color: #ffffff;
  border-color: #ffffff;
}
html[data-contrast=high] .es-home-hero {
  background-color: #ffdf55;
  background-image: none;
  box-shadow: inset 0 0 0 100vmax #ffdf55, 0 16px 38px rgba(0, 0, 0, 0.24);
  color: #000000;
  border-color: #000000;
}
html[data-contrast=high] .es-home-hero h1,
html[data-contrast=high] .es-home-hero h2,
html[data-contrast=high] .es-home-hero h3,
html[data-contrast=high] .es-home-hero p,
html[data-contrast=high] .es-home-hero .eyebrow,
html[data-contrast=high] .es-home-hero span {
  color: #000000;
  -webkit-text-fill-color: #000000;
}
html[data-contrast=high] .es-home-hero::after {
  box-shadow: none;
  border-color: #000000;
}
html[data-contrast=high] .es-home-hero svg {
  color: #000000;
}
html[data-contrast=high] .es-home-hero .btn {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}
html[data-contrast=high] .es-home-hero .btn:hover,
html[data-contrast=high] .es-home-hero .btn:focus-visible {
  background: #242424;
  color: #ffffff;
}
html[data-contrast=high] h1, html[data-contrast=high] h2, html[data-contrast=high] h3, html[data-contrast=high] h4, html[data-contrast=high] h5, html[data-contrast=high] h6,
html[data-contrast=high] .text-body,
html[data-contrast=high] .text-body-secondary,
html[data-contrast=high] .text-muted,
html[data-contrast=high] .text-secondary,
html[data-contrast=high] .text-violet-200,
html[data-contrast=high] .text-violet-300,
html[data-contrast=high] .text-violet-400,
html[data-contrast=high] .card-text,
html[data-contrast=high] .es-card__title,
html[data-contrast=high] .es-card__description,
html[data-contrast=high] .organizer-summary,
html[data-contrast=high] .available-event-card__meta {
  color: #ffffff;
}
html[data-contrast=high] .text-warning,
html[data-contrast=high] .admin-last-action,
html[data-contrast=high] .available-event-card__title,
html[data-contrast=high] .admin-score-strip strong {
  color: #ffdf55;
}
html[data-contrast=high] a:not(.btn):not(.site-logo) {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
html[data-contrast=high] .btn-primary {
  --bs-btn-color: #000000;
  --bs-btn-bg: #ffdf55;
  --bs-btn-border-color: #ffdf55;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: #fff09e;
  --bs-btn-hover-border-color: #fff09e;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: #fff09e;
  --bs-btn-active-border-color: #fff09e;
  --bs-btn-disabled-color: #000000;
  --bs-btn-disabled-bg: #d6bd5d;
  --bs-btn-disabled-border-color: #d6bd5d;
}
html[data-contrast=high] .btn-outline-primary,
html[data-contrast=high] .btn-outline-warning {
  --bs-btn-color: #ffdf55;
  --bs-btn-border-color: #ffdf55;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: #ffdf55;
  --bs-btn-hover-border-color: #ffdf55;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: #fff09e;
  --bs-btn-active-border-color: #fff09e;
}
html[data-contrast=high] .es-auth-trigger,
html[data-contrast=high] .es-auth-submit,
html[data-contrast=high] .es-auth-logout {
  border-color: #ffdf55;
}
html[data-contrast=high] .form-control,
html[data-contrast=high] .form-select,
html[data-contrast=high] .organizer-request-form input,
html[data-contrast=high] .organizer-request-form select,
html[data-contrast=high] input[type=text],
html[data-contrast=high] input[type=email],
html[data-contrast=high] input[type=password],
html[data-contrast=high] input[type=number],
html[data-contrast=high] input[type=date],
html[data-contrast=high] input[type=datetime-local],
html[data-contrast=high] textarea,
html[data-contrast=high] select {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
}
html[data-contrast=high] input::placeholder,
html[data-contrast=high] textarea::placeholder,
html[data-contrast=high] .form-control::placeholder {
  color: #444444;
  opacity: 1;
}
html[data-contrast=high] .table {
  --bs-table-bg: #181818;
  --bs-table-color: #ffffff;
  --bs-table-border-color: #ffffff;
  --bs-table-striped-bg: #262626;
  --bs-table-striped-color: #ffffff;
  --bs-table-hover-bg: #333333;
  --bs-table-hover-color: #ffffff;
}
html[data-contrast=high] :focus-visible {
  outline: 3px solid #ffdf55;
  outline-offset: 3px;
}
html[data-contrast=high] .skip-link:focus-visible {
  outline-color: #000000;
}
html[data-contrast=high] #reading-contrast-toggle[aria-pressed=true],
html[data-contrast=high] #text-size-toggle[aria-pressed=true] {
  border-color: #ffdf55;
  box-shadow: 0 0 0 2px #ffdf55;
}

/* 5. Lecture facilitee : un vrai confort de lecture, sans toucher
   a la navigation, a la connexion ni a la palette orange/violet.
   Active uniquement lorsque <html data-reading="enabled">. */
html[data-reading=enabled] {
  --es-text-muted: #fff1f5;
  --bs-secondary-color: #fff1f5;
  --bs-secondary-color-rgb: 255, 241, 245;
}
html[data-reading=enabled] body main p,
html[data-reading=enabled] body main li,
html[data-reading=enabled] body main dd,
html[data-reading=enabled] body main blockquote,
html[data-reading=enabled] body main .card-text,
html[data-reading=enabled] body main .es-card__description,
html[data-reading=enabled] body main [data-tournament-card] p,
html[data-reading=enabled] body main [data-community-tournament-card] p,
html[data-reading=enabled] body main [data-friendly-card] p {
  font-size: 1.125rem;
  font-weight: 550;
  line-height: 1.85;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}
html[data-reading=enabled] body main .es-home-hero.hero p:not(.eyebrow),
html[data-reading=enabled] body main .es-card__description,
html[data-reading=enabled] body main .card-text,
html[data-reading=enabled] body main [data-tournament-card] p,
html[data-reading=enabled] body main [data-community-tournament-card] p,
html[data-reading=enabled] body main [data-friendly-card] p {
  color: #fffaf7;
}
html[data-reading=enabled] body main h1,
html[data-reading=enabled] body main h2,
html[data-reading=enabled] body main h3,
html[data-reading=enabled] body main .es-card__title {
  letter-spacing: 0;
  line-height: 1.35;
}
html[data-reading=enabled] body main a:not(.btn):not(.site-logo) {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
html[data-reading=enabled] body main label,
html[data-reading=enabled] body main .form-text,
html[data-reading=enabled] body main .form-control,
html[data-reading=enabled] body main .form-select,
html[data-reading=enabled] body main textarea {
  font-size: 1.125rem;
  line-height: 1.65;
}
html[data-reading=enabled] #reading-toggle[aria-pressed=true] {
  border-color: #24152d;
  box-shadow: 0 0 0 2px #24152d;
}

/* 5. Confort de lecture : panneau discret indépendant du zoom A+. */
.site-header {
  position: relative;
}

.site-header .reading-settings-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 0.4rem);
  right: max(0.75rem, (100vw - 1100px) / 2);
  width: min(21rem, 100vw - 1.5rem);
  max-height: min(80vh, 35rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e9aa6b;
  border-radius: 0.85rem;
  background: #30213f;
  color: #fff7f2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  line-height: 1.4;
}

/* La propriété hidden doit toujours empêcher le panneau de prendre de la place. */
.site-header .reading-settings-panel[hidden] {
  display: none;
}

.reading-settings-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.reading-settings-panel__title {
  margin: 0;
  color: #fff7f2;
  font-size: 1rem;
  font-weight: 700;
}

.reading-settings-panel__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
}

.reading-settings-panel__sizes legend {
  width: 100%;
  margin-bottom: 0.35rem;
  color: #fff7f2;
  font-size: 0.93rem;
  font-weight: 650;
}

.reading-settings-panel__sizes label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem;
  border: 1px solid #ad8ebc;
  border-radius: 0.45rem;
  color: #fff7f2;
  cursor: pointer;
}

.reading-settings-panel__sizes input {
  accent-color: #ffac51;
}

.reading-settings-panel button {
  min-height: 2.3rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #d9a36f;
  border-radius: 0.5rem;
  background: #432b55;
  color: #ffffff;
  cursor: pointer;
}

.reading-settings-panel > button {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  text-align: left;
}

.reading-settings-panel button[aria-pressed=true] {
  border-color: #ffbd70;
  background: #663969;
  box-shadow: inset 0 0 0 1px #ffbd70;
}

.reading-settings-panel button:hover,
.reading-settings-panel__sizes label:hover {
  border-color: #ffbd70;
}

/* Trois choix : normal (aucun attribut), confort ou grande taille. */
html[data-reading-size=comfort] main p,
html[data-reading-size=comfort] main li,
html[data-reading-size=comfort] main .card-text,
html[data-reading-size=comfort] main .es-card__description {
  font-size: 1.075rem;
  line-height: 1.7;
}

html[data-reading-size=large] main p,
html[data-reading-size=large] main li,
html[data-reading-size=large] main .card-text,
html[data-reading-size=large] main .es-card__description {
  font-size: 1.2rem;
  line-height: 1.75;
}

/* Le gras ne change pas les champs, icônes ou boutons. */
html[data-reading-bold=enabled] main p,
html[data-reading-bold=enabled] main li,
html[data-reading-bold=enabled] main .card-text,
html[data-reading-bold=enabled] main .es-card__description {
  font-weight: 700;
}

/* Voile chaud très léger ; option de confort et non filtre médical. */
html[data-reading-warm=enabled] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background: rgba(255, 174, 92, 0.075);
}

@media (max-width: 760px) {
  .site-header .reading-settings-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}
/* 6. Préférences de réduction des mouvements. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skip-link {
    transition: none;
  }
}
/* ============================================================
   7. Commandes de lecture compactes - PC, tablette, smartphone.
   Le panneau est maintenant un fieldset dans accessibility-controls.
   Ces regles remplacent visuellement l'ancien panneau flottant,
   sans modifier les modes, A+ ou les styles historiques.
   ============================================================ */
.site-header .reading-settings-panel--inline {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: normal;
}

.site-header .reading-settings-panel--inline[hidden] {
  display: none;
}

.site-header .reading-settings-panel--inline > .reading-settings-panel__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid #6d456a;
  border-radius: 0.65rem;
  background: #fff0db;
  color: #2b1936;
  box-shadow: 0 1px 3px rgba(28, 16, 38, 0.15);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.site-header .reading-settings-panel--inline > .reading-settings-panel__icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .reading-settings-panel--inline > .reading-settings-panel__icon:hover {
  background: #ffffff;
  border-color: #34203e;
}

.site-header .reading-settings-panel--inline > .reading-settings-panel__icon[aria-pressed=true],
html[data-reading-size=comfort] #reading-size-cycle,
html[data-reading-size=large] #reading-size-cycle {
  background: #34203e;
  border-color: #34203e;
  color: #ffffff;
}

.site-header .reading-settings-panel--inline > .reading-settings-panel__icon:focus-visible {
  outline: 3px solid #24152d;
  outline-offset: 2px;
}

/* Notification RPG : visible 2 secondes apres la derniere action. */
.site-header .reading-settings-panel__confirmation {
  position: absolute;
  z-index: 1250;
  top: calc(100% + 0.5rem);
  right: max(0.75rem, (100vw - 1100px) / 2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ffbb70;
  border-radius: 0.65rem;
  background: #30213f;
  color: #fffaf4;
  box-shadow: 0 8px 22px rgba(20, 10, 30, 0.32);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  pointer-events: none;
}

.site-header .reading-settings-panel__confirmation[hidden] {
  display: none;
}

.site-header .reading-settings-panel__confirmation > [aria-hidden=true] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #ffbd70;
  color: #2b1936;
  font-weight: 800;
}

/* Zones tactiles suffisantes et aucun debordement a petite largeur. */
@media (pointer: coarse), (max-width: 760px) {
  .site-header .reading-settings-panel--inline > .reading-settings-panel__icon {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
  }
  .site-header .reading-settings-panel__confirmation {
    right: 0.75rem;
  }
}
@media (max-width: 360px) {
  .site-header .accessibility-controls,
  .site-header .reading-settings-panel--inline {
    gap: 0.2rem;
  }
}
/* Notification : contraste, lisibilite et affichage garanti lorsque visible. */
.site-header output.reading-settings-panel__confirmation:not([hidden]) {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  z-index: 3000;
}

.site-header output.reading-settings-panel__confirmation[hidden] {
  display: none;
}

/* 8. Confort : aucune modification du flux du header. */
.es-header .accessibility-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
}

.es-header .accessibility-controls .reading-settings-panel--inline[hidden] {
  display: none;
}

.es-header .accessibility-controls .reading-settings-panel--inline > .reading-settings-panel__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #6d456a;
  border-radius: 0.65rem;
  background: #fff0db;
  color: #2b1936;
}

.es-header .accessibility-controls .reading-settings-panel__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.2;
}

.es-header .accessibility-controls #reading-reset-settings {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  border: 1px solid #6d456a;
  border-radius: 0.55rem;
  background: #fff0db;
  color: #24152d;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Grand ecran : extension a droite, position fixe dans la barre. */
@media (min-width: 1900px) {
  .es-header .accessibility-controls {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    left: auto;
    gap: 0.65rem;
    transform: translateY(-50%);
  }
  .es-header .accessibility-controls .reading-settings-panel--inline:not([hidden]) {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #24152d;
  }
  .es-header .accessibility-controls .reading-settings-panel__actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 0 0.55rem;
    padding: 0 0 0 0.75rem;
    border: 0;
    border-left: 1px solid rgba(48, 33, 63, 0.4);
  }
  .es-header .accessibility-controls .reading-settings-panel__remember {
    flex: 0 0 auto;
    gap: 0.5rem;
    color: #24152d;
    line-height: 1.25;
    white-space: nowrap;
  }
  .es-header .accessibility-controls #reading-reset-settings {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 40px;
    margin: 0;
    padding-inline: 1rem;
    white-space: nowrap;
  }
}
/* PC compact et tablette : menu ancre au Livre sans pousser les onglets. */
@media (min-width: 761px) and (max-width: 1899px) {
  .es-header .accessibility-controls {
    position: relative;
  }
  .es-header .accessibility-controls .reading-settings-panel--inline:not([hidden]) {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: auto;
    z-index: 1100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 18rem;
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 6rem);
    margin: 0;
    padding: 0.8rem;
    overflow-y: auto;
    border: 1px solid #ffb260;
    border-radius: 0.8rem;
    background: #30213f;
    color: #fff7ed;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  }
  .es-header .accessibility-controls .reading-settings-panel__actions {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
  }
  .es-header .accessibility-controls .reading-settings-panel__remember {
    color: #fff7ed;
  }
}
/* 9. Smartphone : Confort dans le flux, jamais superpose au contenu. */
@media (max-width: 760px) {
  /* Les deux boutons A+ et Livre restent sur la premiere ligne.
     Le fieldset n'ajoute pas de colonne ni de hauteur artificielle. */
  .es-header .accessibility-controls {
    display: contents;
  }
  .es-header .accessibility-controls > #text-size-toggle,
  .es-header .accessibility-controls > #reading-toggle {
    order: 2;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
  }
  /* Le formulaire Connexion (ordre 5 dans header.scss) precede
  le groupe Confort (ordre 6) lorsque les deux sont ouverts. */
  .es-header .accessibility-controls .reading-settings-panel--inline:not([hidden]) {
    position: static;
    order: 6;
    display: grid;
    flex: 1 1 100%;
    grid-template-columns: repeat(4, 44px);
    align-items: center;
    justify-content: start;
    justify-items: center;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0.75rem;
    overflow: visible;
    border: 1px solid #d69055;
    border-radius: 0.8rem;
    background: #ffce93;
    color: #30213f;
    box-shadow: none;
  }
  .es-header .accessibility-controls .reading-settings-panel--inline[hidden] {
    display: none;
  }
  .es-header .accessibility-controls .reading-settings-panel--inline > .reading-settings-panel__icon {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
  }
  .es-header .accessibility-controls .reading-settings-panel__actions {
    grid-column: 1/-1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0 0;
    border: 0;
    border-top: 1px solid rgba(48, 33, 63, 0.25);
  }
  .es-header .accessibility-controls .reading-settings-panel__remember {
    display: inline-flex;
    flex: 1 1 160px;
    align-items: center;
    min-width: 0;
    margin: 0;
    color: #30213f;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: normal;
  }
  .es-header .accessibility-controls #reading-reset-settings {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: max-content;
    min-height: 44px;
    margin: 0;
    padding: 0.55rem 0.85rem;
    background: #fff0db;
    color: #30213f;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  /* Seule la notification est flottante ; elle ne bloque aucun clic. */
  .site-header .reading-settings-panel__confirmation:not([hidden]) {
    position: fixed;
    top: auto;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    right: 0.65rem;
    left: 0.65rem;
    justify-content: center;
    width: auto;
    max-width: none;
    z-index: 3000;
    font-size: 0.86rem;
  }
}
/* 320 px : le bouton et son libelle restent accessibles. */
@media (max-width: 360px) {
  .es-header .accessibility-controls .reading-settings-panel--inline:not([hidden]) {
    gap: 0.4rem;
    padding: 0.6rem;
  }
  .es-header .accessibility-controls .reading-settings-panel__actions {
    justify-content: flex-start;
  }
}
/* 6. Mise en page lisible au zoom et au clavier. */
html[data-text-size=large] [data-tournament-card],
html[data-text-size=large] [data-community-tournament-card],
html[data-text-size=large] [data-friendly-card] {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-reading=enabled] body main [data-tournament-card] label,
html[data-reading=enabled] body main [data-community-tournament-card] label,
html[data-reading=enabled] body main [data-friendly-card] label {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 576px) {
  html[data-text-size=large] body main .btn,
  html[data-reading=enabled] body main .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
