/* PicGame Studio — feuille de style du site.
   Esthétique reprise du jeu : quasi-noir, bleus profonds, une lueur froide,
   et le blanc-peluche du personnage pour les accents. */

:root {
	--bg: #05060c;
	--bg-2: #0a0d1a;
	--panel: #0e1220;
	--ink: #c8d2e8;
	--ink-dim: #7c86a0;
	--plush: #f4f7ff;
	--glow: #6ea0ff;
	--glow-warm: #ff6b7a;
	--line: rgba(120, 150, 220, 0.14);
	--radius: 14px;
	--max: 1080px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Nappe de fond fixe : dégradés radiaux froids + une pointe de chaud, comme
   les lampes colorées des salles. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(1200px 700px at 72% -10%, rgba(70, 110, 210, 0.20), transparent 60%),
		radial-gradient(900px 600px at 12% 8%, rgba(120, 70, 200, 0.16), transparent 60%),
		radial-gradient(700px 500px at 88% 82%, rgba(255, 90, 110, 0.07), transparent 65%),
		linear-gradient(180deg, var(--bg-2), var(--bg));
}

/* Grain léger pour casser les aplats de dégradé. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--glow); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--plush); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */

header.site {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(10px);
	background: rgba(5, 6, 12, 0.72);
	border-bottom: 1px solid var(--line);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.82rem;
	color: var(--plush);
}

.brand .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--plush);
	box-shadow: 0 0 10px 3px rgba(150, 190, 255, 0.8), 0 0 22px 8px rgba(110, 160, 255, 0.4);
	animation: breathe 3.4s ease-in-out infinite;
}

@keyframes breathe {
	0%, 100% { opacity: 0.85; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.12); }
}

.nav-links { display: flex; gap: 26px; font-size: 0.9rem; }
.nav-links a { color: var(--ink-dim); letter-spacing: 0.04em; }
.nav-links a:hover, .nav-links a.active { color: var(--plush); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 92px 0 72px; text-align: center; }

.eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--glow);
	margin-bottom: 22px;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 100px;
}

.hero h1 {
	font-size: clamp(2.6rem, 8vw, 5.4rem);
	line-height: 0.98;
	letter-spacing: 0.02em;
	color: var(--plush);
	text-shadow: 0 0 40px rgba(110, 160, 255, 0.35);
	margin-bottom: 8px;
}

.hero .provisoire {
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-dim);
}

.hero .tagline {
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	color: var(--ink);
	max-width: 620px;
	margin: 26px auto 0;
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 100px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
	background: linear-gradient(180deg, #6ea0ff, #4a78e0);
	color: #04060e;
	box-shadow: 0 8px 30px rgba(90, 130, 240, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #04060e; box-shadow: 0 12px 38px rgba(90, 130, 240, 0.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--glow); color: var(--plush); }

/* Cadre d'image avec halo. */
.frame {
	position: relative;
	margin: 56px auto 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(70, 110, 210, 0.12);
	image-rendering: pixelated;
}
.frame img { width: 100%; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
	font-size: 0.72rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--glow);
	display: block;
	margin-bottom: 14px;
}

h2 {
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	color: var(--plush);
	line-height: 1.1;
	letter-spacing: 0.01em;
}

.lead { color: var(--ink-dim); font-size: 1.08rem; margin-top: 16px; }

/* Grille de fonctionnalités. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

.card {
	background: linear-gradient(180deg, var(--panel), rgba(10, 13, 26, 0.5));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(110, 160, 255, 0.35); }

.card .ico {
	width: 40px; height: 40px;
	border-radius: 10px;
	display: grid; place-items: center;
	margin-bottom: 16px;
	background: rgba(110, 160, 255, 0.1);
	font-size: 1.3rem;
}
.card h3 { color: var(--plush); font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 0.94rem; }

/* Galerie. */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shot {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	position: relative;
	image-rendering: pixelated;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 24px 16px 12px;
	font-size: 0.82rem;
	color: var(--ink);
	background: linear-gradient(0deg, rgba(3, 4, 10, 0.9), transparent);
	image-rendering: auto;
}

/* Bandeau d'appel. */
.band {
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 56px 28px;
	background:
		radial-gradient(600px 300px at 50% 0%, rgba(70, 110, 210, 0.18), transparent 70%),
		var(--panel);
}
.band h2 { margin-bottom: 12px; }

/* ---------- Hub studio : tuiles de projets ---------- */

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

.tile {
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--panel), rgba(10, 13, 26, 0.5));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tile:hover {
	transform: translateY(-5px);
	border-color: rgba(110, 160, 255, 0.4);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(70, 110, 210, 0.12);
	color: var(--ink);
}
.tile .cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; image-rendering: pixelated; }
.tile .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tile:hover .cover img { transform: scale(1.05); }
.tile .body { padding: 22px 22px 24px; }
.tile .row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tile h3 { color: var(--plush); font-size: 1.35rem; letter-spacing: 0.01em; }
.tile p { color: var(--ink-dim); font-size: 0.95rem; }
.tile .more { margin-top: 14px; font-size: 0.86rem; color: var(--glow); font-weight: 600; letter-spacing: 0.03em; }
.tile:hover .more { color: var(--plush); }

