@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    height: auto;
}

html {
    scroll-behavior: smooth;
    height: auto;
    overflow-x: hidden;
}

/* Navigation retour */
.back-nav {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    transition: all 0.4s ease;
    animation: slideInLeft 1s ease-out;
}

.back-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.back-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Animations CSS */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Container principal */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    position: relative;
    min-height: 100vh;
    height: auto;
}

/* Titre principal avec animation */
.portfolio-title {
    text-align: center;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1.5s ease-out 0.5s both;
}

/* Section projet - fond uni */
.project-section {
    margin-bottom: 200px;
    padding: 40px 0;
    position: relative;
    min-height: 80vh;
    height: auto;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease-out;
}

/* Section visible quand elle entre dans le viewport */
.project-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-content {
    width: 100%;
}

.project-header {
    margin-bottom: 40px;
}

.project-number {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.project-section.visible .project-number {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #00ff88;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out 0.4s;
}

.project-section.visible .project-title {
    opacity: 1;
    transform: translateY(0);
}

.project-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.6s;
}

.project-section.visible .project-description {
    opacity: 1;
    transform: translateY(0);
}

/* Éléments parallax flottants */
.parallax-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.floating-shape {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(50px);
    animation: float 6s ease-in-out infinite;
}

.floating-line {
    width: 2px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: float 8s ease-in-out infinite reverse;
}

.shape-1 {
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3), transparent);
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 0, 136, 0.2), transparent);
    animation-delay: 2s;
}

.shape-3 {
    bottom: 30%;
    left: 20%;
    background: radial-gradient(circle, rgba(136, 0, 255, 0.2), transparent);
    animation-delay: 4s;
}

.line-1 {
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.line-2 {
    bottom: 20%;
    left: 40%;
    animation-delay: 3s;
}

/* Grille de projets */
.simple-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-visual {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    transition: all 0.8s ease-out;
    opacity: 0;
    transform: translateX(100px);
    border: 2px solid transparent;
}

.project-section.visible .project-visual {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.8s;
}

.project-visual:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.motion-design { 
    background: linear-gradient(135deg, #ff0088, #ff4444);
}
.web-dev { 
    background: linear-gradient(135deg, #8844ff, #4400ff);
}
.branding { 
    background: linear-gradient(135deg, #ffaa00, #ff6600);
}

/* Couleurs spécifiques par projet */
.motion-design-section .project-title { color: #ff0088; }
.web-dev-section .project-title { color: #8844ff; }
.branding-section .project-title { color: #ffaa00; }

/* Section Evolia avec background Coroplasme pleine largeur */
.evolia-section {
    margin-bottom: 200px;
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease-out;
    background-image: url('./Coroplasme.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Overlay sombre pour lisibilité */
.evolia-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.evolia-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.evolia-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

/* Zone de contenu à gauche avec fond givré - PLUS LARGE */
.evolia-text {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 60px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    max-width: none;
}

/* Effet de morphing subtil au hover */
.evolia-text:hover {
    backdrop-filter: blur(25px);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-5px);
}

/* Particules flottantes dans le bloc givré avec blur */
.evolia-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 2px, transparent 3px);
    background-size: 80px 80px;
    animation: floatParticles 15s linear infinite;
    pointer-events: none;
    z-index: 1;
    filter: blur(4px);
}

@keyframes floatParticles {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { transform: translate(-25px, -25px) rotate(360deg); opacity: 0.3; }
}

/* Deuxième layer de particules plus floutées */
.evolia-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(0, 255, 136, 0.15) 1px, transparent 2px),
        radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.1) 1px, transparent 2px);
    background-size: 120px 120px, 150px 150px;
    animation: floatParticles2 12s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
    filter: blur(8px);
}

@keyframes floatParticles2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(5px) rotate(240deg); }
}

.evolia-text .project-number {
    font-size: 1rem;
    color: #00ff88;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
    position: relative;
    z-index: 2;
}

.evolia-section.visible .evolia-text .project-number {
    opacity: 1;
    transform: translateY(0);
}

.evolia-text .project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out 0.4s;
    position: relative;
    z-index: 2;
}

.evolia-section.visible .evolia-text .project-title {
    opacity: 1;
    transform: translateY(0);
}

.evolia-text .project-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out 0.6s;
    position: relative;
    z-index: 2;
}

.evolia-section.visible .evolia-text .project-description {
    opacity: 1;
    transform: translateY(0);
}

