/* Pagination de l'expérience LENA — 3 vues dans la même card. */

.minimal-lena-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  height: 100vh;
  padding: 2.25rem 5rem 3.5rem;
  background: #000;
  box-sizing: border-box;
}

.minimal-lena-pagination {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin: 0 auto;
}

.minimal-lena-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.minimal-lena-dot:hover,
.minimal-lena-dot:focus-visible { background: rgba(255, 255, 255, 0.55); }

.minimal-lena-dot[aria-current="true"] {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

.minimal-lena-stage {
  position: relative;
  width: 92%;
  max-width: 1400px;
  flex: 1;
  min-height: 0;
  margin: 0 auto;
}

/* Les trois vues se superposent dans la scène LENA. */
.minimal-lena-wrap > .minimal-lena-card,
.minimal-lena-stage > .minimal-lena-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  min-height: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.minimal-lena-wrap > .minimal-lena-card--masquee,
.minimal-lena-stage > .minimal-lena-card--masquee {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 2.4s;
}

/* ---- Vue catalogue ---- */
.minimal-lena-card--catalogue {
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  padding: 5.2rem 2rem 2rem;
  background: #fff;
  color: #111;
  font-family: "Jost", sans-serif;
  text-align: left;
}

/* Les vues claires utilisent le même header LENA que la vue image, en noir. */
.minimal-lena-header--noir.minimal-lena-menu-btn span {
  background: #111;
  filter: none;
}

.minimal-lena-header--noir.minimal-lena-top .minimal-lena-logo {
  color: #111;
  text-shadow: none;
}

.minimal-lena-header--noir.minimal-lena-icons {
  color: #111;
}

.minimal-lena-header--noir.minimal-lena-icons svg {
  filter: none;
}

.catalogue-fil {
  margin: 0 0 1.1rem;
  color: #6b6b6b;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.catalogue-fil span { margin: 0 0.4em; color: #b6b6b6; }

.catalogue-onglets-ligne {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #ececec;
}

.catalogue-onglets {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  min-width: 0;
  overflow: hidden;
  color: #6b6b6b;
  font-size: 0.82rem;
  white-space: nowrap;
}

.catalogue-onglets a { color: inherit; text-decoration: none; }
.catalogue-onglets a.est-actif { color: #111; font-weight: 600; }

.catalogue-compte {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.85rem;
  margin-left: auto;
  color: #6b6b6b;
  font-size: 0.78rem;
  white-space: nowrap;
}

.catalogue-filtre {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: none;
  color: #111;
  cursor: pointer;
}

.catalogue-filtre svg { width: 1rem; height: 1rem; }

.catalogue-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem 0.9rem;
  margin-top: 1.3rem;
}

.catalogue-produit { display: flex; flex-direction: column; gap: 0.55rem; }

.catalogue-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 7;
  border-radius: 2px;
  background: linear-gradient(160deg, #ececec, #dcdcdc);
}

.catalogue-photo--duo { overflow: hidden; }
.catalogue-photo--duo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 280ms ease;
}
.catalogue-photo--duo img:first-of-type { opacity: 1; }
.catalogue-photo--duo img:nth-of-type(2) { opacity: 0; }
.catalogue-photo--duo:hover img:first-of-type { opacity: 0; }
.catalogue-photo--duo:hover img:nth-of-type(2) { opacity: 1; }

.catalogue-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  color: #8a8a8a;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.catalogue-produit p { margin: 0; color: #111; font-size: 0.78rem; line-height: 1.3; }

/* ---- Panneau assistant de la vue catalogue ---- */
.assistant-panneau {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 33%;
  padding: 1.3rem 1.1rem 1.1rem;
  overflow: hidden;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #111;
  font-family: "Jost", sans-serif;
}

.assistant-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.assistant-titre {
  margin: 0;
  color: #111;
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.assistant-entete-btns { display: flex; align-items: center; gap: 0.4rem; }

.assistant-reglages,
.assistant-fermer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  cursor: pointer;
}

.assistant-reglages span {
  display: block;
  font-size: 0.52rem;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: translateY(-0.06rem);
}

.assistant-fermer {
  font-size: 1.22rem;
  font-weight: 300;
  line-height: 0.8;
}

.assistant-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  overflow: hidden;
}

