/* Page d'accueil — style landing Terae (aplats unis) */

.page-home {
	--t-radius: 0;
	--t-radius-lg: 0;
}

/* style.css charge après theme.css : forcer pleine largeur (sans colonne sidebar fantôme) */
main.layout.content.layout--home {
	display: block !important;
	grid-template-columns: none !important;
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 0 !important;
}

main.layout.content.layout--home > section.right {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.page-home .content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.home {
	width: 100%;
	max-width: none;
	color: var(--t-text);
}

/* ——— Hero ——— */
.home-hero {
	position: relative;
	min-height: clamp(420px, 62vh, 620px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
	padding: calc(var(--navbar-height) + 2rem) 1.5rem 3rem;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	background-color: #0a0606;
	background-image: var(--t-hero-bg);
	background-size: cover;
	background-position: center 20%;
	background-repeat: no-repeat;
	z-index: 0;
}

.home-hero__bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(8, 4, 4, 0.05) 0%, rgba(8, 4, 4, 0.12) 50%, rgba(8, 4, 4, 0.55) 100%),
		radial-gradient(ellipse 90% 70% at 50% 35%, rgba(196, 30, 58, 0.06), transparent 72%);
	pointer-events: none;
}

.home-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(8, 4, 4, 0.15) 0%, transparent 14%, transparent 86%, rgba(8, 4, 4, 0.15) 100%);
	pointer-events: none;
}

.home-hero__content {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.home-hero__tag {
	margin: 1rem 0 0;
	font-family: var(--font-sans);
	font-size: clamp(0.7rem, 1.5vw, 0.85rem);
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--t-muted);
}

.home-hero__logo {
	margin: 0;
	line-height: 0;
}

.home-hero__logo--img {
	display: flex;
	justify-content: center;
}

.home-hero__logo-img {
	display: block;
	width: min(92vw, 520px);
	height: auto;
	max-height: clamp(120px, 22vw, 220px);
	object-fit: contain;
	filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.65));
}

.home-hero__subtitle {
	margin: 0.45rem 0 0;
	font-family: var(--font-sans);
	font-size: clamp(0.85rem, 2vw, 1.05rem);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--t-red-bright);
}

a.home-hero__cta.home-hero__cta--brush {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
	min-width: min(92vw, 380px);
	min-height: 72px;
	padding: 0;
	text-decoration: none;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
	transition: filter 0.15s ease, transform 0.15s ease;
}

.home-hero__cta-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	pointer-events: none;
	user-select: none;
}

.home-hero__cta-label {
	position: relative;
	z-index: 1;
	padding: 1rem 2.5rem;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.home-hero__cta--brush:hover {
	filter: brightness(1.1) drop-shadow(0 12px 28px rgba(139, 21, 21, 0.5));
	transform: translateY(-2px);
	color: #fff;
}

/* ——— Barre features ——— */
.home-features {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	width: calc(100% - 3rem);
	max-width: 1320px;
	margin: 0 auto;
	background: linear-gradient(to bottom, rgba(10, 6, 6, 0.92), rgba(8, 4, 4, 0.98));
	border: 1px solid var(--t-border);
	border-radius: 0;
	overflow: hidden;
	box-shadow: var(--t-shadow);
}

.home-features__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.85rem;
	text-align: left;
	padding: 1.15rem 1rem;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.home-features__item:last-child {
	border-right: none;
}

.home-features__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 0;
	border: 2px solid var(--t-gold-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.35);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.home-features__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-features__text {
	min-width: 0;
	flex: 1;
}

.home-features__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.78rem, 1.05vw, 0.95rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--t-text);
}

.home-features__desc {
	margin: 0.3rem 0 0;
	font-family: var(--font-sans);
	font-size: clamp(0.65rem, 0.9vw, 0.74rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--t-muted);
	max-width: none;
}

/* ——— Grille 3 colonnes ——— */
.home-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 0.9fr;
	gap: 1.25rem;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 2rem 1.5rem 2.5rem;
	box-sizing: border-box;
}

