:root{
  --bg:#0b0b0d;
  --panel:#0f1113;
  --panel-solid:#141517;
  --sidebar-width:260px;
  --muted:#9aa0a6;
  --accent:#ffb84d; /* warm amber, stage-light feel */
}
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;700&display=swap');

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Rajdhani',Inter,system-ui,Segoe UI,Roboto,'Helvetica Neue',Arial,sans-serif;background:linear-gradient(rgba(11,11,13,0.45), rgba(11,11,13,0.25)), url('/assets/exploitation/Event 1.jpg') center/cover fixed;color:#e8eef6;font-size:16px}
body{overflow-y:auto;animation:pageLoad 0.5s ease-out}
main{min-height:100vh;display:flex;flex-direction:column;justify-content:space-evenly;animation:contentSlide 0.6s ease-out}
body.home{overflow:hidden}
body.home main{height:100vh;overflow:hidden}

@keyframes pageLoad{
  from{opacity:0}
  to{opacity:1}
}

@keyframes contentSlide{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

.site-header{display:flex;justify-content:space-between;align-items:center;padding:18px 32px;background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);border-bottom:1px solid rgba(255,255,255,0.03);animation:slideFromLeft 0.5s ease-out;position:relative;z-index:100}
.brand{display:flex;align-items:center;gap:14px}
.brand h1{margin:0;line-height:1.2}
.brand-subtitle{margin:0;font-size:0.85rem;color:var(--muted);font-weight:400}
#logo{height:48px;width:auto;filter:drop-shadow(0 6px 18px rgba(0,0,0,0.6))}
.main-nav a{color:var(--muted);text-decoration:none;margin-left:18px;font-size:1rem}
.main-nav a:hover{color:var(--accent)}
.main-nav a.active{color:var(--accent);font-weight:500}
.hero{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:48px 32px}
.intro{max-width:60%}
.intro h2{font-size:2.2rem;margin:0 0 12px;color:#fff}
.intro p{color:var(--muted);line-height:1.6}
.cta{display:inline-block;margin-top:8px;padding:8px 18px;background:linear-gradient(90deg,var(--accent),#ff7a5c);color:#0b0b0d;border-radius:8px;text-decoration:none;font-size:0.95rem;font-weight:500}
.showcase{flex:1;display:flex;align-items:center;justify-content:center}
.home-hero{background:transparent;padding:48px 0 0 0;display:flex;align-items:center}
.home-hero .hero-inner{max-width:1200px;margin:0 auto;display:flex;gap:24px;align-items:stretch;padding:0 24px;min-height:300px;height:auto}
.hero-panels{flex:1;display:flex;flex-direction:column;gap:16px}
.panel{flex:1;background:rgba(0,0,0,0.45);padding:12px 18px;border-radius:8px;display:flex;flex-direction:column;justify-content:space-between}
.panel-secondary{display:flex;flex-direction:row;gap:16px;background:transparent;padding:0}
.panel-secondary .panel{flex:1;display:flex;flex-direction:column}
.panel-secondary .panel > div:nth-child(1){flex:0 0 auto}
.panel-secondary .panel > div:nth-child(2){flex:1 1 auto}
.panel-secondary .panel > div:nth-child(3){flex:0 0 auto}
.home-hero .panel h2,.home-hero .panel h3{color:#fff;text-shadow:0 4px 18px rgba(0,0,0,0.6);margin:6px 0;font-size:1.35rem;font-weight:500}
.home-hero .panel .lead{color:#f3f6f8;max-width:48rem;text-shadow:0 2px 10px rgba(0,0,0,0.6);margin:8px 0;font-size:1rem;line-height:1.4}
.home-hero .panel p{margin:8px 0;font-size:0.95rem}
.home-hero .panel ul{margin:8px 0;padding-left:20px;font-size:0.95rem;line-height:1.5}
.home-hero .panel .cta{margin:0 0 8px 0;display:inline-block}
.home-hero .panel p:has(.cta){margin:0;padding:0}
.home-hero .panel p:last-child{margin-bottom:0}
.hero-media{flex:0.4;display:flex;justify-content:center}
.hero-media img{width:100%;height:100%;object-fit:cover;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.02)}
/* center image by default, desktop crops via min-height; adjust percentage to crop more/less */
.hero-media img{object-position:50% 50%}
.light-strip{width:100%;height:180px;border-radius:12px;background:linear-gradient(90deg, rgba(255,184,77,0.12), rgba(125,85,255,0.08));box-shadow:0 8px 40px rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.02)}
.content{padding:32px}
.content h2{margin-bottom:8px}
.content p{margin-top:0}
/* Contact page full-width layout */
/* Contact page full-width layout */
.contact-page{padding:0;max-width:none;width:100%;box-sizing:border-box}
.contact-hero{width:100%;background:transparent;padding:48px 64px;box-sizing:border-box}
.contact-hero .hero-inner{max-width:1200px;margin:0 auto;color:#fff}
.contact-hero{position:relative;overflow:visible}
.contact-hero::after{content:"";display:none}
.contact-hero h2{font-size:2.4rem;margin:0 0 8px}
.contact-hero p{color:var(--muted);margin:0}
.contact-grid{display:flex;gap:36px;align-items:stretch;width:100%;margin:0;padding:36px 24px;box-sizing:border-box;position:relative;z-index:1;max-width:100%}
.contact-info{flex:0 0 35%;min-width:240px;background:var(--panel-solid);border:1px solid rgba(255,255,255,0.02);padding:24px;border-radius:12px;color:var(--muted);box-sizing:border-box;display:flex;flex-direction:column}
.contact-info h3{margin-top:0;color:#fff}
.contact-info ul{padding-left:18px}
.contact-panel{flex:1;min-width:320px;display:flex;flex-direction:column}
.contact-panel .contact-form{background:var(--panel-solid);padding:24px;border-radius:12px;width:100%;max-width:none;flex:1}
.contact-panel .contact-form label{display:block;color:var(--muted);margin-bottom:8px}
.contact-panel .contact-form input,.contact-panel .contact-form textarea{background:#0c0d0f;border:1px solid rgba(255,255,255,0.04);color:#eaf0ff;padding:10px;border-radius:8px;width:100%}
.form-actions{text-align:right;margin-top:8px}
.form-actions .cta{padding:12px 20px}
.gallery_wrapper {
	display: grid;
	grid-template-columns: repeat(18, 1fr);
	gap: 0.3em;
	width: calc(100vw - var(--sidebar-width) - 40px);
	max-width: 100%;
	margin: 15px auto;
	perspective: 1000px;
}

@keyframes fallIn {
	0% {
		transform: translateZ(-1000px) scale(0.3);
		opacity: 0;
	}
	100% {
		transform: translateZ(0) scale(1);
		opacity: 1;
	}
}

.gallery_wrapper > * {
	grid-column: span 2;
	margin-block: calc(-25% / 1.732);
	background: var(--panel-solid);
	aspect-ratio: 1/1.1547;
	border-radius: 50%/25%;
	corner-shape: bevel;
	transition: scale 150ms ease-in-out, box-shadow 150ms ease-in-out, opacity 150ms ease-in-out;
	overflow: visible;
	border: 2px solid rgba(255,184,77,0.6);
	position: relative;
	box-shadow: 0 0 0 var(--sh, 0) rgba(255,184,77,0.3);
	animation: fallIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.gallery_wrapper > *[data-name="Verde Beach"] {
	background-color: #ffffff !important;
}

.gallery_wrapper > * > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	padding: 0;
	border-radius: 50%/25%;
	overflow: hidden;
}
}

.gallery_wrapper > *:nth-child(1) { animation-delay: 0.05s; }
.gallery_wrapper > *:nth-child(2) { animation-delay: 0.15s; }
.gallery_wrapper > *:nth-child(3) { animation-delay: 0.08s; }
.gallery_wrapper > *:nth-child(4) { animation-delay: 0.22s; }
.gallery_wrapper > *:nth-child(5) { animation-delay: 0.12s; }
.gallery_wrapper > *:nth-child(6) { animation-delay: 0.18s; }
.gallery_wrapper > *:nth-child(7) { animation-delay: 0.03s; }
.gallery_wrapper > *:nth-child(8) { animation-delay: 0.25s; }
.gallery_wrapper > *:nth-child(9) { animation-delay: 0.10s; }
.gallery_wrapper > *:nth-child(10) { animation-delay: 0.20s; }
.gallery_wrapper > *:nth-child(11) { animation-delay: 0.07s; }
.gallery_wrapper > *:nth-child(12) { animation-delay: 0.28s; }
.gallery_wrapper > *:nth-child(13) { animation-delay: 0.14s; }
.gallery_wrapper > *:nth-child(14) { animation-delay: 0.24s; }
.gallery_wrapper > *:nth-child(15) { animation-delay: 0.11s; }
.gallery_wrapper > *:nth-child(16) { animation-delay: 0.30s; }
.gallery_wrapper > *:nth-child(17) { animation-delay: 0.06s; }
.gallery_wrapper > *:nth-child(18) { animation-delay: 0.19s; }
.gallery_wrapper > *:nth-child(19) { animation-delay: 0.32s; }
.gallery_wrapper > *:nth-child(20) { animation-delay: 0.16s; }
.gallery_wrapper > *:nth-child(21) { animation-delay: 0.09s; }
.gallery_wrapper > *:nth-child(22) { animation-delay: 0.26s; }
.gallery_wrapper > *:nth-child(23) { animation-delay: 0.13s; }
.gallery_wrapper > *:nth-child(24) { animation-delay: 0.21s; }
.gallery_wrapper > *:nth-child(25) { animation-delay: 0.17s; }
.gallery_wrapper > *:nth-child(26) { animation-delay: 0.29s; }
.gallery_wrapper > *:nth-child(27) { animation-delay: 0.04s; }
.gallery_wrapper > *:nth-child(28) { animation-delay: 0.23s; }
.gallery_wrapper > *:nth-child(29) { animation-delay: 0.27s; }
.gallery_wrapper > *:nth-child(30) { animation-delay: 0.31s; }
.gallery_wrapper > *:nth-child(31) { animation-delay: 0.02s; }
.gallery_wrapper > *:nth-child(32) { animation-delay: 0.33s; }
.gallery_wrapper > *:nth-child(33) { animation-delay: 0.35s; }
.gallery_wrapper > *:nth-child(34) { animation-delay: 0.34s; }

.gallery_wrapper > *:nth-child(17n + 10) {
	grid-column-end: 4;
}

.gallery_wrapper > * > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	padding: 0;
}

.gallery_wrapper > *:hover {
	scale: 1.5;
	--sh: 1em;
	z-index: 100;
	transition-duration: 500ms;
	overflow: visible;
}

.gallery_wrapper > *:hover::after {
	content: attr(data-name);
	position: absolute;
	top: -50px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.95);
	color: var(--accent);
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
	border: 2px solid var(--accent);
	z-index: 200;
	pointer-events: none;
}

.gallery_wrapper > .empty {
	background: linear-gradient(135deg, rgba(255,184,77,0.15), rgba(255,123,92,0.15));
	border-color: rgba(255,184,77,0.3);
}

.gallery_wrapper > .empty:nth-child(3n) {
	background: linear-gradient(135deg, rgba(255,184,77,0.2), rgba(255,123,92,0.2));
	border-color: rgba(255,184,77,0.4);
}

@keyframes zIndexFix {
	0%,
	100% {
		z-index: 10;
	}
}

.client{text-align:center}
.client p{margin:12px 0 0;color:var(--muted);font-size:0.9rem}
.contact-form{display:grid;gap:12px;max-width:none}
.contact-form input,.contact-form textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.06);background:var(--panel);color:#eaf0ff}
.contact-form button{background:var(--accent);border:none;padding:10px 14px;border-radius:8px;color:#071018;cursor:pointer}
.site-footer{padding:0 32px;border-top:1px solid rgba(255,255,255,0.02);color:var(--muted);font-size:0.9rem;flex:0 0 auto}

/* Sidebar Layout */
.sidebar-layout {
  min-height: 100vh;
}

.site-sidebar {
  width: 260px;
  background: var(--panel-solid);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
}

.sidebar-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sidebar-brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.sidebar-menu {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-menu::-webkit-scrollbar {
  width: 8px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 77, 0.3);
  border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 77, 0.5);
}

.sidebar-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding-left: 28px;
}

.sidebar-menu a.active {
  background: rgba(255, 184, 77, 0.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrapper > main {
  flex: 1;
}

/* About page styles */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  width: 100%;
}

.section-container{background:rgba(20,21,23,0.6);padding:24px;border-radius:12px;border:1px solid rgba(255,184,77,0.15);margin:32px 0;backdrop-filter:blur(10px)}
.section-container h3{margin-top:0;color:var(--accent);font-size:1.5rem;margin-bottom:20px}
.skills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:24px 0}
.skill-category{background:var(--panel-solid);padding:20px;border-radius:10px;border:1px solid rgba(255,255,255,0.02)}
.skill-category h4{margin:0 0 12px;color:var(--accent);font-size:1.1rem}
.skill-category ul{margin:0;padding:0;list-style:none}
.skill-category ul li{padding:6px 0;color:var(--muted);border-bottom:1px solid rgba(255,255,255,0.02)}
.skill-category ul li:last-child{border-bottom:none}

/* Experience carousel */
.experience-carousel{position:relative;margin:24px 0;padding:0 60px}
.experience-carousel-wrapper{overflow:hidden;border-radius:12px}
.experience-carousel-track{display:flex;gap:16px;transition:transform 0.4s ease-in-out}
.experience-carousel-track .experience-item{min-width:calc(50% - 8px);height:400px;margin:0;flex-shrink:0;display:flex;flex-direction:column;overflow-y:auto}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:var(--panel-solid);border:2px solid rgba(255,184,77,0.6);color:var(--accent);font-size:1.5rem;width:50px;height:50px;border-radius:50%;cursor:pointer;transition:all 0.3s ease;z-index:10;display:flex;align-items:center;justify-content:center;padding:0}
.carousel-btn:hover{background:var(--accent);color:var(--bg);border-color:var(--accent);box-shadow:0 0 20px rgba(255,184,77,0.4)}
.carousel-btn.prev{left:0}
.carousel-btn.next{right:0}

