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

/* Styles généraux - thème cybersécurité */
html {
	scroll-behavior: smooth;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	color: #e2e8f0;
	background: #0f172a;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Navbar */
.navbar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	background: #1e293b;
	border-bottom: 2px solid #00d4ff;
	box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
	padding: 1.25rem 2rem;
	min-height: 70px;
}

.nav-menu {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	list-style: none;
	gap: 2.5rem;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	color: #e2e8f0;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1rem;
	transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
	color: #00d4ff;
}

/* Main */
main {
	position: relative;
	flex: 1;
	padding: 2rem;
	width: 100%;
	background: #0f172a;
}

main::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('assets/logo.png') center center / cover no-repeat;
	opacity: 0.15;
	z-index: 0;
}

main section {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
	padding: 3rem 0;
}

main section:first-child {
	padding-top: 0;
}

main section h2 {
	color: #00d4ff;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

section p {
	margin-bottom: 1rem;
	color: #e2e8f0;
}

/* Organigramme */
.organigramme-section {
	margin-top: 2rem;
}

.organigramme-section h2 {
	color: #00d4ff;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.organigramme {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.org-node {
	background: rgba(30, 41, 59, 0.9);
	border: 2px solid #00d4ff;
	border-radius: 8px;
	padding: 0.75rem 1.5rem;
	min-width: 160px;
	text-align: center;
	transition: all 0.2s;
}

.organigramme-equipe .org-level-3 .org-node {
	min-width: 90px;
	padding: 0.5rem 1rem;
	flex-shrink: 0;
}

.org-node:hover {
	box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
	transform: scale(1.02);
}

.org-node a {
	color: #00d4ff;
	text-decoration: none;
	font-weight: 600;
}

.org-node.org-root {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.org-node span {
	color: #00d4ff;
	font-weight: 600;
	display: block;
}

.org-node small {
	display: block;
	color: #94a3b8;
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.org-node.org-patron {
	border-color: #00d4ff;
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.org-node.org-manager {
	border-color: #38bdf8;
	min-width: 120px;
}

.organigramme-equipe .org-level-2 {
	padding-bottom: 0.5rem;
}

.organigramme-equipe .org-level-3 {
	padding-top: 0.5rem;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overflow-x: auto;
	max-width: 100%;
}

.org-branch {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.org-line {
	width: 2px;
	height: 30px;
	background: linear-gradient(to bottom, #00d4ff, rgba(0, 212, 255, 0.5));
}

.org-children {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	padding-top: 1rem;
}

.org-children .org-node {
	border-color: #38bdf8;
}

/* Mise en page Image */
.image-card {
	background: rgba(30, 41, 59, 0.8);
	border: 2px solid #00d4ff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
	max-width: 600px;
}

.image-frame {
	overflow: hidden;
	line-height: 0;
}

.image-frame img {
	width: 100%;
	height: auto;
	display: block;
}

.image-caption {
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.image-caption p {
	margin: 0 0 0.25rem;
	color: #00d4ff;
	font-weight: 600;
	font-size: 1.1rem;
}

.image-caption span {
	color: #94a3b8;
	font-size: 0.9rem;
}

/* Mise en page Vidéo */
.video-card {
	background: rgba(30, 41, 59, 0.8);
	border: 2px solid #00d4ff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
	max-width: 600px;
}

.video-frame {
	overflow: hidden;
	line-height: 0;
}

.video-frame video {
	width: 100%;
	height: auto;
	display: block;
}

.video-caption {
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.video-caption p {
	margin: 0 0 0.25rem;
	color: #00d4ff;
	font-weight: 600;
	font-size: 1.1rem;
}

.video-caption span {
	color: #94a3b8;
	font-size: 0.9rem;
}

/* Titre Portfolio animé - thème cybersécurité */
.portfolio-title {
	text-align: center;
	margin-bottom: 1.5rem;
}

.portfolio-title-text {
	display: inline-block;
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #00d4ff;
	animation: portfolio-glow 2s ease-in-out infinite;
	text-shadow: 0 0 10px rgba(0, 212, 255, 0.8),
		0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
	position: relative;
}

.portfolio-title-text::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 100%;
	height: 3px;
	background: linear-gradient(
		90deg,
		transparent,
		#00d4ff,
		#7dd3fc,
		#00d4ff,
		transparent
	);
	background-size: 200% 100%;
	animation: portfolio-line 2s ease-in-out infinite;
}

@keyframes portfolio-glow {
	0%,
	100% {
		text-shadow: 0 0 10px rgba(0, 212, 255, 0.8),
			0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
	}
	50% {
		text-shadow: 0 0 20px rgba(0, 212, 255, 1),
			0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.5);
	}
}

@keyframes portfolio-line {
	0%,
	100% {
		background-position: 0% 0;
		opacity: 0.8;
	}
	50% {
		background-position: 100% 0;
		opacity: 1;
	}
}

/* Compteur de clic */
.compteur-box {
	background: rgba(30, 41, 59, 0.8);
	border: 2px solid #00d4ff;
	border-radius: 12px;
	padding: 2rem;
	max-width: 400px;
	text-align: center;
	box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.compteur-affichage {
	font-size: 3rem;
	font-weight: 700;
	color: #00d4ff;
	margin-bottom: 1.5rem;
}

.compteur-boutons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-clic,
.btn-reset {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-clic {
	background: #00d4ff;
	color: #0f172a;
}

.btn-clic:hover {
	background: #22e3ff;
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-reset {
	background: transparent;
	color: #94a3b8;
	border: 2px solid #94a3b8;
}

.btn-reset:hover {
	background: rgba(148, 163, 184, 0.2);
	color: #e2e8f0;
}

/* Popup personnalisé */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.visible {
	opacity: 1;
	visibility: visible;
}

.popup {
	background: #1e293b;
	border: 2px solid #00d4ff;
	border-radius: 12px;
	padding: 2rem;
	max-width: 400px;
	text-align: center;
	box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.popup-message {
	color: #e2e8f0;
	font-size: 1.1rem;
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

.btn-close-popup {
	padding: 0.6rem 2rem;
	background: #00d4ff;
	color: #0f172a;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-close-popup:hover {
	background: #22e3ff;
	box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Présentation / Description */
.presentation {
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 8px;
}

.presentation h3 {
	color: #00d4ff;
	font-size: 1.2rem;
	margin: 1.5rem 0 0.75rem;
}

.presentation h3:first-child {
	margin-top: 0;
}

.presentation p {
	color: #cbd5e1;
	line-height: 1.7;
	margin-bottom: 0.5rem;
}

.description-list {
	margin: 0.5rem 0 0;
	padding-left: 1.5rem;
	color: #cbd5e1;
}

.description-list li {
	margin-bottom: 1rem;
	line-height: 1.6;
}

.description-list code {
	background: rgba(0, 212, 255, 0.15);
	color: #7dd3fc;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-size: 0.9em;
}

/* Footer */
footer {
	background: #1e293b;
	border-top: 1px solid rgba(0, 212, 255, 0.3);
	color: #94a3b8;
	text-align: center;
	padding: 1rem;
}
