/* ==================== CSS MODERNE & PREMIUM ==================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==================== VARIABLES CSS ==================== */
:root {
    /* Couleurs Premium - Palette Digital/ Innovation */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Couleurs de fond */
    --bg-dark: #0a0a0f;
    --bg-dark-soft: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;

    /* Couleurs de texte */
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --text-gray-dark: #71717a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f472b6 0%, #6366f1 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);

    /* Typographie */
    --font-main: 'Outfit', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;

    /* Espacements */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-min-logical-height: 100vh;
    -webkit-min-logical-height: 100dvh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ==================== UTILITAIRES ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== BOUTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn--small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header.scroll-header {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1.25rem;
}

.logo-accent {
    color: var(--primary-light);
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    position: relative;
    font-weight: 500;
    color: var(--text-gray);
    padding: 0.5rem 0;
}

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

.nav__link:hover,
.nav__link.active-link {
    color: var(--text-white);
}

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

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
}

/* Mobile */
@media screen and (max-width: 991px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: rgba(18, 18, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1001;
    }

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

    .nav__list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav__item {
        margin: 0;
        width: 100%;
    }

    .nav__link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-gray);
        border-radius: 12px;
        transition: var(--transition);
        margin-bottom: 0.25rem;
        cursor: pointer;
        text-decoration: none;
    }

    .nav__link:hover,
    .nav__link.active-link {
        background: rgba(99, 102, 241, 0.15);
        color: var(--text-white);
    }

    .nav__toggle {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        font-size: 1.25rem;
        color: var(--text-white);
        cursor: pointer;
        transition: var(--transition);
    }

    .nav__close:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: var(--danger);
        color: var(--danger);
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(244, 114, 182, 0.08) 0%, transparent 40%);
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero__title-line {
    display: block;
}

.hero__title-line.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.typing-text {
    color: var(--primary-light);
}

.typing-wrapper {
    overflow: hidden;
}

.typing-words {
    display: flex;
    animation: typing 6s infinite;
}

@keyframes typing {
    0%, 25% { transform: translateY(0); }
    33%, 58% { transform: translateY(-33.33%); }
    66%, 91% { transform: translateY(-66.66%); }
    100% { transform: translateY(0); }
}

.typing-words .word {
    width: 80px;
    display: inline-block;
}

