/* =====================================================================
   TopTouch - site client (cshebnew)
   Feuille moderne et responsive, chargee APRES toptouch.css.
   Elle habille le HTML historique des pages sans toucher a leur PHP.
   ===================================================================== */

:root {
	--navy: #2a3591;
	--navy-600: #1f2873;
	--navy-050: #eef0fa;
	--lav: #7771b1;
	--lav-100: #ecebf7;
	--lav-200: #dcdaf0;
	--bg: #f4f4f9;
	--surface: #ffffff;
	--border: #e1e2ee;
	--border-strong: #c9cbe0;
	--text: #1f2335;
	--muted: #6b6f85;
	--red: #c2343b;
	--orange: #f78b1f;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 22, 60, .05), 0 6px 24px rgba(20, 22, 60, .07);
	--font: "Heebo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.tt {
	margin: 0;
	background: var(--bg) !important;
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-text-size-adjust: 100%;
}
.tt table { font-size: inherit; }
.tt img { max-width: 100%; }
.tt a { color: var(--navy); }
.tt a:hover { color: var(--lav); }

/* ---------------------------------------------------------------------
   Barre du haut
   --------------------------------------------------------------------- */
.tt-top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.tt-top::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy), var(--lav)); }
.tt-orange .tt-top::before, .tt-top.tt-orange::before { background: var(--orange); }
.tt-top-in {
	max-width: 1180px;
	margin: 0 auto;
	padding: 6px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.tt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.tt-brand img { height: 62px; width: auto; display: block; }
.tt-tagline {
	font-size: 15px;
	font-weight: 700;
	color: #7a2a1f;
	padding-inline-start: 12px;
	border-inline-start: 1px solid var(--border);
	white-space: nowrap;
}
.tt-cobrand { height: 28px; width: auto; }
.tt-client {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--navy-050);
	color: var(--navy);
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}
.tt-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-wrap: wrap; justify-content: flex-end; }
.tt-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text) !important;
	font-weight: 500;
	font-size: 14.5px;
	text-decoration: none !important;
	white-space: nowrap;
}
.tt-nav a:hover { background: var(--navy-050); color: var(--navy) !important; }
.tt-nav a.tt-cta { background: var(--navy); color: #fff !important; margin-inline-start: 6px; }
.tt-nav a.tt-cta:hover { background: var(--navy-600); }
.tt-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.tt-burger {
	display: none;
	margin-inline-start: auto;
	width: 42px; height: 42px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--navy);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.tt-burger .tt-ico { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------
   Page et carte de contenu
   --------------------------------------------------------------------- */
.tt-page { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 32px; }
.tt-banner { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.tt-banner img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.tt-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px 22px 24px;
	overflow: hidden;
}
table.tt-frame { width: 100%; border-collapse: collapse; }
table.tt-frame > tbody > tr > td { vertical-align: top; }

/* Les tables historiques de largeur fixe deviennent fluides */
.tt-card table[width] { max-width: 100%; }
.tt-card table[width="638"], .tt-card table[width="651"], .tt-card table[width="650"],
.tt-card table[width="768"], .tt-card table[width="780"], .tt-card table[width="600"],
.tt-card table[width="100%"] { width: 100% !important; }
.tt-card table[align="center"] { margin-left: auto; margin-right: auto; }
.tt-card br + br + br { display: none; }
.tt-card td[background] { background-image: none !important; }

/* Separateurs et images techniques */
.tt-card img[src*="topbar.gif"], .tt-card img[src*="line.gif"], .tt-card img[src*="line2.gif"] {
	display: block; width: 100% !important; height: 1px !important; background: var(--border); opacity: .9;
}
.tt-card img[src*="spacer"] { display: inline-block; }

/* ---------------------------------------------------------------------
   Classes historiques (typographie)
   --------------------------------------------------------------------- */
.tt .title, .tt .purpletitle {
	font-family: var(--font);
	font-size: 22px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: -.01em;
	line-height: 1.3;
}
.tt .smalltitle, .tt .smalltitle2 { font-family: var(--font); font-size: 17px; font-weight: 700; color: var(--navy); }
.tt .subtitle { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text); }
.tt .bluesubtitle, .tt .abluesubtitle { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--navy); }
.tt .toc { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--navy); font-style: normal; }
.tt i { font-style: normal; }
.tt .darkbold, .tt .bold, .tt .blackbold, .tt .extrablackbold { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: 14px; }
.tt .text, .tt .text2, .tt .text3 { font-family: var(--font); font-size: 14.5px; color: var(--text); line-height: 1.6; }
.tt .red { font-family: var(--font); color: var(--red); font-weight: 600; font-size: 14px; }
.tt .smalltext { font-family: var(--font); font-size: 13px; color: var(--muted); }
.tt .form_label, .tt .form_title { font-family: var(--font); }

