/* Base et variables */
:root {
  --primary-color: #df9fc6;
  --primary-dark: #ff9fd9;
  --secondary-color: #df9fc6;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --bg-dark: #070707;
  --bg-card: #1a1a1a;
  --bg-card-hover: #333333;
  --accent: #ff9fd9;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gradient-bg: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
  --gradient-accent: linear-gradient(135deg, var(--primary-color) 0%, var(--accent) 100%);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}


.background {
  width: 100%;
  height: 100vh; /* Occupe toute la hauteur de la fenêtre */
  background: url("../image/pres.png") no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  transition: opacity 0.8s ease;
  opacity: 1;
  z-index: -2; /* Place le conteneur derrière le contenu */
}

/*Navbar*/


/*-----------NAVBAR-------------------*/
/* Styles améliorés pour la navbar */
.navbar {
  width: 100%;
  height: 80px; /* Légèrement réduit pour un look plus moderne */
  background-color: rgba(26, 26, 26, 0.95); /* Légèrement transparent */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  color: white;
  transition: all 0.4s ease;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre subtile */
  backdrop-filter: blur(10px); /* Effet de flou */
}

/* Logo avec dégradé */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo img {
  height: 150px;
  width: auto;
  object-fit: contain;
  padding-bottom: 2%;
}

.logo-text {
  background: linear-gradient(to right, rgb(249, 188, 202), rgb(239, 71, 111));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

/* Menu navigation */
.nav-links {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-item {
  position: relative;
  color: white;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  transition: all 0.3s ease;
}

/* Effet de soulignement animé */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, rgb(249, 188, 202), rgb(239, 71, 111));
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item:hover {
  color: rgb(249, 188, 202);
}

/* Bouton CV amélioré */
.btn-cv {
  background: linear-gradient(to right, rgb(249, 188, 202), rgb(239, 71, 111));
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}

.btn-cv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-cv:hover::before {
  width: 100%;
}

.btn-cv:hover {
  box-shadow: 0 5px 15px rgba(239, 71, 111, 0.5);
  transform: translateY(-2px);
}

.btn-cv i {
  font-size: 1.2em;
}

/* Styles pour le menu hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Animation pour le menu hamburger */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background: linear-gradient(to right, rgb(249, 188, 202), rgb(239, 71, 111));
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background: linear-gradient(to right, rgb(249, 188, 202), rgb(239, 71, 111));
}

/* Animation de la navbar au scroll */
.navbar.scrolled {
  height: 70px;
  background-color: rgba(26, 26, 26, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}



/* Media queries pour la responsivité */
@media screen and (max-width: 992px) {
  .navbar {
    padding: 0 30px;
  }

  .nav-links {
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: rgba(26, 26, 26, 0.95);
    flex-direction: column;
    gap: 0;
    padding: 100px 0 30px 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-item {
    display: block;
    padding: 15px 0;
    width: 100%;
  }

  .nav-item::after {
    display: none;
  }

  .nav-item:hover {
    background-color: rgba(239, 71, 111, 0.2);
  }

  .btn-cv {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .link-text {
    display: inline-block;
    margin-left: 5px;
  }
}

/* Project Details Container */
.project-details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 5%;
}

/* Separators */
.separator {
  border: none;
  height: 2px;
  background: var(--gradient-accent);
  margin: 40px auto;
  width: 80%;
  border-radius: 2px;
}

/* Main Container */
.main-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 30px;
  margin-bottom: 40px;
  font-family: 'Roboto Mono', monospace;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
}

.left-container, .right-container {
  background-color: #070707;
  padding: 30px;
  border-radius: 52px;
  transition: transform 0.3s ease;
  border:1px solid rgba(249, 188, 202, 0.918);
}

.left-container:hover, .right-container:hover {
  transform: translateY(-5px);
}

.left-container {
  width: 65%;
}

.right-container {
  width: 30%;
}

/* Barres de progression pour Stack technique */
.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-label i {
  color: var(--primary-color);
  font-size: 16px;
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-bar2 {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress2 {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
  width: 0; /* Initialement à 0, sera animé en JavaScript */
}

/* Suppression du style des puces de liste pour les compétences */
.right-container ul {
  list-style: none;
  padding-left: 0;
}

.right-container li {
  padding-left: 0;
}

.right-container li::marker {
  display: none;
}

@media (max-width: 768px) {
  .left-container, .right-container {
    width: 100%;
  }
}

.title2 {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 10px;
  font-family: "Roboto Mono", monospace;
}

.title2 span {
  -webkit-text-stroke: 1px white;
  color: black;
}

.title2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 50%;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Section Styling */
.section {
  display: flex;
  padding: 15px 0;
}

.section-title {
  width: 25%;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.section-content {
  width: 75%;
  color: var(--text-light);
}

.divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 5px 0;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--accent);
}

/* Stack Technique */
.right-container ul {
  padding-left: 20px;
  margin-top: 0;
}

.right-container li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 5px;
}

.right-container li::marker {
  color: var(--primary-color);
}

/* Features Container */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  width: 100%;
  font-family: 'Roboto Mono', monospace;
  max-width: 1200px;
  padding: 30px;
  margin: 40px 0;
  background-color: #1e1e1e;
  border-radius: 52px;
  
}

