:root {
		--ink: #0a0b12;
		--void: #14101d;
		--card: #17151f;
		--line: rgba(245, 240, 230, 0.1);
		--paper: #f2ede2;
		--paper-dim: #b8b2a6;
		--teal: #3fe6c4;
		--teal-dim: rgba(63, 230, 196, 0.35);
		--gold: #f2b705;
		--gold-dim: rgba(242, 183, 5, 0.3);
		--magenta: #e63e8c;
	}
/* Fantastic button */ 
button {
	--cut: 0.1em;
	--active: 0;
	--bg:
		radial-gradient(
			120% 120% at 126% 126%,
			hsl(var(--hue) calc(var(--active) * 97%) 98% / calc(var(--active) * 0.9)) 40%,
			transparent 50%
		) calc(100px - (var(--active) * 100px)) 0 / 100% 100% no-repeat, 
		radial-gradient(
			120% 120% at 120% 120%,
			hsl(var(--hue) calc(var(--active) * 97%) 70% / calc(var(--active) * 1)) 30%,
			transparent 70%
		) calc(100px - (var(--active) * 100px)) 0 / 100% 100% no-repeat,
		hsl(var(--hue) calc(var(--active) * 100%) calc(12% - (var(--active) * 8%)));
	background: var(--bg);
	font-size: 2rem;
	font-weight: 500;
	border: 0;
	cursor: pointer;
	padding: 0.9em 1.3em;
	display: flex;
	align-items: center;
	gap: 0.25em;
	white-space: nowrap;
	border-radius: 2rem;
	position: relative;
	box-shadow:
		0 0 calc(var(--active) * 6em) calc(var(--active) * 3em) hsl(var(--hue) 97% 61% / 0.5),
		0 0.05em 0 0 hsl(var(--hue) calc(var(--active) * 97%) calc((var(--active) * 50%) + 30%)) inset,
		0 -0.05em 0 0 hsl(var(--hue) calc(var(--active) * 97%) calc(var(--active) * 10%)) inset;
	transition: box-shadow var(--transition), scale var(--transition), background var(--transition);
	scale: calc(1 + (var(--active) * 0.1));
	transform-style: preserve-3d;
	perspective: 100vmin;
	overflow: hidden;
}

button:active {
  scale: 1;
}

.star {
	height: calc(var(--size) * 1px);
	aspect-ratio: 1;
	background: white;
	border-radius: 50%;
	position: absolute;
	opacity: var(--alpha);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(10deg) rotate(0deg) translateY(calc(var(--distance) * 1px)) ;
	-webkit-animation: orbit calc(var(--duration) * 1s) calc(var(--delay) * -1s) infinite linear;
	        animation: orbit calc(var(--duration) * 1s) calc(var(--delay) * -1s) infinite linear;
}

@-webkit-keyframes orbit {
	to {
		transform: translate(-50%, -50%) rotate(10deg) rotate(360deg) translateY(calc(var(--distance) * 1px));
	}
}

@keyframes orbit {
	to {
		transform: translate(-50%, -50%) rotate(10deg) rotate(360deg) translateY(calc(var(--distance) * 1px));
	}
}

.galaxy {
	position: absolute;
	width: 100%;
	aspect-ratio: 1;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	overflow: hidden;
	opacity: var(--active);
	transition: opacity var(--transition);
}

.galaxy__ring {
	height: 200%;
	width: 200%;
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 50%;
	transform: translate(-28%, -40%) rotateX(-24deg) rotateY(-30deg) rotateX(90deg);
	transform-style: preserve-3d;
}

.galaxy__container {
	position: absolute;
	inset: 0;
	opacity: var(--active);
	transition: opacity var(--transition);
  -webkit-mask: radial-gradient(white, transparent);
          mask: radial-gradient(white, transparent);
}

.star--static {
	-webkit-animation: none;
	        animation: none;
	top: 50%;
	left: 50%;
	transform: translate(0, 0);
	max-height: 4px;
	filter: brightness(4);
	opacity: 0.9;
	-webkit-animation:
		move-x calc(var(--duration) * 0.1s) calc(var(--delay) * -0.1s) infinite linear,
		move-y calc(var(--duration) * 0.2s) calc(var(--delay) * -0.2s) infinite linear;
	        animation:
		move-x calc(var(--duration) * 0.1s) calc(var(--delay) * -0.1s) infinite linear,
		move-y calc(var(--duration) * 0.2s) calc(var(--delay) * -0.2s) infinite linear;
}

button:hover .star--static {
	-webkit-animation-play-state: paused;
	        animation-play-state: paused;
}