/* Education carousel */
.education-carousel{position:relative;margin:24px 0;padding:0 60px}
.education-carousel-wrapper{overflow:hidden;border-radius:12px}
.education-carousel-track{display:flex;gap:16px;transition:transform 0.4s ease-in-out}
.education-carousel-track .education-item{min-width:calc(50% - 8px);height:100px;margin:0;flex-shrink:0;display:flex;flex-direction:column;overflow-y:auto}

.experience-item,.education-item{margin:24px 0;padding:20px;background:var(--panel-solid);border-radius:10px;border:1px solid rgba(255,255,255,0.02)}
.experience-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.experience-header strong{color:#fff;font-size:1.1rem}
.experience-header .period{color:var(--accent);font-size:0.9rem;font-weight:500}
.experience-item .company,.education-item .company{color:var(--muted);margin:0 0 12px;font-style:italic}
.experience-item ul{margin:8px 0 0;padding-left:20px;color:var(--muted)}
.experience-item ul li{margin:6px 0;line-height:1.5}

@media (max-width:768px){
  .skills-grid{grid-template-columns:1fr}
  .experience-header{flex-direction:column;align-items:flex-start}
  .experience-header .period{margin-top:4px}
}


.services{padding:0;background:transparent;flex:0 0 auto}
.services-inner{max-width:1200px;margin:0 auto;padding:0 24px}
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:0}
.service{background:var(--panel-solid);padding:16px;border-radius:10px;border:1px solid rgba(255,255,255,0.02);text-decoration:none;color:inherit;display:block;transition:all 0.3s ease}
.service:hover{transform:translateY(-4px);border-color:rgba(255,184,77,0.4);box-shadow:0 8px 30px rgba(0,0,0,0.4)}
.service h4{margin:0 0 8px;font-size:1.1rem;color:#fff}
.service p{min-height:42px;font-size:0.9rem;margin:0 0 10px;line-height:1.4;color:var(--muted)}
.service img.service-thumb{width:100%;height:120px;object-fit:cover;border-radius:6px;margin-top:0;border:1px solid rgba(255,255,255,0.03);display:block}
@media (max-width:800px){.hero{flex-direction:column}.intro{max-width:100%}}

@media (max-width:900px){
  .contact-grid{flex-direction:column}
  .contact-info{order:2}
  .contact-panel{order:1}
}

/* Left vertical sidebar for wide screens */
@media (min-width:900px){
  .site-header{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar-width);flex-direction:column;align-items:flex-start;padding:24px 20px;background:var(--panel-solid);border-right:1px solid rgba(255,255,255,0.02);z-index:1000;justify-content:flex-start;animation:slideFromLeft 0.5s ease-out}
  .brand{flex-direction:column;align-items:center;gap:4px;width:100%}
  .brand img{display:block;margin:0 auto}
  .brand h1{font-size:1.3rem;margin:0;text-align:center;line-height:1.2}
  .brand-subtitle{font-size:0.85rem;text-align:center;color:var(--muted)}
  .main-nav{display:flex;flex-direction:column;margin-top:auto;width:100%;margin-bottom:16px}
  .main-nav a{display:block;padding:10px 12px;margin:5px 0;border-radius:8px;color:var(--muted);margin-left:0;font-size:1rem}
  .main-nav a:hover{background:rgba(255,255,255,0.02);color:#fff}
  .main-nav a.active{background:rgba(255,184,77,0.1);color:var(--accent);font-weight:500}
  /* offset main content so it's not covered by the sidebar */
  main, .content, #main{margin-left:var(--sidebar-width);}
  .contact-page{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));}
  .skip-link:focus{left:calc(var(--sidebar-width) + 16px)}
}

