@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}   

body {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    cursor: crosshair;
    /*background: rgba(15 23 42);     /* Bleu */
    background-color: #1a191d;       /* Gris foncé */

    color: #e0e0e0; 
    line-height: 1.6;
    width: 100%;

}


/* Navigation (bulle flottante) */
nav {
    position: sticky;
    top: 1rem;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;

    /* taille centrée pour obtenir l'effet bulle */
    margin: 0.75rem auto;
    width: min(1000px, calc(100% - 2rem));
    padding: 0.9rem 1rem;

    /* fond semi-transparent + flou pour ressembler à une bulle */
    background: linear-gradient(180deg, rgba(26,25,29,0.80), rgba(26,25,29,0.65));
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    /* arrondi complet + bord + ombre portée pour effet "flottant" */
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 3px 10px rgba(74,158,255,0.06);

    /* animations douces au survol */
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    position: sticky;
}

/* Légère surbrillance glossy */
nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%, transparent 50%);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* Lévitation au survol */
nav:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 6px 18px rgba(74,158,255,0.12);
}

/* Adaptation mobile pour garder la bulle proportionnée */
@media (max-width: 900px) {
    nav {
        top: 0.6rem;
        margin: 0.5rem auto;
        width: calc(100% - 1rem);
        padding: 0.35rem 0.75rem;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav li {
    position: relative;
}

nav li:hover .dropdown {
    display: block;
}


nav li .dropdown {
    display: none;
    position: absolute;
    left: -18px;
    top: 30px;
    padding: 0px;
    z-index: 1000;
    padding: 0.5rem;
    min-width: 150px;
    border-radius: 8px;

    /* fond semi-transparent (compatible) */
    background: rgba(26, 25, 29, 0.45);

    /* blur sur l'arrière-plan */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari */

    /* optionnel : bord léger et ombre */
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}






nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;


}    
    
nav a:hover {
    color: #4a9eff;

}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    width: 100%;
   overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #7b68ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.hero-content .description {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgb(148 163 184 / 1);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 7rem;
}

.social-links a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #4a9eff;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4a9eff;
    color: #0a0a0a;
}
.about-card p {
    width: 50%;
    text-align: justify;

}

.about-card {
    display: flex;
    gap: 70px;
    justify-content: center;
    align-items: center;
}
.about-card img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* Section commune */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
section h1 {
    margin-bottom: 1rem;
    color: #fff;
    
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    
}

section hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
    margin-bottom: 2rem;
}

/* === CARROUSEL === */
.carousel {
  position: relative;
  width: 90%;
  margin: 0 auto;
  perspective: 1000px;
  overflow: hidden;
}

.cards {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}


.card {
  position: absolute;
  width: 220px;
  height: 160px;
  background: rgba(15 23 42);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 20px;
  opacity: 0.4;
  transform: scale(0.8);
  transition: transform 0.6s ease, opacity 0.6s ease;
  user-select: none;
}

.card h3 {
  margin-bottom: 10px;
  color: #222;
}

.card p {
  color: #555;
  font-size: 0.95em;
}

/* === RADIOS === */
input[type="radio"] {
  display: none;
}

/* === EFFETS DE POSITION === */

/* Carte 1 active */
#c1:checked ~ .cards label:nth-child(1) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c1:checked ~ .cards label:nth-child(2) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c1:checked ~ .cards label:nth-child(3) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c1:checked ~ .cards label:nth-child(4) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c1:checked ~ .cards label:nth-child(8) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c1:checked ~ .cards label:nth-child(7) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c1:checked ~ .cards label:nth-child(6) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 2 active */
#c2:checked ~ .cards label:nth-child(2) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c2:checked ~ .cards label:nth-child(3) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c2:checked ~ .cards label:nth-child(4) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c2:checked ~ .cards label:nth-child(5) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c2:checked ~ .cards label:nth-child(1) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c2:checked ~ .cards label:nth-child(8) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c2:checked ~ .cards label:nth-child(7) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 3 active */
#c3:checked ~ .cards label:nth-child(3) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c3:checked ~ .cards label:nth-child(4) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c3:checked ~ .cards label:nth-child(5) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c3:checked ~ .cards label:nth-child(6) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c3:checked ~ .cards label:nth-child(2) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c3:checked ~ .cards label:nth-child(1) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c3:checked ~ .cards label:nth-child(8) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 4 active */
#c4:checked ~ .cards label:nth-child(4) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c4:checked ~ .cards label:nth-child(5) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c4:checked ~ .cards label:nth-child(6) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c4:checked ~ .cards label:nth-child(7) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c4:checked ~ .cards label:nth-child(3) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c4:checked ~ .cards label:nth-child(2) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c4:checked ~ .cards label:nth-child(1) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 5 active */
#c5:checked ~ .cards label:nth-child(5) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c5:checked ~ .cards label:nth-child(6) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c5:checked ~ .cards label:nth-child(7) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c5:checked ~ .cards label:nth-child(8) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c5:checked ~ .cards label:nth-child(4) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c5:checked ~ .cards label:nth-child(3) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c5:checked ~ .cards label:nth-child(2) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 6 active */
#c6:checked ~ .cards label:nth-child(6) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c6:checked ~ .cards label:nth-child(7) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c6:checked ~ .cards label:nth-child(8) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c6:checked ~ .cards label:nth-child(1) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c6:checked ~ .cards label:nth-child(5) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c6:checked ~ .cards label:nth-child(4) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c6:checked ~ .cards label:nth-child(3) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 7 active */
#c7:checked ~ .cards label:nth-child(7) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c7:checked ~ .cards label:nth-child(8) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c7:checked ~ .cards label:nth-child(1) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c7:checked ~ .cards label:nth-child(2) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c7:checked ~ .cards label:nth-child(6) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c7:checked ~ .cards label:nth-child(5) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c7:checked ~ .cards label:nth-child(4) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

