@charset "utf-8";
/* CSS Document */

@font-face {
    font-family: "Fira Sans";
    src: url("font/FiraSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #bac1e2 0%, #d4d6ed 50%, #b0afed 100%);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    color: rgba(0, 0, 0, 0.75);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Centre le contenu, et s’adapte à tous les écrans */
.footer-content {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


:root {
    --primary-color: #514f59;
    --secondary-color: #1b092c;
    --tertiary-color: #eedcff;
    --text-title: #2e0d9d;
    --text-primary: #5941a9;
    --text-secondary: #1b092c;
    --text-navlinks: #5941a9;
    --text-light: #0d0323;
    --accent-color: #4766bc;
    --bg-primary: #fffbf4;
    --bg-secondary: #fff4e6;
    --bg-dark: #1b092c;
    --bg-card: rgba(255, 255, 255, 0.95);
    --gradient-primary: linear-gradient(135deg, #6d72c3 0%, #5941a9 100%);
    --gradient-elegant: linear-gradient(135deg, #bac1e2 0%, #d4d6ed 50%, #b0afed 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(255 251 244);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    nav.scrolled {
        background: rgb(255 251 244);
        box-shadow: var(--shadow-lg);
        padding: 1.02rem 0;
    }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 250px; 
    height: auto;
}

    .logo img {
        display: block;
        width: 100%;
        height: auto;
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-navlinks);
        font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
        font-weight: 500;
        font-size: 1.03rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .nav-links a img {
            width: 50px;
            height: 35px;
            object-fit: contain;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 100;
            height: 3px;
            bottom: 0;
            left: 68%;
            background: var(--gradient-primary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(-50%);
            border-radius: 1px;
        }

        .nav-links a:hover::after {
            width: 70%;
        }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

    .mobile-nav-links li {
        margin: 2rem 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

    .mobile-menu.active .mobile-nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu.active .mobile-nav-links li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-menu.active .mobile-nav-links li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-menu.active .mobile-nav-links li:nth-child(4) {
        transition-delay: 0.4s;
    }

.mobile-nav-links a {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

    .mobile-nav-links a:hover {
        transform: scale(1.05);
    }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/fond.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        animation: float 25s ease-in-out infinite;
        opacity: 0.7;
    }

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        animation: pulse 4s ease-in-out infinite alternate;
    }

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
    margin-bottom: 4rem;
    color: rgb(14 192 198);
}

.hero-title img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
    display: block;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.subtitle-image {
    width: 102%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: rgb(255 255 255);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

    .cta-button:hover {
        transform: translateY(-3px);
        background: rgb(255 255 255);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgb(0 0 0 / 78%);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .scroll-indicator:hover {
        border-color: rgb(0 0 0 / 72%);
    }

    .scroll-indicator::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        width: 6px;
        height: 6px;
        background: rgb(0 0 0 / 68%);
        border-radius: 50%;
        transform: translateX(-50%);
        animation: scroll 2s infinite;
    }

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-family: "Fira Sans";
    src: url("font/FiraSans-Regular.ttf");
    font-size: 3.8rem;
    font-weight: 600;
    letter-spacing: 1.1px;
    margin-bottom: 4rem;
    background: var(--text-title);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 0.2rem;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image {
    width: 250px;
    height: 250px;
    margin-top: 15px;
    margin-right: 80px;
    background: url('images/Snapchat-2.jpg') center/cover;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.about-contact {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    margin-top: 2.1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: left;
    font-weight: 500;
    line-height: 1.4;
    flex-direction: column; 
    gap: 0.1rem;
}

.contact-link {
    color: var(--text-secondary);
    text-align: left;
    font-weight: 500;
    line-height: 1.4;
    flex-direction: column; 
    gap: 0.1rem;
    text-decoration: none;
}

    .contact-link:hover {
        color: var(--accent-color);
        text-decoration: none;
    }

.contact-mail {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
}

.about-text h3 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.skill-tag {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 630;
    border: 1px solid rgb(99 102 241 / 0%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .skill-tag:hover {
        background: var(--tertiary-color);
        color: var(--text-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }


/* Portfolio Section */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    backdrop-filter: blur(10px);
    display: block;
    text-decoration: none;
    color: inherit;
}

    .portfolio-item.animate {
        transform: translateY(0);
        opacity: 1;
    }

    .portfolio-item:hover {
        transform: translateY(-15px);
        box-shadow: var(--shadow-2xl);
    }

.portfolio-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

    .portfolio-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transition: all 0.3s ease;
    }

.portfolio-content {
    padding: 2rem;
}

    .portfolio-content h4 {
        font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
        font-weight: 600;
    }

    .portfolio-content p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        line-height: 1.65;
    }

.portfolio-tech {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.5rem 1.2rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .tech-tag:hover {
        background: var(--tertiary-color);
    }


/* === About : animations au chargement === */

.fade-in,
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transform: translateY(20px); /* ou X si slide */
    transition: all 0.6s ease;
}

    .fade-in.animate {
        opacity: 1;
        transform: none;
    }

    .slide-in-left.animate {
        opacity: 1;
        transform: translateX(0);
    }

    .slide-in-right.animate {
        opacity: 1;
        transform: translateX(0);
    }

/* Keyframes */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-title {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease 0.4s forwards;
        max-width: 600px;
    }
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr; /* Passage 1 colonne */
        text-align: center;
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .cta-button {
        padding: 1rem 2.2rem;
        font-size: 1.05rem;
    }

    .scroll-indicator {
        bottom: 15px;
        transform: translateX(-50%) scale(0.8);
    }

    .hero {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    /* Texte bleu clair */
    .hero-subtitle {
        font-size: 1.8rem; /* plus lisible */
        line-height: 1.4;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    /* Logo principal */
    .hero-title img {
        max-width: 450px; /* plus grand */
        width: 100%;
        margin: 0 auto 2.5rem;
        display: block;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }


    .about-text h3 {
        font-size: 2rem;
    }

    .skills {
        margin-top: 2rem;
    }

    .about-image {
        width: 180px;
        height: 180px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.45rem;
    }

    .hero-title img {
        max-width: 380px;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 400px) {
    .mobile-nav-links a {
        font-size: 2rem;
    }
}