@media (max-width:900px){
  .home-hero .hero-inner{flex-direction:column;min-height:160px}
  .services-grid{grid-template-columns:1fr}
}

/* Contact details: map, gallery, faq */
.contact-details{width:100%;max-width:none;margin:0;padding:32px 0;display:grid;grid-template-columns:1fr 1fr;gap:28px}
/* ensure children stretch and have internal padding */
.contact-details > *{padding:0 24px;box-sizing:border-box}
.contact-map iframe{width:100%;height:320px;border-radius:10px;border:1px solid rgba(255,255,255,0.04)}
.contact-gallery .gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gallery-grid .thumb{width:100%;height:120px;object-fit:cover;border-radius:8px;background:var(--panel-solid);border:1px solid rgba(255,255,255,0.03)}
.contact-faq details{background:var(--panel-solid);padding:12px;border-radius:8px;margin-bottom:10px}
.contact-faq summary{cursor:pointer}

@media (max-width:900px){
  .contact-details{grid-template-columns:1fr}
}

/* Accessibility: visible skip link for keyboard users */
.skip-link{
  position:fixed;
  left:-9999px;
  top:0;
  width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  left:16px;top:16px;width:auto;height:auto;padding:8px 12px;background:#fff;color:#071018;border-radius:6px;z-index:9999;box-shadow:0 4px 12px rgba(0,0,0,0.4);text-decoration:none
}
/* Encodage page styles */
.encodage-page{padding:32px;margin-left:var(--sidebar-width);max-width:1400px;width:calc(100vw - var(--sidebar-width) - 64px)}
.page-intro{text-align:center;max-width:900px;margin:0 auto 48px;background:rgba(20,21,23,0.8);padding:32px;border-radius:12px;backdrop-filter:blur(10px);border:1px solid rgba(255,184,77,0.1)}
.page-intro h2{font-size:2.5rem;color:#fff;margin:0 0 16px;text-shadow:0 4px 18px rgba(0,0,0,0.6)}
.page-intro .lead{font-size:1.15rem;line-height:1.7;color:#e8eef6}
.console-grid{display:flex;flex-direction:column;gap:40px;margin-bottom:60px}
.console-card{display:grid;grid-template-columns:400px 1fr;gap:28px;background:rgba(20,21,23,0.7);padding:28px;border-radius:16px;border:2px solid rgba(255,184,77,0.2);backdrop-filter:blur(10px);transition:all 0.3s ease}
.console-card:hover{border-color:rgba(255,184,77,0.4);box-shadow:0 8px 40px rgba(255,184,77,0.15);transform:translateY(-4px)}
.console-image{position:relative;overflow:hidden;border-radius:12px;border:2px solid rgba(255,255,255,0.05)}
.console-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.4s ease}
.console-card:hover .console-image img{transform:scale(1.05)}
.console-content h3{margin:0 0 8px;font-size:2rem;color:var(--accent);text-shadow:0 2px 10px rgba(255,184,77,0.3)}
.console-tagline{font-size:1.1rem;color:#fff;font-style:italic;margin:0 0 16px;font-weight:500}
.console-content p{line-height:1.7;color:var(--muted);margin:0 0 20px}
.features-list{list-style:none;padding:0;margin:0 0 20px}
.features-list li{padding:10px 0 10px 28px;position:relative;color:var(--muted);line-height:1.5;border-bottom:1px solid rgba(255,255,255,0.04)}
.features-list li:last-child{border-bottom:none}
.features-list li:before{content:"▸";position:absolute;left:0;color:var(--accent);font-size:1.2rem;font-weight:700}
.experience-note{background:rgba(255,184,77,0.08);padding:16px;border-radius:8px;border-left:4px solid var(--accent);font-style:italic;color:#e8eef6;margin:0}
.services-highlight{background:linear-gradient(135deg,rgba(255,184,77,0.1),rgba(255,123,92,0.08));padding:40px;border-radius:16px;border:2px solid rgba(255,184,77,0.3);margin-top:60px}
.services-highlight h3{text-align:center;font-size:2rem;color:#fff;margin:0 0 32px;text-shadow:0 2px 10px rgba(0,0,0,0.5)}
.services-highlight .services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.service-item{background:var(--panel-solid);padding:24px;border-radius:12px;border:1px solid rgba(255,255,255,0.05);transition:all 0.3s ease}
.service-item:hover{border-color:rgba(255,184,77,0.4);transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,0.4)}
.service-item h4{margin:0 0 12px;color:var(--accent);font-size:1.3rem}
.service-item p{margin:0;line-height:1.6;color:var(--muted)}

@media (max-width:1200px){
  .console-card{grid-template-columns:1fr;gap:24px}
  .console-image{height:300px}
  .services-highlight .services-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:900px){
  .encodage-page{margin-left:0;width:100%;padding:24px}
  .services-highlight .services-grid{grid-template-columns:1fr}
}


/* Conception page styles - Column layout */
.conception-page{padding:32px;margin-left:var(--sidebar-width);max-width:1400px;width:calc(100vw - var(--sidebar-width) - 64px)}
.conception-columns{display:grid;grid-template-columns:1fr 400px;gap:40px;margin-bottom:60px}
.column-text{display:flex;flex-direction:column;gap:40px}
.conception-section{background:rgba(20,21,23,0.85);padding:28px;border-radius:12px;border:1px solid rgba(255,184,77,0.15);backdrop-filter:blur(10px)}
.section-icon{font-size:2.5rem;margin-bottom:16px}
.conception-section h3{margin:0 0 12px;font-size:1.6rem;color:var(--accent);text-shadow:0 2px 10px rgba(255,184,77,0.3)}
.conception-section p{line-height:1.7;color:#e8eef6;margin:0 0 16px}
.column-images{position:relative}
.sticky-images{position:sticky;top:100px;display:flex;flex-direction:column;gap:20px}
.sticky-images img{width:100%;border-radius:12px;border:2px solid rgba(255,184,77,0.2);display:block}

@media (max-width:1200px){
  .conception-columns{grid-template-columns:1fr;gap:24px}
  .sticky-images{position:relative;top:0}
}

@media (max-width:900px){
  .conception-page{margin-left:0;width:100%;padding:24px}
}

/* Exploitation page styles - Card layout */
.exploitation-page{padding:32px;margin-left:var(--sidebar-width);max-width:1200px;width:calc(100vw - var(--sidebar-width) - 64px)}
.exploitation-hero{margin-bottom:40px;border-radius:16px;overflow:hidden;border:2px solid rgba(255,184,77,0.3)}
.exploitation-hero img{width:100%;height:400px;object-fit:cover;display:block}
.exploitation-cards{display:flex;flex-direction:column;gap:30px;margin-bottom:60px}
.exploit-card{background:rgba(20,21,23,0.85);padding:32px;border-radius:12px;border:2px solid rgba(255,184,77,0.2);backdrop-filter:blur(10px);position:relative}
.card-number{position:absolute;top:-15px;left:32px;width:60px;height:60px;background:linear-gradient(135deg,var(--accent),#ff7a5c);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:700;color:#000;box-shadow:0 4px 15px rgba(255,184,77,0.4)}
.exploit-card h3{margin:20px 0 12px;font-size:1.8rem;color:var(--accent)}
.exploit-card p{line-height:1.7;color:#e8eef6;margin:0 0 16px}
.exploit-card.full-width .card-content-split{display:grid;grid-template-columns:1fr 350px;gap:32px;align-items:center;margin-top:16px}
.split-right img{width:100%;border-radius:8px;border:2px solid rgba(255,184,77,0.2)}

@media (max-width:1000px){
  .exploitation-hero img{height:300px}
  .exploit-card.full-width .card-content-split{grid-template-columns:1fr;gap:20px}
}

@media (max-width:900px){
  .exploitation-page{margin-left:0;width:100%;padding:24px}
}

/* Installation page styles - Timeline layout */
.installation-page{padding:32px;margin-left:var(--sidebar-width);max-width:1200px;width:calc(100vw - var(--sidebar-width) - 64px)}
.installation-timeline{display:flex;flex-direction:column;gap:0;margin-bottom:60px}
.timeline-step{display:grid;grid-template-columns:80px 1fr;gap:0}
.step-marker{display:flex;flex-direction:column;align-items:center}
.step-number{width:60px;height:60px;background:linear-gradient(135deg,var(--accent),#ff7a5c);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:700;color:#000;box-shadow:0 4px 15px rgba(255,184,77,0.4);z-index:2}
.step-line{width:3px;flex:1;background:linear-gradient(180deg,rgba(255,184,77,0.6),rgba(255,184,77,0.2));margin-top:10px}
.timeline-step:last-child .step-line{display:none}
.step-content{padding-left:20px;padding-bottom:40px}
.step-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:20px}
.step-header h3{margin:0;font-size:1.8rem;color:var(--accent)}
.step-label{background:rgba(255,184,77,0.15);padding:4px 12px;border-radius:20px;font-size:0.85rem;color:var(--accent);border:1px solid rgba(255,184,77,0.3)}
.step-body{background:rgba(20,21,23,0.85);padding:28px;border-radius:12px;border:1px solid rgba(255,184,77,0.15);backdrop-filter:blur(10px);display:grid;grid-template-columns:1fr 350px;gap:28px}
.step-text p{line-height:1.7;color:#e8eef6;margin:0 0 16px}
.step-image{border-radius:8px;overflow:hidden;border:2px solid rgba(255,184,77,0.2)}
.step-image img{width:100%;height:100%;object-fit:cover;display:block}

@media (max-width:1100px){
  .step-body{grid-template-columns:1fr;gap:20px}
  .step-image{height:250px}
}

@media (max-width:900px){
  .installation-page{margin-left:0;width:100%;padding:24px}
  .timeline-step{grid-template-columns:60px 1fr}
  .step-number{width:50px;height:50px;font-size:1.5rem}
}

@keyframes slideFromLeft{
  from{opacity:0;transform:translateX(-20px)}
  to{opacity:1;transform:translateX(0)}
}

/* Sidebar Auth Styles */
.sidebar-auth-section{
  padding:16px;
  border-top:1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
}
.sidebar-login-text{
  font-size:0.85rem;
  color:var(--muted);
  margin:0 0 12px;
  line-height:1.4;
}
.sidebar-user-section{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.sidebar-user-info{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:rgba(255,255,255,0.03);
  border-radius:8px;
}
.sidebar-user-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),#ff7a5c);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.2rem;
  color:var(--panel-solid);
}
.sidebar-user-details{
  flex:1;
}
.sidebar-user-name{
  font-weight:600;
  color:#fff;
  font-size:0.95rem;
}
.sidebar-user-role{
  font-size:0.8rem;
  color:var(--muted);
}
.sidebar-auth-buttons{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sidebar-btn{
  padding:8px 16px;
  border-radius:6px;
  font-size:0.85rem;
  font-weight:600;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
  border:none;
  transition:all 0.3s ease;
  display:block;
}
.sidebar-btn-login{
  background:linear-gradient(135deg,var(--accent),#ff7a5c);
  color:var(--panel-solid);
}
.sidebar-btn-login:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(255,184,77,0.3);
}
.sidebar-btn-profile{
  background:rgba(59,130,246,0.15);
  border:1px solid rgba(59,130,246,0.3);
  color:#3b82f6;
}
.sidebar-btn-profile:hover{
  background:rgba(59,130,246,0.25);
}
.sidebar-btn-admin{
  background:rgba(239,68,68,0.15);
  border:1px solid rgba(239,68,68,0.3);
  color:#ef4444;
}
.sidebar-btn-admin:hover{
  background:rgba(239,68,68,0.25);
}
.sidebar-btn-logout{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:var(--text-primary);
}
.sidebar-btn-logout:hover{
  background:rgba(255,255,255,0.1);
}

/* Header Auth Button (pour pages avec header horizontal) */
.header-auth-btn{
  padding:8px 16px;
  background:linear-gradient(135deg,var(--accent),#ff7a5c);
  border-radius:6px;
  color:var(--panel-solid);
  text-decoration:none;
  font-size:0.9rem;
  font-weight:600;
  transition:all 0.3s ease;
  display:inline-block;
}
.header-auth-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(255,184,77,0.3);
}
.header-user-menu{
  display:flex;
  align-items:center;
  gap:12px;
}
.header-user-info{
  font-size:0.9rem;
  color:var(--muted);
}
.header-user-info strong{
  color:var(--accent);
}
.header-dropdown{
  position:relative;
}
.header-dropdown-toggle{
  padding:8px 16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:6px;
  color:var(--text-primary);
  cursor:pointer;
  font-size:0.9rem;
  font-weight:600;
}
.header-dropdown-menu{
  position:absolute;
  bottom:calc(100% + 8px);
  left:0;
  background:var(--panel-solid);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  padding:8px;
  min-width:200px;
  display:none;
  box-shadow:0 4px 16px rgba(0,0,0,0.3);
  z-index:1000;
}
.header-dropdown-menu.active{
  display:block;
}
.header-dropdown-menu a,
.header-dropdown-menu button{
  display:block;
  width:100%;
  padding:10px 14px;
  text-align:left;
  text-decoration:none;
  color:var(--text-primary);
  background:transparent;
  border:none;
  border-radius:6px;
  cursor:pointer;
  font-size:0.9rem;
  transition:background 0.2s ease;
}
.header-dropdown-menu a:hover,
.header-dropdown-menu button:hover{
  background:rgba(255,255,255,0.08);
}
.header-dropdown-menu .admin-link{
  color:#ef4444;
}
.header-dropdown-menu .logout-link{
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,0.1);
  margin-top:4px;
  padding-top:12px;
}

/* Template system - Loading & Error states */
.loading{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:60vh;
  color:var(--muted);
  font-size:1.2rem;
}
.loading::after{
  content:'';
  display:inline-block;
  width:20px;
  height:20px;
  margin-left:10px;
  border:3px solid rgba(255,184,77,0.3);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}
.error{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:60vh;
  color:#ef4444;
  font-size:1.2rem;
}

/* Page sections génériques */
.page-section{
  padding:48px 24px;
  max-width:1200px;
  margin:0 auto;
}
.content-inner{
  background:rgba(0,0,0,0.45);
  padding:32px;
  border-radius:12px;
}
.page-section h1{
  font-size:2.5rem;
  margin:0 0 16px;
  color:#fff;
}
.page-section .lead{
  font-size:1.3rem;
  color:var(--muted);
  margin:0 0 32px;
}
.service-details h2{
  color:var(--accent);
  margin:32px 0 16px;
}
.service-details ul{
  list-style:none;
  padding:0;
}
.service-details ul li{
  padding:8px 0;
  padding-left:24px;
  position:relative;
}
.service-details ul li::before{
  content:'▸';
  position:absolute;
  left:0;
  color:var(--accent);
}
.cta-section{
  margin-top:32px;
  text-align:center;
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: var(--panel-solid);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 184, 77, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(255, 184, 77, 0.4);
  border-color: rgba(255, 184, 77, 0.3);
}

.feature-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-content {
  padding: 24px;
}

.feature-content h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.approach-section {
  margin-top: 48px;
  padding: 24px;
  background: rgba(255, 184, 77, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.approach-section h2 {
  margin-top: 0;
}

/* GameInLight Console Categories */
.console-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.category-card {
  background: var(--panel-solid);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 184, 77, 0.2);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 32px rgba(255, 184, 77, 0.4);
  border-color: var(--accent);
}

.category-header {
  background: #ffffff;
  padding: 32px;
  text-align: center;
}

.console-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.category-header h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
}

.category-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-content > p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.game-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e8eef6;
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.btn-play {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(90deg, var(--accent), #ff7a5c);
  color: #0b0b0d;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: auto;
}

.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.5);
}

.game-info {
  background: rgba(255, 184, 77, 0.05);
  padding: 32px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  margin-top: 48px;
}

.game-info h2 {
  color: var(--accent);
  margin-top: 0;
}

.game-info p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* GrandMA2 Game Page Styles */
.game-header {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(255, 123, 92, 0.1));
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 48px;
  border: 2px solid rgba(255, 184, 77, 0.2);
}

.game-console-info {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.game-console-logo {
  width: 150px;
  height: auto;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
}

.game-title-section h1 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 2.5rem;
}

.game-title-section .lead {
  margin: 0;
  color: var(--muted);
}

.player-stats {
  display: flex;
  gap: 24px;
  justify-content: space-around;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  min-width: 150px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

.difficulty-section {
  margin-bottom: 64px;
}

.difficulty-header {
  padding: 24px 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  border-left: 6px solid;
}

.difficulty-header.beginner {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

.difficulty-header.intermediate {
  background: rgba(255, 152, 0, 0.1);
  border-color: #ff9800;
}

.difficulty-header.expert {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
}

.difficulty-header h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 2rem;
}

.difficulty-header p {
  margin: 0;
  color: var(--muted);
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.challenge-card {
  background: var(--panel-solid);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid rgba(255, 184, 77, 0.1);
  transition: all 0.3s ease;
}

.challenge-card:hover {
  border-color: rgba(255, 184, 77, 0.4);
  box-shadow: 0 8px 24px rgba(255, 184, 77, 0.2);
  transform: translateY(-4px);
}

.challenge-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  text-align: center;
}

.challenge-card h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.5rem;
  text-align: center;
}

.challenge-description {
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.challenge-levels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.level-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.level-item:hover {
  background: rgba(255, 184, 77, 0.1);
  border-left-color: var(--accent);
}

.level-item.completed {
  background: rgba(76, 175, 80, 0.2);
  border-left-color: #4caf50;
}

.level-item.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.level-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #0b0b0d;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}

.level-item.completed .level-number {
  background: #4caf50;
  color: #fff;
}

.level-item.locked .level-number {
  background: rgba(255, 184, 77, 0.3);
}

.level-title {
  color: #e8eef6;
  font-size: 0.95rem;
}

.level-item.locked .level-title {
  color: var(--muted);
}

.level-points {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.challenge-start-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--accent), #ff7a5c);
  color: #0b0b0d;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.5);
}

/* Success Message Animation */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.success-content {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
  padding: 48px 64px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  border: 3px solid #4caf50;
}

.success-icon {
  font-size: 5rem;
  color: #fff;
  margin-bottom: 16px;
}

.success-text {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.success-points {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
}

/* Challenge Tools Buttons */
.challenge-tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.3);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: rgba(255, 184, 77, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

.tool-icon {
  font-size: 1.1rem;
}

/* Course Modal */
.course-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: auto;
  padding: 20px;
}

.course-modal.show {
  opacity: 1;
}

.course-modal-content {
  background: var(--panel-solid);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(255, 184, 77, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.course-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 2px solid rgba(255, 184, 77, 0.2);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(255, 123, 92, 0.1));
}

.course-modal-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1.8rem;
}

.course-close-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef6;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.course-close-btn:hover {
  background: rgba(255, 184, 77, 0.2);
  color: var(--accent);
}

.course-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.course-section {
  margin-bottom: 40px;
}

.course-section h3 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.course-content {
  color: #e8eef6;
  line-height: 1.8;
}

.course-content p {
  margin-bottom: 16px;
}

.course-content ul, .course-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.course-content li {
  margin-bottom: 8px;
}

.course-content code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.course-content strong {
  color: var(--accent);
  font-weight: 600;
}

.course-quiz {
  margin-top: 48px;
  padding: 24px;
  background: rgba(255, 184, 77, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.course-quiz h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--accent);
}

.quiz-question {
  margin-bottom: 32px;
}

.quiz-q {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8eef6;
  margin-bottom: 16px;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 184, 77, 0.2);
  color: #e8eef6;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.quiz-answer:hover:not(:disabled) {
  background: rgba(255, 184, 77, 0.1);
  border-color: var(--accent);
}

.quiz-answer.correct {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4caf50;
  color: #fff;
}

.quiz-answer.wrong {
  background: rgba(244, 67, 54, 0.3);
  border-color: #f44336;
  color: #fff;
}

.quiz-answer:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.course-modal-footer {
  padding: 20px 32px;
  border-top: 2px solid rgba(255, 184, 77, 0.2);
  display: flex;
  justify-content: flex-end;
}

/* Game Interface Styles */
.game-interface {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  background: var(--panel-solid);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 184, 77, 0.2);
}

.game-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(255, 123, 92, 0.1));
  border-bottom: 2px solid rgba(255, 184, 77, 0.2);
  gap: 24px;
  flex-wrap: wrap;
}

.game-level-info h2 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.8rem;
}

