/* 
========================================
consignes page styles
========================================
*/
.consignes-title {
  position: relative;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--title-color);
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  text-align: center;
}

/* hero title stays on one line (fluid size on small screens) */
h1[data-i18n="consignes_title"] {
  white-space: nowrap;
  font-size: clamp(1rem, 4.6vw, 2.5rem);
}

.consignes-subtitle {
  font-size: 1.25rem;
  color: var(--title-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.consignes-text {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.consignes-text.italic {
  font-style: italic;
  margin-bottom: 0;
}

.consignes-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.consignes-list.compact {
  gap: 0.75rem;
}
.consignes-list.no-margin {
  margin-bottom: 0;
}

.consignes-list-item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.75;
}
ul.consignes-list > li.consignes-list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--color-action);
  font-size: 1.2rem;
  line-height: 1;
}

.consignes-image {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25d366;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.whatsapp-btn:hover {
  background-color: #20ba59;
  box-shadow: none !important;
  transform: none !important;
}

.whatsapp-btn.large {
  padding: 0.85rem 1.75rem;
}

/* compact white/blue variant used next to step titles */
.whatsapp-btn.whatsapp-btn-small {
  background-color: #fff;
  color: var(--title-color);
  border: 1.5px solid var(--color-action);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.whatsapp-btn.whatsapp-btn-small:hover {
  background-color: #f0f9ff;
}

/* 
========================================
banner & qr code styles
========================================
*/
.top-banner {
  margin-top: 1.5rem;
  background-color: #f0fdf4;
  border-bottom: 1px solid rgba(37, 211, 102, 0.2);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #166534;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.top-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.top-banner-link {
  color: #15803d;
  text-decoration: underline;
  font-weight: 600;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto 0.5rem auto;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.qr-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  max-width: 240px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.qr-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  height: 100%;
}

.qr-placeholder-svg {
  margin-bottom: 0.5rem;
  color: #25d366;
}

.qr-placeholder-title {
  font-weight: 500;
  color: #334155;
}

.qr-placeholder-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* 
========================================
layout utilities for consignes
========================================
*/
.hero-header {
  padding-top: 0;
}

.consignes-subtitle-large {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.consignes-list-decimal {
  list-style-type: decimal;
}

.consignes-item-no-pl {
  padding-left: 0;
}

.consignes-mb-block {
  margin-bottom: 2.5rem;
}

.consignes-max-w-960 {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.consignes-gap-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.consignes-phone-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: #4b5563;
}

.consignes-link {
  color: var(--color-action);
  text-decoration: underline;
  font-weight: 600;
}

.center-flex-mb {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.center-flex-my {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.center-flex-mt {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/*
========================================
flyer Ingesta 24h - 7 steps (HTML version of ingesta_flyerA5_finale.png)
========================================
*/
.flyer-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.flyer-step {
  margin: 0;
  padding: 0;
}

.flyer-step-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  row-gap: 0.5rem;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.flyer-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  /* optically center the 32px circle on the first line of the title
     (1.15rem × 1.4 = 1.61rem line box → (1.61 − 2)/2 ≈ −0.2rem,
     +0.06rem optical tweak for Poppins caps) */
  margin-top: -0.14rem;
  border-radius: 50%;
  background: var(--color-action);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding-top: 0.08em;
}

.flyer-step-header h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
  text-wrap: balance;
}

.flyer-step-header h3 .flyer-underline {
  text-decoration: underline;
  text-decoration-color: var(--color-action);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
  padding-bottom: 2px;
}

.flyer-step-body {
  margin: 0 0 0 2.75rem;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.7;
}
.flyer-step-body p {
  margin: 0 0 0.5rem;
}
.flyer-step-body p:last-child {
  margin-bottom: 0;
}
.flyer-step-body strong {
  color: #334155;
  font-weight: 600;
}
.flyer-step-body em {
  color: #475569;
}

.flyer-link {
  color: var(--color-action);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* "Lien à ouvrir sur votre téléphone :" stays on its own line,
   URL always starts on the next line (mobile + desktop) */
.flyer-url-hint {
  display: block;
  margin-bottom: 0.15rem;
}
.flyer-url-hint + .flyer-link {
  display: inline-block;
  margin-top: 0.1rem;
}

.flyer-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .flyer-step-body {
    margin-left: 0;
  }
  .flyer-step-header h3 {
    font-size: 1.05rem;
  }
  /* smaller title line box (1.05rem × 1.4 = 1.47rem) → recenter circle */
  .flyer-num {
    margin-top: -0.2rem;
  }
}

/*
========================================
steps + side images (1.png on top, 2.png below, hard right)
========================================
*/
.steps-with-side {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.steps-col {
  flex: 1 1 auto;
  min-width: 0;
}

.steps-col .flyer-steps {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.flow-side-imgs {
  flex: 0 0 230px;
  margin-left: auto;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 90px;
}

.flow-side-imgs figure {
  margin: 0;
  padding: 0;
}

.flow-side-imgs img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.flow-side-imgs .whatsapp-btn {
  align-self: center;
  white-space: nowrap;
}

/*
crossfade stage: 2.png and 3.png alternate in one spot
*/
.fade-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 1350;
  margin: 0;
  padding: 0;
}

.fade-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.fade-stage .fade-img-a {
  animation-name: flowFadeA;
}

.fade-stage .fade-img-b {
  animation-name: flowFadeB;
}

@keyframes flowFadeA {
  0% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  90% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes flowFadeB {
  0% { opacity: 0; }
  40% { opacity: 0; }
  50% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 760px) {
  .steps-with-side {
    flex-direction: column;
  }
  .steps-col {
    width: 100%;
  }
  .flow-side-imgs {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: static;
  }
}

/* 
========================================
bouncing scroll button
========================================
*/
@keyframes arrow-bounce {
  0%, 100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

.bouncing-arrow {
  animation: arrow-bounce 1.5s infinite ease-in-out;
}

#scroll-down-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: none !important;
  border: 1px solid rgba(10, 103, 167, 0.2);
  transition: opacity 0.4s ease, background-color 0.2s ease;
  opacity: 1;
}

#scroll-down-btn:hover {
  background-color: #f0f9ff !important;
  box-shadow: none !important;
  transform: none !important;
}

#scroll-down-btn.btn-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) translateY(10px);
}