/* Technofrance — surcouche de styles (site + éditeur).
   Couleurs : var(--wp--preset--color--*). Bronze #A98545 = filets et décor seulement ;
   texte/boutons sur fond clair en bronze foncé (accent-2), sur fond bleu en bronze clair (accent-3). */

a { font-size: inherit; }
img { max-width: 100%; }

/* ---------- Marque ---------- */
.tf-brand { display: inline-flex; align-items: center; line-height: 0; }
.tf-brand img { height: 52px; width: auto; display: block; }
.tf-brand--pied img { height: 40px; }
@media (max-width: 600px) { .tf-brand img { height: 40px; } }

/* ---------- Barre du haut + en-tête ---------- */
.tf-topbar { font-size: .8rem; letter-spacing: .04em; }
.tf-topbar p { margin: 0; }
.tf-topbar a { color: var(--wp--preset--color--base); font-weight: 600; text-decoration: none; }
.tf-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e6e2da; }
.admin-bar .tf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tf-header { top: 46px; } }
.tf-header__droite { gap: 1.75rem; }
.tf-header .wp-block-navigation { --tf-nav: var(--wp--preset--color--contrast); }
.tf-header .wp-block-navigation a { color: var(--tf-nav); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.tf-header .wp-block-navigation a:hover,
.tf-header .wp-block-navigation .current-menu-item > a,
.tf-header .wp-block-navigation .current-menu-ancestor > a { border-bottom-color: var(--wp--preset--color--accent); text-decoration: none; }
.tf-header .wp-block-navigation__submenu-container { border: 1px solid #e6e2da !important; box-shadow: 0 18px 40px rgb(22 50 74 / .12); padding-block: .4rem; min-width: 260px !important; }
.tf-header .wp-block-navigation__submenu-container a { padding: .55rem 1rem !important; border-bottom: 0 !important; letter-spacing: .06em; }
.tf-header .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--base-2); }
.tf-header .wp-block-navigation__responsive-container-open,
.tf-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); min-width: 44px; min-height: 44px; justify-content: center; }
.tf-header__tel .wp-block-button__link { padding: .75rem 1.1rem; white-space: nowrap; }
.tf-header__tel .wp-block-button__link:hover { background: var(--wp--preset--color--accent-2) !important; }
@media (max-width: 1080px) { .tf-header .tf-header__tel { display: none !important; } }
.tf-header__tel .wp-block-button__link { border-radius: 2px !important; }
@media (max-width: 600px) {
	.tf-topbar__adresse { display: none; }
	.tf-topbar .alignwide { justify-content: center !important; }
}
/* Menu mobile ouvert : grandes cibles tactiles, sous-menus dépliés */
.tf-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.tf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-size: 1.05rem; padding-block: .6rem; min-height: 44px; }
.tf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0 !important; padding-left: 1rem !important; }

/* ---------- Titres et textes ---------- */
.tf-surtitre { font-size: .75rem !important; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--accent-2); margin-bottom: .25rem; }
.has-contrast-background-color .tf-surtitre { color: var(--wp--preset--color--accent-3); }
.tf-intro { font-size: 1.125rem !important; color: var(--wp--preset--color--contrast-2); }
.alignfull > .tf-intro, .tf-page__corps .tf-intro { max-width: 1180px !important; }
.tf-encadre { border-left: 3px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--base-2); padding: 1.1rem 1.4rem; }
.tf-texte-loi { background: var(--wp--preset--color--base-2); padding: 1.25rem 1.5rem; font-size: .95rem; }
.tf-lien { margin-top: auto; }
.tf-lien a { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.tf-lien a:hover { text-decoration: underline; }

/* Boutons */
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.has-contrast-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--base); }
.has-contrast-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

/* Images : coins nets (secteur funéraire, sobriété) */
.wp-block-image img, .wp-block-gallery .wp-block-image img { border-radius: 0; }

/* ---------- Sections collées (pas de liseré blanc entre bandes) ---------- */
.wp-site-blocks > main, .wp-site-blocks > footer, .wp-site-blocks > header + main { margin-block-start: 0; }
.tf-accueil > .wp-block-post-content > .alignfull { margin-block-start: 0; }
.tf-footer-bas { margin-block-start: 0 !important; }