/* Images dans la zone givrée - avec animations papillon */
.evolia-images {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-around;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.evolia-logo-item {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: all 0.8s ease-out;
    text-align: center;
    flex: 1;
    cursor: pointer;
}

.evolia-section.visible .evolia-logo-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.8s;
}

.evolia-section.visible .evolia-logo-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1s;
}

.evolia-logo-item img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

/* Animation de battement d'ailes pour le papillon */
.evolia-logo-item:last-child img {
    animation: butterflyWings 3s ease-in-out infinite;
}

@keyframes butterflyWings {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

.evolia-logo-item:hover img {
    transform: translateY(-10px) scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

/* Animation spéciale pour la typographie */
.evolia-logo-item:first-child:hover img {
    animation: typeGlow 0.6s ease-in-out;
}

@keyframes typeGlow {
    0%, 100% { filter: brightness(1.1) saturate(1.2); }
    50% { filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 20px rgba(0, 255, 136, 0.5)); }
}

.evolia-logo-item h4 {
    margin-top: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.evolia-logo-item:hover h4 {
    color: #00ff88;
    transform: translateY(-5px);
}

/* Zone droite libre pour voir la texture */
.evolia-texture {
    /* Zone vide pour laisser voir Coroplasme */
}

/* Optimisations générales mobile */
@media (max-width: 768px) {
    /* Optimisation iOS Safari */
    body {
        -webkit-overflow-scrolling: touch;
        -webkit-font-smoothing: antialiased;
        -webkit-text-size-adjust: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    html {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .portfolio-container {
        min-height: auto;
        height: auto;
    }
    
    .project-section {
        min-height: auto;
        height: auto;
    }
    
    /* Amélioration des zones de toucher */
    .back-nav {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .evolia-logo-item {
        min-height: 44px;
        padding: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix pour le background-attachment sur mobile */
    .evolia-section {
        background-attachment: scroll !important;
    }
    
    /* Fallback pour mobile - force la visibilité après 2s */
    .project-section {
        animation: forceVisible 0.5s ease-out 2s both;
    }
    
    @keyframes forceVisible {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Tablettes */
@media (max-width: 1024px) {
    .portfolio-container {
        padding: 60px 30px;
    }
    
    .evolia-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 20px;
        max-width: 100%;
    }
    
    .evolia-text {
        padding: 50px;
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }
    
    .portfolio-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-bottom: 50px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .portfolio-container {
        padding: 0;
        max-width: 100%;
    }
    
    .portfolio-title {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 30px;
        padding: 40px 15px 0 15px;
    }
    
    .project-section {
        margin-bottom: 60px;
        min-height: auto;
        padding: 0;
    }
    
    /* Section Evolia mobile - VRAIE PLEINE LARGEUR */
    .evolia-section {
        background-attachment: scroll;
        min-height: auto;
        margin-bottom: 60px;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 0 !important;
    }
    
    .evolia-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto;
        max-width: 100% !important;
        width: 100% !important;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .evolia-text {
        padding: 40px 20px !important;
        margin: 0 !important;
        backdrop-filter: blur(15px);
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        min-height: auto;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    
    .evolia-text .project-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .evolia-text .project-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .evolia-text .project-number {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* Particules optimisées mobile */
    .evolia-text::before {
        background-size: 120px 120px;
        filter: blur(6px);
        opacity: 0.6;
    }
    
    .evolia-text::after {
        background-size: 160px 160px, 200px 200px;
        filter: blur(10px);
        opacity: 0.4;
    }
    
    /* Section détails avec plus d'espace */
    .evolia-text div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 25px !important;
    }
    
    .evolia-text div[style*="grid-template-columns"] div {
        margin-bottom: 0 !important;
    }
    
    .evolia-text div[style*="background: rgba(0, 255, 136, 0.1)"] {
        padding: 20px !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .evolia-text h3[style*="color: #00ff88"] {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
    
    .evolia-text h4[style*="color: white"] {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .evolia-text p[style*="color: rgba(255, 255, 255, 0.8)"] {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Images Evolia mobile - plus d'espace */
    .evolia-images {
        flex-direction: row;
        gap: 30px;
        align-items: center;
        justify-content: center;
        margin: 30px 0;
        padding: 0 20px;
    }
    
    .evolia-logo-item {
        max-width: 45%;
        flex: 0 0 auto;
    }
    
    .evolia-logo-item img {
        max-height: 140px;
        width: 100%;
        object-fit: contain;
    }
    
    .evolia-logo-item h4 {
        font-size: 0.9rem;
        margin-top: 12px;
        text-align: center;
    }
    
    /* Zone texture visible sur mobile */
    .evolia-texture {
        display: block;
        height: 200px;
        margin: 20px 0;
    }
    
    /* Autres projets mobile */
    .simple-project {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 0 20px;
    }
    
    .project-visual {
        height: 200px;
        font-size: 1.5rem;
        order: 2;
        margin: 0;
    }
    
    .project-visual:hover {
        transform: scale(1.02);
    }
    
    /* Navigation retour mobile */
    .back-nav {
        top: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Éléments flottants réduits */
    .floating-shape {
        width: 80px;
        height: 80px;
        filter: blur(25px);
    }
    
    .floating-line {
        height: 120px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .portfolio-container {
        padding: 30px 0;
    }
    
    .portfolio-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .project-section {
        margin-bottom: 50px;
        padding: 10px 0;
    }
    
    /* Section Evolia très petits écrans - PLEINE LARGEUR */
    .evolia-section {
        margin-bottom: 50px;
        padding: 30px 0 !important;
        width: 100vw !important;
    }
    
    .evolia-content {
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        min-height: auto;
    }
    
    .evolia-text {
        padding: 30px 15px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        backdrop-filter: blur(12px);
        width: 100% !important;
        max-width: none !important;
    }
    
    .evolia-text .project-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .evolia-text .project-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .evolia-text .project-number {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    /* Particules simplifiées mais visibles */
    .evolia-text::before {
        background-size: 140px 140px;
        filter: blur(8px);
        opacity: 0.4;
    }
    
    .evolia-text::after {
        background-size: 180px 180px, 220px 220px;
        filter: blur(12px);
        opacity: 0.3;
    }
    
    /* Section détails optimisée */
    .evolia-text div[style*="grid-template-columns"] {
        gap: 15px !important;
        margin-top: 20px !important;
    }
    
    .evolia-text div[style*="background: rgba(0, 255, 136, 0.1)"] {
        padding: 15px !important;
        border-radius: 10px !important;
        margin-bottom: 12px !important;
    }
    
    .evolia-text h3[style*="color: #00ff88"] {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .evolia-text h4[style*="color: white"] {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .evolia-text p[style*="color: rgba(255, 255, 255, 0.8)"] {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Images adaptées aux petits écrans */
    .evolia-images {
        margin: 25px 0;
        gap: 20px;
        padding: 0 15px;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .evolia-logo-item {
        max-width: 40%;
        min-width: 120px;
    }
    
    .evolia-logo-item img {
        max-height: 100px;
        width: 100%;
        object-fit: contain;
    }
    
    .evolia-logo-item h4 {
        font-size: 0.8rem;
        margin-top: 8px;
        text-align: center;
    }
    
    /* Zone texture adaptée */
    .evolia-texture {
        height: 150px;
        margin: 15px 0;
    }
    
    /* Projets autres simplifiés */
    .project-visual {
        height: 180px;
        font-size: 1.3rem;
        border-radius: 10px;
        margin: 0;
    }
    
    .simple-project {
        padding: 0 15px;
    }
    
    /* Navigation compacte */
    .back-nav {
        top: 15px;
        left: 15px;
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    /* Performance optimisée */
    .evolia-text:hover {
        transform: none;
    }
    
    .project-visual:hover {
        transform: none;
    }
    
    /* Cache éléments décoratifs */
    .parallax-element {
        display: none;
    }
    
    .floating-shape,
    .floating-line {
        display: none;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .evolia-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
    }
    
    .evolia-text {
        padding: 20px;
    }
    
    .evolia-images {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    
    .evolia-logo-item {
        max-width: 120px;
    }
    
    .evolia-logo-item img {
        max-height: 80px;
    }
}

/* Optimisations de performance mobile */
@media (max-width: 768px) {
    /* Réduit les animations sur mobile pour les performances */
    .floating-shape,
    .floating-line {
        animation-duration: 20s;
    }
    
    .evolia-text::before {
        animation-duration: 25s;
    }
    
    .evolia-text::after {
        animation-duration: 20s;
    }
    
    /* Simplification des transitions */
    .project-section {
        transition: all 0.6s ease-out;
    }
    
    .evolia-logo-item {
        transition: all 0.4s ease-out;
    }
    
    /* Optimisation des z-index */
    .evolia-text {
        z-index: 10;
    }
} 