:root {
    --gold: #FFD700;
    --noir: #0A0A0A;
    --anthracite: #1A1A1A;
    --blanc: #FFFFFF;
    --blanc1: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
    --noir: #FDFDFD;
    --blanc: #1A1A1A;
    --blanc1: #FFFFFF;
    --anthracite: #EDEDED;
    --gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 
        background-color 0.3s ease, 
        color 0.3s ease, 
        border-color 0.3s ease,
        opacity 0.3s ease;
}

body {
    background: var(--noir);
    color: var(--blanc);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--noir);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 160, 0, 0.1);
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 1px;
}

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

.nav-menu a {
    color: var(--blanc);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(25deg, rgba(10,10,10,0.9) 40%, rgba(26,26,26,0.7) 100%),
                url('./img/texture-marbre.jpg') center/cover;
    padding-top: 100px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nom h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--blanc1) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nom h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 2rem;
}

.nom h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 2px;
    background: var(--gold);
}

.social-links img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.social-links img:hover {
    transform: rotate(5deg) scale(1.02);
}

/* Sections Génériques */
.section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
}

/* Grille À Propos */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid var(--gold);
    opacity: 0.7;
}

.skill-category:hover {
    transform: translateY(-10px);
    opacity: 1;
}

/* Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    gap: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

/* .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
} */

.skill-image {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.skill-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.skill-image img:hover {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    text-align: center;
}

.tech-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tech-list li {
    background: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Formulaire Contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: var(--blanc);
    transition: var(--transition);
}

.contact-form button {
    background: linear-gradient(45deg, var(--gold), #C5A000);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    color: var(--blanc);
    cursor: pointer;
    transition: var(--transition);
}

/* Thème */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--anthracite);
    border: 1px solid var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle i {
    position: absolute;
    transition: opacity 0.3s;
}

[data-theme="light"] .fa-moon,
[data-theme="dark"] .fa-sun {
    opacity: 0;
}

[data-theme="light"] .fa-sun,
[data-theme="dark"] .fa-moon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nom h2::before {
        display: none;
    }
    
    .social-links img {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .skill-image img {
        width: 150px;
        height: 150px;
    }
    
    .project-card {
        margin: 0 1rem;
    }
    
    .nom h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.5s;
}

img.loaded {
    opacity: 1;
}

.footer{
    text-align: center;
}
.hamburger{
    display: none;
}




@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--anthracite);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }

    .header{
        display: flex;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        background-color: var(--noir);
        display: block;
        border: 0px;
        cursor: pointer;
        z-index: 1001;
        margin-right: 30px;
    }

    .hamburger .line {
        width: 25px;
        height: 2px;
        background: var(--gold);
        margin: 5px 0;
        transition: var(--transition);
    }
}
@media (max-width: 480px) {
    .hero-content {
        padding: 2rem;
    }

    .nom h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .nom h2 {
        font-size: 1.2rem;
        padding-left: 0;
    }

    .social-links img {
        width: 250px;
        height: 250px;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .about-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }
}
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
@media (max-width: 360px) {
    .brand {
        font-size: 1.5rem;
    }

    .nom h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}
.skill-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .skill-image img {
        width: 150px;
        height: 150px;
    }
}
@media (max-height: 600px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
}