/* Fiche jeu — TLO Core. Reprise de la maquette fiche-tarot-arthurien.html.
   Les sélecteurs sont préfixés .tlo-page et renforcés pour ne pas subir
   les styles globaux d'Elementor (titres, boutons, liens). */

.tlo-page {
	--violet:       #313152;
	--violet-light: #EAEAF2;
	--violet-mid:   #9393B0;
	--violet-dark:  #1E1E34;
	--accent:       #EB866F;
	--accent-light: #FDF0ED;
	--accent-dark:  #C9613F;
	--cream:        #F2EADB;
	--cream-dark:   #E8DDD0;
	--warm-gray:    #8A7D70;
	--text-dark:    #1E1E34;
	--text-mid:     #5E5878;
	--white:        #ffffff;
	--border:       rgba(49,49,82,0.10);
	--border-cream: rgba(49,49,82,0.07);
	--radius:       14px;
	--radius-sm:    8px;
	--fond:  #F9F7F3;
	--beige: #F2EADB;
	/* Polices globales du kit Elementor (titres = principale, texte = texte) */
	--serif: var(--e-global-typography-primary-font-family, inherit), serif;
	--sans:  var(--e-global-typography-text-font-family, inherit), sans-serif;

	background: var(--fond);
	color: var(--text-dark);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.6;
}
.tlo-page *, .tlo-page *::before, .tlo-page *::after { box-sizing: border-box; }
.tlo-page p { margin: 0; }
.tlo-page a:focus-visible, .tlo-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Neutralisation des styles de titres du thème */
.tlo-page h1, .tlo-page h2, .tlo-page h3 {
	font-family: var(--serif) !important;
	text-transform: none !important;
	letter-spacing: normal;
	color: var(--text-dark) !important;
	margin: 0;
}

/* ─── Fil d'Ariane ─── */
.tlo-page .tlo-ariane { border-bottom: 1px solid var(--border-cream); }
.tlo-page .tlo-ariane-inner {
	max-width: 1180px; margin: 0 auto; padding: 10px 2rem;
	display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
	font-size: 12px; color: var(--warm-gray);
}
.tlo-page .tlo-ariane-inner a { color: var(--warm-gray); text-decoration: none; }
.tlo-page .tlo-ariane-inner a:hover { color: var(--violet); }
.tlo-page .tlo-ariane-inner a.tlo-ariane-type { color: var(--text-dark); font-weight: 600; }
.tlo-page .tlo-ariane-courant { color: var(--text-mid); }

/* ─── Mise en page ─── */
.tlo-page .tlo-fiche {
	max-width: 1180px; margin: 0 auto;
	padding: 0 2rem 5rem;
	display: grid; grid-template-columns: 400px minmax(0, 1fr);
	gap: 4rem;
	align-items: start;
}

