/* Réinitialise la marge/padding de base du navigateur */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('https://applimonin.lmlccommunication.fr/wp-content/uploads/2025/06/NV-BACKGROUND-JUNGLE-scaled.png') center center / cover no-repeat fixed !important;
}

/* Eviter les glitchs avec background-attachment: fixed sur mobile/tablette */
@media (max-width: 1024px), (orientation: portrait) {
  body { background-attachment: scroll !important; }
}

/* Wrappers principaux : occupation hauteur totale */
#spa-container,
#parcours-container {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Zone questionnaire : centrage et largeur max */
#atom-questionnaire {
  width: 100%;
  max-width: 1500px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 5%;
}

/* Steps spécifiques : on remplace les translateY par du padding vertical */
#step2-cocktail,
#step3-cocktail,
#step4-cocktail {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100dvh;
  width: 100vw;
  transform: none !important;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

@supports not (height: 100dvh) {
  #step2-cocktail,
  #step3-cocktail,
  #step4-cocktail {
    min-height: calc(var(--vh, 1vh) * 100);
  }
}

/* Chaque étape occupe tout l'espace disponible et centre le contenu */
.step {
  width: 100vw;
  min-height: 100dvh;
  display: none; /* Masqué par défaut, step active en JS */
  display: flex; /* Flex via JS pour l'étape active (garde compat) */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@supports not (height: 100dvh) {
  .step {
    min-height: calc(var(--vh, 1vh) * 100);
  }
}

/* Style de base pour les titres */
.step h1 {
  margin-bottom: 0 !important;
  font-size: 2em;
}

/* Styles pour le contenu textuel */
.step p {
  font-size: 2.2em !important;
  line-height: 1.6;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 800;
}

/* Bouton "next" */
.btn-next {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 20px;
  font-size: 1.1em;
  font-weight: bold;
  background-color: #223222;
  color: #fff;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-next:hover {
  background-color: #22322299;
  transform: scale(1.05);
}

/* delivery front recipe */
/* Conteneur principal */
#cocktail-proposition {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: auto;
  padding: 20px;
  margin-top: 1%;
}

/* Structure interne : 2 colonnes */
.recette-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
}

.recipe-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  width: auto;
  gap: 48px;
  margin: 0 auto;
}

/* Colonne gauche (image) */
.recipe-left {
  flex: 1 1 40%;
  max-width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.recipe-left img {
  width: auto;
  max-height: 444px;
  min-height: 444px;
  border-radius: 1px;
  border: 15px solid #fff;
  box-shadow: 15px 15px 10px -7px black;
  background: #ffffff;
}

/* Colonne droite (contenu texte) */
.recipe-right {
  flex: 1 1 60%;
  max-width: 60%;
  text-align: left;
  font-size: 1em !important; /* corrigé */
  line-height: 1.5 !important;
  max-height: min(520px, calc(100vh - 260px));
  overflow-y: auto;
  padding-right: 16px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 50, 34, 0.45) transparent;
  scrollbar-gutter: stable both-edges;
}

#cocktail-proposition .asc-recette-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}

#step3-cocktail #btn-open-form {
  background: #223222;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#step3-cocktail #btn-open-form:hover,
#step3-cocktail #btn-open-form:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 50, 34, 0.24);
}

#cocktail-proposition .recipe-right::before,
#cocktail-proposition .recipe-right::after {
  content: '';
  position: absolute;
  right: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

#cocktail-proposition .recipe-right::before {
  top: 12px;
  width: 4px;
  height: calc(100% - 24px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34, 50, 34, 0.25), rgba(34, 50, 34, 0));
}

#cocktail-proposition .recipe-right::after {
  bottom: -28px;
  right: auto;
  left: 50%;
  width: auto;
  height: auto;
  border: none;
  transform: translateX(-50%);
  font-size: 20px;
  color: #223222;
  font-family: 'Raleway', sans-serif;
  line-height: 1;
  pointer-events: none;
  content: '\2193';
}

#cocktail-proposition .recipe-right[data-overflow="true"]::before {
  opacity: 0.35;
}

#cocktail-proposition .recipe-right[data-overflow="true"]::after {
  opacity: 0.8;
}

