/* Cabine d'essayage — Fashion Curvy Shop
   Direction : cabine de boutique — velours prune, framboise, fil d'or.
   Display : Fraunces · Texte : Karla */
:root {
  --creme: #fff7f3;      /* fond, crème rosée */
  --prune: #46232f;      /* encre, velours prune */
  --framboise: #c94f6d;  /* accent principal */
  --framboise-f: #a93a56;/* framboise foncée (hover, texte accent) */
  --or: #c9a26b;         /* fil d'or, détails */
  --voile: #f6dce3;      /* rose voile, surfaces douces */
  --blanc: #ffffff;
  --ombre: 0 10px 30px rgba(70, 35, 47, 0.10);
  --ombre-douce: 0 4px 14px rgba(70, 35, 47, 0.07);
  --rayon: 16px;
  --transition: 0.18s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Karla", system-ui, sans-serif;
  background: var(--creme);
  color: var(--prune);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.cachee { display: none !important; }

/* ---------- Retour boutique ---------- */
.retour-boutique {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.8rem; font-weight: 700; text-decoration: none;
  color: var(--framboise-f); background: var(--blanc);
  border: 1.5px solid var(--voile); border-radius: 999px;
  padding: 8px 14px; box-shadow: var(--ombre-douce);
  transition: border-color var(--transition), transform var(--transition);
}
.retour-boutique:hover { border-color: var(--framboise); transform: translateY(-1px); }

/* ---------- En-tête ---------- */
.entete { text-align: center; padding: 48px 18px 8px; }
@media (min-width: 720px) { .entete { padding-top: 34px; } }
.logo {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--prune); opacity: 0.65;
}
.logo span { color: var(--framboise-f); font-weight: 700; }
h1 {
  font-family: "Alex Brush", cursive; font-weight: 400;
  font-size: clamp(3rem, 9vw, 4.4rem);
  margin-top: 8px; line-height: 1.1; color: var(--prune);
}
h1 em { font-style: normal; color: var(--framboise); }
.sous-titre { color: var(--prune); opacity: 0.72; margin-top: 8px; font-size: 1rem; }
.sous-titre strong { color: var(--framboise-f); }

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 10px 16px 48px; }

/* ---------- Étapes : fil de couture ---------- */
.etapes {
  display: flex; justify-content: center; align-items: center;
  gap: 0; margin: 22px 0 24px;
}
.etape {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--prune); opacity: 0.45; font-weight: 700;
  transition: opacity var(--transition);
}
.etape span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 0.85rem;
}
.etape + .etape::before {
  content: ""; display: block; width: 34px; height: 1px;
  background: var(--or); margin: 0 12px;
}
.etape.active { opacity: 1; color: var(--framboise-f); }
.etape.active span { background: var(--framboise); border-color: var(--framboise); color: var(--blanc); }
/* Mobile : numéros seuls, sauf l'étape en cours */
@media (max-width: 520px) {
  .etapes { gap: 0; padding: 0 8px; }
  .etape { font-size: 0.72rem; }
  .etape:not(.active) { font-size: 0; gap: 0; }
  .etape:not(.active) span { font-size: 0.85rem; }
  .etape + .etape::before { width: 22px; margin: 0 8px; }
}

/* ---------- Cartes ---------- */
.carte {
  background: var(--blanc); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 26px; margin: 0 auto; max-width: 540px;
}
.carte h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.45rem; margin-bottom: 10px; }

/* ---------- Boutons ---------- */
.btn {
  border: 1.5px solid var(--framboise); background: var(--blanc); color: var(--framboise-f);
  font: inherit; font-weight: 700; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--ombre-douce); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.btn-plein { background: var(--framboise); color: var(--blanc); border-color: var(--framboise); box-shadow: var(--ombre-douce); }
.btn-plein:hover { background: var(--framboise-f); border-color: var(--framboise-f); }
.btn-plein:disabled {
  background: var(--voile); border-color: var(--voile); color: var(--framboise-f);
  opacity: 0.7; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn-large { width: 100%; padding: 16px; font-size: 1.05rem; margin-top: 16px; }
.btn-lien { border: none; background: none; color: var(--prune); opacity: 0.6; text-decoration: underline; font-weight: 500; margin-top: 12px; }
.btn-lien:hover { opacity: 1; transform: none; box-shadow: none; }

/* ---------- Recherche ---------- */
.recherche { margin-bottom: 14px; }
.recherche input, .ligne input {
  width: 100%; padding: 13px 18px; border-radius: 999px;
  border: 1.5px solid var(--voile); font: inherit; background: var(--blanc); outline: none;
  transition: border-color var(--transition);
}
.recherche input:focus, .ligne input:focus { border-color: var(--framboise); }

/* ---------- Grille produits ---------- */
.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 580px) { .grille { grid-template-columns: repeat(3, 1fr); } }
.produit {
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre-douce); cursor: pointer; position: relative;
  outline: 2px solid transparent; outline-offset: -2px;
  transition: transform var(--transition), box-shadow var(--transition), outline-color var(--transition);
}
.produit:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.produit img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--voile); }
.produit .infos { padding: 10px 12px 13px; }
.produit .nom {
  font-size: 0.82rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.produit .prix {
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--framboise-f); font-size: 1.05rem; margin-top: 4px;
}
.produit.choisi { outline-color: var(--framboise); }
.produit.choisi::after {
  content: "✓"; position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--framboise); color: var(--blanc); border: 2px solid var(--blanc);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.badge-demo {
  position: absolute; top: 10px; left: 10px;
  background: var(--prune); color: var(--or);
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
}
.chargement, .vide { grid-column: 1/-1; text-align: center; color: var(--prune); opacity: 0.55; padding: 36px 0; }
.voir-plus { text-align: center; margin: 20px 0 6px; }

