/* ==== BASE ==== */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #121212; /* fond sombre */
  color: #f0f0f0; /* texte clair */
}

h1, h2, h3 {
  margin: 0 0 10px;
}

a {
  text-decoration: none;
  color: #00ffff; /* accent cyan fluo */
}

.section {
  padding: 60px 20px;
  text-align: center;
}

/* ==== HERO ==== */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3em;
}

.hero p {
  margin: 20px 0;
}

.btn {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  color: #121212;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* ==== SERVICES ==== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #1f1f1f;
  border: 2px solid #00ffff;
  padding: 30px;
  border-radius: 20px;
  width: 250px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00ffff;
}

/* ==== PORTFOLIO ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.grid-item {
  background: #1f1f1f;
  padding: 50px 0;
  border-radius: 15px;
}

/* ==== CONTACT ==== */
form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

input, textarea {
  background: #1f1f1f;
  border: none;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  color: #f0f0f0;
}

button.btn {
  align-self: center;
  cursor: pointer;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 20px;
  background: #1a1a1a;
  font-size: 0.9em;
}

/* === ABOUT SECTION === */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* Pour empiler sur petit écran */
}

.avatar {
  width: 250px;
  border-radius: 50%; /* Avatar arrondi */
  border: 4px solid #00ffff; /* Petit halo néon */
}

.about-text {
  max-width: 500px;
  text-align: left;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
}

.grid-item.project {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item.project img {
  width: 100%;
  border-radius: 10px;
}

.grid-item.project h3 {
  margin-top: 15px;
  color: #00ffff;
}

.grid-item.project p {
  font-size: 0.95em;
  margin: 10px 0;
}

.grid-item.project .btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9em;
}
.success-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #00ffcc;  /* Accent néon clair */
  color: #121212;       /* Texte sombre pour contraster */
  padding: 15px 30px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 255, 204, 0.5);
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1000;
}
.success-banner.show {
  opacity: 1;
  pointer-events: auto;
}