.assistant-message { max-width: 82%; margin: 0; color: #111; font-size: 0.7rem; line-height: 1.3; }
.assistant-message--ia { align-self: flex-start; }
.assistant-message--groupe { display: flex; flex-direction: column; gap: 0.55rem; }
.assistant-message--groupe p { margin: 0; }
.assistant-message--achat { max-width: 70%; }
.assistant-message--achat > p { font-size: 0.78rem; }
.assistant-message--suggestions { width: 100%; max-width: none; gap: 0.65rem; }

.assistant-reference {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.assistant-reference-photo {
  width: 2.8rem;
  height: 3.3rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(160deg, #ececec, #dcdcdc);
}

.assistant-reference-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.assistant-reference-info { display: flex; flex-direction: column; gap: 0.15rem; }
.assistant-reference-nom { color: #111; font-size: 0.64rem; font-weight: 600; }
.assistant-reference-date,
.assistant-reference-commande { color: #6b6b6b; font-size: 0.58rem; }

.assistant-produits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.assistant-produit { display: flex; flex-direction: column; gap: 0.35rem; }
.assistant-produit-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 7;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(160deg, #ececec, #dcdcdc);
}

.assistant-produit-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 280ms ease;
}

.assistant-produit-photo img:first-of-type { opacity: 1; }
.assistant-produit-photo img:nth-of-type(2) { opacity: 0; }
.assistant-produit-photo:hover img:first-of-type { opacity: 0; }
.assistant-produit-photo:hover img:nth-of-type(2) { opacity: 1; }
.assistant-produit p { margin: 0; color: #111; font-size: 0.6rem; line-height: 1.3; }

.assistant-cta {
  align-self: stretch;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.assistant-panneau .minimal-lena-chatbar {
  flex-shrink: 0;
  width: 100%;
  margin-top: 0.7rem;
  border-color: rgba(17, 17, 17, 0.15);
  background: rgba(255, 255, 255, 0.65);
}

.assistant-followup {
  margin: 0.2rem 0 0;
  color: #111;
  font-size: 0.78rem;
  line-height: 1.3;
}

.assistant-panneau .minimal-lena-pin,
.assistant-panneau .minimal-lena-send { color: #111; }
.assistant-panneau .minimal-lena-text { color: rgba(17, 17, 17, 0.5); }
.assistant-panneau .minimal-lena-caret { background: rgba(17, 17, 17, 0.5); }
.assistant-panneau .minimal-lena-send { border-color: rgba(17, 17, 17, 0.25); background: rgba(17, 17, 17, 0.08); }

/* ---- Vue produit ---- */
.minimal-lena-card--produit {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  --lena-panel-inset: 1.3rem;
  background: #ece6dd;
}

.minimal-lena-card--produit .produit-panneau {
  inset: auto var(--lena-panel-inset) var(--lena-panel-inset) auto !important;
  max-width: calc(100% - 2.6rem);
  max-height: calc(100% - 2.6rem);
  transform: none;
}

.produit-images { display: flex; width: 100%; height: 100%; }
.produit-image { flex: 1; height: 100%; overflow: hidden; background: linear-gradient(155deg, #d9d2c6, #b9b0a0 55%, #8f8676); }
.produit-image--alt { background: linear-gradient(200deg, #cfc7b8, #a89e8c 55%, #766c5c); }
.produit-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.produit-controles {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.produit-icone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
}

.produit-icone-btn svg { width: 0.7rem; height: 0.7rem; }

.produit-panneau {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 5;
  width: min(17.5rem, calc(100% - 2.6rem));
  height: min(17.5rem, calc(100% - 2.6rem));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem;
  overflow-y: auto;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font-family: "Jost", sans-serif;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.produit-nom { margin: 0; font-family: "Syne", sans-serif; font-size: 0.82rem; font-weight: 600; line-height: 1.25; }
.produit-couleur { display: flex; align-items: center; justify-content: space-between; font-size: 0.68rem; }
.produit-champ-label { color: #7a7266; }
.produit-champ-valeur { color: #111; }
.produit-vignette { width: 2.6rem; aspect-ratio: 6 / 7; overflow: hidden; border: 1px solid rgba(17, 17, 17, 0.12); border-radius: 2px; background: linear-gradient(160deg, #ddd6c9, #b9b0a0); }
.produit-vignette img { width: 100%; height: 100%; display: block; object-fit: cover; }

.produit-taille {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: none;
  color: #111;
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  cursor: pointer;
}

.produit-taille svg { width: 0.85rem; height: 0.85rem; color: #7a7266; }
.produit-prix { margin: 0; font-size: 0.78rem; }
.produit-btns { display: flex; gap: 0.45rem; margin-top: auto; }

.produit-btn-mylena {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  padding: 0.5rem 0.4rem 0.5rem 0;
  border: 0;
  background: none;
  color: #111;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.produit-btn-mylena svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

.produit-btn-panier {
  flex: 1.6;
  padding: 0.5rem 0.4rem;
  border: 0;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 720px) {
  .minimal-lena-wrap { --minimal-lena-inset: 1rem; }
  .minimal-lena-card--catalogue { padding: 4.8rem 1rem 1.75rem; }
  .catalogue-grille { grid-template-columns: repeat(2, 1fr); }
  .catalogue-onglets-ligne { gap: 0.8rem; }
  .assistant-panneau { width: 70%; }
  .produit-panneau {
    width: min(11rem, calc(100% - 2rem));
    height: min(11rem, calc(100% - 2rem));
    padding: 0.85rem;
    gap: 0.4rem;
  }
  .minimal-lena-card--produit { --lena-panel-inset: 1rem; }
  .produit-nom { font-size: 0.72rem; }
}
