/* --- CONFIGURATION GÉNÉRALE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
} 

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: skyblue;
  overflow-x: hidden;
} 

/* AJOUT : On décale le contenu vers le bas car la navbar est maintenant fixe au-dessus */
main {
  padding-top: 70px; 
  display: flex;
  flex-direction: column;
}

li { list-style: none; }
a { text-decoration: none; color: #fff; font-size: 1rem; }
a:hover { color: #63C7B2; } 

/* --- BARRE DE NAVIGATION (FIXE) --- */
header {
  position: fixed;   /* Reste bloqué en haut */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;     /* Priorité maximale sur tout le reste */
  padding: 0 2rem;
  background-color: rgba(0, 0, 0, 0.2); /* Transparent au début */
  transition: all 0.4s ease; /* Transition fluide pour le changement de couleur */
} 

/* BONUS : Cette classe s'active grâce au JavaScript quand on descend la page */
header.scrolled {
  background-color: rgba(0, 0, 0, 0.9); /* Devient sombre */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px); /* Flou derrière la barre */
  padding: 5px 2rem; /* La barre se rétrécit légèrement */
}

.navbar {
  width: 100%;
  max-width: 1200px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
} 

.navbar .logo a {
  display: flex;
  align-items: center; 
  gap: 12px;           
  font-size: 1.5rem;
  font-weight: bold;
} 

.logo-img {
  height: 45px; width: 45px; object-fit: cover; border-radius: 50%;
  border: 2px solid transparent; cursor: zoom-in; transition: 0.3s;
} 

.logo-img:hover { transform: scale(1.1); }
.navbar .links { display: flex; gap: 2rem; }
.buttons { display: flex; gap: 10px; } 

/* --- BOUTONS --- */
.action-button {
  background-color: #63C7B2; color: #000; border: 1px solid #63C7B2;
  padding: 0.5rem 1.2rem; border-radius: 5px; font-size: 0.9rem;
  font-weight: bold; cursor: pointer; transition: 0.3s;
}
.action-button:hover { color: #fff; border: 1px solid #fff; } 

.action-button2 { 
  background-color: #fff; color: #000; border: 1px solid #000;
  padding: 0.5rem 1.2rem; border-radius: 5px; font-weight: bold; 
  font-size: 0.9rem; transition: 0.3s; cursor: pointer; 
} 

.pro { background-color: transparent; color: #fff; border: 1px solid #fff; }
.pro:hover { background-color: #fff; color: #000; } 

/* --- MENU MOBILE --- */
.navbar .burger-menu-button { color: #fff; font-size: 1.5rem; cursor: pointer; display: none; }

.burger-menu {
  display: none; 
  position: fixed; /* Reste fixe également */
  right: 2rem; 
  top: 70px;
  width: 250px; 
  background: rgba(0, 0, 0, 0.25);/* Plus sombre pour le mobile */
  backdrop-filter: blur(15px);
  border-radius: 10px; 
  overflow: hidden; 
  height: 0; 
  transition: height 0.3s ease; 
  z-index: 5001;
}

.burger-menu.open { height: auto; padding-bottom: 10px; } 

.mobile-links { display: flex; flex-direction: column; align-items: center; padding: 1rem 0; }
.mobile-links li { padding: 10px 0; }
.divider { height: 1px; background-color: rgba(255, 255, 255, 0.2); width: 80%; margin: 0 auto 1rem auto; }
.buttons-burger-menu { display: flex; flex-direction: column; align-items: center; gap: 15px; padding-bottom: 1.5rem; } 

/* --- OVERLAY CLASSIQUE (IMAGES & PROFIL) --- */
.overlay {
  display: none; position: fixed; z-index: 6000; left: 0; top: 0;
  width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); 
  justify-content: center; align-items: center;
}
.overlay-content { max-width: 80%; max-height: 80%; border-radius: 15px; }
.close-overlay { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; } 

/* --- OVERLAY TECHNIQUE --- */
.overlay-tech {
    display: none; 
    position: fixed; 
    z-index: 7000; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.95); 
    justify-content: center; 
    align-items: center;
    overflow-y: auto;
    padding: 20px 0;
} 

.modal-container {
    background: #111;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    color: white;
    border: 1px solid #333;
    margin: auto;
} 

.modal-body { display: flex; gap: 40px; align-items: flex-start; }
.modal-image { flex: 1.2; }
.modal-image img { width: 100%; border-radius: 10px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-text { flex: 1; text-align: left; }

.category-tag { color: #63C7B2; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; display: block; margin-bottom: 10px; }
.modal-text h2 { color: #fff; margin-bottom: 25px; font-size: 2rem; }

.tech-grid { display: flex; flex-direction: column; gap: 20px; }
.tech-item { display: flex; gap: 15px; align-items: flex-start; }
.tech-item i { color: #63C7B2; font-size: 1.2rem; margin-top: 5px; }
.tech-item h4 { font-size: 1.1rem; color: #eee; margin-bottom: 4px; }
.tech-item p { font-size: 0.9rem; color: #999; line-height: 1.4; }

.tech-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; }
.badges { display: flex; gap: 10px; }
.badges span { background: #222; padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; color: #63C7B2; border: 1px solid #444; }

.close-tech {
    position: fixed; 
    top: 20px; 
    right: 25px;
    color: #fff; 
    font-size: 35px; 
    cursor: pointer; 
    z-index: 7001;
    background: rgba(0,0,0,0.6);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- SECTION À PROPOS --- */
.about-section {
    padding: 100px 20px;
    background-color: #f8fbfd;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-trigger {
    margin-bottom: 25px;
    display: inline-block;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #63C7B2;
    cursor: zoom-in;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-img:hover {
    transform: scale(1.1);
}

.about-content { flex: 1.5; text-align: left; }
.about-content h2 { font-size: 2.2rem; color: #333; margin-bottom: 20px; }
.about-content p { color: #666; line-height: 1.8; font-size: 1.1rem; margin-bottom: 30px; }

.skills-mini-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.skill-tag {
    background: white; border: 1px solid #eee; padding: 10px 20px;
    border-radius: 50px; font-size: 0.9rem; color: #444; font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.skill-tag i { color: #63C7B2; margin-right: 8px; }

.about-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-box {
    background: #63C7B2; color: white; padding: 40px 20px;
    border-radius: 20px; text-align: center; transition: transform 0.3s;
}
.stat-box span { font-size: 2rem; font-weight: bold; display: block; }

/* --- HERO & PORTFOLIO --- */
.hero-section { text-align: center; padding: 80px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.hero-flex { display: flex; align-items: center; justify-content: center; gap: 50px; max-width: 1200px; margin: 0 auto; }
.col-gauche, .col-droite { flex: 1; }
.col-droite img { width: 100%; border-radius: 12px; } 

.service-card {
  background: white; padding: 30px; border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center;
  flex: 1; min-width: 280px; max-width: 400px;
} 

.portfolio-section { padding: 100px 20px; }
.portfolio-wrapper { display: flex; justify-content: center; max-width: 1200px; margin: 0 auto; gap: 80px; }
.portfolio-visual { flex: 1.2; display: flex; justify-content: center; align-items: center; height: 450px; }
.portfolio-content { flex: 1; text-align: left; margin-top: 60px; color: #000; } 

.card-stack { position: relative; width: 240px; height: 340px; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.card {
    position: absolute; width: 100%; height: 100%; border-radius: 15px; overflow: hidden; background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.5s ease-in-out; border: 4px solid white; transform-origin: bottom center;
}
.card img { width: 100%; height: 100%; object-fit: cover; } 

/* ÉTAT INITIAL CORRIGÉ : On répartit mieux les 6 cartes */
.card-1 { transform: rotate(-12deg) translateX(-15px); z-index: 1; }
.card-2 { transform: rotate(-8deg) translateX(-8px); z-index: 2; }
.card-3 { transform: rotate(-4deg) translateX(-4px); z-index: 3; }
.card-4 { transform: rotate(0deg); z-index: 4; }
.card-5 { transform: rotate(4deg) translateX(4px); z-index: 5; } 
.card-6 { transform: rotate(8deg) translateX(8px); z-index: 6; }

/* HOVER CORRIGÉ : Éventail large pour 6 cartes */
.card-stack:hover .card-1:not(.active) { transform: rotate(-35deg) translateX(-130px); }
.card-stack:hover .card-2:not(.active) { transform: rotate(-22deg) translateX(-85px); }
.card-stack:hover .card-3:not(.active) { transform: rotate(-10deg) translateX(-40px); }
.card-stack:hover .card-4:not(.active) { transform: rotate(10deg) translateX(40px); }
.card-stack:hover .card-5:not(.active) { transform: rotate(22deg) translateX(85px); } 
.card-stack:hover .card-6:not(.active) { transform: rotate(35deg) translateX(130px); }

.card-stack.stack-focused { transform: scale(1.2); }
.card.active { transform: rotate(0deg) translateY(-40px) scale(1.1) !important; z-index: 1000 !important; border-color: #63C7B2; } 

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  header { padding: 0 1rem; }
  .navbar .links, .navbar .buttons { display: none; }
  .navbar .burger-menu-button { display: block; }
  .burger-menu { display: block; }
  .portfolio-wrapper, .about-container { flex-direction: column; align-items: center; text-align: center; }
  .portfolio-content, .about-content { text-align: center; margin-top: 20px; }
  .skills-mini-grid { justify-content: center; }
  .modal-body { flex-direction: column; text-align: center; gap: 20px; }
  .modal-container { padding: 30px 20px; margin-top: 60px; }
  .tech-item { text-align: left; }
}

/* --- FOOTER --- */
.footer-section {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 20px 40px;
    margin-top: 0;
}

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

.footer-info { flex: 1; }
.footer-info h2 { color: #63C7B2; margin-bottom: 20px; font-size: 1.8rem; }
.footer-info p { color: #ccc; margin-bottom: 25px; line-height: 1.6; }

.contact-details { margin-bottom: 30px; }
.detail-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #eee; }
.detail-item i { color: #63C7B2; font-size: 1.1rem; }

.social-links { display: flex; gap: 15px; }
.social-links a i { color: #63C7B2; font-size: 1.6rem; transition: 0.3s ease; }
.social-links a:hover i { color: white; transform: scale(1.2); }

.footer-form {
    flex: 1;
    max-width: 500px;
    background: #242424;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
}

.footer-form input, .footer-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    background: #111;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
}

.file-label {
    display: block;
    padding: 10px;
    background: #333;
    color: #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    border: 1px dashed #555;
    margin-bottom: 15px;
}

#file-input { display: none; }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        gap: 30px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-form {
        max-width: 100%;
        width: 100%;
    }

    .footer-info {
        text-align: center;
    }

    .contact-details {
        display: inline-block;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }

    #process > div {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
    }
}
