/* ==========================================================================
   Custom-animal — the "Animal personnalisé" landing page
   Hero · two offer cards (light / dark) with order forms · FAQ.
   ========================================================================== */

/* Hide the default page title + let the coded body break out of the prose column. */
.jl-surmesure .entry-header { display: none; }
.jl-surmesure .entry-content { margin-top: 0; }
.jl-surmesure .hentry { margin-bottom: 0; }
/* The sections own their vertical rhythm (the FAQ has its own bottom padding),
   so drop Storefront's content-wrapper margin and sit flush above the footer. */
.jl-surmesure #primary,
.jl-surmesure #main { margin-bottom: 0; }

.jl-sm {
  max-width: 1240px;
  margin: 0 auto;
  color: var(--jl-ink);
  font-family: var(--jl-sans);
}

/* Breadcrumb uses the shared .woocommerce-breadcrumb styling (features/breadcrumbs). */

/* Shared eyebrow (brass, spaced, uppercase) */
.jl-sm__eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--jl-brass);
}

/* --- HERO --- (left-aligned text + Elix bursting out on the right) */
.jl-sm-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 32px;
  padding: 64px 40px;
  text-align: left;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--jl-cream-tint) 0%, var(--jl-cream) 100%);
  overflow: visible; /* let the mascot spill past the rounded box (bg still clips) */
}
.jl-sm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--jl-bordeaux);
}
.jl-sm-hero__title {
  margin: 0 0 22px;
  font-family: var(--jl-serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.jl-sm-hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--jl-text-70);
}
.jl-sm-hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--jl-text-50);
}
.jl-sm-hero__points li { margin: 0; }
/* Mascot — same cut-out burst as the homepage atelier: scaled larger than its
   column and spilling below the box, so Elix pops out of the hero. */
.jl-sm-hero__mascot {
  align-self: end;
  justify-self: center;
  min-width: 0;
}
.jl-sm-hero__mascot img {
  display: block;
  width: clamp(240px, 30vw, 400px);
  height: auto;
  margin-block: clamp(-48px, -4vw, -24px) clamp(-104px, -7vw, -60px);
  transform: translateY(-12px) scale(1.03);
  filter: drop-shadow(0 22px 30px rgba(27, 21, 18, .28));
}

