/* =================================================================
   PAGE D'ACCUEIL — chargée uniquement sur l'accueil.
   Écrite d'abord pour le téléphone, puis élargie pour l'ordinateur
   (les blocs « @media (min-width: …) »).
   ================================================================= */

.tdc-accueil {
	--tdc-section-y: 64px;
}

/* Pas d'espace entre l'en-tête et la bannière */
.wp-site-blocks > main.tdc-accueil,
.tdc-accueil {
	margin-top: 0 !important;
	padding: 0 !important;
}

.tdc-accueil > section {
	margin: 0;
}

.tdc-accueil *,
.tdc-accueil *::before,
.tdc-accueil *::after {
	box-sizing: border-box;
}

/* -------- Éléments communs -------- */

.tdc-surtitre {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--or);
	margin: 0 0 12px;
}

.tdc-etoile {
	width: 22px;
	height: 22px;
	color: var(--wp--preset--color--or);
	display: block;
	margin: 0 auto 14px;
}

.tdc-section {
	padding: var(--tdc-section-y) 16px;
}

.tdc-entete-section {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 36px;
}

.tdc-entete-section h2 {
	margin: 0 0 8px;
}

.tdc-entete-section p {
	margin: 0;
	opacity: 0.85;
}

.tdc-boutons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

/* Bouton or (sur fond sombre) */
.wp-element-button.tdc-bouton-or {
	background: var(--wp--preset--color--or);
	color: var(--wp--preset--color--prune);
	border-color: #E8CF94;
	box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.6);
	animation: tdc-appel 3s ease-in-out infinite;
}

.wp-element-button.tdc-bouton-or:hover {
	background: #E0C07A;
	color: var(--wp--preset--color--prune);
}

/* Bouton transparent (sur fond sombre) */
.wp-element-button.tdc-bouton-fantome {
	background: transparent;
	color: var(--wp--preset--color--creme);
	border-color: rgba(244, 237, 228, 0.6);
}

.wp-element-button.tdc-bouton-fantome:hover {
	background: rgba(244, 237, 228, 0.12);
	color: var(--wp--preset--color--creme);
}

@keyframes tdc-appel {
	0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0); }
	35%           { box-shadow: 0 0 22px 4px rgba(201, 164, 92, 0.45); }
}

.tdc-lien-or {
	font-weight: 600;
	color: var(--wp--preset--color--prune);
	text-decoration-color: var(--wp--preset--color--or);
}

.tdc-petit {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.8;
}

/* Texte provisoire bien visible pour ne pas l'oublier */
.tdc-a-completer {
	border: 1px dashed #C0392B;
	background: #FFF3EE;
	color: #8C1A32;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.9rem;
}

/* -------- 1. Bannière -------- */

.tdc-hero {
	position: relative;
	min-height: 86svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 20px 88px;
	text-align: center;
	color: var(--wp--preset--color--creme);
	background:
		radial-gradient(ellipse at 50% 35%, rgba(201, 164, 92, 0.22), transparent 55%),
		radial-gradient(ellipse at 15% 90%, rgba(107, 63, 160, 0.55), transparent 50%),
		linear-gradient(165deg, #2B1240 0%, #4B1B45 55%, #3A1D63 100%);
}

.tdc-hero__contenu {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
}

.tdc-hero__logo {
	width: 110px;
	height: auto;
	margin: 0 auto 18px;
	display: block;
	filter: drop-shadow(0 0 18px rgba(201, 164, 92, 0.5));
	animation: tdc-respire 5s ease-in-out infinite;
}

@keyframes tdc-respire {
	0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(201, 164, 92, 0.35)); }
	50%      { transform: translateY(-6px); filter: drop-shadow(0 0 26px rgba(201, 164, 92, 0.7)); }
}

.tdc-hero__titre {
	color: var(--wp--preset--color--creme) !important;
	font-size: clamp(2.3rem, 9vw, 4.4rem);
	line-height: 1.08;
	margin: 0;
}

