/* ═══════════════════════════════════════════════════════════════════════════
   TITAN 10 · bloc « Masterclass TITAN » de la page d'accueil (inc/accueil.php)

   Vit au milieu d'une page Divi : tout est sous #tt-accueil, le reset est en
   :where() (spécificité d'un ID seul) pour que les classes du bloc gagnent
   toujours, et que les règles Divi sur p / h2 ne passent pas.
   Mêmes couleurs que css/titan.css, sans le charger (il ne vise que #titan10-page).

   Typographie : public de 50 à 70 ans. Texte courant 21 px, rien sous 16 px,
   bouton 19 px.
═══════════════════════════════════════════════════════════════════════════ */

#tt-accueil {
	--tt-noir:     #060507;
	--tt-filet:    rgba(217, 164, 65, .28);
	--tt-or:       #d9a441;
	--tt-or-clair: #f3d48a;
	--tt-or-pale:  #fbecc4;
	--tt-feu:      #ff6a1f;
	--tt-texte:    #e9e3da;
	--tt-doux:     #bdb3a6;
	--tt-grad-or:  linear-gradient(135deg, #a8741f 0%, #f3d48a 38%, #d9a441 60%, #8a5a14 100%);
	--tt-display:  'Cinzel', 'Trajan Pro', Georgia, serif;
	--tt-sans:     'Montserrat', 'Helvetica Neue', Arial, sans-serif;

	position: relative; isolation: isolate; overflow: hidden;
	display: block;
	padding: clamp(44px, 4vw, 64px) 0 clamp(56px, 5vw, 80px);
	background: var(--tt-noir);
	color: var(--tt-texte);
	font-family: var(--tt-sans); font-size: 21px; line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
#tt-accueil :where(h2, p, ul, li, b, small) {
	margin: 0; padding: 0; color: inherit; font-family: inherit;
	line-height: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none;
}
#tt-accueil :where(ul) { list-style: none; }
#tt-accueil :where(img) { display: block; max-width: 100%; height: auto; }
#tt-accueil :where(strong) { font-weight: 700; color: #fff; }
#tt-accueil *, #tt-accueil *::before, #tt-accueil *::after { box-sizing: border-box; }

/* Le module Code Divi qui porte le bloc : aucune marge, aucun fond */
.et_pb_section:has(> .et_pb_fullwidth_code #tt-accueil),
.et_pb_section:has(#tt-accueil) { padding: 0 !important; background: var(--tt-noir, #060507); }
.et_pb_fullwidth_code:has(#tt-accueil) { padding: 0; margin: 0; }

/* ── Fond : braises, voile, étincelles ─────────────────────────────────── */
#tt-accueil .tt-acc__fond { position: absolute; inset: -10% 0; z-index: -3; }
#tt-accueil .tt-acc__fond img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: .55; }
#tt-accueil .tt-acc__voile {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 38% 55% at 24% 48%, rgba(255, 106, 31, .22), transparent 70%),
		linear-gradient(90deg, rgba(6,5,7,.35) 0%, rgba(6,5,7,.55) 40%, rgba(6,5,7,.88) 62%, rgba(6,5,7,.94) 100%),
		linear-gradient(180deg, #060507 0%, transparent 18%, transparent 80%, #060507 100%);
}
#tt-accueil .tt-acc__braises { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* ── Mise en page ──────────────────────────────────────────────────────── */
#tt-accueil .tt-acc__wrap {
	position: relative; z-index: 2;
	width: min(1180px, 92vw); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center;
}

/* ── Colonne gauche : blason en feu + compte à rebours ────────────────── */
#tt-accueil .tt-acc__visuel { display: flex; flex-direction: column; align-items: center; }
#tt-accueil .tt-acc__logo {
	width: clamp(150px, 13vw, 200px); margin: 54px auto 0;   /* marge haute : place des flammes */
	transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform;
}
#tt-accueil .tt-logo-feu { position: relative; display: block; width: 100%; isolation: isolate; }
#tt-accueil .tt-logo-feu__img {
	position: relative; z-index: 1; display: block; width: 100%; height: auto;
	filter: drop-shadow(0 0 22px rgba(255, 120, 30, .55)) drop-shadow(0 6px 18px rgba(0, 0, 0, .6));
}
html.tt-anim #tt-accueil .tt-logo-feu__img { animation: tt-acc-braise 2.6s ease-in-out infinite; }
@keyframes tt-acc-braise {
	0%, 100% { filter: drop-shadow(0 0 18px rgba(255, 120, 30, .5)) drop-shadow(0 6px 18px rgba(0,0,0,.6)) brightness(1); }
	30%      { filter: drop-shadow(0 0 30px rgba(255, 140, 40, .75)) drop-shadow(0 6px 18px rgba(0,0,0,.6)) brightness(1.08); }
	55%      { filter: drop-shadow(0 0 20px rgba(255, 100, 20, .55)) drop-shadow(0 6px 18px rgba(0,0,0,.6)) brightness(1.02); }
	80%      { filter: drop-shadow(0 0 34px rgba(255, 150, 50, .8)) drop-shadow(0 6px 18px rgba(0,0,0,.6)) brightness(1.1); }
}
#tt-accueil .tt-logo-feu__flammes { position: absolute; z-index: 2; pointer-events: none; left: -45%; width: 190%; top: -60%; height: 170%; }
#tt-accueil .tt-logo-feu__halo {
	position: absolute; z-index: 0; left: -40%; right: -40%; top: -30%; bottom: -10%; border-radius: 50%;
	background: radial-gradient(ellipse at 50% 55%, rgba(255, 110, 30, .38), rgba(255, 60, 10, .12) 45%, transparent 70%);
	filter: blur(6px);
}
html.tt-anim #tt-accueil .tt-logo-feu__halo { animation: tt-acc-pulse 3.2s ease-in-out infinite; }
@keyframes tt-acc-pulse { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }

