/* ===== Sit 'n Dip — Hero section v2 (diaporama + animations) ===== */
.shero { position: absolute; inset: 0; overflow: hidden; }
.shero-slides, .shero-slide { position: absolute; inset: 0; }
.shero-slide { opacity: 0; z-index: 1; }
.shero-slide.active { opacity: 1; z-index: 1; }
.shero-slide.enter { z-index: 2; }
.shero-slide img, .shero-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shero-slide.solid { background: linear-gradient(135deg, var(--sf-hero-solid-a, #7d0d0d), var(--sf-hero-solid-b, #3a0a0a)); }
.shero-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%); }

/* Grille de position 3x3 : chaque élément choisit sa case. */
.shero-grid { position: absolute; inset: 0; z-index: 4; display: grid;
  grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
  padding: 18px 16px; pointer-events: none; }
.shero-cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shero-cell[data-pos^="left"] { align-items: flex-start; text-align: left; }
.shero-cell[data-pos^="center"] { align-items: center; text-align: center; }
.shero-cell[data-pos^="right"] { align-items: flex-end; text-align: right; }
.shero-cell[data-pos$="top"] { justify-content: flex-start; }
.shero-cell[data-pos$="center"] { justify-content: center; }
.shero-cell[data-pos$="bottom"] { justify-content: flex-end; }

.shero-el { pointer-events: auto; max-width: 100%; }
/* Bloc texte : titre + sous-titre empilés, jamais chevauchés. */
.shero-text { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.shero-title { margin: 0; color: #fff; font-family: var(--sf-font);
  font-size: clamp(calc(24px * var(--sf-fs, 1)), 7vw, calc(34px * var(--sf-fs, 1))); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.shero-sub { margin: 0; color: #fff; font-size: clamp(calc(13px * var(--sf-fs, 1)), 3.8vw, calc(16px * var(--sf-fs, 1))); opacity: 0.93;
  text-shadow: 0 1px 5px rgba(0,0,0,0.45); }
.shero-btns { display: flex; gap: 10px; flex-wrap: nowrap; flex-direction: row !important; align-items: center; }
/* Disposition « empilés » désactivée : les boutons restent toujours sur la même ligne. */
.shero-btns.stacked { flex-direction: row !important; align-items: center; }
.shero-cell[data-pos^="left"] .shero-btns.stacked { align-items: flex-start; }
.shero-cell[data-pos^="center"] .shero-btns.stacked { align-items: center; }
.shero-cell[data-pos^="right"] .shero-btns.stacked { align-items: flex-end; }
.shero-cell[data-pos^="left"] .shero-btns { justify-content: flex-start; }
.shero-cell[data-pos^="center"] .shero-btns { justify-content: center; }
.shero-cell[data-pos^="right"] .shero-btns { justify-content: flex-end; }
.shero-btn { pointer-events: auto; border: 0; cursor: pointer;
  font-size: calc(15px * var(--sf-fs, 1)); font-weight: 600; padding: 12px 22px; border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease; min-height: 44px;
  white-space: nowrap; flex-shrink: 1; min-width: 0; }
@media (max-width: 380px) {
  .shero-btn { padding: 12px 16px; font-size: calc(14px * var(--sf-fs, 1)); }
}
.shero-btn:active { transform: scale(0.96); }
.shero-btn.filled { background: var(--sf-primary, #7d0d0d); color: #fff; }
.shero-btn.outline { background: rgba(0,0,0,0.25); color: #fff; border: 2px solid #fff; }

/* Pastilles de navigation. */
.shero-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 10px;
  display: flex; gap: 8px; justify-content: center; pointer-events: auto; }
.shero-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.45); transition: transform 0.2s ease, background 0.2s ease; }
.shero-dot.on { background: #fff; transform: scale(1.25); }

/* ---------- Transitions de diapositives (12) ---------- */
.shero-slide.enter { animation-duration: var(--shero-tms, 900ms); animation-timing-function: ease; animation-fill-mode: both; }
.shero-slide.enter-fade { animation-name: shero-t-fade; }
.shero-slide.enter-slide-left { animation-name: shero-t-slide-left; }
.shero-slide.enter-slide-right { animation-name: shero-t-slide-right; }
.shero-slide.enter-slide-up { animation-name: shero-t-slide-up; }
.shero-slide.enter-zoom-in { animation-name: shero-t-zoom-in; }
.shero-slide.enter-zoom-out { animation-name: shero-t-zoom-out; }
.shero-slide.enter-blur { animation-name: shero-t-blur; }
.shero-slide.enter-wipe { animation-name: shero-t-wipe; animation-timing-function: cubic-bezier(0.6, 0, 0.3, 1); }
.shero-slide.enter-rotate { animation-name: shero-t-rotate; }
.shero-slide.enter-flip { animation-name: shero-t-flip; }
.shero-slide.enter-circle { animation-name: shero-t-circle; animation-timing-function: cubic-bezier(0.6, 0, 0.3, 1); }
@keyframes shero-t-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shero-t-slide-left { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: none; } }
@keyframes shero-t-slide-right { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: none; } }
@keyframes shero-t-slide-up { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes shero-t-zoom-in { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }
@keyframes shero-t-zoom-out { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
@keyframes shero-t-blur { from { opacity: 0; filter: blur(22px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes shero-t-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shero-t-rotate { from { opacity: 0; transform: scale(1.18) rotate(5deg); } to { opacity: 1; transform: none; } }
@keyframes shero-t-flip { from { opacity: 0; transform: perspective(900px) rotateY(70deg) scale(0.94); } to { opacity: 1; transform: perspective(900px) rotateY(0); } }
@keyframes shero-t-circle { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(142% at 50% 50%); } }
/* Ken Burns : fondu + zoom lent continu sur le média actif. */
.shero-slide.enter-kenburns { animation-name: shero-t-fade; }
.shero-slide.kb img, .shero-slide.kb video { animation: shero-kb 14s linear forwards; }
@keyframes shero-kb { from { transform: scale(1); } to { transform: scale(1.14); } }

/* ---------- Animations d'apparition du contenu (10) ---------- */
.shero-play .shero-el { animation-duration: var(--shero-ams, 800ms); animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 0.8, 0.3, 1); }
.shero-play .shero-el.anim-fade-up { animation-name: shero-a-fade-up; }
.shero-play .shero-el.anim-fade-down { animation-name: shero-a-fade-down; }
.shero-play .shero-el.anim-fade-left { animation-name: shero-a-fade-left; }
.shero-play .shero-el.anim-fade-right { animation-name: shero-a-fade-right; }
.shero-play .shero-el.anim-zoom { animation-name: shero-a-zoom; }
.shero-play .shero-el.anim-blur-in { animation-name: shero-a-blur-in; }
.shero-play .shero-el.anim-clip { animation-name: shero-a-clip; }
.shero-play .shero-el.anim-rise { animation-name: shero-a-rise; animation-timing-function: cubic-bezier(0.3, 1.4, 0.5, 1); }
.shero-el .ch { display: inline-block; }
.shero-play .shero-el.anim-letters .ch { animation: shero-a-fade-up var(--shero-ams, 800ms) cubic-bezier(0.22, 0.8, 0.3, 1) both; }
@keyframes shero-a-fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes shero-a-fade-down { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@keyframes shero-a-fade-left { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes shero-a-fade-right { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes shero-a-zoom { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
@keyframes shero-a-blur-in { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }
@keyframes shero-a-clip { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(14px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes shero-a-rise { from { opacity: 0; transform: translateY(46px) scale(0.95); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .shero-slide.enter, .shero-play .shero-el, .shero-slide.kb img, .shero-slide.kb video { animation: none !important; }
  .shero-slide { transition: none !important; }
}