.tdc-hero__titre em {
	color: var(--wp--preset--color--or);
	font-style: italic;
	background: linear-gradient(100deg, #C9A45C 20%, #F6E3A8 50%, #C9A45C 80%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: tdc-or-liquide 6s linear infinite;
}

@keyframes tdc-or-liquide {
	from { background-position: 200% 0; }
	to   { background-position: 0 0; }
}

.tdc-hero__texte {
	font-size: 1.125rem;
	max-width: 520px;
	margin: 18px auto 0;
	opacity: 0.9;
}

/* Petite flèche animée qui invite à descendre */
.tdc-hero__defiler {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 2;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1.5px solid rgba(244, 237, 228, 0.6);
	border-radius: 14px;
}

.tdc-hero__defiler span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--wp--preset--color--or);
	animation: tdc-descend 1.8s ease-in-out infinite;
}

@keyframes tdc-descend {
	0%   { transform: translateY(0); opacity: 1; }
	80%  { transform: translateY(16px); opacity: 0; }
	100% { opacity: 0; }
}

/* -------- 2. Les univers -------- */

.tdc-univers {
	display: grid;
	gap: 20px;
	max-width: 1100px;
	margin: 0 auto;
}

.tdc-univers__carte {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	min-height: 340px;
	padding: 28px 24px;
	border-radius: 18px;
	border: 1px solid rgba(201, 164, 92, 0.5);
	color: var(--wp--preset--color--creme) !important;
	text-decoration: none !important;
	box-shadow: 0 24px 40px -24px rgba(20, 16, 20, 0.7);
}

.tdc-univers__carte--dark {
	background:
		radial-gradient(circle at 80% 20%, rgba(140, 26, 50, 0.65), transparent 55%),
		linear-gradient(160deg, #141014 0%, #2A0F18 55%, #5C1A2B 100%);
}

.tdc-univers__carte--romantasy {
	background:
		radial-gradient(circle at 80% 20%, rgba(180, 139, 224, 0.5), transparent 55%),
		linear-gradient(160deg, #2B1240 0%, #4B1B45 50%, #6B3FA0 100%);
}

.tdc-univers__carte > span {
	position: relative;
	z-index: 2;
}

.tdc-univers__surtitre {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--or);
}

.tdc-univers__titre {
	font-family: var(--wp--preset--font-family--titre);
	font-size: 2.3rem;
	line-height: 1.1;
}

.tdc-univers__texte {
	opacity: 0.88;
	max-width: 420px;
}

.tdc-univers__lien {
	margin-top: 10px;
	font-weight: 600;
	color: var(--wp--preset--color--or);
}

.tdc-univers__lien span {
	display: inline-block;
	transition: transform 0.3s ease;
}

.tdc-univers__carte:hover .tdc-univers__lien span {
	transform: translateX(6px);
}

/* -------- 3. La Box -------- */

.tdc-section--box {
	background: var(--wp--preset--color--parchemin);
	border-block: 1px solid rgba(201, 164, 92, 0.35);
}

.tdc-box-bloc {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	gap: 32px;
	align-items: center;
}

.tdc-box-bloc__visuel {
	display: flex;
	justify-content: center;
}

.tdc-coffret {
	width: min(100%, 340px);
	height: auto;
	overflow: visible;
}

.tdc-coffret__lueur {
	transform-origin: 160px 120px;
	animation: tdc-lueur 3.5s ease-in-out infinite;
}

.tdc-coffret__rayons {
	transform-origin: 160px 150px;
	animation: tdc-rayons 6s ease-in-out infinite;
}

.tdc-coffret__etincelles path {
	transform-box: fill-box;
	transform-origin: center;
	animation: tdc-scintille-etoile 2.4s ease-in-out infinite;
}

.tdc-coffret__etincelles path:nth-child(2) { animation-delay: 0.6s; }
.tdc-coffret__etincelles path:nth-child(3) { animation-delay: 1.2s; }
.tdc-coffret__etincelles path:nth-child(4) { animation-delay: 1.8s; }

.tdc-coffret__couvercle {
	transform-origin: 64px 150px;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
	.tdc-box-bloc:hover .tdc-coffret__couvercle {
		transform: rotate(-6deg) translateY(-6px);
	}
}

@keyframes tdc-lueur {
	0%, 100% { opacity: 0.7; transform: scale(0.95); }
	50%      { opacity: 1;   transform: scale(1.05); }
}

@keyframes tdc-rayons {
	0%, 100% { opacity: 0.5; transform: scaleY(0.92); }
	50%      { opacity: 0.95; transform: scaleY(1.04); }
}

@keyframes tdc-scintille-etoile {
	0%, 100% { opacity: 0.2; transform: scale(0.6); }
	50%      { opacity: 1;   transform: scale(1.15); }
}

.tdc-box-bloc__texte h2 {
	margin: 0 0 12px;
}

.tdc-liste-etoiles {
	list-style: none;
	padding: 0;
	margin: 18px 0;
	display: grid;
	gap: 8px;
}

.tdc-liste-etoiles li {
	padding-left: 26px;
	position: relative;
}

.tdc-liste-etoiles li::before {
	content: "✦";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--or);
}