.hero__description {
    font-size: 1.0625rem;
    color: var(--text-gray-dark);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero__stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.hero__stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray-dark);
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 1.125rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero__visual {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image-frame {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.hero__image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

.hero__card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 37, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero__card i {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.hero__card--1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.hero__card--2 {
    bottom: 25%;
    left: -5%;
    animation-delay: 1s;
}

.hero__card--3 {
    bottom: 5%;
    right: 5%;
    animation-delay: 2s;
}

.hero__card--4 {
    top: 35%;
    right: -15%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* Responsive Hero */
@media screen and (max-width: 991px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        margin: 0 auto 2rem;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__socials {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .hero__scroll {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        gap: 1.5rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__card {
        display: none;
    }
}

/* ==================== SECTION EXPERTISE ==================== */
.expertise {
    background: var(--bg-dark-soft);
}

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.expertise__card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.expertise__card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.expertise__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--text-white);
}

.expertise__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.expertise__text {
    font-size: 0.9375rem;
    color: var(--text-gray-dark);
    line-height: 1.6;
}

.expertise__about {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.expertise__about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.expertise__about-content p {
    color: var(--text-gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
}

.expertise__about-image {
    position: relative;
}

.expertise__about-image img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.experience-badge .badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.experience-badge .badge-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

@media screen and (max-width: 991px) {
    .expertise__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .expertise__grid {
        grid-template-columns: 1fr;
    }

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

/* ==================== SECTION COMPÉTENCES ==================== */
.skills__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills__category {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skills__category:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.skills__category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skills__category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--text-white);
}

.skills__category-header h3 {
    font-size: 1.125rem;
    font-family: var(--font-main);
}

.skill-item {
    margin-bottom: 1.25rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.skill-info span:first-child {
    color: var(--text-white);
}

.skill-percentage {
    color: var(--primary-light);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
}

@media screen and (max-width: 768px) {
    .skills__container {
        grid-template-columns: 1fr;
    }
}

/* ==================== SECTION SERVICES ==================== */
.services {
    background: var(--bg-dark-soft);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card__list {
    margin-bottom: 1.5rem;
}

.service-card__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-gray-dark);
    margin-bottom: 0.75rem;
}

.service-card__list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 50%;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9375rem;
}

.service-card__link i {
    transition: var(--transition);
}

.service-card__link:hover i {
    transform: translateX(5px);
}

@media screen and (max-width: 991px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SECTION PROJETS ==================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.project-card--featured .project-card__image {
    height: 100%;
    min-height: 300px;
}

.project-card--featured .project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.project-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-dark-soft);
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.02);
}

.project-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.project-card__title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.project-card__description {
    font-size: 0.9375rem;
    color: var(--text-gray-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-card__features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-white);
}

.project-card__features .feature i {
    color: var(--success);
}

.project-card__stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card__stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    display: block;
}

.project-card__stats .stat-label {
    font-size: 0.8125rem;
    color: var(--text-gray-dark);
}

.project-card__cta {
    display: flex;
    gap: 1rem;
}

@media screen and (max-width: 991px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

/* ==================== SECTION CERTIFICATIONS ==================== */
.certifications {
    background: var(--bg-dark-soft);
}

.certifications__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.certification-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.certification-card__icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.certification-card:hover .certification-card__icon {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.certification-card__content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-main);
    color: var(--text-white);
}

.certification-card__org {
    font-size: 0.875rem;
    color: var(--text-gray-dark);
    margin-bottom: 0.25rem;
}

.certification-card__year {
    font-size: 0.8125rem;
    color: var(--primary-light);
    font-weight: 600;
}

@media screen and (max-width: 991px) {
    .certifications__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .certifications__grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SECTION CONTACT ==================== */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact__info-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.contact__info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.contact__items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact__item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    font-size: 1.125rem;
    color: var(--primary-light);
}

.contact__item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact__item-text .label {
    font-size: 0.8125rem;
    color: var(--text-gray-dark);
}

.contact__item-text a,
.contact__item-text span {
    color: var(--text-white);
    font-weight: 500;
}

.contact__item-text a:hover {
    color: var(--primary-light);
}

.contact__social h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.contact__social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.contact__form {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact__form h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.form__group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form__field {
    position: relative;
    margin-bottom: 1rem;
}

.form__field input,
.form__field textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form__field textarea {
    resize: none;
    min-height: 120px;
}

.form__field input:focus,
.form__field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
    color: var(--text-gray-dark);
}

.form__field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-dark);
    font-size: 1rem;
}

.form__field textarea + i {
    top: 1.25rem;
    transform: none;
}

@media screen and (max-width: 768px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }

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

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.footer__tagline {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-gray-dark);
}

.footer__links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: var(--text-gray-dark);
    font-size: 0.9375rem;
}

.footer__links a:hover {
    color: var(--primary-light);
}

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

.footer__copyright {
    font-size: 0.875rem;
    color: var(--text-gray-dark);
}

.footer__socials {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 1rem;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--primary);
    color: var(--text-white);
}

@media screen and (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==================== ANIMATIONS D'APPARITION ==================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ==================== SÉLECTION ==================== */
::selection {
    background: var(--primary);
    color: var(--text-white);
}

/* ==================== FIX RESPONSIVE MOBILE UNIVERSEL ==================== */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    /* Masquer scrollbar sur mobile */
    ::-webkit-scrollbar {
        display: none;
    }

    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .section {
        padding: 4rem 0;
        width: 100%;
        overflow: hidden;
    }

    .header {
        width: 100%;
        max-width: 100vw;
    }

    main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 15px;
    }

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}