/*
 * IMMGO — Écrans alignés sur le cahier Vol. 2, sections 11 et 12 : assistants « À compléter » (étapes, pièces, récapitulatif) et choix du type d'espace
 * Auteur : Jacks Ngalangala
 */

/* ─── Assistants « À compléter » (écrans 43 à 50) ─── */
.cc-completer-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
}
.cc-etapes {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  flex-wrap: wrap;
}
.cc-etapes-liste {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-etape {
  display: flex;
  align-items: center;
}
.cc-etape + .cc-etape::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--trait-fort);
}
.cc-etape-pastille {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--trait-fort);
  background: var(--surface);
  color: var(--texte-second);
  font: inherit;
  font-weight: var(--graisse-forte);
  cursor: pointer;
}
.cc-etape-pastille svg {
  width: 18px;
  height: 18px;
}
.cc-etape-faite .cc-etape-pastille {
  border-color: var(--trait-fort);
  background: var(--neutre-pale);
  color: var(--texte);
}
.cc-etape-courante .cc-etape-pastille {
  border-color: var(--or);
  background: var(--or);
  color: var(--texte-sur-or);
}
.cc-etape-pastille:focus-visible {
  outline: none;
  box-shadow: var(--anneau);
}
.cc-etapes-texte {
  color: var(--texte-second);
  font-size: var(--taille-petit);
}
.cc-completer {
  display: grid;
  gap: var(--e-6);
  align-items: start;
}
.cc-completer-deux {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
@media (max-width: 1023px) {
  .cc-completer-deux {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cc-completer-panneau {
  min-width: 0;
}
.cc-fin {
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ─── Pièces : fournie (vert) ou à déposer (pointillés) ─── */
.cc-piece {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  padding: var(--e-4);
  border-radius: var(--r-moyen);
  border: 1px solid var(--trait);
  background: var(--surface);
  min-width: 0;
}
.cc-piece-fournie {
  border-color: color-mix(in srgb, var(--succes) 45%, transparent);
  border-left: 4px solid var(--succes);
}
.cc-piece-manquante {
  border-left: 4px solid var(--trait-fort);
}
.cc-piece-tete {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-piece-fichier {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-3);
  border: 0;
  border-radius: var(--r-petit);
  background: var(--surface-douce);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cc-piece-fichier:hover .cc-fort {
  color: var(--or-texte);
}
.cc-piece-fichier svg,
.cc-piece-ajout svg {
  flex: none;
  color: var(--texte-second);
}
.cc-piece-ajout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: var(--hauteur-controle);
  border: 1.5px dashed var(--trait-fort);
  border-radius: var(--r-petit);
  background: transparent;
  font: inherit;
  color: var(--texte-second);
  cursor: pointer;
}
.cc-piece-ajout:hover {
  border-color: var(--or);
  color: var(--or-texte);
}
.cc-pieces-grille {
  display: grid;
  gap: var(--e-4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.cc-controles,
.cc-types-acceptes {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-controles li,
.cc-types-acceptes li {
  display: flex;
  align-items: flex-start;
  gap: var(--e-2);
}
.cc-controles svg,
.cc-types-acceptes svg {
  flex: none;
  margin-top: 2px;
  color: var(--succes);
}
.cc-manque {
  color: var(--texte-second);
}
.cc-manque svg {
  color: var(--attention);
}
.cc-types-acceptes li {
  padding: var(--e-2) var(--e-3);
  border-radius: var(--r-petit);
}
.cc-type-courant {
  background: var(--or-pale);
  border-left: 3px solid var(--or);
  font-weight: var(--graisse-forte);
}
.cc-representant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-2);
  padding-bottom: var(--e-4);
  border-bottom: 1px solid var(--trait);
  text-align: center;
}
.cc-representant .avatar {
  width: 88px;
  height: 88px;
  font-size: var(--taille-titre-2);
}
.cc-fiche-representant .carte-corps {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
}
.cc-prochaines {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
  margin: 0;
  padding-left: var(--e-5);
  list-style: decimal;
}
.cc-prochaines li::marker {
  color: var(--or-texte);
  font-weight: var(--graisse-forte);
}
.cc-teinte-grande {
  width: 52px;
  height: 52px;
}

/* ─── Choix du type d'espace (écran 42) ─── */
.cc-types .choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--e-4);
}
.cc-types .choix-tuile {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-3);
  padding: var(--e-6);
  min-height: 0;
  text-align: left;
}
.cc-types .choix-tuile > svg {
  width: 48px;
  height: 48px;
  padding: var(--e-3);
  border-radius: var(--r-moyen);
  background: var(--or-pale);
  color: var(--or-texte);
}
.cc-types .choix-tuile .choix-texte > span:first-child {
  font-size: var(--taille-titre-3);
  font-weight: var(--graisse-titre);
}
.cc-type-liste {
  display: flex;
  flex-direction: column;
  gap: var(--e-1);
  width: 100%;
  margin: 0;
  padding: var(--e-3) 0 0;
  border-top: 1px solid var(--trait);
  list-style: none;
  color: var(--texte-second);
  font-size: var(--taille-petit);
}
.cc-type-liste li {
  display: flex;
  gap: var(--e-2);
  align-items: center;
}
.cc-type-liste svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--succes);
}
.cc-type-delai {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  color: var(--succes);
  font-weight: var(--graisse-forte);
  font-size: var(--taille-petit);
}
@media (max-width: 599px) {
  .cc-types .choix {
    grid-template-columns: minmax(0, 1fr);
  }
}
