/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
    --primary: #5900d3;
}

* {
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* Main */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    background-color: #141414;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Nav bar */
header {
    background-color: #0f0f0f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    cursor: help;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    align-items: center;
}

header nav ul li {
    margin: 0 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

header nav ul li:hover {
    color: #fff;
    transition: all 0.3s ease;
    transform: scale(1.05);
}

header nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a span.material-icons {
    font-size: 18px; /* Taille de l'icône */
    margin-right: 8px; /* Espacement entre l'icône et le texte */
    vertical-align: middle; /* Aligner l'icône verticalement avec le texte */
    transition: transform 0.3s ease; /* Ajout d'une transition pour l'icône */
}

header .nav-selected {
    color: #5900d3;
    font-weight: bold;
    font-size: 24px;
}
header .nav-selected span.material-icons {
    color: #5900d3;
    font-size: 24px;
}


/* Section */
section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

section h1 {
    font-size: 48px;
    color: #fff;
    text-shadow: #FFF 0.001px 0 50px;
    margin: 10px 0;
    letter-spacing: 1px;
}

section h2 {
    font-size: 32px;
    color: var(--primary);
    margin: 40px;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0px 4px 0 black);
}
section h2::before, section h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50%;
    height: 2px;
    background-color: var(--primary);
}
section h2::before {
    left: -55%;
}
section h2::after {
    right: -55%;
}


/* Main Section */
.main-section {
    position: relative;
    height: 100vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111111;
    color: #fff;
    overflow: hidden; /* Empêche le débordement */
}

.main-section::before, .main-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 275px; /* Largeur de l'image */
    height: 100%; /* Prend toute la hauteur de la section */
    background-image: url('img/overlay.png');
    background-size: contain; /* Ajuste l'image à l'intérieur de l'élément */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.main-section::before {
    left: 0;
}

.main-section::after {
    right: 0;
    transform: scaleX(-1); /* Applique la symétrie horizontale à l'image à droite */
}

.content {
    position: relative;
    z-index: 1;
}

.avatar-container {
    margin-bottom: 20px;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}
.avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(89, 0, 211, 0.5);
}

.status {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 30px;
    text-shadow: #000000 0.001px 0 50px;
}

.scroll-btn {
    padding: 10px 40px;
    color: #fff;
    font-size: 30px;

    border: 2px solid var(--primary);
    border-radius: 50px;
    background-color: rgb(20, 20, 20);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);

    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.scroll-btn:hover {
    background-color: #7b00ff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(123, 0, 255, 0.9);
}

.cta {
    padding: 15px 40px;
    color: #fff;
    font-size: 20px;

    border: 2px solid var(--primary);
    border-radius: 50px;
    background-color: rgb(20, 20, 20);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);

    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cta:hover {
    background-color: #7b00ff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(123, 0, 255, 0.9);
}


/*.services-section, .portfolio-section {
    padding: 60px 20px;
    background-color: #0f0f0f;
}*/

footer {
    background-color: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 15px;
    color: #ffffff;
    font-size: 14px;
}

.username, .avatar-container {
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.about-section {
    padding: 60px 20px;
    background-color: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.about-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1000px;
    gap: 40px;
    margin: 40px auto;
}

.about-photo {
    flex: 1;
    max-width: 300px;
}

.profile-photo {
    width: 100%;
    height: auto;
    -webkit-filter: drop-shadow(5px 5px 0 black);
    filter: drop-shadow(5px 5px 0 black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.about-text {
    flex: 2;
    color: #fff;
    max-width: 600px;
    text-align: start;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 200;
}

.skills-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 40px auto;
    width: 100%;
}

.skills-column {
    flex: 1;
    padding: 0 20px;
}

.skills-list {
    list-style: none;
    color: #fff;
}

.skills-list li {
    font-size: 18px;
    line-height: 1.6;
    position: relative;
    margin-bottom: 10px;
}

.skills-list li em {
    position: relative;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 200;
}

.skills-list li::before {
    content: '+';
    position: absolute;
    left: -20px;
    color: #00ff00;
    font-weight: bold;
    font-size: 18px;
}

.skills-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.skills-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

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

.icon-container {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    z-index: 10;
}

.icon-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.buttons {
    display: flex;
    margin-top: 60px;
    width: 600px;
    justify-content: space-around
}

.cta-small {
    padding: 15px 40px;
    color: #fff;
    font-size: 20px;

    border: 2px solid var(--primary);
    border-radius: 50px;
    background-color: rgb(20, 20, 20);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);

    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-small:hover {
    background-color: #7b00ff;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(123, 0, 255, 0.9);
}

.cta-very-small {
    padding: 10px 30px;
    margin: 0 10px;
    color: #fff;
    font-size: 18px;

    border: 2px solid var(--primary);
    border-radius: 50px;
    background-color: rgb(20, 20, 20);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);

    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-very-small:hover {
    /*background-color: #7b00ff;*/
    transform: scale(1.05);
    /*box-shadow: 0 0 25px rgba(123, 0, 255, 0.9);*/
}

.cta-very-small.selected {
    box-shadow: 0 0 25px rgba(123, 0, 255, 0.9);
}


.atouts-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre les éléments verticalement */
    gap: 60px; /* Espace entre les éléments de la liste */
    color: #fff;
}

.atouts-list li {
    font-size: 24px;
    line-height: 1.6;
    position: relative;
}

.atouts-list li::before {
    content: '+'; /* Ajout du symbole plus */
    position: absolute;
    left: -20px; /* Ajuste la position du symbole */
    color: #00ff00;
    font-weight: bold;
    font-size: 24px;
}


/* Contact Section */
.contact-section {
    text-align: center;
    height: calc(100vh - 155px);
}

.contact-section h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
}

