/* ---- Import de la police ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* ---- Variables globales ---- */
:root {
  --violet: #7c3aed;
  --violet-dark: #5b21b6;
  --bg-light: #f9f9ff;
  --text-dark: #1a1a1a;
}

/* ---- Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Corps du site ---- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ---- NAVBAR ---- */
header {
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

::selection {
  background-color: gold;
  color: black;     
}

::-moz-selection {
  background-color: gold;
  color: black;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.logo span {
  color: var(--violet);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--violet);
}

/* ---- HERO SECTION ---- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45vh;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: white;
}

.intro {
  max-width: 700px;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: white;
  color: var(--violet-dark);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: var(--bg-light);
  transform: translateY(-3px);
}

/* ---- SECTION À PROPOS ---- */
.about {
  background-color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.about h2 {
  color: var(--violet-dark);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.about-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
  background-color: var(--bg-light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.about-info {
  flex: 1 1 250px;
  text-align: left;
}

.about-info ul {
  list-style: none;
}

.about-info li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.about-info strong {
  color: var(--violet);
}

.about-text {
  flex: 2 1 300px;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- SECTION COMPÉTENCES ---- */
.skills {
  background-color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.skills h2 {
  color: var(--violet-dark);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: auto;
}

.skill-card {
  background-color: var(--bg-light);
  padding: 1.2rem;
  border-radius: 15px;
  font-weight: 600;
  color: var(--violet-dark);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, background-color 0.3s;
}

.skill-card:hover {
  background-color: var(--violet);
  color: white;
  transform: translateY(-5px);
}

/* ---- PAGE CONTACT ---- */
.contact-page {
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: white;
  padding: 4rem 2rem 3rem;
}

.contact-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.contact-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

.contact-form-section {
  display: flex;
  justify-content: center;
  padding: 3rem 2rem;
}

.contact-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--violet-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
  outline: none;
}

.contact-form .btn {
  width: 100%;
  background-color: var(--violet);
  color: white;
  border: none;
  cursor: pointer;
}

.contact-form .btn:hover {
  background-color: var(--violet-dark);
  transform: translateY(-3px);
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 1rem;
  background-color: white;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  color: #555;
}

/* ---- PROJECTS-LIST PLUS LARGE (NOUVEAU) ---- */
.projects-list {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.projects-list h2 {
  font-size: 2.2rem;
  color: var(--violet-dark);
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 800px; /* PLUS LARGE : était ~600px par défaut */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.projects-list ul {
  list-style: none;
  max-width: 900px; /* LARGEUR LISTE ÉLARGIE */
  margin: 0 auto;
  padding: 0;
}

.projects-list li {
  background: white;
  margin-bottom: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border-left: 5px solid var(--violet);
}

.projects-list li:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(124,58,237,0.15);
}

.projects-list li strong {
  color: var(--violet-dark);
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .projects-list h2 {
    font-size: 1.8rem;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .projects-list {
    padding: 0 1rem;
  }
}

.veille-description {
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: justify;
  line-height: 1.8;
}

.veille-description p {
  background: white;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid var(--violet);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.veille-description p:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(124,58,237,0.15);
}

.veille-description strong {
  color: var(--violet-dark);
}

/* DOWNLOAD BTN COMPÉTENCES */
.download-section {
  margin-bottom: 3rem;
}

.btn-download {
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(124,58,237,0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-download:hover {
  background: white;
  color: var(--violet-dark);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(124,58,237,0.4);
  border-color: var(--violet);
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .about-card {
    flex-direction: column;
    text-align: left;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* ---- PAGE PROJETS (VERSION LISTE) ---- */
.projects-page {
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.projects-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: white;
  padding: 4rem 2rem 3rem;
}

.projects-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.projects-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

.projects-list {
  background-color: white;
  max-width: 800px;
  margin: 3rem auto;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.projects-list h2 {
  color: var(--violet-dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.projects-list ul {
  list-style: none;
  padding-left: 0;
}

.projects-list li {
  background-color: var(--bg-light);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, background-color 0.3s;
  font-size: 1rem;
}

.projects-list li:hover {
  background-color: var(--violet);
  color: white;
  transform: translateY(-4px);
}

.projects-list li strong {
  color: var(--violet-dark);
}

.projects-list li:hover strong {
  color: white;
}

#parcours {
  padding: 60px 20px;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--violet);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

.timeline-date {
  width: 45%;
  text-align: right;
  font-weight: bold;
}

.timeline-content {
  width: 45%;
  background: #f4f4f4;
  padding: 15px;
  border-radius: 8px;
}




/* ========================= */
/* 📱 RESPONSIVE GLOBAL */
/* ========================= */

@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    align-items: center;
    padding: 1rem;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 3rem 1rem;
  }

  .intro h1 {
    font-size: 1.8rem;
  }

  .intro p {
    font-size: 1rem;
  }

  /* ABOUT */
  .about {
    padding: 2rem 1rem;
  }

  .about-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  /* SKILLS */
  .skills {
    padding: 2rem 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* PROJECTS */
  .projects-list {
    padding: 1.5rem 1rem;
  }

  .projects-list li {
    font-size: 0.95rem;
    padding: 1rem;
  }

  /* TIMELINE (TRÈS IMPORTANT) */
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date,
  .timeline-content {
    width: 100%;
    text-align: left;
  }

  .timeline-date {
    margin-bottom: 0.5rem;
  }

  /* BOUTONS */
  .btn,
  .btn-download {
    width: 100%;
    text-align: center;
  }

}


/* ========================= */
/* 📱 PETITS TÉLÉPHONES */
/* ========================= */

@media (max-width: 480px) {

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .intro h1 {
    font-size: 1.5rem;
  }

}

/* ========================= */
/* 🔥 NAVBAR MOBILE FIX */
/* ========================= */

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0; /* IMPORTANT */
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}