/* ══════════════════════════════════════════════════════════════════════════
   LA FICHE D'UN ÉVÉNEMENT (7.18.0) — views/vitrine/evenement.ejs

   Chargée après evenements.css (variables `.ev`, puces des métiers, points
   des publics, bouton « Site internet »). Couleurs du site : `--theme`
   (magenta), `--encre`, `--gris`, `--trait` (public/css/app.css). Le violet
   des recruteurs reste celui des cartes d'événements.
   ══════════════════════════════════════════════════════════════════════════ */

.evf-section { padding-top: 34px; }

.evf-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 13.5px; color: var(--gris); }
.evf-ariane a { color: var(--gris); text-decoration: underline; text-underline-offset: 2px; }
.evf-ariane a:hover { color: var(--theme); }
.evf-ariane [aria-current] { color: var(--encre); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.evf-passe {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
  background: var(--attente-pale, #FDF5E3); color: var(--attente, #92610A); font-size: 14px;
}
.evf-passe strong { color: var(--attente, #92610A); }
.evf-passe a { font-weight: 700; color: var(--attente, #92610A); text-decoration: underline; }

/* ── L'en-tête : la date en pavé, le titre, quand, où ── */
.evf-tete { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 26px; align-items: start; margin: 0 0 30px; }
.evf-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 124px; border-radius: 22px;
  background: linear-gradient(160deg, var(--ev-recruteurs, #7E22CE), var(--theme, #C73E9B));
  color: #fff; text-align: center;
}
.evf-date__jour { font-size: 44px; font-weight: 800; line-height: 1; }
.evf-date__mois { margin-top: 6px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.evf-date__an { margin-top: 2px; font-size: 12.5px; font-weight: 600; opacity: .85; }
.evf-tete__txt h1 { margin: 10px 0 10px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; }
.evf-tete__quand { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--ev-recruteurs, #7E22CE); }
.evf-tete__ou { margin: 0; font-size: 15.5px; color: var(--gris); }

.evf-publics { display: flex; flex-wrap: wrap; gap: 8px; }
.evf-public {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--trait);
  background: #fff; font-size: 12.5px; font-weight: 700; color: var(--encre);
}
.evf-public--candidats .ev-onglet__point { background: var(--ev-candidats); }
.evf-public--freelances .ev-onglet__point { background: var(--ev-freelances); }
.evf-public--recruteurs .ev-onglet__point { background: var(--ev-recruteurs); }

/* ── Le corps : le texte à gauche, les infos et la carte à droite ── */
.evf-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.evf-corps { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.evf-bloc { padding: 24px 26px; border: 1px solid var(--trait); border-radius: 18px; background: #fff; }
.evf-bloc h2 { margin: 0 0 12px; font-size: 19px; }
.evf-bloc__sous { margin: -4px 0 16px; font-size: 14px; color: var(--gris); }
.evf-desc { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--encre-douce, #42425A); white-space: pre-line; }

.evf-cote { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.evf-infos { padding: 20px 22px; border: 1px solid var(--trait); border-radius: 18px; background: #fff; }
.evf-infos dl { margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }
.evf-infos dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-clair, #6E6E85); }
.evf-infos dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--encre); }
.evf-infos dd::first-letter { text-transform: uppercase; }
.evf-site { width: 100%; justify-content: center; height: 42px; }
.evf-mini { height: 240px; border-radius: 18px; overflow: hidden; border: 1px solid var(--trait); background: #EEF0F4; z-index: 0; }
.evf-retour { font-size: 14px; font-weight: 600; color: var(--gris); }
.evf-retour:hover { color: var(--theme); }

/* ── Partager : public/css/partage.css (commun aux fiches d'offre). ── */

/* Le titre de la liste mène à la fiche. */
.ev-item__titre a { color: inherit; text-decoration: none; }
.ev-item__titre a:hover { color: var(--theme); text-decoration: underline; }
.ev-tete__actions { margin-top: 16px; }

@media (max-width: 980px) {
  .evf-grille { grid-template-columns: minmax(0, 1fr); }
  .evf-cote { position: static; }
}
@media (max-width: 640px) {
  .evf-tete { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .evf-date { height: 88px; border-radius: 16px; }
  .evf-date__jour { font-size: 32px; }
  .evf-date__mois { font-size: 12.5px; }
  .evf-bloc { padding: 18px; }
}
/* Les tailles de titres imposées sous 767 px par app.css (`!important`). */
@media (max-width: 767px) {
  .evf .evf-tete__txt h1 { font-size: 26px !important; }
  .evf .evf-bloc h2 { font-size: 18px !important; }
}
