/**
 * Safari Events - front
 * Les couleurs viennent du back-office (variables CSS sur chaque bloc).
 */

.sfev[hidden],
.sfev-bar[hidden] { display: none !important; }

/* =========================================================
 * Grande bannière
 * ========================================================= */
.sfev {
  --sfev-bg: #0B0B0B;
  --sfev-text: #F5F2EC;
  --sfev-accent: #C8B68E;
  --sfev-h: 620px;
  --sfev-overlay: .35;
  --sfev-line: rgba(128, 128, 128, .35);
  position: relative;
  display: grid;
  min-height: var(--sfev-h);
  margin: 0 0 40px;
  overflow: hidden;
  background: var(--sfev-bg);
  color: var(--sfev-text);
}

.sfev *,
.sfev *::before,
.sfev *::after { box-sizing: border-box; }

/* Neutralise les couleurs / polices imposées par le thème (p, em, titres…) */
.sfev :where(p, li, h2, h3, em, span, div) { color: inherit; }
.sfev .sfev__title em {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.sfev--sides {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px 48px;
}
.sfev--split_left,
.sfev--split_right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfev--split_right .sfev__media--main { order: 2; }
.sfev--background,
.sfev--text { grid-template-columns: minmax(0, 1fr); }

/* Images */
.sfev__media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: rgba(128, 128, 128, .12);
}
.sfev__media picture,
.sfev__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sfev__media--mobile { display: none; }

.sfev--background .sfev__media--main {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.sfev--background .sfev__media--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--sfev-overlay);
}

/* Contenu */
.sfev__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 24px;
  text-align: center;
}
.sfev--split_left .sfev__content,
.sfev--split_right .sfev__content {
  align-items: flex-start;
  padding: 56px clamp(32px, 6vw, 96px);
  text-align: left;
}

.sfev__eyebrow {
  margin: 0;
  color: var(--sfev-accent);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.sfev__title {
  margin: 0;
  color: inherit;
  font-size: clamp(44px, 7.4vw, 116px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: none;
}
.sfev__title em {
  display: block;
  font-style: italic;
}
.sfev--serif .sfev__title,
.sfev--serif .sfev__unit-num { font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif; }

.sfev__subtitle {
  max-width: 560px;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.5;
  opacity: .88;
}
.sfev__subtitle p { margin: 0; }

/* Compte à rebours */
.sfev__countdown {
  display: flex;
  align-items: center;
}
.sfev__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 22px;
}
.sfev__unit + .sfev__unit { border-left: 1px solid var(--sfev-line); }
.sfev--split_left .sfev__unit:first-child,
.sfev--split_right .sfev__unit:first-child { padding-left: 0; }
.sfev__unit-num {
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sfev__unit-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}

/* Boutons */
.sfev__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 4px;
}
.sfev--split_left .sfev__ctas,
.sfev--split_right .sfev__ctas { justify-content: flex-start; }
.sfev .sfev__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  background: var(--sfev-text);
  color: var(--sfev-bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s ease;
}
.sfev .sfev__btn:hover,
.sfev .sfev__btn:focus { color: var(--sfev-bg); opacity: .85; text-decoration: none; }
.sfev .sfev__link {
  color: inherit;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.sfev .sfev__link:hover { color: var(--sfev-accent); }
.sfev a:focus-visible { outline: 2px solid var(--sfev-accent); outline-offset: 4px; }

/* Marques */
.sfev__brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 14px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--sfev-line);
  list-style: none;
}
.sfev--split_left .sfev__brands,
.sfev--split_right .sfev__brands { justify-content: flex-start; }
.sfev__brands li { display: flex; align-items: center; }
.sfev__brands li + li::before { content: "·"; opacity: .4; }
.sfev .sfev__brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  color: inherit;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.sfev .sfev__brand:hover { color: var(--sfev-accent); opacity: 1; text-decoration: none; }
.sfev__brands--logo li + li::before { content: none; }
.sfev__brand img { display: block; width: auto; max-width: 120px; max-height: 32px; }

