/*
 * Emplacements d'images « Visuel à venir » (inc/placeholders.php). Fichier chargé seulement tant que
 * les emplacements sont actifs ; le retirer = retour aux vraies images.
 */

.tbx-ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 40px;
	background: repeating-linear-gradient(135deg, #F1E4D8 0 10px, #F7EDE4 10px 20px);
}

.tbx-ph__label {
	max-width: calc(100% - 12px);
	padding: 6px 10px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	color: #3E5063;
	font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
	text-align: center;
	white-space: normal; /* la taille idéale doit rester lisible, même dans un petit cadre */
}

/* Pages Elementor : l'image reste en place (dimensions) mais est masquée sous un emplacement hachuré. */
body.tbx-ph-on .tbx-hero__photo.tbx-ph-slot,
body.tbx-ph-on .tbx-boxcard__img.tbx-ph-slot,
body.tbx-ph-on .tbx-band__img.tbx-ph-slot,
body.tbx-ph-on .tbx-pack__img.tbx-ph-slot,
body.tbx-ph-on .tbx-benefit__img.tbx-ph-slot,
body.tbx-ph-on .tbx-perk__img.tbx-ph-slot,
body.tbx-ph-on .tbx-ct-hero__photo.tbx-ph-slot,
body.tbx-ph-on .tbx-ct-faq__img.tbx-ph-slot,
body.tbx-ph-on .tbx-ct-info__img.tbx-ph-slot,
body.tbx-ph-on .tbx-ap-hero__photo.tbx-ph-slot,
body.tbx-ph-on .tbx-ap-facts__img.tbx-ph-slot,
body.tbx-ph-on .tbx-ap-step__img.tbx-ph-slot,
body.tbx-ph-on .tbx-ap-value__img.tbx-ph-slot,
body.tbx-ph-on .tbx-plan__img.tbx-ph-slot,
body.tbx-ph-on .tbx-panel__item .elementor-widget-image.tbx-ph-slot {
	position: relative;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #F1E4D8 0 10px, #F7EDE4 10px 20px) !important;
}

body.tbx-ph-on :is(.tbx-hero__photo.tbx-ph-slot, .tbx-boxcard__img.tbx-ph-slot, .tbx-band__img.tbx-ph-slot, .tbx-pack__img.tbx-ph-slot, .tbx-benefit__img.tbx-ph-slot, .tbx-perk__img.tbx-ph-slot, .tbx-ct-hero__photo.tbx-ph-slot, .tbx-ct-faq__img.tbx-ph-slot, .tbx-ct-info__img.tbx-ph-slot, .tbx-ap-hero__photo.tbx-ph-slot, .tbx-ap-facts__img.tbx-ph-slot, .tbx-ap-step__img.tbx-ph-slot, .tbx-ap-value__img.tbx-ph-slot, .tbx-plan__img.tbx-ph-slot, .tbx-panel__item .elementor-widget-image.tbx-ph-slot) img {
	opacity: 0 !important;
}

/* Pictos de l'accueil : cadre fixe, même s'il n'y a pas encore d'image dedans. */
body.tbx-ph-on .tbx-panel__item .elementor-widget-image.tbx-ph-slot {
	width: 120px;
	height: 110px;
	border-radius: 18px;
}

/* Étiquette : taille idéale de l'image à fournir (2 × la taille d'affichage maximale, pour les écrans haute définition).
 * :where() garde cette règle générale faible : les étiquettes précises plus bas l'emportent toujours. */
