/* Mégadanse : page Équipe en frise (mode « profs » de frise-b.js), la frise validée des Événements (frise-b.css) :
   ruban rouge qui se déroule au défilement, couple au bout, chaque prof arrive en pirouette de son côté.
   De l'autre côté de la ligne, à la place de la date : photo cerclée de rouge, nom en très grand, disciplines.
   Dans la carte : UNE miniature de flyer qui bascule en 3D (TiltedCard, accueil-v1.css .tc), pastille du nombre de
   flyers ; créneaux en pastilles ; « S'inscrire » et « Voir le(s) flyer(s) ». */

/* ---------- Côté photo et nom ---------- */
.b-prof-badge { container-type: inline-size; gap: 14px; align-content: center; }
.b-prof-photo {
  display: grid; place-items: center; width: clamp(96px, 8vw, 128px); aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  background: var(--noir-2); box-shadow: 0 0 0 5px var(--blanc), 0 0 0 10px var(--rouge), 0 0 40px 10px rgb(208 17 31 / 0.55);
}
.b-prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.b-prof-photo .b-prof-logo { width: 56%; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.b-prof-nom {
  display: inline-block; margin: 6px 0 0; color: var(--blanc); text-shadow: var(--ombre-texte); transform-origin: 50% 80%;
  font-family: var(--f-geste); font-style: italic; font-weight: 900; font-stretch: 116%; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.02em; overflow-wrap: anywhere;
  font-size: 3rem; font-size: clamp(2.2rem, 12cqi, 5.6rem);
}
.b-prof-nouveau {
  display: inline-block; margin-left: 0.3em; padding: 0.45em 0.8em; border-radius: 999px; vertical-align: middle;
  background: var(--rouge); color: var(--blanc); text-shadow: none; box-shadow: 0 6px 18px rgb(0 0 0 / 0.35);
  font: 800 max(0.7rem, 0.16em)/1 var(--f-texte); font-style: normal; letter-spacing: 0.1em;
}
.b-prof-disciplines {
  margin: 0; color: rgb(255 255 255 / 0.9); text-shadow: var(--ombre-texte);
  font-family: var(--f-geste); font-style: italic; font-weight: 700; font-stretch: 108%; text-transform: uppercase;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.3rem); line-height: 1.2;
}

/* ---------- Carte : miniature du flyer qui bascule ---------- */
.b-prof-carte .b-prof-flyer {
  display: grid; place-items: center; aspect-ratio: auto; overflow: visible; padding: clamp(18px, 2vw, 26px);
  background: radial-gradient(120% 90% at 50% 0%, #4a0c13 0%, var(--noir) 75%);
}
.b-prof-carte .b-prof-flyer .tc-corps { width: 100%; border-radius: 12px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.55); }
.b-prof-carte .b-prof-flyer .tc-corps img { display: block; width: 100%; height: auto; object-fit: contain; transition: none; }
.b-prof-carte a.b-ev-visuel:hover img, .b-prof-carte a.b-ev-visuel:focus-visible img { transform: none; }
/* Plusieurs flyers : cadre carré, flyers superposés qui se relaient en fondu (frise-b.js, defiler). */
.b-prof-carte .b-prof-multi .tc-corps { aspect-ratio: 1; background: var(--noir); }
.b-prof-carte .b-prof-multi .tc-corps img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}
.b-prof-carte .b-prof-multi .tc-corps img.est-vu { opacity: 1; transform: none; }
.b-prof-carte .b-prof-multi .tc-reflet { z-index: 1; }
.b-prof-compte {
  position: absolute; right: 12px; top: 12px; z-index: 4; padding: 7px 12px; border-radius: 999px; pointer-events: none;
  background: var(--rouge); color: var(--blanc); box-shadow: 0 6px 16px rgb(0 0 0 / 0.45);
  font: 800 0.72rem/1 var(--f-texte); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Carte : créneaux, stages, boutons ---------- */
.b-prof-carte .b-ev-corps { display: grid; gap: 16px; align-content: center; }
.b-prof-creneaux { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.b-prof-creneau {
  display: grid; gap: 2px; flex: 1 1 200px; padding: 10px 14px; border-radius: 14px; background: var(--blanc);
  box-shadow: inset 0 0 0 2px var(--rouge); transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.b-prof-creneau span { font-weight: 700; line-height: 1.3; }
.b-prof-creneau b { font-family: var(--f-geste); font-style: italic; font-weight: 800; font-stretch: 104%; font-size: 0.92rem; line-height: 1.2; color: var(--rouge); }
@media (hover: hover) {
  .b-prof-creneau:hover { background: var(--noir); color: var(--blanc); transform: translateY(-2px); }
    .b-prof-creneau:hover b { color: #ff5a64; }
}
.b-prof-note { margin: 0; color: var(--rouge); font-weight: 700; }
/* Flyers : « Voir le flyer » et son texte, comme le site en ligne. */
.b-prof-textes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.b-prof-voir { display: inline-flex; align-items: center; gap: 6px; color: var(--rouge); font-weight: 800; text-decoration: none; }
.b-prof-voir::after { content: '\2192'; transition: transform 0.2s var(--ease); }
.b-prof-voir:is(:hover, :focus-visible)::after { transform: translateX(4px); }
.b-prof-textes p { margin: 2px 0 0; font-size: 0.92rem; line-height: 1.4; color: var(--noir); white-space: pre-line; }
.b-prof-carte .b-ev-texte { color: var(--noir); }
.b-prof-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.b-prof-actions .b-btn { padding: 0.85em 1.4em; font-size: 0.95rem; }
.b-prof-actions .b-btn-ligne { color: var(--noir); }

/* Téléphone : photo et nom au-dessus de la carte, le flyer en haut de la carte. */
@media (max-width: 899px) {
  .b-prof-badge { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .b-prof-photo { grid-row: 1 / span 2; width: 88px; }
  .b-prof-nom { margin: 0; font-size: clamp(1.8rem, 11cqi, 3rem); }
  .b-prof-carte .b-prof-flyer { padding: 18px 18px 22px; }
  .b-prof-carte .b-prof-flyer .tc-corps { width: min(100%, 360px); }
}
/* Grand écran : la carte garde le flyer à gauche, centré verticalement. */
@media (min-width: 900px) {
  .b-prof-carte { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .b-prof-carte .b-prof-flyer { min-height: 0; align-self: stretch; }
}
