* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #F5F5F5;
  color: #1a1a1a;
  padding-bottom: 112px;
}

/* ---- Apparition au défilement ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Reflet qui traverse le bouton ---- */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-18deg);
  animation: ctaShine 3.4s ease-in-out infinite;
}

@keyframes ctaShine {
  0%, 62% { left: -60%; }
  100%    { left: 130%; }
}

/* ---- Zoom léger sur les images ---- */
.promo-banner, .product-image {
  transition: transform 0.45s ease;
}

.promo-banner:hover, .product-image:hover {
  transform: scale(1.025);
}

/* Respecte les réglages d'accessibilité du visiteur */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta-button::after { animation: none; }
  .promo-banner:hover, .product-image:hover { transform: none; }
}

.promo-banner {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
}

.inline-cta-wrapper {
  max-width: 480px;
  margin: 16px auto;
  padding: 0 20px;
}

.scroll-cta-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 20px;
  background: #FFFFFF;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  z-index: 100;
}

.scroll-cta-button {
  animation: ctaPulse 1.6s infinite;
}

.banner {
  background: linear-gradient(90deg, #1B5E20 0%, #C62828 100%);
  padding: 24px 20px;
  text-align: center;
  border-radius: 0 0 16px 16px;
}

.banner h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  color: #FFFFFF;
}

.banner p {
  margin: 0;
  font-size: 14px;
  color: #FDEDEC;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

.product-card {
  text-align: center;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.product-name {
  margin: 14px 0 4px 0;
  font-size: 20px;
  color: #1a1a1a;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px 0;
}

.old-price {
  color: #9e9e9e;
  font-size: 18px;
  font-weight: bold;
  text-decoration: line-through;
  text-decoration-color: #0052D4;
  text-decoration-thickness: 2px;
}

.new-price {
  color: #0052D4;
  font-size: 28px;
  font-weight: bold;
}

.discount-badge {
  background: #0052D4;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  padding: 3px 9px;
}

.gift-badge {
  display: inline-block;
  background: #E3F0FF;
  color: #00429E;
  border: 1px dashed #7FB5FF;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.product-desc {
  color: #555555;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-badges span {
  background: #E3F0FF;
  color: #00429E;
  border: 1px solid #7FB5FF;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: bold;
}

.order-form {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #1a1a1a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #cccccc;
  background: #FAFAFA;
  color: #111111;
  font-size: 15px;
  font-family: inherit;
  resize: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #0052D4;
  background: #FFFFFF;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.variant-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 2px solid #cccccc;
  border-radius: 10px;
  background: #FAFAFA;
  cursor: pointer;
  text-align: center;
}

.variant-option input {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  margin: 0;
}

.variant-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.variant-option span {
  font-size: 12px;
  font-weight: bold;
  color: #1a1a1a;
}

.variant-option:has(input:checked) {
  border-color: #0052D4;
  background: #E3F0FF;
}

.variant-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #777777;
}

.quantity-field {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quantity-field label {
  margin-bottom: 0;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FAFAFA;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 6px 14px;
}

.quantity-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #0052D4;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
}

.quantity-stepper button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.quantity-stepper button#qty-minus {
  background: #9e9e9e;
}

.quantity-stepper span {
  color: #111111;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.summary {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.summary-total {
  border-top: 1px solid #FFE082;
  margin-top: 6px;
  padding-top: 10px;
  font-weight: bold;
  font-size: 18px;
  color: #C62828;
}

.form-error {
  background: #FDECEA;
  border: 1px solid #C62828;
  color: #C62828;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.cta-button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #E85D04 0%, #DD5500 100%);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  animation: ctaPulse 1.6s infinite;
}

.cta-gift {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 3px;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(232,93,4,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(232,93,4,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,93,4,0); }
}

.success-message {
  text-align: center;
  background: #FFFFFF;
  color: #111111;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.success-message h2 {
  margin: 0 0 10px 0;
  color: #00429E;
}
