/* Composants des shortcodes TopReims. Variables définies par le thème enfant (valeurs de repli ici). */

.tr-icon { width: 26px; height: 26px; flex: none; }

/* Grille des métiers */
.tr-trades { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 480px) { .tr-trades { grid-template-columns: 1fr 1fr; gap: 10px; } .tr-trade a { padding: 16px 14px; font-size: .92rem; } }
.tr-trade { margin: 0; }
.tr-trade a {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	height: 100%;
	padding: 20px 18px;
	background: var(--tr-white, #fff);
	border: 1px solid var(--tr-line, #e4ddcf);
	border-radius: var(--tr-radius, 14px);
	color: var(--tr-navy, #0e2a47);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tr-trade a:hover, .tr-trade a:focus-visible { border-color: var(--tr-gold, #c8a15a); box-shadow: var(--tr-shadow-hover, 0 10px 30px rgba(0,0,0,.12)); transform: translateY(-2px); color: var(--tr-navy, #0e2a47); }
.tr-trade__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tr-gold-soft, #efe3c8); color: var(--tr-navy, #0e2a47); }

/* Recherche (hero) */
.tr-search {
	display: flex; flex-wrap: wrap; gap: 10px;
	margin: 28px 0 0;
	padding: 10px;
	max-width: 720px;
	background: var(--tr-white, #fff);
	border-radius: 999px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.tr-search select {
	flex: 1 1 260px;
	min-height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tr-cream, #faf7f1);
	color: var(--tr-ink, #1b2430);
	font: inherit;
	font-size: 1rem;
}
.tr-search .tr-btn { min-height: 50px; }
.tr-search .tr-btn:not(.tr-btn--ghost) { background: var(--tr-gold, #c8a15a); border-color: var(--tr-gold, #c8a15a); color: var(--tr-navy, #0e2a47); }
.tr-search .tr-btn:not(.tr-btn--ghost):hover { background: var(--tr-navy, #0e2a47); border-color: var(--tr-navy, #0e2a47); color: #fff; }
@media (max-width: 600px) {
	.tr-search { border-radius: 18px; }
	.tr-search .tr-btn { flex: 1 1 100%; }
}

/* CTA devis */
.tr-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
	margin: 32px 0;
	padding: 24px 28px;
	background: var(--tr-white, #fff);
	border: 1px solid var(--tr-line, #e4ddcf);
	border-left: 4px solid var(--tr-gold, #c8a15a);
	border-radius: var(--tr-radius, 14px);
	box-shadow: var(--tr-shadow, 0 6px 20px rgba(0,0,0,.08));
}
.tr-cta__text { flex: 1 1 320px; }
.tr-cta__text p { margin: 0; color: var(--tr-muted, #566172); }
.tr-cta .tr-cta__title { font-family: var(--tr-serif, Georgia, serif); font-size: 1.25rem; font-weight: 700; color: var(--tr-navy, #0e2a47); margin-bottom: 4px; }
.tr-cta--bandeau { background: var(--tr-navy, #0e2a47); border: 0; }
.tr-cta--bandeau .tr-cta__title { color: #fff; }
.tr-cta--bandeau .tr-cta__text p { color: rgba(255, 255, 255, .82); }
.tr-cta--bandeau .tr-btn { background: var(--tr-gold, #c8a15a); border-color: var(--tr-gold, #c8a15a); color: var(--tr-navy, #0e2a47); }

/* Sélection Top */
.tr-biz-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0; }
.tr-biz { background: var(--tr-white, #fff); border: 1px solid var(--tr-line, #e4ddcf); border-radius: var(--tr-radius, 14px); padding: 22px; box-shadow: var(--tr-shadow, 0 6px 20px rgba(0,0,0,.08)); }
.tr-biz__head { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--tr-navy, #0e2a47); color: var(--tr-gold-soft, #efe3c8); font-size: .78rem; font-weight: 600; letter-spacing: .03em; }
.tr-badge .tr-icon { width: 14px; height: 14px; color: var(--tr-gold, #c8a15a); fill: currentColor; }
.tr-badge--partner { background: var(--tr-cream-2, #f3eee4); color: var(--tr-muted, #566172); }
.tr-biz__name { margin: 14px 0 4px; font-size: 1.25rem; }
.tr-biz p { margin: 0 0 6px; font-size: .95rem; }
.tr-biz__rating { color: var(--tr-gold-dark, #8a6a2c); font-weight: 600; }
.tr-biz__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; }
.tr-biz__verified { display: flex; align-items: center; gap: 6px; color: var(--tr-muted, #566172); font-size: .82rem !important; margin-top: 10px !important; }
.tr-biz__verified .tr-icon { width: 16px; height: 16px; color: #2e7d4f; }
.tr-top-empty { margin: 20px 0; padding: 26px; border: 1px dashed var(--tr-gold, #c8a15a); border-radius: var(--tr-radius, 14px); background: var(--tr-white, #fff); }
.tr-top-empty p { margin: 0 0 10px; }

/* FAQ */
.tr-faq { margin: 20px 0; display: grid; gap: 10px; }
.tr-faq__item { background: var(--tr-white, #fff); border: 1px solid var(--tr-line, #e4ddcf); border-radius: var(--tr-radius-sm, 10px); }
.tr-faq__item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--tr-navy, #0e2a47); position: relative; }
.tr-faq__item summary::-webkit-details-marker { display: none; }
.tr-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--tr-gold-dark, #8a6a2c); }
.tr-faq__item[open] summary::after { content: "−"; }
.tr-faq__a { padding: 0 18px 16px; color: var(--tr-muted, #566172); }
.tr-faq__a p { margin: 0; }

/* Cartes d'articles */
.tr-posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 28px 0 0; }
.tr-post-card a { display: flex; flex-direction: column; height: 100%; background: var(--tr-white, #fff); border: 1px solid var(--tr-line, #e4ddcf); border-radius: var(--tr-radius, 14px); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.tr-post-card a:hover { box-shadow: var(--tr-shadow-hover, 0 10px 30px rgba(0,0,0,.12)); transform: translateY(-2px); }
.tr-post-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.tr-post-card__body { padding: 18px 20px 22px; }
.tr-post-card__cat { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tr-gold-dark, #8a6a2c); }
.tr-post-card__title { font-size: 1.2rem; margin: 6px 0 8px; color: var(--tr-navy, #0e2a47); }
.tr-post-card__excerpt { margin: 0; font-size: .95rem; color: var(--tr-muted, #566172); }

/* Formulaires */
.tr-form-card { background: var(--tr-white, #fff); border: 1px solid var(--tr-line, #e4ddcf); border-radius: var(--tr-radius, 14px); padding: clamp(20px, 4vw, 36px); box-shadow: var(--tr-shadow, 0 6px 20px rgba(0,0,0,.08)); margin: 28px 0; }
.tr-admin-notice { padding: 12px 16px; background: #fff4e5; border-left: 4px solid #f0a33c; }

/* ---------- Cartes de recommandation (accueil) ---------- */
.tr-recos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 28px 0 0; }
.tr-reco {
	display: flex; flex-direction: column; gap: 12px;
	padding: 22px;
	background: var(--tr-white, #fff);
	border: 1px solid var(--tr-line, #e4ddcf);
	border-radius: var(--tr-radius, 14px);
	box-shadow: var(--tr-shadow, 0 6px 20px rgba(0,0,0,.08));
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tr-reco:hover { border-color: var(--tr-gold, #c8a15a); box-shadow: var(--tr-shadow-hover, 0 10px 30px rgba(0,0,0,.12)); transform: translateY(-2px); }
.tr-reco__head { display: flex; align-items: center; gap: 12px; }
.tr-reco__head .tr-trade__icon { width: 44px; height: 44px; flex: none; }
.entry-content .tr-reco__trade { margin: 0; font-size: 1.2rem; }
.tr-reco__pitch { margin: 0; color: var(--tr-muted, #566172); font-size: .95rem !important; }
.tr-reco__biz { padding: 14px 16px; border-radius: var(--tr-radius-sm, 10px); background: var(--tr-cream, #faf7f1); border: 1px solid var(--tr-line, #e4ddcf); }
.tr-reco__biz .tr-badge { margin-bottom: 8px; }
.tr-reco__name { margin: 0 0 4px; font-family: var(--tr-serif, Georgia, serif); font-weight: 700; font-size: 1.12rem !important; color: var(--tr-navy, #0e2a47); line-height: 1.25; }
.tr-reco__meta { margin: 0; font-size: .9rem !important; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.tr-reco__place { color: var(--tr-muted, #566172); }
.tr-reco__biz--empty p { margin: 0; color: var(--tr-muted, #566172); font-style: italic; font-size: .92rem !important; }
.tr-reco__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tr-reco__actions .tr-btn { padding: .7em 1.3em; font-size: .95rem; }
.tr-reco__more { font-size: .9rem; font-weight: 600; text-decoration: none; }
.tr-reco--other { background: var(--tr-navy, #0e2a47); border-color: var(--tr-navy, #0e2a47); }
.tr-reco--other .tr-reco__trade { color: #fff; }
.tr-reco--other .tr-reco__pitch { color: rgba(255,255,255,.82); }
.tr-reco--other .tr-trade__icon { background: rgba(200,161,90,.25); color: var(--tr-gold, #c8a15a); }
.tr-reco--other .tr-btn { background: var(--tr-gold, #c8a15a); border-color: var(--tr-gold, #c8a15a); color: var(--tr-navy, #0e2a47); }

/* Sélection Top (pages métier) */
.tr-biz--featured { border-color: var(--tr-gold, #c8a15a); box-shadow: 0 0 0 2px var(--tr-gold-soft, #efe3c8), var(--tr-shadow, 0 6px 20px rgba(0,0,0,.08)); }
.tr-biz .tr-btn { margin-top: 12px; padding: .65em 1.3em; font-size: .95rem; }
.tr-biz__date { color: var(--tr-muted, #566172); font-size: .82rem; font-weight: 400; }
.tr-biz-note { margin-top: 0; }

/* Boutons désactivés */
.tr-btn--disabled, .tr-btn--disabled:hover { background: var(--tr-cream-2, #f3eee4) !important; border-color: var(--tr-line, #e4ddcf) !important; color: var(--tr-muted, #566172) !important; cursor: default; transform: none !important; }

/* ---------- Encadré d'affiliation (fin d'article) ---------- */
.tr-affiliate {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
	margin: 36px 0;
	padding: 26px 28px;
	border-radius: var(--tr-radius, 14px);
	background: linear-gradient(120deg, var(--tr-gold-soft, #efe3c8) 0%, #fbf6ea 100%);
	border: 1px solid #e3cf9f;
}
.tr-affiliate__text { flex: 1 1 320px; }
.tr-affiliate__text p { margin: 0; }
.tr-affiliate__kicker { font-size: .75rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tr-gold-dark, #8a6a2c); margin-bottom: 4px !important; }
.tr-affiliate__title { font-family: var(--tr-serif, Georgia, serif); font-size: 1.3rem !important; font-weight: 700; color: var(--tr-navy, #0e2a47); margin-bottom: 4px !important; }
.tr-affiliate__disclosure { flex-basis: 100%; margin: 0; font-size: .78rem !important; color: var(--tr-muted, #566172); }
.tr-affiliate--pending { border-style: dashed; }

/* ---------- Formulaire Fluent Forms aux couleurs TopReims ---------- */
.tr-ff .ff-el-group { margin-bottom: 18px; }
.tr-ff .ff-el-input--label label { font-weight: 600; color: var(--tr-navy, #0e2a47); }
.tr-ff .ff-el-form-control { border: 1px solid var(--tr-line, #e4ddcf); border-radius: var(--tr-radius-sm, 10px); padding: 11px 14px; background: var(--tr-cream, #faf7f1); font-size: 1rem; }
.tr-ff .ff-el-form-control:focus { border-color: var(--tr-gold, #c8a15a); box-shadow: 0 0 0 3px var(--tr-gold-soft, #efe3c8); background: #fff; }
.tr-ff .ff-btn-submit { border-radius: 999px !important; padding: .85em 1.8em !important; font-weight: 600; }
.tr-ff .ff-el-help-message { color: var(--tr-muted, #566172); font-size: .85rem; }
.tr-ff .ff-custom_html { background: #fff4e5; border-left: 4px solid #f0a33c; padding: 10px 14px; border-radius: 6px; }

/* ---------- Envoi de photos (formulaire de devis) ---------- */
.tr-upload { margin: 4px 0 18px; }
.tr-upload__label { display: block; font-weight: 600; color: var(--tr-navy, #0e2a47); margin-bottom: 8px; }
.tr-upload__list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.tr-upload__item { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--tr-line, #e4ddcf); background: var(--tr-cream, #faf7f1); }
.tr-upload__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-upload__item.is-loading img { opacity: .45; }
.tr-upload__state { position: absolute; left: 6px; bottom: 6px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.9); color: var(--tr-navy, #0e2a47); padding: 2px 6px; border-radius: 6px; }
.tr-upload__rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(14,42,71,.85); color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; }
.tr-upload__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 2px dashed var(--tr-gold, #c8a15a); border-radius: 999px; color: var(--tr-navy, #0e2a47); font-weight: 600; cursor: pointer; background: #fff; }
.tr-upload__btn:hover { background: var(--tr-gold-soft, #efe3c8); }
.tr-upload__help { margin: 8px 0 0; font-size: .85rem !important; color: var(--tr-muted, #566172); }
.tr-upload__error { margin: 6px 0 0; font-size: .88rem !important; color: #b3261e; }
.tr-upload__error:empty { display: none; }
.tr-ff .ff-custom_html:has(.tr-upload) { background: none; border: 0; padding: 0; }
