/* Hall of Fame LCF : fil des certifiés, publication, gestion, page de célébration.
   S'appuie sur club.css et defi.css (formulaires, panneaux, boutons). */

.hof-main { flex: 1; background: var(--bg); }
.hof-main > .wrap { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }

/* En-tête du fil */
.hof-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.hof-head h1 { font-size: clamp(28px, 4.4vw, 42px); color: var(--navy); }
.hof-head p { color: var(--text-2); font-size: 16px; margin-top: 6px; }
.hof-head .add { font-weight: 800; font-size: 15px; }

/* Grille de fiches */
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.fiche { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fiche-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fiche-top > div { min-width: 0; }
.fiche-name { font-weight: 800; font-size: 17px; color: var(--navy); text-decoration: none; display: block; overflow-wrap: anywhere; }
a.fiche-name:hover { color: var(--blue); }
.fiche-when { font-size: 13px; color: var(--text-2); }
.fiche-meta { font-size: 14px; color: var(--text-2); }
.fiche-cert { font-weight: 800; font-size: 15px; color: var(--blue-dark); }
.fiche-msg { font-size: 15px; color: var(--navy); margin: 0; overflow-wrap: anywhere; }
.fiche-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.alumni { background: #FFF4DE; color: #7A4B00; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* Avatars : photo ou initiales sur fond de couleur */
.avatar { width: 52px; height: 52px; flex: none; border-radius: 999px; object-fit: cover; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 18px; background: var(--blue); color: #fff; }
.avatar.c1 { background: var(--navy); }
.avatar.c2 { background: var(--blue-soft); color: var(--navy); }
.avatar.c3 { background: var(--gold); color: var(--navy); }
.avatar.big { width: 96px; height: 96px; font-size: 32px; }

.cheer-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--blue);
  background: #fff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cheer-btn:hover { background: var(--blue-soft); }
.cheer-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.ghost-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--border-2);
  background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.ghost-btn:hover { border-color: var(--blue); color: var(--blue); }

.hof-empty { background: #fff; border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.hof-empty strong { font-size: 18px; color: var(--navy); }

.hof-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px 24px; }
.hof-cta strong { font-size: 20px; display: block; }
.hof-cta p { color: #D9E2F1; font-size: 15px; margin-top: 4px; max-width: 560px; }
.hof-cta .btn-ghost { border-color: #fff; }

/* Formulaire de publication */
.publish { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 900px) { .publish { grid-template-columns: minmax(0, 1fr) 360px; } .publish .preview { position: sticky; top: 16px; } }
.steps { display: flex; gap: 8px; }
.steps span { flex: 1; font-size: 13px; font-weight: 800; color: var(--text-2); padding-bottom: 8px; border-bottom: 3px solid var(--border); }
.steps span[aria-current="step"] { color: var(--blue); border-bottom-color: var(--blue); }
.field textarea { min-height: 96px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border-2); background: #fff; font: inherit;
  font-size: 15px; color: var(--navy); resize: vertical; }
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field .help { font-size: 12px; color: var(--text-2); font-weight: 500; }
.field input[type="file"] { padding: 10px 12px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px;
  background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.radios input { accent-color: var(--blue); }
.photo-row { display: flex; align-items: center; gap: 14px; }
.counter { font-size: 12px; color: var(--text-2); text-align: right; }
.preview h2 { font-size: 15px; color: var(--text-2); }

/* Page de célébration */
.cel-wrap { max-width: 720px; }
.cel-card { background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--blue); border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cel-photo { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; }
.cel-initials { width: 140px; height: 140px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 48px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.cel-card h1 { font-size: clamp(24px, 4vw, 34px); color: var(--navy); }
.cel-name { font-size: 20px; font-weight: 800; color: var(--navy); }
.cel-meta { color: var(--text-2); }
.cel-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cel-msg { margin: 0; background: #fff; border-left: 4px solid var(--blue); border-radius: 8px; padding: 16px 18px; font-size: 17px; color: var(--navy); }
.cel-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cel-cta strong { font-size: 18px; }
.cel-cta a:not(.btn) { color: #fff; font-weight: 700; }
.cel-cta .btn-ghost { border-color: #fff; }

/* Gestion de la fiche */
.status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.danger { color: var(--err); border-color: #F3B8B2; }
.danger:hover { color: var(--err); border-color: var(--err); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 14px; font-weight: 700; z-index: 10; max-width: calc(100% - 32px); }
.hof-main h1 { font-size: clamp(26px, 4vw, 38px); color: var(--navy); }
.hof-head h1 { font-size: clamp(28px, 4.4vw, 42px); }

/* Parcours de publication en 7 écrans, avec la fiche qui se construit à côté */
.hof-intro { color: var(--text-2); font-size: 16px; max-width: 640px; }
.wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) {
  .wizard { grid-template-columns: minmax(0, 1fr) 380px; }
  .wizard .preview { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .wizard .wizard-step { grid-column: 1; grid-row: 1; }
}
.wizard-step { gap: 14px; }
.step-title { font-size: clamp(19px, 2.4vw, 23px); color: var(--navy); line-height: 1.25; }
.why { font-size: 13px; color: var(--text-2); margin-top: -6px; padding-left: 10px; border-left: 3px solid var(--blue-soft); }
.reassure { font-size: 14px; font-weight: 600; color: var(--ok); background: var(--ok-bg); border-radius: 8px; padding: 10px 12px; }
.skip { align-self: flex-start; font-size: 14px; }
.preview .bar { margin-top: -4px; }
.preview .bar i { transition: width 0.3s ease; }
.ph { color: #8A97AB; font-style: italic; font-weight: 600; }
.avatar.ph-avatar { background: var(--bg); color: #8A97AB; border: 2px dashed var(--border-2); }
.editing { outline: 2px dashed var(--blue); outline-offset: 4px; border-radius: 6px; animation: hof-pulse 1.6s ease-in-out infinite; }
.avatar.editing { border-radius: 999px; }
@keyframes hof-pulse { 50% { outline-color: #9DB4EE; } }
@media (prefers-reduced-motion: reduce) { .editing { animation: none; } .preview .bar i { transition: none; } }
/* Sur mobile, la fiche en construction reste compacte pour laisser la question visible */
@media (max-width: 899px) {
  .wizard .preview { padding: 14px; gap: 8px; }
  .wizard .preview .ph:not(.editing), .wizard .preview > p.muted { display: none; }
  .wizard .preview .fiche { padding: 12px; gap: 6px; }
}

/* Fil : une fiche par ligne, plus grande, avec une colonne latérale sur ordinateur */
.hof-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.hof-feed { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hof-feed .hof-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hof-side { display: flex; flex-direction: column; gap: 14px; }
.hof-side .hof-cta { flex-direction: column; align-items: stretch; padding: 22px; }
.hof-side .hof-cta .row { flex-direction: column; }
.hof-side .hof-cta .btn { width: 100%; }
.hof-add { gap: 8px; }
.hof-add strong { font-size: 17px; color: var(--navy); }
.hof-add .ghost-btn { align-self: flex-start; }
@media (min-width: 960px) {
  .hof-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .hof-side { position: sticky; top: 16px; }
  .hof-feed .fiche { padding: 22px 24px; display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; row-gap: 8px; }
  .hof-feed .fiche > * { grid-column: 2; }
  .hof-feed .fiche-top { display: contents; }
  .hof-feed .fiche-top > .avatar { grid-column: 1; grid-row: 1 / span 6; width: 84px; height: 84px; font-size: 28px; }
  .hof-feed .fiche-top > div { grid-column: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .hof-feed .fiche-name { font-size: 20px; }
  .hof-feed .fiche-msg { font-size: 16px; }
}
@media (min-width: 960px) { .hof-head .add { display: none; } }

/* Liens de profil facultatifs (LinkedIn, LCF Talents) */
.fiche-links, .cel-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 14px; font-weight: 700; }
.fiche-links a, .cel-links a { color: var(--blue, #1747C7); text-decoration: none; }
.fiche-links a:hover, .cel-links a:hover { text-decoration: underline; }
.cel-links { justify-content: center; margin-top: 10px; }

/* Passerelles vers LCF Talents (0.8.9) */
.talents-cta { gap: 8px; align-items: flex-start; }
.talents-cta strong { font-size: 17px; color: var(--navy); }
.talents-help { margin: -6px 0 4px; font-size: 13px; color: var(--text-2); }
.talents-help a { font-weight: 700; }
.hof-recruteurs { font-size: 14px; color: var(--text-2); margin: 0; padding: 0 4px; }
.hof-recruteurs a { font-weight: 700; }