/* Carte 8 active */
#c8:checked ~ .cards label:nth-child(8) { transform: translateX(0) scale(1); opacity: 1; z-index: 5; }
#c8:checked ~ .cards label:nth-child(1) { transform: translateX(240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c8:checked ~ .cards label:nth-child(2) { transform: translateX(480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c8:checked ~ .cards label:nth-child(3) { transform: translateX(720px) scale(0.7); opacity: 0.4; z-index: 2; }
#c8:checked ~ .cards label:nth-child(7) { transform: translateX(-240px) scale(0.9); opacity: 0.8; z-index: 4; }
#c8:checked ~ .cards label:nth-child(6) { transform: translateX(-480px) scale(0.8); opacity: 0.6; z-index: 3; }
#c8:checked ~ .cards label:nth-child(5) { transform: translateX(-720px) scale(0.7); opacity: 0.4; z-index: 2; }

.card {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;
}

.card h3 {
    color: #4a9eff;
    margin-bottom: 0.5rem;
}

/* Portfolio Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;

}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #4a9eff;
}


.project-sco-1-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/ProjetsResto.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-sco-2-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/AncienPortfolioProjets.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-sco-3-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/Projet_1_PHPMY.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-sco-4-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/JavaProjet1.webp"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}






.project-sco-10-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/AndroidProjet.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}


.project-pro-3-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/Zabbix-dashboard.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-pro-4-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/Zabbix-equipementSNMP.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-pro-5-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/Zabbix-triggers.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-pro-6-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/baie-informatique.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-personel-1-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/guns-lol2-img.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-personel-2-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/PP.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

.project-personel-3-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/photoFivem.jpg"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}


.project-portfolio-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/Veille-image.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}


.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: #2a2a2a;
    color: #4a9eff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #3a3a3a;
}

/* Footer */
footer {
    background-color: #111;
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    border-top: 1px solid #222;
}

footer p {
    color: #888;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #4a9eff;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}









/* ---- Modale ---- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* cachée par défaut */
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s ease;
}

/* Animation d’apparition */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Fond noir cliquable (pour fermer) */
.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* ---- Checkbox ---- */
.modal-toggle {
    display: none; /* on la cache */
}

/* Quand la checkbox est cochée → on montre la modale */
.modal-toggle:checked ~ .modal {
    display: flex;
}







/* ---- Fait pour mobile ---- */


@media (max-width: 900px) {
    nav ul {
        gap: 1rem;
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 1rem;
    }

    .hero {
        padding: 1.2rem;
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 0.8rem;
    }

    .hero-content .subtitle {
        font-size: 1.05rem;
    }

    .hero-content .description {
        max-width: 100%;
        font-size: 1rem;
        padding: 0 0.5rem;

    }

    .social-links {
        margin-top: 2rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }



    .carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .cards {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 1rem;
    }
    
    .card {
        flex: 0 0 280px;
        scroll-snap-align: center;
        transform: none !important;
        opacity: 1 !important;
    }


    .about-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .about-card p {
        width: 100%;
    }

    .about-card img {
        width: 180px;
        height: 180px;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .carousel {
        width: 100%;
        perspective: 800px;
    }

    .cards {
        height: 200px;
    }

    .card {
        width: 160px;
        height: 120px;
        padding: 0.9rem;
        transform: none !important;
        position: relative;
        left: auto;
        right: auto;
        opacity: 1 !important;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-image,
    .project-sco-1-image,
    .project-sco-2-image,
    .project-sco-3-image,
    .project-sco-4-image,
    .project-sco-10-image,
    .project-pro-3-image,
    .project-pro-4-image,
    .project-pro-5-image,
    .project-pro-6-image,
    .project-personel-1-image,
    .project-personel-2-image,
    .project-personel-3-image,
    .project-portfolio-image {
        height: 140px;
        background-size: cover;
        background-position: center;
    }

    .description {
        font-size: 16px; /* Au lieu de 18px */
        line-height: 1.6;
    }
    
    .project-content p {
        font-size: 0.95rem;
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        width: auto;
        border-radius: 8px;
    }

    section {
        padding: 2.5rem 1rem; /* Réduire l'espace vertical */
    }
    
    .projects-grid {
        gap: 1.5rem; /* Plus d'espace entre les cartes */
    }

    footer {
        padding: 1.5rem;
    }

    .modal-content img {
        max-width: 95%;
        max-height: 80%;
    }
}