.badge {
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 100px;
	border: 1px solid var(--line);
	color: var(--glow);
	white-space: nowrap;
}
.badge.live { color: #56d089; border-color: rgba(86, 208, 137, 0.4); }

/* Tuile « à venir » : sobre, non cliquable. */
.tile.soon { border-style: dashed; opacity: 0.68; }
.tile.soon .cover { display: grid; place-items: center; background: rgba(110, 160, 255, 0.05); }
.tile.soon .cover span { font-size: 2.4rem; opacity: 0.5; }

/* Bouton itch.io : accent chaud, comme la lueur du phare. */
.btn-itch { background: linear-gradient(180deg, #ff8a5c, #f25d3a); color: #1a0a06; box-shadow: 0 8px 30px rgba(240, 100, 60, 0.32); }
.btn-itch:hover { transform: translateY(-2px); color: #1a0a06; box-shadow: 0 12px 38px rgba(240, 100, 60, 0.5); }

/* ---------- Devlog ---------- */

.entry {
	border-left: 2px solid var(--line);
	padding: 0 0 48px 28px;
	position: relative;
}
.entry::before {
	content: "";
	position: absolute;
	left: -7px; top: 6px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--glow);
	box-shadow: 0 0 12px 2px rgba(110, 160, 255, 0.6);
}
.entry .date { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glow); }
.entry h3 { color: var(--plush); font-size: 1.4rem; margin: 8px 0 14px; }
.entry p { color: var(--ink); margin-bottom: 14px; }
.entry p.note { color: var(--ink-dim); font-size: 0.92rem; }
.entry ul { color: var(--ink-dim); margin: 0 0 14px 20px; }
.entry ul li { margin-bottom: 6px; }
.entry .frame { margin: 20px 0; }
.entry .frame img { image-rendering: pixelated; }
.entry .frame.smooth img { image-rendering: auto; }

.tag {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--ink-dim);
	border: 1px solid var(--line);
	border-radius: 100px;
	padding: 3px 11px;
	margin: 0 6px 6px 0;
}

/* ---------- Pied ---------- */

footer.site {
	border-top: 1px solid var(--line);
	padding: 46px 0;
	margin-top: 40px;
	color: var(--ink-dim);
	font-size: 0.86rem;
}
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-brand { color: var(--plush); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status .live { width: 8px; height: 8px; border-radius: 50%; background: #56d089; box-shadow: 0 0 8px 2px rgba(86, 208, 137, 0.6); }

@media (max-width: 640px) {
	.nav-links { gap: 16px; }
	.hero { padding: 64px 0 48px; }
	section { padding: 52px 0; }
}
