/* BUSTO — le parcours de création. Chargé en plus de site.css, jamais seul. */

.parcours { padding: 34px 0 90px; }

/* -------------------------------------------------------- fil des étapes */

.fil {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.fil-etape {
  color: var(--muted);
  opacity: 0.45;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fil-etape + .fil-etape::before { content: '—'; opacity: 0.4; }
.fil-etape.fait { opacity: 0.75; }
.fil-etape.ici { color: var(--accent); opacity: 1; }

/* ------------------------------------------------------------------ photo */

.depot {
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 54px 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.depot:hover, .depot.survol { border-color: var(--accent); background: var(--accent-soft); }
.depot.rempli { padding: 24px; border-style: solid; }
.depot .icone { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.depot input[type=file] { display: none; }

#apercu-photo {
  max-height: 340px;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.consentement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.consentement input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.consentement a { color: var(--accent); }

.conseils {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.conseils div { border-left: 2px solid var(--line); padding-left: 14px; }
.conseils strong { color: var(--cream); display: block; font-size: 13px; margin-bottom: 3px; }
@media (max-width: 760px) { .conseils { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ fabrication */

.fabrique { text-align: center; padding: 80px 0; }
.fabrique .cadran {
  height: 6px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 30px auto 14px;
  max-width: 520px;
}
.fabrique .cadran i {
  display: block;
  height: 100%;
  width: 2%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 0.6s ease;
}
.fabrique .compteur { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.fabrique .mot { color: var(--muted); min-height: 1.6em; }

/* --------------------------------------------------------------- atelier */

.atelier {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) { .atelier { grid-template-columns: 1fr; } }

.scene-boite {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(216, 178, 106, 0.12), transparent 62%),
    linear-gradient(180deg, #17171b, #0b0b0d);
  aspect-ratio: 4 / 5;
  min-height: 420px;
}
.scene-boite canvas { width: 100%; height: 100%; display: block; }

.badge-demo {
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: 74%;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #1a1405;
  background: var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
}

.reglage { border-top: 1px solid var(--line-soft); padding: 20px 0; }
.reglage:first-child { border-top: 0; padding-top: 0; }
.reglage > h3 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.carte-choix {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--cream);
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.carte-choix strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.carte-choix span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.carte-choix:hover { border-color: var(--accent-deep); }
.carte-choix.actif { border-color: var(--accent); background: var(--accent-soft); }
.carte-choix.actif span { color: var(--accent); }

.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font: 500 13px/1 var(--sans);
}
.pastille i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: block;
}
.pastille:hover { border-color: var(--accent-deep); color: var(--cream); }
.pastille.actif { border-color: var(--accent); color: var(--cream); background: var(--accent-soft); }

.interrupteur { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cream); cursor: pointer; }
.interrupteur input { width: 17px; height: 17px; accent-color: var(--accent); }

#socle-champs { margin-top: 14px; display: grid; gap: 10px; }
#socle-champs input { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.05em; }

/* ------------------------------------------------------------- addition */

.addition {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
  margin-top: 8px;
}
.addition dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; margin: 0; font-size: 14px; }
.addition dt { color: var(--muted); }
.addition dd { margin: 0; font-family: var(--mono); text-align: right; }
.addition .total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.addition .total dt { color: var(--cream); font-weight: 600; }
.addition .total dd { color: var(--accent); font-size: 1.35rem; }
.addition .bouton { width: 100%; justify-content: center; margin-top: 18px; }
.addition .note { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* -------------------------------------------------------------- commande */

.commande { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .commande { grid-template-columns: 1fr; } }

.recapitulatif {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.recapitulatif .ligne { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.recapitulatif .ligne span:first-child { color: var(--muted); }

/* ----------------------------------------------------------------- merci */

.merci { text-align: center; padding: 80px 0; }
.merci .numero-commande {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  border: 1px dashed var(--accent-deep);
  border-radius: 10px;
  padding: 14px 26px;
  display: inline-block;
  margin: 18px 0 26px;
}

/* [hidden] est une règle du navigateur, de très faible spécificité : le
   sélecteur #socle-champs ci-dessus la battait, et les champs de gravure
   restaient visibles case décochée. */
#socle-champs[hidden] { display: none; }

/* Avertissement sur la photo attendue. Encadré, pas en gris clair : c'est la
   cause numéro un d'un buste raté, il ne doit pas se lire comme une note de
   bas de page. */
.alerte {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cream);
}

/* Un bouton qui se lit comme un lien : « essayer une autre photo » est une
   action, pas une navigation. */
.lien {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lien:hover { color: var(--cream); }

/* Mention de recadrage. Discrète, en bas : ce n'est pas un avertissement,
   c'est une explication de ce qu'on voit. Le badge de démonstration, lui, est
   en haut et en jaune plein — les deux ne doivent pas se confondre. */
.badge-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

/* ------------------------------------------------------------- cadrage */

.cadrage { margin: 26px 0 0; }
.cadrage h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.cadrage label { margin-top: 18px; }

/* La scène ne dépasse jamais la hauteur d'un écran de téléphone : sans ce
   plafond, une photo verticale pousse le bouton « Sculpter » hors de vue et
   personne ne comprend qu'il faut défiler. */
.cadrage-scene {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  touch-action: none; /* sinon le doigt fait défiler la page au lieu du cadre */
}
.cadrage-scene img { max-height: 52vh; width: auto; max-width: 100%; }

.cadre {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: move;
  /* L'ombre porte fait tout : elle assombrit l'extérieur du cadre sans qu'on
     ait à empiler quatre voiles. */
  box-shadow: 0 0 0 9999px rgba(8, 8, 10, 0.62);
}
.cadre::before,
.cadre::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
/* Les tiers : repère universel pour poser des yeux dans un cadre. */
.cadre::after {
  border: 0;
  background:
    linear-gradient(to right, transparent 33.3%, rgba(255,255,255,0.18) 33.3%, rgba(255,255,255,0.18) 33.5%, transparent 33.5%,
      transparent 66.6%, rgba(255,255,255,0.18) 66.6%, rgba(255,255,255,0.18) 66.8%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.3%, rgba(255,255,255,0.18) 33.3%, rgba(255,255,255,0.18) 33.5%, transparent 33.5%,
      transparent 66.6%, rgba(255,255,255,0.18) 66.6%, rgba(255,255,255,0.18) 66.8%, transparent 66.8%);
}
.poignee {
  position: absolute;
  right: -11px;
  bottom: -11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  cursor: nwse-resize;
  z-index: 2;
}

#taille-cadre { width: 100%; max-width: 340px; accent-color: var(--accent); }

.qualite { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.qualite.faible { color: var(--accent); }

/* --------------------------------------------- l'exemple à suivre ou non */

/* Deux images valent tout le texte de consigne au-dessus : on montre le bon
   cadrage et le mauvais côte à côte, avant même la zone de dépôt. */
.paire-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 24px;
}
.paire-photos figure { margin: 0; }
.paire-photos img { border-radius: 10px; display: block; }
.paire-photos .bon img { border: 2px solid var(--ok); }
.paire-photos .mauvais img { border: 2px solid var(--ko); }
.paire-photos figcaption { font-size: 13px; line-height: 1.45; margin-top: 9px; color: var(--muted); }
.paire-photos .bon figcaption { color: var(--ok); }
.paire-photos .mauvais figcaption { color: var(--ko); }

/* Le curseur de hauteur de coupe : même largeur que celui du cadrage. */
#coupe { width: 100%; accent-color: var(--accent); }
