/* LineaPix — « Demander une estimation » */

/* Bouton sur la fiche produit */
.lpest-product { margin: 14px 0 6px; font-family: 'Poppins', Arial, sans-serif; }
.lpest-btn {
  display: block; width: 100%; padding: 12px 18px;
  border: 2px solid #F47C5A; border-radius: 999px; background: #fff; color: #d9623f;
  font-family: 'Poppins', Arial, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.3;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.lpest-btn:hover, .lpest-btn:focus-visible { background: #FFF4EE; color: #c45a3c; }
.lpest-btn:focus-visible { outline: 3px solid #FFD166; outline-offset: 2px; }
.lpest-product--placed { margin: 12px 0 4px; flex-basis: 100%; width: 100%; }
.lpest-product-help { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #6b7275; text-align: center; }

/* Bandeau de la page d'accueil (sous le carrousel) */
.lpest-home { display: flex; align-items: center; gap: 20px; margin: 0; padding: 16px max(24px, calc((100% - 1300px) / 2)); border-radius: 0; background: #FFF4EE; border-bottom: 1px solid #F9D9CC; font-family: 'Poppins', Arial, sans-serif; color: #2E3336; }
.lpest-home__img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: contain; padding: 4px; background: #fff; border: 2px solid #F47C5A; }
.lpest-home__txt { flex: 1; min-width: 0; }
.lpest-home__title { margin: 0 0 4px; font-family: 'Poppins', Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; color: #2E3336; }
.lpest-home__sub { margin: 0; font-family: 'Poppins', Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #5c6467; }
.lpest-home__btn { flex-shrink: 0; padding: 14px 26px; border: 0; border-radius: 999px; background: #F47C5A; color: #fff; font-family: 'Poppins', Arial, sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(244, 124, 90, .3); white-space: nowrap; transition: background .15s ease; }
.lpest-home__btn:hover, .lpest-home__btn:focus-visible { background: #d9623f; }
.lpest-home__btn:focus-visible { outline: 3px solid #FFD166; outline-offset: 2px; }
@media (max-width: 767px) {
  .lpest-home { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .lpest-home__img { width: 56px; height: 56px; }
  .lpest-home__txt { flex: 1 1 calc(100% - 70px); }
  .lpest-home__title { font-size: 17px; }
  .lpest-home__btn { width: 100%; white-space: normal; }
}

/* Fenêtre */
html.lpest-lock, html.lpest-lock body { overflow: hidden; }
#lpest-root {
  --lp-orange: #F47C5A; --lp-orange-dark: #d9623f; --lp-night: #2E3336; --lp-yellow: #FFD166;
  --lp-cream: #FCF7F1; --lp-peach: #FFF4EE; --lp-line: #EEE6DC; --lp-grey: #6b7275;
  position: fixed; inset: 0; z-index: 10050; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(46, 51, 54, .55);
  font-family: 'Poppins', Arial, sans-serif; color: var(--lp-night);
}
#lpest-root.is-open { display: flex; }
#lpest-root *, #lpest-root *::before, #lpest-root *::after { box-sizing: border-box; font-family: inherit; }
#lpest-root .lpest-dialog {
  width: 100%; max-width: 580px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(46, 51, 54, .35);
}
#lpest-root .lpest-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--lp-night); color: #fff;
}
#lpest-root .lpest-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; padding: 3px; background: var(--lp-cream); flex-shrink: 0; }
#lpest-root .lpest-head-txt { flex: 1; min-width: 0; }
#lpest-root .lpest-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
#lpest-root .lpest-subtitle { font-size: 13px; line-height: 1.35; color: var(--lp-yellow); }
#lpest-root .lpest-close {
  width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
#lpest-root .lpest-close:hover { background: rgba(255, 255, 255, .22); }
#lpest-root .lpest-body { padding: 18px 20px 22px; }

/* Formulaire */
#lpest-root .lpest-label { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
#lpest-root .lpest-help { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--lp-grey); }
#lpest-root textarea, #lpest-root input[type="text"], #lpest-root input[type="email"] {
  width: 100%; padding: 11px 12px; border: 1.5px solid #d8cfc4; border-radius: 10px;
  font-size: 16px; line-height: 1.45; color: var(--lp-night); background: #fff;
}
#lpest-root textarea { resize: vertical; min-height: 104px; margin-bottom: 14px; }
#lpest-root textarea:focus, #lpest-root input:focus { outline: none; border-color: var(--lp-orange); box-shadow: 0 0 0 3px rgba(244, 124, 90, .18); }
#lpest-root .lpest-row { display: flex; gap: 12px; margin-bottom: 14px; }
#lpest-root .lpest-col { flex: 1; min-width: 0; }
#lpest-root .lpest-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#lpest-root .lpest-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--lp-grey); cursor: pointer; }
#lpest-root .lpest-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--lp-orange); }
#lpest-root .lpest-consent a { color: var(--lp-orange-dark); text-decoration: underline; }
#lpest-root .lpest-error { min-height: 1em; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #c0392b; }
#lpest-root .lpest-submit {
  display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 999px;
  background: var(--lp-orange); color: #fff; text-align: center; text-decoration: none;
  font-size: 17px; font-weight: 700; line-height: 1.3; cursor: pointer;
  box-shadow: 0 6px 18px rgba(244, 124, 90, .3); transition: background .15s ease;
}
#lpest-root .lpest-submit:hover, #lpest-root .lpest-submit:focus-visible { background: var(--lp-orange-dark); color: #fff; }
#lpest-root .lpest-submit:focus-visible { outline: 3px solid var(--lp-yellow); outline-offset: 2px; }
#lpest-root .lpest-small { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--lp-grey); text-align: center; }

#lpest-root .lpest-recap { margin: 0 0 14px; font-size: 14px; color: var(--lp-grey); }
#lpest-root .lpest-recap strong { color: var(--lp-night); }
#lpest-root .lpest-link.lpest-inline { display: inline; margin: 0; padding: 0; font-size: 14px; }

/* Calcul en cours */
#lpest-root .lpest-loading { padding: 30px 6px; text-align: center; }
#lpest-root .lpest-loading-title { margin: 14px 0 6px; font-size: 17px; font-weight: 600; }
#lpest-root .lpest-dots { display: inline-flex; gap: 8px; }
#lpest-root .lpest-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--lp-orange); animation: lpest-bounce 1.2s infinite ease-in-out; }
#lpest-root .lpest-dots span:nth-child(2) { animation-delay: .15s; }
#lpest-root .lpest-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes lpest-bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* Résultat */
#lpest-root .lpest-ref { margin: 0 0 12px; font-size: 14px; color: var(--lp-grey); }
#lpest-root .lpest-ref strong { color: var(--lp-night); font-size: 16px; }
#lpest-root .lpest-ref:focus { outline: none; }
#lpest-root .lpest-leon {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--lp-cream); font-size: 15px; line-height: 1.55;
}
#lpest-root .lpest-lines { margin: 0 0 14px; border-top: 2px solid var(--lp-night); }
#lpest-root .lpest-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--lp-line); font-size: 14px; line-height: 1.4; }
#lpest-root .lpest-line-name { flex: 1; min-width: 0; }
#lpest-root .lpest-line-sub { display: block; font-size: 12px; color: var(--lp-grey); }
#lpest-root .lpest-line-calc { text-align: right; white-space: nowrap; color: var(--lp-grey); }
#lpest-root .lpest-line-calc span { display: block; }
#lpest-root .lpest-discount { font-size: 12px; color: #2a8a5a; }
#lpest-root .lpest-line-total { min-width: 82px; text-align: right; white-space: nowrap; font-weight: 700; }
#lpest-root .lpest-sum { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
#lpest-root .lpest-sum span:last-child { white-space: nowrap; }
#lpest-root .lpest-total { margin-top: 4px; padding-top: 10px; border-top: 2px solid var(--lp-night); font-size: 18px; font-weight: 700; }
#lpest-root .lpest-total span:last-child { color: var(--lp-orange-dark); }
#lpest-root .lpest-installments { margin: 2px 0 0; font-size: 14px; color: #2a8a5a; text-align: right; }
#lpest-root .lpest-share { margin: 16px 0 4px; text-align: center; }
#lpest-root .lpest-share-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
#lpest-root .lpest-share-main {
  display: block; width: 100%; padding: 12px 18px; border: 2px solid var(--lp-orange); border-radius: 999px;
  background: #fff; color: var(--lp-orange-dark); font-size: 16px; font-weight: 700; cursor: pointer;
}
#lpest-root .lpest-share-main:hover { background: var(--lp-peach); }
#lpest-root .lpest-share-links { display: flex; gap: 10px; justify-content: center; }
#lpest-root .lpest-share-links--alt { margin-top: 8px; }
#lpest-root .lpest-share-btn {
  flex: 1; max-width: 200px; padding: 10px 14px; border: 2px solid var(--lp-orange); border-radius: 999px;
  color: var(--lp-orange-dark); font-size: 14px; font-weight: 700; text-decoration: none;
}
#lpest-root .lpest-share-btn:hover { background: var(--lp-peach); color: var(--lp-orange-dark); }
#lpest-root .lpest-share-links--alt .lpest-share-btn { flex: 0 1 auto; padding: 4px 6px; border: 0; font-weight: 600; text-decoration: underline; }
#lpest-root .lpest-box { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--lp-cream); font-size: 14px; line-height: 1.5; }
#lpest-root .lpest-box-warn { background: var(--lp-peach); border-left: 4px solid var(--lp-orange); }
#lpest-root .lpest-box-ask { background: #FFF8E1; }
#lpest-root .lpest-box-title { margin: 0 0 4px; font-weight: 700; }
#lpest-root .lpest-box ul { margin: 0; padding-left: 18px; list-style: disc; }
#lpest-root .lpest-box li { margin: 0 0 2px; }
#lpest-root .lpest-order { margin-top: 18px; }
#lpest-root .lpest-mail { margin: 14px 0 6px; font-size: 14px; line-height: 1.5; text-align: center; }
#lpest-root .lpest-link { display: block; margin: 0 auto 10px; padding: 6px; border: 0; background: none; color: var(--lp-orange-dark); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
#lpest-root .lpest-legal { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--lp-grey); text-align: center; }

/* Mobile : plein écran */
@media (max-width: 600px) {
  #lpest-root { padding: 0; align-items: stretch; }
  #lpest-root .lpest-dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  #lpest-root .lpest-body { padding: 16px 16px 28px; }
  #lpest-root .lpest-row { flex-direction: column; gap: 14px; }
  #lpest-root .lpest-line { flex-wrap: wrap; }
  #lpest-root .lpest-line-name { flex-basis: 100%; }
  #lpest-root .lpest-line-calc { flex: 1; text-align: left; }
  #lpest-root .lpest-line-calc span { display: inline; margin-right: 8px; }
}

/* ---------- 1.3.0 : dictée au micro ---------- */
.lpvoice { margin: -6px 0 14px; font-family: 'Poppins', Arial, sans-serif; }
.lpvoice-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px 8px 12px;
  border: 2px solid #F47C5A; border-radius: 999px; background: #fff; color: #d9623f;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lpvoice-btn:hover { background: #FFF4EE; }
.lpvoice-btn:focus-visible { outline: 3px solid #FFD166; outline-offset: 2px; }
.lpvoice-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: #F47C5A; color: #fff; flex-shrink: 0; }
.lpvoice-btn.is-listening { background: #c0392b; border-color: #c0392b; color: #fff; }
.lpvoice-btn.is-listening .lpvoice-icon { background: #fff; color: #c0392b; animation: lpvoice-pulse 1.2s ease-in-out infinite; }
@keyframes lpvoice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .lpvoice-btn.is-listening .lpvoice-icon { animation: none; } }
.lpvoice--large .lpvoice-btn { min-height: 56px; padding: 10px 24px 10px 12px; font-size: 17px; }
.lpvoice--large .lpvoice-icon { width: 38px; height: 38px; }
.lpvoice-status { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #c0392b; }
.lpvoice-status:empty { display: none; }
.lpvoice-privacy, .lpvoice-tip { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #6b7275; }
.lpvoice-tip { font-size: 13px; color: #2E3336; background: #FFF8E1; border-radius: 8px; padding: 8px 10px; }
#lpest-root .lpest-inv-hint { margin: 0 0 14px; }
#lpest-root .lpest-inv-hint a { color: #d9623f; font-weight: 600; text-decoration: underline; }
#lpest-root .lpest-box-titles { background: #FFF4EE; }

/* Accueil : deuxième bouton « Faire mon inventaire » */
.lpest-home__btns { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.lpest-home__btn--alt { display: block; text-align: center; text-decoration: none; background: #fff; color: #d9623f; border: 2px solid #F47C5A; box-shadow: none; padding: 12px 24px; }
.lpest-home__btn--alt:hover, .lpest-home__btn--alt:focus-visible { background: #FFF4EE; color: #c45a3c; text-decoration: none; }
@media (max-width: 767px) { .lpest-home__btns { width: 100%; } }