.tdc-prix {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 20px 0 6px;
}

.tdc-prix__montant {
	font-family: var(--wp--preset--font-family--titre);
	font-size: 2.6rem;
	font-weight: 600;
	color: var(--wp--preset--color--prune);
	line-height: 1;
}

.tdc-prix__detail {
	font-size: 0.95rem;
}

.tdc-prix__detail strong {
	color: var(--wp--preset--color--violet);
}

/* -------- 4. Les trésors à l'unité -------- */

.tdc-tresors {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 1150px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tdc-tresor {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 16px;
	border-radius: 14px;
	background: var(--wp--preset--color--parchemin);
	border: 1px solid rgba(201, 164, 92, 0.5);
	color: var(--wp--preset--color--encre) !important;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -18px rgba(75, 27, 69, 0.5);
}

.tdc-tresor__icone .tdc-etoile {
	margin: 0 0 6px;
	width: 18px;
	height: 18px;
}

.tdc-tresor__nom {
	font-family: var(--wp--preset--font-family--titre);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--wp--preset--color--prune);
	line-height: 1.15;
}

.tdc-tresor__texte {
	font-size: 0.9rem;
	opacity: 0.85;
	flex-grow: 1;
}

.tdc-tresor__prix {
	font-weight: 700;
	color: var(--wp--preset--color--violet);
}

/* La 5e carte prend toute la largeur sur téléphone */
.tdc-tresors li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* -------- 5. Notre histoire -------- */

.tdc-histoire {
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
}

.tdc-histoire .tdc-ornement {
	margin-bottom: 28px;
}

/* -------- 6. Suivre les coulisses -------- */

.tdc-section--reseaux {
	text-align: center;
	color: var(--wp--preset--color--creme);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(201, 164, 92, 0.2), transparent 60%),
		linear-gradient(165deg, #3A1D63 0%, #4B1B45 100%);
}

.tdc-reseaux-bloc {
	position: relative;
	z-index: 2;
	max-width: 640px;
	margin: 0 auto;
}

.tdc-section--reseaux h2 {
	color: var(--wp--preset--color--creme) !important;
	margin: 0 0 10px;
}

/* -------- Écrans plus larges -------- */

@media (min-width: 782px) {
	.tdc-accueil {
		--tdc-section-y: 96px;
	}

	.tdc-univers {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}

	.tdc-univers__carte {
		min-height: 420px;
		padding: 40px 36px;
	}

	.tdc-univers__titre {
		font-size: 2.9rem;
	}

	.tdc-box-bloc {
		grid-template-columns: 1fr 1.1fr;
		gap: 56px;
	}

	.tdc-coffret {
		width: min(100%, 420px);
	}

	.tdc-tresors {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 18px;
	}

	.tdc-tresors li:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

/* Accessibilité : animations coupées si demandé */
@media (prefers-reduced-motion: reduce) {
	.tdc-hero__titre em {
		-webkit-text-fill-color: var(--wp--preset--color--or);
		background: none;
	}
}
