/* Retours de l'utilisateur du 12/11/2026 (voir js/retours.js) : finitions ciblées. */

/* Indicateur « le Mate écrit » : trois points en onde douce, bleu -> orange (couleurs de GayMate). */
[data-b^="bTMSG "] { display: none !important; }
[data-b^="bTMRu "] { justify-content: center !important; padding: 0 14px !important; }
.gm-typing { display: inline-flex; align-items: center; gap: 5px; height: 30px; }
.gm-typing i { width: 7px; height: 7px; border-radius: 50%; animation: gm-typing 1.2s ease-in-out infinite; }
.gm-typing i:nth-child(1) { background: #37A7EE; }
.gm-typing i:nth-child(2) { background: #9A8BD0; animation-delay: .15s; }
.gm-typing i:nth-child(3) { background: #FC8C15; animation-delay: .3s; }
@keyframes gm-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gm-typing i { animation: none; opacity: .8; } }

/* Swipe, panneau « infos » : apparition en fondu léger (et le résumé de la carte quand il revient) ;
   ligne « Taille » au style des lignes Bubble (Profession, Loisirs, Personnalité). */
[data-b^="bTLdU "], [data-b^="bTHKt "] { animation: gm-fade-up .28s cubic-bezier(.2,.8,.3,1) both; }
@keyframes gm-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gm-info-row[hidden] { display: none; }
.gm-info-sep { display: block; height: 0; border-top: 1px solid rgba(52, 68, 95, .6); }
.gm-info-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 0; min-height: 44px; box-sizing: border-box; }
.gm-info-label { font: 14px/19.6px Poppins, sans-serif; color: rgba(170, 182, 202, .9); margin-right: 12px; }
.gm-info-pill { font: 12px/16.8px Poppins, sans-serif; color: #F5F7FB; padding: 6px 12px; border-radius: 20px; background: linear-gradient(to right, #37A7EE, #2E76EB); }

/* ===== Swipe sur PC : comme sur mobile (carte centrée, boutons dessous), carte à la hauteur de l'écran ===== */
body.gm-desktop[data-page=index] { --card-h: min(calc(100vh - 230px), 760px); }
body.gm-desktop[data-page=index] .gm-page > [data-b^="bTNBu "],
body.gm-desktop[data-page=index] .gm-page > [data-b^="bTNBP "],
body.gm-desktop[data-page=index] .gm-page > [data-b^="bTNPT "] {
  height: var(--card-h) !important; min-height: 0 !important; max-height: none !important;
  width: calc(var(--card-h) * .72) !important; max-width: calc(100% - 32px) !important; min-width: 0 !important;
  align-self: start !important; justify-self: center !important; margin-top: 92px !important;
}
body.gm-desktop[data-page=index] .gm-page > [data-b^="bTNBu "] { box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 24px; }
body.gm-desktop[data-page=index] .gm-floating[data-b^="bTOsm "] { bottom: 28px !important; }

/* ===== Profil d'un Mate ouvert depuis la conversation : la photo mise en avant =====
   Mobile : photo plus haute (environ 60 % de l'écran) ; « Galerie privée » et « Photos reçues » passent dans le tiers
   inférieur. PC : deux colonnes, grande photo à gauche sur toute la hauteur, informations à droite, galeries en bas. */
[data-b^="bTNrt "] { height: max(280px, 58vh) !important; min-height: max(280px, 58vh) !important; max-height: none !important; }
body.gm-desktop[data-page=messages] .gm-page { padding-top: 0 !important; }
@media (min-width: 1500px) {
body.gm-desktop[data-page=messages] .gm-page > [data-b$=" Group_ProfileMate"]:not([style*="display: none"]) {
  display: grid !important; grid-template-columns: minmax(300px, 46%) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr;
  column-gap: 28px; row-gap: 14px; padding: 24px 28px !important; min-height: 100vh; box-sizing: border-box; align-content: start;
}
body.gm-desktop[data-page=messages] [data-b$=" Group_ProfileMate"] > [data-b^="bTNrt "] {
  grid-column: 1; grid-row: 1 / span 5; position: sticky; top: 24px; height: calc(100vh - 48px) !important; min-height: 0 !important;
  width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 20px; overflow: hidden;
}
body.gm-desktop[data-page=messages] [data-b$=" Group_ProfileMate"] > :not([data-b^="bTNrt "]) {
  grid-column: 2; width: 100% !important; max-width: none !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
}
body.gm-desktop[data-page=messages] [data-b$=" Group_ProfileMate"] > [data-b^="bTNtB "] { grid-row: 1; }
/* Retour du 26/11/2026 : galerie privée et photos reçues juste sous les infos (plus de grand vide au milieu). */
body.gm-desktop[data-page=messages] [data-b$=" Group_ProfileMate"] > [data-b^="bTNtr "] { grid-row: 2; align-self: start; margin-top: 0 !important; }
body.gm-desktop[data-page=messages] [data-b$=" Group_ProfileMate"] > [data-b^="bTNvv0 "] { grid-row: 3; align-self: start; margin-top: 0 !important; }
}

/* ===== Création sur PC : l'en-tête et la barre d'actions réservaient la place de l'en-tête (64 px) et de la barre
   du bas (88 px) du mobile, absents sur PC ; contenu centré dans une colonne de lecture plus large. ===== */
body.gm-desktop[data-page=create] .gm-floating[data-b^="bTIBR "] { top: 0 !important; }
body.gm-desktop[data-page=create] .gm-floating[data-b^="bTHzh0 "] { bottom: 20px !important; }
body.gm-desktop[data-page=create] .gm-page > [data-b^="bTHwx "] { padding-top: 150px !important; padding-bottom: 110px !important; }

/* ===== Connexion et inscription sur PC : formulaires à largeur de formulaire (ils s'étiraient sur 768 px) ===== */
body.gm-desktop[data-page=login] .gm-page > [data-b$=" Group_LoginCard"],
body.gm-desktop[data-page=signup] .gm-page > [data-b$=" Group_SignupStep1"],
body.gm-desktop[data-page=signup] .gm-page > [data-b$=" Group_ProgressBar"] { max-width: 480px !important; min-width: 0 !important; width: calc(100% - 48px) !important; }
body.gm-desktop[data-page=login] .gm-page > [data-b$=" Group_LoginCard"] { margin-top: 12vh !important; }

/* ===== Création, écran de chargement : centré dans l'écran (il apparaissait collé en haut) ===== */
[data-b^="bTLkt "]:not([style*="display: none"]) {
  position: fixed !important; inset: 0 !important; align-self: stretch !important; justify-self: stretch !important;
  z-index: 450; width: auto !important; min-width: 0 !important; max-width: none !important;
  height: auto !important; min-height: 0 !important; max-height: none !important; margin: 0 !important;
  display: flex !important; flex-direction: column; justify-content: center !important; align-items: center !important;
  gap: 18px !important; background: rgba(17, 29, 54, .97) !important; padding: 24px !important; box-sizing: border-box;
}
body.gm-desktop [data-b^="bTLkt "]:not([style*="display: none"]) { left: var(--sb) !important; }
[data-b^="bTLkt "] > [data-b^="bTMBr "] { width: 64px !important; height: 64px !important; min-width: 64px !important; min-height: 64px !important; }
[data-b^="bTLkt "] > [data-b^="bTLxF "] { max-width: 360px !important; min-height: 2.8em; text-align: center; justify-content: center; }

/* ===== Création, étape « Voix » : icône Lecture / Pause de l'extrait ===== */
[data-b^="bTPVX0 "] { cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
[data-b^="bTPVX0 "]:hover { transform: scale(1.08); }
[data-b^="bTPVX0 "].gm-voice-none { opacity: .45; }

/* ===== Création : « Ton Gaymate est prêt » sur PC, largeur limitée et centrée (il s'étirait jusqu'à 768 px) ===== */
body.gm-desktop .gm-popup[data-b^="bTLxr1 "], body.gm-desktop .gm-popup[data-b^="bTLHp "] { min-width: 0 !important; max-width: 460px !important; width: calc(100% - 48px) !important; }
body.gm-desktop .gm-popup[data-b^="bTLHp "] > [data-b] { min-width: 0 !important; width: 100% !important; max-width: none !important; }
body.gm-desktop .gm-popup[data-b^="bTLxr1 "] > [data-b^="bTLxw1 "] { min-width: 0 !important; width: 100% !important; max-width: none !important; }

/* ===== Pages légales : des pages du site comme les autres (en-tête et barre du bas sur mobile, menu sur PC) ===== */
body[data-page=mentions_legales] .gm-page > [data-b$=" Group text content"], body[data-page=cgu] .gm-page > [data-b$=" Group text content"],
body[data-page=confidentialite] .gm-page > [data-b$=" Group text content"] { display: none !important; }
body[data-page=mentions_legales] .gm-page, body[data-page=cgu] .gm-page, body[data-page=confidentialite] .gm-page { display: block !important; }
#gm-legal { max-width: 720px; margin: 0 auto; padding: 84px 16px 120px; box-sizing: border-box; font-family: Poppins, sans-serif; color: #F5F7FB; animation: gm-fade-up .35s ease both; }
body.gm-desktop #gm-legal { padding: 40px 32px 60px; }
#gm-legal h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 700; line-height: 1.25; margin: 8px 0 18px; }
.gl-notice { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: #F5D9A8; background: rgba(252, 140, 21, .1); border: 1px solid rgba(252, 140, 21, .35); }
.gl-sec { background: #1A2742; border: 1px solid #34445F; border-radius: 18px; padding: 18px 20px; margin-bottom: 12px; }
.gl-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.gl-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: linear-gradient(135deg, #37A7EE, #2E76EB); }
.gl-sec p { margin: 0; font-size: 15px; line-height: 1.7; color: #D9E0EC; }
.gl-facts { margin: 0; display: grid; gap: 10px; }
.gl-facts div { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(52, 68, 95, .6); font-size: 15px; }
.gl-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.gl-facts dt { color: #AAB6CA; } .gl-facts dd { margin: 0; }
@media (max-width: 480px) { .gl-facts div { grid-template-columns: 1fr; gap: 2px; } }
.gl-todo { color: #FC8C15; background: rgba(252, 140, 21, .12); border-radius: 6px; padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#gm-legal { overflow-wrap: anywhere; }

/* ===== Profil > Notifications : deux interrupteurs (actualités, rappels) ===== */
/* Cases à choisir (notifications, langue) : toute la case passe en bleu quand elle est choisie. */
.gm-choices { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 2px 0 8px; font-family: Poppins, sans-serif; text-align: left; box-sizing: border-box; }
.gn-intro { margin: 0; font-size: 13px; color: #AAB6CA; }
.gc-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; cursor: pointer;
  background: #1A2742; border: 1px solid #34445F; transition: background .2s ease, border-color .2s ease, transform .1s ease; }
.gc-choice:hover { border-color: #4A5E80; }
.gc-choice:active { transform: scale(.99); }
.gc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gc-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; color: #F5F7FB; font-size: 14px; }
.gc-txt small { color: #AAB6CA; font-size: 12px; line-height: 1.4; transition: color .2s ease; }
.gc-check { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #4A5E80; box-sizing: border-box; display: grid; place-items: center; transition: all .2s ease; }
.gc-choice:has(input:checked) { background: linear-gradient(to right, #37A7EE, #2E76EB); border-color: transparent; }
.gc-choice:has(input:checked) .gc-txt small { color: rgba(255, 255, 255, .85); }
.gc-choice:has(input:checked) .gc-check { border-color: #fff; background: #fff; }
.gc-choice:has(input:checked) .gc-check::after { content: ''; width: 6px; height: 10px; border: solid #2E76EB; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.gc-choice:has(input:focus-visible) { outline: 2px solid #37A7EE; outline-offset: 2px; }
.gc-ok { margin-top: 6px; border: 0; border-radius: 12px; min-height: 44px; font: 600 16px Poppins, sans-serif; color: #F5F7FB; cursor: pointer; background: linear-gradient(to right, #37A7EE, #2E76EB); }
.gm-replaced { display: none !important; }

/* ===== Messagerie sans conversation : fausses conversations floutées + invitation à liker ===== */
#gm-msg-empty { position: relative; width: 100%; padding: 4px 8px 16px; box-sizing: border-box; font-family: Poppins, sans-serif; animation: gm-fade-up .35s ease both; }
.me-fake { filter: blur(3.5px); opacity: .55; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.me-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid rgba(52, 68, 95, .6); }
.me-av { flex: 0 0 52px; height: 52px; border-radius: 50%; background: #34445F center / cover no-repeat; }
.me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #F5F7FB; font-size: 15px; }
.me-txt small { color: #AAB6CA; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-time { color: #AAB6CA; font-size: 12px; align-self: flex-start; margin-top: 6px; }
.me-card { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: min(320px, calc(100% - 32px)); box-sizing: border-box;
  text-align: center; padding: 22px 20px; border-radius: 20px; background: rgba(26, 39, 66, .92); border: 1px solid #34445F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.me-heart { font-size: 28px; }
.me-card h3 { margin: 8px 0 6px; color: #F5F7FB; font-size: 17px; font-weight: 600; line-height: 1.35; }
.me-card p { margin: 0 0 16px; color: #AAB6CA; font-size: 13px; line-height: 1.5; }
.me-btn { border: 0; border-radius: 999px; padding: 11px 22px; font: 600 14px Poppins, sans-serif; color: #fff; cursor: pointer; background: linear-gradient(to right, #37A7EE, #2E76EB); }
.me-btn:hover { filter: brightness(1.08); }

/* ===== Profil > Abonnement : ligne « Acheter des MateCoins » (Plus et Max) ===== */
.gm-coins-row { display: flex; align-items: center; gap: 8px; min-height: 30px; cursor: pointer; font: 16px Poppins, sans-serif; color: #F5F7FB; }
.gcr-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.gcr-txt small { font-size: 12px; color: #FC8C15; }
.gcr-arrow { color: #AAB6CA; font-size: 22px; }
.gm-coins-row:hover { opacity: .85; }

/* ===== Inscription : vérification de l'âge à la place de la case à cocher ===== */
.gm-age { width: 100%; box-sizing: border-box; font-family: Poppins, sans-serif; text-align: center; }
.gm-age p { margin: 0; color: #AAB6CA; font-size: 13px; line-height: 1.55; }
.gm-age .gm-age-ok { margin-top: 8px; color: #4CD38A; font-weight: 600; font-size: 14px; }
/* Case « newsletter » de l'inscription (28/11/2026), sous l'acceptation des CGU. */
.gm-nl-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; box-sizing: border-box; margin: 10px 0 4px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.gm-nl-opt input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #2A6CEB; cursor: pointer; }
.gm-nl-opt span { opacity: .85; }

/* Lignes de l'aide de la messagerie, désormais cliquables. */
[data-b^="bTOgm0 "], [data-b^="bTOhD0 "], [data-b^="bTOhd0 "], [data-b^="bTOhi0 "] { cursor: pointer; }
