/* ============================================================
   bz-a11y.css — Widget d'accessibilité (bureau)
   v586 — Enrichi : 12 réglages et 3 profils.
   Occupe la place laissée libre par le sélecteur de langue
   flottant, désormais dans la barre du haut à partir de 1024 px.

   Tous les réglages sont posés en classes sur <html>. Une seule
   feuille suffit donc à les décrire : aucune autre règle du site
   n'est touchée, et rien n'est à défaire si on les retire.

   « Fond sombre » n'est volontairement PAS livré : le site n'est
   pas construit pour — photos, encarts dorés et sections déjà
   foncées s'y comporteraient mal. Cela demande un vrai thème.
   ============================================================ */

/* ---- Le bouton flottant ---------------------------------- */
#bz-a11y-btn{
  position:fixed; left:1rem; bottom:5.5rem; z-index:49;
  width:2.75rem; height:2.75rem;
  display:inline-flex; align-items:center; justify-content:center;
  border:2px solid hsl(var(--gold)); border-radius:9999px;
  background:var(--card); color:var(--primary);
  box-shadow:0 4px 16px hsl(22 25% 12% / .14);
  cursor:pointer; padding:0;
  transition:transform .15s, box-shadow .2s;
}
#bz-a11y-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 22px hsl(22 25% 12% / .2) }
#bz-a11y-btn:active{ transform:scale(.97) }

/* Le sélecteur de langue flottant, encore utile sous 1024 px,
   monte d'un cran pour ne pas se superposer à ce bouton. */
@media (max-width:1023.98px){
  #lang-float{ bottom:9rem !important; }
}

/* ---- Le panneau ------------------------------------------ */
#bz-a11y-panel{
  position:fixed; left:1rem; bottom:9rem; z-index:50;
  width:19rem; max-width:calc(100vw - 2rem);
  max-height:min(32rem, calc(100vh - 11rem)); overflow:auto;
  background:var(--card); border:1px solid var(--border);
  border-radius:1rem; box-shadow:0 18px 44px hsl(22 25% 12% / .22);
  padding:.95rem;
}
@media (max-width:1023.98px){ #bz-a11y-panel{ bottom:12.5rem } }
#bz-a11y-panel[hidden]{ display:none }
#bz-a11y-panel h3{ margin:0 0 .1rem; font-size:.95rem; font-weight:700; color:var(--espresso) }
#bz-a11y-panel .bz-a11y-sub{ margin:0 0 .8rem; font-size:.68rem; color:var(--muted-fg); line-height:1.4 }
.bz-a11y-grp{ margin-bottom:.75rem }
.bz-a11y-lab{
  display:block; margin-bottom:.35rem;
  font-size:.63rem; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted-fg);
}
.bz-a11y-row{ display:flex; flex-wrap:wrap; gap:.3rem }
.bz-a11y-row button{
  flex:1 1 0; min-width:3.6rem; min-height:2.25rem;
  border:1px solid var(--border); border-radius:.5rem;
  background:var(--card); color:var(--espresso);
  font-family:inherit; font-size:.76rem; font-weight:600;
  cursor:pointer; padding:0 .4rem; line-height:1.2;
}
.bz-a11y-row button:hover{ border-color:var(--primary-light) }
.bz-a11y-row button[aria-pressed="true"]{
  background:var(--primary); border-color:var(--primary); color:#fff;
}
.bz-a11y-row.bz-a11y-prof button{ background:var(--cream); border-color:var(--cream) }
.bz-a11y-row.bz-a11y-prof button:hover{ border-color:var(--primary-light) }
#bz-a11y-reset{
  width:100%; min-height:2.1rem; margin-top:.15rem;
  border:0; border-radius:.5rem; background:var(--cream);
  color:var(--muted-fg); font-family:inherit; font-size:.72rem;
  font-weight:600; cursor:pointer;
}
#bz-a11y-reset:hover{ color:var(--espresso) }
.bz-a11y-kbd{
  margin:.6rem 0 0; font-size:.63rem; color:var(--muted-fg); text-align:center;
}
.bz-a11y-kbd kbd{
  font-family:inherit; font-size:.63rem; background:var(--cream);
  border:1px solid var(--border); border-radius:.25rem; padding:.05rem .3rem;
}

/* ============================================================
   Les réglages
   ============================================================ */

/* Taille du texte — quatre crans. On agit sur la taille de base
   de <html> : tout ce qui est en rem suit, rien à réécrire. */
html.bz-txt-1{ font-size:108% }
html.bz-txt-2{ font-size:117% }
html.bz-txt-3{ font-size:128% }

/* Interligne — le réglage le plus utile aux lecteurs lents. */
html.bz-inter p, html.bz-inter li, html.bz-inter dd,
html.bz-inter .hero-quick-input, html.bz-inter td{ line-height:2 !important }

/* Espacement des lettres et des mots. */
html.bz-esp p, html.bz-esp li, html.bz-esp h1, html.bz-esp h2,
html.bz-esp h3, html.bz-esp h4, html.bz-esp a, html.bz-esp button{
  letter-spacing:.055em !important; word-spacing:.16em !important;
}

/* Police plus lisible : lettres plus larges et plus distinctes que
   Poppins, dont le « l », le « I » et le « 1 » se ressemblent. */
html.bz-lisible, html.bz-lisible body,
html.bz-lisible input, html.bz-lisible select,
html.bz-lisible textarea, html.bz-lisible button{
  font-family:Verdana, Tahoma, "DejaVu Sans", system-ui, sans-serif !important;
}

/* Contraste renforcé : textes secondaires foncés et bordures
   appuyées, sans toucher à l'identité chaude du site. */
html.bz-contraste{
  --muted-fg:hsl(22 20% 26%);
  --border:hsl(35 20% 70%);
}
html.bz-contraste p, html.bz-contraste li{ color:var(--espresso) }

/* Liens soulignés, quand la couleur seule ne suffit pas. */
html.bz-liens a:not(.btn):not(.nav-link):not(.bz-mega-promo-b):not(.brand){
  text-decoration:underline; text-underline-offset:2px;
}

/* Focus renforcé : l'anneau clavier devient épais et doré, visible
   sur les fonds crème comme sur les sections sombres. */
html.bz-focus *:focus-visible{
  outline:3px solid hsl(var(--gold)) !important;
  outline-offset:3px !important;
  border-radius:.25rem;
}

/* Gros curseur. */
html.bz-curseur, html.bz-curseur *{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 2l25 15-11 2-4 11z' fill='%23fff' stroke='%23221a14' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 5 2, auto !important;
}

/* Moins d'animations. */
html.bz-calme *, html.bz-calme *::before, html.bz-calme *::after{
  animation-duration:.001ms !important;
  animation-iteration-count:1 !important;
  transition-duration:.001ms !important;
  scroll-behavior:auto !important;
}

/* Règle de lecture — bande claire qui suit le pointeur. */
#bz-a11y-regle{
  position:fixed; left:0; right:0; height:4rem; z-index:48;
  pointer-events:none; box-shadow:0 0 0 9999px hsl(22 25% 10% / .45);
}

/* Le widget n'a pas sa place sous 768 px : le site mobile a ses
   propres réglages, et la barre n'a pas la largeur. */
@media (max-width:767.98px){
  #bz-a11y-btn, #bz-a11y-panel, #bz-a11y-regle{ display:none !important }
}
