:root {
    --bg-color: #0a0a0a;
    --text-main: #f4f4f4;
    --text-muted: #888888;
    --accent-lilac: #d8b4fe;
    --accent-lilac-dim: #a78bfa;
    --card-bg: #141414;
    --font-main: 'Manrope', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: pointer;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-lilac);
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(216, 180, 254, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
    backdrop-filter: blur(2px);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

nav ul li a:hover {
    color: var(--text-main);
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    background: linear-gradient(to right, var(--bg-color) 40%, transparent 100%), 
                url("hero_image.png");
    background-size: auto 85%;
    background-position: right center;
    background-repeat: no-repeat;
}

.subtitle {
    color: var(--accent-lilac);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 400;
}

h2 {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.lilac-text {
    color: var(--accent-lilac);
    font-style: italic;
}

.description {
    max-width: 500px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 10%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.line {
    width: 60px;
    height: 1px;
    background-color: var(--text-muted);
    animation: expandLine 2s infinite alternate;
}

@keyframes expandLine {
    0% { width: 40px; opacity: 0.5; }
    100% { width: 80px; opacity: 1; }
}

#work {
    padding: 8rem 10%;
}
#work2 {
    padding: 8rem 10%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 200;
}

.line-separator {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--text-muted), transparent);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.project-card {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--card-bg);
    border: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-card:hover .image-placeholder img {
    transform: scale(1.05);
}

.carousel {
    position: relative;
    width: 100%;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--accent-lilac);
    color: black;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.project-info {
    margin-top: 1.5rem;
}

.project-info h4 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#about {
    padding: 6rem 10%;
    background-color: #0f0f0f;
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 800px;
    border-left: 1px solid var(--accent-lilac);
    padding-left: 3rem;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.skills li {
    border: 1px solid var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skills li:hover {
    border-color: var(--accent-lilac);
    color: var(--accent-lilac);
    transform: translateY(-3px);
}



#contact {
    padding: 6rem 10%;
    position: relative;
    background-color: var(--bg-color); 
    border-top: 1px solid #1a1a1a;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.contact-form-wrapper {
    flex: 1;
    max-width: 600px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-lilac);
    background: #161616;
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--accent-lilac);
    border: 1px solid var(--accent-lilac);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-lilac);
    color: #000;
}

.contact-visual {
    flex: 1;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(216, 180, 254, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: floatOrb 6s ease-in-out infinite;
}

.grid-lines-1, .grid-lines-2 {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 250px;
    height: 250px;
}

.grid-lines-1 {
    animation: rotateGrid 15s linear infinite;
}

.grid-lines-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(216, 180, 254, 0.2);
    animation: rotateGridReverse 20s linear infinite;
    transform: rotate(45deg);
}

@keyframes floatOrb {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.5; }
    50% { transform: scale(1.2) translateY(-20px); opacity: 0.8; }
}

@keyframes rotateGrid {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateGridReverse {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(-315deg); }
}

/* Footer New Styles */
footer {
    background-color: #050505;
    padding: 4rem 10% 2rem;
    border-top: 1px solid #1a1a1a;
    display: block; /* reset flex display from previous simple footer if any */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

.socials-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.socials-footer a {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.socials-footer a:hover {
    color: var(--accent-lilac);
}

.copyright {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column-reverse;
    }
    .contact-visual {
        width: 100%;
        height: 300px;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    header { padding: 1.5rem 2rem; }
    h1 { font-size: 3.5rem; }
    .email-link { font-size: 2rem; }
    .gallery { grid-template-columns: 1fr; }
    #hero { padding: 0 5%; }
    .cursor-glow { display: none; }
    body { cursor: auto; }
}

/* PAGE PROJET – TEXTE À DROITE */

.project-detail {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.project-detail .image-placeholder {
    flex: 1.3;
}

.project-detail .project-info {
    flex: 1;
}



.cursor-glow {
	pointer-events: none;
}

.overlay {
	pointer-events: none;
}

.project-page {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.meta {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .project-row {
        grid-template-columns: 1fr;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* ===============================
   PAGE PROJETS DÉTAILLÉS
   =============================== */

/* FORCE 1 PROJET PAR LIGNE */
.project-page .gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 6rem;
}

/* SÉCURITÉ : chaque carte prend toute la largeur */
.project-page .project-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* STRUCTURE INTERNE : image gauche / texte droite */
.project-page .project-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* MOBILE */
@media (max-width: 900px) {
    .project-page .project-detail {
        grid-template-columns: 1fr;
    }
}

/* Back link specific style for project pages */
.back-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--text-main);
}

/* Bouton de traduction flottant */
.lang-switch-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lang-switch-btn:hover {
    background-color: var(--accent-lilac);
    color: #000;
    transform: translateY(-2px);
}

.lang-switch-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================= */
/* RESPONSIVE MEDIA QUERIES */
/* ========================================= */

@media (max-width: 1024px) {
    header {
        padding: 2rem;
    }

    #hero {
        padding: 0 5%;
        background-position: center;
        background-size: cover;
    }
    
    #hero:before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,10,0.7); /* Assombrir l'image de fond pour lisibilité */
        z-index: 0;
    }
    
    .hero-content {
        position: relative;
        z-index: 1;
    }

    h1 {
        font-size: 4rem;
    }

    .gallery {
        grid-template-columns: 1fr; /* Une seule colonne sur tablette */
        gap: 2rem;
    }

    #work, #work2 {
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    /* Menu mobile */
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(10,10,10,0.95);
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }
    
    .description {
        font-size: 1rem;
    }

    /* Ajustement grille projets */
    .gallery {
        gap: 3rem;
    }

    .image-placeholder {
        aspect-ratio: 16/9; /* Format plus adapté au mobile */
    }

    /* Section Contact */
    .contact-container {
        grid-template-columns: 1fr; /* Formulaire prend toute la largeur */
    }

    .contact-visual {
        display: none; /* Masquer l'animation abstraite sur mobile pour alléger */
    }

    #contact {
        padding: 4rem 5%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .lang-switch-btn {
        bottom: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .line-separator {
        width: 100%;
    }

    .project-detail .image-placeholder {
        height: auto;
        aspect-ratio: 1;
    }
}