.home-panel {
	background: var(--t-bg-card);
	border: 1px solid var(--t-border);
	border-radius: 0;
	overflow: hidden;
	box-shadow: var(--t-shadow);
}

.home-panel__head {
	padding: 1rem 1.15rem;
	border-bottom: 1px solid var(--t-border);
	background: linear-gradient(135deg, rgba(139, 21, 21, 0.18) 0%, transparent 100%);
}

.home-panel__title {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--t-gold-light);
}

.home-panel__title em {
	font-style: normal;
	color: var(--t-red-bright);
}

.home-panel__body {
	padding: 1rem 1.15rem 1.15rem;
}

/* Actualités */
.home-news__item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.85rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-news__item:last-of-type {
	border-bottom: none;
}

.home-news__thumb {
	width: 72px;
	height: 52px;
	border-radius: var(--t-radius);
	border: 1px solid var(--t-border);
	flex-shrink: 0;
	overflow: hidden;
	background: var(--t-placeholder-1);
}

.home-news__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-news__title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--t-red-bright);
	line-height: 1.3;
}

.home-news__date {
	margin: 0.2rem 0 0;
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--t-muted);
}

.home-news__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--t-muted);
}

.home-news__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--t-gold);
}

.home-news__more:hover {
	color: var(--t-gold-light);
}

/* Pourquoi nous */
.home-why__bg {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background: url('../img/home/why-bg.png') center center / cover no-repeat;
	pointer-events: none;
}

.home-panel--why {
	position: relative;
}

.home-why__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-why__list li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.5rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--t-text);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.home-why__list li:last-child {
	border-bottom: none;
}

.home-why__list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--t-red-bright);
	font-weight: 800;
}

/* Statut serveur */
.home-status__online {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.home-status__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--t-success);
	box-shadow: 0 0 12px var(--t-success);
	animation: homePulse 2s infinite;
}

@keyframes homePulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.home-status__players {
	margin: 0 0 0.25rem;
	font-family: var(--font-display);
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--t-red-bright);
}

.home-status__players-label {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	color: var(--t-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.home-status__channels {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
}

.home-status__channels li {
	display: flex;
	justify-content: space-between;
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: var(--t-muted);
}

.home-status__channels li span:last-child {
	color: var(--t-text);
}

.home-status__cta {
	display: block;
	margin-top: 1rem;
	padding: 0.65rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--t-gold);
	border: 1px solid var(--t-border);
	border-radius: var(--t-radius);
	transition: background 0.15s, color 0.15s;
}

.home-status__cta:hover {
	background: rgba(201, 162, 39, 0.1);
	color: var(--t-gold-light);
}

/* Bandeau communauté */
.home-community {
	text-align: center;
	padding: 2.5rem 1.5rem 3rem;
	background: linear-gradient(to bottom, transparent, rgba(139, 21, 21, 0.08));
	border-top: 1px solid var(--t-border);
}

.home-community__title {
	margin: 0;
	font-family: var(--font-sans);
	font-size: clamp(0.9rem, 2vw, 1.1rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--t-text);
}

.home-community__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1.25rem;
}

.home-community__social a {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-decoration: none;
	color: var(--t-muted);
	transition: color 0.15s;
}

.home-community__social a:hover {
	color: var(--t-red-bright);
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
	.home-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-panel--status {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.home-features {
		width: calc(100% - 2rem);
		grid-template-columns: 1fr;
	}

	.home-features__item {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		padding: 1rem 1.1rem;
	}

	.home-features__item:last-child {
		border-bottom: none;
	}

	.home-grid {
		grid-template-columns: 1fr;
		padding: 1.25rem 1rem 2rem;
	}

	.home-hero {
		min-height: 380px;
		padding-top: calc(var(--navbar-height) + 1.5rem);
	}
}

@media (max-width: 480px) {
	.home-features__icon {
		width: 48px;
		height: 48px;
	}

	.home-features__item {
		gap: 0.7rem;
	}
}
