/* 2ForFly — bouton « Connexion / Mon compte » des menus et fenêtre de connexion */
/* La fenêtre de connexion est blanche (neutre) : elle ne dépend ni de Tandem ni de Progress */
.bouton-compte, .connexion, .connexion * { -webkit-tap-highlight-color: transparent; }
.bouton-compte {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
  border: 1.5px solid currentColor; border-radius: 999px; background: transparent;
  font: 700 12px 'Space Grotesk', system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

/* (10.11.2026, 2e contrôle avant mise en ligne) hauteur prise sur l'écran vraiment visible (100dvh, comme les autres fenêtres du site) :
   avec 100vh, quand la barre de Chrome est affichée, le bas de la fenêtre pouvait passer dessous (téléphone couché surtout) */
.connexion {
  width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1.5px solid #EAF2FF; border-radius: 6px; background: #110E1A; color: #F4F2FA;
  box-shadow: 0 0 28px #EAF2FF33;
}
.connexion::backdrop { background: rgba(4, 3, 8, 0.85); }
.cx-vue { display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 16px; }
.cx-vue[hidden] { display: none; }
.cx-titre {
  margin: 0 0 4px; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: 0.03em;
  color: #FFFFFF; text-shadow: 0 0 1px #FFFFFF, 0 0 6px #EAF2FF99, 0 0 14px #EAF2FF44;
}
.cx-texte { margin: 0; font: 400 14px/1.5 'Space Grotesk', sans-serif; color: #CFCBDD; }
.cx-vue label { display: flex; flex-direction: column; gap: 6px; font: 500 13px 'Space Grotesk', sans-serif; color: #CFCBDD; }
.cx-saisie {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1.5px solid #3A3648; border-radius: 4px;
  background: #0E0C16; color: #F4F2FA; font: 400 16px 'Space Grotesk', sans-serif;
}
.cx-saisie:focus { outline: none; border-color: #EAF2FF; box-shadow: 0 0 10px #EAF2FF44; }
.cx-message { margin: 0; padding: 10px 12px; border: 1.5px solid #EAF2FF; border-radius: 4px; background: #EAF2FF14; font: 500 14px/1.45 'Space Grotesk', sans-serif; color: #FFFFFF; }
.cx-message.ok { border-color: #3FE0A0; background: #3FE0A01A; }
.cx-message[hidden] { display: none; }
.cx-principal {
  min-height: 50px; margin-top: 4px; border: 0; border-radius: 4px; background: #EAF2FF; box-shadow: 0 0 14px #EAF2FF44; color: #08070D;
  font: 700 14px 'Space Grotesk', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.cx-principal:disabled { opacity: 0.6; }
.cx-lien {
  min-height: 44px; border: 0; background: transparent; color: #EAF2FF;
  font: 500 14px 'Space Grotesk', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cx-retour {
  min-height: 46px; border: 1.5px solid #3A3648; border-radius: 4px; background: transparent; color: #FFFFFF;
  font: 700 14px 'Space Grotesk', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}

/* « Se souvenir de moi », lien « Créer un compte » (04.11.2026) */
.cx-vue .cx-souvenir { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.cx-souvenir input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #EAF2FF; }
a.cx-creer { display: flex; align-items: center; justify-content: center; text-align: center; }
.cx-renvoyer[hidden] { display: none; }

/* sous « Me connecter » (05.11.2026) : ce qui compte moins prend moins de place, liens plus serrés et « Retour » plus petit */
.cx-bas { display: flex; flex-direction: column; align-items: center; margin-top: -4px; }
.cx-bas .cx-lien { min-height: 30px; font-size: 13px; }
.cx-bas .cx-retour { min-height: 32px; margin-top: 8px; padding: 0 22px; font-size: 11px; color: #CFCBDD; }

/* passager biplace (06.11.2026) : une petite carte néon rose, en haut à droite de « CONNEXION » ; sur un très petit écran, sous le titre */
.cx-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.cx-haut .cx-titre { margin: 0; }
.cx-passager {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 11px 7px;
  border: 1.5px solid #FF2BD6; border-radius: 10px; background: #FF2BD614;
  box-shadow: 0 0 12px #FF2BD666, inset 0 0 10px #FF2BD626;
  color: #FFFFFF; text-decoration: none; text-align: center; font: 500 11px/1.2 'Space Grotesk', sans-serif;
}
.cx-passager:active { background: #FF2BD62E; }
.cx-etoiles { display: flex; gap: 2px; color: #FF2BD6; filter: drop-shadow(0 0 3px #FF2BD6); }
.cx-etoiles svg { width: 13px; height: 13px; }
.cx-passager-texte b { display: block; margin-top: 1px; color: #FF8BEA; font-weight: 700; font-size: 12px; }
/* très petit téléphone (moins de 360 px) : un peu plus petit pour que la carte reste à droite du titre */
@media (max-width: 359px) {
  .cx-haut { gap: 8px; }
  .cx-haut .cx-titre { font-size: 28px; }
  .cx-passager { padding: 6px 8px; font-size: 10px; }
  .cx-passager-texte b { font-size: 11px; }
  .cx-etoiles svg { width: 11px; height: 11px; }
}
/* (06.11.2026, demandé par Mathieu) la carte « Passager biplace » 10 % plus grande (pas sur un très petit téléphone) */
.cx-passager { zoom: 1.1; }
@media (max-width: 359px) { .cx-passager { zoom: 1; } }
/* (09.11.2026, demandé par Mathieu) l'œil des cases de mot de passe (public/js/champs.js), ici car ce fichier est chargé sur toutes les pages, accueil comprise */
.mdp-zone { position: relative; display: block; width: 100%; }
.mdp-zone input { width: 100%; box-sizing: border-box; padding-right: 48px; }
.mdp-zone .mdp-oeil { position: absolute; top: 0; right: 0; bottom: 0; display: grid; place-items: center; width: 46px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--texte-gris, #CFCBDD); cursor: pointer; }
.mdp-zone .mdp-oeil svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mdp-zone .mdp-oeil[aria-pressed="true"] { color: var(--rose-lien, #EAF2FF); }
/* case pré-remplie par le navigateur (fond clair) : l'œil foncé pour rester visible */
.mdp-zone input:-webkit-autofill + .mdp-oeil { color: #4A4658; }

/* (10.11.2026) arrivé depuis un lien d'e-mail : une ligne sous le titre */
.cx-suite { margin: 0 0 4px; font: 400 14px/1.4 var(--corps); color: var(--texte-doux); }

/* (13.11.2026, demandé par Mathieu) Samsung Internet en mode sombre : le petit message « Site lumineux », une seule fois (partials/samsung-astuce) */
.samsung-astuce { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 950; max-width: 520px; margin: 0 auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 16px; border: 1.5px solid #19E6FF; border-radius: 12px; background: #0F0D18; color: #EAF2FF; box-shadow: 0 0 18px #19E6FF55; font: 400 14.5px/1.45 'Space Grotesk', system-ui, sans-serif; }
.samsung-astuce[hidden] { display: none; }
.samsung-astuce p { margin: 0; flex: 1; }
.samsung-astuce b { color: #19E6FF; font-weight: 700; }
.samsung-astuce-fermer { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1.5px solid #19E6FF; border-radius: 50%; background: transparent; color: #19E6FF; font: 400 20px/1 sans-serif; cursor: pointer; }
