/* Page précommande */

.euno-preorder-layout
{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

/* évite que le carrousel ou le formulaire débordent de leur colonne */
.euno-preorder-layout > *,
.euno-preorder-form,
.euno-preorder-form .euno-form-grid > div
{
  min-width: 0;
  max-width: 100%;
}

.euno-preorder-gallery,
.euno-preorder-card
{
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}


/* Carrousel produit */

.euno-preorder-gallery
{
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  background: var(--color-cream-warm);
}

.euno-product-carousel
{
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.euno-product-carousel img
{
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.euno-product-carousel img.is-active
{
  opacity: 1;
}

.euno-carousel-arrow
{
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  transform: translateY(-50%);
  cursor: pointer;
}

.euno-carousel-arrow.is-prev
{
  left: 10px;
}

.euno-carousel-arrow.is-next
{
  right: 10px;
}

.euno-carousel-arrow svg
{
  width: 18px;
  height: 18px;
}

.euno-thumbs
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.euno-thumbs button
{
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.18s;
}

.euno-thumbs button.is-active
{
  border-color: var(--color-fuchsia);
}

.euno-thumbs img
{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Notes sous le carrousel */

.euno-preorder-notes
{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.euno-preorder-note
{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.euno-preorder-note .euno-icon
{
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.euno-preorder-note p
{
  margin: 0;
  font-size: 18px;
  color: var(--color-text-muted);
}


/* Formulaire */

.euno-preorder-card
{
  padding: 40px;
}

.euno-preorder-form .euno-form-title
{
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
}

.euno-preorder-form .euno-form-intro
{
  margin-bottom: 36px;
  font-size: 20px;
  line-height: 1.35;
}

.euno-preorder-form label
{
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.euno-preorder-form .euno-label-hint
{
  font-weight: 400;
  color: var(--color-text-muted);
}

.euno-preorder-form input[type="text"],
.euno-preorder-form input[type="email"],
.euno-preorder-form select
{
  min-height: 60px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 20px;
  line-height: 1.3;
}

.euno-preorder-form select
{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 56px;
  border: 1.5px solid var(--color-border) !important;
  overflow: hidden;
  background-color: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 24px;
  background-clip: padding-box;
  cursor: pointer;
}

.euno-preorder-form select::-ms-expand
{
  display: none;
}

.euno-preorder-form .euno-form-grid
{
  column-gap: 28px;
  row-gap: 32px;
  margin-bottom: 32px;
}

.euno-preorder-form .euno-preorder-options
{
  margin-bottom: 20px;
}

.euno-preorder-form .euno-form-group,
.euno-preorder-form .euno-rgpd-field
{
  margin-bottom: 32px;
}

.euno-preorder-form .euno-form-group > label,
.euno-preorder-form .euno-rgpd-field .euno-rgpd
{
  margin-bottom: 16px;
}


/* Âge des enfants */

.euno-chips
{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.euno-preorder-form .euno-chip
{
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  min-height: 58px;
  margin: 0;
  padding: 12px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-cream);
  font-size: 18px;
  color: var(--color-text);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
}

.euno-preorder-form .euno-chip:has(input:checked)
{
  border-color: var(--color-fuchsia);
}

.euno-chip input[type="checkbox"]
{
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-cream);
  appearance: none;
}

.euno-chip input[type="checkbox"]:checked
{
  border-color: var(--color-fuchsia);
  box-shadow: inset 0 0 0 7px var(--color-cream);
  background: var(--color-fuchsia);
}


/* Couleurs */

.euno-color-dots
{
  display: flex;
  gap: 12px;
}

.euno-color-dot
{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 4px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #F4EDE4;
  cursor: pointer;
  transition: transform 0.18s;
}

.euno-color-dot[data-color="creme"]
{
  background: var(--color-cream-dark);
}

.euno-color-dot[data-color="rose"]
{
  background: var(--color-fuchsia);
}

.euno-color-dot[data-color="lavande"]
{
  background: var(--color-lavender);
}

.euno-color-dot[data-color="orange"]
{
  background: var(--color-orange);
}

.euno-color-dot svg
{
  width: 24px;
  height: 24px;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.15s;
}

.euno-color-dot[data-color="creme"] svg
{
  color: var(--color-text-dark);
}

.euno-color-dot.is-active svg
{
  opacity: 1;
}


/* Tailles */

.euno-sizes
{
  display: flex;
  gap: 8px;
}

.euno-size-btn
{
  flex: 1;
  min-height: 60px;
  padding: 10px 0;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-white);
  font: 500 20px var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.18s;
}

.euno-size-btn.is-active
{
  border-color: var(--color-fuchsia);
  background: var(--color-fuchsia);
  color: var(--color-white);
}


/* FAQ */

.euno-faq
{
  padding-top: 20px;
  padding-bottom: 96px;
}

.euno-faq .euno-faq-title
{
  margin-bottom: 36px;
  font-size: clamp(20px, 1.25rem + ((1vw - 3.2px) * 1.25), 32px);
}

.euno-faq details
{
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.euno-faq summary
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  cursor: pointer;
}

.euno-faq summary::-webkit-details-marker
{
  display: none;
}

/* chevron */
.euno-faq summary::after
{
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  color: var(--color-text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease;
}

.euno-faq details[open] summary::after
{
  transform: rotate(180deg);
}

.euno-faq details p
{
  margin: 0;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.euno-faq .euno-faq-back
{
  margin-top: 36px;
}


@media (max-width: 900px)
{
  .euno-preorder-layout
  {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px)
{
  .euno-preorder-layout
  {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 100%;
  }

  .euno-preorder-gallery
  {
    padding: 10px;
    overflow: hidden;
  }

  .euno-product-carousel
  {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .euno-product-carousel img
  {
    max-width: 100%;
    padding: 4px;
  }

  .euno-thumbs
  {
    gap: 6px;
    margin-top: 10px;
  }

  .euno-thumbs button
  {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .euno-preorder-note p
  {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .euno-preorder-card
  {
    padding: 24px;
    overflow: hidden;
  }

  .euno-preorder-form .euno-form-title
  {
    font-size: 24px;
  }

  .euno-preorder-form .euno-form-intro
  {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .euno-preorder-form label
  {
    font-size: 17px;
  }

  .euno-preorder-form .euno-form-grid
  {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .euno-preorder-form .euno-form-grid .euno-col-full
  {
    grid-column: auto;
  }

  .euno-preorder-form input[type="text"],
  .euno-preorder-form input[type="email"],
  .euno-preorder-form select,
  .euno-sizes
  {
    min-width: 0;
    max-width: 100%;
  }

  .euno-preorder-form .euno-chip
  {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .euno-color-dots
  {
    flex-wrap: wrap;
    gap: 10px;
  }

  .euno-color-dot
  {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-width: 3px;
  }

  .euno-size-btn
  {
    min-width: 0;
    min-height: 52px;
    font-size: 17px;
  }

  .euno-preorder-form .euno-rgpd input[type="checkbox"]
  {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .euno-preorder-form .euno-rgpd > span
  {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
