/* Base style */
:root {
	--primary-color: #00ff9d;
	--secondary-color: #00f3ff;
	--highlight-color: #ff2d75;
	--bg-color: #0a192f;
	--text-color: #ccd6f6;
	--card-bg: #172a45;
	--primary-accent: #00f3ff;
	--snake-color: #00ff9d;
    --link-color: #4DFFDF;
}

/* Polices */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Exo+2:wght@300;500;700&display=swap');


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	cursor: none !important;;
}

html, body {
  height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: 'Segoe UI', sans-serif;
	overflow-x: hidden;
	cursor: none;
}

/* Application des polices */
body {
	font-family: 'Exo 2', sans-serif;
	font-weight: 300;
}

main {
  flex: 1;
}

footer {
	margin-top: auto;
	width: 100%;
	padding: 1rem;
	text-align: center;
	background: rgba(10, 25, 47, 0.9);
}

/* ============================= */
/*             Curseur           */
/* ============================= */
/* Curseur personnalisé */
.cursor {
	position: fixed;
	width: 20px;
	height: 20px;
	border: 2px solid var(--primary-color);
	box-shadow: 0 0 15px var(--primary-color), inset 0 0 5px var(--secondary-color);
	border-radius: 50%;
	pointer-events: none;
	z-index: 999;
	opacity: 0;
    transition: transform 0.01s, opacity 0.2s;
}

.cursor::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	/*border: 5px solid var(--primary-color);*/
	border-radius: 50%;
	opacity: 0.2;
	/*animation: cursorAnim 1.5s infinite;*/
	border: 5px solid var(--snake-color); /* Vert #8AFF8A */
    animation: cursorAnim 1.2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cursorAnim {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.5);
	}

	100% {
		transform: scale(1);
		opacity: 0;
	}
}

/* Traînées derrière le curseur   */
.cursor-trail {
	position: fixed;
	left: 0;
	top: 0;
	width: 8px;
	height: 8px;
	background: var(--primary-accent); /* Cyan #4DFFDF */
	box-shadow: 0 0 12px var(--primary-accent);
	border-radius: 50%;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	animation: trailFade 0.6s ease-out forwards;
	z-index: 500;
}

@keyframes trailFade {
	to {
		opacity: 0;
		transform: translate(-50%, -50%) scale(3);
	}
}

/* ============================= */
/*      Header et navigation     */
/* ============================= */
header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.glass-nav {
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 1rem 2rem;
	background: rgba(10, 25, 47, 0.9);
	backdrop-filter: blur(10px);
}

.glass-nav ul {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.glass-nav a {
	color: var(--text-color);
	text-decoration: none;
	position: relative;
	padding: 0.5rem 1rem;
	transition: color 0.3s;
}

.glass-nav a:hover {
	color: var(--text-color);
}

.glass-nav a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: width 0.3s;
}

.glass-nav a:hover::after {
	width: 100%;
}

/* Compensez le header */
#content {
	padding-top: 4rem;
	/* ajustez à la hauteur réelle + padding du header */
}

/* ========================== */
/*       Sections communes    */
/* ========================== */
.hero {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	padding: 2rem;
}

.hero h1 {
	font-size: 4rem;
	margin-bottom: 1rem;
	background: linear-gradient(45deg, #00ff88, #00ffee);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.content-section {
	padding: 4rem 2rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	flex-direction: column;
}

/* =========================== */
/*    Tech-card animations     */
/* =========================== */
.tech-card {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.card {
	background: rgba(255, 255, 255, 0.1);
	padding: 2rem;
	border-radius: 10px;
	margin: 1rem;
	backdrop-filter: blur(10px);
	transition: transform 0.3s, box-shadow 0.3s;
	max-width: 800px;
	width: 100%;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

pre code {
	display: block;
	padding: 1rem;
	background: #1a2a4a;
	border-radius: 8px;
	margin: 1rem 0;
}

/* ===================== */
/*      Team Style       */
/* ===================== */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.member-tag {
    font-weight: bold;
    color: var(--secondary-color);
    min-width: 6rem; 
    text-align: right;
    padding-top: 0.3rem;
}

.member-info {
    flex: 1;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.member-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.member-info p {
    margin: 0.3rem 0 0 0;
    color: var(--text-color);
    opacity: 0.9;
}

/* Ajoutez cette règle pour les liens globaux */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Indentation des listes */
ul, ol {
	padding-left: 2rem;  /* Décalage de 2rem vers la droite */
    margin: 1rem 0;      /* Espacement vertical */
}

/* Style spécifique pour les listes dans les feature-cards */
.feature-card ul {
    list-style-position: inside;  /* Garde les puces alignées avec le texte */
    padding-left: 1rem;          /* Légère indentation */
}

/* Style pour les listes numérotées */
ol {
    counter-reset: item;         /* Reset le compteur pour les listes ordonnées */
    list-style-position: inside; /* Garde les numéros alignés avec le texte */
}

/*====================== */
/*     Zone de code      */
/*====================== */

/* Zone de code copiable */
.code-container {
	position: relative;
	margin: 1.5rem 0;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	border-left: 4px solid var(--primary-color);
	overflow: hidden;
}

.code-container .copy-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.4);
	color: var(--text-color);
	border: none;
	border-radius: 4px;
	padding: 3px 8px;
	font-size: 0.8em;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	opacity: 0.6;
	transition: opacity 0.2s, background 0.2s;
}

.code-container .copy-btn:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.7);
}

.code-container pre {
	margin: 0;
	padding: 1rem 1.5rem;
	overflow-x: auto;
	font-family: 'Courier New', monospace;
	white-space: pre;
	line-height: 1.5;
	max-height: 400px;
}

.code-container .copy-success {
	background: rgba(0, 255, 157, 0.3) !important;
}

/* ========================== */
/*  Styles spécifiques pour   */
/*     la présentation        */
/* ========================== */
.context-section h3,
.functioning-section h3,
.technologies-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
}

.technologies-section dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1rem 2rem;
    margin: 1rem 0;
}

.technologies-section dt {
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 150px;
}

.technologies-section dd {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.play-steps li,
.play-steps ul {
	list-style: none;
	position: relative;
	margin: 1rem 0;
	padding-left: 1rem;
}

.play-steps>li::before {
	content: "➤";
	color: var(--primary-color);
	position: absolute;
	left: 0;
}


.functioning-section ul ul {
	list-style-type: circle;
}

.functioning-section ul ul ul {
	list-style-type: square;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4);
}

/* Styles spécifiques pour la page serveur */
.code-block {
    background-color: var(--bg-color-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block table {
    width: 100%;
    border-collapse: collapse;
}

.code-block td {
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
}

.code-block pre {
    margin: 0;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
}

.functioning-section h4 {
    color: var(--secondary-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.functioning-section ul ul {
    margin-left: 2rem;
    list-style-type: circle;
}

.functioning-section ul ul ul {
    list-style-type: square;
}