body.tbx-ph-on :where(.tbx-hero__photo.tbx-ph-slot, .tbx-boxcard__img.tbx-ph-slot, .tbx-band__img.tbx-ph-slot, .tbx-pack__img.tbx-ph-slot, .tbx-benefit__img.tbx-ph-slot, .tbx-perk__img.tbx-ph-slot, .tbx-ct-hero__photo.tbx-ph-slot, .tbx-ct-faq__img.tbx-ph-slot, .tbx-ct-info__img.tbx-ph-slot, .tbx-ap-hero__photo.tbx-ph-slot, .tbx-ap-facts__img.tbx-ph-slot, .tbx-ap-step__img.tbx-ph-slot, .tbx-ap-value__img.tbx-ph-slot, .tbx-panel__item .elementor-widget-image.tbx-ph-slot)::after {
	content: "Visuel à venir";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	max-width: calc(100% - 12px);
	padding: 6px 10px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	color: #3E5063;
	font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
	text-overflow: ellipsis;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

body.tbx-ph-on :where(.tbx-panel__item .elementor-widget-image.tbx-ph-slot, .tbx-benefit__img.tbx-ph-slot, .tbx-perk__img.tbx-ph-slot)::after {
	padding: 3px 5px;
	border-radius: 5px;
	font-size: 9.5px;
	white-space: normal;
	text-align: center;
}

body.tbx-ph-on .tbx-perk__img.tbx-ph-slot::after {
	padding: 2px 3px;
	font-size: 8px;
}

/* Héros (accueil, contact, à propos) : même cadre que les héros du thème */
body.tbx-ph-on :is(.tbx-hero__photo.tbx-ph-slot, .tbx-ct-hero__photo.tbx-ph-slot, .tbx-ap-hero__photo.tbx-ph-slot)::after {
	content: "Visuel à venir · 1100 × 850 px";
}

/* Accueil */
body.tbx-ph-on .tbx-boxcard__img.tbx-ph-slot::after {
	content: "Visuel à venir · 600 × 500 px";
}
body.tbx-ph-on .tbx-band__img.tbx-ph-slot::after {
	content: "Illustration détourée · 1040 × 1200 px";
}
body.tbx-ph-on .tbx-pack__img.tbx-ph-slot::after {
	content: "Visuel à venir · 800 × 880 px";
}

/* Pictos « Ce que contient votre box » (images détourées, fond transparent) */
body.tbx-ph-on .tbx-panel__item .elementor-widget-image.tbx-ph-slot::after {
	content: "Picto · 240 × 220 px";
}
body.tbx-ph-on .tbx-benefit__img.tbx-ph-slot::after {
	content: "240 × 240 px";
}
body.tbx-ph-on .tbx-perk__img.tbx-ph-slot::after {
	content: "96 px";
}

/* Contact */
body.tbx-ph-on .tbx-ct-info__img.tbx-ph-slot::after {
	content: "Conseiller détouré · 720 × 900 px";
}
body.tbx-ph-on .tbx-ct-faq__img.tbx-ph-slot::after {
	content: "Visuel à venir · 600 × 440 px";
}

/* À propos */
body.tbx-ph-on .tbx-ap-facts__img.tbx-ph-slot::after {
	content: "Visuel à venir · 960 × 1060 px";
}
body.tbx-ph-on .tbx-ap-step__img.tbx-ph-slot::after {
	content: "Visuel à venir · 1320 × 800 px";
}
body.tbx-ph-on .tbx-ap-value--passion .tbx-ap-value__img.tbx-ph-slot::after {
	content: "Visuel à venir · 780 × 940 px";
}
body.tbx-ph-on :is(.tbx-ap-value--club, .tbx-ap-value--simple) .tbx-ap-value__img.tbx-ph-slot::after {
	content: "Visuel à venir · 680 × 400 px";
}
body.tbx-ph-on .tbx-ap-value--pro .tbx-ap-value__img.tbx-ph-slot::after {
	content: "Visuel à venir · 480 × 440 px";
}

body.tbx-ph-on :is(.tbx-benefit__img.tbx-ph-slot, .tbx-perk__img.tbx-ph-slot) {
	border-radius: 50%;
}

/* Icônes des arguments des héros (thème et Contact) : emplacement rond de 40 px, image idéale 80 × 80 px
 * (fond transparent) — retour d'Elsa, 2026-10-10. */
.tbx-cat-hero__check.tbx-cat-hero__icon-ph,
body.tbx-ph-on .elementor .tbx-sec .tbx-ct-perk .elementor-heading-title::before {
	content: "80×80";
	width: 40px;
	height: 40px;
	border: 1.5px dashed #C9B6A4;
	border-radius: 50%;
	background: repeating-linear-gradient(135deg, #F1E4D8 0 6px, #F7EDE4 6px 12px);
	color: #3E5063;
	font: 600 8.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0;
}

@media (max-width: 767px) {
	.tbx-cat-hero__check.tbx-cat-hero__icon-ph,
	body.tbx-ph-on .elementor .tbx-sec .tbx-ct-perk .elementor-heading-title::before {
		width: 36px;
		height: 36px;
		font-size: 8px;
	}
}

/* Visuel des formules (sections.css, .tbx-plan__img). */
body.tbx-ph-on .tbx-plan__img.tbx-ph-slot {
	border-radius: 18px;
}

body.tbx-ph-on .tbx-plan__img.tbx-ph-slot::after {
	content: "240 × 240 px";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	padding: 2px 4px;
	border-radius: 5px;
	background: #fff;
	color: #3E5063;
	font: 500 8.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
	text-align: center;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* Icônes des avantages des héros : emplacements plus grands (retour d'Elsa, 2026-10-12). */
.tbx-cat-hero__check.tbx-cat-hero__icon-ph,
body.tbx-ph-on .elementor .tbx-sec .tbx-ct-perk .elementor-heading-title::before {
	width: 56px;
	height: 56px;
	font-size: 10px;
}

@media (max-width: 767px) {
	.tbx-cat-hero__check.tbx-cat-hero__icon-ph,
	body.tbx-ph-on .elementor .tbx-sec .tbx-ct-perk .elementor-heading-title::before {
		width: 48px;
		height: 48px;
		font-size: 9px;
	}
}
