/* ===================================
   PORTFOLIO YANIS RJIBA - BTS SIO SISR
   Liquid Glass Design - Full Width
   =================================== */

/* ===== VARIABLES CSS ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #06b6d4;
  --accent: #f472b6;
  
  --bg-dark: #030712;
  --bg-gradient: linear-gradient(135deg, #030712 0%, #0f172a 50%, #1e1b4b 100%);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.06);
  
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background animé */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(244, 114, 182, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--primary);
  color: white;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 100%;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 0 8%;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  flex: 1;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-strong);
  border-color: var(--primary);
}

/* ===== DINO GAME ===== */
.dino-game-container {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.dino-game-container:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2);
}

.dino-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.dino-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dino-score {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  font-family: monospace;
}

#dinoGame {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.dino-instructions {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dino-instructions kbd {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: inherit;
  color: var(--secondary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 8rem 8%;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 10rem 8% 4rem;
  position: relative;
  z-index: 1;
}

.page-header .section-title {
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-item {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: var(--transition);
}

.about-item:hover {
  background: var(--glass-strong);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.about-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.about-text {
  padding: 2.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  border-radius: 24px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.9;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-group {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: var(--transition);
}

.skill-group:hover {
  background: var(--glass-strong);
  border-color: rgba(99, 102, 241, 0.3);
}

.skill-group-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-group h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.skill-tag.expert {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.skill-tag.advanced {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Légende des compétences */
.skills-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1rem 2rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.expert { background: #34d399; }
.legend-dot.advanced { background: #60a5fa; }
.legend-dot.intermediate { background: #fbbf24; }

/* ===== OUTILS ESSENTIELS ===== */
.outils-intro {
  max-width: 800px;
  margin-bottom: 4rem;
}

.outils-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.outils-category {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.category-icon {
  font-size: 2rem;
}

.category-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.outils-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.outil-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.outil-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.15);
}

.outil-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.outil-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.outil-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.outil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.outil-tags span {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-paid {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-freemium {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tag-essential {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-beginner {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-advanced {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-trending {
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.outil-link {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.outil-link:hover {
  color: var(--primary-light);
}

/* ===== GÉNÉRATEURS INTERACTIFS ===== */
.generator-card {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.generator-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.generator-icon {
  font-size: 2rem;
}

.generator-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.generator-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.generator-options {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.option-row:last-child {
  margin-bottom: 0;
}

.option-row label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  min-width: 150px;
}

.option-row input[type="range"] {
  flex: 1;
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
}

.option-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.option-row select {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
}

.option-row select:focus {
  outline: none;
  border-color: var(--primary);
}

.option-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.generator-output {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.generator-output input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--secondary);
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.generator-output input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-copy {
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--glass-strong);
  border-color: var(--primary);
}

.password-strength {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  text-align: center;
}

.strength-weak { color: #ef4444; }
.strength-medium { color: #fbbf24; }
.strength-strong { color: #34d399; }
.strength-very-strong { color: #6366f1; }

.btn-generate {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.generating-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.keys-container {
  margin-top: 1.5rem;
}

.key-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.key-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-copy-small {
  padding: 0.5rem 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-small:hover {
  background: var(--glass-strong);
  border-color: var(--primary);
}

.key-block textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--secondary);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  resize: none;
}

.key-block textarea:focus {
  outline: none;
}

.key-warning {
  text-align: center;
  color: #fbbf24;
  font-size: 0.9rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
}

.copy-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CALCULATEUR SOUS-RÉSEAU ===== */
.ip-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.ip-input:focus {
  outline: none;
  border-color: var(--primary);
}

.ip-input::placeholder {
  color: var(--text-muted);
}

.subnet-results {
  margin-top: 1.5rem;
}

.subnet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.subnet-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subnet-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subnet-value {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
}

.subnet-binary {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.subnet-binary h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.binary-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.binary-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.binary-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 70px;
}

.binary-value {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--primary-light);
  letter-spacing: 1px;
  word-break: break-all;
}

@media (max-width: 768px) {
  .subnet-grid {
    grid-template-columns: 1fr;
  }
  
  .option-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .binary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  transition: var(--transition);
}

.project-item:hover {
  background: var(--glass-strong);
  border-color: rgba(99, 102, 241, 0.3);
}

.project-item:nth-child(even) {
  direction: rtl;
}

.project-item:nth-child(even) > * {
  direction: ltr;
}

.project-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.project-tag.cyber {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
}

.project-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  padding: 0.4rem 0.8rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--secondary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 100px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.project-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.6;
}

/* ===== ENTREPRISE SECTION ===== */
.entreprise-hero {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
}

.entreprise-logo {
  max-width: 150px;
  height: auto;
}

.entreprise-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.entreprise-info .period {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

.entreprise-description {
  margin-bottom: 4rem;
}

.entreprise-description h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.entreprise-description p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.missions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.mission-item {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: var(--transition);
}

.mission-item:hover {
  background: var(--glass-strong);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.mission-item h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.mission-item ul {
  list-style: none;
}

.mission-item li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.mission-item li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.competences-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.competences-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.competences-tags span {
  padding: 0.6rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.competences-tags span:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ===== VEILLE SECTION ===== */
.veille-intro {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--secondary);
  border-radius: 24px;
  margin-bottom: 3rem;
}

.veille-intro p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
}

.veille-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.veille-item {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: var(--transition);
}

.veille-item:first-child {
  grid-column: span 2;
}

.veille-item:hover {
  background: var(--glass-strong);
  border-color: rgba(99, 102, 241, 0.3);
}

.veille-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.veille-item p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.veille-item ul, .veille-item ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.veille-item li {
  padding: 0.4rem 0;
}

.veille-item a {
  color: var(--secondary);
  transition: var(--transition);
}

.veille-item a:hover {
  color: var(--primary-light);
}

.veille-apports {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.veille-apports h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.apports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.apports-grid span {
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== EPREUVES SECTION ===== */
.epreuve-block {
  margin-bottom: 4rem;
}

.epreuve-header {
  margin-bottom: 2rem;
}

.epreuve-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.epreuve-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pdf-container {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
}

.pdf-viewer {
  width: 100%;
  height: 700px;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  margin-bottom: 1.5rem;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 100px;
  color: white;
  font-weight: 600;
  transition: var(--transition);
}

.pdf-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.projet-e5-container {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 3rem;
}

.projet-e5-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.projet-e5-header h3 {
  font-size: 2rem;
  color: var(--text-primary);
}

.projet-badge {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 100px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.projet-e5-description {
  padding: 2rem;
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.projet-e5-description h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.projet-e5-description p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.projet-e5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.projet-e5-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition);
}

.projet-e5-item:hover {
  background: var(--glass-strong);
  border-color: rgba(99, 102, 241, 0.3);
}

.projet-e5-item h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.projet-e5-item ul {
  list-style: none;
}

.projet-e5-item li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.projet-e5-item li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.projet-e5-competences h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: var(--transition);
}

.contact-item:hover {
  background: var(--glass-strong);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.contact-icon {
  font-size: 2rem;
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.contact-item a:hover {
  color: var(--secondary);
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 8%;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
}

.easter-hint {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: help;
  transition: all 0.3s ease;
  position: relative;
}

.easter-hint:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
}

.easter-hint::after {
  content: '↑↑↓↓←→←→BA';
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: monospace;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.easter-hint:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-container { padding: 0 2rem; }
  .section, .page-header { padding-left: 4%; padding-right: 4%; }
  .hero { padding: 0 4%; flex-direction: column; gap: 3rem; padding-top: 120px; }
  
  .dino-game-container {
    width: 100%;
    max-width: 420px;
  }
  
  .project-item {
    grid-template-columns: 1fr;
  }
  
  .project-item:nth-child(even) {
    direction: ltr;
  }
  
  .project-visual {
    display: none;
  }
  
  .veille-content {
    grid-template-columns: 1fr;
  }
  
  .veille-item:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transform: translateX(100%);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .entreprise-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .dino-game-container {
    padding: 1rem;
  }
  
  #dinoGame {
    width: 100%;
    max-width: 350px;
    height: 120px;
  }
}

/* ===== CERTIFICATIONS PAGE ===== */
.certif-category {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-header .category-icon {
  font-size: 2.5rem;
}

.category-header h2 {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
}

.certif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.certif-grid.small {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.certif-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.certif-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certif-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
}

.certif-card:hover::before {
  opacity: 1;
}

.certif-card.obtained::before {
  background: linear-gradient(90deg, #00d9ff, #00ff88);
  opacity: 1;
}

.certif-card.in-progress::before {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  opacity: 1;
}

.certif-card.mini {
  padding: 1.5rem;
  align-items: center;
}

.certif-badge {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certif-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.certif-card:hover .certif-img {
  transform: scale(1.1);
}

.certif-mini-badge {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.certif-info {
  flex: 1;
}

.certif-info h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.certif-issuer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
}

.certif-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.certif-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.certif-link {
  display: inline-block;
  color: #00d9ff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.certif-link:hover {
  color: #00ff88;
  text-decoration: underline;
}

/* Progress bar pour certifications en cours */
.certif-progress {
  margin: 0.75rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Objectifs */
.certif-goals {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2.5rem;
  margin-top: 3rem;
}

.certif-goals h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.goals-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.goal-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.goal-icon {
  font-size: 1.2rem;
}

/* Responsive Certifications */
@media (max-width: 768px) {
  .certif-grid {
    grid-template-columns: 1fr;
  }
  
  .certif-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .certif-badge {
    margin: 0 auto;
  }
  
  .category-header h2 {
    font-size: 1.5rem;
  }
}

/* ===== RSS FEEDS ===== */
.subsection-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.rss-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.rss-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rss-filter {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rss-filter:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.rss-filter.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
}

.rss-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  min-height: 300px;
}

.rss-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.6);
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rss-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.rss-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rss-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.rss-card[data-category="cyber"] {
  border-left: 3px solid #ff6b6b;
}

.rss-card[data-category="tech"] {
  border-left: 3px solid #00d9ff;
}

.rss-card[data-category="linux"] {
  border-left: 3px solid #ffd700;
}

.rss-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.rss-source {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.rss-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.rss-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.rss-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rss-title a:hover {
  color: #00d9ff;
}

.rss-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.rss-read-more {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rss-read-more:hover {
  color: #00d9ff;
  transform: translateX(5px);
}

.rss-refresh {
  display: block;
  margin: 2rem auto 0;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rss-refresh:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

/* Responsive RSS */
@media (max-width: 768px) {
  .rss-container {
    grid-template-columns: 1fr;
  }
  
  .rss-filters {
    gap: 0.5rem;
  }
  
  .rss-filter {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
