@font-face {
    font-family: 'Anton';
    src: url('assets/fonts/Anton-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/PlusJakartaSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/PlusJakartaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
        --primary: #8b5cf6;
        --secondary: #6d28d9;
        --dark: #3b285e;
        --light: #faf5ff;
        --accent: #d946ef;
        --gray: #9995a7;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;

}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    color: var(--light);
    font-family: 'Plus Jakarta Sans' ;
    display: flex;
    flex-direction: column;
}

main {
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #23153b, #3b285e);
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(35, 21, 59, 0.90);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2vw;
    list-style: none;
}

.nav-title .name{
    color: var(--accent);
}

.nav-title {
    text-decoration: none;
    color: var(--light);
    font-size: 24px;
    font-weight: bold;
}

.nav-links a {
    letter-spacing: 1.25px;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    transition: text-shadow 0.2s ease;
}

.nav-links a:hover {
    text-shadow: 0 0 8px var(--accent), 0 0 20px var(--accent), 0 0 40px var(--accent);
}

.nav-links i {
    color: var(--primary);
}

.nav-links i {
    font-size: 20px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 20px 0;
    min-width: 0;
}

.nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent), 0 0 40px var(--accent), 0 0 60px var(--accent);
}

.nav-links a.active i {
    color: var(--accent);
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.1);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(0, 0, 0, 0.4);
    
    z-index: 0;
    
}

.hero-content {
    z-index: 1;
    position: relative;
    top: 25%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start
}

.hero-content h1 {
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(36px, 5vw + 1rem, 64px);
    font-family: Anton;
}

.hero-content p {
    font-size: clamp(14px, 1vw + 4px, 20px);
    width: 80%;
}

.down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: white;
  z-index: 1;
  animation: arrowAnimation 1.8s ease-in-out infinite;
}

@keyframes arrowAnimation {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
    .down-arrow {
        display: none !important;
    }
}


.highlight {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    font-weight: 800;
}

.contact-button {
    display: inline-block;
    border-radius: 5px;
    text-decoration: none;
    color: var(--light);
    padding: 10px;
    font-weight: 800;
    font-size: 18px;

    background: linear-gradient(45deg, var(--accent), var(--primary), var(--accent), var(--primary),  var(--accent), var(--primary), var(--accent), var(--primary));
    background-size: 600% 100%;
    background-position: 0% center;

    transition: background-position 10s linear, transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-button:hover {
    background-position: 100% center;
    transform: scale(1.04);
    box-shadow: 0 0 16px var(--accent);
}

.hero-socials {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 1;
}

.hero-socials a {
    font-size: clamp(28px, 3vw, 40px);
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.hero-socials a:hover {
    text-shadow: 0 0 8px var(--accent);
}

footer {
    font-size: 12px;
    background-color: var(--dark);
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, var(--accent), var(--primary)) 1;
}

.footer-content {
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    justify-content: space-between;
}

.footer-content h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.footer-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

ul.footer-text {
    display: block;
    columns: 2;
    column-gap: 0;
}

.footer-content ul a{
    color: var(--accent);
    text-decoration: none;
}

.footer-content ul a:hover{
    color: var(--primary);
}

.footer-socials a {
    font-size: 24px;
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.footer-socials a:hover {
    text-shadow: 0 0 8px var(--accent);
}

.footer-bottom {
    padding: 0 0 10px 20px;
}

.section-title {
    text-align: center;
    font-family: 'Anton';
    letter-spacing: 1px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-shadow: 0 0 20px rgba(216, 137, 228, 0.45), 0 0 50px rgba(193, 167, 254, 0.3);
}

.section-subtitle {
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.card, .form-contact {
    position: relative;
    overflow: hidden;
    z-index: 1;

    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    padding: 20px;
    transition: background 0.1s;

}

.fakeblob {
  visibility: hidden;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 450px;
  height: 450px;
  border-radius: 50%;
}

.blob {
  filter: blur(40px);
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input, textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--light);
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.2);
}

input::placeholder, 
textarea::placeholder {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--light);
    opacity: 0.8;
    transition: opacity 0.5s ease, color 0.5s ease;
}


input:focus::placeholder, textarea:focus::placeholder {
    color: var(--gray);
}

textarea {
    resize: vertical;
    min-height: 20vh;
    max-height: 30vh;
}

.form-line {
    display: flex;
    gap: 1vw;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 25px;
}

.h-captcha {
    transform: scale(0.8);
}

.form-submit {
    width: 50%;
    padding: 14px 28px;
    background: rgba(35, 21, 59, 0.5);
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;

    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.form-submit:hover {
    background: rgba(138, 92, 246, 0.6);
    color: white;
    border-color: var(--accent);
    
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 
                0 0 40px rgba(217, 70, 239, 0.2);
    
}

section {
    margin-bottom: 50px;

}

.section-header {
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.skills-text-content {
    flex: 1;
}

.skills-text-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.skill-item {
    display: flex;
    gap: 15px
}

.skill-item i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 5px;
}

.skill-item h4 {
    color: var(--light);
    font-size: 18px;
}

.instruction {
    font-style: italic;
    color: var(--gray);
    font-size: 14px;
}

#three-canvas-container {
    height: 450px;
    width: 450px;

}

