/* ===================================================================================
   Talltex.fr - Feuille de style Bootstrap 5 (mise en page calquée sur djtall.com)
   Accent Talltex : #a0ce4e (vert) - texte sur accent : sombre (contraste AA)
   =================================================================================== */

:root {
	--tt-accent: #a0ce4e;
	--tt-accent-fonce: #7fa83a;
	--tt-texte-accent: #1d1f17;
	--tt-gris-bloc: #f1f1f1;
	--tt-texte: #4a4a4a;
	--tt-sombre: #212529;
}

/* -----------------------------------------------------------------------------------
// Polices Talltex (inchangées)
// ----------------------------------------------------------------------------------- */
@font-face { font-family: "yanone-kaffeesatz"; src: url('../font/yanone-kaffeesatz/YanoneKaffeesatz-Light.otf') format('opentype'); font-display: swap; }
@font-face { font-family: "Colaborate";        src: url('../font/Colaborate/ColabLig.otf') format('opentype'); font-display: swap; }
@font-face { font-family: "Titillium";         src: url('../font/Titillium/Titillium-Semibold.otf') format('opentype'); font-display: swap; }
@font-face { font-family: "titrenews";         src: url('../font/gauntlet/GauntletThin_TB.otf') format('opentype'); font-display: swap; }

/* -----------------------------------------------------------------------------------
// Base
// ----------------------------------------------------------------------------------- */
body {
	background: #000 url('../../images/background_site.jpg') repeat fixed center;
	margin: 0 auto;
}

