* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#about .section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  letter-spacing: -1px;
}

#about .section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: #00F5FF;
}

.about-text p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

#skills .section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  letter-spacing: -1px;
}

#skills .section-tag {
  font-family: 'Space Mono', monospace;
  color: #00F5FF;
  font-size: 1rem;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 2px;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom right, #810bc1, #0a9ebc, #de0076);
  background-attachment: fixed;
  background-size: cover;
  color: #ffffff;
  overflow-x: hidden;
}

/* ----- Header ----- */
header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .logo { width: 40px; height: 40px; }
}

header h1 {
  font-size: 1.5rem;
  color: aliceblue;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #00bcd4;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover, nav a.active {
  color: #fff;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 8vw;
  gap: 3rem;
}

.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero text ── */
/* .hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #FF2D9B;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
} */
.hero-label {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;                 /* un peu plus grand */
  font-weight: 600;
  color: #E0F7FA;                   /* blanc bleuté élégant */
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  background: linear-gradient(135deg, #fff 40%, #00bcd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

/* .hero-typing-wrap {
  margin-top: 1.4rem;
  /* font-family: 'Space Mono', monospace; 
  font-family: Verdana, Geneva, Tahoma, sans-serif, monospace;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #FF2D9B;
  height: 2.2em;
  display: flex;
  align-items: center;
  gap: 0.2em;
  opacity: 0;
  animation: fadeUp 0.6s 0.7s forwards;
} */
.hero-typing-wrap {
  margin-top: 1.4rem;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);  /* plus grand */
  font-weight: 700;
  color: #00F5FF;                         /* cyan néon */
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
  height: 2.2em;
  display: flex;
  align-items: center;
  gap: 0.2em;
  opacity: 0;
  animation: fadeUp 0.6s 0.7s forwards;
}

/* .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #00bcd4;
  animation: blink 0.9s infinite;
  vertical-align: middle;
} */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #00F5FF;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.7);
  animation: blink 0.9s infinite;
}

.hero-intro {
  margin-top: 1.5rem;
  max-width: 520px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.6s 1s forwards;
}

.hero-intro strong { color: #ffffff; }

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 1.2s forwards;
}

/* .btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background-color: #00bcd4;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-primary:hover { background-color: #0288d1; transform: scale(1.05); } */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #00C2FF, #007CF0);
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 194, 255, 0.6);
}

.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #fff;
  border: 2px solid #00bcd4;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-outline:hover { background-color: rgba(0, 188, 212, 0.15); }

/* ── Photos ── */
.photo-container {
  position: relative;
  width: 300px;
  height: 400px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.profile-photo:hover { transform: scale(1.05); }

.overlay-photo {
  position: absolute;
  width: 180px;
  border-radius: 20px;
  bottom: -20px;
  right: -40px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
  /* object-fit: cover; */
  /* height: 120px; */
}
/* .overlay-photo {
  position: absolute;
  width: 160px;
  border-radius: 16px;
  bottom: -20px;
  right: -35px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff;
  transition: transform 0.3s ease;
  object-fit: cover;
  height: 120px;
} */
.overlay-photo:hover { transform: scale(1.05) rotate(-3deg); }

.overlay-photo1 {
  position: absolute;
  width: 170px;
  border-radius: 20px;
  top: -40px;
  left: -48px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
  /* object-fit: cover;
  height: 110px; */
}
/* .overlay-photo1 {
  position: absolute;
  width: 150px;
  border-radius: 16px;
  top: -30px;
  left: -35px;
  transform: rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff;
  transition: transform 0.3s ease;
  object-fit: cover;
  height: 110px;
} */
.overlay-photo1:hover { transform: scale(1.05) rotate(2deg); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 0 8vw;
}

/* ═══ SECTIONS ═══ */
section {
  padding: 60px 8vw;
  text-align: center;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #00bcd4;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-line {
  width: 50px;
  height: 3px;
  /* background: linear-gradient(90deg, #810bc1, #00bcd4); */
  background: linear-gradient(90deg, #810bc1, #00C2FF);
  border-radius: 2px;
  margin: 0 auto 3rem auto;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-text p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.about-text strong { color: #ffffff; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.4rem;
  transition: border-color 0.3s, transform 0.3s;
}
/* .stat-card:hover { border-color: #00bcd4; transform: translateY(-4px); } */
.stat-card:hover {
  border-color: #00C2FF;
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 194, 255, 0.25);
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #00bcd4;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.3rem;
}

/* ═══ SKILLS ═══ */
#skills {
  max-width: 1100px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

/* .skill-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 188, 212, 0.12);
  border-color: #00bcd4;
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
} */
.skill-card:hover {
  transform: translateY(-6px);
  background: rgba(0, 194, 255, 0.12);
  border-color: #00C2FF;
  box-shadow: 0 10px 30px rgba(0, 194, 255, 0.25);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.skill-info .skill-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}
.skill-info .skill-type {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ═══ HIGHLIGHTS ═══ */
#highlights {
  max-width: 800px;
  margin: 0 auto;
}

#highlights h2 {
  margin-bottom: 20px;
  color: aliceblue;
  font-family: 'Syne', sans-serif;
}

#highlights p {
  color: rgba(255,255,255,0.8);
}

.btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #00bcd4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover { background-color: #0288d1; transform: scale(1.05); }

/* ═══ PROJECTS PAGE ═══ */
#projects {
  padding: 60px 0;
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 85%;
  margin: 40px auto;
}

.project {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: #fff;
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.project h4 { color: #ffffff; margin-bottom: 10px; }
.project p  { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.6; }

/* ── Tags ── */
.tags { margin-top: 15px; }

.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.82em;
  margin: 3px;
  transition: 0.3s ease;
  color: #fff;
}
.tag.frontend     { background-color: #1b87d0; }
.tag.backend      { background-color: #e67e22; }
.tag.fullstack    { background-color: #9b59b6; }
.tag.api          { background-color: #16a085; }
.tag.security     { background-color: #724cf9; }
.tag.network      { background-color: #2ecc71; }
.tag.cryptographie{ background-color: #ff758f; }
.tag.red          { background-color: #890620; }
.tag.Honeypot     { background-color: #b8b800; }
.tag.log          { background-color: #c670ff; }
.tag:hover        { transform: scale(1.1); }

/* ═══ FOOTER ═══ */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main, body > section { flex: 1; }

footer {
  background-color: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 25px;
  font-size: 0.9em;
  margin-top: auto;
  color: rgba(255,255,255,0.8);
}

footer a {
  color: #00bcd4;
  text-decoration: none;
}
footer a:hover { color: #fff; }

footer p { margin-bottom: 6px; }
footer i { margin-right: 6px; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  header { flex-direction: column; }
  nav ul { flex-direction: column; gap: 10px; }
  .grid-3 { width: 95%; }

  .hero {
    flex-direction: column;
    padding: 6rem 6vw 3rem;
    text-align: center;
    gap: 3rem;
  }
  .hero-left { max-width: 100%; }
  .hero-typing-wrap { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-right { order: -1; }
  .photo-container { width: 240px; height: 320px; }
}
