/* ═══════════════════════════════════════════════════════════════════
   Hub des questionnaires (corrections/eval) · style ip-services.fr
   Jetons, polices et thème sombre : /_commun/charte.css (chargée avant).
═══════════════════════════════════════════════════════════════════ */
body { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--titre); line-height: 1.15; letter-spacing: -.02em; }

/* En-tête collant et translucide */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--verre); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--trait);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--titre); }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; background: var(--blanc); box-shadow: 0 0 0 1px var(--trait); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font: 800 1.2rem var(--police-titre); }
.brand-text em { font-style: normal; font-size: .82rem; color: var(--texte-doux); }
.site-actions { display: flex; gap: .5rem; }

/* Boutons (les pilules de la charte, en plus compact) */
.btn { min-height: 42px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn.ghost { background: var(--surface); color: var(--titre); border-color: var(--trait); }
.btn.ghost:hover { border-color: var(--bleu); color: var(--lien); }

/* Bandeau titre */
.site-main { flex: 1; }
.hero { padding: 3rem 0 1.25rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; margin-bottom: .5rem; }
.hero .lede, .hero .hint { color: var(--texte-doux); font-size: 1.1rem; max-width: 60ch; }

/* Grille des cartes */
.hub { padding: 1.25rem 0 4rem; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
  position: relative; display: grid; grid-template-columns: 60px 1fr 22px; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius); text-decoration: none; color: var(--texte-fort);
  background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-douce);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: color-mix(in srgb, var(--bleu) 45%, var(--trait)); }
.card:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; user-select: none;
  font: 800 .95rem var(--police-titre); color: var(--blanc); background: var(--degrade-marine);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ciel) 45%, transparent);
}
.avatar[data-initials]::after { content: attr(data-initials); }
.meta h3 { margin: 0; font-size: 1.05rem; }
.meta p { margin: 2px 0 0; color: var(--texte-doux); font-size: .92rem; }
.chev { color: var(--lien); font-weight: 700; transition: transform .2s; }
.card:hover .chev { transform: translateX(4px); }

/* Pied de page */
.site-footer { padding: 1.75rem 0; border-top: 1px solid var(--trait); background: var(--surface); }
.site-footer p { margin: 0; color: var(--texte-doux); text-align: center; font-size: .92rem; }

/* Page de gestion des accès (acces.html) */
.wrap-narrow { max-width: 900px; margin: 1rem auto 3rem; padding: 0 20px; }
.panel { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--radius); box-shadow: var(--ombre-douce); padding: 1.25rem 1.4rem; margin: 1rem 0; }
.panel h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.row { display: grid; grid-template-columns: 1fr 260px auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.row label { font-weight: 650; color: var(--titre); }
.row input[type=password] {
  width: 100%; min-height: 44px; padding: .6rem .85rem; font: inherit; color: var(--texte-fort);
  background: var(--surface); border: 1.5px solid var(--trait); border-radius: 11px;
}
.row input[type=password]:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bleu) 22%, transparent); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--texte-doux); font-size: .95rem; margin: .4rem 0 1rem; }
.back { display: inline-block; margin: 1.25rem 0; font-weight: 700; }
.hidden { display: none; }
@media (max-width: 760px) { .row, .row[style] { grid-template-columns: 1fr !important; } .brand-text em { display: none; } }