/* ---------- Accueil : héro ---------- */
.tf-hero { position: relative; overflow: hidden; background-image: linear-gradient(180deg, #f7f5f1 0%, #f1efe9 100%); }
.tf-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border: 1px solid rgb(169 133 69 / .25); border-radius: 50%; pointer-events: none; }
.tf-hero__colonnes { gap: clamp(2rem, 5vw, 4rem); }
.tf-hero h1 { margin-top: .5rem; }
.tf-hero__sous { font-size: 1.06rem; color: var(--wp--preset--color--contrast-2); max-width: 32rem; }
.tf-hero__visuel { position: relative; padding-bottom: 1.5rem; }
.tf-cadre { border: 1px solid var(--wp--preset--color--accent); padding: 12px; background: #fff; box-shadow: 0 24px 60px rgb(22 50 74 / .16); margin: 0; }
.tf-cadre img { display: block; width: 100%; height: auto; }
.tf-badge { position: absolute; left: -22px; bottom: 0; max-width: 250px; padding: 1rem 1.35rem !important; box-shadow: 0 14px 34px rgb(22 50 74 / .3); }
.tf-badge p { margin: 0; }
.tf-badge__titre { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--wp--preset--color--accent-3); margin-bottom: .3rem !important; }
.tf-badge__texte { font-size: .8rem; line-height: 1.45; color: #cfd8e0; }
@media (max-width: 781px) { .tf-badge { left: 0; position: relative; margin-top: -2rem; margin-left: 1rem; } .tf-hero__visuel { padding-bottom: 0; } }

/* Bande de chiffres */
.tf-bande { color: var(--wp--preset--color--base); }
.tf-chiffres { gap: 1.5rem; }
.tf-chiffre { border-left: 2px solid var(--wp--preset--color--accent); padding-left: 1.1rem; }
.tf-chiffre p { margin: 0; }
.tf-chiffre__titre { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.1rem; }
.tf-chiffre__texte { font-size: .82rem; color: #b9c6d2; }

/* Notre entreprise : photo décalée avec filet bronze */
.tf-photo-decalee { position: relative; margin: 0 18px 18px 0; isolation: isolate; }
.tf-photo-decalee::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--wp--preset--color--accent); z-index: -1; }
.tf-photo-decalee img { display: block; box-shadow: 0 24px 60px rgb(22 50 74 / .15); }

/* Caveau PVC : exigences */
.tf-exigences__intro { margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--contrast); }
.tf-exigences { gap: 1.1rem; grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 781px) { .tf-exigences { grid-template-columns: 1fr !important; } }
.tf-exigence { background: #fff; border: 1px solid #e6e2da; border-top: 3px solid var(--wp--preset--color--accent); padding: 1.4rem 1.4rem 1.2rem; }
.tf-exigence p { margin: 0; font-size: .95rem; }
.tf-exigence__num { font-family: var(--wp--preset--font-family--serif); font-weight: 700; color: var(--wp--preset--color--accent-2); margin-bottom: .5rem !important; }
.tf-recycle { font-family: var(--wp--preset--font-family--serif); font-size: 1.3rem; color: var(--wp--preset--color--contrast); margin-top: var(--wp--preset--spacing--40); }
.tf-recycle strong { color: var(--wp--preset--color--accent-2); font-weight: 600; }

/* Cartes (activités, sous-pages) */
.tf-grille { gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) !important; }
.tf-carte { display: flex; flex-direction: column; gap: .75rem; background: #fff; border: 1px solid #e6e2da; padding: 1.6rem 1.6rem 1.4rem; transition: box-shadow .2s ease, transform .2s ease; }
.tf-carte:hover { box-shadow: 0 18px 44px rgb(22 50 74 / .12); }
.tf-carte > * { margin-block: 0 !important; }
.tf-carte h3 { padding-bottom: .7rem; border-bottom: 2px solid var(--wp--preset--color--accent); }
.tf-carte h3 a { color: inherit; text-decoration: none; }
.tf-carte__photo { margin: -1.6rem -1.6rem .5rem !important; overflow: hidden; aspect-ratio: 4 / 3; }
.tf-carte__photo img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.tf-carte:hover .tf-carte__photo img { transform: scale(1.03); }
.tf-carte ul { list-style: none; padding: 0; margin: 0; }
.tf-carte li { font-size: .95rem; padding: .45rem 0; border-bottom: 1px dotted #d8d3c8; }
.tf-carte li:last-child { border-bottom: 0; }
.tf-activites .tf-carte ul { margin-bottom: .5rem; }

/* Références */
.tf-logos { gap: clamp(1.5rem, 4vw, 3.25rem); align-items: flex-end; margin-top: var(--wp--preset--spacing--40); }
.tf-logo-ref { margin: 0; text-align: center; }
.tf-logo-ref img { height: 58px; width: auto; filter: grayscale(1); opacity: .8; margin-inline: auto; }
.tf-logo-ref figcaption { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); margin-top: .5rem; }

/* ---------- Pages intérieures ---------- */
.tf-page__tete { border-bottom: 1px solid #e6e2da; }
.tf-page__tete .wp-block-post-title { margin: 0; }
.tf-page__tete .wp-block-post-title::before { content: ""; display: block; width: 48px; height: 3px; background: var(--wp--preset--color--accent); margin-bottom: 1rem; }
.tf-page__corps h2 { margin-top: var(--wp--preset--spacing--40); }
.tf-page__corps h3 { margin-top: var(--wp--preset--spacing--30); }
.tf-galerie { margin-top: var(--wp--preset--spacing--50) !important; }
.tf-galerie img { aspect-ratio: 4 / 3; object-fit: cover; }
.tf-colonnes-cartes > .wp-block-column { background: var(--wp--preset--color--base-2); padding: 1.6rem; border-top: 3px solid var(--wp--preset--color--accent); }
.tf-liste-coches { list-style: none; padding-left: 0; }
.tf-liste-coches li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.tf-liste-coches li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .35rem; border-left: 2px solid var(--wp--preset--color--accent-2); border-bottom: 2px solid var(--wp--preset--color--accent-2); transform: rotate(-45deg); }

/* Formulaire de contact (Fluent Forms) */
.tf-formulaire { background: var(--wp--preset--color--base-2); padding: clamp(1.25rem, 4vw, 2.25rem); border-top: 3px solid var(--wp--preset--color--accent); }
.tf-formulaire h2 { margin-top: 0 !important; }
.fluentform .ff-el-form-control { border-radius: 2px; border-color: #d8d3c8; }
.fluentform .ff-btn-submit { background: var(--wp--preset--color--accent-2) !important; color: #fff !important; border-radius: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; min-height: 44px; padding-inline: 1.75rem; }
.fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--contrast) !important; }

/* ---------- Pied de page ---------- */
.tf-footer a:not(.wp-element-button), .tf-footer-bas a { color: var(--wp--preset--color--base); }
.tf-footer h2 { color: var(--wp--preset--color--base); margin-top: 0; }
.tf-point { color: var(--wp--preset--color--accent-3); }
.tf-footer .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--base); border-color: #cfd8e0; }
.tf-footer .tf-footer__actions .wp-block-button__link:hover { background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; }
.tf-footer-bas p { margin: 0; color: #cfd8e0; }

/* Accessibilité : focus visible partout */
a:focus-visible, .wp-block-button__link:focus-visible, button:focus-visible { outline: 2px solid var(--wp--preset--color--accent-2); outline-offset: 3px; }
.has-contrast-background-color a:focus-visible, .tf-footer a:focus-visible { outline-color: var(--wp--preset--color--accent-3); }
@media (prefers-reduced-motion: reduce) { .tf-carte, .tf-carte__photo img { transition: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.tf-hero::after { display: none; }
	h2 { overflow-wrap: anywhere; }
}

/* Menu mobile ouvert : tout aligné à gauche, sous-menus en retrait */
.tf-header .is-menu-open .wp-block-navigation__responsive-container-content,
.tf-header .is-menu-open .wp-block-navigation__container,
.tf-header .is-menu-open .wp-block-navigation-item,
.tf-header .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; justify-content: flex-start !important; }
.tf-header .is-menu-open .wp-block-navigation__container { gap: .25rem !important; width: 100%; }
.tf-header .is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 .5rem 1rem !important; gap: 0 !important; }
.tf-header .is-menu-open .wp-block-navigation__submenu-container a { font-size: .95rem !important; font-weight: 500; letter-spacing: .04em; text-transform: none; padding-block: .45rem !important; }
.tf-header .is-menu-open .wp-block-navigation__submenu-container a:hover { background: none; }
.tf-header .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; }