/* ─── Colonne gauche : carrousel ─── */
.tlo-page .tlo-col-gauche { position: sticky; top: 100px; padding-top: 2.5rem; }
.tlo-page .tlo-carrousel { position: relative; }
.tlo-page .tlo-img-main { display: flex; align-items: center; justify-content: center; }
.tlo-page .tlo-img-main img { width: 100%; height: auto; display: block; }
.tlo-page button.tlo-fleche {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 32px; height: 44px; padding: 0 !important; margin: 0;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	color: var(--accent) !important; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tlo-page button.tlo-fleche svg { width: 22px; height: 22px; }
.tlo-page button.tlo-fleche:hover { color: var(--accent-dark) !important; }
.tlo-page .tlo-fleche-prec { left: -30px; }
.tlo-page .tlo-fleche-suiv { right: -30px; }

/* ─── Colonne droite ─── */
.tlo-page .tlo-col-droite { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-top: 2.5rem; }
.tlo-page .tlo-card {
	background: var(--white); border: 1px solid var(--border);
	border-radius: 10px; padding: 2rem 2.1rem;
}

/* En-tête produit */
.tlo-page .tlo-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1.1rem; }
.tlo-page .tlo-badge {
	font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 20px; line-height: 1.4; text-decoration: none;
}
.tlo-page .tlo-badge-type  { background: var(--violet-light); color: var(--violet); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.tlo-page a.tlo-badge-terme { background: var(--beige); color: var(--text-dark) !important; border: 1px solid #E6D3BD; }
.tlo-page a.tlo-badge-terme:hover { border-color: var(--accent); }

.tlo-page h1.tlo-titre {
	font-size: 44px !important; font-weight: 400 !important; line-height: 1.1 !important;
	margin-bottom: 14px;
}
.tlo-page .tlo-sous-titre { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; }
.tlo-page .tlo-sous-titre > span + span { border-left: 1px solid var(--border); margin-left: 12px; padding-left: 12px; }
.tlo-page .tlo-sous-titre a { color: var(--text-dark) !important; text-decoration: none; }
.tlo-page .tlo-sous-titre a:hover { text-decoration: underline; }

.tlo-page .tlo-rating {
	display: flex; align-items: baseline; gap: 6px; padding: 18px 8px 0;
	border-top: 1px solid var(--border-cream);
}
.tlo-page .tlo-stars { position: relative; display: inline-block; font-size: 17px; letter-spacing: 1px; line-height: 1; margin-right: 4px; }
.tlo-page .tlo-stars-fond { color: #E5DCD2; }
.tlo-page .tlo-stars-plein { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.tlo-page .tlo-rating-val { font-size: 14px; color: var(--text-mid); }
.tlo-page .tlo-rating-detail { font-size: 13px; color: var(--text-mid); }
.tlo-page .tlo-rating-count { font-size: 13px; color: var(--text-mid); margin-left: auto; }

.tlo-page .tlo-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tlo-page .tlo-tag {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; padding: 5px 12px; border-radius: 20px;
	background: var(--cream); border: 1px solid var(--border-cream);
	color: var(--text-mid) !important; text-decoration: none; transition: all .15s;
}
.tlo-page a.tlo-tag:hover { background: var(--violet-light); border-color: var(--violet-mid); color: var(--violet) !important; }

/* Achat */
.tlo-page .tlo-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 0 8px 1.5rem; }
.tlo-page .tlo-price-main { font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--text-dark); line-height: 1.2; }
.tlo-page .tlo-price-note { font-size: 11px; color: var(--text-mid); }
.tlo-page .tlo-shop-list { display: flex; flex-direction: column; gap: 16px; }
.tlo-page a.tlo-shop-btn {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 64px; padding: 14px 24px 14px 20px; border-radius: 6px;
	background: var(--beige); border: 1px solid #E3D2BD; color: var(--text-dark) !important;
	text-decoration: none; transition: border-color .18s, background-color .18s;
}
.tlo-page a.tlo-shop-btn:hover { border-color: var(--accent); background: #EFE3CF; }
.tlo-page .tlo-shop-left { display: flex; align-items: center; gap: 22px; }
.tlo-page .tlo-shop-left > span:last-child { display: flex; flex-direction: column; }
.tlo-page img.tlo-shop-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; margin-left: 10px; }
.tlo-page .tlo-shop-name { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.tlo-page .tlo-shop-sub { font-size: 12px; color: var(--text-mid); margin-top: 1px; }
.tlo-page .tlo-shop-arrow { font-size: 17px; font-weight: 600; transition: transform .2s; }
.tlo-page a.tlo-shop-btn:hover .tlo-shop-arrow { transform: translateX(4px); }

.tlo-page .tlo-affil-note { font-size: 12px; color: var(--text-dark); text-align: center; margin-top: 22px; line-height: 1.5; }

/* Titres de section */
.tlo-page h2.tlo-section-title {
	font-size: 19px !important; font-weight: 400 !important; line-height: 1.3 !important; letter-spacing: .06em !important;
	display: flex; align-items: center; gap: 18px; margin: 0 8px 1.4rem;
}
.tlo-page h2.tlo-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border-cream); }
.tlo-page h2.tlo-sans-trait::after { display: none; }

/* Texte */
.tlo-page .tlo-prose { font-size: 14.5px; color: var(--text-dark); line-height: 1.8; margin: 0 8px; }
.tlo-page .tlo-prose p + p { margin-top: .9em; }

/* Points forts */
.tlo-page .tlo-points { display: flex; flex-direction: column; gap: 22px; margin: 0 8px; }
.tlo-page .tlo-point { display: flex; gap: 13px; align-items: flex-start; }
.tlo-page .tlo-point-icon {
	width: 34px; height: 34px; flex-shrink: 0; margin-top: 1px;
	background: var(--accent-light); border-radius: 9px;
	display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.tlo-page .tlo-point-body { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.tlo-page .tlo-point-body strong { color: var(--text-dark); font-weight: 600; display: block; margin-bottom: 3px; }
.tlo-page .tlo-point-body p + p { margin-top: .6em; }

/* Avis éditorial */
.tlo-page .tlo-avis-wrap {
	background: var(--violet-light); border-left: 3px solid var(--violet);
	padding: 1.1rem 1.3rem 1.4rem;
}
.tlo-page .tlo-avis-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.3rem; }
.tlo-page .tlo-avis-icone { width: 18px; height: 18px; color: var(--violet); flex-shrink: 0; }
.tlo-page .tlo-avis-name { font-size: 13px; color: var(--text-dark); }
.tlo-page .tlo-avis-text { font-size: 14px; font-style: italic; color: var(--text-dark); line-height: 1.8; }
.tlo-page .tlo-avis-text p + p { margin-top: .8em; }

/* Caractéristiques */
.tlo-page .tlo-specs {
	margin: 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
	background: var(--border-cream); border: 1px solid var(--border-cream);
	border-radius: var(--radius-sm); overflow: hidden;
}
.tlo-page .tlo-spec { background: var(--beige); padding: 11px 15px; }
.tlo-page .tlo-spec dt { font-size: 10.5px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 3px; }
.tlo-page .tlo-spec dd { font-size: 13.5px; font-weight: 500; color: var(--text-dark); margin: 0; }
.tlo-page .tlo-specs .tlo-spec:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Auteurs */
.tlo-page .tlo-authors { display: flex; flex-direction: column; gap: 12px; }
.tlo-page .tlo-author {
	display: flex; gap: 14px; align-items: flex-start; padding: 14px;
	background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--border-cream);
}
.tlo-page .tlo-author-avatar {
	width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
	background: var(--violet-light); border: 1.5px solid var(--violet-mid);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 16px; color: var(--violet); font-weight: 500;
}
.tlo-page .tlo-author-name { font-size: 13.5px; font-weight: 500; color: var(--text-dark) !important; text-decoration: none; display: block; margin-bottom: 4px; }
.tlo-page .tlo-author-bio { font-size: 12.5px; color: var(--text-mid); line-height: 1.6; }

/* Encart app */
.tlo-page .tlo-card-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; background: var(--violet-light); }
.tlo-page .tlo-card-app h2.tlo-section-title { margin-bottom: .35rem; }
.tlo-page .tlo-card-app p { font-size: 13.5px; color: var(--text-mid); max-width: 46ch; }
.tlo-page a.tlo-app-btn {
	background: var(--violet); color: #fff !important; text-decoration: none;
	font-size: 13.5px; font-weight: 500; padding: 11px 18px; border-radius: var(--radius-sm); white-space: nowrap;
}
.tlo-page a.tlo-app-btn:hover { background: var(--violet-dark); }