a { color: #24252b; text-decoration: none; }
a:hover { color: var(--tt-accent-fonce); text-decoration: none; }

.bg-white  { background-color: #fff; }
.bg-grey   { background-color: var(--tt-gris-bloc); }
.bg-cookies{ background-color: #f0f0f0; }

blockquote { border-left: 3px solid var(--tt-accent); padding-left: 8px; font-style: italic; }
textarea   { resize: none; }

.l20 { margin-left: 20px; }
.w-20p { width: 20px; }
.w-32p { width: 32px; }
.w-40  { width: 40px; }
.w-61p { width: 61px; }

/* Image qui remplit un .ratio sans déformation */
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------------------------------------------------
// Bandeau
// ----------------------------------------------------------------------------------- */
.tt-header {
	min-height: 150px;
	background: #111 url('../../images/background_header.jpg') center / cover no-repeat;
}
.tt-header-logo { max-height: 110px; max-width: 70%; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }

/* -----------------------------------------------------------------------------------
// Menu (structure djtall)
// ----------------------------------------------------------------------------------- */
.navbar { margin-bottom: 5px; padding-top: 0; padding-bottom: 0; border-top: 3px solid var(--tt-accent); }
.navbar .nav-link { color: #fff; padding-top: .7rem; padding-bottom: .7rem; }
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: var(--tt-accent); }

.navbar .nav-item.active { background-color: var(--tt-accent); }
.navbar .nav-item.active > .nav-link,
.navbar .nav-item.active > .nav-link:hover { color: var(--tt-texte-accent); }

.font_menu {
	font-family: 'titrenews', Verdana, sans-serif;
	vertical-align: middle;
	font-size: 1em;
	letter-spacing: .03em;
}

.dropdown-menu {
	min-width: max-content;
	white-space: nowrap;
	background-color: #2b2f33;
	font-family: 'titrenews', Verdana, sans-serif;
}
.dropdown-menu .dropdown-item { color: #fff; padding-top: .25rem; padding-bottom: .25rem; }
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus { background-color: #3a3d41; color: var(--tt-accent); }
.dropdown-menu .dropdown-item.active { background-color: var(--tt-accent); color: var(--tt-texte-accent); }
.dropdown-menu .dropdown-divider { border-color: #444; margin: .2rem 0; }

/* -----------------------------------------------------------------------------------
// Blocs (titres + séparateurs façon djtall)
// ----------------------------------------------------------------------------------- */
.font_nextlive {
	font-family: 'Titillium', sans-serif;
	padding: 6px 0 4px 0;
	font-size: 1.22em;
	color: var(--tt-accent-fonce);
	letter-spacing: .02em;
}

/* Remplace sepdegrad.webp de djtall par un dégradé CSS */
.sep-degrad {
	height: 2px;
	background: linear-gradient(to right, var(--tt-accent), rgba(160,206,78,0));
}

.separateur  { width: 100%; height: 1px; background-color: var(--tt-accent); clear: both; }
.separateurv { height: 1px; background-color: var(--tt-accent); }

.badge-date {
	font-family: Arial, sans-serif;
	font-size: .72rem;
	font-weight: 600;
	color: var(--tt-texte);
	border: 2px solid var(--tt-accent);
	padding: 1px 6px;
}

/* -----------------------------------------------------------------------------------
// Cartes news
// ----------------------------------------------------------------------------------- */
.tt-card { border: 1px solid #e3e3e3; transition: transform .15s ease, box-shadow .15s ease; }
.tt-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tt-card:hover .font_titre_accueil a { color: var(--tt-accent-fonce); }

.tt-logo-jeu { height: 28px; width: auto; }

.font_titre_accueil {
	float: none;
	text-align: center;
	width: 100%;
	margin: 6px 0 4px 0;
	padding: 0;
	font-family: 'yanone-kaffeesatz', sans-serif;
	font-size: 1.35em;
	font-weight: 600;
	color: #000;
	line-height: 1.15;
}
.font_titre_accueil a { color: inherit; }

.font_news_dates { color: var(--tt-texte); font-size: .8em; font-weight: 600; }

.news_text_acc {
	font-family: 'Colaborate', sans-serif;
	color: var(--tt-texte);
	text-align: center;
}

.tt-hype { position: relative; z-index: 2; }
.hype-up   { color: #4f9a2a; }
.hype-down { color: #d63b17; }

/* -----------------------------------------------------------------------------------
// Carrousel / overlays
// ----------------------------------------------------------------------------------- */
.overlay-degrad { background: linear-gradient(to top, rgba(0,0,0,.85), transparent); padding-top: 3rem; }
.overlay-titre  { color: #fff; font-family: 'yanone-kaffeesatz', sans-serif; font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.overlay-sous-titre { color: #fff; font-size: 1rem; }

.ribbon,
.ribbon-static {
	font-size: .62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 3px 9px;
	border-radius: 20px;
	background: var(--tt-accent);
	color: var(--tt-texte-accent);
}
.ribbon { position: absolute; top: 9px; left: 10px; z-index: 1; }

.carousel-indicators [data-bs-target] { background-color: var(--tt-accent); }

.replay-thumb img { transition: opacity .15s ease; }
.replay-thumb:hover img { opacity: .85; }

/* -----------------------------------------------------------------------------------
// Boutons
// ----------------------------------------------------------------------------------- */
.btn-tt,
.btn-primary {
	background-color: var(--tt-accent);
	border-color: var(--tt-accent);
	color: var(--tt-texte-accent);
	font-family: 'Colaborate', sans-serif;
}
.btn-tt:hover, .btn-tt:focus,
.btn-primary:hover, .btn-primary:focus {
	background-color: var(--tt-accent-fonce);
	border-color: var(--tt-accent-fonce);
	color: #fff;
}

/* -----------------------------------------------------------------------------------
// Pied de page / retour en haut
// ----------------------------------------------------------------------------------- */
.copyright {
	background: var(--tt-sombre);
	margin-bottom: 0;
	font-family: Arial, sans-serif;
	color: #fff;
	font-size: .8125em;
}

#scrolltop {
	display: none;
	position: fixed;
	bottom: 15px;
	right: 15px;
	width: 48px;
	height: 48px;
	background-color: rgba(0,0,0,.55);
	border-radius: 5px;
	z-index: 9999;
}
#scrolltop::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 55%;
	width: 14px;
	height: 14px;
	border-left: 3px solid var(--tt-accent);
	border-top: 3px solid var(--tt-accent);
	transform: translate(-50%, -50%) rotate(45deg);
}

/* -----------------------------------------------------------------------------------
// Titres de pages / fiches
// ----------------------------------------------------------------------------------- */
.tt-titre-page {
	font-family: 'yanone-kaffeesatz', sans-serif;
	font-size: 1.9rem;
	font-weight: 600;
	color: #000;
	margin: .25rem 0 .75rem 0;
}
.tt-titre-fiche {
	font-family: 'yanone-kaffeesatz', sans-serif;
	font-size: 1.6rem;
	font-weight: 600;
	color: #000;
	margin-bottom: .5rem;
}
.tt-titre-fiche a { color: inherit; }
.tt-fiche { background: #fff; border: 1px solid #e3e3e3; transition: box-shadow .15s ease; }
.tt-fiche:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.tt-logo-jeu-lg { height: 40px; width: auto; }

/* Contenu HTML venant de l'admin (CKEditor) */
.tt-contenu { text-align: left; color: #2b2b2b; line-height: 1.6; }
.tt-contenu img, .tt-contenu iframe, .tt-contenu video { max-width: 100%; height: auto; }
.tt-contenu iframe { aspect-ratio: 16 / 9; width: 100%; }
.tt-contenu h2, .tt-contenu h3 { font-family: 'Titillium', sans-serif; font-size: 1.25rem; margin-top: 1rem; }
.tt-img-contain { width: 100%; height: 100%; object-fit: contain; }

/* Plateformes (sorties / tests) */
.tt-plateforme { height: 26px; width: auto; }

/* Points forts / faibles */
.tt-points { background: #fff; border-left: 4px solid; }
.tt-points-plus  { border-color: #4f9a2a; }
.tt-points-plus p  { color: #3d7a1f; }
.tt-points-moins { border-color: #d63b17; }
.tt-points-moins p { color: #b5321a; }
.tt-points ul { padding-left: 1.1rem; }
.tt-points-plus li::marker  { color: #4f9a2a; }
.tt-points-moins li::marker { color: #d63b17; }

/* Barre alphabétique */
.btn-alpha {
	min-width: 32px;
	background: #fff;
	border: 1px solid #d5d5d5;
	color: var(--tt-texte);
	font-family: 'Colaborate', sans-serif;
}
.btn-alpha:hover { border-color: var(--tt-accent); color: var(--tt-texte-accent); background: #f4fae9; }
.btn-alpha.disabled { background: #ececec; color: #a5a5a5; border-color: #e0e0e0; }
.tt-alphabet .btn-tt { min-width: 32px; }

/* Pagination */
.tt-pagination .page-link { color: var(--tt-texte); border-color: #d5d5d5; }
.tt-pagination .page-link:hover { color: var(--tt-texte-accent); background: #f4fae9; }
.tt-pagination .page-item.active .page-link { background: var(--tt-accent); border-color: var(--tt-accent); color: var(--tt-texte-accent); }

/* Onglets statut (replays) */
.tt-pills .nav-link { color: var(--tt-texte); background: #fff; border: 1px solid #d5d5d5; padding: .25rem .75rem; font-size: .9rem; }
.tt-pills .nav-link.active { background: var(--tt-accent); border-color: var(--tt-accent); color: var(--tt-texte-accent); }

/* Statuts replays */
.tt-statut { font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.tt-statut-en-cours { background: #4f9a2a; color: #fff; }
.tt-statut-en-pause { background: #c98d2f; color: #fff; }
.tt-statut-termines { background: #6c757d; color: #fff; }

/* Votes */
.btn-vote { background: none; border: 0; padding: 0; line-height: 1; cursor: pointer; transition: transform .1s ease; }
.btn-vote:hover { transform: scale(1.15); }

/* Liste "Dernières news" de la colonne de droite */
.tt-liste-news li { border-bottom: 1px dashed #d9d9d9; font-size: .9rem; }
.tt-liste-news li:last-child { border-bottom: 0; }
.tt-liste-news a { color: #24252b; }
.tt-liste-news a:hover { color: var(--tt-accent-fonce); }

/* Daily News (format vertical) */
.tt-ratio-9x16 { --bs-aspect-ratio: 177.78%; }
.tt-video-verticale { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; background: #000; }

/* Commandes du chat */
.tt-cmd {
	background: #fff;
	border: 1px solid #d5d5d5;
	border-left: 3px solid var(--tt-accent);
	color: #24252b;
	padding: .2rem .6rem;
	font-size: .9rem;
}

/* Quantité (setup) */
.tt-badge-qte { background: var(--tt-accent); color: var(--tt-texte-accent); }

/* -----------------------------------------------------------------------------------
// Mobile
// ----------------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
	.overlay-titre   { font-size: 1.2rem; }
	.overlay-degrad  { padding-top: 1.5rem; }
	.tt-logo-jeu-lg  { height: 28px; }
	.tt-header       { min-height: 110px; }
	.tt-header-logo  { max-height: 80px; }
	.tt-titre-page   { font-size: 1.5rem; }
}
