/* Thème « verre et halo » (15/11/2026, maquettes de l'utilisateur) : fond bleu nuit profond avec halos bleu / orange,
   cartes en verre (dégradé translucide, liseré clair), carte mise en avant avec un liseré bleu -> orange lumineux,
   boutons en dégradé, pastilles à icône. Chargé en dernier : il habille les pages du moteur sans les modifier
   (mêmes éléments, mêmes textes, mêmes workflows). Petites touches de DOM dans js/theme.js. */

:root {
  --t-bg: #0A1430;
  --t-text: #F5F7FB;
  --t-muted: #A9B6CC;
  --t-line: rgba(140, 170, 220, .16);
  --t-glass: linear-gradient(160deg, rgba(37, 56, 96, .62), rgba(16, 28, 56, .72));
  --t-glass-flat: rgba(24, 38, 70, .66);
  --t-blue: linear-gradient(90deg, #33B4F6, #2A6CEB);
  --t-orange: linear-gradient(90deg, #FF9F24, #FA6A0C);
  --t-halo: linear-gradient(115deg, #3AB0F5 0%, rgba(58, 176, 245, .18) 38%, rgba(252, 140, 21, .18) 62%, #FC8C15 100%);
  --t-halo-shadow: -16px -8px 44px -22px rgba(55, 167, 238, .75), 16px 10px 44px -22px rgba(252, 140, 21, .65);
  --t-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --t-coin: url(/assets/icons/matecoins.png?v=3);   /* ?v= : changer le numéro quand le fichier change (cache d'un jour) */
}

/* ---------------------------------------------------------------- Fond */
/* Le même fond, fixé à l'écran, sert aux bandeaux (en-tête, barre du bas, en-tête de la création) : ils se confondent
   avec la page, sans bord ni fondu (retour du 15/11/2026). */
:root {
  --t-page-bg:
    radial-gradient(900px 520px at -10% -8%, rgba(46, 118, 235, .26), transparent 62%),
    radial-gradient(700px 520px at 112% 108%, rgba(252, 140, 21, .13), transparent 60%),
    radial-gradient(600px 400px at 100% 0%, rgba(46, 118, 235, .10), transparent 60%),
    var(--t-bg);
}
html, .t-band { background: var(--t-page-bg) !important; background-attachment: fixed !important; }
body { background: transparent !important; }
.gm-page { background: transparent !important; }
.gm-custom { background: transparent !important; }

/* Cartes de Bubble (fond #22304A ou #1A2742 + liseré #34445F) : en verre. */
.gm-group[style*="background: rgb(34, 48, 74)"][style*="border-radius"],
.gm-group[style*="background: rgb(26, 39, 66)"][style*="border-radius"] {
  background: var(--t-glass) !important; border-color: var(--t-line) !important;
}

/* ---------------------------------------------------------------- En-tête mobile */
[data-b]:has(> [data-b^="bTPCn "]), [data-b^="bTIBR "], [data-b^="bTHzh0 "],
/* Tout bandeau flottant de Bubble au bleu nuit uni (#111D36) : en-tête et barre de saisie de la conversation, en-tête de
   la galerie… (la feuille « Options de la conversation » garde son fond de panneau). */
.gm-floating[style*="background: rgb(17, 29, 54)"]:not([data-b^="bTODt "]) {
  background: var(--t-page-bg) !important; background-attachment: fixed !important; box-shadow: none !important;
}
/* En-tête transparent sur toutes les pages (16/11/2026) : les halos des cartes passent dessous sans être coupés.
   Swipe : la barre du bas aussi (la carte ne défile pas). */
/* En-tête et barre du bas reconnus par leur contenu (logo bTOoq, navigation bTPCn) : sur certaines pages (profil, pages
   légales) l'élément réutilisable n'a pas de nom dans Bubble. */
[data-b]:has(> [data-b^="bTOoq "]) { background: transparent !important; box-shadow: none !important; }
/* Léger dégradé sombre derrière l'en-tête (16/11/2026) : le contenu qui défile s'efface sous le logo au lieu d'être
   coupé net. Pas sur le swipe, où rien ne défile (le halo de la carte reste entier). */
body:not([data-page=index]) [data-b]:has(> [data-b^="bTOoq "])::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 20, 48, .96) 0%, rgba(10, 20, 48, .88) 55%, rgba(10, 20, 48, 0) 100%);
}
body[data-page=index] [data-b]:has(> [data-b^="bTPCn "]) { background: transparent !important; }
.gm-hdr-coins, .gm-hdr-crown {
  width: 42px !important; height: 42px !important; min-width: 42px !important; max-width: 42px !important; min-height: 42px !important; max-height: 42px !important;
  border-radius: 50% !important; border: 1px solid var(--t-line) !important;
  background: radial-gradient(circle at 30% 25%, rgba(70, 96, 150, .55), rgba(20, 32, 62, .9)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px -8px rgba(0, 0, 0, .7) !important;
}
.gm-hdr-coins { top: calc(50% + 6px) !important; }   /* aligné sur la couronne (l'en-tête a 12 px de marge en haut) */
.gm-hdr-crown { opacity: 1 !important; }
/* Couronne : Bubble la désactive (grisée et non cliquable) ; elle mène toujours à « Gérer mon abonnement » (js/profil.js). */
.gm-hdr-crown.gm-disabled { opacity: 1 !important; pointer-events: auto !important; cursor: pointer; }
/* Icône MateCoins (web/assets/icons/matecoins.png) : « coins » de Phosphor, la famille de la couronne (même trait) ;
   20 px dans l'en-tête, comme la couronne, et le même orange. */
.gm-coin-glyph, .t-coin {
  display: block; width: 20px; height: 20px; font-size: 0 !important; color: transparent !important;
  background: #FC8C15;
  -webkit-mask: var(--t-coin) center / contain no-repeat; mask: var(--t-coin) center / contain no-repeat;
}
.gm-hdr-coins.off .gm-coin-glyph { background: #7D8AA3; }

/* ---------------------------------------------------------------- Barre du bas (mobile) */
[data-b$=" Group_BottomNav"] {
  flex-wrap: nowrap !important; column-gap: 0 !important; justify-content: space-around !important; padding: 0 4px !important;
  background: linear-gradient(180deg, rgba(40, 58, 96, .72), rgba(18, 30, 58, .86)) !important;
  border: 1px solid var(--t-line) !important; border-radius: 26px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 34px -14px rgba(0, 0, 0, .8) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
[data-b$=" Group_BottomNav"] > [data-b*=" Group_Nav"] { flex: 0 0 auto !important; min-width: 62px !important; }

/* ---------------------------------------------------------------- Swipe (mobile) */
/* La carte s'arrête au-dessus des boutons (maquette) : plus de chevauchement avec ✕ ♥ et le profil. */
body:not(.gm-desktop)[data-page=index] .gm-page > [data-b^="bTNBu "],
body:not(.gm-desktop)[data-page=index] .gm-page > [data-b^="bTNBP "],
body:not(.gm-desktop)[data-page=index] .gm-page > [data-b^="bTNPT "] {
  height: calc(100dvh - 210px) !important; min-height: 0 !important; max-height: none !important;   /* bas de la carte tout près des boutons */
  align-self: start !important; margin-top: 84px !important;
}
/* Troisième carte du deck (décorative, immobile) : derrière la carte suivante, elle dépasse un peu plus haut. Mêmes
   dimensions que les cartes (conteneur : 84 px du haut, largeur 100 % - 16 px plafonnée à 450 px ; carte : 95 % x 90 %, 20 px
   sous le haut du conteneur). */
body:not(.gm-desktop)[data-page=index] .gm-page { position: relative; }
/* Élément #t-card3 (js/theme.js) : photo d'un autre Mate, assombrie. Pendant un swipe elle avance d'un cran (place de
   la carte suivante), puis elle est remplacée en fondu par un nouveau Mate, revenu au fond du deck. */
#t-card3 { display: none; }
body:not(.gm-desktop)[data-page=index] .gm-page:has(> [data-b^="bTNBu "]:not([style*="display: none"])) > #t-card3 {
  --w: calc(min(100vw - 16px, 450px) * .95);
  display: block; position: absolute; z-index: 0; pointer-events: none; overflow: hidden;
  top: 104px; left: calc(50% - var(--w) / 2); width: var(--w); height: calc((100dvh - 210px) * .9); border-radius: 24px;
  /* Juste derrière la carte suivante (elle est décalée de 10 à 20 px vers le haut selon sa variante) : ~5 à 15 px visibles. */
  transform: translateY(-19px) scale(.93); transform-origin: top center;   /* à peine visible derrière la carte suivante */
  background: #1A2742 center / cover no-repeat; filter: brightness(.38) saturate(.7);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 -8px 28px -14px rgba(55, 167, 238, .55);
  transition: transform .55s cubic-bezier(.25, .8, .35, 1), filter .55s ease, opacity .3s ease;
}
body:not(.gm-desktop)[data-page=index] .gm-page > #t-card3.t-up { transform: translateY(-12px) scale(.98); filter: brightness(.8) saturate(1); }
body:not(.gm-desktop)[data-page=index] .gm-page > #t-card3.t-swap { opacity: 0; transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) { #t-card3 { transition: none !important; } }
/* Liseré lumineux bleu -> orange autour de la carte du dessus. */
[data-b^="bTHKo "] { position: relative; box-shadow: var(--t-halo-shadow), var(--t-shadow) !important; border-radius: 24px !important; }
[data-b^="bTHKo "]::after, [data-b^="bTHbf "]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 60;
  background: var(--t-halo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-b^="bTHbf "] { position: relative; border-radius: 24px !important; }
[data-b^="bTHbf "]::after { opacity: .35; }
/* Métier, taille, lieu : pastilles à icône. */
/* Une seule ligne : [métier] [lieu] (la taille est dans le panneau « i »), un peu d'air sous le prénom,
   et le même gris clair pour tous les textes et icônes des étiquettes. */
[data-b^="bTOsy "], [data-b^="bTQIZ0 "] { gap: 8px !important; flex-wrap: nowrap !important; margin-top: 10px !important; margin-bottom: 4px !important;
  max-width: 100% !important; min-width: 0 !important; overflow: hidden; }
[data-b^="bTQHn0 "], [data-b^="bTQIk0 "] { display: none !important; }
[data-b^="bTQHR0 "], [data-b^="bTQIe0 "] { flex: 0 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; flex-wrap: nowrap !important; align-items: center !important; }
/* Métier long (« Éducateur sportif ») : une seule ligne, coupé avec « … » plutôt que passé sous l'icône. */
[data-b^="bTQHR0 "] > .gm-text, [data-b^="bTQIe0 "] > .gm-text { min-width: 0 !important; max-width: 100% !important; flex: 0 1 auto !important;
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; display: block !important; }
[data-b^="bTQHR0 "] > .gm-icon, [data-b^="bTQIe0 "] > .gm-icon { flex: none !important; }
[data-b^="bTQHR0 "].t-empty, [data-b^="bTQIe0 "].t-empty { display: none !important; }
[data-b^="bTOsy "] > .gm-loc, [data-b^="bTQIZ0 "] > .gm-loc { flex: 0 0 auto !important; min-width: 0 !important; max-width: 50%; }
/* La ligne prend toute la largeur de la carte (Bubble : largeur ajustée au contenu + 16 px de marge de chaque côté). */
[data-b^="bTOsy "], [data-b^="bTQIZ0 "] { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }   /* marges de Bubble gardées : aligné sur le prénom */
[data-b^="bTQHR0 "] [data-b], [data-b^="bTQIe0 "] [data-b], .gm-loc-txt, .gm-loc-ico { color: #E4EAF4 !important; }
[data-b^="bTQHR0 "] .gm-text, [data-b^="bTQIe0 "] .gm-text, .gm-loc-txt { font-weight: 500 !important; }
[data-b^="bTQHR0 "], [data-b^="bTQHn0 "], [data-b^="bTQIe0 "], [data-b^="bTQIk0 "], [data-b^="bTOsy "] > .gm-loc, [data-b^="bTQIZ0 "] > .gm-loc {
  background: rgba(255, 255, 255, .09) !important; border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 13px !important;
  padding: 3px 12px 3px 6px !important; margin: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
[data-b^="bTQHR0 "] [data-b], [data-b^="bTQHn0 "] [data-b], [data-b^="bTQIe0 "] [data-b], [data-b^="bTQIk0 "] [data-b], .gm-loc-txt { font-size: 14.5px !important; }
[data-b^="bTQHR0 "], [data-b^="bTQIe0 "], [data-b^="bTOsy "] > .gm-loc, [data-b^="bTQIZ0 "] > .gm-loc { padding-right: 10px !important; column-gap: 0 !important; }
[data-b^="bTOsy "], [data-b^="bTQIZ0 "] { column-gap: 6px !important; }
.gm-loc-ico { color: #F5F7FB; }
/* Bio de la carte : 14 px dans Bubble -> 15,5 px, un peu plus lisible. */
[data-b^="bTHLB "], [data-b^="bTOvg "] { font-size: 15.5px !important; line-height: 1.45 !important; }
/* « En ligne » : pastille verte. */
[data-b^="bTOtW "], [data-b^="bTOvB "] { background: rgba(34, 160, 84, .28) !important; border: 1px solid rgba(76, 211, 138, .35) !important; border-radius: 999px !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Boutons ✕ ♥ profil : verre, et le ♥ en dégradé lumineux. */
[data-b^="bTHmF "], [data-b^="bTHpd "] {
  background: radial-gradient(circle at 35% 25%, rgba(70, 96, 150, .6), rgba(18, 30, 58, .95)) !important; border: 1px solid var(--t-line) !important;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}
/* Bouton « i » : orange tant que le panneau d'infos est ouvert (js/theme.js). */
[data-b^="bTHpX "].t-on [data-b^="bTHpd "] { background: radial-gradient(circle at 35% 25%, #FFB04A, #F56A0A) !important; border-color: rgba(255, 190, 120, .5) !important;
  box-shadow: 0 0 0 4px rgba(252, 140, 21, .16), 0 10px 26px -8px rgba(250, 110, 12, .8) !important; }
[data-b^="bTHpX "].t-on [data-b^="bTOuY "] { filter: brightness(0) invert(1); }
[data-b^="bTHpd "], [data-b^="bTOuY "] { transition: background .2s ease, box-shadow .2s ease, filter .2s ease; }
/* Panneau d'infos : lignes ajoutées (taille, lieu) APRÈS les lignes de Bubble (elles passaient en tête du cadre, avec
   leur trait de séparation au-dessus) ; galerie privée dans le même cadre que les infos. */
/* Ordre demandé le 16/11/2026 : Profession, Lieu, Taille, Personnalité, Loisirs (un trait entre chaque ; les lignes
   Lieu et Taille portent leur propre trait au-dessus). */
[data-b$=" Group_ProfilAttributes"] > [data-b$=" Group_Profession"] { order: 1 !important; }
[data-b$=" Group_ProfilAttributes"] > .gm-info-row.gm-loc-row { order: 2 !important; }
[data-b$=" Group_ProfilAttributes"] > .gm-info-row:not(.gm-loc-row) { order: 3 !important; }
[data-b$=" Group_ProfilAttributes"] > [data-b^="bTOxN "] { order: 4 !important; }
[data-b$=" Group_ProfilAttributes"] > [data-b$=" Group_Personality"] { order: 5 !important; }
[data-b$=" Group_ProfilAttributes"] > [data-b^="bTOxR "] { order: 6 !important; }
[data-b$=" Group_ProfilAttributes"] > [data-b$=" Group_Hobbies"] { order: 7 !important; }
/* Le panneau gardait 68 px en bas pour les boutons ✕ ♥, qui chevauchaient la carte dans Bubble ; ils sont désormais
   sous la carte : le dernier cadre descend jusqu'en bas. */
/* Même marge (14 px) à gauche, à droite et en bas : les cadres prennent toute la largeur utile (ils faisaient 94 %). */
[data-b^="bTLdU "] { padding: 10px 14px 14px !important; box-sizing: border-box; border-radius: 24px !important;
  /* Fond plus sombre et qui commence plus haut : prénom et « En ligne » restent lisibles même avec beaucoup d'infos. */
  background: linear-gradient(to bottom, rgba(10, 20, 48, .12) 0%, rgba(10, 20, 48, .55) 18%, rgba(10, 20, 48, .86) 38%, rgba(10, 20, 48, .95) 60%, rgba(10, 20, 48, .97) 100%) !important; }
[data-b^="bTLdU "] [data-b^="bTOxf "], [data-b^="bTLdU "] [data-b^="bTOxe "] { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
[data-b^="bTLdU "] > [data-b], [data-b^="bTLdU "] > .gm-gal { width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box; }
[data-b^="bTLdU "] .gm-gal.compact {
  width: 100% !important; align-self: center; margin-top: 2px; padding: 10px 14px; border-radius: var(--t-info-r, 16px);
  background: rgba(34, 48, 74, .58) !important; border: 1px solid rgba(52, 68, 95, .65) !important; box-shadow: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
[data-b^="bTHmX "] { box-shadow: 0 0 0 4px rgba(55, 167, 238, .14), 0 12px 32px -6px rgba(46, 118, 235, .75) !important; }

/* ---------------------------------------------------------------- Création */
[data-b^="bTPJG "] { display: block !important; font-size: 28px !important; font-weight: 700 !important; letter-spacing: -.3px; white-space: nowrap !important; }
/* Création : bandeaux du haut et du bas en fondu vers la page (retour du 15/11/2026, le bord net jurait avec le halo). */
[data-b^="bTIBR "] { padding: 0 16px 30px !important; box-sizing: border-box;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); }
[data-b^="bTHzh0 "] { padding-top: 30px !important;
  -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 30px), transparent); }
body:not(.gm-desktop) [data-b^="bTIBR "] { left: 0 !important; right: 0 !important; }
body:not(.gm-desktop) [data-b^="bTHwx "] { padding-top: 222px !important; }
.t-grad { background: linear-gradient(90deg, #38B6F7, #2F7BEE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-grad-o { background: linear-gradient(90deg, #FFA43A, #FA6E0C); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-b^="bTPJN "] { color: var(--t-muted) !important; }
[data-b^="bTHyl "] { height: 8px !important; min-height: 8px !important; max-height: 8px !important; border-radius: 99px !important; background: rgba(255, 255, 255, .08) !important; overflow: hidden; }
[data-b^="bTHzT0 "] { height: 8px !important; min-height: 8px !important; max-height: 8px !important; border-radius: 99px !important;
  background: linear-gradient(90deg, #38B6F7, #2A6CEB) !important; box-shadow: 0 0 12px rgba(55, 167, 238, .7); transition: width .35s ease; }
[data-b^="bTHzZ0 "] { color: var(--t-muted) !important; }
/* L'étape en cours : une carte en verre au liseré lumineux. */
[data-b^="bTHwx "] > [data-b*=" Group_Step"] {
  position: relative; box-sizing: border-box; width: calc(100% - 32px) !important; max-width: 640px !important; min-width: 0 !important;
  margin-left: auto !important; margin-right: auto !important; padding: 22px 18px 20px !important; border-radius: 26px !important;
  background: linear-gradient(160deg, rgba(30, 48, 88, .55), rgba(12, 22, 46, .72)) !important;
  box-shadow: var(--t-halo-shadow), var(--t-shadow) !important;
}
[data-b^="bTHwx "] > [data-b*=" Group_Step"]::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--t-halo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Titre de l'étape : à gauche, comme la maquette. */
[data-b^="bTHwx "] > [data-b*=" Group_Step"]:not([data-b^="bTIuq0 "]):not([data-b^="bTIFf0 "]) > .gm-text:first-of-type,
[data-b^="bTPPF "], [data-b^="bTPTb0 "], [data-b^="bTPVp0 "], [data-b^="bTPXn0 "], [data-b^="bTPSF0 "], [data-b^="bTPXz0 "], [data-b^="bTPej "],
[data-b^="bTPPY "], [data-b^="bTPQN "], [data-b^="bTPRQ "], [data-b^="bTPOc "], [data-b^="bTPSp0 "] {
  width: 100% !important; max-width: none !important; text-align: left !important; align-items: flex-start !important;
  font-size: 22px !important; font-weight: 700 !important; padding-left: 4px !important; box-sizing: border-box;
}
/* Étape 2 (prénom, âge, lieu) : tout aligné à gauche sur la largeur du cadre, comme son titre. */
[data-b^="bTIFf0 "] { row-gap: 8px !important; }
[data-b^="bTHwx "] > [data-b^="bTIFf0 "] > [data-b^="bTQGC0 "], [data-b^="bTIFf0 "] > [data-b^="bTQGb0 "], [data-b^="bTIFf0 "] > .gm-text.gm-loc-field {
  font-size: 17px !important; font-weight: 600 !important; color: #DCE4F2 !important; text-align: left !important; align-items: flex-start !important;
  padding: 0 0 0 2px !important; margin: 0 !important; width: 100% !important; box-sizing: border-box;
}
[data-b^="bTIFf0 "] > [data-b^="bTQGb0 "], [data-b^="bTIFf0 "] > .gm-text.gm-loc-field { margin-top: 12px !important; }
[data-b^="bTIFf0 "] > [data-b^="bTIFm0 "], [data-b^="bTIFf0 "] > .gm-group.gm-loc-field, [data-b^="bTIFf0 "] > [data-b^="bTIGD0 "] {
  width: 100% !important; min-width: 0 !important; max-width: none !important; align-self: stretch !important; box-sizing: border-box;
  height: 52px !important; min-height: 52px !important; max-height: 52px !important; border-radius: 14px !important;
  background: rgba(30, 46, 82, .62) !important; border: 1px solid rgba(140, 170, 220, .16) !important;
}
[data-b^="bTIFf0 "] input.gm-input { padding-left: 16px !important; padding-right: 16px !important; text-align: left !important; background: transparent !important; border: 0 !important; font-size: 16px !important; color: #F5F7FB !important; }
[data-b^="bTIFf0 "] input.gm-input:focus { outline: none; }
[data-b^="bTIFf0 "] > [data-b^="bTIFm0 "]:focus-within, [data-b^="bTIFf0 "] > .gm-group.gm-loc-field:focus-within { border-color: #3AA8F2 !important; box-shadow: 0 0 0 3px rgba(55, 167, 238, .18); }
/* Âge : la valeur à gauche, le curseur sur toute la largeur restante, dans le même cadre que les champs. */
[data-b^="bTIFf0 "] > [data-b^="bTIGD0 "] { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 16px; padding: 0 18px 0 16px !important; }
[data-b^="bTIGD0 "] > [data-b^="bTIGi0 "] { order: 1; align-self: center !important; flex: none !important; margin: 0 !important; font-size: 16px !important; font-weight: 600 !important; color: #F5F7FB !important; min-width: 58px !important; }
[data-b^="bTIGD0 "] > [data-b^="bTIGX0 "] { order: 2; align-self: center !important; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important;
  height: 22px !important; min-height: 22px !important; max-height: 22px !important; --sl-h: 22px; }
/* Étape Taille : même cadre que l'âge (valeur à gauche, curseur à droite). */
[data-b^="bTPSM0 "] { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 16px;
  width: 100% !important; min-width: 0 !important; max-width: none !important; align-self: stretch !important; box-sizing: border-box; margin: 4px 0 0 !important;
  height: 52px !important; min-height: 52px !important; max-height: 52px !important; padding: 0 18px 0 16px !important; border-radius: 14px !important;
  background: rgba(30, 46, 82, .62) !important; border: 1px solid rgba(140, 170, 220, .16) !important; }
[data-b^="bTPSM0 "] > [data-b^="bTPSS0 "] { order: 1; align-self: center !important; flex: none !important; margin: 0 !important; min-width: 70px !important;
  font-size: 16px !important; font-weight: 600 !important; color: #F5F7FB !important; }
[data-b^="bTPSM0 "] > [data-b^="bTPSR0 "] { order: 2; align-self: center !important; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important;
  margin: 0 !important; height: 22px !important; min-height: 22px !important; max-height: 22px !important; --sl-h: 22px; }
/* Curseurs de la création (âge, taille) : barre fine arrondie, poignée ronde lumineuse. */
body[data-page=create] .gm-slider::before { top: 50% !important; bottom: auto !important; height: 6px; transform: translateY(-50%); border-radius: 99px !important; background: rgba(255, 255, 255, .12) !important; border: 0 !important; }
body[data-page=create] .gm-slider input::-webkit-slider-thumb { width: 22px !important; height: 22px !important; border-radius: 50% !important; border: 3px solid #fff !important;
  background: #2E8CEF !important; box-shadow: 0 0 0 4px rgba(55, 167, 238, .25), 0 4px 12px rgba(46, 118, 235, .6) !important; }
body[data-page=create] .gm-slider input::-moz-range-thumb { width: 22px !important; height: 22px !important; border-radius: 50% !important; border: 3px solid #fff !important; background: #2E8CEF !important; }
/* Options : lignes pleine largeur avec rond à cocher à droite. */
body[data-page=create] [data-b$="Option"]:not([data-b^="bTPSM0 "]) {
  width: 100% !important; min-width: 0 !important; max-width: none !important; height: 52px !important; min-height: 52px !important; max-height: 52px !important;
  flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-start !important; box-sizing: border-box;
  background: rgba(30, 46, 82, .62) !important; border: 1px solid rgba(140, 170, 220, .14) !important; border-radius: 14px !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .1s ease; cursor: pointer;
}
body[data-page=create] [data-b$="Option"]:not([data-b^="bTPSM0 "]):hover { border-color: rgba(140, 170, 220, .32) !important; }
body[data-page=create] [data-b$="Option"]:not([data-b^="bTPSM0 "]):active { transform: scale(.99); }
body[data-page=create] [data-b$="Option"]:not([data-b^="bTPSM0 "])::after {
  content: ''; order: 99; flex: 0 0 22px; height: 22px; margin: 0 14px 0 auto; border-radius: 50%; box-sizing: border-box; border: 2px solid rgba(220, 230, 245, .55);
  background: center / 13px no-repeat;
}
body[data-page=create] [data-b$="Option"][style*="border: 1px solid rgb(55, 167, 238)"]:not([data-b^="bTPSM0 "]) {
  background: linear-gradient(90deg, rgba(36, 112, 220, .62), rgba(24, 74, 170, .62)) !important; border-color: #3AA8F2 !important;
  box-shadow: 0 0 0 1px rgba(55, 167, 238, .35), 0 8px 24px -8px rgba(46, 118, 235, .7) !important;
}
body[data-page=create] [data-b$="Option"][style*="border: 1px solid rgb(55, 167, 238)"]:not([data-b^="bTPSM0 "])::after {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A6CEB' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
}
body[data-page=create] [data-b$="Option"] [data-b$="Check"] { display: none !important; }
body[data-page=create] [data-b$="Option"] .gm-text { font-weight: 500; }
/* Prénom, âge, taille : champs et curseurs en verre. */
body[data-page=create] input.gm-input, body[data-page=create] [data-b^="bTIFm0 "], body[data-page=create] .gm-loc-field[class*="gm-group"] {
  border-radius: 14px !important;
}
/* Boutons Précédent / Suivant. */
[data-b^="bTIAh "], [data-b^="bTIAn "] { min-height: 52px !important; border-radius: 16px !important; font-size: 17px !important; transition: transform .12s ease, filter .15s ease; }
[data-b^="bTIAh "] { background: rgba(28, 44, 80, .7) !important; border: 1px solid var(--t-line) !important; color: #E3E9F4 !important; }
[data-b^="bTIAn "] { background: linear-gradient(90deg, #36B2F6, #2A6CEB) !important; box-shadow: 0 10px 28px -10px rgba(46, 118, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
[data-b^="bTIAh "]:active, [data-b^="bTIAn "]:active { transform: scale(.97); }
.t-ico-next::after, .t-ico-prev::before, .t-ico-check::before {
  content: ''; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--t-svg) center / contain no-repeat; mask: var(--t-svg) center / contain no-repeat;
}
.t-ico-next { --t-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12h15M13 6l6 6-6 6'/></svg>"); }
.t-ico-prev { --t-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12H5M11 6l-6 6 6 6'/></svg>"); }
.t-ico-check { --t-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4.5 12.5l5 5L19.5 7'/></svg>"); }
[data-b^="bTIAh "], [data-b^="bTIAn "] { gap: 10px !important; flex: 1 1 0 !important; min-width: 0 !important; }
[data-b^="bTHxj "] { max-width: 640px !important; min-width: 0 !important; margin: 0 auto !important; flex-wrap: nowrap !important; box-sizing: border-box; }
/* Étape 1 : « Précédent » est masqué (Bubble le rend invisible) ; « Suivant » prend toute la largeur. */
[data-b^="bTIAh "][style*="visibility: hidden"] { display: none !important; }

/* Résumé (dernière étape) : une carte par rubrique, avec son icône. */
[data-b^="bTIuq0 "] { padding: 18px 14px !important; }
[data-b^="bTPix0 "] { font-size: 24px !important; font-weight: 700 !important; }
[data-b^="bTPmn0 "], [data-b^="bTPoB0 "], [data-b^="bTPpL0 "], [data-b^="bTPqR0 "], [data-b^="bTPsv0 "] {
  display: grid !important; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: center;
  width: 100% !important; max-width: none !important; min-width: 0 !important; box-sizing: border-box; padding: 16px 14px !important; margin: 0 0 12px !important;
  height: auto !important; min-height: 0 !important; max-height: none !important;
  background: linear-gradient(160deg, rgba(36, 56, 98, .5), rgba(14, 26, 52, .66)) !important; border: 1px solid var(--t-line) !important; border-radius: 20px !important;
}
[data-b^="bTPmn0 "]::before, [data-b^="bTPoB0 "]::before, [data-b^="bTPpL0 "]::before, [data-b^="bTPqR0 "]::before, [data-b^="bTPsv0 "]::before {
  content: ''; grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 54px; height: 54px; border-radius: 16px; box-sizing: border-box;
  border: 1px solid rgba(55, 167, 238, .28); background: rgba(46, 118, 235, .12) var(--t-icon) center / 30px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
[data-b^="bTPmn0 "] { --t-icon: url(/assets/icons/resume-identite.png); }
[data-b^="bTPoB0 "] { --t-icon: url(/assets/icons/resume-apparence.png); }
[data-b^="bTPpL0 "] { --t-icon: url(/assets/icons/resume-personnalite.png); }
[data-b^="bTPqR0 "] { --t-icon: url(/assets/icons/resume-loisirs.png); }
[data-b^="bTPsv0 "] { --t-icon: url(/assets/icons/resume-accessoires.png); }
[data-b^="bTPnG0 "], [data-b^="bTPoT0 "], [data-b^="bTPpn0 "], [data-b^="bTPqj0 "], [data-b^="bTPtN0 "] {
  grid-column: 2; grid-row: 1; justify-self: start; text-align: left !important; width: auto !important; margin: 0 !important; font-size: 18px !important; font-weight: 700 !important;
}
[data-b^="bTPmz0 "], [data-b^="bTPoD0 "], [data-b^="bTPpQ0 "], [data-b^="bTPqT0 "], [data-b^="bTPtA0 "] {
  grid-column: 2; grid-row: 2; justify-self: stretch; justify-content: flex-start !important; width: 100% !important; max-width: none !important; min-width: 0 !important;
  margin: 0 !important; gap: 8px !important; height: auto !important; max-height: none !important;
}
/* Loisirs et accessoires du résumé : pastilles copiées d'un modèle de Bubble jamais dessiné (caché), donc sans style ;
   même rendu que les pastilles des autres rubriques. */
[data-b^="bTPqT0 "] > .gm-dyn-chip, [data-b^="bTPtA0 "] > .gm-dyn-chip {
  display: inline-flex !important; align-items: center; height: 32px; box-sizing: border-box; padding: 4px 14px; margin: 0;
  border-radius: 999px; background: linear-gradient(to right, #37A7EE, #2E76EB); box-shadow: 0 4px 14px -6px rgba(46, 118, 235, .7);
  font: 500 14px/1.4 Poppins, sans-serif; color: #F5F7FB; white-space: nowrap;
}
/* Mobile : cadres plus serrés en hauteur. */
@media (max-width: 767px) {
  [data-b^="bTIuq0 "] { padding: 16px 12px 12px !important; }
  [data-b^="bTPmn0 "], [data-b^="bTPoB0 "], [data-b^="bTPpL0 "], [data-b^="bTPqR0 "], [data-b^="bTPsv0 "] {
    grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 10px 12px !important; margin: 0 0 8px !important; border-radius: 18px !important;
  }
  [data-b^="bTPmn0 "]::before, [data-b^="bTPoB0 "]::before, [data-b^="bTPpL0 "]::before, [data-b^="bTPqR0 "]::before, [data-b^="bTPsv0 "]::before {
    width: 44px; height: 44px; border-radius: 13px; background-size: 24px;
  }
  [data-b^="bTPnG0 "], [data-b^="bTPoT0 "], [data-b^="bTPpn0 "], [data-b^="bTPqj0 "], [data-b^="bTPtN0 "] { font-size: 16px !important; line-height: 1.25 !important; }
  [data-b^="bTPmz0 "], [data-b^="bTPoD0 "], [data-b^="bTPpQ0 "], [data-b^="bTPqT0 "], [data-b^="bTPtA0 "] { gap: 6px !important; }
  [data-b^="bTPmz0 "] [data-b*=" Chip_"], [data-b^="bTPoD0 "] [data-b*=" Chip_"], [data-b^="bTPpQ0 "] [data-b*=" Chip_"],
  [data-b^="bTPqT0 "] [data-b*=" Chip_"], [data-b^="bTPtA0 "] [data-b*=" Chip_"] { min-height: 0 !important; height: auto !important; max-height: none !important; padding-top: 4px !important; padding-bottom: 4px !important; }
}
[data-b^="bTPmz0 "] [data-b^="bTP"][data-b*=" Chip_"], [data-b^="bTPoD0 "] [data-b*=" Chip_"], [data-b^="bTPpQ0 "] [data-b*=" Chip_"],
[data-b^="bTPqT0 "] [data-b*=" Chip_"], [data-b^="bTPtA0 "] [data-b*=" Chip_"] { margin: 0 !important; border-radius: 999px !important; box-shadow: 0 4px 14px -6px rgba(46, 118, 235, .7); }

/* ---------------------------------------------------------------- Conversation */
/* Toutes les bulles du Mate (texte et vocal) dans le même gris bleuté ; celles de l'utilisateur restent bleues. */
[data-b^="bTMKz "][style*="background: rgb(245, 247, 251)"] {
  background: linear-gradient(160deg, rgba(42, 60, 98, .92), rgba(28, 41, 70, .94)) !important; border: 1px solid rgba(255, 255, 255, .08) !important;
}
[data-b^="bTMKz "][style*="background: rgb(245, 247, 251)"] .gm-text { color: #EEF2F8 !important; }
[data-b^="bTMKz "] { padding: 8px 14px !important; }
body.gm-desktop [data-b^="bTMKz "] { max-width: min(66%, 520px) !important; }   /* PC : lignes de lecture raisonnables */
.t-mate .gm-voice { background: linear-gradient(160deg, rgba(42, 60, 98, .92), rgba(28, 41, 70, .94)); }
/* Séries : peu d'écart entre deux messages du même expéditeur, plus d'air quand on change d'expéditeur ; coins
   resserrés côté expéditeur à l'intérieur d'une série. */
[data-b^="bTMKt "].t-mate, [data-b^="bTMKt "].t-user { padding-top: 14px !important; }
[data-b^="bTMKt "].t-cont { padding-top: 3px !important; }
.t-mate.t-cont > [data-b^="bTMKz "], .t-mate.t-cont .gm-voice { border-top-left-radius: 6px !important; }
.t-mate:not(.t-last) > [data-b^="bTMKz "], .t-mate:not(.t-last) .gm-voice { border-bottom-left-radius: 6px !important; }
.t-user.t-cont > [data-b^="bTMKz "], .t-user.t-cont .gm-voice { border-top-right-radius: 6px !important; }
.t-user:not(.t-last) > [data-b^="bTMKz "], .t-user:not(.t-last) .gm-voice { border-bottom-right-radius: 6px !important; }
/* Avatar du Mate : un peu plus grand, seulement sous le dernier message de la série (la place reste réservée). */
.t-mate > [data-b^="bTMPM "] { width: 28px !important; min-width: 28px !important; max-width: 28px !important; margin-right: 8px !important; }
.t-mate:not(.t-last) > [data-b^="bTMPM "] { visibility: hidden; }
/* Photo ouverte en grand : bouton Télécharger en haut à droite (même place et même taille que la croix, à gauche). */
.t-dl { position: absolute; top: 20px; right: 16px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #F5F7FB; font-size: 21px; background: rgba(28, 44, 80, .82); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .12s ease, background .15s ease; }
.t-dl:hover { background: rgba(46, 118, 235, .85); }
.t-dl.t-flag { right: 66px; }
.t-dl.t-flag:hover { background: rgba(243, 95, 109, .85); }
/* Fenêtre « Signaler cette photo » */
.t-report .gm-modal { background: var(--t-glass); border-color: var(--t-line); box-shadow: var(--t-shadow); font-family: Poppins, sans-serif; color: #F5F7FB; }
.t-report-intro { margin: 0 0 12px; text-align: center; }
.t-report-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.t-report-list .gc-choice { padding: 10px 12px; }
.t-report textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px; padding: 10px 12px; border-radius: 12px; font: 14px Poppins, sans-serif;
  color: #F5F7FB; background: rgba(10, 20, 48, .6); border: 1px solid var(--t-line); }
.t-report textarea:focus { outline: none; border-color: #3AA8F2; }
.t-report-msg { color: #FF8B95 !important; margin: 8px 0 0; }
.t-report-done { text-align: center; color: #D9E0EC !important; font-size: 15px !important; margin: 6px 0; }
/* Relations retirées (18/11/2026) : Beau-frère et Beau-père, désactivées aussi sur le serveur. */
[data-b^="bTOPK "], [data-b^="bTOPn "] { display: none !important; }
/* Le bandeau flottant de la croix (FG_BackButton, toute la largeur, transparent) passait au-dessus du bouton et prenait le
   clic : seuls ses boutons restent cliquables, le reste laisse passer les clics. */
.gm-floating[data-b^="bTMZN "] { pointer-events: none; }
.gm-floating[data-b^="bTMZN "] > * { pointer-events: auto; }
.t-dl:active { transform: scale(.92); }
.t-dl.busy { opacity: .6; pointer-events: none; }
/* Messagerie sans être connecté (js/theme.js, guestMessages) : écran grisé + carte « Connecte-toi ». */
#t-msg-guest { position: fixed; z-index: 105; top: 64px; bottom: 88px; left: 0; right: 0; overflow: hidden; font-family: Poppins, sans-serif; animation: gm-fade-up .3s ease both;
  background: var(--t-page-bg); background-attachment: fixed; }   /* opaque : la page vide de dessous ne se mélange pas aux fausses conversations */
body.gm-desktop #t-msg-guest { z-index: 450; top: 0; bottom: 0; left: var(--sb); }
.tg-fake { padding: 12px 16px; max-width: 640px; margin: 0 auto; filter: blur(4px) saturate(.6); opacity: .55; pointer-events: none; user-select: none; }
body.gm-desktop .tg-fake { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; padding: 28px 40px; }
.tg-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid rgba(140, 170, 220, .10); }
.tg-av { flex: 0 0 52px; height: 52px; border-radius: 50%; background: #34445F center / cover no-repeat; }
.tg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #F5F7FB; font-size: 15px; }
.tg-txt small { color: #AAB6CA; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-time { color: #AAB6CA; font-size: 12px; align-self: flex-start; margin-top: 6px; }
.tg-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 48, .55), rgba(10, 20, 48, .78)); -webkit-backdrop-filter: grayscale(.6); backdrop-filter: grayscale(.6); }
.tg-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 32px)); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 22px 22px; border-radius: 24px;
  background: var(--t-glass); border: 1px solid var(--t-line); box-shadow: var(--t-halo-shadow), var(--t-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tg-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #6CC2F7; background: rgba(46, 118, 235, .16); border: 1px solid rgba(55, 167, 238, .28); }
.tg-card h3 { margin: 4px 0 0; color: #F5F7FB; font-size: 18px; font-weight: 700; line-height: 1.3; }
.tg-card p { margin: 0 0 6px; color: var(--t-muted); font-size: 14px; line-height: 1.5; }
.tg-btn { width: 100%; min-height: 46px; border-radius: 999px; font: 600 15px Poppins, sans-serif; cursor: pointer; color: #F5F7FB; background: rgba(28, 44, 80, .7); border: 1px solid var(--t-line); }
.tg-btn.primary { border: 0; background: var(--t-blue); box-shadow: 0 10px 24px -10px rgba(46, 118, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.tg-btn:active { transform: scale(.98); }
body:has(#t-msg-guest) #gm-chat-empty { display: none !important; }
/* Messagerie sans conversation (js/retours.js, emptyMessages) : même écran plein que le visiteur, carte centrée. */
#gm-msg-empty { position: fixed !important; z-index: 105; top: 64px; bottom: 88px; left: 0; right: 0; width: auto !important; overflow: hidden; padding: 12px 16px !important;
  background: var(--t-page-bg); background-attachment: fixed; }
body.gm-desktop #gm-msg-empty { z-index: 450; top: 0; bottom: 0; left: var(--sb); padding: 28px 40px !important; }
body.gm-desktop #gm-msg-empty .me-fake { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
#gm-msg-empty .me-fake { max-width: 640px; margin: 0 auto; -webkit-mask-image: none; mask-image: none; }
body.gm-desktop #gm-msg-empty .me-fake { max-width: none; }
#gm-msg-empty::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 48, .5), rgba(10, 20, 48, .75)); pointer-events: none; }
#gm-msg-empty .me-card { z-index: 1; top: 50%; transform: translate(-50%, -50%); background: var(--t-glass); border-color: var(--t-line); box-shadow: var(--t-halo-shadow), var(--t-shadow); }
body:has(#gm-msg-empty) #gm-chat-empty { display: none !important; }
/* MateCoins de l'en-tête grisé et inactif quand la messagerie n'a rien à montrer (visiteur, aucune conversation) et
   pendant la création d'un Mate. */
body:has(#t-msg-guest) .gm-hdr-coins, body:has(#gm-msg-empty) .gm-hdr-coins, body[data-page=create] .gm-hdr-coins { opacity: .4 !important; pointer-events: none !important; }
body:has(#t-msg-guest) .gm-hdr-coins .gm-coin-glyph, body:has(#gm-msg-empty) .gm-hdr-coins .gm-coin-glyph,
body[data-page=create] .gm-hdr-coins .gm-coin-glyph { background: #7D8AA3 !important; }
/* ---------------------------------------------------------------- Profil */
[data-b^="bTJxa "] {
  position: relative; overflow: hidden; box-sizing: border-box; padding: 26px 18px 20px !important; border-radius: 26px !important;
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(46, 118, 235, .35), transparent 55%),
    linear-gradient(160deg, rgba(30, 48, 88, .6), rgba(12, 22, 46, .75)) !important;
  border: 1px solid var(--t-line) !important; box-shadow: var(--t-shadow) !important;
}
/* « Modifier mon profil » : la photo actuelle (ou la nouvelle choisie) est visible ; le bouton d'envoi de Bubble, posé
   par-dessus, devient transparent mais reste la zone cliquable (le crayon indique qu'on peut changer la photo). */
[data-b^="bTLNZ "] { opacity: 0 !important; z-index: 23 !important; cursor: pointer; }
[data-b^="bTLMh "] { pointer-events: none; }
[data-b^="bTLMu "] { z-index: 24 !important; pointer-events: none; }
[data-b^="bTLMh "][src^="data:image/gif"], [data-b^="bTLMh "]:not([src]), [data-b^="bTLMh "][src=""] { background: #22304A url(/assets/icons/avatar-default.png) center / cover no-repeat; }
[data-b^="bTKAb "][src^="data:image/gif"] { background: #22304A url(/assets/icons/avatar-default.png) center / cover no-repeat; }
[data-b^="bTJxl "] { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; cursor: pointer; }
[data-b^="bTJxl "]::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--t-out) center / contain no-repeat; mask: var(--t-out) center / contain no-repeat;
  --t-out: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 16l4-4-4-4M14 12H4'/></svg>"); }
[data-b^="bTKAb "] { border-radius: 50% !important; box-shadow: 0 0 0 3px rgba(55, 167, 238, .85), 0 0 26px rgba(55, 167, 238, .45) !important; }
[data-b^="bTJxb "] { font-weight: 700 !important; }
[data-b^="bTJxh "] { border-radius: 999px !important; min-height: 48px !important; background: linear-gradient(90deg, #36B2F6, #2A6CEB) !important;
  box-shadow: 0 10px 26px -10px rgba(46, 118, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
[data-b^="bTKBD "], [data-b^="bTKCB "], [data-b^="bTKCd "] {
  background: var(--t-glass) !important; border: 1px solid var(--t-line) !important; border-radius: 24px !important; box-shadow: var(--t-shadow) !important;
}
/* Lignes : l'icône dans une pastille carrée, séparateurs fins. */
[data-b^="bTKBW "], [data-b^="bTKBp "], [data-b^="bTKDs "], [data-b^="bTKDD "], [data-b^="bTKDO "], [data-b^="bTKDZ "], [data-b^="bTKDh "] {
  width: 38px !important; min-width: 38px !important; max-width: 38px !important; height: 38px !important; min-height: 38px !important; max-height: 38px !important;
  border-radius: 12px !important; background: rgba(255, 255, 255, .07) !important; border: 1px solid rgba(255, 255, 255, .06); box-sizing: border-box;
}
[data-b^="bTKBc "], [data-b^="bTKBn "], [data-b^="bTKDn "], [data-b^="bTKDB "], [data-b^="bTKDJ "], [data-b^="bTKDU "], [data-b^="bTKDf "] {
  min-height: 56px !important; height: auto !important; max-height: none !important; align-items: center !important; cursor: pointer; border-radius: 12px;
  flex-wrap: nowrap !important; column-gap: 14px !important; padding: 0 4px !important; box-sizing: border-box;
  border-bottom: 1px solid rgba(140, 170, 220, .10) !important; transition: background .15s ease;
}
/* Flèches de Langue et Notifications (celles de Bubble), calées à droite. */
[data-b^="bTKEE "], [data-b^="bTKDy "] { margin-left: auto !important; align-self: center !important; color: #C9D3E3 !important; }
[data-b^="bTKBF "], [data-b^="bTKBt "], [data-b^="bTKDt "], [data-b^="bTKDH "], [data-b^="bTKDP "], [data-b^="bTKDa "], [data-b^="bTKDl "] {
  flex: 1 1 auto !important; min-width: 0 !important; width: auto !important;
}
/* Pas de flèche sur Supprimer le compte ni sur les pages à consulter (contact, mentions, CGU, confidentialité) :
   les flèches restent réservées aux réglages (Langue, Notifications), demande du 16/11/2026. */
:root { --t-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>"); }
[data-b^="bTKDn "], [data-b^="bTKDf "] { border-bottom: 0 !important; }
[data-b^="bTKBc "]:hover, [data-b^="bTKBn "]:hover, [data-b^="bTKDn "]:hover, [data-b^="bTKDB "]:hover, [data-b^="bTKDJ "]:hover, [data-b^="bTKDU "]:hover, [data-b^="bTKDf "]:hover { background: rgba(255, 255, 255, .03); }
[data-b^="bTQJn "], [data-b^="bTQKL "] { width: 100% !important; max-width: none !important; box-sizing: border-box; border-radius: 16px !important; min-height: 52px !important; box-shadow: 0 10px 26px -10px rgba(250, 110, 12, .75), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }

/* ---------------------------------------------------------------- Cartes maison (MateCoins, abonnement, légal) */
.gc-card, .gs-card, .gs-offer, .gl-sec, .gc-choice, .gm-gal {
  background: var(--t-glass) !important; border-color: var(--t-line) !important; box-shadow: var(--t-shadow);
}
.gc-choice:has(input:checked) { background: linear-gradient(90deg, rgba(36, 112, 220, .7), rgba(24, 74, 170, .7)) !important; border-color: #3AA8F2 !important; }
.gs-btn, .gc-btn, .me-btn, .gc-ok { box-shadow: 0 10px 24px -10px rgba(46, 118, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }

/* Page MateCoins (js/pages.js) */
.cn { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; position: relative; }
.gm-custom:has(.cn) { overflow-x: clip; }   /* le halo de l'illustration dépasse à droite : pas de défilement horizontal */
.cn-hero { position: relative; padding: 4px 120px 0 4px; min-height: 150px; }
.cn-hero h1 { margin: 18px 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -.3px; }
.cn-hero p { margin: 0; color: var(--t-muted); font-size: 14.5px; line-height: 1.5; }
.cn-art { position: absolute; right: -6px; top: 18px; width: 130px; height: 130px; filter: drop-shadow(0 14px 22px rgba(250, 110, 12, .45)); pointer-events: none; }
.cn-art i { display: block; width: 100%; height: 100%; background: linear-gradient(150deg, #FFC86B 10%, #FC8C15 55%, #D9520A);
  -webkit-mask: var(--t-coin) center / contain no-repeat; mask: var(--t-coin) center / contain no-repeat; transform: rotate(-8deg); }
.cn-hero::before { content: ''; position: absolute; right: -60px; top: -40px; width: 260px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 118, 235, .28), transparent); pointer-events: none; }
.gc-back.cn-back { width: 46px; height: 46px; display: grid; place-items: center; font-size: 0; background: rgba(28, 44, 80, .75); border: 1px solid var(--t-line); }
.gc-back.cn-back::before { content: ''; width: 20px; height: 20px; background: #F5F7FB;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M15 5l-7 7 7 7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M15 5l-7 7 7 7'/></svg>") center / contain no-repeat; }
.cn-balance { display: flex; align-items: center; gap: 22px; padding: 30px 26px; min-height: 140px; box-sizing: border-box; border-radius: 24px; position: relative;
  background: linear-gradient(120deg, rgba(36, 76, 150, .55), rgba(16, 30, 62, .8)); border: 1px solid rgba(55, 167, 238, .38);
  box-shadow: 0 0 0 1px rgba(55, 167, 238, .08), 0 14px 36px -16px rgba(46, 118, 235, .6); }
.cn-orb { flex: 0 0 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFB04A, #F56A0A);
  box-shadow: 0 8px 24px -6px rgba(250, 110, 12, .7), inset 0 2px 0 rgba(255, 255, 255, .3); }
.cn-orb i { width: 40px; height: 40px; background: #fff; -webkit-mask: var(--t-coin) center / contain no-repeat; mask: var(--t-coin) center / contain no-repeat; }
.cn-balance .cn-sep { align-self: stretch; width: 1px; background: rgba(255, 255, 255, .12); }
.cn-balance small { color: var(--t-muted); font-size: 14px; }
.cn-balance b { display: block; font-size: 30px; font-weight: 700; margin: 4px 0 8px; letter-spacing: -.3px; }
.cn-balance p { margin: 0; color: #C3CEDF; font-size: 13px; line-height: 1.5; }
.cn-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cn-pack { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 22px 14px 16px; border-radius: 22px;
  background: var(--t-glass); border: 1px solid var(--t-line); box-shadow: var(--t-shadow); }
.cn-pack.hot { border: 1.5px solid #FC8C15; background: radial-gradient(120% 80% at 0% 0%, rgba(252, 140, 21, .18), transparent 60%), var(--t-glass);
  box-shadow: 0 0 0 1px rgba(252, 140, 21, .12), 0 16px 40px -16px rgba(252, 140, 21, .55); }
.cn-tag { position: absolute; top: -12px; right: -6px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: var(--t-orange); box-shadow: 0 6px 16px -4px rgba(250, 110, 12, .7); }
.cn-stack { width: 52px; height: 52px; margin: 0 0 6px; filter: drop-shadow(0 4px 10px rgba(250, 110, 12, .35)); }
.cn-pack b { font-size: 30px; font-weight: 700; line-height: 1.15; background: linear-gradient(180deg, #FFAE45, #FA6E0C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cn-pack .cn-unit { color: var(--t-muted); font-size: 14px; }
.cn-pack .cn-bonus { color: #7EC8F5; font-size: 12px; }
.cn-pack .cn-price { font-size: 18px; font-weight: 700; margin: 6px 0 10px; }
.cn-pack .gc-btn { padding: 12px; font-size: 15px; }
/* Réassurance (maquette du 27/11/2026) : sans cadre, posée sur le fond, trois engagements séparés par de fins traits
   verticaux. Mobile : trois colonnes, icône au-dessus du texte. */
.cn-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; }
.cn-trust > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 2px 8px; }
.cn-trust > div + div { border-left: 1px solid rgba(160, 190, 235, .14); }
.cn-ti { flex: 0 0 auto; width: 30px; height: 30px; }
.cn-ti.blue { color: #3FA6F5; filter: drop-shadow(0 0 8px rgba(63, 166, 245, .35)); }
.cn-ti.orange { color: #FC8C15; filter: drop-shadow(0 0 8px rgba(252, 140, 21, .4)); }
.cn-trust span { display: flex; flex-direction: column; gap: 2px; }
.cn-trust b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cn-trust small { color: var(--t-muted); font-size: 11.5px; line-height: 1.35; }
.cn-tag svg { width: 14px; height: 14px; }
/* Historique replié (27/11/2026) : simple lien en bas de page, la liste s'ouvre au clic. */
.cn-hist { border-radius: 22px; }
.cn-hist > summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; cursor: pointer;
  color: var(--t-muted); font: 500 14px Poppins, sans-serif; border-radius: 14px; transition: color .15s ease; }
.cn-hist > summary::-webkit-details-marker { display: none; }
.cn-hist > summary::after { content: ''; width: 14px; height: 14px; background: currentColor; transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") center / contain no-repeat; }
.cn-hist > summary:hover { color: #F5F7FB; }
.cn-hist[open] { padding: 6px 16px 8px; background: var(--t-glass); border: 1px solid var(--t-line); box-shadow: var(--t-shadow); }
.cn-hist[open] > summary { color: #F5F7FB; }
.cn-hist[open] > summary::after { transform: rotate(180deg); }
.cn-hist-head { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 4px; }
.cn-hist-head:empty { display: none; }
.cn-filter { appearance: none; -webkit-appearance: none; border: 1px solid var(--t-line); border-radius: 999px; padding: 8px 36px 8px 16px; color: #F5F7FB; cursor: pointer;
  font: 500 14px Poppins, sans-serif; background: rgba(20, 34, 64, .8) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") right 12px center / 16px no-repeat; }
.cn-filter option { background: #13213F; }
.cn-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 52px; align-items: center; gap: 12px; padding: 10px 0; }
.cn-row + .cn-row { border-top: 1px solid rgba(140, 170, 220, .10); }
.cn-row[hidden] { display: none; }
.cn-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #6CC2F7; background: rgba(46, 118, 235, .16); border: 1px solid rgba(55, 167, 238, .18); }
.cn-ico.plus { color: #4CD38A; background: rgba(76, 211, 138, .12); border-color: rgba(76, 211, 138, .2); }
.cn-row .cn-lbl { font-size: 15.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-row .cn-lbl small { color: var(--t-muted); font-weight: 400; font-size: 12.5px; }
.cn-row .cn-when { color: var(--t-muted); font-size: 13px; white-space: nowrap; }
.cn-row .cn-amt { text-align: right; font-weight: 700; font-size: 16px; }
.cn-amt.pos { color: #4CD38A; } .cn-amt.neg { color: #FF5E6C; } .cn-amt.zero { color: var(--t-muted); }
.cn-empty { color: var(--t-muted); font-size: 14px; margin: 6px 0 12px; }
@media (max-width: 440px) { .cn-balance { gap: 16px; padding: 26px 18px; min-height: 130px; } .cn-orb { flex-basis: 66px; height: 66px; } .cn-orb i { width: 34px; height: 34px; } .cn-balance b { font-size: 25px; white-space: nowrap; } }
@media (max-width: 380px) { .cn-row { grid-template-columns: 36px minmax(0, 1fr) auto; } .cn-row .cn-when { grid-column: 2; grid-row: 2; margin-top: -8px; font-size: 12px; } .cn-row .cn-amt { grid-row: 1 / span 2; grid-column: 3; } .cn-ico { width: 36px; height: 36px; } }
/* Lien « Retour au profil » en bas des pages Abonnement et légales ; caché sur PC (menu latéral). */
.t-backlink { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; padding: 10px 16px; border: 0; background: none;
  color: var(--t-muted); font: 500 14px Poppins, sans-serif; cursor: pointer; border-radius: 12px; transition: color .15s ease, background .15s ease; }
.t-backlink::before { content: ''; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12H5M11 6l-6 6 6 6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12H5M11 6l-6 6 6 6'/></svg>") center / contain no-repeat; }
.t-backlink:hover { color: #F5F7FB; background: rgba(255, 255, 255, .04); }
body.gm-desktop .t-backlink { display: none !important; }
body.gm-desktop .cn { max-width: 1040px; gap: 22px; }
body.gm-desktop .gm-custom:has(.cn) { margin: 0 auto; max-width: 1120px; }
body.gm-desktop .cn-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
body.gm-desktop .cn-pack { padding: 30px 18px 20px; }
body.gm-desktop .cn-stack { width: 64px; height: 64px; }
body.gm-desktop .cn-pack b { font-size: 34px; }
body.gm-desktop .cn-pack .cn-price { font-size: 20px; }
body.gm-desktop .cn-pack.hot { transform: translateY(-6px); }
body.gm-desktop .cn-tag { top: -14px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
body.gm-desktop .cn-balance { padding: 34px 32px; min-height: 150px; }
/* Réassurance PC : rangée centrée (largeur de son contenu), icône à gauche du texte, traits verticaux entre les blocs. */
body.gm-desktop .cn-trust { display: flex; justify-content: center; margin: 14px 0 0; }
body.gm-desktop .cn-trust > div { flex-direction: row; text-align: left; gap: 16px; padding: 4px 40px; }
body.gm-desktop .cn-ti { width: 36px; height: 36px; }
body.gm-desktop .cn-trust b { font-size: 15.5px; }
body.gm-desktop .cn-trust small { font-size: 13.5px; }
/* En-tête PC (maquette) : grand titre, sous-titre juste dessous, pièces plus grandes alignées sur le titre. */
body.gm-desktop .cn-hero { min-height: 0; padding: 18px 260px 8px 8px; }
body.gm-desktop .cn-hero h1 { margin: 0 0 8px; font-size: 54px; line-height: 1.1; letter-spacing: -.8px; }
body.gm-desktop .cn-hero p { font-size: 18px; color: #C3CEDF; }
body.gm-desktop .cn-art { width: 200px; height: 200px; top: -36px; right: 20px; }

/* ---------------------------------------------------------------- Barre latérale (PC) */
body.gm-desktop #gm-sidebar {
  background: linear-gradient(180deg, rgba(14, 26, 54, .92), rgba(9, 18, 40, .96)) !important; border-right: 1px solid var(--t-line) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.sb-item { border: 1px solid transparent; transition: background .15s ease, color .15s ease; }
.sb-item.on { background: linear-gradient(90deg, rgba(46, 118, 235, .28), rgba(30, 48, 88, .5)); border-color: var(--t-line); box-shadow: inset 3px 0 0 #37A7EE; color: #fff; }
.sb-ico i.t-coin { position: static; width: 24px; height: 24px; min-width: 0; padding: 0; border-radius: 0; box-shadow: none; background: linear-gradient(160deg, #FFC15C, #FA6E0C); }
.sb-plan { background: var(--t-glass) !important; border: 1px solid var(--t-line); }
.sb-coins { display: inline-flex; align-items: center; gap: 6px; font-size: 14px !important; }
.sb-coins .t-coin { width: 18px; height: 18px; }
.sb-user { background: rgba(255, 255, 255, .03); border: 1px solid var(--t-line); padding: 8px 10px !important; }
.sb-user img { box-shadow: 0 0 0 2px rgba(55, 167, 238, .55); }
.sb-btn.primary { box-shadow: 0 10px 24px -10px rgba(46, 118, 235, .85); }

/* ---------------------------------------------------------------- Swipe (PC) */
#gm-swipe-head h1 { font-size: 34px !important; letter-spacing: -.4px; }
#gm-swipe-head p { font-size: 14.5px !important; color: #D3DBE8 !important; }
#gm-swipe-head kbd { min-width: 28px !important; padding: 3px 7px !important; border-radius: 8px !important; background: rgba(30, 48, 88, .85) !important; border-color: rgba(140, 170, 220, .3) !important; }
/* Carte en portrait (même proportion que sur mobile), de sous le titre jusqu'au-dessus des boutons. */
/* Hauteur sans plafond : le bas de la carte (90 % du conteneur, 20 px sous son haut) tombe ~16 px au-dessus des boutons,
   quelle que soit la hauteur de l'écran (haut à 120 px, boutons sur les 92 px du bas). */
body.gm-desktop[data-page=index] { --card-h: calc((100vh - 300px) / .9); }
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 "] { width: calc(var(--card-h) * .6) !important; margin-top: 120px !important; }
/* Deux cartes décoratives inclinées derrière le deck. Portées par la page (et non par la carte du dessus) : elles
   restent immobiles pendant le swipe (retour du 15/11/2026 : « trois cartes qui bougent »). */
body.gm-desktop[data-page=index] .gm-page > [data-b^="bTNBu "] { box-shadow: none !important; overflow: visible !important; }
body.gm-desktop[data-page=index] .gm-page::before,
body.gm-desktop[data-page=index] .gm-page::after {
  --w: calc(var(--card-h) * .6);
  content: ''; position: absolute; z-index: 0; pointer-events: none; border-radius: 26px;
  top: calc(120px + var(--card-h) * .09); height: calc(var(--card-h) * .84); width: calc(var(--w) * .72);
  background: linear-gradient(160deg, rgba(60, 84, 130, .4), rgba(20, 32, 62, .55)); border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.gm-desktop[data-page=index] .gm-page::before { left: calc(50% - var(--w) * .59); transform: rotate(-6deg); border-color: rgba(252, 140, 21, .3); box-shadow: -20px 0 50px -20px rgba(252, 140, 21, .5); }
body.gm-desktop[data-page=index] .gm-page::after { left: calc(50% + var(--w) * .59 - var(--w) * .72); transform: rotate(6deg); border-color: rgba(55, 167, 238, .3); box-shadow: 20px 0 50px -20px rgba(55, 167, 238, .5); }
/* Carte suivante mise en avant pendant le swipe : même liseré que la carte du dessus (aucun changement à la relève). */
#card-next.promote [data-b^="bTHbf "]::after { opacity: 1; }

/* ---------------------------------------------------------------- Retours du 18/11/2026 */
/* Boutons ronds de navigation (retour, fermer, signaler, télécharger, options) : un seul style « verre », icônes au trait
   fin (Phosphor, dessinées en masque : le glyphe Material de Bubble est masqué). */
:root {
  --t-ic-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z'/%3E%3C/svg%3E");
  --t-ic-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z'/%3E%3C/svg%3E");
  --t-ic-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Ccircle cx='128' cy='60' r='14'/%3E%3Ccircle cx='128' cy='128' r='14'/%3E%3Ccircle cx='128' cy='196' r='14'/%3E%3C/svg%3E");
  --t-btn-glass: linear-gradient(180deg, rgba(48, 70, 118, .62), rgba(16, 28, 58, .7));
}
/* Boutons ronds en verre : retour du profil du Mate et de la galerie (FG_BackButton). L'en-tête de la conversation
   (flèche, trois points) garde son allure d'avant (retour du 20/11/2026). */
[data-b^="bTMZm "], .t-dl {
  background: var(--t-btn-glass) !important; border: 1px solid rgba(150, 180, 235, .22) !important; border-radius: 50% !important; box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(0, 0, 0, .8) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.t-dl { width: 40px; height: 40px; font-size: 19px; }
[data-b^="bTMZg "]:hover [data-b^="bTMZm "], .t-dl:hover {
  background: var(--t-btn-glass) !important; border-color: rgba(55, 167, 238, .6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 4px rgba(55, 167, 238, .14), 0 10px 24px -10px rgba(0, 0, 0, .8) !important; }
.t-dl.t-flag:hover { border-color: rgba(243, 95, 109, .7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 4px rgba(243, 95, 109, .16), 0 10px 24px -10px rgba(0, 0, 0, .8) !important; }
[data-b^="bTMZg "]:active [data-b^="bTMZm "] { transform: scale(.92); }
/* Icônes : le rond de Bubble derrière la flèche (blanc 20 %) disparaît, le glyphe est remplacé. */
[data-b^="bTMZn "], [data-b^="bTOmO0 "] { background: transparent !important; }
[data-b^="bTMZn "] > span, [data-b^="bTOmO0 "] > span { display: none !important; }
[data-b^="bTMZn "]::before, [data-b^="bTOmO0 "]::before {
  content: ''; width: 20px; height: 20px; margin: auto; background: #F5F7FB;
  -webkit-mask: var(--t-ic-caret) center / contain no-repeat; mask: var(--t-ic-caret) center / contain no-repeat; }
[data-b^="bTOmO0 "]::before { -webkit-mask-image: var(--t-ic-x); mask-image: var(--t-ic-x); }
/* Bandeaux de la conversation et de la galerie : fond recalé sur l'écran par js/theme.js (bands), sur mobile comme sur PC. */

/* Messagerie (visiteur, ou sans conversation) sur PC : liste à gauche, fausse conversation à droite (comme la vraie
   messagerie) au lieu d'une seconde copie de la liste. Mobile : la liste seule. */
.t-fconv { display: none; }
body.gm-desktop .tg-fake, body.gm-desktop #gm-msg-empty .me-fake {
  display: grid !important; grid-template-columns: var(--list) minmax(0, 1fr) !important; column-gap: 0 !important; padding: 0 !important; height: 100%; }
body.gm-desktop #gm-msg-empty { padding: 0 !important; }
body.gm-desktop .t-flist { padding: 20px 16px; border-right: 1px solid rgba(140, 170, 220, .12); overflow: hidden; }
body.gm-desktop .t-fconv { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.t-fc-head { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: #F5F7FB; font-size: 15px; }
.t-fc-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #34445F center / cover no-repeat; }
.t-fc-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px 28px; }
.t-fc-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 70%; }
.t-fc-msg .t-fc-av { flex-basis: 28px; width: 28px; height: 28px; }
.t-fc-msg span { padding: 10px 16px; border-radius: 20px; font-size: 15px; color: #F5F7FB; background: rgba(52, 72, 110, .75); }
.t-fc-u { align-self: flex-end; }
.t-fc-u span { background: linear-gradient(90deg, #33B4F6, #2A6CEB); }
.t-fc-voice span { min-width: 150px; }
.t-fc-input { margin: 0 28px 22px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(140, 170, 220, .2); color: #AAB6CA; font-size: 14px; }

/* Bannière « Crée ton mate idéal » sur PC : plus compacte (l'illustration grandissait avec la colonne). */
body.gm-desktop [data-b^="bTNgp "] { min-height: 0 !important; height: auto !important; }
body.gm-desktop [data-b^="bTNhI "] { flex: 0 0 120px !important; width: 120px !important; min-width: 120px !important; max-width: 120px !important; height: auto !important; align-self: center !important; margin-right: 14px !important; }
body.gm-desktop [data-b^="bTNjY "] { width: 112px !important; height: 112px !important; min-width: 0 !important; min-height: 0 !important; max-width: 112px !important; max-height: 112px !important; }
body.gm-desktop [data-b^="bTNhB "] { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; max-width: none !important; padding: 14px 0 14px 18px !important; }
body.gm-desktop [data-b^="bTNhP "] { font-size: 17px !important; }
body.gm-desktop [data-b^="bTNiV "] { height: 38px !important; min-height: 38px !important; }

/* Profil du Mate et panneau « i » du swipe : mêmes étiquettes partout (le métier était plus grand que le lieu et la taille)
   et un seul trait, fin, entre chaque ligne (les traits de Bubble se retrouvaient doublés ou absents après le tri). */
[data-b$=" Group_ProfilAttributes"] > [data-b$=" Separator"], [data-b$=" Group_ProfilAttributes"] > .gm-info-row > .gm-info-sep { display: none !important; }
[data-b$=" Group_ProfilAttributes"] > :not([data-b$=" Group_Profession"]):not([data-b$=" Separator"]) { border-top: 1px solid rgba(140, 170, 220, .14) !important; }
[data-b$=" Group_ProfilAttributes"] > [data-b] > :not(:first-child):not(.gm-info-line):not([style*="display: none"]):not([hidden]),
[data-b$=" Group_ProfilAttributes"] .gm-info-pill {
  font: 600 12px/16px Poppins, sans-serif !important; letter-spacing: .2px !important; padding: 6px 12px !important; border-radius: 999px !important;
  min-height: 28px !important; height: auto !important; box-sizing: border-box !important; display: inline-flex !important; align-items: center !important;
  color: #F5F7FB !important; white-space: nowrap; }
[data-b$=" Group_ProfilAttributes"] > [data-b] > :not(:first-child):not(.gm-info-line) * { font: inherit !important; letter-spacing: inherit !important; padding: 0 !important; }
[data-b$=" Group_ProfilAttributes"] .gm-info-line { padding: 6px 0 !important; min-height: 44px; }

/* Profil du Mate : de l'air en bas de page. Galerie privée et « Photos reçues » : mêmes vignettes carrées (3 + « +N »),
   ouvertes dans la visionneuse (20/11/2026) ; aucune photo reçue = un carré vide. Les listes de Bubble sont masquées. */
[data-b^="bTMWB "] { padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important; }
/* Écart titre -> vignettes resserré (20/11/2026) : le même pour les deux rubriques (espacement du groupe Bubble + 2 px). */
.gm-gal-host > .gm-gal { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-top: 2px !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gm-gal-host .gm-gal-head { display: none; }
.t-recv-host > :not(.t-recv):not([data-b$=" Group_ReceivedPhotosyHeader"]) { display: none !important; }
.t-recv { order: 99; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }.t-recv-tile { aspect-ratio: 1; border-radius: 12px; border: 0; padding: 0; cursor: pointer; background: #22304A center / cover no-repeat;
  color: #9fd6f8; font: 600 15px Poppins, sans-serif; transition: transform .15s ease; }
.t-recv-tile:active { transform: scale(.95); }
.t-recv-tile.more { background: rgba(55, 167, 238, .18); }
.t-recv-tile.empty { display: grid; place-items: center; cursor: default; color: rgba(170, 182, 202, .45); font-size: 26px;
  background: rgba(255, 255, 255, .03); border: 1px dashed rgba(150, 180, 235, .22); box-sizing: border-box; }
/* PC (retour du 26/11/2026) : 4 vignettes par ligne (3 + « +N »), plus petites. */
body.gm-desktop .t-recv, body.gm-desktop .gm-gal-host .gm-gal-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Photo ouverte en grand sur PC : un format portrait centré, sous les boutons (elle prenait toute la colonne). */
body.gm-desktop [data-b^="bTMxT "] { box-sizing: border-box !important; width: min(calc((100vh - 110px) * .66), calc(100% - 140px)) !important; max-width: none !important; min-width: 0 !important;
  height: calc(100vh - 110px) !important; min-height: 0 !important; max-height: none !important; margin: 76px auto 0 !important; align-self: center !important;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }

/* Galerie (privée ou photos reçues) en plein écran : grille aérée sur le fond de la page, sans bande grise. */
[data-b^="bTNyL "] { background: transparent !important; min-height: 100dvh; box-sizing: border-box; padding: 78px 16px 28px !important; }
[data-b^="bTNyZ "] { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100% !important; max-width: none !important; }
body.gm-desktop [data-b^="bTNyZ "] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; }   /* 4 par ligne (26/11/2026) */
[data-b^="bTNyZ "] > [data-b$="_cell"] { width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; }
[data-b^="bTOBZ1 "] { padding: 0 !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: auto !important; }
[data-b^="bTNyv "] { width: 100% !important; height: auto !important; min-width: 0 !important; max-width: none !important; min-height: 0 !important; max-height: none !important;
  aspect-ratio: 1; object-fit: cover; border-radius: 14px !important; border: 1px solid rgba(150, 180, 235, .14); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .9); cursor: pointer; }

/* Profil d'un visiteur non connecté (20/11/2026) : connexion et inscription seulement (le reste est sur la vitrine). */
[data-b^="bTJmR0 "], [data-b^="bTJnY0 "], [data-b^="bTJqq0 "], [data-b^="bTJul0 "] { display: none !important; }
[data-b^="bTJZI "] { min-height: calc(100dvh - 170px) !important; flex-direction: column !important; flex-wrap: nowrap !important; justify-content: center !important; align-items: center !important; gap: 22px !important; }
[data-b^="bTJll0 "], [data-b^="bTJmE0 "] { height: auto !important; min-height: 0 !important; max-height: none !important; margin-top: 0 !important; margin-bottom: 0 !important; flex-grow: 0 !important; }

/* Mate hors ligne (js/presence.js, 23/11/2026) : étiquette et pastilles grises au lieu de vertes. */
[data-b^="bTOtW "].t-off, [data-b^="bTOvB "].t-off, [data-b^="bTPBy "].t-off { background: rgba(170, 182, 202, .16) !important; border-color: rgba(170, 182, 202, .3) !important; }
.t-off [data-b^="bTOtd "], .t-off [data-b^="bTOvD "], .t-off [data-b^="bTPCD "], .t-off [data-b^="bTOtd "] *, .t-off [data-b^="bTOvD "] *, .t-off [data-b^="bTPCD "] * { color: #AAB6CA !important; }
[data-b^="bTNks0 "].t-off, [data-b^="bTMHH1 "].t-off, [data-b^="bTMJT "].t-off, [data-b^="bTMYY "].t-off { background: #7D8AA3 !important; }
/* Avant-première (js/avant-premiere.js, 24/11/2026) : inscription fermée, plus aucun bouton « Créer un compte ». */
body.t-invite-only [data-b^="bTJmK0 "], body.t-invite-only [data-b^="bTJrP0 "], body.t-invite-only [data-b^="bTJvo0 "],
body.t-invite-only [data-b^="bTKaT "], body.t-invite-only #gm-sidebar .sb-btn.primary { display: none !important; }
/* Mate qui « arrive » (24/11/2026) : pas d'indicateur « écrit » tant qu'il est encore hors ligne. */
body.t-arriving [data-b^="bTMRp "], body.t-typing-off [data-b^="bTMRp "] { display: none !important; }   /* bulle « écrit » et avatar du Mate */
.t-off [data-b^="bTMIv "], .t-off [data-b^="bTMYZ "], .t-off [data-b^="bTMIv "] *, .t-off [data-b^="bTMYZ "] * { color: #AAB6CA !important; }

/* ---------------------------------------------------------------- Divers */
.gm-popup > [data-b] { box-shadow: var(--t-shadow); }
.ad-panel, .ad-kpi { background: var(--t-glass) !important; border-color: var(--t-line) !important; }
@media (prefers-reduced-motion: reduce) { [data-b^="bTHzT0 "] { transition: none; } }