/* --- INTRO --- */
.jl-sm-intro {
  padding: 72px 0 44px;
  text-align: center;
}
.jl-sm-intro__title {
  margin: 0 auto;
  max-width: 680px;
  font-family: var(--jl-serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
}

/* --- OFFERS --- */
.jl-sm-offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
.jl-sm-offer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px;
  border-radius: 22px;
}
.jl-sm-offer--light {
  background: linear-gradient(20deg, var(--jl-bg), #ffffff);
  border: 1px solid var(--jl-line);
}
.jl-sm-offer--dark {
  color: var(--jl-cream);
  background: linear-gradient(-20deg, var(--jl-bordeaux), #28211a);
  box-shadow: 0 26px 54px rgba(27, 21, 18, .18);
}
.jl-sm-offer__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: var(--jl-r-pill);
  background: var(--jl-brass);
  color: var(--jl-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jl-sm-offer__top { margin-bottom: 18px; }
.jl-sm-offer__kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--jl-brass);
}
.jl-sm-offer__price {
  margin-top: 8px;
  font-family: var(--jl-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.jl-sm-offer--light .jl-sm-offer__price,
.jl-sm-offer--light .jl-sm-offer__price .amount { color: var(--jl-bordeaux); }
.jl-sm-offer--dark .jl-sm-offer__price,
.jl-sm-offer--dark .jl-sm-offer__price .amount { color: var(--jl-brass); }
/* WooCommerce wraps the price in <bdi>/<span class="amount"> — strip any suffix spacing */
.jl-sm-offer__price del { display: none; }
.jl-sm-offer__price ins { text-decoration: none; }

.jl-sm-offer__title {
  margin: 0 0 10px;
  font-family: var(--jl-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
}
.jl-sm-offer--dark .jl-sm-offer__title { color: var(--jl-cream); }
.jl-sm-offer--dark .jl-sm-offer__title em { color: var(--jl-brass); }
.jl-sm-offer__lead {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--jl-text-70);
}
.jl-sm-offer--dark .jl-sm-offer__lead { color: rgba(243, 233, 219, .7); }

.jl-sm-offer__features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.jl-sm-offer__features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.jl-sm-offer__features svg { flex: none; margin-top: 3px; }
.jl-sm-offer--light .is-yes { color: var(--jl-text-70); }
.jl-sm-offer--light .is-no { color: var(--jl-text-50); }
.jl-sm-offer--dark .jl-sm-offer__features li { color: rgba(243, 233, 219, .85); }

/* --- Forms inside the offer cards --- */
.jl-sm-form {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 26px;
  border-radius: 16px;
}
.jl-sm-offer--light .jl-sm-form {
  background: var(--jl-cream-tint);
  border: 1px solid var(--jl-cream);
}
.jl-sm-offer--dark .jl-sm-form {
  background: rgba(243, 233, 219, .06);
  border: 1px solid rgba(243, 233, 219, .12);
}
.jl-sm-form__label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--jl-text-70);
}
.jl-sm-offer--dark .jl-sm-form__label { color: rgba(243, 233, 219, .7); }
.jl-sm-req { color: var(--jl-bordeaux); }
.jl-sm-offer--dark .jl-sm-req { color: var(--jl-brass); }
.jl-sm-soft { color: var(--jl-brass); }

.jl-sm-form__help {
  margin: 0 0 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--jl-text-50);
}
.jl-sm-offer--light .jl-sm-form__help { text-align: justify; }
.jl-sm-offer--light .jl-sm-form__help b { color: var(--jl-ink); }
.jl-sm-offer--dark .jl-sm-form__help { color: rgba(243, 233, 219, .5); }
.jl-sm-offer--dark .jl-sm-form__help a { color: var(--jl-brass); }

/* Add-to-cart notices shown inside the submitted offer form */
.jl-sm-notices { margin-bottom: 16px; }
.jl-sm-notices .woocommerce-error,
.jl-sm-notices .woocommerce-message,
.jl-sm-notices .woocommerce-info {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.5;
}
.jl-sm-notices .woocommerce-error { list-style: none; }

/* Single big drop zone (offer 1) */
.jl-sm-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 218px;
  margin-bottom: 8px;
  padding: 16px;
  border: 1.5px dashed rgba(110, 28, 47, .3);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.jl-sm-drop:hover,
.jl-sm-drop.is-over { border-color: var(--jl-bordeaux); background: var(--jl-cream-tint); }
.jl-sm-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.jl-sm-drop__icon { font-size: 26px; color: var(--jl-bordeaux); line-height: 1; }
.jl-sm-drop__text { font-size: 12.5px; color: var(--jl-text-50); }
.jl-sm-drop.has-file { border-style: solid; border-color: var(--jl-bordeaux); }
.jl-sm-drop__preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Three small thumb slots (offer 2) */
.jl-sm-thumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.jl-sm-thumb {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 104px;
  border: 1.5px dashed rgba(243, 233, 219, .3);
  border-radius: 10px;
  background: rgba(243, 233, 219, .04);
  color: var(--jl-cream);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.jl-sm-thumb:hover,
.jl-sm-thumb.is-over { border-color: var(--jl-brass); }
.jl-sm-thumb input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.jl-sm-thumb__plus { font-size: 20px; line-height: 1; color: var(--jl-brass); }
.jl-sm-thumb__text { font-size: 11px; color: rgba(243, 233, 219, .7); }
.jl-sm-thumb.has-file { border-style: solid; border-color: var(--jl-brass); }
.jl-sm-thumb__preview { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* Description textarea (offer 2) */
.jl-sm-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 140px;
  margin-bottom: 8px;
  padding: 13px 15px;
  border: 1px solid rgba(243, 233, 219, .2);
  border-radius: 12px;
  background: rgba(243, 233, 219, .06);
  color: var(--jl-cream);
  font: 400 13.5px var(--jl-sans);
  outline: none;
  resize: vertical;
}
.jl-sm-textarea::placeholder { color: rgba(243, 233, 219, .7); }
/* Keep the dark surface on focus — Storefront's textarea:focus forces a light
   grey background, which made the cream text invisible while typing. */
.jl-sm-textarea:focus {
  border-color: var(--jl-brass);
  background: rgba(243, 233, 219, .1);
  color: var(--jl-cream);
  -webkit-text-fill-color: var(--jl-cream);
}

/* Optional single-line text input (animal name) — light on offer 1, dark on offer 2 */
.jl-sm-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(110, 28, 47, .3);
  border-radius: 12px;
  background: #fff;
  color: var(--jl-ink);
  font: 400 13.5px var(--jl-sans);
  outline: none;
}
.jl-sm-input::placeholder { color: var(--jl-text-50); }
.jl-sm-input:focus { border-color: var(--jl-bordeaux); }