/* Éditeur de page : les sections pleine largeur de l'accueil reprennent toute la largeur
   (le canevas limite sinon le contenu à la largeur de lecture). Sans effet sur le site. */
.is-root-container > :is(.alignfull, .tf-hero, .tf-bande, .tf-entreprise, .tf-caveau, .tf-activites, .tf-confiance) { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* =====================================================================
   ANIMATIONS — uniquement sous html.tf-anim (posée avant affichage, jamais si
   « réduire les animations »). Sans elle : tout visible et immobile. Le canevas de
   l'éditeur n'a pas cette classe : rien n'y est caché.
   Courbe d'entrée unique, sans dépassement : sobriété du métier.
   ===================================================================== */
:root { --tf-ease: cubic-bezier(.2, .7, .2, 1); }

/* ---------- Héro : entrée orchestrée ---------- */
.tf-hero { --mx: 0; --my: 0; }
.tf-hero > :not(.tf-hero__decor) { position: relative; z-index: 1; }
.tf-hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.tf-hero__decor svg { position: absolute; right: 4%; bottom: -6%; height: 118%; width: auto; stroke: var(--wp--preset--color--accent); opacity: .28; translate: calc(var(--mx) * -18px) calc(var(--my) * -12px); }
.tf-hero__cercle { position: absolute; right: -150px; top: -150px; width: 440px; height: 440px; border-radius: 50%; border: 1px dashed rgb(169 133 69 / .35); translate: calc(var(--mx) * 24px) calc(var(--my) * 16px); }
.tf-anim .tf-hero::after { display: none; }
@media (max-width: 781px) { .tf-hero__decor svg { right: -30%; opacity: .16; } }

@keyframes tf-monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tf-mot { from { transform: translateY(105%); } to { transform: none; } }
@keyframes tf-devoile { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tf-recul { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes tf-respire { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes tf-glisse { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes tf-trace { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes tf-tourne { to { transform: rotate(360deg); } }
@keyframes tf-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tf-reflet { to { transform: translateX(120%); } }
@keyframes tf-point { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tf-anim .tf-hero .tf-surtitre { animation: tf-monte .8s var(--tf-ease) .15s both; }
.tf-anim .tf-hero h1:not(.is-split) { opacity: 0; }
.tf-mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.tf-mot > span { display: inline-block; }
.tf-anim .tf-hero h1 .tf-mot > span { animation: tf-mot .95s var(--tf-ease) both; animation-delay: calc(.3s + var(--i) * 75ms); }
.tf-anim .tf-hero .tf-hero__sous { animation: tf-monte .9s var(--tf-ease) 1.05s both; }
.tf-anim .tf-hero .wp-block-buttons { animation: tf-monte .9s var(--tf-ease) 1.25s both; }
.tf-hero__visuel { translate: calc(var(--mx) * 10px) calc(var(--my) * 8px); }
.tf-hero .tf-cadre { overflow: hidden; }
.tf-anim .tf-hero .tf-cadre { animation: tf-devoile 1.4s cubic-bezier(.7, 0, .2, 1) .35s both; }
.tf-anim .tf-hero .tf-cadre img { animation: tf-recul 2.6s var(--tf-ease) .35s both, tf-respire 16s ease-in-out 3s infinite alternate; }
.tf-hero .tf-badge { translate: calc(var(--mx) * -16px) calc(var(--my) * -12px); }
.tf-anim .tf-hero .tf-badge { animation: tf-glisse 1s var(--tf-ease) 1.45s both; }
.tf-anim .tf-hero__decor .tf-trace { stroke-dasharray: 1400; animation: tf-trace 3.2s cubic-bezier(.6, 0, .2, 1) .2s both; }
.tf-anim .tf-hero__decor .tf-trace--2 { animation-delay: .7s; }
.tf-anim .tf-hero__decor .tf-trace--3 { animation-delay: .1s; animation-duration: 2s; }
.tf-anim .tf-hero__cercle { animation: tf-tourne 90s linear infinite; }
/* Reflet qui balaie le bouton principal une fois l'entrée terminée */
.tf-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { position: relative; overflow: hidden; }
.tf-anim .tf-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%); transform: translateX(-120%); animation: tf-reflet 1.4s ease 2.4s both; }

/* ---------- Apparitions au défilement (liste identique à REVELER / CASCADE du JS) ---------- */
.tf-anim :where(
	.tf-accueil .alignfull:not(.tf-hero) .tf-surtitre,
	.tf-accueil .alignfull:not(.tf-hero) h2,
	.tf-accueil .tf-intro,
	.tf-entreprise .wp-block-column:first-child p,
	.tf-caveau .wp-block-columns p,
	.tf-exigences__intro,
	.tf-recycle,
	.tf-caveau .wp-block-buttons,
	.tf-page__corps .wp-block-post-content > *,
	.tf-footer .wp-block-column,
	.tf-chiffres > *, .tf-exigences > *, .tf-grille > *, .tf-logos > *, .tf-refs > *, .tf-galerie > *
) {
	opacity: 0; transform: translateY(34px);
	transition: opacity .9s var(--tf-ease), transform .9s var(--tf-ease), box-shadow .3s ease;
	transition-delay: calc(var(--i, 0) * 110ms);
}
.tf-anim .tf-accueil .alignfull:not(.tf-hero) h2 { transition-delay: 80ms; }
.tf-anim .tf-entreprise .wp-block-column:first-child p + p { transition-delay: 120ms; }
.tf-anim .tf-logos > * { transform: translateY(20px) scale(.85); }
.tf-anim .tf-galerie > * { transform: translateY(30px) scale(.96); }
.tf-anim .tf-page__corps .wp-block-post-content > .is-in,
.tf-anim :is(.tf-chiffres, .tf-exigences, .tf-grille, .tf-logos, .tf-refs, .tf-galerie) > .is-in,
.tf-anim .is-in { opacity: 1; transform: none; }

/* Photo « Notre entreprise » : se découvre, puis son filet bronze vient se caler */
.tf-anim .tf-photo-decalee img { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1); }
.tf-anim .tf-photo-decalee::before { opacity: 0; translate: -18px -18px; transition: opacity .8s ease .9s, translate 1s var(--tf-ease) .9s; }
.tf-anim .tf-photo-decalee.is-in img { clip-path: inset(0 0 0 0); }
.tf-anim .tf-photo-decalee.is-in::before { opacity: 1; translate: 0 0; }

/* Bande de chiffres : le filet bronze pousse, les nombres comptent */
.tf-chiffre { position: relative; }
.tf-anim .tf-chiffre { border-left-color: transparent; }
.tf-anim .tf-chiffre::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--wp--preset--color--accent); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--tf-ease); transition-delay: calc(var(--i, 0) * 110ms + .25s); }
.tf-anim .tf-chiffre.is-in::before { transform: scaleY(1); }
.tf-num { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* Exigences : le liseré du haut se trace */
.tf-exigence { position: relative; }
.tf-anim .tf-exigence { border-top-color: #e6e2da; }
.tf-anim .tf-exigence::before { content: ""; position: absolute; left: -1px; right: -1px; top: -3px; height: 3px; background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--tf-ease); transition-delay: calc(var(--i, 0) * 110ms + .3s); }
.tf-anim .tf-exigence.is-in::before { transform: scaleX(1); }
.tf-exigence:hover { box-shadow: 0 18px 40px rgb(22 50 74 / .12); }

/* « 100 % recyclé » : soulignement bronze qui se trace */
.tf-recycle strong { background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) left 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.tf-anim .tf-recycle strong { background-size: 0 2px; transition: background-size 1.2s var(--tf-ease) .5s; }
.tf-anim .tf-recycle.is-in strong { background-size: 100% 2px; }
.tf-anim .tf-recycle.is-in strong + strong { transition-delay: .9s; }

/* Cartes : la photo se recentre à l'apparition, reflet qui suit le pointeur */
.tf-anim .tf-carte .tf-carte__photo img { transform: scale(1.18); transition: transform 1.6s var(--tf-ease); transition-delay: calc(var(--i, 0) * 110ms); }
.tf-anim .tf-carte.is-in .tf-carte__photo img { transform: scale(1); }
.tf-anim .tf-carte.is-in:hover .tf-carte__photo img { transform: scale(1.05); transition-delay: 0s; }
.tf-carte { position: relative; }
.tf-carte::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 50%), rgb(169 133 69 / .10), transparent 60%); }
.tf-carte:hover::after { opacity: 1; }
.tf-carte h3 { position: relative; border-bottom-color: #e6e2da !important; }
.tf-carte h3::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--wp--preset--color--accent); transform-origin: left; transition: transform .5s var(--tf-ease); }
.tf-anim .tf-carte h3::after { transform: scaleX(.35); }
.tf-carte:hover h3::after { transform: scaleX(1); }

