/* TAKE-TECH Nova 2.3.0 — affiche animée de la page d'un projet (template-parts/affiche-projet.php, assets/js/affiche.js).
   Verre dépoli sur fond clair animé ; la couleur d'accent du projet (--af-accent) teinte le fond, les bulles et les détails. */

.tt-af { --af-accent: #f5b301; --af-verre: rgba(255, 255, 255, .64); --af-bord: rgba(255, 255, 255, .88); --af-texte-2: #4a556d; --af-ombre: 0 18px 50px -18px rgba(14, 30, 61, .28), 0 2px 6px rgba(14, 30, 61, .06); position: relative; isolation: isolate; color: var(--color-text); }
.tt-af__fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 40% at 18% 8%, color-mix(in srgb, var(--af-accent) 16%, transparent), transparent 70%), radial-gradient(50% 40% at 90% 40%, rgba(118, 144, 196, .14), transparent 70%); }
.tt-af__fond canvas { position: sticky; top: 0; display: block; width: 100%; height: 100vh; opacity: 0; transition: opacity 1.2s ease; }
.tt-af__fond.is-pret canvas { opacity: 1; }

/* En-tête : texte et scène */
.tt-af__tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 5vw, 72px); padding-bottom: 36px; }
.tt-af__texte .tt-fil { margin-bottom: 0; }
.tt-af__surtitre { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-2-600); }
.tt-af__surtitre::before { content: ""; width: 28px; height: 2px; background: var(--af-accent); }
.tt-af__surtitre:empty { display: none; }
.tt-af__titre { font-weight: 800; font-size: clamp(38px, 5.2vw, 78px); line-height: .98; letter-spacing: -.035em; margin: 0 0 22px; background: linear-gradient(100deg, var(--color-text) 35%, color-mix(in srgb, var(--af-accent) 80%, var(--color-accent-2-600)) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.tt-af__chapeau { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: var(--af-texte-2); margin: 0 0 30px; max-width: 34em; }
.tt-af__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.tt-af__btn { display: inline-flex; align-items: center; gap: 10px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; padding: 15px 22px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tt-af__btn svg { width: 18px; height: 18px; flex: none; }
.tt-af__btn--or { background: var(--color-accent); color: var(--color-text); box-shadow: 0 12px 30px -10px rgba(217, 154, 0, .65); }
.tt-af__btn--or:hover { color: var(--color-text); transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(217, 154, 0, .8); }
.tt-af__btn--verre { background: var(--af-verre); border-color: rgba(14, 30, 61, .14); color: var(--color-text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tt-af__btn--verre:hover { color: var(--color-text); transform: translateY(-2px); border-color: var(--color-accent-2-600); }
.tt-af__btn:focus-visible { outline: 3px solid var(--color-accent-2-500); outline-offset: 3px; }
.tt-af__lien { font-weight: 600; color: var(--color-accent-2-600); text-decoration: none; border-bottom: 2px solid var(--af-accent); padding-bottom: 2px; }
.tt-af__domaine { margin: 18px 0 0; font-size: 13px; color: var(--af-texte-2); display: flex; align-items: center; gap: 8px; }
.tt-af__domaine b { color: var(--color-text); font-weight: 600; }
.tt-af__pouls { width: 8px; height: 8px; border-radius: 50%; background: #14a372; animation: tt-af-pouls 2s infinite; }
@keyframes tt-af-pouls { 0% { box-shadow: 0 0 0 0 rgba(20, 163, 114, .5); } 70% { box-shadow: 0 0 0 9px rgba(20, 163, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 163, 114, 0); } }

.tt-af__scene { position: relative; height: clamp(460px, 44vw, 660px); }
.tt-af__scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.tt-af__repli { position: absolute; left: 6%; top: 12%; width: 88%; height: 72%; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(14, 30, 61, .5); transition: opacity .8s ease; }
.tt-af__scene.is-pret .tt-af__repli { opacity: 0; pointer-events: none; }
.tt-af__bulle { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; max-width: 230px; padding: 10px 14px 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .76); border: 1px solid var(--af-bord); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--af-ombre); font-size: 13px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; opacity: 0; transition: opacity .6s; will-change: transform; }
.tt-af__bulle.is-vue { opacity: 1; }
.tt-af__bulle i, .tt-af__bulles-liste i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--af-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-accent) 22%, transparent); }
.tt-af__bulle b, .tt-af__bulles-liste b { display: block; font-weight: 600; }

/* Verre */
.tt-af__verre { background: var(--af-verre); border: 1px solid var(--af-bord); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-radius: 20px; box-shadow: var(--af-ombre); }
.tt-af__bulles-liste { display: none; list-style: none; padding: 0; margin: 0 0 14px; gap: 10px; }
.tt-af__bulles-liste li { padding: 14px 16px; display: flex; gap: 12px; font-size: 14.5px; line-height: 1.45; }
.tt-af__bulles-liste i { margin-top: 7px; }

/* Fiche */
.tt-af__fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 10px 0 0; }
.tt-af__fiche > div { padding: 20px 22px; }
.tt-af__fiche dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--af-texte-2); margin-bottom: 6px; }
.tt-af__fiche dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.tt-af__fiche a { color: var(--color-accent-2-600); }