#three-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1vw;
}

.card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 500px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: var(--gray);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
    transform: translateY(-2px);
}

.card a {
    text-decoration: none;
}

.card-github {
    text-decoration: none;
    justify-content: center;
    align-items: center;
}

.card-github-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.card-github-content .github-icon {
    font-size: 72px;
    color: var(--light);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.card-github:hover .github-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.card-github-content h3 {
    font-size: 20px;
    color: var(--light);
}

.card-github-content p {
    color: var(--gray);
    font-size: 14px;
    max-width: 260px;
    line-height: 1.5;
}

.card-github-arrow {
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.3s ease;
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
}


.info-badge span {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-badge {
    display: flex;
    gap: 12px; 
}

.project-image {
    height: 60%; 
    width: 100%;
    
    object-fit: cover;
    object-position: top;
    border-radius: 12px 12px 0 0;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card {
        height: 60vh;
    }
    .project-image {
        height: 40%; 
    }
}

.project-content {
    flex: 1;
    padding: 15px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.project-content p {
    font-size: clamp(0.80rem, 0.95vw + 0.25rem, 1.2rem);
}

.project-technos {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1vw, 10px);
    margin-top: auto;
}

.tech {
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.6vw, 6px);
    background-color: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: clamp(0.7rem, 1.2vw, 0.875rem);
    padding: 4px 8px;
    border-radius: 4px;
}

.tech-icon {
    width: clamp(14px, 1.8vw, 20px);
    height: clamp(14px, 1.8vw, 20px);
}

.project-modal {
    background: var(--dark);
    color: var(--light);

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 8px;
    width: 50vw;
    max-width: 1000px;
    min-width: 600px;
    
}

.project-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    padding: 20px;
    border-radius: 8px;
    position: relative;
    
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 2px;
    outline: none;
}

.modal-content h2 {
    margin-bottom: 15px;
    padding-right: 30px;
    color: var(--light);
}

.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    letter-spacing: 1px;

    text-decoration: none;

    border-radius: 8px;
    cursor: pointer;
}

.live-demo-button {
    background-color: #1d9e75;
    color: var(--light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.show-code-button {
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.live-demo-button:hover {
    background-color: #158a63;
}

.show-code-button:hover {
    background-color: #c9c3dd;
}

.modal-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-swiper {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    transform: scale(0.8);
    font-weight: bold;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-description-section p {
    text-align: justify;
    line-height: 1.3;
    font-size: clamp(0.7rem, 1.5vw + 0.5rem, 1.1rem);
}

@media (max-width: 768px) {
    .project-swiper {
        height: 160px;
    }
}

#privacy-policy {
    margin-top: 130px;
}

#privacy-policy a {
    color: var(--accent);
    text-decoration: none;
}

#privacy-policy a:hover {
    color: var(--primary);
}

.privacy-policy-section ul {
    margin: 10px 0 20px 40px;
}

.privacy-policy-section li {
    margin-bottom: 2px;
}

.privacy-policy-section h2 {
    color: var(--primary);
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    .menu-toggle {
        cursor: pointer;
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(35, 21, 59, 0.95);


        pointer-events: none; /* ne pas pouvoir cliquer sur les liens invisibles */
        opacity: 0;

        padding: 0 20px;

        transition: opacity 0.5s ease, gap 0.4s ease, padding 0.4s ease;
    }

    .nav-links.active {
        pointer-events: auto;
        max-height: 100vh;
        opacity: 1;
        padding: 30px 20px;
        gap: 4vh;
    
    }

    .hero {
        height: 85vh;
    }

    .hero-content p {
        width: 100%;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-line {
        flex-direction: column;
    }

    .form-submit {
        width: 100%;
    }

    .form-footer {
        flex-direction: column;
    }

    .skills-grid {
        flex-direction: column;
    }
    
    #three-canvas-container {
        width: 100%;
        height: 320px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-modal {
        width: 85vw;
        min-width: 0;
    }
}

.page-feedback {
    margin-top: 130px;
}

.page-feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-feedback-icon {
    font-size: 72px;
}

.page-feedback-icon--wip {
    color: #f59e0b;
}

.page-feedback-icon--success {
    color: #27d667;
}

.page-feedback-content h1 {
    color: var(--light);
    font-size: 40px;
    text-align: center;
}

.page-feedback-content p {
    font-size: 16px;
    color: var(--gray);
    max-width: 480px;
    text-align: center;
}

.page-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.page-feedback-btn:hover {
    opacity: 0.85;
}