/* Variables CSS */
:root {
  --primary: #8cd7ff;
  --secondary: #e6f3ff;
  --light-text: #fff;
  --dark-text: #2c3e50;
  --gradient-bg: linear-gradient(135deg, #8cd7ff 0%, #e6f3ff 100%);
  --shadow: 0 10px 30px rgba(140, 215, 255, 0.3);
  --hover-shadow: 0 15px 40px rgba(140, 215, 255, 0.4);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--gradient-bg);
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(140, 215, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

header.hidden {
  transform: translateY(-120%);
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, transform 0.3s;
  z-index: 1; /* texte au-dessus du ::before */
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1; /* arrière-plan animé derrière le texte */
  transition: left 0.3s;
}

nav a:hover {
  color: var(--light-text); /* texte devient blanc pendant hover */
  transform: translateY(-2px);
}

nav a:hover::before {
  left: 0;
}

/* Section À propos */
#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--gradient-bg);
}

.presentation {
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
}

.presentation h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary), #0074cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(140, 215, 255, 0.3);
}

.presentation p {
  font-size: 1.3rem;
  color: var(--dark-text);
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Section Projets */
#projects {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

#projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-text);
  position: relative;
}

#projects h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Cartes de projets */
.valoapp,
.homepage {
  background: var(--light-text);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.valoapp img,
.homepage img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(140, 215, 255, 0.15);
  filter: brightness(0.95) contrast(1.05) saturate(1.1);
  position: relative;
  overflow: hidden;
}

.valoapp img::after,
.homepage img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(140, 215, 255, 0.1) 0%, rgba(230, 243, 255, 0.05) 100%);
  opacity: 0;
  pointer-events: none;
}

.valoapp h3,
.homepage h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.valoapp p,
.homepage p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Boutons */
button {
  background: var(--primary);
  color: var(--light-text);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Section Contact */
#contact {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark-text);
  position: relative;
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

#contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

#contact ul {
  list-style: none;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#contact li {
  background: var(--light-text);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(140, 215, 255, 0.2);
}

#contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Formulaire */
form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--secondary);
  font-family: inherit;
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--light-text);
  box-shadow: 0 0 10px rgba(140, 215, 255, 0.3);
}

form button {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: var(--dark-text);
  color: var(--light-text);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #projects {
    margin: 1rem;
    padding: 4rem 1.5rem;
  }

  .presentation h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
  }

  nav a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  #about {
    padding: 8rem 1.5rem 2rem;
    min-height: 80vh;
  }

  .presentation h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .presentation p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  #projects {
    margin: 1rem 0.5rem;
    padding: 3rem 1.5rem;
    border-radius: 15px;
  }

  #projects h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .valoapp,
  .homepage {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .valoapp img,
  .homepage img {
    height: 180px;
    border-radius: 8px;
  }

  .valoapp h3,
  .homepage h3 {
    font-size: 1.3rem;
  }

  button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #contact {
    margin: 0.5rem;
    padding: 2rem 1rem;
  }

  #contact h2 {
    font-size: 1.6rem;
  }

  #contact p {
    font-size: 1rem;
  }

  nav {
    gap: 0.5rem;
    justify-content: space-between;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  #about {
    padding: 7rem 1rem 1rem;
    min-height: 70vh;
  }

  .presentation h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .presentation p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  #projects {
    margin: 0.5rem;
    padding: 2rem 1rem;
    border-radius: 10px;
  }

  #projects h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  #projects h2::after {
    width: 60px;
    height: 3px;
  }

  .valoapp,
  .homepage {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
  }

  .valoapp img,
  .homepage img {
    height: 150px;
    border-radius: 8px;
  }

  .valoapp h3,
  .homepage h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .valoapp p,
  .homepage p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  footer {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
  }

  footer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 320px) {
  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .presentation h1 {
    font-size: 1.5rem;
  }

  .presentation p {
    font-size: 0.9rem;
  }

  #projects {
    padding: 1.5rem 0.8rem;
  }

  #projects h2 {
    font-size: 1.4rem;
  }

  .valoapp,
  .homepage {
    padding: 0.8rem;
  }

  .valoapp img,
  .homepage img {
    height: 120px;
  }

  button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

#logo_homepage {
  display: block;
  height: 7%;
  width:7%;
  margin: 0 auto;

}

#logo_valorant {
  display: block;
  height: 7%;
  width:7%;
  margin: 0 auto;
}