.contact-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
}

.contact-info p {
    font-size: 18px;
    margin: 10px 0;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    max-width: 400px;
    background-color: #0f0f0f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    max-width: 380px;
    
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    max-width: 380px;
    min-width: 380px;
    max-height: 260px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary);
}

/*.contact-form button {
    background-color: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #7b00ff;
}*/

footer {
    background-color: #0f0f0f;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}


.contact-info {
    position: relative;
}

.phone-text {
    display: inline-block;
    position: relative; /* Permet au bouton d'être positionné par rapport au texte */
}

.toggle-button {
    background-color: transparent; /* Fond transparent */
    border: none;
    cursor: pointer;
    position: absolute; /* Positionne l'icône au-dessus du texte */
    left: 64%;
    transform: translateX(-50%); /* Centre horizontalement par rapport au span */
    z-index: 1; /* Placer l'icône au-dessus du texte */
}

.eye-icon {
    width: 30px; /* Ajuste la taille de l'icône */
    height: auto;
    filter: drop-shadow(0px 4px 0 black);
}

#phone {
    filter: blur(8px);
}

/* Styles pour masquer ou afficher le texte */
#phone.visible {
    filter: none;
}



/* Projets CSS */
.projets-section {
    background-color: #111111;
    text-align: center;
}

.projets-button {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.projets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.projet-card {
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-height: 550px;
    max-height: 550px;
    transition: transform 0.3s ease;
    max-width: 387px;
}

.projet-card:hover {
    transform: scale(1.05);
}

.projet-image {
    border-radius: 30px;
    padding: 20px;
    width: auto;
    height: 200px;
    object-fit: cover;
}

.projet-card h3 {
    color: var(--primary);
    margin: 15px 1px;
}

.projet-card p {
    padding: 0 20px;
    font-size: 16px;
    color: #ccc;
}

.projet-card .cta {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    color: #fff;
    background-color: rgb(20, 20, 20);
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card .cta:hover {
    background-color: #7b00ff;
}

#projets {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.categorie {
    width: 80%;
    margin-bottom: 2rem;
}
  
.categorie h2 {
    font-size: 2rem;
    color: #ffffff; /* Couleur adaptée à ton thème */
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
  
.projets-universitaires, .projets-personnels {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
  
.projet {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    margin: 1rem;
    width: 45%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
  
.projet:hover {
    transform: scale(1.05);
}
  
.projet h3 {
    color: #ffffff; /* Couleur adaptée à ton thème */
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
  
.projet p {
    color: #cccccc;
}

.hidden {
    display: none;
}




/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 1200px) {
.container {
    padding: 0 40px;
}

.project {
    width: calc(50% - 30px);
}
}

@media (max-width: 768px) {
/* Header */
header {
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
}

nav ul {
    display: none;
}

.mobile-menu-btn {
    display: block;
}

/* Hero */
.hero-content {
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
}

/* About */
.about-content {
    flex-direction: column;
}

.about-text {
    width: 100%;
    margin-top: 30px;
}

/* Projects */
.project {
    width: 100%;
    margin-bottom: 30px;
}

/* Contact */
.contact-form {
    width: 100%;
}
}

@media (max-width: 480px) {
/* Hero */
.hero-title {
    font-size: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
}

/* Sections */
section {
    padding: 60px 20px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* Footer */
footer {
    padding: 20px;
}

.footer-content {
    flex-direction: column;
    text-align: center;
}

.social-links {
    margin-top: 20px;
    justify-content: center;
}
}
  
/* Menu Mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}




/* Ajout styles pour la frise verticale */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}


.timeline-item {
    position: relative;
    margin: 20px 0;
    padding-left: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 45%;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #141414;
    z-index: 1;
}

.timeline-content {
    background-color: #1a1a1a;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 20px;
}

.timeline-content p {
    color: #ccc;
    font-size: 16px;
}

.timeline-content {
    transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-content {
    transform: scale(1.02);
    background-color: #222;
    box-shadow: 0 0 15px rgba(89, 0, 211, 0.3);
}

.skills-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.skills-icons .icon-container {
    position: relative;
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.skills-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

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

.skills-list li strong {
    display: inline-block;
    margin-bottom: 4px;
}

@media screen and (max-width: 600px) {
    .timeline {
        padding-left: 15px;
        border-left: 2px solid var(--primary);
    }
    .timeline-content {
        font-size: 14px;
    }
    .timeline-content h3 {
        font-size: 18px;
    }
}



