/* ===========================================================================
   Le podium du classement et l'anneau de l'objectif (02/10/2026)
   ===========================================================================
   « Rendre le classement plus joli et plus attrayant, qu'il donne envie de
   travailler. » Un podium sur fond sombre dégradé, dans les couleurs de la
   charte : la couronne et l'or pour le premier, l'argent et le bronze pour
   les suivants, des étoiles selon l'avancée vers l'objectif, et un anneau
   qui se remplit pour l'objectif du mois. Aucune couleur hors charte :
   tout passe par les variables de app.css.
--------------------------------------------------------------------------- */

/* --- Le podium ------------------------------------------------------------ */
/* Le fond est clair (02/10/2026, « beaucoup trop foncé ») : la carte
   blanche de la page, avec le même dégradé en halos translucides — bleu,
   corail, jaune — pour rester dans le ton des autres panneaux. Le thème
   sombre, lui, garde le fond profond : c'est celui de ses cartes. */
.podium {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 14px 14px 0;
  margin: 4px 0 12px;
  color: var(--text);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 10%, rgba(245,96,88,.18), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(240,64,93,.14), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(248,184,65,.2), transparent 35%),
    linear-gradient(135deg, rgba(11,65,122,.1) 0%, rgba(255,255,255,0) 45%, rgba(245,96,88,.1) 100%),
    var(--card);
  box-shadow: 0 8px 22px rgba(11,65,122,.08);
}
.podium-entete {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--txt-xs); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 10px;
}
.podium-mois::first-letter { text-transform: uppercase; }
.podium-places {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  align-items: end;
}
.podium-places.places-1 { grid-template-columns: minmax(0, 1fr); }
.podium-places.places-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.podium-place {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; min-width: 0;
}
.podium-couronne { width: 38px; height: 26px; margin-bottom: -4px; color: var(--jaune); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.podium-couronne svg { width: 100%; height: 100%; fill: currentColor; }
.podium-avatar { position: relative; margin-bottom: 8px; }
.podium-avatar .avatar {
  border: 3px solid #FFF; box-shadow: 0 6px 16px rgba(11,65,122,.18);
  background: var(--coral); color: #FFF; font-weight: 700;
}
.rang-1 .podium-avatar .avatar { border-color: var(--jaune); box-shadow: 0 0 0 4px rgba(248,184,65,.3), 0 8px 20px rgba(11,65,122,.2); }
.rang-2 .podium-avatar .avatar { border-color: #8FB3DE; }
.rang-3 .podium-avatar .avatar { border-color: var(--coral); }
.podium-rang {
  position: absolute; right: -4px; bottom: -4px;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--txt-xs); font-weight: 800; color: #FFF;
  background: var(--navy); box-shadow: 0 2px 6px rgba(11,65,122,.25);
}
.rang-1 .podium-rang { background: var(--jaune); color: var(--navy-deep); }
.rang-3 .podium-rang { background: var(--coral); }
.podium-nom {
  font-family: 'Poppins', 'Century Gothic', sans-serif; font-weight: 700;
  font-size: var(--txt-md); line-height: 1.25; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rang-1 .podium-nom { font-size: var(--txt-lg); }
.podium-vous {
  font-size: var(--txt-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 10px; background: rgba(11,65,122,.12); color: var(--navy); vertical-align: middle;
}
/* Sur le podium, « vous » passe sous le nom : à côté, il le tronquait. */
.podium-place .podium-vous { display: block; width: max-content; margin: 3px auto 0; }
.classement-ligne .podium-vous { background: rgba(255,255,255,.2); margin-left: 6px; }
.podium-score {
  margin-top: 5px; padding: 3px 11px; border-radius: 20px;
  font-size: var(--txt-sm); font-weight: 700; color: var(--navy-deep);
  background: linear-gradient(90deg, var(--jaune), var(--coral)); box-shadow: 0 3px 8px rgba(245,96,88,.25);
}
.rang-1 .podium-score { font-size: var(--txt-md); padding: 4px 14px; }
.podium-etoiles { display: inline-flex; gap: 2px; margin-top: 6px; }
.podium-etoiles i { display: inline-block; width: 16px; height: 16px; color: rgba(11,65,122,.16); }
.podium-etoiles i.allumee { color: var(--jaune); filter: drop-shadow(0 1px 2px rgba(11,65,122,.2)); }
.podium-etoiles svg { width: 100%; height: 100%; fill: currentColor; }
.rang-1 .podium-etoiles i { width: 19px; height: 19px; }
.podium-socle {
  width: 100%; margin-top: 10px; border-radius: 10px 10px 0 0;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
  font-family: 'Poppins', 'Century Gothic', sans-serif; font-weight: 800; font-size: var(--txt-lg);
  color: #FFF; background: rgba(11,65,122,.35);
}
.rang-1 .podium-socle { height: 64px; background: linear-gradient(180deg, var(--jaune), var(--coral)); color: var(--navy-deep); }
.rang-2 .podium-socle { height: 44px; background: linear-gradient(180deg, rgba(11,65,122,.55), rgba(11,65,122,.75)); }
.rang-3 .podium-socle { height: 30px; background: linear-gradient(180deg, rgba(245,96,88,.75), rgba(240,64,93,.8)); }
.podium-moi .podium-nom { text-decoration: underline; text-decoration-color: var(--jaune); text-underline-offset: 3px; }

[data-theme="dark"] .podium {
  color: #FFF; border-color: transparent;
  background:
    radial-gradient(circle at 12% 10%, rgba(245,96,88,.45), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(240,64,93,.4), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(248,184,65,.22), transparent 35%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-dark) 100%);
}
[data-theme="dark"] .podium-entete { color: rgba(255,255,255,.72); }
[data-theme="dark"] .podium-etoiles i { color: rgba(255,255,255,.3); }
[data-theme="dark"] .podium-vous { background: rgba(255,255,255,.18); color: #FFF; }
[data-theme="dark"] .rang-2 .podium-socle { background: rgba(255,255,255,.22); }

/* --- La liste, à partir de la quatrième place ------------------------------ */
.classement-liste { display: flex; flex-direction: column; gap: 4px; }
.classement-ligne {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--border);
}
.classement-ligne .avatar { width: 36px; height: 36px; flex-shrink: 0; }
.classement-rang { width: 22px; font-weight: 700; color: var(--text-soft); font-size: var(--txt-sm); text-align: right; }
.classement-nom { flex: 1; min-width: 0; font-weight: 600; font-size: var(--txt-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classement-ligne .podium-etoiles { margin-top: 0; }
.classement-ligne .podium-etoiles i { color: var(--border); }
.classement-ligne .podium-etoiles i.allumee { color: var(--jaune); }
.classement-pastille {
  padding: 3px 10px; border-radius: 20px; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap;
  color: var(--navy-deep); background: linear-gradient(90deg, var(--jaune), var(--coral));
}
.classement-pastille.sobre { background: var(--bg); color: var(--text-soft); }
.classement-moi { background: var(--navy); border-color: var(--navy); color: #FFF; }
.classement-moi .classement-rang { color: rgba(255,255,255,.75); }
.classement-moi .classement-pastille.sobre { background: rgba(255,255,255,.14); color: #FFF; }
.classement-mot { margin-top: 10px; font-size: var(--txt-sm); color: var(--text-soft); }
.classement-vide { font-size: var(--txt-sm); color: var(--text-soft); padding: 6px 0; }

/* --- L'anneau -------------------------------------------------------------- */
.anneau { position: relative; flex-shrink: 0; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau-piste { fill: none; stroke: var(--border); }
.anneau-trait { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1); }
.anneau-stop-1 { stop-color: var(--jaune); }
.anneau-stop-2 { stop-color: var(--coral); }
.anneau-stop-3 { stop-color: var(--brand-red); }
.anneau.atteint .anneau-stop-1, .anneau.atteint .anneau-stop-2, .anneau.atteint .anneau-stop-3 { stop-color: #2E9E5B; }
.anneau-centre {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1;
}
.anneau-pct b { font-family: 'Poppins', 'Century Gothic', sans-serif; font-size: 24px; font-weight: 800; color: var(--navy); }
.anneau-pct small { font-size: var(--txt-sm); font-weight: 700; color: var(--text-soft); margin-left: 1px; }
.anneau.atteint .anneau-pct b { color: #2E9E5B; }
[data-theme="dark"] .anneau-pct b { color: #8FB3DE; }

/* --- L'objectif du mois ----------------------------------------------------- */
.objectif { display: flex; align-items: center; gap: 18px; padding: 6px 0 4px; }
.objectif-infos { flex: 1; min-width: 0; }
.objectif-chiffre { font-size: var(--txt-md); color: var(--text-soft); margin-bottom: 8px; }
.objectif-chiffre b { font-family: 'Poppins', 'Century Gothic', sans-serif; font-size: 29px; font-weight: 800; color: var(--navy); line-height: 1; }
[data-theme="dark"] .objectif-chiffre b { color: #8FB3DE; }
.objectif-sur { font-size: var(--txt-lg); font-weight: 700; color: var(--text); }
.objectif-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.objectif-puce {
  padding: 3px 10px; border-radius: 20px; font-size: var(--txt-xs); font-weight: 700;
  background: rgba(245,96,88,.14); color: var(--coral);
}
.objectif-puce.atteint { background: rgba(46,158,91,.14); color: #2E9E5B; }
.objectif-puce.sobre { background: var(--bg); color: var(--text-soft); }
.objectif-message { font-size: var(--txt-lg); font-weight: 700; color: var(--navy); line-height: 1.4; }
[data-theme="dark"] .objectif-message { color: #8FB3DE; }
.objectif-atteint .objectif-message { color: #2E9E5B; }

/* --- Les objectifs de l'équipe (écran Équipe) : un anneau par personne ------ */
.objectif-membre { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.objectif-membre .anneau-pct b { font-size: var(--txt-md); }
.objectif-membre .anneau-pct small { font-size: var(--txt-xs); }
.objectif-membre-nom { font-weight: 700; font-size: var(--txt-md); }
.objectif-membre-chiffre { font-size: var(--txt-sm); color: var(--text-soft); }

@media (max-width: 560px) {
  .objectif { flex-direction: column; align-items: flex-start; }
  .podium-nom { font-size: var(--txt-sm); }
  .rang-1 .podium-nom { font-size: var(--txt-md); }
}
@media (prefers-reduced-motion: reduce) {
  .anneau-trait { transition: none; }
}

/* ===========================================================================
   Mon objectif du mois, sur le fond du podium (15/10/2026)
   =========================================================================== */
.objectif-carte { padding-bottom: 14px; }
.objectif-carte-corps { display: flex; align-items: center; gap: 18px; }
.objectif-carte-anneau { position: relative; flex-shrink: 0; }
.objectif-carte-avatar .avatar { width: 74px; height: 74px; border: 3px solid #FFF; box-shadow: 0 6px 16px rgba(11,65,122,.18); }
.objectif-couronne { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.objectif-carte-infos { flex: 1; min-width: 0; }
.objectif-carte-chiffre b { font-family: 'Poppins', 'Century Gothic', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.objectif-carte-chiffre .objectif-sur { font-size: var(--txt-xl); font-weight: 700; color: var(--text-soft); }
.objectif-carte-libelle { font-size: var(--txt-sm); color: var(--text-soft); margin: 2px 0 4px; }
.objectif-carte-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.objectif-chip {
  display: inline-flex; align-items: center; font-size: var(--txt-xs); font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(11,65,122,.08); color: var(--navy);
}
.objectif-chip.corail { background: rgba(245,96,88,.14); color: var(--coral); }
.objectif-chip.atteint { background: rgba(46,158,91,.14); color: #2E9E5B; }
.objectif-chip.sobre { background: var(--bg); color: var(--text-soft); }
.objectif-chip.rang { background: rgba(248,184,65,.22); color: var(--navy-deep); }
.objectif-carte-barre { position: relative; height: 8px; border-radius: 999px; background: rgba(11,65,122,.1); margin-top: 14px; overflow: visible; }
.objectif-carte-barre.petite { height: 6px; margin-top: 8px; max-width: 320px; }
.objectif-carte-progres { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--jaune), var(--coral), var(--brand-red)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.objectif-atteint .objectif-carte-progres { background: #2E9E5B; }
.objectif-carte-jalon { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); border: 2px solid rgba(11,65,122,.25); }
.objectif-carte-jalon.passe { border-color: var(--coral); background: var(--coral); }
.objectif-atteint .objectif-carte-jalon.passe { border-color: #2E9E5B; background: #2E9E5B; }
[data-theme="dark"] .objectif-carte-chiffre b { color: #FFF; }
[data-theme="dark"] .objectif-chip { background: rgba(255,255,255,.14); color: #FFF; }
[data-theme="dark"] .objectif-chip.rang { color: #FFF; }
[data-theme="dark"] .objectif-carte-barre { background: rgba(255,255,255,.16); }

/* ===========================================================================
   Fixer les objectifs : une carte par commercial (15/10/2026)
   =========================================================================== */
.assignation-entete {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(11,65,122,.1), rgba(245,96,88,.08)); border: 1px solid var(--border);
}
.assignation-entete-titre { font-size: var(--txt-xl); font-weight: 800; color: var(--navy); }
.assignation-entete-sous { font-size: var(--txt-sm); color: var(--text-soft); margin-top: 2px; }
.assignation-tous { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.assignation-tous label { font-size: var(--txt-sm); font-weight: 600; color: var(--text-soft); }
.assignation-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.assignation {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.assignation:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,65,122,.1); }
.assignation.a-fixer { border-color: rgba(245,96,88,.55); box-shadow: 0 0 0 3px rgba(245,96,88,.12); }
.assignation.fixe { border-color: rgba(46,158,91,.45); }
.assignation.atteint { background: linear-gradient(135deg, rgba(46,158,91,.08), var(--card)); }
.assignation-tete { display: flex; align-items: center; gap: 12px; }
.assignation-avatar .avatar { width: 40px; height: 40px; }
.assignation-identite { min-width: 0; flex: 1; }
.assignation-nom { font-weight: 700; font-size: var(--txt-md); }
.assignation-etat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.assignation-chiffre { font-size: var(--txt-xs); color: var(--text-soft); }
.assignation-saisie { display: flex; align-items: center; gap: 6px; }
.assignation-pas {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  color: var(--navy); font-size: var(--txt-xl); font-weight: 700; cursor: pointer; font-family: inherit; line-height: 1;
}
.assignation-pas:hover { background: var(--navy); color: #FFF; border-color: var(--navy); }
.assignation-nombre {
  width: 64px; text-align: center; padding: 7px 6px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: 'Poppins', 'Century Gothic', sans-serif; font-size: var(--txt-xl); font-weight: 800;
}
.assignation-nombre::-webkit-inner-spin-button, .assignation-nombre::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.assignation-unite { font-size: var(--txt-xs); color: var(--text-soft); }
.assignation-rapides { display: flex; gap: 6px; }
.assignation-rapide {
  flex: 1; padding: 5px 0; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: var(--txt-sm); font-weight: 700; cursor: pointer; font-family: inherit;
}
.assignation-rapide:hover, .assignation-rapide.choisie { background: rgba(11,65,122,.1); border-color: var(--navy); color: var(--navy); }
.assignation-fixer { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.assignation-perso { font-size: var(--txt-sm); }
.assignation-perso summary { cursor: pointer; color: var(--text-soft); font-weight: 600; }
.objectif-perso-titre { font-size: var(--txt-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-top: 14px; }
