/* =========================================================================
   Fiche d'un événement
   -------------------------------------------------------------------------
   Bandeau photo avec voile dégradé, carte d'identité remontée par-dessus,
   contenu à gauche, panneau de réservation collant à droite. Même palette et
   mêmes principes que la fiche logement, pour que le site reste cohérent :
   bleu du logo, marine pour les valeurs, ambre pour l'alerte de disponibilité.

   Chargée par la seule vue events/view.php.
   ========================================================================= */

:root {
  --ev-blue:  var(--yb-blue, #0d65c9);
  --ev-navy:  var(--yb-navy, #0d233e);
  --ev-cyan:  var(--yb-cyan, #29abe2);
  --ev-red:   var(--yb-red, #ce130d);
  --ev-ink:   #101828;
  --ev-body:  #667085;
  --ev-line:  #e7eaf0;
  --ev-page:  #f6f8fb;
}

.evf { background: var(--ev-page); padding-bottom: 70px; }

/* ---------- Bandeau ------------------------------------------------------- */

.evf-hero { position: relative; overflow: hidden; }
.evf-hero__fond {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* Léger agrandissement : le flou de l'arrière-plan ne doit pas laisser voir
     de bord clair sur les côtés. */
  transform: scale(1.04);
}
.evf-hero__voile {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,15,28,.92) 0%, rgba(9,15,28,.70) 46%, rgba(9,15,28,.34) 100%);
}
.evf-hero__in { position: relative; padding: 46px 0 92px; }

.evf-fil { margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,.68); }
.evf-fil a { color: rgba(255,255,255,.88) !important; }

.evf-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.evf-puce {
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px);
}
.evf-puce--alerte { background: rgba(206,19,13,.85); border-color: transparent; }
.evf-puce--ok     { background: rgba(6,118,71,.85); border-color: transparent; }

.evf-titre {
  margin: 0; color: #fff; font-size: 42px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.08; text-shadow: 0 2px 26px rgba(0,0,0,.45);
}
.evf-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; padding: 0; list-style: none;
}
.evf-meta li {
  display: flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.92); font-size: 15px; font-weight: 600;
}
.evf-meta i { font-size: 20px; color: var(--ev-cyan); }

/* ---------- Contenu ------------------------------------------------------- */

/* Remonte sur le bandeau : c'est ce chevauchement qui donne la profondeur. */
.evf-corps { position: relative; z-index: 2; margin-top: -58px; }

.evf-bloc {
  padding: 26px; border-radius: 16px; background: #fff;
  border: 1px solid var(--ev-line); box-shadow: 0 6px 22px rgba(16,24,40,.08);
  margin-bottom: 20px;
}
.evf-bloc__titre { margin: 0 0 16px; font-size: 19px; font-weight: 800; color: var(--ev-ink); }
.evf-texte { margin: 0; font-size: 15px; line-height: 1.68; color: var(--ev-body); }
.evf-alerte {
  margin: 0; padding: 13px 15px; border-radius: 11px;
  background: #fff7ed; color: #b45309; font-size: 14px; font-weight: 600;
}

/* Repères : une grille qui se remplit d'elle-même. */
.evf-reperes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.evf-reperes li {
  display: flex; align-items: center; gap: 12px;
  padding: 15px; border-radius: 12px; background: #f7f9fc;
}
.evf-reperes i { font-size: 22px; color: var(--ev-blue); flex: 0 0 auto; }
.evf-reperes strong { display: block; font-size: 15px; font-weight: 800; color: var(--ev-ink); line-height: 1.25; }
.evf-reperes span { font-size: 12px; color: var(--ev-body); }

/* Jauge de remplissage. */
.evf-jauge__tete {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px;
}
.evf-jauge__tete strong { font-size: 17px; font-weight: 800; color: var(--ev-ink); }
.evf-jauge__tete span { font-size: 13px; color: var(--ev-body); }
.evf-jauge { height: 12px; border-radius: 999px; background: #e6e8f2; overflow: hidden; }
.evf-jauge__barre { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ev-cyan), var(--ev-blue)); }

