:root {
	/* Palette : Bleu Clair, Blanc et Or */
	--color-primary: #64C9FF; /* Bleu Clair (Accent principal) */
	--color-secondary: #FFD700; /* Doré (Touches de luxe/Or) */
	--color-dark: #1F2937; /* Gris Foncé/Bleu Nuit (Fond des cartes/Contraste) */
	--color-light: #FFFFFF; /* Blanc Pur (Fond du body et texte) */
	--color-text-on-dark: #FFFFFF; /* Texte sur fond sombre */
	--color-text-on-light: #1F2937; /* Texte sur fond clair */
}

/* 1. Global et Typographie */
body {
	font-family: 'Arial', sans-serif;
	background-color: var(--color-light); /* Fond du body en Blanc */
	color: var(--color-text-on-light); /* Texte en Gris Foncé sur fond Blanc */
	margin: 0;
	line-height: 1.6;
}

a {
	color: var(--color-primary); /* Liens en Bleu Clair */
	text-decoration: none;
	transition: color 0.3s;
}

/* 2. Header et Navigation */
.header {
	background-color: var(--color-dark); /* Header en Gris Foncé */
	color: var(--color-text-on-dark);
	padding: 15px 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 2px solid var(--color-secondary); /* Ligne Dorée */
}

.logo {
	/* Permet d'aligner l'image et le texte */
	display: flex;
	align-items: center;
	font-weight: bold;
}

/* Style pour l'image du logo (TAILLE DOUBLÉE) */
.logo-img {
	height: 110px; /* Taille doublée pour un grand impact */
	width: auto;
	margin-right: 15px;
}

/* Style pour le texte du logo (AtomicPunch) (TAILLE AUGMENTÉE) */
.logo-text {
	font-size: 3.2em; /* Taille doublée */
	color: var(--color-primary);
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* Touche d'or */
}


.navbar a {
	margin-left: 20px;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--color-text-on-dark);
}

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

/* 3. Section Hero (Accueil) */
.hero {
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	/* Fond sombre pour le contraste Hero */
	background: linear-gradient(rgba(31, 41, 55, 0.7), rgba(31, 41, 55, 0.9)), url('bg-gaming.jpg') no-repeat center center/cover;
	color: var(--color-text-on-dark);
	padding: 50px 20px;
}

	.hero h1 {
		font-size: 3.5em;
		color: var(--color-primary);
		text-shadow: 0 0 15px rgba(100, 201, 255, 0.7);
		margin-bottom: 10px;
	}

/* 4. Boutons CTA (Call to Action) */
.cta-button {
	background-color: var(--color-secondary);
	color: var(--color-dark);
	padding: 12px 30px;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	font-size: 1.1em;
	cursor: pointer;
	text-transform: uppercase;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
	transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

	.cta-button:hover {
		background-color: #ffe84d;
		transform: translateY(-3px);
		box-shadow: 0 8px 20px rgba(255, 215, 0, 0.8);
	}

	.cta-button.secondary {
		background-color: var(--color-primary);
		color: var(--color-dark);
		box-shadow: 0 5px 15px rgba(100, 201, 255, 0.5);
	}

		.cta-button.secondary:hover {
			background-color: #8ce1ff;
			box-shadow: 0 8px 20px rgba(100, 201, 255, 0.8);
		}


/* 5. Liste d'Événements (Accueil) */
.events-list {
	padding: 40px 5%;
	text-align: center;
	background-color: var(--color-light);
}

	.events-list h2 {
		color: var(--color-dark);
		margin-bottom: 30px;
		text-shadow: none;
	}

		.events-list h2 a {
			color: var(--color-dark); /* Le titre lui-même est sombre */
		}

			.events-list h2 a:hover {
				color: var(--color-primary); /* Surligné en Bleu */
			}

.section-description {
	color: var(--color-dark);
	margin-bottom: 40px;
	font-size: 1.1em;
}

#events-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.event-card {
	background-color: var(--color-dark);
	color: var(--color-text-on-dark);
	padding: 20px;
	border-radius: 10px;
	border-left: 5px solid var(--color-secondary);
	transition: background-color 0.3s, transform 0.2s;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

	.event-card:hover {
		background-color: #2e3a4b;
		transform: scale(1.03);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
	}

	.event-card h3 {
		color: var(--color-primary);
	}

/* 7. Section Équipe */
.team-section {
	padding: 60px 5%;
	text-align: center;
	background-color: #F0F0F0;
}

	.team-section h2, .team-section .section-description {
		color: var(--color-dark);
	}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
}

.member-card {
	background-color: var(--color-light);
	color: var(--color-text-on-light);
	padding: 20px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	text-align: center;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

	.member-card:hover {
		transform: translateY(-8px);
		box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 10px var(--color-secondary);
	}

.avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	margin: 0 auto 15px;
	border: 3px solid var(--color-secondary);
	overflow: hidden;
}

	.avatar img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 50%;
	}

.member-card h3 {
	margin: 10px 0 5px;
	color: var(--color-dark);
}

.role {
	font-weight: bold;
	color: var(--color-primary);
	text-transform: uppercase;
	font-size: 0.9em;
}

