/* ==========================================================================
   Pages outils au design "Corail" : comparateur, générateur, surnoms, accord prénom + nom,
   "Tinder" des prénoms, signification des prénoms (+ "Autres outils" de la compatibilité).
   Gabarits : templates/tools_*.tpl, templates/meaning_names.tpl ; données : includes/fcts_tools.php
   S'appuie sur theme/css/pages.css (variables --pg-*, .pg, .pg-h1, .pg-btn, graphique .pf-grid / .pf-ticks)
   Comportements : theme/js/tools.js
   ========================================================================== */

.pg .tl-h1{ margin:14px 0 8px; }
.pg .tl-intro{ margin:0 0 22px; max-width:680px; font-size:16.5px; line-height:1.55; color:var(--pg-text2); text-wrap:pretty; }
.tl-intro p{ margin:0 0 .6em !important; }
.tl-intro > :last-child{ margin-bottom:0 !important; }
.pg .tl-h2{ font-size:clamp(22px,2.6vw,28px); letter-spacing:-.03em; line-height:1.15; }
.pg .tl-muted{ font-size:14.5px; color:var(--pg-muted); }
.pg .tl-note{ font-size:13px; line-height:1.5; color:var(--pg-muted); }
.pg .tl-foot{ margin-top:18px; font-size:13px; line-height:1.5; color:var(--pg-muted); }
.tl-grow{ flex:1; }
.pg .tl-alert{ margin:18px 0 0; }