/* Jeux similaires */
.tlo-page .tlo-similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 8px; }
.tlo-page a.tlo-similar-card {
	background: var(--white); border: 1px solid var(--border); border-radius: 8px;
	overflow: hidden; text-decoration: none; color: inherit !important;
	display: flex; flex-direction: column; transition: box-shadow .2s;
}
.tlo-page a.tlo-similar-card:hover { box-shadow: 0 6px 20px rgba(30,30,52,.08); }
.tlo-page .tlo-similar-img { aspect-ratio: 1; padding: 10px; display: flex; align-items: center; justify-content: center; }
.tlo-page .tlo-similar-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.tlo-page .tlo-similar-body { padding: 4px 11px 12px; }
.tlo-page .tlo-similar-type { font-size: 11px; color: var(--text-mid); margin-bottom: 2px; }
.tlo-page .tlo-similar-name { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--text-dark); line-height: 1.35; }
.tlo-page .tlo-similar-usage { font-size: 10.5px; color: var(--text-mid); margin-top: 4px; text-align: center; }

/* ─── Mobile ─── */
@media (max-width: 900px) {
	.tlo-page .tlo-fiche { grid-template-columns: 1fr; padding: 1.5rem 1rem 3rem; gap: 1.25rem; }
	.tlo-page .tlo-col-gauche { position: static; max-width: 300px; width: 100%; margin: 0 auto; padding-top: 1.5rem; }
	.tlo-page .tlo-col-droite { padding-top: 0; }
	.tlo-page .tlo-fleche-prec { left: -34px; }
	.tlo-page .tlo-fleche-suiv { right: -34px; }
	.tlo-page .tlo-card { padding: 1.4rem 1.25rem; }
	.tlo-page .tlo-ariane-inner { padding: 9px 1rem; }
	.tlo-page h1.tlo-titre { font-size: 34px !important; }
	.tlo-page a.tlo-shop-btn { padding: 12px 16px 12px 12px; }
	.tlo-page .tlo-shop-left { gap: 14px; }
	.tlo-page .tlo-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tlo-page .tlo-similar-grid > :nth-child(3) { display: none; }
}
@media (max-width: 480px) {
	.tlo-page .tlo-specs { grid-template-columns: 1fr; }
	.tlo-page .tlo-specs .tlo-spec:last-child:nth-child(odd) { grid-column: auto; }
	.tlo-page .tlo-rating { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	.tlo-page * { transition: none !important; }
}