.description {
	font-size: 0.9em;
	color: #4a5568;
	margin-top: 10px;
}

/* 8. Footer */
.footer {
	background-color: var(--color-dark);
	color: var(--color-text-on-dark);
	text-align: center;
	padding: 20px;
	border-top: 1px solid var(--color-secondary);
}

/* ======================================================= */
/* 9. Styles Specifiques pour la Page AtomicLAN (lan.html) */
/* ======================================================= */

.lan-section {
	padding: 60px 5%;
	text-align: center;
}

	.lan-section .section-title {
		font-size: 3em;
		color: var(--color-primary); /* Bleu Clair */
		margin-bottom: 10px;
		text-shadow: 0 0 10px rgba(100, 201, 255, 0.4);
	}

	.lan-section .subtitle {
		font-size: 1.2em;
		color: var(--color-dark);
		margin-bottom: 40px;
	}

/* Subtitle sur fond sombre (hero-lan) */
.hero-lan .subtitle {
	color: rgba(255,255,255,0.75);
}

/* --- Section Prochaine Edition (Hero LAN) --- */
.hero-lan {
	background-color: var(--color-dark); /* Fond Gris Fonce */
	color: var(--color-text-on-dark); /* Texte Blanc */
	padding-top: 80px;
}

.key-info-grid {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-bottom: 50px;
}

.key-info-card {
	background-color: rgba(255, 255, 255, 0.1);
	border-top: 3px solid var(--color-secondary); /* Or */
	padding: 20px;
	border-radius: 8px;
	width: 250px;
	transition: transform 0.3s;
}

	.key-info-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
	}

	.key-info-card h3 {
		color: var(--color-primary); /* Bleu Clair */
		margin-top: 0;
		font-size: 1.3em;
	}

/* --- Details (Quoi de neuf) --- */
.lan-details {
	background-color: var(--color-light);
	color: var(--color-text-on-light);
}

	.lan-details h2 {
		color: var(--color-dark);
		font-size: 2em;
		margin-bottom: 40px;
	}

.features-grid {
	display: flex; /* Utiliser flex pour un seul element */
	justify-content: center;
	margin-top: 30px;
}

.feature-item {
	max-width: 800px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-align: left;
	transition: border-color 0.3s;
}

	.feature-item:hover {
		border-color: var(--color-primary);
		box-shadow: 0 4px 10px rgba(100, 201, 255, 0.2);
	}

	.feature-item h3 {
		color: var(--color-dark);
		border-left: 4px solid var(--color-secondary); /* Or */
		padding-left: 10px;
	}


/* --- Section Partenaires (MODIFIE POUR JS) --- */
.lan-partners {
	background-color: var(--color-dark);
	padding-top: 20px;
	padding-bottom: 20px;
}

.partner-carousel-js {
	display: flex;
	/* IMPORTANT : Definit la zone rectangulaire et cache le debordement */
	overflow: hidden;
	width: 100%;
	max-width: 1200px; /* Limiter la largeur du rectangle */
	margin: 30px auto; /* Centrer le rectangle */
	border: 2px solid var(--color-secondary); /* Bordure doree */
	border-radius: 10px;
	height: 120px; /* Hauteur fixe du rectangle */
}

/* L'element de défilement (partner-track) sera ajouté par JS */
.partner-track {
	display: flex;
	white-space: nowrap;
}

.partner-logo {
	height: 80px; /* Taille des logos dans le carrousel */
	margin: 0 30px;
	flex-shrink: 0;
	opacity: 0.8;
	transition: opacity 0.3s;
	align-self: center; /* Centrer verticalement dans le conteneur JS */
}

	.partner-logo:hover {
		opacity: 1;
	}

/* --- Section Historique (2025) --- */
.lan-history {
	background-color: #F0F0F0; /* Gris tres clair */
	color: var(--color-dark);
}

.history-stat-grid {
	display: flex;
	justify-content: center;
	gap: 50px;
	margin: 40px 0;
}

.stat-item {
	text-align: center;
}

.stat-number {
	font-size: 3em;
	font-weight: bold;
	color: var(--color-secondary); /* Or */
	text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.stat-label {
	color: var(--color-dark);
	font-size: 1.1em;
	margin-top: -5px;
}

.lan-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 40px 0;
}

.gallery-item {
	height: 250px;
	background-color: var(--color-dark);
	color: var(--color-text-on-dark);
	line-height: 250px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
}

.history-text {
	max-width: 800px;
	margin: 0 auto;
	color: var(--color-dark);
}

/* Règle pour le mobile */
@media (max-width: 768px) {
	.header {
		flex-direction: column;
	}

	.logo {
		margin-bottom: 10px;
	}

	.navbar a {
		margin: 5px 10px;
	}

	.hero h1 {
		font-size: 2.5em;
	}

	/* Ajustement pour le logo sur mobile */
	.logo-img {
		height: 70px;
		margin-right: 8px;
	}

	.logo-text {
		font-size: 2.2em;
	}

	/* Ajustements pour la page LAN sur mobile */
	.key-info-grid, .history-stat-grid {
		flex-direction: column;
		gap: 20px;
	}

	.lan-gallery {
		grid-template-columns: 1fr;
	}

	.lan-section .section-title {
		font-size: 2.2em;
	}
}

