/*
 * IMMGO — Écrans alignés sur le cahier Vol. 2, section 17 : éditeur de la marque, aperçu en trois vues, moyens de paiement en cartes
 * Auteur : Jacks Ngalangala
 */

/* ─── Éditeur de la marque (écran 71) ─── */
.cc-identite-visuelle .carte-corps {
  display: flex;
  flex-direction: column;
  gap: var(--e-5);
}
.cc-libelle {
  font-weight: var(--graisse-forte);
}
.cc-logo-zone {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  padding: var(--e-4);
  border: 2px dashed var(--or-trait);
  border-radius: var(--r-moyen);
  background: var(--or-pale);
}
.cc-logo-initiales,
.cc-logo-image {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--r-petit);
  background: var(--or);
  color: var(--texte-sur-or);
  font-weight: var(--graisse-titre);
  object-fit: contain;
}
.cc-logo-texte {
  flex: 1 1 180px;
  min-width: 0;
}
.cc-logo-zone {
  flex-wrap: wrap;
}
.cc-teintes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}
.cc-teinte {
  width: 44px;
  height: 44px;
  border: 2px solid var(--surface);
  border-radius: var(--r-petit);
  background: var(--cc-teinte);
  box-shadow: 0 0 0 1px var(--trait-fort);
  cursor: pointer;
}
.cc-teinte[aria-pressed='true'] {
  box-shadow: 0 0 0 3px var(--or);
}
.cc-teinte:focus-visible {
  outline: none;
  box-shadow: var(--anneau);
}
.cc-polices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--e-3);
}
.cc-police {
  display: flex;
  flex-direction: column;
  gap: var(--e-1);
  padding: var(--e-3) var(--e-4);
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-moyen);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cc-police[aria-pressed='true'] {
  border-color: var(--or);
  background: var(--or-pale);
}
.cc-police-nom {
  font-size: var(--taille-grand);
  font-weight: var(--graisse-forte);
}
.cc-police[data-typo='serif'] .cc-police-nom,
.cc-apercu-vues[data-typo='serif'] {
  font-family: var(--police-serif);
}
.cc-domaine {
  display: flex;
  justify-content: space-between;
  padding: var(--e-3) var(--e-4);
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-moyen);
}

/* ─── Aperçu en trois vues ─── */
.cc-apercu-titre {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  font-size: var(--taille-grand);
  font-weight: var(--graisse-forte);
}
.cc-apercu-vues {
  --cc-primaire: var(--or);
  --cc-secondaire: var(--nuit);
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
}
.cc-apercu-haut {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--e-4);
}
@media (max-width: 599px) {
  .cc-apercu-haut {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cc-av-vue {
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: var(--r-grand);
  background: var(--surface);
}
.cc-av-barre {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  padding: var(--e-2) var(--e-3);
  background: var(--surface-douce);
  border-bottom: 1px solid var(--trait);
  font-size: var(--taille-legende);
  color: var(--texte-second);
  overflow-wrap: anywhere;
}
.cc-av-barre svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.cc-av-date {
  margin-left: auto;
}
.cc-av-portail,
.cc-av-message {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  padding: var(--e-4);
}
.cc-av-entete {
  display: flex;
  align-items: center;
  gap: var(--e-2);
}
.cc-av-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-petit);
  background: var(--cc-primaire);
  color: var(--surface);
  font-size: var(--taille-legende);
  font-weight: var(--graisse-titre);
  object-fit: contain;
}
.cc-av-logo-petit {
  width: 28px;
  height: 28px;
}
.cc-av-accroche {
  display: flex;
  flex-direction: column;
  gap: var(--e-1);
  padding: var(--e-3);
  border-radius: var(--r-petit);
  background: var(--cc-primaire);
  color: var(--surface);
}
.cc-av-biens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e-2);
}
.cc-av-bien {
  height: 44px;
  border-radius: var(--r-petit);
  background: var(--surface-douce);
  border: 1px solid var(--trait);
}
.cc-av-legende {
  text-align: center;
  font-size: var(--taille-legende);
  color: var(--texte-faible);
}
.cc-av-admin {
  display: flex;
  min-height: 150px;
}
.cc-av-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-2);
  width: 52px;
  padding: var(--e-3) 0;
  background: var(--cc-secondaire);
}
.cc-av-rail span:not(.cc-av-logo) {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--nuit-texte-second);
}
.cc-av-admin-corps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  padding: var(--e-3);
}
.cc-av-tuiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e-2);
}
.cc-av-tuiles span {
  height: 34px;
  border-radius: var(--r-petit);
  background: var(--surface-douce);
  border-top: 3px solid var(--cc-primaire);
}
.cc-av-salut {
  font-weight: var(--graisse-forte);
}
.cc-av-lien {
  color: var(--cc-primaire);
  font-weight: var(--graisse-forte);
}
.cc-av-signature {
  white-space: pre-line;
  color: var(--texte-second);
  font-size: var(--taille-petit);
}

/* ─── Moyens de paiement de l'espace en cartes (écran 72) ─── */
.cc-moyens.gd-grille {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.cc-moyen .carte-corps {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
}
.cc-moyen-tete {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  padding-bottom: var(--e-3);
  border-bottom: 1px solid var(--trait);
}
.cc-moyen-nom {
  flex: 1;
  min-width: 0;
}
@media (max-width: 599px) {
  .cc-moyens.gd-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cc-moyen-tete .interrupteur {
  flex: none;
}
.cc-moyen-tete .interrupteur .choix-texte {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cc-moyens .gd-outils {
  top: auto;
  left: auto;
  bottom: var(--e-3);
  right: var(--e-3);
}
