/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* pour compenser le menu fixe */
}

/* Navigation */
/* Menu burger */
nav {
  background-color: #9356DC;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
}

nav .menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  padding: 0 20px;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* Menu classique (desktop) */
nav ul.menu {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul.menu li {
  margin: 0 15px;
}

nav ul.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Responsive menu */
@media (max-width: 768px) {
  nav .menu-icon {
    display: block;
  }

  nav ul.menu {
    flex-direction: column;
    align-items: center;
    background-color: #9356DC;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    display: none;
  }

  #menu-toggle:checked + .menu-icon + ul.menu {
    display: flex;
  }

  nav ul.menu li {
    margin: 10px 0;
  }
}


/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
}

header h1 {
  font-size: 2.2rem;
  color: #9356DC;
}

header p {
  font-size: 1.1rem;
  color: #555;
}
/* Photo de profil dans le header */
.photo {
  max-width: 135px;
  margin: 30px auto;
  text-align: center;
}

.photo img {
  width: 100%;
  height: 180px;
  object-fit: contain; 
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Section projets */
.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes desktop */
}

.projects h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
}

/* Carte projet */
.project {
  background-color: #fff;
  border-left: 5px solid #9356DC;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.project img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.project h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #444;
}

.project a {
  margin-top: 15px;
  text-decoration: none;
  color: #008766;
  font-weight: bold;
}

.project a:hover {
  text-decoration: underline;
}
.tech-logos {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-logos img {
  height: 24px;
  width: auto;
  display: inline-block;
}


/* Footer */
footer {
  text-align: center;
  margin-top: 60px;
  color: #777;
  font-size: 0.9rem;
  padding: 20px;
}

/* Responsive */
@media (max-width: 1023px) {
  .projects {
    grid-template-columns: repeat(2, 1fr); /* tablette */
  }
}

@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr; /* mobile */
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }
}