.sfev__legal {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  opacity: .65;
}

/* Dernier jour */
.sfev.is-lastday .sfev__eyebrow { font-weight: 500; }

/* Tablette / mobile */
@media (max-width: 991px) {
  /* --sfev-offset : hauteur de l'en-tête transparent du thème (+ barre d'annonce) posé
     par-dessus la bannière quand elle est en haut de page — calculée par front.js. */
  .sfev { min-height: 0; margin-bottom: 28px; }
  section.sfev { padding-top: var(--sfev-offset, 0px); }

  /* Option « pas d'image sur mobile » : texte seul */
  .sfev--no-mobile-img .sfev__media { display: none; }
  .sfev--no-mobile-img.sfev--background { min-height: 0; }
  .sfev--no-mobile-img .sfev__content { padding-top: 36px; padding-bottom: 40px; }
  .sfev--sides,
  .sfev--split_left,
  .sfev--split_right {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }
  .sfev__media--side { display: none; }
  .sfev__media--mobile { display: block; }
  .sfev__media--mobile,
  .sfev--split_left .sfev__media--main,
  .sfev--split_right .sfev__media--main {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .sfev--background { min-height: 520px; }

  .sfev__content,
  .sfev--split_left .sfev__content,
  .sfev--split_right .sfev__content {
    align-items: center;
    gap: 14px;
    padding: 28px 20px 32px;
    text-align: center;
  }
  .sfev--split_left .sfev__brands,
  .sfev--split_right .sfev__brands { justify-content: center; }
  .sfev--split_left .sfev__unit:first-child,
  .sfev--split_right .sfev__unit:first-child { padding-left: 14px; }

  .sfev__eyebrow { font-size: 11px; letter-spacing: .26em; }
  .sfev__unit { padding: 0 14px; }
  .sfev__unit-num { font-size: 28px; }
  .sfev__unit-label { font-size: 10px; }

  .sfev__ctas { align-self: stretch; flex-direction: column; gap: 14px; }
  .sfev .sfev__btn { width: 100%; }

  .sfev__brands { gap: 8px; border-top: 0; padding-top: 4px; }
  .sfev__brands li + li::before { content: none; }
  .sfev .sfev__brand {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--sfev-line);
    font-size: 11px;
    letter-spacing: .16em;
  }
  .sfev__brands--logo .sfev__brand { border: 0; }
}

/* =========================================================
 * Barre d'annonce
 * ========================================================= */
.sfev-bar {
  --sfev-bar-bg: #000;
  --sfev-bar-text: #F5F2EC;
  --sfev-accent: #C8B68E;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  background: var(--sfev-bar-bg);
  color: var(--sfev-bar-text);
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sfev-bar--lastday {
  background: var(--sfev-accent);
  color: var(--sfev-bar-bg);
  font-weight: 500;
}

.sfev-bar__track {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.sfev-bar__msg {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 12px;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.sfev-bar__msg.is-active { opacity: 1; visibility: visible; }
.sfev-bar__msg strong { color: var(--sfev-accent); font-weight: 500; }
.sfev-bar--lastday .sfev-bar__msg strong { color: inherit; }
.sfev-bar a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.sfev-bar a:hover { color: inherit; opacity: .8; }
.sfev-cd { font-variant-numeric: tabular-nums; white-space: nowrap; }

.sfev-bar__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: .6;
  cursor: pointer;
}
.sfev-bar__nav:hover,
.sfev-bar__nav:focus-visible { opacity: 1; }

@media (max-width: 767px) {
  .sfev-bar { font-size: 11px; letter-spacing: .08em; padding: 0 2px; }
  .sfev-bar__nav { width: 32px; }
  .sfev-bar__msg { padding: 6px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .sfev-bar__msg { transition: none; }
}
