/* Le MENU DU COMPTE (Figma CFT-2107, cadre 97:80 ; CFT-2108). Construit par
   assets/js/compte.js (« MENU DU COMPTE ») quand un talent est connecté : sa photo dans la
   barre ouvre ce menu au lieu de partir dans l'app. Même mécanique que « Se connecter » :
   position fixe calée par le script sous la barre, à droite ; feuille sur téléphone.

   CFT-2108 : la carte teal du cadre 97:80 remplace la carte « Castflow alpha 0.4 » dont le
   bouton disait « Voir ta place ». Elle porte le rang, le bouton de partage et la phrase du
   prénom ; la ligne d'action sous elle dit « Télécharger l'app » ou « Tu as l'app ».
   Largeur, rayons, dégradé, typographie et espacements sont ceux du cadre (388 px, rayon 28,
   carte rayon 24, dégradé 169,36 degrés).

   CFT-2162 : la carte prend la forme et les couleurs des cinq visuels CFT-1957 (cadres
   239:60 à 239:220) : teal, or ou rouge selon l'état, la pastille blanche « Inviter un ami »
   sous le texte, et les badges des magasins dans la carte pour « C'est ton tour ».

   POURQUOI UNE FEUILLE À PART (CFT-2019, rouvert). Le menu appartient à la BARRE, pas à la
   page, et les pages ne chargent pas la même feuille : celles du site prennent styles.css,
   /talent/ prend v3.css (la refonte du 6 novembre 2026) et /en/talent/ prend encore v2.css.
   La première version du correctif avait recopié ces règles dans v3.css : le menu s'ouvrait
   sur /talent/, et restait sur /en/talent/ une boîte sans style, tout en bas du document.
   Une seule copie, chargée par TOUTES les pages qui chargent compte.js : c'est ce que
   server/menu-compte.selftest.js vérifie, page par page.

   La photo de la barre, menu ouvert, garde l'anneau teal du survol. */

