/* Intégration des outils au site EzyInfo : en-tête du site (logo et menu circulaire), barre des outils
   aux couleurs du site, police Ubuntu, mention en pied de page et fenêtre « Mes chartes ».
   Chargé après les feuilles de style des outils, dont il reprend les jetons de couleur. */

:root {
  --ezy-cyan: #32bcc5;
  --ezy-cyan-sombre: hsl(195, 69%, 24%);
  --sans: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- En-tête du site : toujours sur fond noir, comme sur les autres pages ---------- */

.site-header { display: flex; justify-content: center; background: #000; }
.site-header :focus-visible { outline-color: var(--ezy-cyan); }
/* Boîte 4/3 qui porte le logo et le menu circulaire, plus compacte que sur le reste du site */
.header-inner { position: relative; width: 100%; max-width: 280px; aspect-ratio: 4 / 3; }
.header-inner svg.logo_svg {
  position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: block; width: 40.5%; height: auto; color: #70bec2;
}
.header-inner .logo_text { font-family: "Amatic SC", cursive; font-weight: 700; font-size: 20.0697px; fill: #e1e1e1; }
svg#menu_svg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible;
  font-family: "Amatic SC", cursive;
}
#menu_svg a { fill: #e1e1e1; font-size: 1.8rem; font-weight: 700; text-decoration: none; transition: fill .2s ease; }
#menu_svg a:hover, #menu_svg a:focus-visible { fill: var(--ezy-cyan); }

/* ---------- Barre des outils : sombre dans les deux thèmes, accents turquoise du site ---------- */

.topbar {
  color-scheme: dark;
  --ink: #f2f2f2; --ink-soft: #bdbdbd; --sheet: #121212; --rule: #262626;
  --wash: #1f1f1f; --wash-strong: #2c2c2c;
  background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 0; color: var(--ink);
}
.topbar :focus-visible { outline-color: var(--ezy-cyan); }
.topbar .tabs { background: #000; }
.topbar .tab:hover { color: var(--ezy-cyan); background: transparent; }
.topbar .tab[aria-current="page"] { background: var(--ezy-cyan); color: #000; box-shadow: none; }
/* Boutons secondaires du site : contour turquoise, fond bleu foncé au survol */
.topbar .btn { background: transparent; box-shadow: inset 0 0 0 2px var(--ezy-cyan); color: #fff; }
.topbar .btn:hover { background: var(--ezy-cyan-sombre); }
.topbar .icon-btn { color: #fff; }

/* ---------- Pied de page ---------- */

.ezy-credit { flex-basis: 100%; color: var(--ink); }
.ezy-credit a { font-weight: 600; }

/* ---------- Fenêtre « Mes chartes » ---------- */

.ezy-chartes {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 0; border-radius: 20px; background: var(--sheet); color: var(--ink); box-shadow: var(--lift);
}
.ezy-chartes::backdrop { background: rgb(0 0 0 / .55); }
.ezy-chartes-corps { display: grid; gap: 18px; padding: 20px 24px 24px; }
.ezy-chartes-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ezy-chartes-tete h2 { font-size: 1.375rem; }
.ezy-local {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--wash); font-size: .9375rem; line-height: 1.45;
}
.ezy-local .icon { margin-top: 1px; color: var(--ezy-cyan-sombre); }
:root[data-theme="dark"] .ezy-local .icon { color: var(--ezy-cyan); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ezy-local .icon { color: var(--ezy-cyan); }
}
.ezy-enregistrer { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.ezy-enregistrer .form-field { flex: 1 1 240px; }
.ezy-enregistrees { display: grid; gap: 10px; }
.ezy-chartes h3 { font-size: 1rem; }
.ezy-liste { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ezy-fiche {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule);
}
.ezy-apercu { display: flex; align-items: center; gap: 4px; flex: none; }
.ezy-apercu img { width: 36px; height: 36px; margin-right: 6px; object-fit: contain; }
/* Liseré visible dans les deux thèmes, même pour une couleur proche du fond de la fenêtre */
.ezy-pastille { width: 14px; height: 36px; border-radius: 4px; box-shadow: 0 0 0 1px var(--control); }
.ezy-fiche-texte { flex: 1 1 160px; min-width: 0; }
.ezy-fiche-nom { font-weight: 700; overflow-wrap: anywhere; }
.ezy-fiche-date { color: var(--ink-soft); font-size: .8125rem; }
.ezy-fiche-actions { display: flex; gap: 6px; }
.ezy-fiche-actions .btn { min-height: 38px; }
.ezy-vide, .ezy-astuce { color: var(--ink-soft); font-size: .875rem; line-height: 1.45; }