/* Sections */
.tt-af__bloc { padding-top: clamp(64px, 8vw, 120px); }
.tt-af__titre-bloc { display: flex; align-items: end; justify-content: space-between; gap: 18px 24px; margin-bottom: 34px; flex-wrap: wrap; }
.tt-af__titre-bloc h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.03em; line-height: 1.05; margin: 0; max-width: 16em; }
.tt-af__titre-bloc p { margin: 0; color: var(--af-texte-2); max-width: 30em; }
.tt-af__recit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tt-af__recit article { padding: 30px 28px 32px; position: relative; overflow: hidden; }
.tt-af__recit article::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--af-accent), transparent); }
.tt-af__num { font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--color-accent-2-600) 40%, transparent); display: block; margin-bottom: 18px; }
.tt-af__recit h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.01em; }
.tt-af__recit p { margin: 0; color: var(--af-texte-2); line-height: 1.65; }
.tt-af__fonctions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tt-af__fonctions li { padding: 24px 24px 26px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start; }
.tt-af__ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #fff, color-mix(in srgb, var(--af-accent) 24%, #fff)); border: 1px solid rgba(14, 30, 61, .08); font-weight: 800; color: var(--color-accent-2-600); }
.tt-af__fonctions h3 { margin: 2px 0; font-size: 17px; }
.tt-af__fonctions p { margin: 0; color: var(--af-texte-2); font-size: 15px; line-height: 1.55; }

/* Le site en direct */
.tt-af__direct { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; align-items: end; }
.tt-af__direct--seul { grid-template-columns: minmax(0, 1fr); }
.tt-af__navigateur { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(14, 30, 61, .45); border: 1px solid rgba(14, 30, 61, .08); }
.tt-af__barre { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #eef1f6; border-bottom: 1px solid rgba(14, 30, 61, .07); }
.tt-af__barre i { width: 11px; height: 11px; border-radius: 50%; background: #d2d7e1; }
.tt-af__barre span { margin-left: 14px; flex: 1; max-width: 420px; font-size: 12.5px; color: var(--af-texte-2); background: #fff; border-radius: 8px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-af__fenetre { position: relative; overflow: hidden; height: clamp(320px, 34vw, 500px); }
.tt-af__fenetre img { width: 100%; height: auto; display: block; animation: tt-af-defile var(--duree, 26s) ease-in-out infinite alternate; }
@keyframes tt-af-defile { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--course, 0)); } }
.tt-af__telephone { border-radius: 38px; padding: 10px; background: var(--color-text); box-shadow: 0 40px 70px -30px rgba(14, 30, 61, .55); }
.tt-af__telephone .tt-af__fenetre { height: 470px; border-radius: 28px; }
.tt-af__legende { margin: 18px 0 0; }

/* Appel final */
.tt-af--appel { padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 70px); }
.tt-af__appel { padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 30px; align-items: center; background: linear-gradient(120deg, rgba(255, 255, 255, .9), color-mix(in srgb, var(--af-accent) 12%, rgba(255, 255, 255, .8))); }
.tt-af__appel h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.tt-af__appel p { margin: 0; color: var(--af-texte-2); max-width: 36em; }

/* Apparitions (seulement quand affiche.js tourne : il pose .is-js) */
.tt-af.is-js .tt-af__monte { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.tt-af.is-js .tt-af__monte.is-vue { opacity: 1; transform: none; }

@media (max-width: 980px) {
	.tt-af__tete { grid-template-columns: 1fr; }
	.tt-af__direct { grid-template-columns: 1fr; }
	.tt-af__telephone { width: 250px; margin: 0 auto; }
	.tt-af__appel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.tt-af__scene { height: 380px; }
	.tt-af__bulle { display: none; }
	.tt-af__bulles-liste { display: grid; }
	.tt-af__fiche { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tt-af__fiche > div { padding: 16px; }
	.tt-af__fiche dd { font-size: 14.5px; }
	.tt-af__fonctions { grid-template-columns: 1fr; }
	.tt-af__actions .tt-af__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.tt-af.is-js .tt-af__monte { opacity: 1; transform: none; transition: none; }
	.tt-af__fenetre img, .tt-af__pouls { animation: none; }
}