@-webkit-keyframes move-x {
	0% {
		translate: -100px 0;
	}
	100% {
		translate: 100px 0;
	}
}

@keyframes move-x {
	0% {
		translate: -100px 0;
	}
	100% {
		translate: 100px 0;
	}
}

@-webkit-keyframes move-y {
	0% {
		transform: translate(0, -50px);
	}
	100% {
		transform: translate(0, 50px);
	}
}

@keyframes move-y {
	0% {
		transform: translate(0, -50px);
	}
	100% {
		transform: translate(0, 50px);
	}
}

.spark {
	position: absolute;
	inset: 0;
	border-radius: 2rem;
	rotate: 0deg;
	overflow: hidden;
	-webkit-mask: linear-gradient(white, transparent 50%);
	        mask: linear-gradient(white, transparent 50%);
	-webkit-animation: flip calc(var(--spark) * 2) infinite steps(2, end);
	        animation: flip calc(var(--spark) * 2) infinite steps(2, end);
}

@-webkit-keyframes flip {
	to {
		rotate: 360deg;
	}
}

@keyframes flip {
	to {
		rotate: 360deg;
	}
}

.spark:before {
	content: "";
	position: absolute;
	width: 200%;
	aspect-ratio: 1;
	top: 0%;
	left: 50%;
	z-index: -1;
	translate: -50% -15%;
	rotate: 0;
	transform: rotate(-90deg);
	opacity: calc((var(--active)) + 0.4);
	background: conic-gradient(
		from 0deg,
		transparent 0 340deg,
		white 360deg
	);
	transition: opacity var(--transition);
	-webkit-animation: rotate var(--spark) linear infinite both;
	        animation: rotate var(--spark) linear infinite both;
}

.spark:after {
	content: "";
	position: absolute;
	inset: var(--cut);
	border-radius: 2rem;
}

.backdrop {
	position: absolute;
	inset: var(--cut);
	background: var(--bg);
	border-radius: 2rem;
	transition: background var(--transition);
}

@-webkit-keyframes rotate {
	to {
		transform: rotate(90deg);
	}
}

@keyframes rotate {
	to {
		transform: rotate(90deg);
	}
}

@supports(selector(:has(:is(+ *)))) {
	body:has(button:is(:hover, :focus-visible)) {
		--active: 1;
		--play-state: running;
	}
	.bodydrop {
		display: none;
	}
}

button:is(:hover, :focus-visible) ~ :is(.bodydrop, .particle-pen) {
	--active: 1;
	--play-state: running;
}

.bodydrop {
	background: hsl(
		260
		calc(var(--active) * 97%)
		6%
	);
	position: fixed;
	inset: 0;
	z-index: -1
}

button:is(:hover, :focus-visible) {
	--active: 1;
	--play-state: running;
}

.galaxy-button {
	position: relative;
}

@-webkit-keyframes float-out {
	to {
		rotate: 360deg;
	}
}

@keyframes float-out {
	to {
		rotate: 360deg;
	}
}

.text {
	translate: 2% -6%;
	letter-spacing: 0.01ch;
	color: hsl(0 0% calc(60% + (var(--active) * 26%)));
}
.text a {
        text-decoration: none;
        color: inherit;

}
.text a:hover {
        text-decoration: underline;
        color: var(--teal);
        
}

button svg {
	inline-size: 1.25em;
	translate: -25% -5%;
}


/*end fantastic button*/



	* { margin: 0; padding: 0; box-sizing: border-box; }

	html { scroll-behavior: smooth; }

	body {
		background: var(--ink);
		color: var(--paper);
		font-family: "Inter", sans-serif;
		line-height: 1.55;
		overflow-x: hidden;
	}