.game-level-info p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.game-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-tool-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.3);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.game-tool-btn:hover {
  background: rgba(255, 184, 77, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.score-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.score-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.game-content {
  flex: 1;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  padding: 24px;
  overflow: auto;
}

.objective-panel {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid var(--accent);
}

.objective-panel h3 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 1.3rem;
}

.objective-checklist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.checklist-item.completed {
  background: rgba(76, 175, 80, 0.2);
  border-left: 3px solid #4caf50;
}

.check-box {
  font-size: 1.5rem;
  color: var(--muted);
}

.check-text {
  color: #e8eef6;
  font-size: 0.95rem;
}

.game-workspace {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.workspace-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.workspace-toolbar h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.3rem;
}

.patch-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patch-header-row, .patch-row {
  display: grid;
  grid-template-columns: 60px 1fr 150px 120px 80px 80px;
  gap: 12px;
}

.patch-header-row {
  font-weight: 600;
  color: var(--accent);
  padding: 12px;
  background: rgba(255, 184, 77, 0.1);
  border-radius: 8px;
}

.patch-row {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  align-items: center;
  transition: all 0.2s ease;
}

.patch-row:hover {
  background: rgba(255, 184, 77, 0.1);
}

.patch-cell {
  color: #e8eef6;
  font-size: 0.9rem;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 2px solid rgba(255, 184, 77, 0.2);
  gap: 16px;
}

.game-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-btn.primary {
  background: linear-gradient(90deg, #4caf50, #45a049);
  color: #fff;
}

.game-btn.primary:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.game-btn.primary:disabled {
  background: rgba(76, 175, 80, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.game-btn.secondary {
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.3);
  color: var(--accent);
}

.game-btn.secondary:hover {
  background: rgba(255, 184, 77, 0.2);
  border-color: var(--accent);
}

.mini-btn {
  padding: 6px 10px;
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #f44336;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.mini-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  border-color: #f44336;
}

/* Game Dialog */
.game-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.dialog-content {
  background: var(--panel-solid);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  border: 2px solid rgba(255, 184, 77, 0.3);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid rgba(255, 184, 77, 0.2);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(255, 123, 92, 0.1));
}

.dialog-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.5rem;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef6;
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dialog-close:hover {
  background: rgba(255, 184, 77, 0.2);
  color: var(--accent);
}

.dialog-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 184, 77, 0.2);
  border-radius: 6px;
  color: #e8eef6;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 2px solid rgba(255, 184, 77, 0.2);
}

/* Image Gallery - kept for other pages */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--panel-solid);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(255, 184, 77, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Legacy sidebar-toggle rules removed (use css/sidebar-toggle.css) */
/* (no-op placeholder) */
