/* Variables globales */
:root {
    /* Thème sombre (par défaut) */
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --text-color: #e0e0e0;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --card-hover: #2d2d2d;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --light-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Thème clair */
[data-theme="light"] {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --text-color: #2d3436;
    --dark-bg: #ffffff;
    --darker-bg: #f5f6fa;
    --card-bg: #ffffff;
    --card-hover: #f0f0f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --light-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

/* Navigation améliorée */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.logo span {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover span {
    transform: translateX(5px);
    text-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::before {
    width: 80%;
}

/* Burger menu amélioré */
.burger {
    display: none;
    cursor: pointer;
    z-index: 2;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.burger:hover {
    background: rgba(108, 92, 231, 0.1);
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--primary-color);
}

.burger.toggle div:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--primary-color);
}

/* Media Queries pour la navbar */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 400px;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: var(--shadow);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }

    .nav-links a::before {
        bottom: -5px;
    }

    .burger {
        display: block;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo span {
        font-size: 1.8rem;
    }
}

/* Animation pour les liens du menu mobile */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 1.2rem;
    transition: var(--transition);
    position: relative;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Section Compétences */
.competences {
    padding: 5rem 10%;
    background: var(--darker-bg);
}

.competences h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.competence-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.competence-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: var(--primary-color);
}

.competence-card h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.skill-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.skill span {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.competence-card:hover .progress {
    animation: progressAnimation 1s ease-out;
}

@keyframes progressAnimation {
    0% {
        width: 0;
    }
}

.competence-card i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
}

/* Section Projets */
.projets {
    padding: 5rem 10%;
    background: var(--dark-bg);
}

.projets h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

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

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

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

.projet-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.projet-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.projet-card p {
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Section Contact */
.contact {
    padding: 8rem 10%;
    background: var(--darker-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

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

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.info-item:hover i {
    transform: scale(1.1);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

#contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

#contact-form:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
    pointer-events: none;
    background: var(--card-bg);
    padding: 0 0.5rem;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form.highlight {
    animation: formHighlight 2s ease;
}

@keyframes formHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px 10px rgba(108, 92, 231, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

@media screen and (max-width: 768px) {
    .contact {
        padding: 5rem 5%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 1.5rem;
    }

    #contact-form {
        padding: 2rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--darker-bg);
    color: var(--text-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -5px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .competence-card {
        min-height: 350px;
        padding: 2rem;
    }

    .skill-bars {
        gap: 1rem;
    }

    .progress-bar {
        height: 6px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo span {
        font-size: 1.5rem;
    }

    .about-image .image-container img {
        height: 300px;
    }
}

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

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

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Sélecteur de curseur */
.cursor-selector {
    position: relative;
}

.cursor-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cursor-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 150px;
    z-index: 1000;
}

.cursor-selector:hover .cursor-options {
    display: flex;
}

.cursor-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.cursor-option:hover {
    background: var(--card-hover);
}

.cursor-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
}

/* Styles de prévisualisation des curseurs */
.cursor-preview.default {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.cursor-preview.minimal {
    background: var(--white);
    transform: scale(0.8);
}

.cursor-preview.neon {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color),
                0 0 40px var(--primary-color);
}

.cursor-preview.gradient {
    background: var(--gradient);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

/* Styles des curseurs */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: transform 0.1s ease, width 0.1s ease, height 0.1s ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.cursor-follower {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: transform 0.15s ease, width 0.15s ease, height 0.15s ease;
    mix-blend-mode: difference;
}

/* Style Minimal */
.cursor.minimal {
    width: 8px;
    height: 8px;
    background: var(--white);
    box-shadow: none;
}

.cursor-follower.minimal {
    width: 30px;
    height: 30px;
    border: 1px solid var(--white);
    opacity: 0.5;
}

/* Style Néon */
.cursor.neon {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color),
                0 0 40px var(--primary-color);
}

.cursor-follower.neon {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color),
                0 0 40px var(--primary-color);
}

/* Style Dégradé */
.cursor.gradient {
    background: var(--gradient);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

.cursor-follower.gradient {
    border: 2px solid transparent;
    background: var(--gradient);
    background-clip: padding-box;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

/* États des curseurs */
.cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.5);
}

/* États de survol pour les éléments interactifs */
a:hover ~ .cursor,
button:hover ~ .cursor,
.spec-item:hover ~ .cursor,
input:hover ~ .cursor,
textarea:hover ~ .cursor,
select:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1.5);
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower,
.spec-item:hover ~ .cursor-follower,
input:hover ~ .cursor-follower,
textarea:hover ~ .cursor-follower,
select:hover ~ .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
}

/* États de survol pour le texte */
p:hover ~ .cursor,
h1:hover ~ .cursor,
h2:hover ~ .cursor,
h3:hover ~ .cursor,
h4:hover ~ .cursor,
span:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(0.5);
}

