/* Import des polices selon la charte graphique */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Couleurs principales selon la charte */
    --charbon: #2A2A2A;
    --sable-dore: #ECE2D0;
    --blanc-pur: #FFFFFF;
    --gris-perle: #F8F8F8;
    
    /* Couleurs secondaires */
    --gris-moyen: #666666;
    --gris-clair: #E0E0E0;
    --bleu-tech: #1976D2;
    --orange-ia: #F57C00;
    
    /* Couleurs de support */
    --bleu-tech-clair: #E8F4FD;
    --orange-ia-clair: #FFF3E0;
    --gris-tres-clair: #F0F0F0;
    
    /* Espacements (multiples de 4px) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 2.5rem;
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gris-tres-clair);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charbon);
    letter-spacing: -0.02em;
}

.nav-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-button {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-button.contact {
    background: #111;
    color: #fff;
    border-radius: 6px;
}

.nav-button.contact:hover {
    background: #333;
    color: #fff;
}

.container {
    padding: 0;
    width: 100%;
}

.container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
}

#contact {
    background: var(--gris-perle);
    padding: var(--space-3xl) 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charbon);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.03em;
    text-align: center;
    width: 100%;
    margin-top: var(--space-sm);
}

.contact-card {
    background: var(--blanc-pur);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gris-tres-clair);
    transition: all 0.3s ease;
    width: 80%;
    max-width: 1000px;
    display: flex;
    gap: var(--space-2xl);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.contact-card:active {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.contact-info {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-details h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--charbon);
    margin: 0;
}

.contact-details p {
    font-family: 'Inter', sans-serif;
    color: var(--gris-moyen);
    font-size: 1.1rem;
    margin: 0;
}

.contact-social {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.social-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.social-button svg {
    width: 22px;
    height: 22px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-button:hover svg {
    opacity: 1;
    transform: translateY(-1px);
}

.linkedin-button svg {
    fill: #0a66c2;
}

.github-button svg {
    fill: var(--charbon);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 2.5rem;
    background-color: var(--blanc-pur);
    border-top: 1px solid var(--gris-tres-clair);
    margin-top: auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--charbon);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.footer-right {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--gris-moyen);
    letter-spacing: -0.01em;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    background-color: var(--blanc-pur);
    color: var(--charbon);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

#projets {
    background: var(--gris-perle);
    padding: var(--space-3xl) 0;
    width: 100%;
}

#projets h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charbon);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.03em;
    text-align: center;
    width: 100%;
    margin-top: var(--space-sm);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: var(--space-xl);
    width: 100%;
    padding: 0 40px;
}

.projet-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    width: 100%;
    min-height: 320px;
}

.projet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.projet-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.projet-card:hover .projet-content {
    opacity: 1;
}

.projet-title {
    font-family: 'Inter', sans-serif;
    color: var(--blanc-pur);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.projet-description {
    font-family: 'Inter', sans-serif;
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

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

.projet-skills {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.projet-skill {
    display: inline-block;
    padding: 6px 12px;
    background: var(--sable-dore);
    color: var(--charbon);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.projet-card:hover .projet-skill {
    background: #E0D4BC;
}

#me {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #F5F1E9 0%, #ECE2D0 100%);
    overflow: hidden;
}

#me .circle-top-right,
#me .circle-bottom-left {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(163, 191, 250, 0.08),
        rgba(163, 191, 250, 0.03)
    );
    z-index: 0;
    opacity: 0.9;
}

#me .circle-top-right {
    top: -200px;
    right: -200px;
}

#me .circle-bottom-left {
    bottom: -200px;
    left: -200px;
}

@media (max-width: 768px) {
    #me .circle-top-right,
    #me .circle-bottom-left {
        width: 400px;
        height: 400px;
    }

    #me .circle-top-right {
        top: -150px;
        right: -150px;
    }

    #me .circle-bottom-left {
        bottom: -150px;
        left: -150px;
    }
}

.me-center::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, 
        rgba(163, 191, 250, 0.05),
        rgba(163, 191, 250, 0.02)
    );
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: floatShape 20s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.me-center {
    text-align: center;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    line-height: 1.8;
    color: var(--gris-moyen);
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: -0.02em;
    padding: 0 var(--space-2xl);
    opacity: 0;
    animation: fadeInUpMe 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 1;
}

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

#me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(163, 191, 250, 0.4),
        transparent
    );
    z-index: 2;
}

@media (max-width: 768px) {
    .me-center {
        font-size: 1.8rem;
        padding: 0 2rem;
        margin: 0 1.5rem;
    }

    #me::before,
    #me .circle-bottom-left {
        width: 400px;
        height: 400px;
    }

    #me::before {
        top: -150px;
        right: -150px;
    }

    #me .circle-bottom-left {
        bottom: -150px;
        left: -150px;
    }

    .me-center::before {
        width: 200px;
        height: 200px;
    }
}

#expertise {
    background: var(--gris-perle);
    padding: 80px 0;
    display: block;
}

#expertise h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charbon);
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.03em;
    text-align: center;
    width: 100%;
    margin-top: var(--space-sm);
}

.expertise-container {
    display: flex;
    gap: 40px;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 500px;
    overflow-x: hidden;
}

.expertise-list {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-left: var(--space-md);
    overflow-x: hidden;
}

.expertise-list-item {
    padding: var(--space-md);
    background: var(--blanc-pur);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gris-tres-clair);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--charbon);
    position: relative;
    left: 0;
}

.expertise-list-item:hover {
    background: var(--gris-perle);
    left: 5px;
}

.expertise-list-item.active {
    background: var(--charbon);
    color: var(--blanc-pur);
}

.expertise-content {
    flex: 1;
    background: var(--blanc-pur);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gris-tres-clair);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: none;
}

.expertise-content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.expertise-content-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--charbon);
    margin-bottom: var(--space-md);
}

.expertise-content-desc {
    font-family: 'Inter', sans-serif;
    color: var(--gris-moyen);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.expertise-content-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

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

@media (max-width: 768px) {
    .expertise-container {
        flex-direction: column;
    }

    .expertise-list {
        position: relative;
        top: 0;
        max-height: none;
        flex: none;
        width: 100%;
    }
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    font-size: 0.85rem;
    color: #86868b;
    letter-spacing: -0.01em;
}

.language-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: #86868b;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.language-button.active {
    color: #1d1d1f;
    font-weight: 500;
}

.language-button:hover:not(.active) {
    color: #1d1d1f;
}

.language-separator {
    color: #d2d2d7;
    user-select: none;
}

.projet-github {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    background: var(--blanc-pur);
    color: var(--charbon);
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.projet-github:hover {
    background: var(--gris-perle);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.3);
}

.projet-github svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Classes utilitaires selon la charte graphique */
.text-center { text-align: center; }
.text-secondary { color: var(--gris-moyen); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Composants de base selon la charte */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--charbon);
    color: var(--blanc-pur);
}

