/* Conservez les variables globales comme les autres pages */
:root {
  --main-color: #13bbff;
  --second-bg-color: #22282f;
  --text-color: #fff;
  --other-color: #c3cad5;
}

.projects-section {
  padding: 120px 7% 80px;
  background: var(--bg-color);
}

.projects-header {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--main-color), #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-header p {
  color: var(--other-color);
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--second-bg-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid var(--main-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(19, 187, 255, 0.2);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(19, 187, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-links a {
  color: white;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.project-links a:hover {
  transform: translateY(-5px);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.project-content p {
  color: var(--other-color);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: rgba(19, 187, 255, 0.1);
  color: var(--main-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--main-color);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-header h1 {
    font-size: 2rem;
  }
}

.project-links span {
  color: white;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
  cursor: default;
  position: relative;
}

/* ====Style pour les tooltips ===*/
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-color);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover::after {
  opacity: 1;
}











:root {
  --text-color: #fff;
  --bg-color: #1b1f24;
  --second-bg-color: #22282f;
  --main-color: #13bbff;
  --other-color: #c3cad5;
  --h1-font: 4.5rem;
  --h2-font: 2.9rem;
  --p-font: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  background: var(--bg-color);
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 7%;
  background: rgba(27, 31, 36, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 187, 255, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.logo span {
  color: var(--main-color);
}

.navlist {
  display: flex;
  gap: 1.5rem;
}

.navlist a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--other-color);
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.navlist a:hover,
.navlist a.active-nav {
  background: rgba(19, 187, 255, 0.1);
  color: var(--main-color);
}

.navlist a.active-nav {
  font-weight: 600;
}

#menu-icon {
  font-size: 2rem;
  color: var(--main-color);
  cursor: pointer;
  display: none;
  z-index: 1001;
}

section {
  padding: 110px 7% 230px;
}

.hero-content h4 {
  font-size: 1.6rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: var(--h1-font);
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.2;
  background: linear-gradient(to right, var(--main-color), #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: var(--p-font);
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--other-color);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--main-color);
  color: var(--bg-color);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 160px;
  gap: 8px;
}

.btn:hover {
  background: var(--text-color);
  transform: translateY(-3px);
}

.social-icons a {
  margin-right: 15px;
  font-size: 24px;
  color: var(--main-color);
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px);
}

.profile-portrait {
  width: 350px;
  height: 350px;
  border-radius: 20px;
  object-fit: cover;
  border: 5px solid var(--main-color);
  box-shadow: 0 20px 50px rgba(19, 187, 255, 0.2);
  transform: perspective(1000px) rotateY(-10deg);
  transition: all 0.5s ease;
}

.profile-portrait:hover {
  transform: perspective(1000px) rotateY(0deg);
  box-shadow: 0 25px 60px rgba(19, 187, 255, 0.3);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-right: 5%;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--main-color), transparent);
  top: -20px;
  left: -20px;
  z-index: 0;
  opacity: 0.3;
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.3; }
  100% { transform: scale(1.05); opacity: 0.5; }
}

.no-scroll {
  overflow: hidden;
}

.bx-x {
  transform: rotate(180deg);
}
.bx-x::before {
  content: '\ec8d';
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .profile-portrait {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  
  .navlist {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--second-bg-color);
    flex-direction: column;
    align-items: center;
    padding: 100px 30px;
    transition: all 0.5s ease;
    z-index: 1000;
  }
  
  .navlist.active {
    right: 0;
  }

  .hero-image {
    justify-content: center;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero h4 {
    font-size: 1.3rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 220px;
  }
}















