/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}
.container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 0;
}

/* Navigation — transparente / en arrière-plan */
/* === Navigation — Simple et plate (comme ton exemple) === */
nav {
  background: white;
  box-shadow: none; /* Supprime l'ombre */
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px; /* Espace entre les liens — ajuste à ton goût */
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #1e293b; /* Noir foncé */
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 8px;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #2563eb; /* Bleu quand on survole */
  background-color: transparent; /* Pas de fond au survol */
}

/* Home */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background-color: var(--light);
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  max-width: 600px;
  margin-top: 350px;
}

.profile-pic {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 20%;
  border: 4px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 0.8s ease;
}

.intro {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 400;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Titres */
h1 {
  text-align: center;
  margin-bottom: 150px;
  font-size: 2rem;
  color: var(--dark);
}

h2 {
  margin: 25px 0 15px;
  font-size: 1.4rem;
  color: black;
  text-align: center;
  margin-top: 80px;
}

/* Ancien style compétences */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  justify-content: center;
}

.skills-list li {
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Timeline */
.timeline li {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--primary);
  padding-top: 5px;
}

/* Ancien style projet */
.project {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.project:hover {
  transform: translateY(-3px);
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #1d4ed8;
}

.success-message {
  text-align: center;
  color: #10b981;
  font-weight: 600;
  margin-top: 10px;
}

.social-links {
  text-align: center;
  margin-top: 40px;
}

.social-links h3 {
  margin-bottom: 15px;
}

.social-links a {
  display: inline-block;
  margin: 0 8px;
  font-size: 1.3rem;
  color: var(--dark);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--gray);
  border-top: 1px solid #eee;
  margin-top: 200px;
  background-color: var(--light);

}

/* À propos */
.about-content {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.about-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

/* Cartes de compétences */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.skill-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.skill-card i,
.skill-card img {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.skill-card h3 {
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: var(--dark);
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* Cartes de projets */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.project-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #e2e8f0;
}

.project-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: var(--dark);
}

.project-content p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}

/* Espacement pages compétences & projets */
.skills-page main,
.projects-page main {
  padding-top: 150px;
}

/* Flèche de scroll */
.scroll-down-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0 40px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-down-arrow i {
  font-size: 1.4rem;
  color: var(--gray);
  transition: color 0.2s;
}

.scroll-down-arrow:hover i {
  color: var(--primary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-8px);
  }
}

/* Diplômes */
.education-section {
  margin-top: 160px;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 20px auto 0;
}

.education-item {
  background: white;
  padding: 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
  transition: transform 0.2s;
}

.education-item:hover {
  transform: translateX(4px);
}

.degree {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.period {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: normal;
}

/* Hero */
.hero-welcome {
  text-align: center;
  padding: 50px 16px 24px;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 180px 0 14px 0;
}

#typewriter {
  font-size: 1.25rem;
  color: #475569;
  font-weight: 500;
  margin: 0 auto 20px;
  max-width: 750px;
  line-height: 1.5;
}


/* Responsive pour 320px */
@media (max-width: 375px) {
  .container {
    width: 96%;
    padding: 100px 8px;
  }

  nav .container {
    padding: 10px 4px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.82rem;
    padding: 5px 6px;
  }

  .hero-name {
    font-size: 1.85rem;
    margin-top: 150px;
  }

  #typewriter {
    font-size: 1.15rem;
    padding: 0 8px;
  }

  .home-content {
    margin-top: 280px;
    gap: 24px;
  }

  .profile-pic {
    width: 160px;
    height: 160px;
  }

  .intro {
    font-size: 1rem;
    padding: 0 10px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 120px;
  }

  h2 {
    font-size: 1.3rem;
  }
}

