* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #111;
  color: #fff;
  font-family: 'Fira Code', monospace;
}

.page-layout {
  display: flex;
  min-height: 100vh;
}

.line-numbers {
  background-color: #111;
  color: #777;
  text-align: right;
  padding: 5px 12px 0 10px;
  font-size: 14px;
  user-select: none;
  line-height: 1.8em;
  width: 45px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

.line-separator {
  width: 1px;
  background-color: #444;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section {
  position: relative;
  min-height: 100vh;
  background-color: #111;
}

.code-right {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 20px;
}

.code-content {
  font-size: 20px;
  line-height: 1.6em;
  padding-top: 20px;
}

.aythan {
  color: #ccc;
}

.blue-title {
  color: #00d8ff;
  margin-left: 37px;
  margin-top: -10px;
  display: block;
}

.nav {
  position: absolute;
  top: 30px;
  right: 100px;
  display: flex;
  gap: 10px;
}

.nav a {
  margin-right: 50px;
  color: #ffd700;
  text-decoration: none;
  font-family: monospace;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #00d8ff;
}

.intro {
  text-align: center;
  margin-top: 150px;
}

.comment {
  color: #aaa;
}

.big-text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  gap: 0.3rem;
  margin-top: 80px;
}

.bracket {
  color: #fff;
  font-size: 5.5rem;
  font-weight: bold;
}

.quote {
  color: #ccc;
  font-size: 4.5rem;
  font-weight: normal;
  margin: 0 5px;
}

.cursor {
  color: #fff;
  font-weight: bold;
  animation: blink 1s steps(1) infinite;
  margin-left: 3px;
  font-size: 3rem;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#typed-text {
  color: #ffd700;
  font-weight: bold;
  font-size: 3rem;
  display: inline;
}

#flowCanvas {
  display: block;
  width: 100%;
  height: 500px;
  margin: 40px 0;
  pointer-events: none;
  position: relative;
  filter: blur(0.5px);
  z-index: 1;
}

.terminal-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.terminal-wrapper {
  z-index: 1;
  position: relative;
}

.terminal-content {
  width: 40vw;
  max-width: 800px;
  background-color: #000;
  border: 2px solid #00d8ff;
  padding: 20px;
  box-shadow: 0 0 20px #00d8ff;
  font-size: 1rem;
  line-height: 1.5;
  color: #00d8ff;
  margin-bottom: 20px;
}

#matrixFull {
  position: absolute;
  top: 0;            
  left: 0;
  width: 100%;
  height: 100%;  
  z-index: 0;
  pointer-events: none;
}

#lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  color: #00d8ff;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
}

#lock-icon .unlocked {
  display: none;
}
#lock-icon.open .locked {
  display: none;
}
#lock-icon.open .unlocked {
  display: inline;
}

.presentation-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.presentation-title {
  font-size: 20px;
  font-weight: normal;
  color: #fff;
  margin: 25px 0 0 20px;
}

.text-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.text-top {
  max-width: 800px;
  margin-left: 200px;
  margin-top: 120px;
}

.text-bottom {
  max-width: 800px;
  align-self: flex-start; 
  margin-left: 900px;
  margin-top: 150px;     
}


.text-container p {
  white-space: pre-line;
}

.cerisier-image {
  position: absolute;
  bottom: 0;  
  left: 0;  
  width: 500px;  
  opacity: 0.8;  
  pointer-events: none;
}

.image-rond {
  position: absolute;
  top: 150px;        
  right: 300px;     
  width: 400px;     
  height: 400px;    
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;      
  pointer-events: none;
}

.yellow {
  color: #ffd700; 
  font-weight: normal;
}

.blue {
  color: #00d8ff; 
  font-weight: normal;
}

.sakura {
  color: #ffb7c5; 
  font-weight: normal;
}

.competences-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.competences-title {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 50px;
  align-self: flex-start;
  margin-left: 20px;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

._acquis { color: #00d8ff; }
._apprentissage { color: #ffd700; }

/* === Grilles === */
.acquis-grid, .apprentissage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  width: 1000px;
  max-width: 90%;
  margin-bottom: 80px;
}

.acquis-grid p, .apprentissage-grid p {
  font-size: 1rem;
  line-height: 1.8;
}

/* === Couleurs spécifiques === */
.yellow { color: #ffd700; font-weight: bold; }
.html5 { color: #e34f26; }
.css3 { color: #2965f1; }
.windows { color: #00a4ef; }
.softskills { color: #ff69b4; }
.c { color: #00599C; }
.javascript { color: #f7df1e; }
.sql { color: #f29111; }
.bash { color: #89e051; }
.api { color: #ff9800; }
.webapp { color: #4caf50; }
.git { color: #f1502f; }
.agile { color: #ffcc00; }
.tests { color: #8bc34a; }
.network { color: #29b6f6; }
.pentest { color: #d32f2f; }
.crypto { color: #ab47bc; }
.forensics { color: #ff7043; }
.hardening { color: #795548; }
.deploy { color: #607d8b; }
.cyberproj { color: #00bcd4; }
