﻿html, body {
	overflow-x: hidden;
}

img, iframe, video {
	max-width: 100%;
	height: auto;
	display: block;
}

:root {
	--brand: #cb5353;
	--bg: #ffffff;
	--ink: #0f172a; /* slate-900 */
	--muted: #475569; /* slate-600 */
	--panel: #ffffff;
	--line: rgb(0 0 0 / 40%); /* subtle border */
	--radius: 16px;
	--maxw: 1100px
}

* {
	box-sizing: border-box
}

html, body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.55 Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial;
}

body {
	margin: 0;
	background: radial-gradient(1200px 700px at 20% -10%, #ff40400f, transparent 60%), var(--bg);
	color: black;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

a {
	text-decoration: none;
	color: inherit
}

/* NAV */
header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #000000c2;
	backdrop-filter: blur(10px);
}

.presskitmakima {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	justify-items: center;
	align-items: center;
	background: #cfcfcf; /* gris très léger */
	padding: 40px;
	border-radius: 5px;
}

	.presskitmakima img {
		max-width: 100%;
		height: auto;
	}

.wrap {
	margin-inline: auto;
	padding: 5px 20px
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px
}

	.brand h1 {
		font: 700 28px Oswald, Impact, system-ui;
		margin: 0;
		color: var(--brand);
		letter-spacing: .3px
	}

.links {
	display: flex;
	gap: 14px;
	flex-wrap: wrap
}

	.links a {
		padding: 8px 12px;
		border-radius: 12px;
		opacity: .9
	}

		.links a:hover {
			background: #ffffff12;
			opacity: 1
		}

/* HERO */
.hero {
	padding: 44px 0
}

.grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 24px
}

@media (max-width:900px) {
	.grid {
		grid-template-columns: 1fr
	}
}

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.logoDiscord {
	display: block;
	inline-size: 75px;
	block-size: 75px;
	background: url('Assets/discord.png') center/contain no-repeat;
}

.logoTwitter {
	display: block;
	inline-size: 75px;
	block-size: 75px;
	background: url('Assets/Twitter.png') center/contain no-repeat;
}

.logoYoutube {
	display: block;
	inline-size: 75px;
	block-size: 75px;
	background: url('Assets/youtube.png') center/contain no-repeat;
}

.title {
	font: 800 clamp(28px,4.2vw,56px) Oswald, sans-serif;
	margin: 0 0 8px
}

.lead {
	color: var(--muted);
	margin: 0 0 12px
}

.roles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px
}

@media (max-width:700px) {
	.roles {
		grid-template-columns: 1fr
	}
}

.role {
	border: 1px dashed #ffffff22;
	border-radius: 14px;
	padding: 12px
}

	.role h3 {
		margin: 0 0 6px;
		font: 700 18px Inter
	}

	.role p {
		margin: 0;
		color: var(--muted)
	}

.cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #f8fafc; /* slate-50 */
	color: var(--ink);
	font-weight: 700;
	transition: background .15s ease, box-shadow .15s ease;
}

	.btn:hover {
		background: var(--brand);
		color: #fff;
		border-color: var(--brand);
	}

	.btn.primary {
		background: var(--brand);
		border-color: var(--brand);
		color: #ffffff;
		box-shadow: 0 6px 16px rgba(255, 64, 64, 0.25);
	}

/* GAMES */
section {
	scroll-margin-top: 250px;
}

@font-face {
	font-family: 'Namaku';
	src: url('Assets/Namaku.ttf') format('truetype'), url('Assets/Namaku.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}


h2.section {
	font: 800 clamp(50px,3.5vw,44px) Namaku;
	margin: 0px 0 15px;
	text-align: center;
}

.games {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 16px
}

@media (max-width:1000px) {
	.games {
		grid-template-columns: repeat(2,1fr)
	}
}

@media (max-width:620px) {
	.games {
		grid-template-columns: 1fr
	}
}

.game {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #bfbfbfb0
}

	.game img {
		display: block;
		width: 100%;
		height: 200px;
		object-fit: cover
	}

	.game .meta {
		padding: 12px
	}

		.game .meta h3 {
			margin: 0 0 6px;
			font: 700 18px Inter;
			color: var(--brand);
		}

.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap
}

.tag {
	font: 600 12px Inter;
	padding: .25em .6em;
	border-radius: 999px;
	border: 1px solid #ffffff22;
	color: var(--brand)
}

.actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px
}

