:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --nav-bg: #ffffff;
    --card-bg: #ffffff;
    --shadow-color: rgba(0,0,0,0.1);
    --light-blue: #ebf5fb;
    --portfolio-bg: #f5f5f5;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #3498db;
    --accent-color: #2ecc71;
    --nav-bg: #2c2c2c;
    --card-bg: #2c2c2c;
    --shadow-color: rgba(0,0,0,0.3);
    --portfolio-bg: #1a1a1a;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

nav {
    background: var(--nav-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.hamburger {
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:last-child {
    top: 18px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: rotate(-45deg);
    top: 9px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100vh;
    width: 250px;
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    gap: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
}

.nav-links a:hover {
    color: var(--accent-color);
    background: rgba(0,0,0,0.05);
}

section {
    padding: 5rem 5%;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    overflow: hidden;
}

.neon-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.neon-line {
    position: absolute;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5),
                0 0 40px rgba(52, 152, 219, 0.3),
                0 0 60px rgba(52, 152, 219, 0.1);
}

.neon-line.horizontal {
    width: 100%;
    height: 1px;
}

.neon-line.vertical {
    width: 1px;
    height: 100%;
}

.neon-line.horizontal:nth-child(1) {
    top: 25%;
    animation: glowH 4s ease-in-out infinite alternate;
}

.neon-line.horizontal:nth-child(2) {
    top: 50%;
    animation: glowH 4s ease-in-out infinite alternate 1s;
}

.neon-line.horizontal:nth-child(3) {
    top: 75%;
    animation: glowH 4s ease-in-out infinite alternate 2s;
}

.neon-line.vertical:nth-child(4) {
    left: 25%;
    animation: glowV 4s ease-in-out infinite alternate 0.5s;
}

.neon-line.vertical:nth-child(5) {
    left: 50%;
    animation: glowV 4s ease-in-out infinite alternate 1.5s;
}

.neon-line.vertical:nth-child(6) {
    left: 75%;
    animation: glowV 4s ease-in-out infinite alternate 2.5s;
}

.neon-animated-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
}

.animated-line {
    height: 1px;
    background: rgba(52, 152, 219, 0.1);
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5),
                0 0 40px rgba(52, 152, 219, 0.3),
                0 0 60px rgba(52, 152, 219, 0.1);
    animation: lineMove 3s ease-in-out infinite;
}

.animated-line:nth-child(1) {
    animation-delay: 0s;
}

.animated-line:nth-child(2) {
    animation-delay: 0.5s;
}

.animated-line:nth-child(3) {
    animation-delay: 1s;
}

@keyframes glowH {
    0% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    100% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes glowV {
    0% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes lineMove {
    0% {
        transform: scaleX(0.2);
        opacity: 0.3;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0.2);
        opacity: 0.3;
    }
}

#accueil {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.hero {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.hero h1 {
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.hero p {
    color: #fff;
}

.cta-button {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8),
                inset 0 0 10px rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button:hover {
    background: var(--primary-color);
    box-shadow: 0 0 40px rgba(52, 152, 219, 1),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-3px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
    color: var(--primary-color);
}

.contact-link i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-link span {
    font-size: 1.1rem;
    font-weight: 500;
}

footer {
    padding: 20px;
    text-align: center;
    background: var(--bg-color);
    border-top: 1px solid var(--shadow-color);
}

footer p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Styles pour la section projets */
#portfolio {
    padding: 5rem 5%;
    background-color: var(--portfolio-bg);
    transition: background-color 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--text-color);
}

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

.language-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Styles pour l'accessibilité */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Styles additionnels pour l'accessibilité */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Pour les images en lazy loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* Styles pour la section showcase */
#showcase {
    padding: 100px 0;
    background: var(--bg-color);
    overflow: hidden;
}

.laptop-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.macbook {
    width: 70%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transform: scale(0.85);
}

.screen {
    background: #050505;
    border-radius: 20px;
    padding: 8px;
    position: relative;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.screen-bezel {
    background: #000;
    border-radius: 15px;
    padding: 5px;
    position: relative;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

.screen::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    border-radius: 20px;
    pointer-events: none;
}

.screen-content {
    background: #fff;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    transform: scale(0.98);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

.camera {
    width: 6px;
    height: 6px;
    background: #222;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        inset 0 0 2px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.camera::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 1px;
    left: 1px;
}

.base {
    background: linear-gradient(
        to bottom,
        #b4b4b4 0%,
        #969696 100%
    );
    height: 20px;
    margin: -2px 120px 0;
    border-radius: 0 0 12px 12px;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.notch {
    background: linear-gradient(
        to bottom,
        #999 0%,
        #888 100%
    );
    height: 4px;
    width: 150px;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.2);
}

.stand {
    position: relative;
    height: 120px;
    margin-top: -2px;
    perspective: 1000px;
}

.stand-top {
    width: 80px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        #b4b4b4 0%,
        #969696 100%
    );
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    transform: perspective(300px) rotateX(45deg);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stand-bottom {
    width: 160px;
    height: 4px;
    background: linear-gradient(
        to bottom,
        #999 0%,
        #888 100%
    );
    margin: 10px auto 0;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stand-bottom::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 8px;
    background: linear-gradient(
        to bottom,
        #888 0%,
        #777 100%
    );
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slideshow {
    width: 100%;
    height: 200%;
    animation: scroll 20s linear infinite;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Effet de reflet amélioré */
.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            125deg,
            rgba(255,255,255,0.08) 0%,
            rgba(255,255,255,0.03) 20%,
            rgba(255,255,255,0) 40%
        );
    pointer-events: none;
    z-index: 2;
    border-radius: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .macbook {
        width: 95%;
        transform: scale(1);
    }
    
    .base {
        margin: -2px 40px 0;
    }
    
    .stand {
        height: 80px;
    }
    
    .stand-top {
        width: 60px;
        height: 40px;
    }
    
    .stand-bottom {
        width: 120px;
    }
} 