.features-container h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 35px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-family: "Roboto Mono", monospace;
}

.features-container h2 span {
  -webkit-text-stroke: 1px white;
  color: black;
}

.features-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}

.feature {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 188, 202, 0.3);
}

.feature-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.feature-title i {
  color: var(--primary-color);
  font-size: 18px;
}

/* Project Navigation */
.project-navigation {
  display: flex;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
  gap: 30px;
  margin: 60px 0;
  width: 100%;
  max-width: 1200px;
}

@media (max-width: 768px) {
  .project-navigation {
    flex-direction: column;
    align-items: center;
  }
}

.project-card {
  display: block;
  width: 45%;
  background-color: #1e1e1e;
  padding: 25px;
  text-decoration: none;
  color: var(--text-light);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .project-card {
    width: 100%;
  }
}

.project-card:hover {
  background-color: #333333;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 188, 202, 0.3);
}

.project-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-navigation .arrow {
  font-size: 22px;
  color: var(--primary-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.project-card:hover .arrow:first-child {
  transform: translateX(-5px);
}

.project-card:hover .arrow:last-child {
  transform: translateX(5px);
}

.project-content .arrow:first-child {
  margin-right: 12px;
}

.project-content .arrow:last-child {
  margin-left: 12px;
}

.project-navigation h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.project-navigation p {
  font-size: 14px;
  margin: 8px 0 0;
  color: #cbd5e1;
}

.project-navigation .project-type {
  color: var(--primary-color);
  font-weight: 600;
}

/* Carousel Styling */
.slider-container {
  position: relative;
  margin: 20px auto 40px;
  width: 100%;
  max-width: 900px;
  height: 500px;
}

.slider-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.slider-single {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.slider-single.active {
  opacity: 1;
  z-index: 2;
}

.slider-single-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: 0.5s ease;
}

.slider-single-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  color: white;
  font-size: 24px;
  margin: 0;
  box-sizing: border-box;
}

/* Controls */
.slider-left, .slider-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.slider-left {
  left: 20px;
}

.slider-right {
  right: 20px;
}

.slider-left:hover, .slider-right:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Dots */
.bullet-container {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bullet {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bullet.active {
  background-color: white;
  transform: scale(1.3);
}

.bullet:hover {
  background-color: white;
}

/* Button style matching the main site */
.btn-gradient {
  border-radius: 10px;
  padding: 10px;
  margin: 20px;
  background-image: linear-gradient(to right, rgb(249, 188, 202), rgb(239, 71, 111));
  color: white;
}

.btn-glow:hover {
  box-shadow: #481b5e 0px 0px 20px 0px;
}

/* Matching the original button style */
.type1 {
  height: 50px;
  width: 200px;
  position: relative;
  background-color: transparent;
  cursor: pointer;
  border: 2px solid white;
  overflow: hidden;
  border-radius: 30px;
  color: white;
  transition: all 0.5s ease-in-out;
  font-family: "Roboto Mono", monospace;
  z-index: 10;
}

.type1::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.5s ease-in-out;
  background-color: #333;
  border-radius: 30px;
  visibility: hidden;
  height: 10px;
  width: 10px;
  z-index: -1;
}

.type1:hover {
  box-shadow: 1px 1px 200px #252525;
  color: #fff;
  border: none;
}

.type1:hover::after {
  visibility: visible;
  transform: scale(100) translateX(2px);
}

.skill-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 188, 202, 0.3);
}

.skill-header {
  padding: 20px;
  cursor: pointer;
  display: grid;
  grid-template-areas:
    "title title"
    "description description"
    "spacer button";
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 8px;
  position: relative;
}

.skill-header .feature-title {
  grid-area: title;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 18px;
  margin: 0;
}

.skill-description {
  grid-area: description;
  font-size: 14px;
  margin: 0;
}

.toggle-btn {
  grid-area: button;
  justify-self: end;
  align-self: end;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  color: var(--primary-dark);
}

.skill-details {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

.skill-card.active .skill-details {
  max-height: 1000px;
  padding: 10px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card.active .toggle-btn i {
  transform: rotate(180deg);
}

.ac-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.ac-item:last-child {
  border-bottom: none;
}

.ac-title {
  color: var(--accent);
  font-weight: 500;
  min-width: 100px;
  margin-right: 15px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.ac-description {
  flex: 1;
}

.toggle-btn i {
  transition: transform 0.3s ease;
}

/* Animation pour les cartes de compétences */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-card:nth-child(2) {
  animation-delay: 0.3s;
}

.skill-card:nth-child(3) {
  animation-delay: 0.5s;
}