/* MAILING */
.newsletter {
	display: grid;
	grid-template-columns: 1fr .9fr;
	gap: 18px
}

@media (max-width:900px) {
	.newsletter {
		grid-template-columns: 1fr
	}
}

.field {
	display: flex;
	gap: 8px;
	flex-wrap: wrap
}

.input {
	flex: 1;
	min-width: 220px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid #ffffff22;
	background: #bfbfbfb0;
	color: black;
}

/* SUPPORT */
.list {
	display: grid;
	gap: 10px
}

.item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-radius: 12px;
	background: #bfbfbfb0
}

/* FOOTER */
footer {
	margin-top: 28px;
	border-top: 1px solid var(--line);
	width: 50%;
}

	footer .row {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		flex-wrap: wrap;
		color: var(--muted);
		padding: 18px 0
	}

/* Header tweaks for centered layout + logo only */
.nav.nav-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px; /* espace logo / menu */
	padding: 0px 0;
}

.logo {
	display: block;
	inline-size: 175px;
	block-size: 175px;
	background: url('Assets/MakimaLogo_nameWhite.png') center/contain no-repeat;
}

.nav-bar {
	background: #ff40408a; /* noir foncé */
	width: 100%; /* occupe toute la largeur */
	display: flex;
	justify-content: center; /* centrer les boutons */
	padding: 0px 0;
}

	.nav-bar a {
		padding: 15px 50px;
		border-radius: 1px;
		border: 1px solid transparent;
		background: transparent;
		color: #fff; /* texte blanc */
		font-weight: 800;
		transition: all .2s ease;
	}

		.nav-bar a:hover {
			background: var(--brand);
			color: #fff;
			border-color: var(--brand);
		}

/* Middle band centered like Miju */
.centerband {
	max-width: 780px;
	margin-inline: auto
}

	.centerband .card {
		border-radius: 18px
	}

/* Make all major sections use the narrow band */
main .section, .newsletter, .list, .grid, .games {
	max-width: 780px;
	margin-inline: auto
}

.grid {
	grid-template-columns: 1fr !important
}

.games {
	grid-template-columns: 1fr !important
}

#contact .card {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#contact .input,
#contact textarea {
	text-align: left;
	width: 100%;
	max-width: 400px;
}

#contact .cta {
	justify-content: center;
}

#contact textarea {
	min-height: 160px;
	resize: vertical;
}

@media (max-width: 768px) {

	/* padding léger */
	.wrap {
		padding: 10px 14px;
	}

	/* menu vertical full-width (ne change pas la couleur existante) */
	.nav-bar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 14px;
	}

		.nav-bar a {
			width: 100%;
			text-align: center;
			padding: 12px 16px;
		}

	/* grilles → 1 colonne, sans toucher au desktop */
	.games,
	.newsletter,
	.grid,
	.list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 14px;
		max-width: 100%;
		margin-inline: auto;
	}

	/* cartes centrées */
	.card {
		margin-inline: auto;
	}

	/* formulaire contact: champs larges et centrés, sans changer tes styles de base */
	#contact .card {
		align-items: center;
	}

	#contact .input,
	#contact textarea {
		max-width: 100%;
		width: 100%;
	}

	#contact textarea {
		min-height: 180px;
	}

	/* iframe (Steam widget) full width */
	.game iframe {
		width: 100% !important;
		height: 190px;
	}

	/* press kit en colonne (garde ton fond gris actuel) */
	.presskitmakima {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 20px;
	}
}

/* extra small */
@media (max-width: 420px) {
	.nav-bar {
		padding: 10px 12px;
	}

		.nav-bar a {
			padding: 10px 12px;
		}
}