/* 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; flex: 1; }
.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 pastille du forfait, à droite de l'en-tête (maquette 251:120). Écrite seulement quand
   la page connaît le niveau ; PRO prend le teal de la marque, GRATUIT le gris du dessin. */
.cf-compte__statut {
  flex: none; align-self: flex-start; margin-top: 4px; padding: 4px 10px; border-radius: 999px;
  background: #eceff1; color: #3f4750; font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: 0.06em;
}
.cf-compte__statut[data-niveau="pro"] { background: #007692; color: #fff; }

/* 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: 56px; padding: 8px 12px 8px 8px;
  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.
   Maquette 251:120 : chaque ligne porte son icône dans une pastille grise, un titre, un
   sous-titre quand il y en a un, et le chevron. */
.cf-compte__lien {
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px 0 8px; 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-ic {
  flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 11px; background: #f1f3f5;
}
.cf-compte__lien-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cf-compte__lien-txt b { font-size: 15px; font-weight: 500; line-height: 20px; }
.cf-compte__lien-txt span { font-size: 13px; font-weight: 400; line-height: 17px; color: #6b6b73; }
.cf-compte__chevron { display: flex; color: #9aa1a8; }

.cf-compte__filet { flex: none; margin: 2px 0; height: 0; border: 0; border-top: 1px solid #e3e6ea; }
/* Le pied reste collé au bas de la feuille pendant qu'on la fait défiler (maquette
   251:120 : « Se déconnecter » est toujours visible, sous un filet). Sur ordinateur, où le
   menu tient sans défiler, une position collée ne change rien. */
.cf-compte__sortir {
  position: sticky; bottom: 0; background: #fff;
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 0 16px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; color: #c62828; text-align: left; transition: background 0.2s ease;
  box-shadow: 0 -14px 16px -12px rgba(10, 10, 10, 0.16);
}
.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; }
/* Dans la feuille, la colonne de texte fait 180 px : « 367th » (Unbounded, 48 px) s'y
   coupait en deux lignes en anglais. Le rang reste le plus gros chiffre du menu. */
.cf-compte--feuille .cf-compte__place-n { font-size: 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 (CFT-2284, Figma 502:46, corrigé le 19 novembre 2026).
   Il remplace le tiroir sur toutes les pages, /talent/ comprise : une page
   pleine, avec sa barre (logo, FR / EN, croix), la carte du compte en haut
   (« Se connecter » visible sans défiler), la carte Castings, la carte Pro et
   ses quatre tuiles, puis les trois applications.
   L'entrée Pro porte `aria-current="page"` et `.cf-bento__pro--courant` sur
   /fr/castflow-pro/ et /en/castflow-pro/.
   Construit et branché par assets/js/compte.js (bloc « MENU DU TÉLÉPHONE »).
   ═══════════════════════════════════════════════════════════════════════ */
@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; display: flex; flex-direction: column; gap: 10px; }
.cf-bento__in > * { opacity: 0; transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cf-bento.on .cf-bento__in > * { opacity: 1; transform: none; }
.cf-bento.on .cf-bento__in > :nth-child(2), .cf-bento.on .cf-bento__in > :nth-child(3) { transition-delay: 0.04s; }
.cf-bento.on .cf-bento__in > :nth-child(4) { transition-delay: 0.08s; }
.cf-bento.on .cf-bento__in > :nth-child(5) { transition-delay: 0.12s; }

/* ── la barre : logo, FR / EN, croix (502:47) ── */
.cf-bento__barre { display: flex; align-items: center; justify-content: space-between; height: 56px;
  padding: 0 8px 0 20px; border-radius: 28px; background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.cf-bento__barre-droite { display: flex; align-items: center; gap: 8px; }
.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__langue { display: flex; align-items: center; gap: 2px; 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; }
.cf-bento__langue [aria-current] { color: #111110; }
.cf-bento__langue i { font-style: normal; color: rgba(107, 116, 124, 0.5); }

/* ── le compte, en haut : « Se connecter » sans défiler (502:55) ── */
.cf-bento__compte { min-height: 98px; }
.cf-bento__invite, .cf-bento__membre { display: none; }
.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: grid; }
.cf-bento[data-compte="attente"] .cf-bento__membre { opacity: 0.25; }
.cf-bento__invite { position: relative; flex-direction: column; align-items: flex-start; justify-content: center;
  height: 98px; padding: 18px; border-radius: 24px; background: #fff; }
/* Toute la carte ouvre la connexion ; « Créer un compte » reste un lien à part, au-dessus. */
.cf-bento__connexion::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.cf-bento__connexion { padding: 0; font-size: 20px; font-weight: 500; line-height: 26px; color: #111110; }
.cf-bento a.cf-bento__connexion { color: #111110; }
.cf-bento__creer { position: relative; z-index: 1; padding: 4px 0 0; font-size: 14px; font-weight: 500;
  line-height: 18px; color: #007692; }
.cf-bento a.cf-bento__creer { color: #007692; }
.cf-bento__fleche { position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 18px; line-height: 1; color: #111110; }
.cf-bento__membre { grid-template-columns: minmax(0, 1fr) 98px; gap: 10px; height: 98px; }
.cf-bento__profil { display: flex; align-items: center; gap: 12px; min-width: 0; height: 98px;
  padding: 18px; border-radius: 24px; background: #fff; }
.cf-bento__avatar { flex: none; 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; }
.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__qui { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cf-bento__nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 17px; font-weight: 600; line-height: 22px; color: #111110; }
.cf-bento__badge { padding: 3px 8px; border-radius: 999px; background: #eef1f4; color: #6b747c;
  font-size: 10px; font-weight: 600; line-height: 12px; letter-spacing: 0.6px; }
.cf-bento__badge[hidden] { display: none; }
.cf-bento__profil .cf-bento__chevron { margin-left: auto; }
.cf-bento__sortir { display: flex; align-items: center; justify-content: center; width: 98px; height: 98px;
  padding: 0; border: 0; border-radius: 24px; background: #fff; 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.96); }
.cf-bento__sortir:disabled { opacity: 0.5; }

/* ── Castings, la carte teal (502:62) ── */
.cf-bento__castings { position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  height: 141px; padding: 20px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #007692, #009dc2); box-shadow: 0 8px 10px rgba(10, 61, 74, 0.18); }
.cf-bento__camera { position: absolute; right: 20px; top: 20px; width: 59.583px; height: 52px; }
.cf-bento__castings-mot { font-family: Unbounded, "Unbounded Repli", Geist, sans-serif; font-weight: 800;
  font-size: 28px; line-height: 1; letter-spacing: -0.56px; color: #fff; }
.cf-bento__castings .cf-bento__chevron { margin-bottom: 8px; }
.cf-bento__chevron--blanc { filter: brightness(0) invert(1); opacity: 0.9; }

/* ── Pro + les quatre tuiles (502:87) ── */
.cf-bento__proliens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: 236px; }
.cf-bento__pro { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-width: 0; padding: 18px; border-radius: 24px; overflow: hidden; background: #111110; color: #fff; }
.cf-bento a.cf-bento__pro { color: #fff; }
.cf-bento__couronne { width: 38px; height: 48px; object-fit: contain; }
.cf-bento__pro-milieu { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cf-bento__pro-mot { font-family: Unbounded, "Unbounded Repli", Geist, sans-serif; font-weight: 500;
  font-size: 40px; line-height: 1; letter-spacing: -1.2px; color: #fff; }
.cf-bento__pro-prix { font-size: 12px; font-weight: 500; line-height: 16px; color: #c8cfd4; white-space: nowrap; }
.cf-bento__pro-prix[hidden] { display: none; }
.cf-bento__pro-bas { display: flex; align-items: center; justify-content: space-between; width: 100%;
  gap: 8px; font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; }
/* L'ENTRÉE COURANTE : le seul signe que la maquette ne dessine pas. */
.cf-bento__pro--courant { box-shadow: inset 0 0 0 3px #007692; }
.cf-bento__pro--courant .cf-bento__pro-bas { color: #8fd3e4; }

.cf-bento__tuiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-width: 0; }
.cf-bento__tuile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-width: 0; padding: 10px; border-radius: 20px; background: #fff; color: #111110; }
.cf-bento__tuile-icone { display: flex; align-items: center; justify-content: flex-start; height: 32px; }
.cf-bento__tuile-icone img, .cf-bento__tuile-icone svg { max-width: 100%; max-height: 32px; width: auto; height: auto; }
.cf-bento__tuile-mot { font-size: 13px; font-weight: 500; line-height: 16px; color: #111110; }

/* ── les trois applications (502:129, 473:10712) ── */
.cf-bento__apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: 190px; }
.cf-bento__app { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-width: 0; padding: 14px; border-radius: 24px; overflow: hidden; }
.cf-bento__app--castflow { background: linear-gradient(180deg, #007692, #009dc2); color: #fff; }
.cf-bento__app--studio { background: #111110; color: #fff; }
.cf-bento__app--directeur { background: #f5f6f7; color: #6b747c; }
.cf-bento__app-mot { font-size: 13px; font-weight: 500; line-height: 17px; }
.cf-bento__app-version { align-self: flex-start; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 9px; font-weight: 500;
  line-height: 12px; letter-spacing: 0.8px; white-space: nowrap; }
.cf-bento__app--directeur .cf-bento__app-version { background: rgba(17, 17, 16, 0.07); color: #6b747c; }
.cf-bento__app-tel { width: 48px; height: auto; margin: auto auto 0; }
.cf-bento__mini-portable { position: relative; display: block; width: 84px; height: 48px;
  margin: auto auto 0; }
.cf-bento__mini-portable i { position: absolute; left: 6px; top: 0; width: 72px; height: 42px;
  border-radius: 5px; background: #0e0f11; }
.cf-bento__mini-portable i::before { content: ""; position: absolute; inset: 2px; border-radius: 3px;
  background: linear-gradient(180deg, #2f8bb0, #255c75); }
.cf-bento__mini-portable em { position: absolute; left: 6px; top: 0; width: 72px; height: 42px; display: flex;
  align-items: center; justify-content: center; font-style: normal; font-size: 6px; font-weight: 600;
  color: #fff; white-space: nowrap; }
.cf-bento__mini-portable::after { content: ""; position: absolute; left: 0; top: 42px; width: 84px; height: 4px;
  border-radius: 1px 1px 4px 4px; background: linear-gradient(180deg, #dbe0e5, #b2bac2); }
.cf-bento__clap { position: absolute; right: 8px; bottom: 8px; width: 38px; height: auto; }

.cf-bento a:focus-visible, .cf-bento button:focus-visible { outline: 2px solid #007692; outline-offset: 2px; }
.cf-bento__castings:focus-visible, .cf-bento__app--castflow:focus-visible,
.cf-bento__app--studio:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* Sous 371 px, la colonne de droite serait trop étroite pour « À propos » : Pro prend
   toute la largeur, les quatre tuiles passent dessous. Aucun texte ne se coupe. */
@media (max-width: 370px) {
  .cf-bento__proliens { grid-template-columns: minmax(0, 1fr); height: auto; }
  .cf-bento__pro { height: 160px; }
  .cf-bento__tuiles { height: 180px; }
  /* « COMING SOON » ne tient pas sur une ligne dans une carte de 93 px : il passe à deux. */
  .cf-bento__app-version { white-space: normal; }
}

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