/* Références : en couleur au survol */
.tf-logo-ref img { transition: filter .4s ease, opacity .4s ease, transform .4s var(--tf-ease); }
.tf-logo-ref:hover img { filter: none; opacity: 1; transform: translateY(-3px); }

/* Pages intérieures : titre et filet bronze ; galeries */
.tf-anim .tf-page__tete .wp-block-post-title { animation: tf-monte 1s var(--tf-ease) .15s both; }
.tf-anim .tf-page__tete .wp-block-post-title::before { transform-origin: left; animation: tf-trait 1s var(--tf-ease) .5s both; }
.tf-galerie .wp-block-image { overflow: hidden; }
.tf-galerie img { transition: transform .8s var(--tf-ease); }
.tf-galerie .wp-block-image:hover img { transform: scale(1.05); }

/* En-tête compact au défilement */
.tf-header { transition: padding .35s var(--tf-ease), box-shadow .35s ease; }
.tf-header .tf-brand img { transition: height .35s var(--tf-ease); }
.tf-header.is-compact { padding-top: .45rem !important; padding-bottom: .45rem !important; box-shadow: 0 10px 30px rgb(22 50 74 / .10); }
.tf-header.is-compact .tf-brand img { height: 42px; }
@media (max-width: 600px) { .tf-header.is-compact .tf-brand img { height: 36px; } }

