* html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #ff9966;  
}

html{
  scroll-behavior: smooth;
}

.about_me,
.expertise,
.experience,
.projects,
.contact {
min-height: 100vh;
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;  /* pas -1, sinon pas de repulse */
}
    
header, section, footer {
  position: relative;
  z-index: 1;  /* le texte passe au-dessus */
}
    

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.3); /* fond blanc semi-transparent */
  z-index: 1000; /* au-dessus du contenu */
}

section {
  min-height: 100vh; /* prend toute la hauteur de l’écran */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre le contenu verticalement */
  padding: 40px; /* optionnel : espace interne */
  box-sizing: border-box;
}



header nav a {
  color: black;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

a:hover {
  color: #ff6600;
}

header ul {
  display: flex;
  justify-content:space-between;
  padding: 0;
  margin: 0;
}

header .menu{
  display: flex;
  padding: 0;
  margin: 0;
  margin-top: 30px;
}
header li {
  list-style: none;
  justify-content: center;
}

.about_me {
  padding: 100px 20px;
  background-color: transparent;
  margin: 20px auto;
  max-width: 900px;
  border-radius: 8px;
}

.about_me h1 {
  text-align: center;
  color: #333;
  font-size: 3rem;
}
.about_me p {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 20px auto;
}

.about_me img {
  max-width: 350px;
  border-radius: 50%;
  margin: 20px;
}

.about_me main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

.expertise {
  background-color: rgba(0, 0, 0, 0.5); /* fond semi-transparent pour voir les particules */
  padding: 60px 20px;
  margin: 20px auto;
}


.expertise h1 {
  text-align: center;
  color: #fff;
  font-size: 3rem;
}

.expertise main {
  display: flex;
  justify-content: space-around;
  align-items: stretch; /* 🔑 étire toutes les cartes à la même hauteur */
  margin-top: 50px;
}

.expertise div {
  flex: 1;
  background-color: #fff;
  margin: 0 10px;
  padding: 20px;
  opacity: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.expertise ul {
  list-style: none;
  padding: 0;
  margin: 0 20px;
  text-align: center;
}
.expertise li {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #555;
  text-align: center;
}

.expertise h2 {
  margin-bottom: 10px;
  margin-left: 80px;
}

/* SECTION EXPERIENCE */
.experience {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

/* Conteneur des jobs en colonne */
.experience main {
  display: flex;
  flex-direction: column;
  gap: 30px; /* espace entre les expériences */
  width: 100%;
  max-width: 900px; /* largeur max pour la lisibilité */
}

/* Chaque job (card) */
.experience .job {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation au survol */
.experience .job:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.experience .job h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 10px;
}

.experience .job h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.experience .job p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Section projets */
.projects {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Grille */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1100px;
}

/* Nouvelle carte projet */
.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(70%);
  transition: filter 0.4s ease;
}

.project-card:hover img {
  filter: brightness(50%);
}

/* Contenu en overlay */
.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transition: transform 0.4s ease;
}

.project-card h2 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 15px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

/* Affichage de la description au hover */
.project-card:hover p {
  opacity: 1;
  max-height: 200px;
}

/* Bouton */
.project-card a {
  display: inline-block;
  background: #ff6600;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-card a:hover {
  background: #e05500;
}



/* Section Contact */
.contact h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

/* Formulaire */
.contact-form {
  max-width: 600px;
  width: 100%;
  margin: auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff6600;
  outline: none;
}

.contact-form button {
  background: #ff6600;
  color: white;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e05500;
}

/* === ANIMATIONS SCROLL ASYNCHRONES === */

/* 1️⃣ État initial de toutes les sections */
section {
  opacity: 0;
  transform: translateY(1PX);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* 2️⃣ Quand une section devient visible */
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3️⃣ Éléments internes avec décalage */
section .fade-child {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 3s ease-out, transform 3s ease-out;
}

/* 4️⃣ Quand la section est visible, les enfants apparaissent progressivement */
section.visible .fade-child {
  opacity: 1;
  transform: translateX(0);
}


/* ====== FOOTER ====== */
.footer {
background-color: #0a0a0a;
color: #f0f0f0;
padding: 60px 20px 30px;
font-family: "Poppins", sans-serif;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 40px;
max-width: 1200px;
margin: 0 auto;
}

.footer-left h2 {
font-size: 1.5rem;
color: #00bfff;
margin-bottom: 10px;
}

.footer-left p {
max-width: 300px;
font-size: 0.95rem;
opacity: 0.8;
}

.footer-links h3,
.footer-socials h3 {
font-size: 1.1rem;
margin-bottom: 10px;
color: #00bfff;
}

.footer-links ul {
list-style: none;
padding: 0;
}

.footer-links ul li {
margin-bottom: 8px;
}

.footer-links a {
color: #f0f0f0;
text-decoration: none;
transition: color 0.3s ease;
}

.footer-links a:hover {
color: #00bfff;
}

.social-icons {
display: flex;
gap: 15px;
}

.social-icons img {
width: 30px;
height: 30px;
filter: invert(100%);
transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
transform: scale(1.1);
filter: invert(63%) sepia(75%) saturate(3125%) hue-rotate(172deg) brightness(102%) contrast(101%);
}

.footer-bottom {
text-align: center;
margin-top: 40px;
font-size: 0.9rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 20px;
opacity: 0.8;
}

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

.footer-left p {
  max-width: 100%;
}
}

/* ======= MENU BURGER ======= */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
}

