/* ============ STYLES DE BASE MODERNES ============ */
body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* ============ HEADER PREMIUM ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.header.scroll-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav__logo {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    background: var(--bg-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-16) var(--space-6) var(--space-6);
    transition: right var(--transition-normal);
    z-index: var(--z-fixed);
}

.nav__menu.show-menu {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.nav__link {
    color: var(--text-primary);
    font-weight: var(--font-medium);
    font-size: var(--font-lg);
    text-decoration: none;
    position: relative;
    transition: all var(--transition-normal);
    padding: var(--space-2) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    transition: width var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav__toggle,
.nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    font-size: var(--font-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.nav__toggle:hover,
.nav__close:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.nav__close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
}

/* ============ SECTION ACCUEIL SPECTACULAIRE ============ */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="rgba(99,102,241,0.3)"/><circle cx="800" cy="300" r="3" fill="rgba(139,92,246,0.3)"/><circle cx="400" cy="600" r="2" fill="rgba(236,72,153,0.3)"/><circle cx="700" cy="800" r="2" fill="rgba(99,102,241,0.3)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.home__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-16);
}

.home__content {
    z-index: 2;
}

.home__title {
    font-size: var(--font-5xl);
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--space-6);
    opacity: 0;
}

.home__description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.3s forwards;
}

.home__buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.home__image {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: scaleIn 1s ease-out 0.9s forwards;
}

.home__blob {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.3));
}

.home__blob svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    animation: blob 7s ease-in-out infinite;
    cursor: pointer;
}

.home__blob:hover svg {
    animation: rotate360 0.8s ease-in-out forwards;
}

@keyframes blob {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.1) rotate(5deg);
    }

    66% {
        transform: scale(0.9) rotate(-5deg);
    }
}

@keyframes rotate360 {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(360deg);
    }
}

/* ============ SERVICES ÉLÉGANTS ============ */
.services {
    background: var(--bg-primary);
}

.services__container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.services__card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    border: var(--border-width) solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.services__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient-light);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 0;
}

.services__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.services__card:hover::before {
    opacity: 1;
}

.services__card>* {
    position: relative;
    z-index: 1;
}

.services__icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--font-3xl);
    color: var(--text-white);
    transition: all var(--transition-normal);
}

.services__card:hover .services__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.services__title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.services__description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.services__list {
    list-style: none;
    text-align: left;
}

.services__list li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-6);
}

.services__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

/* ============ PORTFOLIO IMPRESSIONNANT ============ */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio__container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.portfolio__card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: var(--border-width) solid var(--border-color);
}

.portfolio__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.portfolio__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

.portfolio__card:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__card:hover .portfolio__image img {
    transform: scale(1.1);
}

.portfolio__buttons {
    display: flex;
    gap: var(--space-3);
}

.portfolio__content {
    padding: var(--space-6);
}

.portfolio__title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.portfolio__description {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.portfolio__tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ============ SECTION À PROPOS MODERNE ============ */
.about {
    background: var(--bg-primary);
}

.about__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about__image {
    text-align: center;
}

.about__img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
}

.about__img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.about__content .section__header {
    text-align: left;
    margin-bottom: var(--space-8);
}

.about__description {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    font-size: var(--font-lg);
}

.about__skills {
    margin-bottom: var(--space-8);
}

.about__skills-title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.skills__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.skill__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill__name {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.skill__bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    margin-left: var(--space-4);
    overflow: hidden;
}

.skill__progress {
    height: 100%;
    background: var(--bg-gradient);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.stat__item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-gradient-light);
    border-radius: var(--radius-xl);
    border: var(--border-width) solid var(--primary-color);
}

.stat__number {
    display: block;
    font-size: var(--font-3xl);
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.stat__label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

/* ============ CONTACT MODERNE ============ */
.contact {
    background: var(--bg-secondary);
}

.contact__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact__info-title {
    font-size: var(--font-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.contact__info-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.contact__detail:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact__icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-xl);
}

.contact__detail-title {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.contact__detail-info {
    color: var(--text-secondary);
}

.contact__form {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: var(--border-width) solid var(--border-color);
}

/* ============ FOOTER ÉLÉGANT ============ */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-20) 0 var(--space-8);
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.footer__title {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    background: var(--bg-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer__links-title,
.footer__social-title {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer__link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer__social-links {
    display: flex;
    gap: var(--space-4);
}

.footer__social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-xl);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer__social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.footer__bottom {
    border-top: var(--border-width) solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    text-align: center;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.7);
}

/* ============ BOUTON SCROLL UP ============ */
.scrollup {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-xl);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.scrollup.show-scroll {
    opacity: 1;
    visibility: visible;
}

.scrollup:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ============ RESPONSIVE DESIGN ============ */
@media screen and (min-width: 768px) {
    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
    }

    .nav__list {
        flex-direction: row;
        gap: var(--space-8);
    }

    .nav__link {
        font-size: var(--font-base);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .home__title {
        font-size: var(--font-6xl);
    }

    .section__title {
        font-size: var(--font-5xl);
    }
}

@media screen and (max-width: 768px) {

    .home__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .home__image {
        order: -1;
    }

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

    .home__buttons {
        justify-content: center;
    }

    .services__container,
    .portfolio__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .home__title {
        font-size: var(--font-4xl);
    }

    .section__title {
        font-size: var(--font-3xl);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .home__buttons {
        flex-direction: column;
    }
}