/* ct.css */

:root {
  --main-color: #007bff;
  --accent-color: #6c757d;
  --bg-labo: #ffffff;
}

/* On change les valeurs si le body porte la classe .is-connected */

body.is-connected {
  --main-color: #d4af37;
  --accent-color: #198754;
  --bg-labo: #f4f6c5;
}

/* Utilisation des variables dans tes composants */

.ct6-main-badge {
  border: 2px solid var(--main-color) !important;
}

#share-btn {
  color: var(--main-color) !important;
}

small {
  color: var(--accent-color) !important;
}

body {
  background-color: var(--bg-labo) !important;
}

/* Le conteneur de la photo */

.badge-avatar-wrapper {
  position: relative;
  width: 45px;
  height: 45px;
}

.badge-avatar {
  width: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Effet Pro Connecté */

body.is-connected .badge-avatar {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Le Cadenas en pastille */

.badge-status-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Optimisation tactile pour la barre d'identité */

.top-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  min-height: 60px;
}

/* Bouton de partage "Pouce-Friendly" */

#share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--main-color-rgb), 0.1);
}

/* Texte adaptatif */

.sponsor-info {
  flex-grow: 1;
  margin-left: 12px;
  line-height: 1.2;
}

.sponsor-name {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.city-tag {
  font-size: 0.8rem;
  color: var(--accent-color);
}