/* --- Bloc de saisie (fond corail clair) --- */
.tl-tool{ display:flex; flex-direction:column; gap:14px; margin:0; background:var(--pg-tint); border-radius:32px; padding:clamp(16px,3vw,28px); }
.tl-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:0; }
.tl-tool.tl-row{ flex-direction:row; }
.pg .tl-row input[type="text"]{ flex:1 1 200px; min-width:0; width:auto; max-width:none; height:54px; margin:0; padding:0 18px; border:0; border-radius:16px;
	background:#fff; color:var(--pg-ink); font:inherit; font-size:17px; font-weight:600; outline:none; box-shadow:none; }
.pg .tl-row input[type="text"]:focus{ border:0 !important; box-shadow:0 0 0 3px var(--pg-tint-bd); }
.pg .tl-row input::placeholder, .pg .tl-search input::placeholder{ color:#9a8a82; font-weight:500; }
.pg .tl-go{ flex:0 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:8px; height:54px; padding:0 24px; border-radius:16px;
	background:var(--pg-coral-d); color:#fff; font-weight:700; font-size:15px; white-space:nowrap; }
.pg .tl-go:hover{ background:var(--pg-coral-dd); color:#fff; }
.tl-ex{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; font-size:13.5px; color:var(--pg-text2); }
.tl-ex > span{ font-weight:600; margin-right:2px; }
.pg .tl-ex a{ background:#fff; border-radius:999px; padding:6px 12px; font-weight:600; font-size:13px; color:var(--pg-ink); }
.pg .tl-ex a:hover{ background:var(--pg-ink); color:#fff; }
.pg .tl-hint{ font-size:13.5px; font-weight:600; color:var(--pg-text2); }

/* --- Cartes blanches --- */
.tl-card{ margin-top:18px; background:#fff; border:1px solid var(--pg-line); border-radius:24px; padding:clamp(16px,3vw,28px); min-width:0; }
.tl-card + .tl-card{ margin-top:14px; }
.tl-card-h{ display:flex; justify-content:space-between; align-items:baseline; gap:6px 12px; flex-wrap:wrap; margin-bottom:16px; }
.tl-card-note{ font-size:13px; color:var(--pg-muted); }
.pg .tl-card-d{ margin:6px 0 16px; font-size:14.5px; color:var(--pg-muted); }
.pg .tl-empty{ margin-top:18px; border:1.5px dashed var(--pg-dash); border-radius:22px; padding:40px 24px; text-align:center; color:var(--pg-muted); font-size:15px; }

/* Couleurs des prénoms comparés (courbes, pastilles) */
.tl-c1{ --c:#e8604f; }
.tl-c2{ --c:#1f7fbf; }
.tl-c3{ --c:#2f9a73; }
.tl-c4{ --c:#f2a33a; }
@supports (color:oklch(0.6 0.12 160)){
	.tl-c2{ --c:oklch(0.58 0.14 245); }
	.tl-c3{ --c:oklch(0.6 0.12 160); }
}
.tl-dot{ flex:none; display:inline-block; width:12px; height:12px; border-radius:50%; background:var(--c,var(--pg-line2)); }

/* ==========================================================================
   Comparateur — templates/tools_compare.tpl
   ========================================================================== */
.tl-names{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.tl-name{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:999px; padding:8px 8px 8px 14px; font-weight:700; font-size:16px; line-height:1.2; }
.pg .tl-name a:not(.tl-rm):hover{ color:var(--pg-coral-d); }
.tl-name.is-nf{ color:var(--pg-muted); }
.tl-nf{ font-size:12px; font-weight:600; background:var(--pg-field); border-radius:999px; padding:3px 8px; }
.pg .tl-rm{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--pg-field); color:var(--pg-text2); display:grid; place-items:center; font-size:11px; }
.pg .tl-rm:hover{ background:var(--pg-ink); color:#fff; }

.tl-chart{ position:relative; height:260px; }
.tl-plot{ position:absolute; left:0; right:0; top:0; bottom:24px; touch-action:pan-y; }
.tl-plot svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.tl-line{ fill:none; stroke:var(--c); stroke-width:2.5px; vector-effect:non-scaling-stroke; stroke-linejoin:round; stroke-linecap:round; }
.tl-vline{ stroke:var(--pg-ink); stroke-width:1px; stroke-dasharray:3 3; vector-effect:non-scaling-stroke; opacity:0; }
.tl-plot.is-hover .tl-vline{ opacity:.35; }
.tl-plot.is-hover .tl-line{ opacity:.9; }
.tl-hdot{ position:absolute; width:12px; height:12px; border-radius:50%; background:#fff; border:3px solid var(--c); transform:translate(-50%,-50%); pointer-events:none; display:none; }
.tl-plot.is-hover .tl-hdot{ display:block; }
.tl-tip{ position:absolute; top:0; z-index:2; display:none; min-width:130px; background:var(--pg-ink); color:#fff; border-radius:12px; padding:8px 10px; font-size:12.5px;
	line-height:1.45; pointer-events:none; box-shadow:0 12px 24px -12px rgba(40,20,10,.5); }
.tl-plot.is-hover .tl-tip{ display:block; }
.tl-tip b{ display:block; font-size:13px; margin-bottom:2px; }
.tl-tip span{ display:flex; align-items:center; gap:6px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.tl-tip i{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--c); }
.tl-tip em{ font-style:normal; margin-left:auto; padding-left:10px; font-weight:700; }
.tl-chart .pf-ticks{ height:18px; }

.pg .tl-table-wrap{ padding:8px clamp(12px,2vw,20px); overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pg .tl-table{ width:100%; min-width:calc(190px + var(--n,2) * 120px); margin:0; border:0; border-collapse:collapse; table-layout:fixed; }
.pg .tl-table thead{ background:none; }
.pg .tl-table td, .pg .tl-table th{ padding:12px 8px; text-align:left; vertical-align:top; border:0; border-top:1px solid #f4ede9; background:none; }
.pg .tl-table thead td, .pg .tl-table thead th{ border-top:0; }
.tl-table col:first-child, .tl-table tbody th, .tl-table thead td{ width:190px; }
.pg .tl-table thead th{ padding:14px 8px; font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:19px; letter-spacing:-.02em; line-height:1.15; }
.pg .tl-table thead th a{ display:inline-flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
.pg .tl-table thead th a:hover{ color:var(--pg-coral-d); }
.tl-table thead .tl-dot{ width:10px; height:10px; }
.tl-table tbody th{ font-size:13.5px; font-weight:600; color:var(--pg-muted); line-height:1.35; }
.tl-table tbody td{ font-size:15px; font-weight:500; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.tl-table td.is-best{ color:var(--pg-coral-d); font-weight:800; }
.tl-mean{ display:block; font-size:13.5px; line-height:1.45; color:var(--pg-text2); font-weight:400; }
.tl-sex{ font-size:14px; }
.tl-sex-f{ color:var(--pg-f); } .tl-sex-m{ color:var(--pg-m); } .tl-sex-x{ color:var(--pg-x); }

/* ==========================================================================
   Générateur — templates/tools_generator.tpl
   ========================================================================== */
.tl-gen-f{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); gap:10px; align-items:end; }
.tl-f{ display:flex; flex-direction:column; gap:6px; margin:0; min-width:0; font-weight:400; }
.pg .tl-f-l{ font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--pg-coral-dd); }
.pg .tl-f select{ display:block; width:100%; min-width:0; max-width:none; height:50px; margin:0; padding:0 14px; border:0; border-radius:14px; background-color:#fff;
	color:var(--pg-ink); font:inherit; font-size:15px; text-transform:none; outline:none; box-shadow:none; }
.pg .tl-f select:focus{ border:0 !important; box-shadow:0 0 0 3px var(--pg-tint-bd); }
.pg .tl-gen-f .tl-go{ height:50px; border-radius:14px; }
.tl-gen-info{ display:flex; justify-content:space-between; align-items:baseline; gap:6px 16px; flex-wrap:wrap; margin:22px 0 12px; }
.tl-gen-info p{ font-size:14px; font-weight:600; color:var(--pg-muted); }
.tl-gen-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)); gap:12px; }
.tl-gcard{ position:relative; display:flex; flex-direction:column; gap:10px; min-width:0; background:#fff; border:1px solid var(--pg-line); border-radius:24px; padding:18px;
	transition:box-shadow .15s; }
.tl-gcard:hover{ box-shadow:var(--pg-shadow); }
.tl-gcard-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.pg .tl-heart{ position:relative; z-index:1; flex:none; width:40px; height:40px; border-radius:50%; border:1px solid var(--pg-tint-bd); background:#fff; color:var(--pg-coral-d);
	display:grid; place-items:center; font-size:17px; line-height:1; }
.pg .tl-heart:hover{ border-color:var(--pg-coral); }
.pg .tl-heart.is-on{ background:var(--pg-coral); border-color:var(--pg-coral); color:#fff; }
.pg .tl-heart:focus{ border-color:var(--pg-tint-bd) !important; }
.pg .tl-heart.is-on:focus{ border-color:var(--pg-coral) !important; }
.tl-heart-on, .tl-heart.is-on .tl-heart-off{ display:none; }
.tl-heart.is-on .tl-heart-on{ display:inline; }
.tl-gcard-n{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:30px; letter-spacing:-.03em; line-height:1.05; overflow-wrap:anywhere; }
.tl-gcard-m{ font-size:13px; color:var(--pg-muted); }
.tl-gcard-d{ font-size:14px; line-height:1.5; color:var(--pg-text2); }
.pg .tl-gcard-go{ margin-top:auto; align-self:flex-start; color:var(--pg-coral-d); font-weight:700; font-size:14px; }
.pg .tl-gcard-go::after{ content:''; position:absolute; inset:0; border-radius:24px; }
.pg .tl-gcard:hover .tl-gcard-go{ color:var(--pg-coral-dd); }

/* Favoris / shortlist (générateur) */
.tl-favs{ margin-top:22px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; background:var(--pg-ink); color:#fff; border-radius:24px; padding:18px 20px; }
.tl-favs-t{ font-weight:700; margin-right:6px; }
.tl-favs .tl-dot{ display:none; }
.tl-favs-list{ display:flex; gap:6px; flex-wrap:wrap; }
.tl-favs-list li{ display:inline-flex; align-items:center; gap:2px; border:1px solid #4a3f3a; border-radius:999px; padding:0 4px 0 12px; font-weight:600; font-size:13.5px; }
.pg .tl-favs-list a{ padding:6px 2px; color:#fff; }
.pg .tl-favs-list a:hover{ color:#f3b8ad; }
.pg .tl-favs-list button{ width:24px; height:24px; border-radius:50%; color:#d9cdc6; font-size:10px; display:grid; place-items:center; }
.pg .tl-favs-list button:hover{ background:#4a3f3a; color:#fff; }
.tl-save{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0; }
.pg .tl-save select{ height:40px; min-width:0; max-width:220px; margin:0; padding:0 14px; border:1px solid var(--pg-line2); border-radius:999px; background-color:#fff;
	color:var(--pg-ink); font:inherit; font-size:14px; text-transform:none; }
.pg .tl-save select:focus{ border-color:var(--pg-line2) !important; }
.pg .tl-save .tl-save-new{ flex:1 1 180px; height:40px; min-width:0; max-width:260px; margin:0; padding:0 14px; border:1px solid var(--pg-line2); border-radius:999px; background:#fff;
	color:var(--pg-ink); font:inherit; font-size:14px; outline:none; box-shadow:none; }
.pg .tl-save .tl-save-new:focus{ border-color:var(--pg-tint-bd) !important; box-shadow:0 0 0 3px var(--pg-tint); }
.pg .tl-save .pg-btn, .pg .tl-favs .pg-btn{ height:40px; padding:0 16px; font-size:13.5px; }

/* ==========================================================================
   Surnoms & diminutifs — templates/tools_nicknames.tpl
   ========================================================================== */
.tl-nicks{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.tl-nicks li{ background:var(--pg-tint); color:var(--pg-coral-dd); border-radius:999px; padding:12px 20px; font-family:'Bricolage Grotesque',sans-serif; font-weight:800;
	font-size:22px; letter-spacing:-.02em; line-height:1.1; }
.tl-nick-res .tl-muted{ margin-top:12px; }
.tl-nick-f{ display:flex; gap:10px 16px; align-items:center; flex-wrap:wrap; margin-top:18px; }
.tl-cute{ display:flex; gap:8px; flex-wrap:wrap; }
.tl-cute li{ background:var(--pg-field); border-radius:999px; padding:8px 14px; font-weight:600; font-size:14.5px; }

/* ==========================================================================
   Accord prénom + nom — templates/tools_fullname.tpl
   ========================================================================== */
.tl-fn-res{ display:grid; grid-template-columns:minmax(0,1fr); gap:28px; align-items:start; }
.tl-fn-score{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }
.tl-ring{ width:170px; height:170px; border-radius:50%; background:conic-gradient(var(--pg-coral) var(--deg), var(--pg-field) 0); display:grid; place-items:center; }
.tl-ring > div{ width:134px; height:134px; border-radius:50%; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.tl-ring-v{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:46px; letter-spacing:-.04em; line-height:1; }
.tl-ring-l{ margin-top:2px; font-size:12px; font-weight:600; color:var(--pg-muted); }
.tl-verdict{ border-radius:999px; padding:6px 14px; font-weight:700; font-size:14px; }
.tl-v-0{ background:#d5f5da; color:#115629; }
.tl-v-1{ background:var(--pg-tint); color:var(--pg-coral-dd); }
.tl-v-2{ background:#feedc9; color:#724d0b; }
.tl-v-3{ background:var(--pg-field); color:var(--pg-text2); }
.tl-fn-b{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.pg .tl-fn-full{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(30px,4.4vw,48px); letter-spacing:-.035em; line-height:1; overflow-wrap:anywhere; }
.pg .tl-fn-meta{ font-size:13.5px; color:var(--pg-muted); }
.tl-checks{ display:flex; flex-direction:column; gap:6px; }
.tl-checks li{ display:flex; gap:12px; align-items:center; background:var(--pg-paper); border-radius:14px; padding:10px 14px; font-size:14.5px; line-height:1.45; }
.tl-check-ic{ flex:none; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:13px; }
.is-ok .tl-check-ic{ background:#d5f5da; color:#115629; }
.is-warn .tl-check-ic{ background:var(--pg-tint); color:var(--pg-coral-d); }
.tl-sugg{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.pg .tl-sugg a{ display:inline-block; border:1px solid var(--pg-line); background:#fff; border-radius:999px; padding:9px 16px; font-weight:700; font-size:15px; color:var(--pg-ink); }
.pg .tl-sugg a:hover{ border-color:var(--pg-tint-bd); background:#fffaf8; color:var(--pg-ink); }
@media (min-width:760px){ .tl-fn-res{ grid-template-columns:220px minmax(0,1fr); } .tl-fn-res.is-initials{ grid-template-columns:minmax(0,1fr); } }

/* ==========================================================================
   "Tinder" des prénoms — templates/tools_swipe.tpl
   ========================================================================== */
.tl-sw-bar{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.tl-sw-bar .pg-seg{ align-self:flex-start; }
.tl-sw-progress{ font-size:13.5px; font-weight:600; color:var(--pg-muted); font-variant-numeric:tabular-nums; }
.tl-sw{ display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
.tl-sw-main{ display:flex; flex-direction:column; align-items:center; gap:22px; min-width:0; }
.tl-sw-deck{ position:relative; width:100%; max-width:420px; height:440px; }
.tl-sw-next{ position:absolute; inset:14px 14px -6px; background:#fff; border:1px solid var(--pg-line); border-radius:32px; transform:rotate(3deg); }
.tl-sw-card{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; gap:16px; background:var(--pg-tint); border-radius:32px;
	padding:28px; box-shadow:0 30px 50px -30px rgba(80,40,30,.45); transition:transform .26s ease, opacity .26s ease; touch-action:pan-y; user-select:none; cursor:grab; }
.tl-sw-card.is-drag{ transition:none; cursor:grabbing; }
.tl-sw-tags{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.tl-sw-sex{ background:var(--pg-x); color:#fff; border-radius:999px; padding:6px 12px; font-size:13px; font-weight:600; }
.tl-sw-sex.is-f{ background:var(--pg-f); } .tl-sw-sex.is-m{ background:var(--pg-m); }
.tl-sw-len{ background:#fff; border-radius:999px; padding:6px 12px; font-size:13px; font-weight:600; }
.tl-sw-body{ min-width:0; }
.pg .tl-sw-name{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:clamp(32px, calc(min(100vw - 48px, 420px) * 1.55 / var(--n,6)), 84px);
	letter-spacing:-.05em; line-height:.92; overflow-wrap:anywhere; }
.pg .tl-sw-origin{ margin-top:12px; font-size:14px; color:var(--pg-text2); }
.pg .tl-sw-desc{ margin-top:10px; font-size:15px; line-height:1.5; color:#4a403b; display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.pg .tl-sw-link{ align-self:flex-start; background:#fff; border-radius:999px; padding:8px 14px; font-weight:600; font-size:13.5px; color:var(--pg-ink); }
.pg .tl-sw-link:hover{ background:var(--pg-ink); color:#fff; }
.tl-sw-done{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center;
	border:1.5px dashed var(--pg-dash); border-radius:32px; padding:48px 24px; color:var(--pg-muted); }
.pg .tl-sw-done-t{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:26px; color:var(--pg-ink); }
.tl-sw-actions{ display:flex; align-items:center; gap:18px; }
.pg .tl-sw-no, .pg .tl-sw-yes{ width:72px; height:72px; border-radius:50%; display:grid; place-items:center; }
.pg .tl-sw-no{ border:1.5px solid var(--pg-line2); background:#fff; color:var(--pg-muted); font-size:26px; box-shadow:0 10px 20px -12px rgba(80,40,30,.4); }
.pg .tl-sw-no:hover{ border-color:var(--pg-ink); color:var(--pg-ink); }
.pg .tl-sw-no:focus{ border-color:var(--pg-line2) !important; }
.pg .tl-sw-yes{ background:var(--pg-coral); color:#fff; box-shadow:0 10px 20px -10px rgba(232,96,79,.8); }
.pg .tl-sw-yes:hover{ background:var(--pg-coral-d); }
.tl-sw-yes svg{ display:block; fill:currentColor; }
.pg .tl-sw-undo{ width:48px; height:48px; border-radius:50%; border:1px solid var(--pg-line2); background:#fff; color:var(--pg-ink); font-size:18px; display:grid; place-items:center; }
.pg .tl-sw-undo:hover{ border-color:var(--pg-ink); }
.pg .tl-sw-undo:focus{ border-color:var(--pg-line2) !important; }
.pg .tl-sw-undo:disabled{ opacity:.4; cursor:default; border-color:var(--pg-line2); }
.pg .tl-sw-actions button:disabled{ cursor:default; }
.pg .tl-sw-keys{ font-size:12.5px; color:var(--pg-muted); }
@media (pointer:coarse){ .pg .tl-sw-keys{ display:none; } }

.tl-sw-list{ display:flex; flex-direction:column; gap:14px; min-width:0; background:#fff; border:1px solid var(--pg-line); border-radius:24px; padding:20px; }
.tl-sw-list-h{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.pg .tl-sw-list-t{ font-size:20px; font-weight:800; letter-spacing:-.01em; }
.tl-count{ min-width:26px; height:26px; border-radius:999px; background:var(--pg-coral); color:#fff; display:grid; place-items:center; padding:0 8px; font-size:13px;
	font-weight:700; font-variant-numeric:tabular-nums; }
.tl-sw-chips li{ border:0; background:var(--pg-tint); color:var(--pg-coral-dd); padding:0 4px 0 10px; font-weight:700; font-size:14px; }
.tl-sw-chips li .tl-dot{ width:8px; height:8px; margin-right:4px; }
.pg .tl-sw-chips a{ color:var(--pg-coral-dd); padding:7px 2px; }
.pg .tl-sw-chips a:hover{ color:var(--pg-ink); }
.pg .tl-sw-chips button{ color:var(--pg-coral-d); }
.pg .tl-sw-chips button:hover{ background:#fff; color:var(--pg-coral-dd); }
.tl-dot.is-f{ background:var(--pg-f); } .tl-dot.is-m{ background:var(--pg-m); } .tl-dot.is-x{ background:var(--pg-x); }
.tl-sw-save{ display:flex; flex-direction:column; gap:10px; }
.tl-sw-save > .pg-btn{ width:100%; padding:11px 16px; font-size:14px; }
.tl-sw-save .tl-save{ flex-direction:column; align-items:stretch; }
.pg .tl-sw-save .tl-save select, .pg .tl-sw-save .tl-save .tl-save-new{ max-width:none; width:100%; flex:none; }
.pg .tl-sw-clear{ align-self:center; font-size:13px; font-weight:600; color:var(--pg-muted); text-decoration:underline; text-underline-offset:3px; }
.pg .tl-sw-clear:hover{ color:var(--pg-coral-d); }
@media (min-width:860px){
	.tl-sw{ grid-template-columns:minmax(0,1fr) 320px; }
	.tl-sw-list{ position:sticky; top:140px; }
}

/* ==========================================================================
   Signification des prénoms — templates/meaning_names.tpl
   ========================================================================== */
.tl-search{ display:flex; align-items:center; gap:10px; margin:0; background:#fff; border-radius:18px; padding:0 7px 0 20px; min-height:58px; }
.tl-search-ic{ flex:none; font-size:20px; color:var(--pg-muted); }
.pg .tl-search input[type="text"]{ flex:1; min-width:0; width:auto; max-width:none; height:56px; margin:0; padding:0; border:0; background:transparent; color:var(--pg-ink);
	font:inherit; font-size:17px; font-weight:600; outline:none; box-shadow:none; }
.pg .tl-search input[type="text"]:focus{ border:0 !important; }
.tl-search:focus-within{ box-shadow:0 0 0 3px var(--pg-tint-bd); }
.pg .tl-search .tl-go{ height:44px; padding:0 18px; border-radius:13px; font-size:14px; }
.tl-letters{ display:flex; gap:4px; flex-wrap:wrap; }
.pg .tl-letters a{ min-width:38px; height:38px; padding:0 10px; border-radius:12px; border:1px solid var(--pg-line2); background:#fff; color:var(--pg-ink);
	display:grid; place-items:center; font-weight:700; font-size:13.5px; }
.pg .tl-letters a:hover{ border-color:var(--pg-ink); }
.pg .tl-letters a.is-on{ background:var(--pg-ink); border-color:var(--pg-ink); color:#fff; }
.pg .tl-sig-h{ font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600; color:var(--pg-muted); line-height:1.4; }
.tl-sig-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); gap:10px; }
.tl-sig-grid li{ display:flex; min-width:0; }
.pg .tl-sig{ flex:1; display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:14px; align-items:start; min-width:0; background:#fff; border:1px solid var(--pg-line);
	border-radius:24px; padding:16px 18px; color:var(--pg-ink); }
.pg .tl-sig:hover{ border-color:var(--pg-tint-bd); background:#fffaf8; color:var(--pg-ink); }
.tl-sig .pg-sex{ width:34px; height:34px; font-size:15px; }
.tl-sig-b{ min-width:0; }
.tl-sig-n{ display:block; font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:21px; letter-spacing:-.02em; line-height:1.2; overflow-wrap:anywhere; }
.tl-sig-o{ display:block; margin:2px 0 6px; font-size:12.5px; color:var(--pg-muted); }
.tl-sig-d{ display:block; font-size:14px; line-height:1.5; color:var(--pg-text2); text-wrap:pretty; }
.tl-sig-go{ color:var(--pg-coral-d); font-weight:700; }

/* ==========================================================================
   Autres outils (bas des pages outils, compatibilité comprise)
   ========================================================================== */
.tl-other{ margin-top:56px; }
.tl-other-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); gap:10px; margin-top:14px; }
.pg .tl-other-a{ display:flex; gap:12px; align-items:center; border:1px solid var(--pg-line); background:#fff; border-radius:18px; padding:12px 14px; color:var(--pg-ink); }
.pg .tl-other-a:hover{ background:#fffaf8; border-color:var(--pg-tint-bd); color:var(--pg-ink); }
.tl-other-ic{ flex:none; width:38px; height:38px; border-radius:12px; background:var(--pg-tint); color:var(--pg-coral-d); display:grid; place-items:center;
	font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:15px; }
.tl-other-t{ display:block; font-weight:700; font-size:14.5px; line-height:1.3; }
.tl-other-d{ display:block; margin-top:1px; font-size:12.5px; line-height:1.35; color:var(--pg-muted); }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width:819px){
	.tl-table{ min-width:calc(120px + var(--n,2) * 110px); }
	.tl-table col:first-child, .tl-table tbody th, .tl-table thead td{ width:120px; }
	.pg .tl-table tbody th{ position:sticky; left:0; z-index:1; background:#fff; }
	.pg .tl-table thead th{ font-size:17px; }
	.tl-chart{ height:220px; }
}
@media (max-width:559px){
	.pg .tl-row .tl-go{ flex:1 1 100%; }
	.tl-search{ flex-wrap:wrap; padding:6px 6px 6px 16px; }
	.pg .tl-search .tl-go{ flex:1 1 100%; }
	.tl-sw-deck{ height:400px; }
	.tl-sw-card{ padding:22px; }
	.tl-favs .tl-save, .tl-favs > .pg-btn{ flex:1 1 100%; }
	.pg .tl-favs .tl-save select{ flex:1; max-width:none; }
}
@media (prefers-reduced-motion:reduce){
	.tl-sw-card, .tl-gcard{ transition:none; }
}