/* Barre de progression de lecture */
.tf-progression { position: fixed; left: 0; top: 0; z-index: 100000; height: 3px; width: 100%; background: linear-gradient(90deg, var(--wp--preset--color--accent-2), var(--wp--preset--color--accent-3)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.admin-bar .tf-progression { top: 32px; }
@media (max-width: 782px) { .admin-bar .tf-progression { top: 46px; } }

/* Pied de page : le point de « Contact. » respire doucement */
.tf-anim .tf-point { animation: tf-point 3s ease-in-out infinite; }

/* Références (liste communiquée par le client le 23/11) */
.tf-refs { gap: 1rem; margin-top: var(--wp--preset--spacing--40); grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)) !important; }
.tf-ref { background: #fff; border: 1px solid #e6e2da; border-left: 3px solid var(--wp--preset--color--accent); padding: 1rem 1.2rem; transition: box-shadow .3s ease, transform .3s var(--tf-ease, ease); }
.tf-ref p { margin: 0; }
.tf-ref__nom { font-family: var(--wp--preset--font-family--serif); font-weight: 600; color: var(--wp--preset--color--contrast); line-height: 1.3; }
.tf-ref__pays { font-size: .72rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-2); margin-top: .3rem !important; }
.tf-ref:hover { box-shadow: 0 14px 34px rgb(22 50 74 / .10); }