.btn-primary:hover {
    background: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.3);
}

.btn-secondary {
    background: var(--sable-dore);
    color: var(--charbon);
}

.btn-secondary:hover {
    background: #E0D4BC;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--charbon);
    border: 2px solid var(--sable-dore);
}

.btn-outline:hover {
    background: var(--sable-dore);
    transform: translateY(-2px);
}

.card {
    background: var(--blanc-pur);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gris-tres-clair);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--charbon);
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--sable-dore);
    color: var(--charbon);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    font-family: 'Inter', sans-serif;
}

.tag-tech {
    background: var(--bleu-tech-clair);
    color: var(--bleu-tech);
}

.tag-ai {
    background: var(--orange-ia-clair);
    color: var(--orange-ia);
}

/* Animation de base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

#home {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('assets/background.jpg') center/cover no-repeat;
    opacity: 0;
    transform: scale(1.1);
    animation: bgDepthHome 1.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes bgDepthHome {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#home .container-home {
    text-align: center;
    position: relative;
    z-index: 1;
}

#home .name {
    font-size: 9rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1;
    transform: translateX(-33%);
    animation: slideFromLeftHome 1s ease-out forwards;
}

#home .surname {
    font-size: 9rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    margin: 0;
    line-height: 1;
    transform: translateX(33%);
    animation: slideFromRightHome 1s ease-out forwards;
}

@keyframes slideFromLeftHome {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-33%);
        opacity: 1;
    }
}

@keyframes slideFromRightHome {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(33%);
        opacity: 1;
    }
}

#home .down-arrow-btn {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: 0.2s, box-shadow 0.2s, transform 0.2s;
    z-index: 2;
}

#home .down-arrow-btn:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: translateX(-50%) scale(1.08);
}

#home .down-arrow-btn svg {
    width: 32px;
    height: 32px;
    fill: #1d1d1f;
}
