/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #333;
  line-height: 1.6;
  animation: fadeIn 1.5s ease;
  transition: background 0.5s, color 0.5s;
}

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

/* --- HEADER --- */
header {
  text-align: center;
  background: linear-gradient(120deg, #0a1f44, #0e2f6c);
  color: white;
  padding: 3rem 1rem;
  border-bottom: 5px solid #00bfff;
  position: relative;
  animation: slideDown 1.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

header img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid white;
  transition: transform 0.3s ease-in-out;
}

header img:hover {
  transform: scale(1.08);
}

header h1 {
  margin: 1rem 0 0.3rem;
  font-size: 2.2rem;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- CONTACT --- */
.contact {
  margin-top: 0.5rem;
}

.contact a {
  color: #00bfff;
  text-decoration: none;
  margin: 0 7px;
  transition: color 0.3s;
}

.contact a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- SECTIONS --- */
section {
  padding: 2rem;
  margin: 1.5rem auto;
  max-width: 850px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  animation: fadeIn 1s ease forwards;
  transition: background 0.4s, color 0.4s;
}

section h2 {
  color: #0a1f44;
  margin-bottom: 1rem;
  border-left: 5px solid #00bfff;
  padding-left: 10px;
  font-size: 1.5rem;
}

/* --- LISTES --- */
.skills ul, .experience ul, .education ul {
  list-style: square inside;
  padding-left: 0;
}

.skills li, .experience li, .education li {
  margin-bottom: 0.6rem;
}

/* --- PROJETS --- */
.projects .project {
  background: #f9f9f9;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects .project:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.projects img {
  width: 100%;
  max-width: 700px;
  border-radius: 5px;
  margin-bottom: 0.7rem;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  background: #0a1f44;
  color: white;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 4px solid #00bfff;
  transition: background 0.5s;
}

/* --- DARK MODE --- */
@media (prefers-color-scheme: dark) {
  body {
    background: #1e1e2f;
    color: #ddd;
  }

  section {
    background: #2c2c3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  header {
    background: linear-gradient(120deg, #000e2a, #1c1c3c);
    border-bottom: 5px solid #0099cc;
  }

  section h2 {
    color: #00bfff;
    border-left-color: #00bfff;
  }

  .projects .project {
    background: #3a3a4f;
  }

  .contact a {
    color: #00cfff;
  }

  footer {
    background: #000e2a;
    border-top-color: #00bfff;
  }
}
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.section.show .section-title {
  opacity: 1;
  transform: translateX(0);
}

.section-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-in;
}

.section.show .section-content {
  opacity: 1;
  transform: translateY(0);
}