/* Liens de listes (categories, resultats) */
.tt a.search1, .tt a.search, .tt a.tocsearch, .tt a.client, .tt a.result, .tt a.url {
	font-family: var(--font);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}
.tt a.search1:hover, .tt a.search:hover, .tt a.tocsearch:hover, .tt a.client:hover { color: var(--lav); text-decoration: underline; }

/* ---------------------------------------------------------------------
   Boites colorees historiques -> cartes modernes
   --------------------------------------------------------------------- */
.tt-card [bgcolor="#C3C0E0"], .tt-card [bgcolor="#c3c0e0"], .tt-card [bgcolor="C3C0E0"] { background: var(--lav-100) !important; }
.tt-card td[bgcolor="#C3C0E0"], .tt-card td[bgcolor="#c3c0e0"] { border-radius: var(--radius); padding: 18px !important; }
.tt-card table[bgcolor="#222222"], .tt-card table[bgcolor="222222"] { background: var(--border) !important; border-radius: 10px; overflow: hidden; }
.tt-card [bgcolor="#dddddd"], .tt-card [bgcolor="#DDDDDD"], .tt-card [bgcolor="dddddd"] { background: #fafafe !important; }
.tt-card [bgcolor="#B9BDDA"], .tt-card [bgcolor="#b9bdda"] { background: var(--lav-100) !important; border-radius: var(--radius); }
.tt-card [bgcolor="#5f56bo"], .tt-card [bgcolor="#5F56B0"], .tt-card [bgcolor="#7771B1"], .tt-card [bgcolor="#4A4A95"] { background: var(--navy) !important; }
.tt-card [bgcolor="#5f56bo"] .toc, .tt-card [bgcolor="#5F56B0"] *, .tt-card [bgcolor="#7771B1"] *, .tt-card [bgcolor="#4A4A95"] * { color: #fff !important; }
.tt-card [bgcolor="D1DADC"], .tt-card [bgcolor="#D1DADC"] { background: #f7f7fc !important; }
.tt-card [bgcolor="FFFFFF"], .tt-card [bgcolor="#FFFFFF"], .tt-card [bgcolor="#ffffff"] { background: #fff !important; }
.tt-card tr[height="20"] > td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.tt-card tr[height="20"]:hover > td { background: var(--navy-050) !important; }

/* ---------------------------------------------------------------------
   Champs et boutons
   --------------------------------------------------------------------- */
.tt input, .tt select, .tt textarea, .tt button { font-family: var(--font); font-size: 15px; color: var(--text); }
.tt input[type="text"], .tt input[type="password"], .tt input[type="email"], .tt input[type="tel"],
.tt input[type="search"], .tt input:not([type]), .tt input[type="search_form"], .tt select, .tt textarea {
	min-width: 0;
	max-width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: #fff;
	line-height: 1.35;
	transition: border-color .15s, box-shadow .15s;
}
.tt input[type="text"], .tt input[type="password"], .tt input:not([type]), .tt input[type="search_form"] { width: 260px; }
.tt select { min-width: 200px; }
.tt textarea { width: 100%; min-height: 100px; }
.tt input:focus, .tt select:focus, .tt textarea:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(42, 53, 145, .15);
}
.tt input[type="checkbox"], .tt input[type="radio"] { accent-color: var(--navy); width: 17px; height: 17px; vertical-align: -3px; }
.tt input[type="submit"], .tt input[type="button"], .tt button:not(.tt-burger), .tt a.link_white, .tt input.button1, .tt input.button2, .tt input.button3 {
	display: inline-block;
	padding: 9px 20px;
	border: 1px solid var(--navy);
	border-radius: var(--radius-sm);
	background: var(--navy);
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.tt input[type="submit"]:hover, .tt input[type="button"]:hover, .tt button:not(.tt-burger):hover { background: var(--navy-600); }

/* Boutons vectoriels (images/ui/*.svg) : taille homogene quelle que soit la taille d'origine */
.tt img[src*="images/ui/"], .tt input[type="image"][src*="images/ui/"] {
	width: auto !important;
	height: 40px !important;
	vertical-align: middle;
	border-radius: var(--radius-sm);
	transition: transform .12s, box-shadow .12s, filter .12s;
}
.tt a:hover img[src*="images/ui/"], .tt input[type="image"][src*="images/ui/"]:hover { filter: brightness(1.06); box-shadow: 0 3px 10px rgba(42, 53, 145, .18); transform: translateY(-1px); }
.tt input[type="image"] { cursor: pointer; }

/* ---------------------------------------------------------------------
   Resultats : vignettes
   --------------------------------------------------------------------- */
.tt img[src^="scriptimg.php"] {
	border-radius: 10px;
	border: 1px solid var(--border) !important;
	box-shadow: 0 2px 10px rgba(20, 22, 60, .08);
	background: #fff;
	transition: transform .15s, box-shadow .15s;
}
.tt a:hover img[src^="scriptimg.php"] { transform: scale(1.02); box-shadow: 0 8px 22px rgba(20, 22, 60, .16); }
.tt img[src*="arrow_on"], .tt img[src*="arrow_off"] { vertical-align: middle; }

/* ---------------------------------------------------------------------
   Variantes
   --------------------------------------------------------------------- */
.tt-orange .tt-card { border-top: 3px solid var(--orange); }
.tt-unilever .tt-card { border-top: 3px solid #1f36c7; }
.tt-nesher .page_layout { width: auto !important; max-width: 100%; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.tt-eng .tt-tagline { color: var(--navy); }

/* Site public : la grille a deux colonnes (recherche / contenu) */
table.tt-frame-rows > tbody > tr > td[width="214"] { width: 260px; padding-inline-end: 24px; }

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.tt-foot {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	color: var(--muted);
	font-size: 13px;
}
.tt-foot a { color: var(--muted); text-decoration: none; }
.tt-foot a:hover { color: var(--navy); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1000px) {
	.tt-top-in { flex-wrap: wrap; padding: 6px 14px; }
	.tt-brand img { height: 50px; }
	.tt-burger { display: inline-flex; }
	.tt-client { order: 2; }
	.tt-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 4px 0 10px; }
	.tt-nav.is-open { display: flex; }
	.tt-nav a { padding: 11px 10px; font-size: 16px; }
	.tt-nav a.tt-cta { margin: 6px 0 0; justify-content: center; }
}

@media (max-width: 720px) {
	body.tt { font-size: 16px; }
	.tt-tagline { display: none; }
	.tt-client { font-size: 13px; padding: 4px 10px; }
	.tt-page { padding: 12px 10px 22px; }
	.tt-banner { border-radius: 8px; margin-bottom: 12px; }
	.tt-card { padding: 12px 12px 18px; border-radius: 10px; }
	.tt .title, .tt .purpletitle { font-size: 19px; }

	/* Les tables de mise en page s'empilent */
	.tt-card table, .tt-card tbody, .tt-card tr { display: block; width: 100% !important; }
	.tt-card td { display: block; width: 100% !important; text-align: center; padding-left: 0; padding-right: 0; }
	.tt-card td:empty { display: none; }
	.tt-card table[bgcolor="#222222"] { padding: 1px; }
	.tt-card tr[height="20"] > td { text-align: right; padding: 12px; }

	.tt input[type="text"], .tt input[type="password"], .tt input:not([type]), .tt input[type="search_form"], .tt select { width: 100%; min-width: 0; font-size: 16px; }
	.tt img[src^="scriptimg.php"] { width: 220px !important; max-width: 80vw; height: auto; }
	table.tt-frame-rows > tbody > tr > td[width="214"] { width: 100% !important; padding-inline-end: 0; }
}

/* Boite de connexion (login_client.php) */
.tt-card table[width="280"] { width: 100% !important; max-width: 460px; }
.tt-card table[width="280"] input[type="text"], .tt-card table[width="280"] input[type="password"] { width: 100%; }
.tt-card table[width="280"] td.bluesubtitle { white-space: nowrap; padding-inline-start: 10px; }

/* Lien bouton (ex. "אוסף תקליטורים" sur l'accueil) */
.tt a.link_white { text-decoration: none; }
.tt a.link_white:hover { background: var(--navy-600); color: #fff !important; }
.tt td.button1, .tt td.button2, .tt td.button3 { background: none !important; padding: 8px 0; text-align: center; }

/* Formulaire de recherche lateral (pages de resultats) */
.tt-card table[width="200"] { width: 300px !important; }
.tt-card table[width="200"] td.darkbold, .tt-card table[width="200"] .darkbold { white-space: nowrap; }
.tt-card td[height="230"] { height: 20px; }

@media (max-width: 720px) {
	/* Les hauteurs fixes des anciennes tables provoquent des chevauchements en mobile */
	.tt-card tr[height], .tt-card td[height], .tt-card table[height] { height: auto !important; }
	.tt-card table[width="200"] { width: 100% !important; }
}

/* Cellules #5f56bo : en-tete (texte blanc) ou lignes de liste avec liens (Max Brenner) */
.tt-card [bgcolor="#5f56bo"] * { color: #fff !important; }
.tt-card td[bgcolor="#5f56bo"]:has(a) { background: #f7f7fc !important; }
.tt-card td[bgcolor="#5f56bo"]:has(a) * { color: var(--navy) !important; }

/* Bannieres client : jamais rognees, centrees sur un fond assorti */
.tt-banner { text-align: center; }
.tt-banner img { width: auto; max-width: 100%; max-height: none; margin: 0 auto; object-fit: contain; }
.tt-unilever .tt-banner { background: #eef4fb; }
.tt-orange .tt-banner { background: #231f20; }
.tt-nesher .tt-banner { background: #4a4a4a; }

/* Trace technique "ip ok" affichee par function_geo.php */
body.tt > div[style*="font-size: 5px"] { display: none; }

/* Anciennes cellules .button* : plus de cadre */
.tt td.button1, .tt td.button2, .tt td.button3 { border: 0 !important; height: auto !important; }

@media (max-width: 720px) {
	/* Listes de categories : le nom de la categorie d'abord, puis ses liens */
	.tt-card tr[height="20"] { display: flex !important; flex-direction: column-reverse; }
}

/* Formulaire de recherche lateral (results_search_*.php) : champs alignes et espaces reguliers */
.tt-card table[width="200"] { border-collapse: separate; border-spacing: 0; }
.tt-card table[width="200"] > tbody > tr > td { vertical-align: middle; padding: 5px 0; }
.tt-card table[width="200"] > tbody > tr:first-child > td { padding: 0 0 10px; text-align: right; }
.tt-card table[width="200"] > tbody > tr:first-child .darkbold { font-size: 16px; color: var(--navy); }
.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) {
	width: 1%;
	white-space: nowrap;
	text-align: right;
	padding-inline-start: 12px;
	color: var(--muted);
}
.tt-card table[width="200"] input[type="text"],
.tt-card table[width="200"] select { width: 220px; min-width: 0; height: 42px; margin: 0; }
.tt-card table[width="200"] input[type="image"],
.tt-card table[width="200"] input[type="submit"] { margin-top: 8px; }

@media (max-width: 720px) {
	.tt-card table[width="200"] input[type="text"], .tt-card table[width="200"] select { width: 100%; }
	.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) { width: 100% !important; text-align: center; padding: 8px 0 2px; }
	.tt-card table[width="200"] > tbody > tr { display: flex !important; flex-direction: column-reverse; }
	.tt-card table[width="200"] > tbody > tr:first-child { flex-direction: column; }
}

/* ---------------------------------------------------------------------
   Formulaires de recherche : libelle au-dessus du champ, champs de meme
   largeur, espacement regulier (ordinateur et mobile)
   --------------------------------------------------------------------- */
/* 1) Page de categories (client_category.php et variantes) */
.tt-card table[bgcolor="#dddddd"] > tbody > tr > td { padding: 0 18px; }
.tt-card table[bgcolor="#dddddd"] > tbody > tr:first-child > td { padding-top: 16px; padding-bottom: 6px; }
.tt-card table[bgcolor="#dddddd"] td.toc:has(select) {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding-top: 14px;
	padding-bottom: 4px;
	color: var(--navy);
	font-weight: 600;
}
.tt-card table[bgcolor="#dddddd"] td.toc:has(select) br { display: none; }
.tt-card table[bgcolor="#dddddd"] td.toc select { order: 2; }
.tt-card table[bgcolor="#dddddd"] td.toc input[type="submit"] { order: 3; margin: 14px 0 18px; padding-left: 34px; padding-right: 34px; }
.tt-card table[bgcolor="#dddddd"] input[type="text"],
.tt-card table[bgcolor="#dddddd"] select { width: 280px; max-width: 100%; height: 44px; }

/* 2) Barre de recherche des pages de resultats (results_search_*.php) */
.tt-card table[width="200"] > tbody > tr { display: flex !important; flex-direction: column; align-items: center; }
.tt-card table[width="200"] > tbody > tr > td { width: auto !important; padding: 0 !important; text-align: center !important; }
.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) { order: -1; padding: 14px 0 6px !important; color: var(--navy); }
.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) .darkbold { color: var(--navy); }
.tt-card table[width="200"] > tbody > tr:first-child > td { padding: 0 0 2px !important; }
.tt-card table[width="200"] input[type="text"],
.tt-card table[width="200"] select { width: 280px; max-width: 100%; height: 44px; }
.tt-card table[width="200"] input[type="image"],
.tt-card table[width="200"] input[type="submit"] { margin: 16px 0 6px; }

/* Barre de recherche des resultats : champ a gauche, libelle a droite centre verticalement,
   meme espace entre chaque ligne (remplace la version empilee) */
.tt-card table[width="200"] { width: auto !important; }
.tt-card table[width="200"] > tbody > tr {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin: 0 0 12px;
}
.tt-card table[width="200"] > tbody > tr > td { display: block; padding: 0 !important; width: auto !important; line-height: 1; font-size: 0; }
.tt-card table[width="200"] > tbody > tr > td > * { font-size: 15px; }
.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) {
	order: 0;
	width: 100px !important;
	padding: 0 !important;
	text-align: right !important;
	color: var(--muted);
	font-size: 15px;
	white-space: nowrap;
}
.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) .darkbold { color: var(--muted); }
.tt-card table[width="200"] > tbody > tr:first-child { justify-content: flex-end; margin-bottom: 14px; }
.tt-card table[width="200"] > tbody > tr:first-child > td { text-align: right !important; }
.tt-card table[width="200"] > tbody > tr:last-child { justify-content: center; margin: 4px 0 0; padding-inline-end: 114px; }
.tt-card table[width="200"] input[type="text"],
.tt-card table[width="200"] select { width: 280px; height: 44px; margin: 0 !important; display: block; }
.tt-card table[width="200"] input[type="image"],
.tt-card table[width="200"] input[type="submit"] { margin: 0; }

@media (max-width: 720px) {
	.tt-card table[width="200"] { width: 100% !important; }
	.tt-card table[width="200"] > tbody > tr { gap: 10px; }
	.tt-card table[width="200"] > tbody > tr > td:first-child:not(:last-child) { flex: 1; }
	.tt-card table[width="200"] > tbody > tr > td:last-child:not(:first-child) { width: 80px !important; }
	.tt-card table[width="200"] input[type="text"], .tt-card table[width="200"] select { width: 100%; }
	.tt-card table[width="200"] > tbody > tr:last-child { padding-inline-end: 0; }
}

/* ---------------------------------------------------------------------
   Visionneuse photo (remplace la popup results_img*.php)
   --------------------------------------------------------------------- */
.tt-lb[hidden] { display: none; }
.tt-lb {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(14, 16, 40, .86);
	display: flex; align-items: center; justify-content: center;
	padding: 56px 72px 40px;
	animation: tt-fade .15s ease-out;
}
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
.tt-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.tt-lb-fig img {
	max-width: min(1100px, calc(100vw - 160px));
	max-height: calc(100vh - 140px);
	object-fit: contain;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
	padding: 10px;
}
.tt-lb-fig figcaption { color: #fff; font-family: var(--font); font-size: 16px; font-weight: 500; text-align: center; direction: rtl; max-width: 800px; }
.tt-lb.is-loading .tt-lb-fig img { opacity: .25; }
.tt-lb.is-loading .tt-lb-fig::before {
	content: ""; position: absolute; width: 38px; height: 38px; border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: tt-spin .8s linear infinite;
}
@keyframes tt-spin { to { transform: rotate(360deg); } }
.tt-lb-close, .tt-lb-nav {
	position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12);
	display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0;
	font-family: Arial, sans-serif; line-height: 1;
}
.tt-lb-close:hover, .tt-lb-nav:hover { background: rgba(255, 255, 255, .26); }
.tt-lb-close { top: 14px; right: 16px; width: 44px; height: 44px; font-size: 30px; }
.tt-lb-nav { top: 50%; width: 50px; height: 50px; margin-top: -25px; font-size: 38px; }
.tt-lb-prev { right: 14px; }
.tt-lb-next { left: 14px; }
.tt-lb[data-single="1"] .tt-lb-nav { display: none; }
@media (max-width: 720px) {
	.tt-lb { padding: 56px 10px 70px; }
	.tt-lb-fig img { max-width: calc(100vw - 20px); max-height: calc(100vh - 170px); padding: 6px; }
	.tt-lb-nav { top: auto; bottom: 14px; margin-top: 0; }
}

/* ---------------------------------------------------------------------
   Page de categories : boite plus large, formulaire compact sur une ligne
   --------------------------------------------------------------------- */
.tt-card table[width="500"] { width: 100% !important; max-width: 1040px; }
.tt-card td[bgcolor="#C3C0E0"] { padding: 14px 18px !important; }
.tt-card td[bgcolor="#C3C0E0"] .purpletitle { font-size: 19px; }
.tt-card td[bgcolor="#C3C0E0"] .purpletitle br { display: none; }
.tt-card tr[height="20"] > td { padding: 7px 12px; }
.tt-card table[bgcolor="#dddddd"] input[type="text"],
.tt-card table[bgcolor="#dddddd"] select { height: 38px; font-size: 14px; padding: 6px 10px; }

@media (min-width: 721px) {
	.tt-card table[bgcolor="#dddddd"] > tbody {
		display: flex;
		flex-direction: row-reverse;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-end;
		gap: 10px 14px;
		padding: 12px 16px 16px;
	}
	.tt-card table[bgcolor="#dddddd"] > tbody > tr { display: contents; }
	.tt-card table[bgcolor="#dddddd"] > tbody > tr > td { display: flex; flex-direction: column; gap: 4px; padding: 0 !important; font-size: 13.5px; }
	.tt-card table[bgcolor="#dddddd"] > tbody > tr:first-child > td { display: block; flex-basis: 100%; text-align: center; padding: 0 0 2px !important; }
	.tt-card table[bgcolor="#dddddd"] > tbody > tr > td br { display: none; }
	.tt-card table[bgcolor="#dddddd"] input[type="text"],
	.tt-card table[bgcolor="#dddddd"] select { width: 210px; }
	.tt-card table[bgcolor="#dddddd"] td.toc:has(input[type="submit"]) { position: relative; padding-left: 96px !important; }
	.tt-card table[bgcolor="#dddddd"] td.toc input[type="submit"] { position: absolute; left: 0; bottom: 0; margin: 0 !important; height: 38px; padding: 0 22px; }
}

/* Visionneuse : ne pas heriter des styles de boutons et de vignettes du site */
.tt .tt-lb button.tt-lb-close, .tt .tt-lb button.tt-lb-nav {
	background: rgba(255, 255, 255, .12) !important; border: 0 !important; border-radius: 50% !important;
	padding: 0 !important; color: #fff !important; font-weight: 400; box-shadow: none;
}
.tt .tt-lb button.tt-lb-close:hover, .tt .tt-lb button.tt-lb-nav:hover { background: rgba(255, 255, 255, .26) !important; }
.tt .tt-lb-fig img[src], .tt .tt-lb-fig img {
	width: auto !important; height: auto !important;
	max-width: min(1100px, calc(100vw - 160px)) !important; max-height: calc(100vh - 140px) !important;
	border: 0 !important; transform: none !important; transition: none;
	min-width: min(420px, calc(100vw - 40px));
	min-height: 0; object-fit: contain;
}
@media (max-width: 720px) {
	.tt .tt-lb-fig img[src], .tt .tt-lb-fig img { max-width: calc(100vw - 20px) !important; max-height: calc(100vh - 170px) !important; min-width: calc(100vw - 40px); }
}

/* Page de categories : champ mot-cle aligne avec les listes (libelle au-dessus) et moins d'espace en haut */
.tt-frame > tbody > tr > td > br { display: none; }
@media (min-width: 721px) {
	.tt-card table[bgcolor="#dddddd"] > tbody > tr > td:has(> input[type="text"]) { font-size: 0; }
	.tt-card table[bgcolor="#dddddd"] > tbody > tr > td:has(> input[type="text"])::before {
		content: "מילת מפתח:"; font-size: 13.5px; font-weight: 600; color: var(--navy); text-align: center; direction: rtl;
	}
	.tt-card table[bgcolor="#dddddd"] > tbody > tr:first-child > td { display: none !important; }
}

/* =====================================================================
   Site Orange private (orangeprivate.toptouch.co.il) : charte orange
   Toutes les regles ci-dessus utilisent les variables : on les redefinit.
   ===================================================================== */
body.tt-orange {
	--navy: #b35500;
	--navy-600: #8f4300;
	--navy-050: #fff1e3;
	--lav: #e36f00;
	--lav-100: #fff4ea;
	--lav-200: #fde0c2;
	--orange: #f78b1f;
	--bg: #f8f6f4;
	--border: #ece3da;
	--border-strong: #dcc8b5;
}
.tt-orange .tt-top::before { background: linear-gradient(90deg, #f78b1f, #b35500); }
.tt-orange .tt-banner { background: #231f20; border-bottom: 4px solid #f78b1f; }
.tt-orange .tt-banner img { max-height: 248px; }
.tt-orange .tt-card { border-top: 3px solid #f78b1f; }
.tt-orange input:focus, .tt-orange select:focus, .tt-orange textarea:focus { box-shadow: 0 0 0 3px rgba(247, 139, 31, .25); }
.tt-orange a:hover img[src*="images/ui/"], .tt-orange input[type="image"][src*="images/ui/"]:hover { box-shadow: 0 3px 10px rgba(179, 85, 0, .22); }
.tt-orange .tt-foot { border-top-color: #fde0c2; }

/* Classes historiques des pages orange_* */
.tt-orange .orange_title { font-family: var(--font); font-size: 20px; font-weight: 700; color: var(--navy); }
.tt-orange .orange_text, .tt-orange .orange_textR, .tt-orange .orange_textC {
	font-family: var(--font); font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.6; height: auto;
}
.tt-orange .orange_text { color: var(--muted); font-weight: 600; padding: 6px 10px; }
.tt-orange .orange_textR { padding: 6px 10px; }
.tt-orange .orange_textR input, .tt-orange .orange_textR select, .tt-orange .orange_textR textarea { width: 280px; font-weight: 400; text-align: right; }
.tt-orange .orange_textC a { color: var(--navy); font-weight: 600; text-decoration: none; }
.tt-orange .orange_textC a:hover { text-decoration: underline; }
.tt-orange .orange_text2 {
	font-family: var(--font); font-size: 14px; font-weight: 600; color: #fff;
	background: var(--navy) !important; padding: 9px 10px; line-height: 1.4;
}
.tt-orange .tt-card table:has(> tbody > tr > td.orange_text2) { border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; }

/* Boite orange (connexion, encadres) : fond clair, textes fonces */
.tt-orange .tt-card [bgcolor="#f78b1f"], .tt-orange .tt-card [bgcolor="#F78B1F"] { background: var(--lav-100) !important; }
.tt-orange .tt-card td[bgcolor="#f78b1f"], .tt-orange .tt-card td[bgcolor="#F78B1F"] { border-radius: var(--radius); padding: 18px !important; }
.tt-orange .tt-card [bgcolor="#f78b1f"] [style*="color:#FFFFFF"], .tt-orange .tt-card [bgcolor="#f78b1f"] [style*="color: #FFFFFF"] { color: var(--navy) !important; }
.tt-orange input.style1 { width: 260px; }
