/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(to right, #8e44ad, #2ecc71);
  color: #000;
  scroll-behavior: smooth;
}

/* HEADER FIXE */
header {
  background-color: #00bcd4;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid black;
}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: black;
  transition: width 0.3s;
}

header nav a:hover::after {
  width: 100%;
}

.logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

/* SECTIONS */
section {
  padding: 200px 20px;
  text-align: center;
  min-height: 100vh;
  border-bottom: 3px solid black; /* séparation entre sections */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeIn 1s forwards;
}

/* Animation quand on clique sur un lien */
section:target {
  animation: slideDown 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* IMAGES */
.section-image {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
}

.hex-image {
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 
                     75% 93.3%, 25% 93.3%, 0% 50%);
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* TEXTES */
h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
}

/* BOUTONS */
button {
  background-color: #d580ff;
  border: none;
  padding: 12px 25px;
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

button:hover {
  background-color: #b84dff;
  transform: scale(1.05);
}

/* PROJETS */
.projects {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.project-card {
  width: 200px;
  height: 250px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .overlay {
  opacity: 1;
}
/* HEADER FIXE */
header {
  background-color: #00bcd4;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid black;
}

}.cv-container h1,
.cv-container h2 {
    color: #007BFF; /* bleu uniquement dans le CV */
}


/* Animation apparition sections */
section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section Contact */
#contact {
  text-align: center;
  padding: 60px 20px;
  background: #f4f4f9; /* même style que tes autres sections */
}

#contact h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

#contact p {
  color: #555;
  margin-bottom: 30px;
}

/* Formulaire */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

/* Bouton (même style que tes autres boutons) */
.contact-form button {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #45a049;
}


.images img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%; /* rond */
            border: 3px solid #000; /* contour noir (optionnel) */
        }
        .texte {
            margin-left: 40px;
            max-width: 900px;
            color: black;
            text-align: justify;
        } .images {
            display: flex;
            flex-direction: row;   /* côte à côte */
            gap: 15px;          
              .container {
            display: flex;
            align-items: flex-start;
            padding: 20px;