#cocktail-proposition .recipe-right[data-scrolled="true"]::after,
#cocktail-proposition .recipe-right[data-scrolled="true"]::before,
#cocktail-proposition .recipe-right[data-overflow="false"]::after,
#cocktail-proposition .recipe-right[data-overflow="false"]::before {
  opacity: 0;
}

#cocktail-proposition .recipe-right::-webkit-scrollbar {
  width: 8px;
}

#cocktail-proposition .recipe-right::-webkit-scrollbar-track {
  background: rgba(34, 50, 34, 0.14);
  border-radius: 999px;
}

#cocktail-proposition .recipe-right::-webkit-scrollbar-thumb {
  background: rgba(34, 50, 34, 0.5);
  border-radius: 999px;
}

#cocktail-proposition .recipe-right::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 50, 34, 0.62);
}

.recette-bottom-row {
  display: flex;
  gap: 0;
  margin-top: 16px;
  width: 80%;
}

.recipe-right p {
  font-size: 16px !important;
  font-weight: 400;
  font-family: 'Raleway', Arial, sans-serif;
}

h2 {
  font-size: 45px !important;
  font-weight: 400;
  margin-bottom: 10px;
  text-align: left;
  font-family: 'BirthstoneCustom', cursive;
}

h3 {
  color: #223222;
  line-height: 1.5;
  font-size: 20px !important;
  font-weight: 800;
  font-family: 'Raleway', Arial, sans-serif;
}

ul.preparation-list {
  line-height: normal;
  list-style: decimal;
  color: #222322;
  font-size: 16px;
  font-family: 'Raleway', Arial, sans-serif;
}

.preparation-list li {
  font-weight: 100;
  line-height: 1.5;
  font-family: 'Raleway', Arial, sans-serif;
}

.recette-title {
  font-size: 50px !important;
  font-weight: 400 !important;
  margin-bottom: 10px;
  text-align: left;
  font-family: 'BirthstoneCustom', cursive;
}

.recipe-content {
  font-size: 1em;
  line-height: 1.5;
}

.recipe-content h3 {
  color: #223222;
  line-height: 1.5;
  font-size: 20px !important;
  font-weight: 800;
  font-family: 'Raleway', Arial, sans-serif;
}

.ingredients-list {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.ingredients-list li {
  margin-bottom: 0.3em;
  font-size: 18px;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 600;
  color: #223222;
  list-style-type: disc;
  text-align: left;
}

/* succès message final */
#asc-pdf-feedback.success-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,40,40,0.73);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#asc-pdf-feedback .success-message-content {
  background: #fff;
  padding: 40px 60px;
  border-radius: 24px;
  box-shadow: 0 10px 60px 0 rgba(0,0,0,0.15);
  text-align: center;
  font-size: 2.6rem;
  color: #223222;
  font-family: 'BirthstoneCustom', cursive;
  line-height: 1.2;
}

/* section header */
/* Colonne gauche : emplacement vide */
.header-left-blank  {
  min-width: 170px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 90px;
  pointer-events: auto;
  z-index: 20;
}

/* google Gtranslate */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc  {
  display: none !important;
}

/* Responsive : tout en colonne sur mobile */
@media (max-width: 768px) {
  .recipe-container {
    flex-direction: column;
    text-align: center;
  }
  .recipe-left, .recipe-right {
    max-width: 100%;
  }
  #cocktail-proposition .recipe-right {
    max-height: min(360px, calc(100vh - 260px));
    padding-right: 12px;
  }
  #cocktail-proposition .recipe-right::before {
    right: 4px;
  }
  #cocktail-proposition .recipe-right::after {
    right: 10px;
  }
  #cocktail-proposition .asc-recette-actions {
    justify-content: center;
  }
}

/* ================================================== */
/* === PATCH FINAL : Viewport & images adaptatives === */
/* ================================================== */

html, body { overflow-x: hidden; }

#step3-cocktail {
  /* déjà couverts par le bloc commun step2/3/4 */
}

.recette-bottom-row {
  width: 100% !important;
}

.recipe-left img {
  max-width: 100%;
  height: auto;
  min-height: unset;
  max-height: 444px;
}