.cf-compte {
  position: fixed; top: 0; left: 0; z-index: 60; width: 388px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 6px; border-radius: 28px; background: #fff; color: #111114;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14); text-align: left; font-weight: 400;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}
.cf-compte.is-open { opacity: 1; visibility: visible; transform: none; }
.cf-compte > * { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cf-compte.is-open > * { opacity: 1; transform: none; }
.cf-compte.is-open > :nth-child(2) { transition-delay: 0.04s; }
.cf-compte.is-open > :nth-child(3) { transition-delay: 0.08s; }
.cf-compte.is-open > :nth-child(n+4) { transition-delay: 0.12s; }
.cf-compte p { margin: 0; }
/* Ces éléments portent leur propre display : l'attribut hidden doit gagner. */
.cf-compte [hidden] { display: none !important; }

.cf-compte__identite { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 12px 10px; }
.cf-compte__photo { display: flex; }
.cf-compte__photo .cf-avatar { width: 48px; height: 48px; font-size: 18px; }
.cf-compte__qui { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cf-compte__qui b { font-size: 17px; font-weight: 500; line-height: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-compte__qui span { font-size: 14px; line-height: 18px; color: #6b6b73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* LA CARTE « TA PLACE » (cadre 97:30). Le dégradé, le rang en Unbounded, le téléphone
   penché à droite et le bouton de partage en verre sont ceux du cadre. Les états qui ne
   sont pas dessinés (« Tu as l'app », « Tu n'es pas dans la file ») gardent cette forme et
   changent la phrase, jamais la mise en page. */
.cf-compte__place {
  flex: none; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 22px 22px 16px; border-radius: 24px; color: #fff;
  background-image: linear-gradient(169.36deg, #0b87a5 8.49%, #086b86 45.85%, #04465c 91.51%);
}
/* CFT-2162 : les deux autres couleurs de la maquette, celles des visuels CFT-1957 (or pour
   « tout le monde peut te dépasser », rouge pour un recul). Mêmes valeurs que castings.css. */
.cf-compte__place[data-etat="depasse"] {
  background-image: linear-gradient(169.36deg, #bf9c0d 8.49%, #865a08 45.85%, #5c3f04 91.51%);
}
.cf-compte__place[data-etat="recule"] {
  background-image: linear-gradient(169.36deg, #a50b0b 8.49%, #860808 45.85%, #5c0404 91.51%);
}
.cf-compte__tel {
  position: absolute; right: 4px; top: 34px; width: 118px; height: auto; transform: rotate(8deg);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35)); pointer-events: none;
  transition: opacity 0.25s ease;
}
/* Le repli de partage ouvert : les trois portes prennent la largeur de la carte. */
.cf-compte__place.is-partage .cf-compte__tel { opacity: 0; }
.cf-compte__place-texte { position: relative; display: flex; flex-direction: column; gap: 2px; max-width: 216px; }
.cf-compte__place-eb { font-size: 15px; font-weight: 500; line-height: 20px; color: rgba(255, 255, 255, 0.88); }
.cf-compte__place-n {
  font-family: Unbounded, Geist, sans-serif; font-weight: 800; font-size: 48px; line-height: 1.05;
  letter-spacing: -0.48px; color: #fff; overflow-wrap: anywhere;
}
.cf-compte__place-etat { font-size: 15px; line-height: 1.35; color: #fff; }
/* Le détail d'un état que le cadre ne dessine pas : « Ton tour : 21 janv. », « Tu as reculé
   depuis ta dernière visite. ». Même carte, une ligne de plus. */
.cf-compte__place-detail { position: relative; max-width: 218px; font-size: 12.5px; line-height: 17px; color: rgba(255, 255, 255, 0.82); }
.cf-compte__place[data-etat="chargement"] .cf-compte__place-n { opacity: 0.55; }
.cf-compte__place[data-etat="hors-file"], .cf-compte__place[data-etat="file-hors"] { padding-bottom: 22px; }

/* LE PARTAGE, EN PASTILLE BLANCHE (CFT-2162). Les cadres 239:60 à 239:220 dessinent sous le
   texte une pilule blanche « + Invite a friend » : c'est le même bouton que le verre du cadre
   137:103, il ouvre la feuille de partage de l'appareil (ou les trois portes). */
.cf-compte__partage {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #111114; font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.cf-compte__partage:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 40, 50, 0.28); }
.cf-compte__partage:active { transform: scale(0.97); }
.cf-compte__partage-plus { display: flex; align-items: center; justify-content: center; }
.cf-compte__partage svg { display: block; }
.cf-compte__partage-note { position: relative; max-width: 218px; margin-top: -2px; font-size: 12.5px; line-height: 17px; color: rgba(255, 255, 255, 0.82); }

/* LE REPLI SANS FEUILLE DE PARTAGE (CFT-2108) : les trois portes du billet, dans le style
   du menu. Courriel et Facebook sont des liens, « Copier le lien » un bouton. */
.cf-compte__partage-choix { position: relative; display: flex; flex-wrap: wrap; gap: 6px; width: 100%; max-width: 100%; }
.cf-compte__porte {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.14); color: #fff;
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background 0.2s ease;
}
.cf-compte__porte:hover { background: rgba(255, 255, 255, 0.28); }
.cf-compte__partage-etat { position: relative; min-height: 0; font-size: 12.5px; line-height: 16px; color: rgba(255, 255, 255, 0.92); }
.cf-compte__partage-etat:empty { display: none; }

/* LES BADGES DES MAGASINS (CFT-2162, cadre 239:220) : dans la carte, pour « C'est ton tour »,
   les deux badges que l'app donne. La ligne « Télécharger l'app » sous la carte reste. */
.cf-compte__magasins { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-compte__magasins a { display: block; line-height: 0; }
.cf-compte__magasins img { display: block; height: 44px; width: auto; }

/* Le compte hors file : la porte pour en parler, et la phrase qui l'explique. */
.cf-compte__place-lien {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 18px;
  border-radius: 999px; background: #fff; color: #111114; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.cf-compte__place-lien:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 40, 50, 0.28); }
.cf-compte__place-lien .cf-compte__chevron { color: #111114; }
.cf-compte__place-note { position: relative; font-size: 12.5px; line-height: 17px; color: rgba(255, 255, 255, 0.82); }

/* LA LIGNE D'ACTION (CFT-2126, CFT-2108) : « Télécharger l'app » ouvre la fenêtre des
   boutiques ; qui a l'app lit « Tu as l'app » et ne voit aucun lien de boutique. */
.cf-compte__app {
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px 8px 16px;
  border-radius: 16px; color: #111114; text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background 0.2s ease;
}
a.cf-compte__app:hover { background: #f5f6f7; }
.cf-compte__app svg { flex: none; color: #007692; }
.cf-compte__app--installe svg { color: #111114; }
.cf-compte__app-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cf-compte__app-mot { font-size: 15px; font-weight: 500; line-height: 19px; }
.cf-compte__app-note { font-size: 13px; font-weight: 400; line-height: 17px; color: #6b6b73; }

/* « Castflow, ça t'aide ? » : note en cinq tuiles, mot, envoi dans le champ. */
.cf-compte__avis { flex: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 18px 16px 16px; border-radius: 20px; background: #f5f6f7; }
.cf-compte__question { font-size: 18px; font-weight: 500; line-height: 23px; letter-spacing: -0.02em; }
.cf-compte__note { display: flex; flex-direction: column; gap: 8px; }
.cf-compte__tuiles { display: flex; gap: 6px; }
.cf-compte__tuile {
  flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border-radius: 12px; border: 1px solid #e4e7ea; background: #fff; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cf-compte__tuile svg { fill: none; stroke: #c9ced3; stroke-width: 1.5; transition: fill 0.2s ease, stroke 0.2s ease; }
.cf-compte__tuile:hover { border-color: #007692; }
.cf-compte__tuile:active { transform: scale(0.96); }
.cf-compte__tuile.is-on { background: #007692; border-color: #007692; }
.cf-compte__tuile.is-on svg { fill: #fff; stroke: #fff; }
.cf-compte__libelle { font-size: 12px; line-height: 16px; color: #6b6b73; }
.cf-compte__libelle b { font-weight: 500; color: #007692; }
.cf-compte__champ { position: relative; display: block; border-radius: 16px; border: 1px solid #e4e7ea; background: #fff; transition: border-color 0.2s ease; cursor: text; }
.cf-compte__champ:focus-within { border-color: #111110; }
.cf-compte__champ textarea {
  display: block; width: 100%; height: 94px; margin: 0; padding: 12px 54px 12px 14px; border: 0; outline: 0; resize: none; background: transparent;
  font: inherit; font-size: 13px; line-height: 18px; color: #111110; box-sizing: border-box;
}
.cf-compte__champ textarea::placeholder { color: #9aa1a8; opacity: 1; }
.cf-compte__champ textarea:focus-visible { outline: none; }
.cf-compte__envoyer {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 99px; background: #111110; cursor: pointer; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.cf-compte__envoyer:hover { background: #007692; transform: translateX(2px); }
.cf-compte__envoyer[disabled] { cursor: progress; opacity: 0.6; transform: none; }
.cf-compte__envoyer img { width: 16px; height: 16px; display: block; }
.cf-compte__etat { font-size: 12px; line-height: 16px; color: #6b6b73; }
.cf-compte__etat.is-erreur { color: #c62828; }
.cf-compte__merci { font-size: 14px; line-height: 20px; color: #3f4750; }

/* CFT-1761 : la porte vers la page de bienvenue (les quatre questions du profil),
   sous la ligne d'action. Même forme que « Se déconnecter », la flèche poussée à droite. */
.cf-compte__lien {
  flex: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px 0 16px; border-radius: 16px;
  color: #111114; text-decoration: none; font-size: 16px; font-weight: 500; transition: background 0.2s ease;
}
.cf-compte__lien:hover { background: #f5f6f7; }
.cf-compte__lien svg { flex: none; color: #007692; }
.cf-compte__lien span:first-of-type { flex: 1; min-width: 0; }
.cf-compte__chevron { display: flex; color: #9aa1a8; }

.cf-compte__filet { flex: none; margin: 2px 0; height: 0; border: 0; border-top: 1px solid #e3e6ea; }
.cf-compte__sortir {
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 0 16px; border: 0; border-radius: 16px; background: transparent; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; color: #111114; text-align: left; transition: background 0.2s ease;
}
.cf-compte__sortir:hover { background: #f5f6f7; }
.cf-compte__sortir[disabled] { cursor: progress; color: #6b6b73; }
.cf-compte__sortir svg { flex: none; }

.cf-compte :focus-visible { outline: 2px solid #111110; outline-offset: 2px; }
.cf-compte__place :focus-visible, .cf-compte__porte:focus-visible { outline-color: #fff; }
/* La pastille blanche (CFT-2162) : un contour blanc disparaîtrait dans son fond. */
.cf-compte__partage:focus-visible { outline-color: #111110; }
/* La photo de la barre, menu ouvert : l'anneau teal du survol reste. */
.cf-membre[aria-expanded="true"] .cf-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007692; }

/* Téléphone : une feuille sous la barre, sur le voile de « Se connecter ». Le cadre mobile
   du menu n'est pas dessiné dans CFT-2107 : c'est la même carte, à la largeur de la feuille. */
.cf-compte--feuille { top: 84px; left: 16px; right: 16px; width: auto; max-width: 372px; margin: 0 auto; max-height: calc(100dvh - 100px); z-index: 80; }
.cf-compte--feuille .cf-compte__tel { width: 100px; right: 2px; top: 40px; }
.cf-compte--feuille .cf-compte__place-texte { max-width: 180px; }
.cf-compte--feuille .cf-compte__partage-note { max-width: 172px; }
.cf-compte--feuille .cf-compte__place-detail { max-width: 172px; }
@media (prefers-reduced-motion: reduce) {
  .cf-compte, .cf-compte > * { transition: none; transform: none; }
}

/* ── SOUS-MENU « SE CONNECTER » (Figma 1492:25281, qui remplace 1490:24861) ───────
   Construit par assets/js/compte.js (CFT-2038, avant : main.js, que les deux pages du talent
   ne chargent pas), en position fixe calée par le script sur la barre (.cf-nav n'est pas
   positionnée : le panneau « Application » en dépend). Ces règles vivent ici, dans la feuille
   que TOUTES les pages qui chargent compte.js chargent aussi, /talent/ et /en/talent/ compris :
   c'est la leçon de CFT-2019, où un menu recopié dans v3.css restait sans style sur /en/talent/. Bloc acteur blanc : le visuel des
   castings dans un téléphone (image exportée de Figma, 372 × 200 affichés, ×2 dans le fichier),
   puis la connexion de l'app ; ligne noire « Castflow Studio » pour les agences. 400 px, calé sur le bord
   droit de la barre, 16 px dessous ; sur téléphone, une feuille sous la barre. */
.cf-connexion {
  position: fixed; top: 0; left: 0; z-index: 60; width: 400px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 12px; border-radius: 32px; background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14); text-align: left; font-weight: 400;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}
.cf-connexion.is-open { opacity: 1; visibility: visible; transform: none; }
.cf-connexion > * { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cf-connexion.is-open > * { opacity: 1; transform: none; }
.cf-connexion.is-open > :nth-child(2) { transition-delay: 0.06s; }

.cf-connexion__acteurs {
  display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 20px; border-radius: 24px;
  background: #fff; color: #0b0c0d;
}
.cf-connexion__visuel {
  height: 200px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(24.56deg, #007692 21.6%, #009dc2 98.9%);
}
.cf-connexion__visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-connexion__corps { display: flex; flex-direction: column; gap: 12px; padding: 8px 12px 0; }
.cf-connexion__titre { margin: 0; font-size: 22px; font-weight: 500; line-height: 29px; letter-spacing: -0.44px; color: #0b0c0d; }
.cf-connexion__fournisseurs { display: flex; gap: 12px; }
.cf-connexion__fournisseurs[hidden] { display: none; }
.cf-connexion__fournisseur {
  flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 18px; background: #fff; border: 1px solid #e6e8eb; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cf-connexion__fournisseur[hidden] { display: none; }
.cf-connexion__fournisseur:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.cf-connexion__fournisseur img { width: 24px; height: 24px; display: block; }
.cf-connexion__form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cf-connexion__champs { display: flex; flex-direction: column; gap: 10px; }
.cf-connexion__champ {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 20px; border-radius: 18px;
  background: #f5f6f7; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.2s ease; cursor: text;
}
.cf-connexion__champ:focus-within { box-shadow: inset 0 0 0 2px #0b0c0d; }
.cf-connexion__champ.is-erreur { box-shadow: inset 0 0 0 2px #e5484d; }
.cf-connexion__boite { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cf-connexion__etiquette { font-size: 12px; font-weight: 500; line-height: 16px; color: rgba(11, 12, 13, 0.55); }
.cf-connexion__champ input {
  width: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; line-height: 21px; color: #0b0c0d;
}
.cf-connexion__champ input::placeholder { color: rgba(11, 12, 13, 0.45); opacity: 1; }
.cf-connexion__afficher {
  flex: none; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 18px; color: #0b0c0d;
}
.cf-connexion__oubli {
  align-self: flex-end; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 18px; color: rgba(107, 114, 128, 0.9);
}
.cf-connexion__oubli:hover, .cf-connexion__afficher:hover { text-decoration: underline; }
.cf-connexion__oubli:hover { color: #0b0c0d; }
.cf-connexion__envoyer {
  display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 9px 0 28px;
  border: 0; border-radius: 999px; background: #0b0c0d; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 500; line-height: 22px; color: #fff;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s ease;
}
.cf-connexion__envoyer:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 10, 10, 0.22); }
.cf-connexion__envoyer[disabled] { cursor: progress; opacity: 0.75; transform: none; box-shadow: none; }
.cf-connexion__rond {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 99px; background: #fff; transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.cf-connexion__envoyer:hover .cf-connexion__rond { transform: translateX(2px); }
.cf-connexion__rond img { width: 16px; height: 16px; display: block; }
.cf-connexion__etat { margin: -2px 0 0; min-height: 0; font-size: 13px; line-height: 18px; color: #3f4750; text-align: center; }
.cf-connexion__etat:empty { display: none; }
.cf-connexion__etat.is-erreur { color: #c62828; }
.cf-connexion__compte { margin: 0; font-size: 13px; line-height: 17px; color: rgba(107, 114, 128, 0.8); text-align: center; }
.cf-connexion__compte a { font-weight: 600; color: #0b0c0d; text-decoration: none; }
.cf-connexion__compte a:hover { text-decoration: underline; }

.cf-connexion__agences {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px;
  border-radius: 24px; background: #161616; color: #fff; text-decoration: none;
}
.cf-connexion__studio { display: flex; align-items: center; gap: 10px; }
.cf-connexion__tuile {
  flex: none; width: 39px; height: 39px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, 0.1);
}
.cf-connexion__tuile img { width: 23.42px; height: 29.06px; display: block; margin: 2px 0 0 1px; }
.cf-connexion__nom { display: flex; flex-direction: column; gap: 2px; }
.cf-connexion__nom b { font-size: 15px; font-weight: 500; line-height: 20px; }
.cf-connexion__nom span { font-size: 13px; line-height: 17px; color: rgba(255, 255, 255, 0.6); }
.cf-connexion__agences .cf-connexion__rond { width: 38px; height: 38px; background: #fff; }
.cf-connexion__agences:hover .cf-connexion__rond { transform: translateX(3px); }

.cf-connexion :focus-visible { outline: 2px solid #0b0c0d; outline-offset: 3px; }
.cf-connexion__agences:focus-visible { outline-color: #007692; }

/* Téléphone : une feuille sous la barre, sur un voile. */
.cf-connexion--feuille {
  top: 84px; left: 16px; right: 16px; width: auto; max-width: 400px; margin: 0 auto;
  max-height: calc(100dvh - 100px); z-index: 80;
}
.cf-connexion-voile { position: fixed; inset: 0; z-index: 79; background: rgba(10, 10, 10, 0.35); opacity: 0; transition: opacity 0.3s ease; }
.cf-connexion-voile.is-open { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cf-connexion, .cf-connexion > * { transition: none; transform: none; }
}

/* ── LA FENÊTRE DES BOUTIQUES (CFT-2126, Figma CFT-1957) ─────────────────────────
   Construite par assets/js/compte.js (« LA FENÊTRE DES BOUTIQUES »), ouverte par
   « Télécharger l'app » du menu du compte et par tout bouton `#telecharger` des
   pages /castings/.

   ELLE VIVAIT DANS castings.css, donc SEULEMENT sur les fiches ; le menu du compte
   est sur toutes les pages qui portent la barre, donc elle est ici, avec lui, dans
   la feuille que ces pages chargent toutes (même leçon que CFT-2019).

   DEUX FORMES, UN SEUL BALISAGE. Au-dessus de 520 px, la fenêtre blanche du cadre
   « Fenêtre - Télécharger l'app » : un titre, une ligne par boutique. En dessous, la
   carte « fenêtre » du cadre « Pop up » : le même contenu dans la carte teal, le
   téléphone au bas, les boutiques empilées. La bascule est une règle de largeur. */
.cft { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cft[hidden] { display: none !important; }
.cft__fond { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.45); }
.cft__panneau {
  position: relative; display: flex; flex-direction: column; gap: 18px; width: 440px; max-width: 100%;
  padding: 40px 36px 36px; border-radius: 28px; background: #fff; box-shadow: 0 30px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden; text-align: left; font-weight: 400; color: #0a0a0a;
}
.cft__x {
  position: absolute; top: 20px; right: 20px; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 18px; background: #f2f6f8; cursor: pointer;
}
.cft__titre { margin: 0; font-family: Unbounded, Geist, sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: #0a0a0a; }
.cft__sous { margin: 0; font-size: 16px; line-height: 1.5; color: #4a4f55; }
.cft__magasin {
  display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; padding: 14px 20px;
  border-radius: 16px; background: #0a0a0a; color: #fff; text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.cft__magasin:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22); }
.cft__logo { flex: 0 0 auto; }
.cft__magasin-texte { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.cft__magasin-sur { font-size: 12px; color: #c7ccd1; }
.cft__magasin-nom { font-size: 19px; font-weight: 500; }
.cft__magasin-os { font-size: 13px; color: #9aa0a6; }
/* Le téléphone n'appartient qu'à la carte du téléphone. */
.cft__tel { display: none; }
.cft :focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }

@media (max-width: 519px) {
  .cft { padding: 16px; }
  .cft__panneau {
    width: 100%; max-width: 383px; height: min(560px, calc(100dvh - 32px)); padding: 32px 22px 0; gap: 12px;
    border-radius: 28px; color: #fff; background: linear-gradient(24.56deg, #007692 21.6%, #009dc2 98.9%);
  }
  .cft__x { top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, 0.18); }
  .cft__x img { filter: invert(1); }
  .cft__titre { font-size: 28px; line-height: 1.06; color: #fff; }
  .cft__sous { font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, 0.88); }
  .cft__magasin { background: #fff; color: #0a0a0a; }
  .cft__magasin:hover { transform: none; box-shadow: none; }
  .cft__magasin-sur { color: #6b747c; }
  .cft__magasin-os { color: #9aa0a6; }
  /* La pomme est un dessin BLANC (elle vit sur la ligne noire de l'ordinateur) : sur la
     ligne blanche de la carte, elle disparaîtrait. Le disque de Google Play, lui, est
     coloré et se voit tout seul. */
  .cft__magasin[data-magasin="apple"] .cft__logo { filter: invert(1); }
  /* Le téléphone de la maquette occupe le bas de la carte et sort du cadre : la carte a une
     hauteur fixe et `overflow:hidden`, donc on n'en voit que le haut. Aucune marge négative :
     un débordement négatif faisait remonter le téléphone sur le titre. */
  .cft__tel { display: block; align-self: center; width: 300px; height: auto; margin: 6px 0 0; }
  .cft :focus-visible { outline-color: #fff; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LE MENU DU TÉLÉPHONE EN BENTO (Figma CFT-1957, section 223:526, 20 nov. 2026).
   Il remplace le tiroir sur toutes les pages, /talent/ comprise : une page
   pleine, avec sa barre (logo + croix), la carte Castflow, Studio, Directeur
   de casting, les quatre liens, la tuile du compte et « Nous écrire ».
   Quatre états pour la carte Castflow (`data-etat` sur `.cf-bento`) :
     rejoindre  223:60   pas de place : pastille « Rejoindre »
     place      223:176  dans la file : le rang et le partage
     tour       223:283  c’est ton tour : les deux badges des boutiques
     app        223:406  l’app est à toi : pastille « Télécharger Castflow. »
   Construit et branché par assets/js/compte.js (bloc « MENU BENTO »).
   ═══════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Unbounded Repli"; font-weight: 800 900; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Unbounded-Black.woff2") format("woff2"); }
html.cf-bento-ouvert { overflow: hidden; }
.cf-bento { position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; box-sizing: border-box;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #eef1f4; color: #111114; font-family: Geist, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; text-align: left;
  opacity: 0; transition: opacity 0.26s ease; }
.cf-bento[hidden] { display: none; }
.cf-bento.on { opacity: 1; }
.cf-bento *, .cf-bento *::before, .cf-bento *::after { box-sizing: border-box; }
.cf-bento a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cf-bento p { margin: 0; }
.cf-bento img { display: block; max-width: none; }
.cf-bento__in { max-width: 460px; margin: 0 auto; }

/* la barre : logo et croix (223:61) */
.cf-bento__barre { display: flex; align-items: center; justify-content: space-between; height: 56px;
  margin: 0 -4px; padding: 0 8px 0 20px; border-radius: 28px; background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.cf-bento__fermer { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; background: #f1f3f5; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }

.cf-bento__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.cf-bento__grille > * { opacity: 0; transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cf-bento.on .cf-bento__grille > * { opacity: 1; transform: none; }
.cf-bento.on .cf-bento__grille > :nth-child(2), .cf-bento.on .cf-bento__grille > :nth-child(3) { transition-delay: 0.05s; }
.cf-bento.on .cf-bento__grille > :nth-child(n+4) { transition-delay: 0.1s; }
.cf-bento.on .cf-bento__grille > :nth-child(n+6) { transition-delay: 0.14s; }
.cf-bento.on .cf-bento__grille > :nth-child(n+8) { transition-delay: 0.18s; }
.cf-bento__carte { position: relative; overflow: hidden; border-radius: 24px; }
/* le lien qui prend toute la carte ; ce qui se touche à part passe au-dessus */
.cf-bento__tout { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cf-bento__titre { position: absolute; display: flex; align-items: center; }
.cf-bento__titre b { font-weight: 500; white-space: nowrap; }
.cf-bento__version { display: inline-block; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.16);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500;
  line-height: 14px; letter-spacing: 0.66px; color: #fff; white-space: nowrap; }

/* ── Castflow (223:69) ── */
.cf-bento__castflow { grid-column: 1 / -1; height: 240px; background: linear-gradient(180deg, #007692, #009dc2); }
.cf-bento__castflow .cf-bento__titre { left: 22px; top: 22px; gap: 10px; }
.cf-bento__castflow .cf-bento__titre b { font-size: 20px; line-height: 26px; letter-spacing: -0.3px; color: #fff; }
.cf-bento[data-etat="app"] .cf-bento__castflow .cf-bento__version { font-family: inherit; }
/* la scène garde les cotes de la maquette (358 de large), centrée dans la carte */
.cf-bento__scene { position: absolute; left: 50%; top: 0; width: 358px; height: 240px; margin-left: -179px; pointer-events: none; }
.cf-bento__tels { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cf-bento[data-etat="app"] .cf-bento__tels { transform: translate(-5.96px, -25px); }
.cf-bento__tel { position: absolute; width: 84px; height: 173px; border-radius: 16px; background: #0e0f11; overflow: hidden; }
.cf-bento__tel::before { content: ""; position: absolute; left: 3px; top: 3px; width: 78px; height: 167px;
  border-radius: 12.5px; background: linear-gradient(180deg, #2f8bb0, #255c75); }
.cf-bento__tel::after { content: ""; position: absolute; left: 29.5px; top: 8px; width: 25px; height: 5.5px;
  border-radius: 3px; background: #0e0f11; }
.cf-bento__tel img { position: absolute; }
.cf-bento__tel--g { left: 50.34px; top: 119.98px; transform: rotate(10deg); }
.cf-bento__tel--d { left: 228.38px; top: 113.39px; transform: rotate(-10deg); }
.cf-bento__tel--c { left: 137px; top: 102px; }
.cf-bento__tel--g img, .cf-bento__tel--d img { left: 21px; top: 55px; }
.cf-bento__tel--c img { left: 18px; top: 59px; }

/* les pastilles : une seule visible, selon l’état */
.cf-bento__pastille { position: absolute; z-index: 2; left: 18px; top: 152px; display: none; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 22px; background: #fff; box-shadow: 0 10px 24px rgba(0, 26, 38, 0.25); }
.cf-bento[data-etat="rejoindre"] .cf-bento__pastille--rejoindre,
.cf-bento[data-etat="place"] .cf-bento__pastille--place,
.cf-bento[data-etat="app"] .cf-bento__pastille--app { display: flex; }
.cf-bento__pastille-texte { display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap; }
.cf-bento__pastille-eb { font-size: 12px; font-weight: 500; line-height: 16px; color: #6b6b73; }
.cf-bento__pastille-mot { font-family: Unbounded, "Unbounded Repli", Geist, sans-serif; font-weight: 800; font-size: 20px;
  line-height: 25px; letter-spacing: -0.4px; color: #07637d; }
.cf-bento__pastille--place .cf-bento__pastille-mot { font-size: 26px; line-height: 32px; letter-spacing: -0.52px; }
.cf-bento__rond { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: #07637d; color: #fff; font-size: 18px; font-weight: 600; line-height: 1; }
/* le partage : le bouton rond en verre d’Apple (223:221), en clair sur la pastille blanche */
.cf-bento__partage { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #111114;
  background: linear-gradient(180deg, #fafafa, #ededee);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); -webkit-tap-highlight-color: transparent; }
.cf-bento__partage:active { transform: scale(0.94); }
.cf-bento__partage svg + svg, .cf-bento__partage.is-fait svg { display: none; }
.cf-bento__partage.is-fait svg + svg { display: block; }
.cf-bento__pastille--app { top: 162px; padding: 10px 10px 10px 14px; border-radius: 62px; }
.cf-bento__icone { flex: none; width: 40px; height: 40px; border-radius: 9.2px; }
.cf-bento__telecharger { display: flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 600; line-height: 22px;
  color: #111114; white-space: nowrap; }
.cf-bento__pastille--app .cf-bento__rond { width: 40px; height: 40px; }

/* les deux badges des boutiques, toujours ensemble (223:324) */
.cf-bento__badges { position: absolute; z-index: 2; left: 176px; top: 121px; display: none; flex-direction: column;
  align-items: flex-start; gap: 7.236px; pointer-events: auto; }
.cf-bento[data-etat="tour"] .cf-bento__badges { display: flex; }
.cf-bento__badge { display: flex; align-items: center; gap: 8.14px; min-width: 166px; padding: 7.236px 14.472px 7.236px 11.758px;
  border: 0.904px solid #a6a6a6; border-radius: 9.949px; background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Geist, sans-serif; }
.cf-bento a.cf-bento__badge { color: #fff; }
.cf-bento__badge span { display: flex; flex-direction: column; align-items: flex-start; gap: 1.809px; line-height: 1; white-space: nowrap; }
.cf-bento__badge small { font-size: 9.497px; font-weight: 400; }
.cf-bento__badge--play small { font-size: 8.593px; letter-spacing: 0.3437px; text-transform: uppercase; }
.cf-bento__badge b { font-size: 18.994px; font-weight: 500; letter-spacing: -0.1899px; }

/* ── Studio (223:106) et Directeur de casting (223:115) ── */
.cf-bento__studio, .cf-bento__directeur { height: 190px; }
.cf-bento__studio { background: #111110; }
.cf-bento__studio .cf-bento__titre { left: 18px; top: 18px; gap: 8px; }
.cf-bento__studio .cf-bento__titre b { font-size: 18px; line-height: 24px; letter-spacing: -0.27px; color: #fff; }
.cf-bento__portable { position: absolute; left: 50%; top: 96px; width: 146px; height: 79px; margin-left: -73px; }
.cf-bento__portable i { position: absolute; left: 11px; top: 0; width: 124px; height: 74px; border-radius: 7px; background: #0e0f11; }
.cf-bento__portable i::before { content: ""; position: absolute; inset: 3px; border-radius: 4px; background: linear-gradient(180deg, #2f8bb0, #255c75); }
.cf-bento__portable em { position: absolute; left: 11px; top: 0; width: 124px; height: 74px; display: flex; align-items: center;
  justify-content: center; font-style: normal; font-size: 9px; font-weight: 600; color: #fff; white-space: nowrap; }
.cf-bento__portable::after { content: ""; position: absolute; left: 0; top: 74px; width: 146px; height: 5px;
  border-radius: 1px 1px 4px 4px; background: linear-gradient(180deg, #dbe0e5, #b2bac2); }
.cf-bento__directeur { background: #f5f6f7; }
.cf-bento__directeur .cf-bento__titre { left: 18px; top: 18px; flex-direction: column; align-items: flex-start; gap: 8px; }
.cf-bento__directeur .cf-bento__titre b { font-size: 17px; line-height: 20px; letter-spacing: -0.255px; color: #6b747c; white-space: normal; }
.cf-bento__directeur .cf-bento__version { background: rgba(17, 17, 16, 0.07); color: #6b747c; }
.cf-bento__clap { position: absolute; right: 14.4px; bottom: 12.3px; }

/* ── les quatre liens (223:132…) ── */
.cf-bento__lien { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 16px 0 18px;
  border-radius: 24px; background: #fff; font-size: 16px; font-weight: 500; line-height: 20px; }
.cf-bento a.cf-bento__lien { color: #111114; }
.cf-bento__lien--2 { margin-top: -2px; }
.cf-bento__lien:active, .cf-bento__ecrire:active { background: #f7f8f9; }

/* ── la dernière rangée : le compte (223:148, 223:264) et « Nous écrire » (223:157) ── */
.cf-bento__bas { grid-column: 1 / -1; display: flex; gap: 10px; }
.cf-bento__compte { position: relative; flex: 1 1 auto; min-width: 0; height: 98px; border-radius: 24px; background: #fff; }
.cf-bento__invite { display: none; flex-direction: column; align-items: flex-start; padding: 22px 20px 0; }
.cf-bento__connexion { padding: 4px 0 2px; font-size: 17px; font-weight: 600; line-height: 22px; }
.cf-bento a.cf-bento__connexion { color: #111114; }
.cf-bento__creer { padding: 4px 0; font-size: 14px; font-weight: 500; line-height: 18px; }
.cf-bento a.cf-bento__creer { color: #07637d; }
.cf-bento__membre { display: none; align-items: center; height: 100%; padding: 0 16px; gap: 12px; }
.cf-bento[data-compte="non"] .cf-bento__invite { display: flex; }
.cf-bento[data-compte="oui"] .cf-bento__membre, .cf-bento[data-compte="attente"] .cf-bento__membre { display: flex; }
.cf-bento[data-compte="attente"] .cf-bento__membre { opacity: 0.25; }
.cf-bento__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #111114; }
.cf-bento__avatar .cf-avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden; background: #111114; color: #fff; font-size: 17px; font-weight: 600; line-height: 1; box-shadow: none; }
.cf-bento__avatar .cf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-bento__nom { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 17px; font-weight: 600; line-height: 22px; color: #111114; }
.cf-bento__sortir { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: #fdecea; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease; }
.cf-bento__sortir:active { transform: scale(0.94); }
.cf-bento__sortir:disabled { opacity: 0.5; }
.cf-bento__ecrire { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; width: 98px; height: 98px;
  border-radius: 24px; background: #fff; font-size: 13px; font-weight: 500; line-height: 17px; white-space: nowrap; }
.cf-bento a.cf-bento__ecrire { color: #111114; }
.cf-bento__ecrire img { margin-top: 10.6px; transform: rotate(-8deg); }
.cf-bento__ecrire span { position: absolute; left: 0; right: 0; top: 70px; text-align: center; }

.cf-bento a:focus-visible, .cf-bento button:focus-visible { outline: 2px solid #007692; outline-offset: 2px; }
.cf-bento__castflow a:focus-visible, .cf-bento__studio a:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* FR / EN dans la barre de la page, à gauche du bouton du menu (décision du 18 nov.) */
.cf-bento-langue { display: flex; align-items: center; gap: 2px; margin-right: 10px; font-family: Geist, system-ui, sans-serif;
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.cf-bento-langue a, .cf-bento-langue b { padding: 6px 4px; font-weight: 500; color: #6b747c; text-decoration: none; }
.cf-bento-langue [aria-current] { color: #111110; }
.cf-bento-langue i { font-style: normal; color: rgba(107, 116, 124, 0.5); }

@media (min-width: 1024px) { .cf-bento, .cf-bento-langue { display: none !important; } html.cf-bento-ouvert { overflow: visible; } }
@media (prefers-reduced-motion: reduce) {
  .cf-bento, .cf-bento__grille > *, .cf-bento__tels { transition: none; }
  .cf-bento__grille > * { transform: none; }
}
