/* ---- 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: 60vh;
  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;
}

/* ---- 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;
}
