/* PVX - VARIANTES 1.3.8 : fenêtre « Choisir la teinte » (maquette v7 validée le 01/12/2026, _src/idees.css + carré bord à bord
   de _src/construire_carre.py). Préfixe tnt- (libre dans le thème et les modules). Charte : Poppins, encre #10200a, vert foncé #2F5200,
   pas de vert fluo en surface, rectangles arrondis, boutons en majuscules, jamais de mode sombre. */

/* ---------- le bloc de la fiche ---------- */
.tnt-sec { display: flex; flex-direction: column; gap: 10px; }
.tnt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.tnt-h b { font-weight: 600; min-width: 0; }
.tnt-h span { font-size: 12px; color: #56624c; white-space: nowrap; }
.tnt-open { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; border: 1.5px solid #10200a; background: #fff; border-radius: 10px;
	padding: 8px; cursor: pointer; font: inherit; color: #10200a; text-align: left; flex-wrap: wrap; }
.tnt-open > i { width: 40px; height: 40px; border-radius: 8px; background: var(--c); border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.tnt-open .mini { flex: 1; min-width: 0; display: flex; gap: 2px; align-items: center; overflow: hidden; }
.tnt-open .mini b { width: 10px; height: 24px; border-radius: 3px; background: var(--c); flex: none; border: 1px solid rgba(0, 0, 0, .08); }
.tnt-open .mini em { font: 600 11px Poppins, sans-serif; color: #56624c; margin-left: 4px; font-style: normal; }
.tnt-open .go { background: #2f5200; color: #fff; border-radius: 8px; padding: 0 14px; min-height: 40px; display: grid; place-items: center;
	font: 700 12px Poppins, sans-serif; letter-spacing: .05em; white-space: nowrap; }
.tnt-open:hover { box-shadow: 0 0 0 3px #e6f3d0; }
.tnt-open:focus-visible { outline: 2px solid #2f5200; outline-offset: 2px; }

/* ---------- la fenêtre (ordinateur) ---------- */
html.tnt-ouvert { overflow: hidden; }
.tnt-scrim { position: fixed; inset: 0; background: rgba(16, 32, 10, .5); z-index: 2147483610; }   /* au-dessus du bandeau cookies (2147483600), qui revient à la fermeture */
.tnt-modal { position: fixed; z-index: 2147483611; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1200px, calc(100vw - 48px));
	height: min(800px, calc(100vh - 48px), calc(min(1200px, 100vw - 48px) * .46 + 146px)); background: #fff;   /* carré ≤ 46 % de la largeur, comme la maquette */ border-radius: 14px; display: flex; flex-direction: column;
	font-family: Poppins, system-ui, sans-serif; color: #10200a; box-shadow: 0 24px 70px rgba(16, 32, 10, .35); overflow: hidden; text-align: left; }
.tnt-modal button { font-family: inherit; }
/* 02/12 : entrée et sortie en douceur (fondu du voile, fenêtre qui grandit légèrement) */
.tnt-scrim { animation: tnt-fade .22s ease-out both; }
.tnt-modal { animation: tnt-in .26s cubic-bezier(.22, 1, .36, 1) both; }
.tnt-scrim.tnt-sort { animation: tnt-fade-out .22s ease-in both; pointer-events: none; }
.tnt-modal.tnt-sort { animation: tnt-out .22s ease-in both; pointer-events: none; }
@keyframes tnt-fade { from { opacity: 0; } }
@keyframes tnt-fade-out { to { opacity: 0; } }
@keyframes tnt-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes tnt-out { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .tnt-scrim, .tnt-modal, .tnt-scrim.tnt-sort, .tnt-modal.tnt-sort { animation-duration: .01s; } }
.tnt-m-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #e5e9df; }
.tnt-m-h b { font-size: 18px; font-weight: 700; }
.tnt-m-h small { display: block; font-size: 12.5px; color: #56624c; }
.tnt-x { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #e5e9df; background: #fff; font: 400 26px/1 Poppins, sans-serif;
	cursor: pointer; color: #10200a; padding: 0; }
.tnt-x:hover { background: #f6f8f2; }
.tnt-m-b { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); }

/* gauche : CARRÉ BORD À BORD, comme les photos du site (sans cadre ni marge), boutons posés dessus */
.tnt-m-l { position: relative; height: 100%; aspect-ratio: 1 / 1; min-height: 0; background: #f4f2ee; display: flex; flex-direction: column; overflow: hidden; }
.tnt-stage { flex: 1; min-height: 0; height: 100%; position: relative; background: #f4f2ee; overflow: hidden; display: flex; flex-direction: column; }
.tnt-stage.is-ph { background: #f8f8f8; }   /* 02/12 : gris des photos du site (affiné par le JS d après le bord de l image) */
.tnt-stage svg.tnt-scene { flex: 1; min-height: 0; width: 100%; height: 100%; display: block; }
.tnt-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f8f8f8; }
.tnt-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tnt-vt { position: absolute; z-index: 4; left: 16px; top: 16px; display: flex; gap: 3px; background: #fff; border: 1px solid #e5e9df; border-radius: 10px;
	padding: 3px; box-shadow: 0 2px 10px rgba(16, 32, 10, .16); }
.tnt-vt button { appearance: none; border: 0; background: none; border-radius: 7px; padding: 0 14px; min-height: 36px; font: 600 12px Poppins, sans-serif;
	letter-spacing: .05em; text-transform: uppercase; cursor: pointer; color: #10200a; }
.tnt-vt button[aria-pressed="true"] { background: #10200a; color: #fff; }
.tnt-ind { position: absolute; right: 104px; top: 20px; font: 500 11px Poppins, sans-serif; color: #56624c; background: #fff; border-radius: 6px; padding: 3px 7px; }
.tnt-inset { position: absolute; right: 16px; top: 16px; width: 76px; height: 76px; object-fit: contain; background: #f8f8f8; border: 1px solid #e5e9df;
	border-radius: 10px; padding: 4px; box-sizing: border-box; }
.tnt-skins { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 5px; align-items: center; background: #fff; border: 1px solid #e5e9df;
	border-radius: 10px; padding: 6px 10px; font: 500 12px Poppins, sans-serif; color: #56624c; }
.tnt-skins span { margin-right: 2px; }
.tnt-skins button { width: 36px; height: 26px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .15); background: var(--c); cursor: pointer; padding: 0; }
.tnt-skins button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10200a; }
.tnt-hv { position: absolute; right: 16px; bottom: 16px; background: #10200a; color: #fff; font: 600 11px Poppins, sans-serif; letter-spacing: .05em;
	padding: 5px 9px; border-radius: 6px; }

/* droite : recherche, disponibles, familles, grille */
.tnt-m-r { overflow: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tnt-tools { display: flex; gap: 10px; align-items: center; position: sticky; top: -16px; z-index: 3; background: #fff; margin: -16px -20px 0; padding: 12px 20px;
	border-bottom: 1px solid #eef1ea; }
.tnt-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1.5px solid #cfd6c6; border-radius: 10px; padding: 0 12px; min-height: 44px;
	color: #56624c; background: #fff; margin: 0; }
.tnt-q:focus-within { border-color: #2f5200; box-shadow: 0 0 0 3px #e6f3d0; }
.tnt-q svg { width: 18px; height: 18px; flex: none; }
.tnt-q input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 14px Poppins, sans-serif; color: #10200a; background: transparent; height: 40px;
	padding: 0; margin: 0; box-shadow: none; }
.tnt-dispo { display: flex; align-items: center; gap: 8px; font: 500 13px Poppins, sans-serif; color: #10200a; cursor: pointer; white-space: nowrap;
	border: 1px solid #e5e9df; border-radius: 10px; padding: 0 12px; min-height: 44px; margin: 0; }
.tnt-dispo input { width: 18px; height: 18px; accent-color: #2f5200; margin: 0; }
.tnt-dispo em { font-style: normal; font-size: 12px; color: #56624c; }
.tnt-r3 { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.tnt-fnav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 62px; }
.tnt-chip { flex: none; appearance: none; border: 1px solid #e5e9df; background: #fff; border-radius: 8px; padding: 6px 10px; font: 500 13px Poppins, sans-serif;
	color: #10200a; cursor: pointer; min-height: 44px; display: flex; gap: 6px; align-items: center; justify-content: flex-start; text-align: left; }
.tnt-chip i { display: flex; gap: 2px; }
.tnt-chip i b { width: 7px; height: 14px; border-radius: 2px; background: var(--c); }
.tnt-chip span { margin-left: auto; color: inherit; opacity: .7; }
.tnt-chip[aria-pressed="true"] { background: #10200a; color: #fff; border-color: #10200a; }
.tnt-fam + .tnt-fam { margin-top: 14px; }
.tnt-fam h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; color: #10200a; }
.tnt-fam h4 span { color: #56624c; font-weight: 400; }
.tnt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.tnt-tile { appearance: none; border: 1px solid #e5e9df; background: #fff; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px;
	text-align: left; font: inherit; color: #10200a; cursor: pointer; position: relative; min-width: 0; }
.tnt-tile .bl { height: 62px; border-radius: 7px; background: var(--c); border: 1px solid rgba(0, 0, 0, .1); position: relative; display: block; }
.tnt-tile.out .bl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(255, 255, 255, .95) calc(50% - 1px), rgba(255, 255, 255, .95) calc(50% + 1px), transparent calc(50% + 1px)); }
.tnt-tile b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnt-tile small { font-size: 10.5px; color: #56624c; line-height: 1.2; }
.tnt-tile:hover { border-color: #2f5200; }
.tnt-tile[aria-pressed="true"] { border-color: #10200a; box-shadow: 0 0 0 1px #10200a; }
.tnt-ck { position: absolute; inset: 0; display: grid; place-items: center; font: 800 22px/1 Poppins, sans-serif; }
.tnt-aide { margin: 0; font-size: 13px; color: #56624c; }
.tnt-rien { padding: 16px 0; }
.tnt-link { appearance: none; border: 0; background: none; color: #2f5200; font: 600 12px Poppins, sans-serif; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* pied : la teinte choisie, son prix, UN SEUL bouton */
.tnt-m-f { display: flex; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid #e5e9df; background: #fff; }
.tnt-m-f .sw { width: 48px; height: 48px; border-radius: 9px; background: var(--c); border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.tnt-m-f .n { flex: 1; min-width: 0; }
.tnt-m-f .n b { font-size: 15px; }
.tnt-m-f .n small { display: block; font-size: 12px; color: #56624c; }
.tnt-m-f .n small.s-low { color: #b45309; }
.tnt-m-f .n small.s-out { color: #e11d48; }
.tnt-m-f .p { white-space: nowrap; }
.tnt-m-f .p b { font-size: 22px; font-weight: 800; }
.tnt-m-f .p s { color: #6b7563; font-size: 13px; margin-left: 8px; }
.tnt-m-f .p em { font-style: normal; font-weight: 700; font-size: 12px; color: #2f5200; background: #e6f3d0; border-radius: 6px; padding: 2px 6px; margin-left: 6px; }
.tnt-b1 { appearance: none; min-height: 48px; border-radius: 10px; padding: 0 18px; font: 700 13px Poppins, sans-serif; letter-spacing: .05em; cursor: pointer;
	white-space: nowrap; border: 0; background: #2f5200; color: #fff; display: inline-grid; place-items: center; text-decoration: none; }
.tnt-b1:hover { background: #10200a; color: #fff; }
.tnt-b1.is-loading { opacity: .7; }

/* ---------- téléphone : panneau qui monte du bas, carré en haut ---------- */
@media (max-width: 767px) {
	.tnt-modal { left: 0; right: 0; bottom: 0; top: auto; transform: none; width: 100%; height: calc(100dvh - 24px); border-radius: 16px 16px 0 0;
		animation: tnt-up .3s cubic-bezier(.22, 1, .36, 1) both; }
	.tnt-modal.tnt-sort { animation: tnt-down .22s ease-in both; }
	@keyframes tnt-up { from { transform: translateY(100%); } to { transform: none; } }
	@keyframes tnt-down { from { transform: none; } to { transform: translateY(100%); } }
	.tnt-m-h { padding: 8px 8px 8px 14px; gap: 8px; position: relative; }
	.tnt-m-h::before { content: ""; position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; border-radius: 2px; background: #d7dccf; transform: translateX(-50%); }
	.tnt-m-h b { font-size: 16px; }
	.tnt-m-h small { font-size: 11.5px; }
	.tnt-x { width: 40px; height: 40px; font-size: 24px; }
	.tnt-m-b { display: flex; flex-direction: column; }
	.tnt-m-l { flex: none; width: 100%; aspect-ratio: auto; height: min(46vh, 100vw); border-bottom: 1px solid #e5e9df; }
	.tnt-vt { left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(16, 32, 10, .12); }
	.tnt-vt button { min-height: 32px; padding: 0 10px; font-size: 10.5px; }
	.tnt-ind { right: 10px; bottom: 10px; top: auto; font-size: 10px; }
	.tnt-hv { display: none; }
	.tnt-inset { width: 54px; height: 54px; right: 10px; top: 10px; }
	.tnt-skins { left: 10px; bottom: 10px; padding: 5px 7px; gap: 4px; font-size: 0; }
	.tnt-skins span { display: none; }
	.tnt-skins button { width: 30px; height: 26px; }
	.tnt-m-r { flex: 1; padding: 12px 12px 16px; gap: 12px; }
	.tnt-tools { flex-wrap: nowrap; margin: -12px -12px 0; padding: 10px 12px; top: -12px; gap: 8px; }
	.tnt-q { min-height: 42px; }
	.tnt-q input { font-size: 16px; }   /* 16 px : pas de zoom automatique sur iPhone */
	.tnt-dispo { min-height: 42px; font-size: 12px; padding: 0 10px; gap: 6px; }
	.tnt-dispo span { font-size: 0; }
	.tnt-dispo span::after { content: attr(data-court); font-size: 12px; }
	.tnt-dispo em { display: none; }
	.tnt-r3 { display: block; }
	.tnt-fnav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -12px 10px; padding: 0 12px 4px; scrollbar-width: none; }
	.tnt-fnav .tnt-chip { flex: none; min-height: 40px; font-size: 12px; }
	.tnt-fnav .tnt-chip span { margin-left: 4px; }
	.tnt-tiles { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
	.tnt-tile .bl { height: 50px; }
	.tnt-tile small { font-size: 10px; }
	.tnt-m-f { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 14px rgba(16, 32, 10, .06); }
	.tnt-m-f .sw { width: 40px; height: 40px; }
	.tnt-m-f .n b { font-size: 14px; }
	.tnt-m-f .p b { font-size: 18px; }
	.tnt-m-f .p s { display: none; }
	.tnt-b1 { flex: 1 1 100%; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .tnt-modal { animation: none; } }