.menu {
display: flex;
list-style: none;
gap: 20px;
margin: 0;
}

.menu li a {
color: black;
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
}

.menu li a:hover {
color: #ff6600;
}

/* Bouton burger */
.burger {
display: none;
flex-direction: column;
justify-content: space-between;
width: 28px;
height: 22px;
cursor: pointer;
z-index: 2000;
}

.burger .line {
height: 3px;
width: 100%;
background-color: #000;
border-radius: 2px;
transition: all 0.4s ease;
}

/* --- VERSION MOBILE --- */
@media (max-width: 768px) {
.burger {
  display: flex;
}

.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.4s ease;
  z-index: 1500;
}

.menu.active {
  right: 0;
}

/* Animation du burger en croix */
.burger.active .line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.active .line:nth-child(2) {
  opacity: 0;
}
.burger.active .line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Masquer la liste desktop */
nav ul.menu li a {
  font-size: 1.3rem;
}
}

/* === Correction du conflit du menu mobile === */
@media (max-width: 768px) {
header ul,
header .menu {
  display: none; /* empêche l'ancien header d'afficher le menu */
}

nav .menu {
  display: flex; /* garde le bon comportement du menu mobile */
}
}

* html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #ff9966;  
}

html {
  scroll-behavior: smooth;
}

.about_me,
.expertise,
.experience,
.projects,
.contact {
min-height: 100vh;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

header, section, footer {
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 1000;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

header nav a {
  color: black;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

a:hover {
  color: #ff6600;
}

header ul {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

header .menu {
  display: flex;
  padding: 0;
  margin: 0;
  margin-top: 30px;
}

header li {
  list-style: none;
  justify-content: center;
}

/* ===== SECTION ABOUT ===== */
.about_me {
  padding: 100px 20px;
  background-color: transparent;
  margin: 20px auto;
  max-width: 900px;
  border-radius: 8px;
}

.about_me h1 {
  text-align: center;
  color: #333;
  font-size: 3rem;
}

.about_me p {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 20px auto;
}

.about_me img {
  max-width: 350px;
  border-radius: 50%;
  margin: 20px;
}

.about_me main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

/* ===== SECTION EXPERTISE ===== */
.expertise {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 60px 20px;
  margin: 20px auto;
}

.expertise h1 {
  text-align: center;
  color: #fff;
  font-size: 3rem;
}

.expertise main {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  margin-top: 50px;
}

.expertise div {
  flex: 1;
  background-color: #fff;
  margin: 0 10px;
  padding: 20px;
  opacity: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.expertise ul {
  list-style: none;
  padding: 0;
  margin: 0 20px;
  text-align: center;
}

.expertise li {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #555;
  text-align: center;
}

.expertise h2 {
  margin-bottom: 10px;
  margin-left: 80px;
}

/* ===== SECTION EXPERIENCE ===== */
.experience {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

.experience main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 900px;
}

.experience .job {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience .job:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ===== SECTION PROJECTS ===== */
.projects {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1100px;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(70%);
  transition: filter 0.4s ease;
}

.project-card:hover img {
  filter: brightness(50%);
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.project-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.project-card:hover p {
  opacity: 1;
  max-height: 200px;
}

.project-card a {
  display: inline-block;
  background: #ff6600;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-card a:hover {
  background: #e05500;
}

/* ===== SECTION CONTACT ===== */
.contact h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 600px;
  width: 100%;
  margin: auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== FOOTER ===== */
.footer {
background-color: #0a0a0a;
color: #f0f0f0;
padding: 60px 20px 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 40px;
max-width: 1200px;
margin: 0 auto;
}

/* ======= MENU BURGER ======= */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
}

.menu {
display: flex;
list-style: none;
gap: 20px;
margin: 0;
}

.menu li a {
color: black;
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
}

.menu li a:hover {
color: #ff6600;
}

.burger {
display: none;
flex-direction: column;
justify-content: space-between;
width: 28px;
height: 22px;
cursor: pointer;
z-index: 2000;
}

.burger .line {
height: 3px;
width: 100%;
background-color: #000;
border-radius: 2px;
transition: all 0.4s ease;
}

@media (max-width: 768px) {
.burger {
  display: flex;
}

.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.4s ease;
  z-index: 1500;
}

.menu.active {
  right: 0;
}

.burger.active .line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.active .line:nth-child(2) {
  opacity: 0;
}

.burger.active .line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

nav ul.menu li a {
  font-size: 1.3rem;
}

/* Correction du conflit : cacher le menu desktop sur mobile */
header ul,
header .menu {
  display: none;
}

nav .menu {
  display: flex;
}
}

/* === RESPONSIVE DESIGN COMPLET === */
@media (max-width: 1024px) {
.about_me main {
  flex-direction: column;
}

.expertise main {
  flex-direction: column;
  align-items: center;
}

.expertise div {
  width: 80%;
  margin-bottom: 30px;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.contact-form {
  width: 90%;
}
}

@media (max-width: 480px) {
section {
  padding: 30px 10px;
}

.about_me h1,
.expertise h1,
.experience h1,
.projects h1,
.contact h1 {
  font-size: 1.8rem;
}

.about_me img {
  width: 180px;
}

.project-card img {
  height: 160px;
}

.contact-form {
  padding: 15px;
}

.footer-left p {
  font-size: 0.85rem;
}

.footer-bottom {
  font-size: 0.8rem;
}
}