@property --tt-acc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes tt-acc-tour { to { --tt-acc-angle: 360deg; } }

/* ── Texte ─────────────────────────────────────────────────────────────── */
#tt-accueil .tt-acc__overline {
	display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
	font-size: 16px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--tt-or);
}
#tt-accueil .tt-acc__overline span { color: var(--tt-or-clair); }
#tt-accueil .tt-acc__overline::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, var(--tt-or), transparent); }
#tt-accueil .tt-acc__titre {
	font-family: var(--tt-display); font-weight: 800; color: #fff;
	font-size: clamp(32px, 3.5vw, 50px); line-height: 1.12; letter-spacing: .01em;
	text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
#tt-accueil .tt-acc__or {
	background: var(--tt-grad-or); background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--tt-or);
}
html.tt-anim #tt-accueil .tt-acc__or { animation: tt-acc-lustre 7s ease-in-out infinite; }
@keyframes tt-acc-lustre { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
#tt-accueil .tt-acc__lead { margin-top: 18px; font-size: clamp(21px, 1.7vw, 24px); line-height: 1.6; color: var(--tt-texte); max-width: 640px; }

#tt-accueil .tt-acc__infos { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 22px; }
#tt-accueil .tt-acc__infos li {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 7px 18px; border-radius: 999px;
	border: 1px solid var(--tt-filet); background: rgba(13, 11, 14, .65);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: .03em; color: var(--tt-or-pale);
}
#tt-accueil .tt-acc__ico { color: var(--tt-feu); font-size: 12px; }

/* ── Compte à rebours : masqué tant que le JS ne l'a pas rempli ────────── */
#tt-accueil .tt-acc__rebours {
	display: none; width: 100%; max-width: 440px; margin-top: 30px; padding: 14px 16px 16px; border-radius: 18px;
	border: 2px solid transparent; text-align: center;
	background:
		linear-gradient(rgba(13, 11, 14, .92), rgba(13, 11, 14, .92)) padding-box,
		conic-gradient(from var(--tt-acc-angle), #8a5a14, #f3d48a, #ff6a1f, #8a5a14, #f3d48a, #8a5a14) border-box;
}
html.tt-anim #tt-accueil .tt-acc__rebours { animation: tt-acc-tour 6s linear infinite; }
#tt-accueil .tt-acc__rebours.is-pret { display: block; }
#tt-accueil .tt-acc__rebours-label { font-size: 16px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tt-doux); margin-bottom: 10px; }
#tt-accueil .tt-acc__cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#tt-accueil .tt-acc__case {
	position: relative; display: flex; flex-direction: column; align-items: center;
	padding: 10px 2px 8px; border-radius: 12px; overflow: hidden;
	background: linear-gradient(160deg, #151217, #0d0b0e);
	border: 1px solid var(--tt-filet);
	box-shadow: inset 0 1px 0 rgba(243, 212, 138, .12), 0 12px 30px -16px rgba(255, 106, 31, .5);
}
#tt-accueil .tt-acc__case::before {
	content: ""; position: absolute; left: 50%; top: 0; width: 44px; height: 3px; margin-left: -22px;
	background: var(--tt-grad-or); border-radius: 0 0 3px 3px;
}
#tt-accueil .tt-acc__case b {
	display: block; font-family: var(--tt-display); font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1.1;
	font-variant-numeric: tabular-nums; color: var(--tt-or-clair);
}
#tt-accueil .tt-acc__case b.is-bat { animation: tt-acc-bat .35s cubic-bezier(.2,.7,.2,1); }
@keyframes tt-acc-bat { 0% { transform: translateY(-16%); opacity: .45; } 100% { transform: none; opacity: 1; } }
#tt-accueil .tt-acc__case small { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--tt-doux); }