/* Tableaux de caractéristiques (catalogues du client) */
.tf-tableau table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
.tf-tableau th { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); font-weight: 600; text-align: left; padding: .7rem .9rem; border: 0; }
.tf-tableau td { padding: .65rem .9rem; border: 0; border-bottom: 1px solid #e6e2da; }
.tf-tableau tbody tr:nth-child(even) td { background: var(--wp--preset--color--base-2); }
.tf-tableau td:first-child { font-weight: 600; color: var(--wp--preset--color--contrast); }
@media (max-width: 600px) { .tf-tableau { overflow-x: auto; } .tf-tableau table { min-width: 30rem; } }
.tf-etageres { border-top: 1px solid #e6e2da; margin-top: var(--wp--preset--spacing--50) !important; }

/* Label Origin'Ain (logo fourni par le client le 25/11) : pastille blanche, lisible sur fond bleu */
.tf-chiffre--label { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.tf-chiffre--label .tf-chiffre__logo { grid-row: span 2; margin: 0; }
.tf-chiffre__logo img { width: 52px; height: auto; background: #fff; border-radius: 50%; padding: 3px; display: block; }
.tf-footer__label { display: flex; align-items: center; gap: .8rem; font-size: .9rem; line-height: 1.4; margin-top: 1rem; }
.tf-footer__label img { width: 56px; height: auto; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.tf-footer__zone { font-size: .9rem; color: var(--wp--preset--color--accent-3); font-weight: 600; letter-spacing: .04em; }