.jl-sm-input--dark {
  border-color: rgba(243, 233, 219, .2);
  background: rgba(243, 233, 219, .06);
  color: var(--jl-cream);
}
.jl-sm-input--dark::placeholder { color: var(--jl-text-50); }
/* Keep the dark surface + cream text on focus (Storefront forces a light bg). */
.jl-sm-input--dark:focus {
  border-color: var(--jl-brass);
  background: rgba(243, 233, 219, .1);
  color: var(--jl-cream);
  -webkit-text-fill-color: var(--jl-cream);
}

/* CTA buttons */
.jl-sm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--jl-r-pill);
  font: 500 14.5px var(--jl-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.jl-sm-cta--bordeaux {
  background: var(--jl-bordeaux);
  color: var(--jl-cream);
  box-shadow: 0 12px 26px rgba(110, 28, 47, .24);
}
.jl-sm-cta--bordeaux:hover { background: var(--jl-bordeaux-dark); color: var(--jl-cream); }
.jl-sm-cta--brass {
  background: var(--jl-brass);
  color: var(--jl-ink);
  font-weight: 600;
}
.jl-sm-cta--brass:hover { background: var(--jl-brass-light); color: var(--jl-ink); }
.jl-sm-cta:active { transform: translateY(1px); }

/* --- FAQ --- */
.jl-sm-faq { padding: 64px 0 90px; }
.jl-sm-faq__head { margin-bottom: 40px; text-align: center; }
.jl-sm-faq__title {
  margin: 0;
  font-family: var(--jl-serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 42px);
}
.jl-sm-faq__list { max-width: 780px; margin: 0 auto; }
.jl-sm-faq__item {
  margin-bottom: 12px;
  border: 1px solid rgba(27, 21, 18, .1);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.jl-sm-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font: 500 16px var(--jl-sans);
  color: var(--jl-ink);
  cursor: pointer;
  list-style: none;
}
.jl-sm-faq__item summary::-webkit-details-marker { display: none; }
.jl-sm-faq__chevron { flex: none; transition: transform .25s; }
.jl-sm-faq__item[open] .jl-sm-faq__chevron { transform: rotate(180deg); }
.jl-sm-faq__answer {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--jl-text-70);
}
.jl-sm-faq__answer p { margin: 0 0 .8em; }
.jl-sm-faq__answer p:last-child { margin-bottom: 0; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .jl-sm-offers { grid-template-columns: 1fr; gap: 38px; }
  /* On mobile, surface the recommended "Création guidée" card first. */
  .jl-sm-offer--dark { order: -1; }
  .jl-sm-hero { grid-template-columns: 1fr; gap: 8px; padding: 48px 24px; }
  .jl-sm-hero__mascot { justify-self: center; }
  .jl-sm-hero__mascot img {
    width: clamp(220px, 60vw, 320px);
    margin-top: 0;
    margin-bottom: clamp(-80px, -14vw, -52px);
    transform: none;
  }
  .jl-sm-offer { padding: 32px 24px; }
  .jl-sm-intro { padding: 56px 0 36px; }
  .jl-sm-faq { padding: 48px 0 64px; }
}