/* ── Appel à l'action ──────────────────────────────────────────────────── */
#tt-accueil .tt-acc__actions { margin-top: 28px; }
#tt-accueil .tt-acc__btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; gap: 16px;
	padding: 20px 40px; border-radius: 999px;
	font-family: var(--tt-sans); font-size: 19px; font-weight: 800; line-height: 1.2;
	letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	color: #1a1006; background: var(--tt-grad-or); background-size: 160% 100%;
	box-shadow: 0 0 0 1px rgba(243, 212, 138, .5), 0 14px 40px -12px rgba(255, 106, 31, .6);
	transition: transform .3s ease, box-shadow .3s ease, background-position .5s ease;
}
#tt-accueil .tt-acc__btn:hover, #tt-accueil .tt-acc__btn:focus-visible {
	transform: translateY(-2px); background-position: 100% 0; color: #1a1006;
	box-shadow: 0 0 0 1px rgba(243, 212, 138, .8), 0 20px 50px -10px rgba(255, 106, 31, .8);
}
#tt-accueil .tt-acc__btn:focus-visible { outline: 3px solid var(--tt-or-pale); outline-offset: 4px; }
#tt-accueil .tt-acc__fleche { font-size: 22px; transition: transform .3s ease; }
#tt-accueil .tt-acc__btn:hover .tt-acc__fleche { transform: translateX(5px); }
html.tt-anim #tt-accueil .tt-acc__btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg); animation: tt-acc-reflet 4.5s ease-in-out infinite;
}
@keyframes tt-acc-reflet { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
#tt-accueil .tt-acc__note { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--tt-doux); max-width: 520px; }

/* ── Apparitions au scroll (js/titan.js §1) ────────────────────────────── */
#tt-accueil .tt-reveal { opacity: 0; transition: opacity .9s ease-out, transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--tt-delai, 0s); }
html.tt-anim #tt-accueil .tt-reveal { transform: translateY(32px); }
#tt-accueil .tt-reveal.is-vu { opacity: 1; transform: none; }
html:not(.tt-anim):not(.tt-doux) #tt-accueil .tt-reveal { opacity: 1; }
html.tt-doux #tt-accueil [data-tt-parallax] img { transform: none !important; }

/* ── Tablette et téléphone : une colonne, centrée ──────────────────────── */
@media (max-width: 900px) {
	/* Une colonne : blason, texte, compte à rebours, bouton (les deux colonnes s'ouvrent) */
	#tt-accueil .tt-acc__wrap { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
	#tt-accueil .tt-acc__visuel, #tt-accueil .tt-acc__texte { display: contents; }
	#tt-accueil .tt-acc__logo-cadre { order: 1; }
	#tt-accueil .tt-acc__overline { order: 2; margin-top: 26px; justify-content: center; }
	#tt-accueil .tt-acc__titre { order: 3; }
	#tt-accueil .tt-acc__lead { order: 4; }
	#tt-accueil .tt-acc__infos { order: 5; justify-content: center; }
	#tt-accueil .tt-acc__rebours { order: 6; margin-top: 26px; }
	#tt-accueil .tt-acc__actions { order: 7; margin-top: 26px; }
	#tt-accueil .tt-acc__logo { width: clamp(130px, 34vw, 170px); margin-top: 46px; }
	#tt-accueil .tt-acc__overline::before { content: ""; width: 70px; height: 1px; background: linear-gradient(270deg, var(--tt-or), transparent); }
	#tt-accueil .tt-acc__lead, #tt-accueil .tt-acc__note { margin-left: auto; margin-right: auto; }
	#tt-accueil .tt-acc__voile {
		background:
			radial-gradient(ellipse 70% 30% at 50% 14%, rgba(255, 106, 31, .22), transparent 70%),
			linear-gradient(180deg, #060507 0%, rgba(6,5,7,.45) 12%, rgba(6,5,7,.8) 36%, rgba(6,5,7,.92) 100%);
	}
}
@media (max-width: 560px) {
	#tt-accueil { font-size: 19px; }
	#tt-accueil .tt-acc__lead { font-size: 20px; }
	#tt-accueil .tt-acc__overline { letter-spacing: .18em; gap: 12px; }
	#tt-accueil .tt-acc__overline::before, #tt-accueil .tt-acc__overline::after { width: 28px; }
	#tt-accueil .tt-acc__cases { gap: 5px; }
	#tt-accueil .tt-acc__rebours { padding: 12px 6px; }
	#tt-accueil .tt-acc__rebours-label { letter-spacing: .12em; }
	#tt-accueil .tt-acc__case { padding: 10px 0 8px; }
	#tt-accueil .tt-acc__case small { letter-spacing: -.01em; }
	#tt-accueil .tt-acc__case b { font-size: 28px; }
	#tt-accueil .tt-acc__overline span { display: none; }
	#tt-accueil .tt-acc__btn { padding: 20px 26px; font-size: 19px; letter-spacing: .06em; white-space: normal; justify-content: center; }
}
