/* ------------------------------
   🌐 RESET & TYPOGRAPHIE GÉNÉRALE
---------------------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #1c1c1c;
  text-align: justify;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
}
h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #1c1c1c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ------------------------------
   📦 CONTENEUR GÉNÉRAL
---------------------------------- */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* ------------------------------
   🧭 BARRE DE NAVIGATION
---------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  background-color: #ffffffee;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  backdrop-filter: blur(5px);
}
.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.navbar a {
  text-decoration: none;
  color: #1c1c1c;
  font-weight: 600;
}
.navbar a:hover {
  color: #0077cc;
}

/* ------------------------------
   🖼️ SECTION HÉRO
---------------------------------- */
.hero-section {
  position: relative;
  padding: 6rem 2rem;
  background-image: url('../assets/lac-header.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  max-width: 90%;
  backdrop-filter: blur(3px);
}
.hero-content h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  color: white;
}
.hero-sub {
  margin: 0.25rem 0;
  font-size: 1.2rem;
  color: #ddd;
}
.hero-sub.small {
  font-size: 1rem;
  color: #ccc;
}

/* ------------------------------
   🧍 PHOTO DE PROFIL (facultative)
---------------------------------- */
.profile-pic {
  width: 150px;
  border-radius: 100px;
  border: 3px solid white;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.profile-pic:hover {
  transform: scale(1.05);
}

/* ------------------------------
   📄 SECTIONS GÉNÉRALES
---------------------------------- */
.section {
  padding: 4rem 0;
}
.section.light {
  background-color: #ffffff;
  color: #1c1c1c;
}
.section.dark {
  background-color: #f3f3f3;
  color: #1c1c1c;
}

/* ------------------------------
   🙋 SECTION À PROPOS
---------------------------------- */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;           /* Centrage vertical */
  justify-content: center;       /* Centrage horizontal */
  gap: 3rem;
  text-align: left;
}

.about-text {
  flex: 1 1 500px;
  min-width: 300px;
}

.about-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  max-width: 180px;
  border-radius: 100px;
  border: 3px solid #1c1c1c;
}


/* ------------------------------
   🔚 PIED DE PAGE
---------------------------------- */
.footer {
  background-color: #1c1c1c;
  color: white;
  padding: 2rem 0;
  text-align: center;
}
.footer a {
  color: #cccccc;
  text-decoration: none;
}
.footer a:hover {
  color: white;
}

/* ------------------------------
   ✨ ANIMATIONS
---------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   📱 RESPONSIVE DESIGN
---------------------------------- */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  .container {
    padding: 1rem;
  }
  .hero-section {
    height: auto;
    padding: 4rem 1rem;
  }
  .hero-content {
    padding: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-sub.small {
    font-size: 0.9rem;
  }
  .about-flex {
    flex-direction: column;
    text-align: center;
  }
}



/* ------------------------------
   SECTION EDUCATION
---------------------------------- */
.education-item {
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.education-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #0077cc;
}

.education-item p {
  margin: 0.25rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.education-item ul {
  padding-left: 1.2rem;
  margin-top: 0.75rem;
  list-style: disc;
  color: #333;
  font-size: 0.95rem;
}

.education-item a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

.education-item a:hover {
  text-decoration: underline;
}
.education-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.education-content {
  flex: 1 1 65%;
}

.education-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.education-logo img {
  max-height: 80px;
  max-width: 140px;
  object-fit: contain;
}


/* ------------------------------
   SECTION EXPERIENCE
---------------------------------- */

/* Centrage des titres des sections clés */
#about h2,
#education h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}


/* ------------------------------
   SECTION EXPERIENCE
---------------------------------- */
#experience h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}


/* ------------------------------
   SECTION PROJETS
---------------------------------- */

.project-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.project-img {
  flex: 0 0 200px;
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  object-fit: cover;
}
.project-text {
  flex: 1 1 60%;
}
.project-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #0077cc;
}
.project-text p, .project-text ul {
  font-size: 1rem;
}
.project-text ul {
  padding-left: 1.2rem;
  list-style-type: disc;
  color: #333;
}

/* ------------------------------
   SECTION COMPÉTENCES
---------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.skill-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* ------------------------------
   SECTION INTÉRÊTS
---------------------------------- */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
.interest-item {
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  color: #1c1c1c;
}

/* ------------------------------
   📫 CONTACT & RÉSEAUX
---------------------------------- */
.footer-links {
  margin: 1rem 0;
  font-size: 1rem;
}
.footer-links a {
  margin: 0 0.5rem;
  color: #cccccc;
}
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}
.contact-form button {
  padding: 0.8rem;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}
.contact-form button:hover {
  background-color: #005fa3;
}

/* Highlight active section in navbar */
nav a.active {
  color: #0077cc;
  font-weight: 700;
  border-bottom: 2px solid #0077cc;
}
