/* SOS HOME V2 — HERO premium (partagé accueil + séjours) */

/* ── HERO premium (scopé #h26Hero) ───────────────────────── */
#h26Hero.h26-hero {
  --h26-hero-bg-image: url("https://www.sospetanque.fr/wp-content/uploads/2026/06/jugar-petanca-maresme-a4d35961d1ebabcc65644d0136d77ab3-52b4cdacfb6d3a0cdc36886f52fe508b.webp");
  --f: #e91e63;
  --k: #111111;
  --w: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--w);
  box-sizing: border-box;
}

#h26Hero.h26-hero *,
#h26Hero.h26-hero *::before,
#h26Hero.h26-hero *::after { box-sizing: border-box; }

#h26Hero .h26-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#h26Hero .h26-hero__bg {
  position: absolute;
  inset: -6%;
  background:
    var(--h26-hero-bg-image)
    center / cover no-repeat;
  background-color: #111111;
  filter: brightness(1.15) saturate(1.05) contrast(1.05);
  transform: scale(1);
  will-change: transform;
}

#h26Hero.is-loaded .h26-hero__bg {
  animation: h26HeroZoom 28s ease-in-out infinite alternate;
}

@keyframes h26HeroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

#h26Hero .h26-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(233, 30, 99, 0.16), transparent 55%),
    rgba(0, 0, 0, 0.35);
}

#h26Hero .h26-hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: min(100% - 2.5rem, 920px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#h26Hero .h26-hero__brand-logo:empty {
  display: none;
}

#h26Hero .h26-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Logo admin : à gauche, ~2× plus grand ; texte décalé à droite */
#h26Hero.h26-hero--with-logo .h26-hero__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 40px;
  padding-right: clamp(1rem, 3vw, 2.5rem);
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 0;
}

#h26Hero.h26-hero--with-logo .h26-hero__brand-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  align-self: flex-start;
}

#h26Hero.h26-hero--with-logo .h26-hero__brand-logo img {
  display: block;
  width: 290px;
  max-width: 290px;
  height: auto;
  object-fit: contain;
}

#h26Hero.h26-hero--with-logo .h26-hero__copy {
  align-items: flex-start;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin-left: 228px;
  margin-top: 0;
}

#h26Hero.h26-hero--with-logo .h26-hero__cta {
  justify-content: flex-start;
}

#h26Hero .h26-hero__eyebrow {
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

#h26Hero .h26-hero__title {
  margin: 0 0 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 9.5vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 8px 48px rgba(0, 0, 0, 0.28);
}

#h26Hero .h26-hero__title span {
  display: block;
  color: #fff;
}

#h26Hero .h26-hero__title em {
  display: block;
  font-style: normal;
  color: var(--f);
}

#h26Hero .h26-hero__subtitle {
  margin: 0 0 2.5rem;
  max-width: 560px;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
}

#h26Hero .h26-hero__cta {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

#h26Hero .h26-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  height: 60px;
  min-height: 60px;
  padding: 0 2.4rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    color 0.45s var(--ease);
}

#h26Hero .h26-hero__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#h26Hero .h26-hero__btn--primary {
  background: var(--f);
  border-color: var(--f);
  color: #fff;
  box-shadow: 0 14px 34px rgba(233, 30, 99, 0.28), 0 0 28px rgba(233, 30, 99, 0.25);
}

#h26Hero .h26-hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(233, 30, 99, 0.42), 0 0 36px rgba(233, 30, 99, 0.35);
  background: #c2185b;
  border-color: #c2185b;
  color: #fff;
}

#h26Hero .h26-hero__btn--glass {
  background: rgba(17, 17, 17, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#h26Hero .h26-hero__btn--glass:hover {
  background: rgba(17, 17, 17, 0.9);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52);
  color: #fff;
}

/* Stats — dans le flux, sous les boutons (jamais par-dessus) */
#h26Hero .h26-hero__stats {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  margin-top: calc(clamp(2.75rem, 5.5vh, 3.75rem) + 25px);
  padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 3vh, 2rem);
}

#h26Hero .h26-hero__stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.7rem, 3.4vw, 2.25rem) clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

#h26Hero .h26-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.35rem;
  text-align: center;
  position: relative;
}

#h26Hero .h26-hero__stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: rgba(17, 17, 17, 0.1);
}

#h26Hero .h26-hero__stat-icon {
  width: 41px;
  height: 41px;
  color: var(--f);
  margin-bottom: 0.15rem;
}

#h26Hero .h26-hero__stat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#h26Hero .h26-hero__stat-value {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.36rem, 4.56vw, 3.58rem);
  font-weight: 600;
  line-height: 1;
  color: var(--f);
}

#h26Hero .h26-hero__stat-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

/* Animations d'entrée */
#h26Hero .h26-hero__anim {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

#h26Hero.is-loaded .h26-hero__anim--eyebrow {
  animation: h26FadeUp 1s var(--ease) forwards;
  animation-delay: 0.15s;
}

#h26Hero.is-loaded .h26-hero__anim--title {
  animation: h26TitleUp 1.15s var(--ease) forwards;
  animation-delay: 0.32s;
}

#h26Hero.is-loaded .h26-hero__anim--subtitle {
  animation: h26FadeUp 1s var(--ease) forwards;
  animation-delay: 0.55s;
}

#h26Hero.is-loaded .h26-hero__anim--cta {
  animation: h26FadeUp 1s var(--ease) forwards;
  animation-delay: 0.75s;
}

#h26Hero.is-loaded .h26-hero__anim--stats {
  animation: h26StatsUp 1.2s var(--ease) forwards;
  animation-delay: 0.95s;
}

@keyframes h26FadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes h26TitleUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes h26StatsUp {
  from { opacity: 0; transform: translate3d(0, 48px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Responsive */
@media (max-width: 900px) {
  #h26Hero .h26-hero__stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 0.5rem;
    border-radius: 20px;
  }

  #h26Hero .h26-hero__stat:not(:last-child)::after { display: none; }

  #h26Hero .h26-hero__stats {
    margin-top: clamp(2.75rem, 5.5vh, 3.75rem);
  }
}

@media (max-width: 680px) {
  #h26Hero.h26-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  #h26Hero.h26-hero--with-logo .h26-hero__content {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
  }

  #h26Hero.h26-hero--with-logo .h26-hero__brand-logo img {
    width: min(175px, 70vw);
    max-width: min(175px, 70vw);
  }

  #h26Hero.h26-hero--with-logo .h26-hero__copy {
    margin-left: 0;
    margin-top: 1rem;
  }

  #h26Hero .h26-hero__title {
    font-size: clamp(2.55rem, 13vw, 3.4rem);
  }

  #h26Hero .h26-hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  #h26Hero .h26-hero__btn {
    width: 100%;
    min-width: 0;
  }

  #h26Hero .h26-hero__stats-card {
    padding: 1rem 0.65rem;
  }

  #h26Hero .h26-hero__stat-value {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  #h26Hero .h26-hero__stat-label {
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #h26Hero .h26-hero__anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  #h26Hero.is-loaded .h26-hero__bg {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════