/* ═══════════════════════════════════════════════════════
   ENHANCEMENTS — Animations & Visual Polish
   ═══════════════════════════════════════════════════════ */

/* ── Global smooth transitions ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Scrollbar personnalisée ────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f1522; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

/* ── Hero amélioré ──────────────────────────────────────── */
.hero {
    overflow: hidden;
    background-attachment: fixed;
}
.hero h1 {
    animation: heroTitle .8s cubic-bezier(.22,1,.36,1) both;
}
.hero .cta-button {
    animation: heroCTA 1s .4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes heroTitle {
    from { opacity:0; transform: translateY(-30px); }
    to   { opacity:1; transform: translateY(0); }
}
@keyframes heroCTA {
    from { opacity:0; transform: scale(.92); }
    to   { opacity:1; transform: scale(1); }
}

/* Bouton CTA pulse subtil */
.cta-button {
    position: relative;
    overflow: hidden;
}
.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .25s;
}
.cta-button:hover::after { background: rgba(255,255,255,0.08); }

/* ── Header transition ──────────────────────────────────── */
.header {
    transition: background-color .3s ease, box-shadow .3s ease;
    backdrop-filter: blur(8px);
}

/* ── Cartes événement enrichies ────────────────────────── */
.event-card {
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, background .3s;
}
.event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.event-card:hover::before { transform: scaleX(1); }

/* ── Cartes membre enrichies ────────────────────────────── */
.member-card {
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.member-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform .35s ease;
}
.member-card:hover::after { transform: scaleX(1); }
.member-card:hover .avatar {
    border-color: var(--color-primary);
    transform: scale(1.06);
}
.avatar {
    transition: border-color .3s, transform .3s;
}

/* ── Key info cards ─────────────────────────────────────── */
.key-info-card {
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.key-info-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(100,201,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}
.key-info-card:hover::after { opacity: 1; }

/* ── Stat numbers pop ───────────────────────────────────── */
.stat-number {
    display: inline-block;
    transition: transform .2s;
}
.stat-item:hover .stat-number {
    transform: scale(1.08);
    text-shadow: 0 0 20px rgba(255,215,0,0.7);
}

/* ── Section LAN hero améliorée ─────────────────────────── */
.hero-lan {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0a0e16 0%, #111827 50%, #0d1525 100%);
}
.hero-lan::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(100,201,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-lan::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,215,0,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.lan-header-content {
    position: relative;
    z-index: 1;
}

/* ── Section titres LAN avec ligne déco ─────────────────── */
.lan-section h1.section-title,
.lan-section h2 {
    position: relative;
    display: inline-block;
}
.lan-section h1.section-title::after,
.lan-section h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
}

/* ── Inscription callout glow ───────────────────────────── */
.insc-callout {
    position: relative;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.insc-callout:hover {
    border-color: rgba(100,201,255,0.4);
    box-shadow: 0 0 40px rgba(100,201,255,0.08);
}
.insc-callout::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmer 3s 2s infinite;
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 160%; }
}

/* ── Carousel container ─────────────────────────────────── */
.partner-carousel-js {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,215,0,0.25);
}
.partner-carousel-js::before,
.partner-carousel-js::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.partner-carousel-js::before {
    left: 0;
    background: linear-gradient(90deg, rgba(16,23,33,1), transparent);
}
.partner-carousel-js::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(16,23,33,1), transparent);
}

/* ── Galerie photo hover ────────────────────────────────── */
.lan-gallery {
    position: relative;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ── CTA Section enhanced ───────────────────────────────── */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #1a2332 100%);
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(100,201,255,0.05), transparent 70%);
    pointer-events: none;
}
.cta-section h2, .cta-section p { position: relative; z-index: 1; }

/* ── Détails section ─────────────────────────────────────── */
.feature-item {
    border: 1px solid rgba(100,201,255,0.15);
    background: rgba(255,255,255,0.02);
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.feature-item:hover {
    border-color: rgba(100,201,255,0.4);
    box-shadow: 0 8px 32px rgba(100,201,255,0.1);
    transform: translateY(-4px);
}

/* ── Spots badge pulse ──────────────────────────────────── */
.spots-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.3); }
    50%       { box-shadow: 0 0 0 6px rgba(255,215,0,0); }
}

/* ── Bouton inscription glow ────────────────────────────── */
.btn-open-insc {
    position: relative;
    overflow: hidden;
}
.btn-open-insc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.btn-open-insc:hover::before { transform: translateX(100%); }

/* ── Nav link active indication ─────────────────────────── */
.navbar a {
    position: relative;
    padding-bottom: 2px;
}
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--color-secondary);
    transition: width .25s ease;
}
.navbar a:hover::after { width: 100%; }

/* ── Section history stats ──────────────────────────────── */
.lan-history {
    position: relative;
    overflow: hidden;
}
.lan-history::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(100,201,255,0.02) 0%, transparent 50%);
    pointer-events: none;
}
