/* Comptes membres : fenêtres de connexion et de mot de passe, onglets Candidatures et Membres, profil. */

/* L'attribut hidden doit l'emporter sur les display des classes du prototype (champ mot de passe, boutons). */
#connexionModal [hidden], #motDePasseModal [hidden] { display: none !important; }
.uc-demo-login-form small a { color: inherit; text-decoration: underline; }
#motDePasseEmail[readonly] { opacity: .75; }

.uc-adhesion { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 600; cursor: pointer; }
.uc-adhesion input { width: 18px; height: 18px; accent-color: #1E1B4B; }

/* La grille du formulaire (510 px minimum) étire ses rangées : avec peu d'éléments visibles
   (lien expiré), badge et bouton devenaient géants. On centre au lieu d'étirer. */
#motDePasseModal .authform { align-content: center; }

/* Fenêtres de connexion et de mot de passe au-dessus de la barre de navigation (z-index 5000),
   et défilables sur téléphone. Le prototype les centrait sous la barre : sur mobile, leur haut
   et la croix de fermeture étaient cachés. */
#connexionModal, #motDePasseModal { z-index: 6000; }
@media (max-width: 720px) {
  #connexionModal.open, #motDePasseModal.open { align-items: flex-start; overflow-y: auto; }
}

/* Administration > Membres : les boutons varient d'une ligne à l'autre (son propre compte n'en a
   qu'un) ; une colonne d'actions de largeur fixe garde les colonnes alignées. */
@media (min-width: 701px) {
  #admin #u66-members .uc66-row { grid-template-columns: 1.5fr 1fr 1fr 1fr 330px; }
  #admin #u66-members .uc66-actions { justify-content: flex-end; align-items: center; }
}

/* Profil : la ville (le cercle) se lit ici ; seul un admin la change. */
#profileCity[readonly] { opacity: .75; }

/* Administration : boutons de l'en-tête (Sauvegarde, + Opportunité). */
#admin .uc66-head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  #admin .uc66-head { flex-wrap: wrap; align-items: flex-start; }
  #admin .uc66-head-actions { justify-content: flex-start; }
}
.uc-sauvegarde-historique { font-size: 14px; color: var(--uc-ink-soft, #4a4770); margin: 0 0 14px; }
.uc-sauvegarde-historique:empty { display: none; }

/* Messagerie : fil en lecture seule (annonces d'une ville, membre devenu inactif). */
.message-compose input:disabled, .message-compose button:disabled { opacity: .55; cursor: not-allowed; }

/* Opportunités : textes saisis par l'admin ou l'agence, retours à la ligne gardés. */
#strategyText, .uc-points-texte { white-space: pre-line; }

/* Éditeur d'opportunité : l'étoile (en faire la photo principale) à gauche, la croix à droite. */
.uc78-gallery .uc78-etoile { left: 3px; right: auto; }
.uc78-aide { margin: 10px 0 0; font-size: 11px; color: #4a4770; }
.uc78-erreur { margin: 0 22px 14px; color: #8d3028; font-size: 13px; }
/* Pied de l'éditeur : le prototype avait « Publier » en blanc sur jaune et en 9 px, illisible. */
.uc78-foot button { font-size: 12px; }
.uc78-foot .pub { color: #1d1946; }

/* Équipes par opération : fenêtre d'invitation (blocs masqués par l'attribut hidden, que la
   grille de la liste écraserait), votre rôle quand on lance l'équipe, erreur. */
#ucTeamPicker [hidden], #ucInviteInbox [hidden] { display: none !important; }
#ucTeamMyRoleBlock small { display: block; margin-top: 7px; font-size: 11px; opacity: .65; }
.uc-team-erreur { margin: 12px 0 0; color: #8d3028; font-size: 13px; }
/* Message de l'invitation : la règle générale .note du prototype (26 px de marge intérieure)
   en faisait un grand cadre vide. */
.uc-invite-card .note { margin-top: 4px; padding: 2px 0 2px 10px; }
.uc-invite-voir { margin-top: 12px; padding: 0; border: 0; background: none; color: #1a173f; font: 600 11px "IBM Plex Sans", sans-serif;
  text-decoration: underline; cursor: pointer; }
/* Fiche d'un dossier : l'équipe en tête du bloc « Équipe potentielle ». */
.uc-equipe { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line, #d4d3e0); }
.uc-equipe .px-team-head { margin-bottom: 12px; }
.uc-equipe .uc-team-live { margin-top: 0; }
.uc-equipe .uc-team-live-photo { border: 0; padding: 0; cursor: pointer; color: #1E1B4B; }
.uc-equipe .uc-team-live-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.uc-equipe-attente { opacity: .75; border-style: dashed !important; }
.uc-equipe-vous { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--uc-sun, #FFC933);
  color: #1E1B4B; font: 700 9px "IBM Plex Mono", monospace; letter-spacing: .06em; vertical-align: middle; }
@media (max-width: 600px) {
  .uc-equipe .uc-team-live-status { align-items: stretch; text-align: left; }
}

/* Documents d'un dossier (js/documents.js) : lignes du « Dossier membre », tuiles de la data
   room (mêmes proportions que les tuiles du prototype), réservé, ajout et progression. */
#ucDossierMembre .uc-doc-ligne { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line, #d4d3e0); }
#ucDossierMembre .uc-doc-ligne a { flex: 1; min-width: 0; gap: 12px; border-top: 0; }
#ucDossierMembre .uc-doc-ligne a b { font-weight: 500; overflow-wrap: anywhere; }
#ucDossierMembre .uc-doc-ligne a span { white-space: nowrap; }
.uc-doc-suppr { flex: none; padding: 6px 8px; border: 0; background: none; color: #8d3028; font-size: 18px; line-height: 1; cursor: pointer; }
.uc-docs-vide, .uc-docs-verrou { margin: 14px 0 0; font-size: 13px; color: #4a4770; }
.uc-docs-verrou { padding: 12px 14px; border-radius: 12px; background: var(--uc-lilac, #F1EEFC); }
.uc-docs-verrou button { padding: 0; border: 0; background: none; color: #1E1B4B; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.uc-docs-ajouter { margin-top: 14px; padding: 9px 16px; border: 1px dashed #8a86b3; border-radius: 999px; background: transparent; color: #1E1B4B;
  font: 600 12px "IBM Plex Sans", sans-serif; cursor: pointer; }
.uc-docs-envoi { margin: 10px 0 0; font-size: 12px; color: #4a4770; }
.uc-docs-envoi.erreur { color: #8d3028; }
#ucDataRoom .uc-dr-fichier { position: relative; }
#ucDataRoom .uc-dr-fichier a { display: block; box-sizing: border-box; height: 100%; padding: 13px 28px 13px 13px; border: 1px solid var(--line, #d4d3e0);
  border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
#ucDataRoom .uc-dr-fichier b { display: block; margin-bottom: 4px; font-size: 10px; overflow-wrap: anywhere; }
#ucDataRoom .uc-dr-fichier span { font-size: 8px; color: var(--steel, #6b6890); }
/* La croix n'est pas une tuile : .data-room-files button (prototype) lui donnait cadre et marges. */
#ucDataRoom .uc-dr-fichier .uc-doc-suppr { position: absolute; top: 4px; right: 4px; width: auto; padding: 4px 8px; border: 0; border-radius: 8px;
  background: transparent; box-shadow: none; }

/* Dépôt agence : message d'erreur au-dessus du bouton d'envoi. */
.uc72-erreur { margin: 0 0 12px; color: #8d3028; font-size: 13px; }

/* Administration > Opportunités : la vignette à côté du titre ; quatre boutons par ligne, dans
   une colonne d'actions de largeur fixe (sur téléphone, toute la largeur sous le dossier). */
#admin #u66-opps .uc-opp-titre { display: flex; align-items: center; }
#admin #u66-opps .uc-opp-titre small { font-weight: 400; color: #4a4770; }
@media (min-width: 701px) {
  #admin #u66-opps .uc66-row { grid-template-columns: 1.5fr 1fr 1fr 1fr 360px; }
  #admin #u66-opps .uc66-actions { justify-content: flex-end; align-items: center; }
}
@media (max-width: 700px) {
  #admin #u66-opps .uc66-actions { grid-column: 1 / -1; }
}

/* Administration > Rencontres (sept colonnes) et Recommandations (six) : colonne d'actions de
   largeur fixe ; proposant, détail du professionnel et date en petit sous la valeur. */
#admin #u66-meetings .uc66-row small, #admin #u66-recos .uc66-row small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: #4a4770; }
#admin #u66-recos .uc-reco-motif { font-style: italic; }
#admin #u66-recos .uc-reco-contact { overflow-wrap: anywhere; }
#admin #u66-recos select { max-width: 100%; padding: 8px; border: 1px solid #b9b7cd; background: #fff; color: #1a173f; font: inherit; font-size: 13px; }
@media (min-width: 701px) {
  #admin #u66-meetings .uc66-row { grid-template-columns: 1.4fr .8fr 1fr 1.2fr .7fr .8fr 300px; }
  #admin #u66-recos .uc66-row { grid-template-columns: 1.5fr 1fr 1.1fr 1fr 150px 110px; }
  #admin #u66-recos .uc66-actions { justify-content: flex-end; }
}
@media (max-width: 700px) {
  #admin #u66-meetings .uc66-actions, #admin #u66-recos .uc66-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
/* Fenêtre d'une rencontre : le champ Cercle (admins seulement) se masque par l'attribut hidden. */
.uc-meeting-ville-field[hidden] { display: none !important; }
/* Administration : dix onglets ne tiennent plus sur une ligne en 1366 px (« Finance » sortait de
   l'écran) ; sur ordinateur ils passent à la ligne, sur téléphone la rangée défile. */
@media (min-width: 701px) {
  #admin .uc66-tabs { flex-wrap: wrap; row-gap: 5px; }
}
/* Liste d'intérêt des villes : piège à robots de la fenêtre (comme la candidature), et bloc des
   inscriptions sous les cercles de l'onglet Cercles. */
.uc-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#admin .uc-attente { margin-top: 34px; }
#admin .uc-attente .uc66-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
#admin .uc-attente-outils { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#admin .uc-attente-outils select { padding: 9px 10px; border: 1px solid #b9b7cd; background: #fff; color: #1a173f; font: inherit; font-size: 13px; }
#admin .uc-attente-lead { margin: 4px 0 12px; color: #4a4770; font-size: 13px; }
#admin #u66-circles .uc-attente .uc66-row small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: #4a4770; }
#admin .uc-attente-contact { overflow-wrap: anywhere; }
@media (min-width: 701px) {
  #admin #u66-circles .uc-attente .uc66-row { grid-template-columns: 1.2fr .9fr 1fr 1.5fr .8fr 110px; }
  #admin #u66-circles .uc-attente .uc66-actions { justify-content: flex-end; }
}
@media (max-width: 700px) {
  #admin #u66-circles .uc-attente .uc66-actions { grid-column: 1 / -1; }
}
/* Onglet Membres : case « Adhésion réglée » sous le statut. */
#admin #u66-members .uc-adhesion-mini { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; color: #4a4770; cursor: pointer; }
#admin #u66-members .uc-adhesion-mini input { width: 15px; height: 15px; accent-color: #1E1B4B; }
/* Mon compte (bas de « Mon profil ») : adhésion, mot de passe, e-mail, effacement. */
.uc-compte .uc-compte-adhesion { margin: 6px 0 14px; }
.uc-compte .uc-compte-adhesion a { color: inherit; text-decoration: underline; }
.uc-compte details { border-top: 1px solid var(--line, #d4d3e0); padding: 12px 0; }
.uc-compte summary { cursor: pointer; font-weight: 700; }
.uc-compte form { display: grid; gap: 10px; max-width: 460px; margin-top: 12px; }
.uc-compte label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.uc-compte input { padding: 10px 12px; border: 1px solid #d2d1df; border-radius: 10px; font: inherit; }
.uc-compte form p { margin: 0; font-size: 13px; }
.uc-compte-msg:empty { display: none; }
#dp-profile .uc-compte .uc-compte-msg.ok { color: #1f6b4a !important; }
#dp-profile .uc-compte .uc-compte-msg.erreur { color: #8d3028 !important; }
.uc-compte button { justify-self: start; }
/* Onglet Membres : demande d'effacement signalée sous le statut. */
#admin #u66-members .uc-effacement-demande { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #8d3028; }

/* Pages légales : liens du texte soulignés (lot 11). */
#legal .section a, #privacy .section a { text-decoration: underline; text-underline-offset: 3px; }
/* Information au moment de la collecte, sous les formulaires publics (lot 11). */
.uc-rgpd { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #4a4770; }
.uc-rgpd a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