/* Étiquettes de mots-clés. */
.evf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.evf-tags li {
  padding: 7px 14px; border-radius: 999px; background: #eef4ff;
  font-size: 13px; font-weight: 700; color: var(--ev-navy);
}

/* Sponsors et galerie : même mosaïque que la fiche logement. */
.evf-mosaique { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.evf-mosaique > a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #eef1f6; }
.evf-mosaique img {
  width: 100%; height: 130px; min-height: 0 !important; max-height: none !important;
  object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
.evf-mosaique > a:hover img { transform: scale(1.06); }
.evf-cachee { display: none !important; }
.evf-plus {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,24,40,.52); color: #fff; font-size: 24px; font-weight: 800;
}
/* Les logos de sponsors sont posés sur fond blanc et entiers, pas rognés :
   un logo coupé n'identifie plus personne. */
.evf-sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.evf-sponsors div {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--ev-line);
}
.evf-sponsors img {
  max-width: 100%; max-height: 62px; width: auto; height: auto;
  min-height: 0 !important; max-height: 62px !important; object-fit: contain;
}

/* Organisateur. */
.evf-orga { display: flex; align-items: center; gap: 16px; }
.evf-orga__rond {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ev-blue), var(--ev-navy));
  color: #fff; font-size: 22px; font-weight: 800;
}
.evf-orga__nom { margin: 0; font-size: 17px; font-weight: 800; color: var(--ev-ink); }
.evf-orga__meta { margin: 2px 0 0; font-size: 13px; color: var(--ev-body); }
.evf-orga__liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.evf-orga__liens a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px; background: #f2f4f7;
  font-size: 13px; font-weight: 700; color: var(--ev-ink) !important;
}
.evf-orga__liens a:hover { background: #e6ecf7; color: var(--ev-blue) !important; }

/* ---------- Panneau de réservation --------------------------------------- */

.evf-reserv {
  position: sticky; top: 18px;
  padding: 22px; border-radius: 16px; background: #fff;
  border: 1px solid var(--ev-line); box-shadow: 0 12px 32px rgba(16,24,40,.12);
}
.evf-reserv__prix { margin: 0 0 3px; }
.evf-reserv__prix strong { font-size: 32px; font-weight: 800; color: var(--ev-blue); }
.evf-reserv__prix span { font-size: 14px; color: var(--ev-body); margin-left: 5px; }
.evf-reserv__note { margin: 0 0 18px; font-size: 13px; color: var(--ev-body); }

.evf-champ { margin-bottom: 13px; }
.evf-champ > label {
  display: block; margin: 0 0 5px; font-size: 11.5px; font-weight: 700; color: var(--ev-body);
}
.evf-champ input, .evf-champ select {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--ev-line); border-radius: 11px; background: #fff;
  font-size: 14.5px; color: var(--ev-ink); outline: none;
}
.evf-champ input:focus, .evf-champ select:focus { border-color: var(--ev-blue); }

.evf-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 16px 0 14px; padding: 14px 16px; border-radius: 12px; background: #f7f9fc;
}
.evf-total span { font-size: 13.5px; color: var(--ev-body); }
.evf-total strong { font-size: 21px; font-weight: 800; color: var(--ev-ink); }

.evf-btn {
  width: 100%; border: 0; border-radius: 12px;
  background: var(--ev-blue); color: #fff; font-size: 15.5px; font-weight: 700;
  padding: 15px 20px; cursor: pointer;
  box-shadow: 0 5px 16px rgba(37,99,235,.30);
}
.evf-btn:disabled { background: #cbd5e6; box-shadow: none; cursor: not-allowed; }
.evf-partage {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 12px;
  border: 1px solid var(--ev-line); border-radius: 12px; background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--ev-body); cursor: pointer;
}

@media (max-width: 991.98px) {
  .evf-reserv { position: static; margin-top: 20px; }
  .evf-titre { font-size: 30px; }
  .evf-hero__in { padding: 34px 0 80px; }
}