/* Araignée qui descend et remonte */
     .spider {
        position: absolute;
        top: -100px; /* commence hors écran */
        animation: descend 4s ease-in-out infinite;
    }

    /* Fil de l'araignée */
    .thread {
        width: 2px;
        height: 100px;
        background: #ccc;
        margin: 0 auto;
    }

    /* Corps de l'araignée */
    .body {
        width: 30px;
        height: 30px;
        background: black;
        border-radius: 50%;
        position: relative;
        margin: 0 auto;
    }

    /* Yeux */
    .eye1 {
        width: 6px;
        height: 6px;
        background: rgb(245, 42, 42);
        border-radius: 50%;
        position: absolute;
        top: 8px;
    }
    .eye1.left1 { left: 6px; }
    .eye1.right1{ right: 6px; }

    /* Animation descente et remontée */
    @keyframes descend {
        0%, 100% { top: -100px; }
        50% { top: 200px; }
    }

    /* Plusieurs araignées avec délais différents */
    .spider:nth-child(1) { left: 20%; animation-delay: 0s; }
    .spider:nth-child(2) { left: 50%; animation-delay: 1s; }
    .spider:nth-child(3) { left: 80%; animation-delay: 2s; }





	body::before {
		content: "";
		position: fixed;
		inset: 0;
		background-image:
			radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
			radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.3), transparent),
			radial-gradient(1.5px 1.5px at 40% 80%, rgba(63,230,196,0.4), transparent),
			radial-gradient(1px 1px at 85% 15%, rgba(242,183,5,0.4), transparent),
			radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.25), transparent);
		background-size: 100% 100%;
		pointer-events: none;
		z-index: 0;
		opacity: 0.6;
	}

	.eyebrow {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.78rem;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: var(--teal);
	}

	section {
		position: relative;
		z-index: 1;
		max-width: 1080px;
		margin: 0 auto;
		padding: 6rem 2rem;
	}

	/* ===== HERO ===== */

	.hero {
		min-height: 92vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		position: relative;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.hero-eyebrow { margin-bottom: 1.5rem; }

	.hero h1 {
		font-family: "Unbounded", sans-serif;
		font-weight: 500;
		font-size: clamp(2.6rem, 7vw, 5.2rem);
		line-height: 1.03;
		letter-spacing: -0.01em;
	}

	.hero h1 .accent {
		background: linear-gradient(90deg, var(--teal), var(--gold));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}

	.hero p.lede {
		margin-top: 1.8rem;
		max-width: 34rem;
		font-size: 1.15rem;
		color: var(--paper-dim);
	}

	.hero-tags {
		margin-top: 2.2rem;
		display: flex;
		gap: 0.7rem;
		flex-wrap: wrap;
	}

	.hero-tags span {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.78rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		padding: 0.4rem 0.9rem;
		color: var(--paper-dim);
	}

	/* signature: veiled eye watching from the dark */
	.watcher {
		position: absolute;
		right: -4vw;
		top: 50%;
		transform: translateY(-50%);
		width: min(46vw, 480px);
		opacity: 0.9;
		z-index: 0;
	}

	@media (max-width: 860px) {
		.watcher { display: none; }
	}

	.watcher .pupil { animation: pulse 4s ease-in-out infinite; transform-origin: center; }
	.watcher .glow { animation: pulseGlow 4s ease-in-out infinite; }

	@keyframes pulse {
		0%, 100% { r: 34; }
		50% { r: 38; }
	}
	@keyframes pulseGlow {
		0%, 100% { opacity: 0.55; }
		50% { opacity: 0.9; }
	}

	@media (prefers-reduced-motion: reduce) {
		.watcher .pupil, .watcher .glow { animation: none; }
	}

	.scroll-cue {
		position: absolute;
		bottom: 1.5rem;
		left: 2rem;
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.72rem;
		color: var(--paper-dim);
		letter-spacing: 0.12em;
     
	}
    .scroll-cue  a {
        color: var(--paper-dim);
        text-decoration: none;
        font-size: 1rem;
    }

	/* ===== SECTION HEADERS ===== */

	.section-head { margin-bottom: 3rem; }

	.section-head h2 {
		font-family: "Unbounded", sans-serif;
		font-weight: 600;
		font-size: clamp(1.8rem, 4vw, 2.6rem);
		margin-top: 0.6rem;
	}

	.section-head p {
		margin-top: 0.8rem;
		color: var(--paper-dim);
		max-width: 32rem;
	}

	/* ===== ART GALLERY ===== */

	.gallery {
	display: flex;
	gap: 1.1rem;
	height: 800px; /* Ajustez selon vos besoins */
}

/* La grande image à gauche */
.gallery .big {
	flex: 1.2; /* Elle est 1.2 fois plus large que la partie droite */
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

/* Le wrapper qui contient les 3 images à droite */
.gallery .small-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.gallery .small-wrapper figure {
	flex: 1; /* Les 3 images se partagent équitablement la hauteur */
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(1.05);
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
    
}
.gallery img:hover {
    transform: scale(1.05);
    filter: saturate(1.2);
    
   
}

/* --- Les effets HOVER (identiques à vos anciens) --- */
.gallery figure::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px transparent;
	border-radius: 6px;
	transition: box-shadow 0.4s ease;
	pointer-events: none;
}
.gallery figure:hover::after {
	box-shadow: inset 0 0 0 1px var(--teal-dim), 0 0 26px var(--teal-dim);
}
.gallery figure:hover img {
	transform: scale(1.045);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 640px) {
	.gallery {
		flex-direction: column;
		height: auto;
	}
	.gallery .small-wrapper {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr; /* 3 colonnes en format carré */
		gap: 1.1rem;
		height: 200px; /* Pour forcer un format paysage sur mobile */
	}
}
    iframa {
    border-radius: 12px;
    border: none;
}
	.gallery-cta {
		margin-top: 2.2rem;
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.85rem;
		color: var(--teal);
		text-decoration: none;
		border-bottom: 1px solid var(--teal-dim);
		padding-bottom: 0.2rem;
		transition: border-color 0.3s ease;
	}
	.gallery-cta:hover { border-color: var(--teal); }

	@media (max-width: 640px) {
		.gallery { grid-template-columns: 1fr; grid-template-rows: none; }
		.gallery figure:nth-child(1) { grid-row: auto; aspect-ratio: 4/5; }
		.gallery figure { aspect-ratio: 4/5; }
	}
	@media (min-width: 641px) {
		.gallery { grid-template-rows: 1fr 1fr; height: 640px; }
	}

	/* ===== SITES ===== */

	.sites-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.2rem;
	}

	@media (max-width: 780px) {
		.sites-grid { grid-template-columns: 1fr; }
	}

	.site-card {
		background: var(--card);
		border: 1px solid var(--line);
		border-radius: 8px;
		padding: 1.8rem;
		display: flex;
		flex-direction: column;
		gap: 1rem;
		transition: border-color 0.3s ease, transform 0.3s ease;
	}

	.site-card:hover {
		border-color: var(--gold-dim);
		transform: translateY(-3px);
	}

	.site-card .tag {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.7rem;
		color: var(--gold);
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.site-card h3 {
		font-family: "Unbounded", sans-serif;
		font-weight: 600;
		font-size: 1.25rem;
	}

	.site-card p {
		color: var(--paper-dim);
		font-size: 0.92rem;
		flex-grow: 1;
	}

	.site-card .stack {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.72rem;
		color: var(--paper-dim);
		border-top: 1px solid var(--line);
		padding-top: 0.9rem;
	}

	/* ===== WRITING ===== */

	.story-card {
		display: grid;
		grid-template-columns: 0.85fr 1.15fr;
		gap: 0;
		border: 1px solid var(--line);
		border-radius: 8px;
		overflow: hidden;
		background: var(--card);
	}

	@media (max-width: 780px) {
		.story-card { grid-template-columns: 1fr; }
	}

	.story-image {
		position: relative;
		min-height: 340px;
	}

	.story-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.story-image::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, transparent 40%, rgba(10,11,18,0.85) 100%);
	}

	.story-body {
		padding: 2.6rem;
		display: flex;
		flex-direction: column;
	}

	.story-body .eyebrow { margin-bottom: 0.8rem; }

	.story-body h3 {
		font-family: "Unbounded", sans-serif;
		font-weight: 800;
		font-size: 2rem;
		color: var(--paper);
	}

	.story-body .kicker {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.78rem;
		color: var(--paper-dim);
		margin-top: 0.4rem;
		margin-bottom: 1.4rem;
	}

	.story-body blockquote {
		font-size: 0.98rem;
		color: var(--paper-dim);
		border-left: 2px solid var(--magenta);
		padding-left: 1.1rem;
		font-style: italic;
		max-height: 9.5rem;
		overflow: hidden;
		position: relative;
	}

	.story-body blockquote::after {
		content: "";
		position: absolute;
		bottom: 0; left: 0; right: 0;
		height: 2.4rem;
		background: linear-gradient(180deg, transparent, var(--card));
	}

	.story-cta {
		margin-top: 1.8rem;
		display: inline-flex;
		align-self: flex-start;
		align-items: center;
		gap: 0.6rem;
		background: var(--magenta);
		color: var(--ink);
		font-family: "IBM Plex Mono", monospace;
		font-weight: 500;
		font-size: 0.85rem;
		text-decoration: none;
		padding: 0.85rem 1.5rem;
		border-radius: 999px;
		transition: transform 0.25s ease, box-shadow 0.25s ease;
	}
	.story-cta:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(230, 62, 140, 0.35);
	}

	footer {
		position: relative;
		z-index: 1;
		text-align: center;
		padding: 3rem 2rem 4rem;
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.78rem;
		color: var(--paper-dim);
	}

	a:focus-visible, .site-card:focus-visible {
		outline: 2px solid var(--teal);
		outline-offset: 3px;
	}