/* Section "Croissant Gazelle" : deux colonnes, tient sur un écran + animation en fondu */
.home-page .menu-section.gazelle-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: end;
  min-height: 100svh;
  padding-block: clamp(132px, 15vh, 170px) clamp(104px, 16vh, 172px);
  color: #f2e4cf;
  background: #d85311; /* RVB 216/83/17 */
}

.gazelle-section .gazelle-copy {
  max-width: 460px;
  align-self: center;
}
.gazelle-section .kicker {
  color: #f2e4cf;
}
.gazelle-section .gazelle-copy h2 {
  margin: 12px 0 0;
  color: #f2e4cf;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(50px, 6.4vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.gazelle-section .gazelle-intro {
  margin: 24px 0 32px;
  max-width: 420px;
  color: #f2e4cf;
  font-family: var(--font-bree), Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.gazelle-section .gazelle-copy .button {
  color: #8a3a12;
  background: #f2e4cf;
}
.gazelle-section .gazelle-copy .button:hover {
  background: #fff;
}

/* Cadre de l'animation : dimensionné par la hauteur de l'écran */
.gazelle-anim {
  height: min(62vh, 560px);
  aspect-ratio: 1 / 1;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #d85311;
  box-shadow: 0 26px 55px rgba(58, 22, 8, 0.34);
}
.gazelle-anim__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  opacity: 0;
  will-change: opacity;
  animation: gazelleAnimCycle 17.5s linear infinite;
  animation-delay: calc(var(--i) * 3.5s);
}
.gazelle-anim__frame:first-child {
  opacity: 1;
}

@keyframes gazelleAnimCycle {
  0% { opacity: 0; }
  4% { opacity: 1; }
  20% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

/* Bande défilante des parfums, au bas de la section, police d'affichage Bakry */
.gazelle-section .flavor-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: clamp(74px, 13vh, 148px);
  color: #f2e4cf;
  background: transparent;
  white-space: nowrap;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 6vw, 95px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.gazelle-section .flavor-ticker span {
  display: block;
  min-width: max-content;
  animation: flavorTickerScroll 26s linear infinite;
}

@keyframes flavorTickerScroll {
  to { transform: translateX(-100%); }
}

@media (max-width: 900px) {
  .home-page .menu-section.gazelle-section {
    grid-template-columns: 1fr;
    gap: 34px;
    justify-items: center;
    text-align: center;
    min-height: 0;
    padding-block: 118px calc(66px + 18px);
  }
  .gazelle-section .gazelle-copy {
    max-width: 440px;
    margin-inline: auto;
  }
  .gazelle-section .gazelle-intro {
    margin-inline: auto;
  }
  .gazelle-anim {
    height: auto;
    width: min(380px, 84vw);
    margin-inline: auto;
  }
  .gazelle-section .flavor-ticker {
    height: 66px;
    font-size: 28px;
  }
  .gazelle-section .flavor-ticker span {
    animation-duration: 18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gazelle-anim__frame {
    animation: none;
    opacity: 0;
  }
  .gazelle-anim__frame:first-child {
    opacity: 1;
  }
  .gazelle-section .flavor-ticker span {
    animation: none;
  }
}