p:hover ~ .cursor-follower,
h1:hover ~ .cursor-follower,
h2:hover ~ .cursor-follower,
h3:hover ~ .cursor-follower,
h4:hover ~ .cursor-follower,
span:hover ~ .cursor-follower {
    transform: translate(-50%, -50%) scale(1.2);
}

/* États de survol pour les images */
img:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(2);
}

img:hover ~ .cursor-follower {
    transform: translate(-50%, -50%) scale(2.5);
}

/* Media Queries pour le sélecteur de curseur */
@media screen and (max-width: 768px) {
    .cursor-options {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cursor-option {
        flex: 0 0 calc(50% - 1rem);
    }
}

/* Theme Switch */
.theme-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-switch:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.theme-switch i {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

[data-theme="light"] .theme-switch i {
    transform: rotate(180deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    animation: bounce 2s infinite;
    z-index: 2;
    margin-top: 2rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-indicator i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* Section À Propos */
.about {
    padding: 8rem 10%;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.03;
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.about-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 1rem;
}

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

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

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: var(--card-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-features i {
    color: var(--primary-color);
}

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

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

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.about-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 5%;
    }

    .about-header h2 {
        font-size: 2.2rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem;
    }
}

/* Section Services */
.services {
    padding: 5rem 10%;
    background: var(--darker-bg);
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--primary-color);
}

/* Contact Section Improvements */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    background: var(--card-hover);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: var(--card-bg);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

/* Footer Improvements */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem 10%;
    background: var(--darker-bg);
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Particles.js */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul li {
        display: inline-block;
        margin: 0 1rem;
    }
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Typing Animation */
.typing-text {
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Section Setup */
.setup {
    padding: 5rem 10%;
    background: var(--dark-bg);
}

.setup h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.setup-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.setup-image {
    position: relative;
}

.setup-image .image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.setup-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.setup-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.setup-badge i {
    font-size: 1.5rem;
}

.setup-specs h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

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

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.spec-item:hover::before {
    opacity: 0.05;
}

.spec-info {
    position: relative;
    z-index: 1;
}

.spec-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.spec-info p {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.spec-detail {
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: block;
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Amélioration des boutons de devis */
.btn[href="#contact"] {
    position: relative;
    overflow: hidden;
}

.btn[href="#contact"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn[href="#contact"]:hover::after {
    width: 300px;
    height: 300px;
}

/* Ajustements pour l'image de profil */
.about-image .image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.zeno-link {
    color: #ff00ff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 20px;
    text-shadow: 0 0 10px #ff00ff,
                 0 0 20px #ff00ff,
                 0 0 30px #ff00ff;
    animation: neonPulse 1.5s ease-in-out infinite;
}

.zeno-link:hover {
    color: #ff69b4;
    transform: scale(1.05);
    text-shadow: 0 0 15px #ff00ff,
                 0 0 30px #ff00ff,
                 0 0 45px #ff00ff;
}

@keyframes neonPulse {
    0% {
        text-shadow: 0 0 10px #ff00ff,
                     0 0 20px #ff00ff,
                     0 0 30px #ff00ff;
    }
    50% {
        text-shadow: 0 0 15px #ff00ff,
                     0 0 30px #ff00ff,
                     0 0 45px #ff00ff;
    }
    100% {
        text-shadow: 0 0 10px #ff00ff,
                     0 0 20px #ff00ff,
                     0 0 30px #ff00ff;
    }
} 