/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #0f0f0f;
  color: #f5f5f5;
  line-height: 1.6;
}

/* === Navbar === */
header {
  background: #111;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.navbar {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8em;
  font-weight: bold;
  z-index: 101;
}
.logo span {
  color: #00bfff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #f5f5f5;
  transition: color 0.3s;
  font-weight: 500;
}
.nav-links a:hover {
  color: #00bfff;
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #00bfff;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 3px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* === Hero === */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1c1c1c, #0f0f0f);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.1), transparent);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  animation: pulse 8s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.3; }
}
.hero-content h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.hero-content h2 span {
  color: #00bfff;
}
.hero-content p {
  margin: 15px 0 25px;
  font-size: 1.1em;
  color: #ccc;
}
.btn {
  background: #00bfff;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  font-weight: 600;
}
.btn:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

/* === About Section === */
.about {
  background: #1a1a1a;
  padding: 80px 0;
}
.about-container {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.about-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}
.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #00bfff;
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
  transition: transform 0.3s;
}
.about-image img:hover {
  transform: scale(1.05);
}
.about-text {
  flex: 2;
  min-width: 300px;
}
.about-text h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #00bfff;
}
.about-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 15px;
}
.skills {
  margin-top: 25px;
}
.skills h3 {
  color: #00bfff;
  margin-bottom: 15px;
  font-size: 1.3em;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  background: #0f0f0f;
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid #00bfff;
  color: #00bfff;
  font-size: 0.9em;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-tag img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s;
}
.skill-tag:hover {
  background: #00bfff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}
.skill-tag:hover img {
  transform: scale(1.1);
}

/* === Sections === */
section {
  width: 90%;
  margin: auto;
  padding: 60px 0;
  text-align: center;
}
h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #00bfff;
}

/* === Projects === */


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.project-card {
  background: #1b1b1b;
  padding: 30px;
  border-radius: 15px;
  transition: all 0.3s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  transition: left 0.5s;
}
.project-card:hover::before {
  left: 100%;
}
/* --- Rendre l'image de la card FaiConseil responsive --- */
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
  object-fit: cover;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #00bfff;
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}
.project-card h3 {
  color: #00bfff;
  margin-bottom: 15px;
  font-size: 1.4em;
}
.project-card p {
  color: #ccc;
  line-height: 1.6;
}
.project-tech{
margin-bottom: 10px;
font-style: oblique;
font-size: large;
font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
.more-projects{
margin-top: 60px;
font-size: larger;
}

/* === Contact === */
.contact {
  background: #1a1a1a;
  padding: 80px 0;
}
.contact a {
  color: #00bfff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.contact a:hover {
  color: #0099cc;
  text-decoration: underline;
}
.contact p {
  font-size: 1.1em;
  margin: 10px 0;
}

/* === Footer === */
footer {
  background: #111;
  text-align: center;
  padding: 25px;
  font-size: 0.9em;
  color: #999;
  border-top: 1px solid #222;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: #1a1a1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  
  .nav-links a {
    font-size: 1.2em;
  }
  
  .hero-content h2 {
    font-size: 2em;
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-image img {
    width: 250px;
    height: 250px;
  }
  
  .skill-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.6em;
  }
  
  .hero-content p {
    font-size: 1em;
  }
  
  .logo {
    font-size: 1.4em;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}