/* ---------- Portant ---------- */
.portant {
  position: sticky; top: 10px; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  background: var(--prune); color: var(--voile);
  border-radius: 999px; box-shadow: var(--ombre);
  padding: 8px 8px 8px 18px; margin-bottom: 16px;
}
.portant-titre { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; opacity: 0.85; }
#portant-items { display: flex; gap: 6px; flex: 1; }
#portant-items img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--or); cursor: pointer;
  transition: transform var(--transition);
}
#portant-items img:hover { transform: scale(1.08); }
.portant .btn-plein { border-color: var(--framboise); }

/* ---------- Photo ---------- */
.conseils { list-style: none; margin: 12px 0 18px; display: grid; gap: 8px; }
.conseils li {
  background: var(--creme); border-left: 3px solid var(--or);
  border-radius: 0 12px 12px 0; padding: 10px 14px; font-size: 0.88rem;
}
.zone-photo {
  display: block; border: 1.5px dashed var(--framboise); border-radius: var(--rayon);
  text-align: center; cursor: pointer; overflow: hidden; background: var(--creme);
  transition: background var(--transition);
}
.zone-photo:hover { background: var(--voile); }
#invite-photo { padding: 44px 10px; color: var(--framboise-f); font-weight: 700; }
#invite-photo .grand { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 400; }
#apercu-photo { width: 100%; max-height: 440px; object-fit: contain; display: block; }
.consentement { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.82rem; opacity: 0.85; }
.consentement input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--framboise); flex-shrink: 0; }
.consentement a { color: var(--framboise-f); }

/* ---------- Attente : miroir qui chatoie ---------- */
.attente { text-align: center; }
.miroir-attente {
  width: 110px; height: 150px; margin: 10px auto 20px;
  border-radius: 55px 55px 14px 14px;
  border: 3px solid var(--or);
  background: linear-gradient(110deg, var(--voile) 35%, #fff 50%, var(--voile) 65%) 0 0/220% 100%;
  animation: chatoiement 1.6s linear infinite;
}
@keyframes chatoiement { to { background-position: -220% 0; } }
.petit { opacity: 0.6; font-size: 0.85rem; margin-top: 6px; }

/* ---------- Galerie : miroirs de cabine ---------- */
.galerie { display: grid; gap: 22px; margin-top: 18px; }
@media (min-width: 580px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
.resultat { text-align: center; animation: apparition 0.5s ease both; }
.resultat img.rendu {
  width: 100%; display: block;
  border-radius: 130px 130px var(--rayon) var(--rayon);
  border: 3px solid var(--or);
  box-shadow: var(--ombre);
  background: var(--voile);
}
.resultat .detail { padding: 14px 6px 0; }
.resultat .nom { font-size: 0.92rem; font-weight: 700; }
.resultat .nom a { color: inherit; text-decoration: none; }
.resultat .nom a:hover { color: var(--framboise-f); text-decoration: underline; }
.resultat .prix {
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--framboise-f); font-size: 1.25rem; margin: 3px 0 12px;
}
.resultat .boutons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.resultat .boutons .btn { padding: 10px 16px; font-size: 0.85rem; text-decoration: none; display: inline-block; }
.resultat.echec {
  background: var(--blanc); border-radius: var(--rayon);
  box-shadow: var(--ombre-douce); padding: 18px;
}
.resultat.echec .detail { opacity: 0.7; font-size: 0.85rem; }
@keyframes apparition { from { opacity: 0; transform: translateY(14px); } }
.resultat:nth-child(2) { animation-delay: 0.12s; }
.resultat:nth-child(3) { animation-delay: 0.24s; }
.actions-finales { text-align: center; margin-top: 26px; display: grid; gap: 4px; justify-items: center; }

/* ---------- Divers ---------- */
.ligne { display: flex; gap: 8px; margin-top: 12px; }
.erreur { color: var(--framboise-f); margin-top: 8px; font-size: 0.85rem; }
#ecran-acces { margin: 34px auto; max-width: 430px; }
.pied { text-align: center; padding: 22px; opacity: 0.6; font-size: 0.78rem; }
.pied a { color: var(--framboise-f); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
