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

/* BODY */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0);
    backdrop-filter: blur(10px);
    border-bottom: 1x solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b9d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b9d;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b9d;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* PAGE CONTENT */
.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    padding-top: 80px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 3px; height: 3px; top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { width: 2px; height: 2px; top: 40%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { width: 4px; height: 4px; top: 80%; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 2px; height: 2px; top: 60%; left: 70%; animation-delay: 1s; }
.particle:nth-child(5) { width: 3px; height: 3px; top: 30%; left: 50%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
}

.container {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

/* HOME */
.hello {
    font-size: 22px;
    font-weight: 600;
    color: #ff6b9d;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.name {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
    transition: all 0.5s ease;
    cursor: pointer;
}

.name-regular { font-weight: 400; }

.subtitle {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

/* ABOUT */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

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

.about-header h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 700;
    color: #ff6b9d;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.4s; }
.about-section:nth-child(4) { animation-delay: 0.6s; }
.about-section:nth-child(5) { animation-delay: 0.8s; }

.about-section h2 {
    font-size: 1.5rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1rem;
}

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

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item i {
    font-size: 2rem;
    color: #ff6b9d;
    margin-bottom: 0.5rem;
}

/* HOSTING */
.hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hosting-item {
    background: rgba(78, 205, 196, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
}

.hosting-item:hover {
    background: rgba(78, 205, 196, 0.15);
    transform: translateY(-2px);
}

.hosting-item i {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.hosting-item h4 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.hosting-item p {
    font-size: 0.9rem;
    color: #bbb;
}

/* SOCIAL BOX */
.social-box {
    position: fixed;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.021);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    z-index: 999;
    opacity: 0;
    /* Valeur par défaut si besoin */
    animation-name: fadeInUpCentered;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* Délais spécifiques selon la page */
.page-index .social-box {
    animation-delay: 3s;
}

.page-about .social-box {
    animation-delay: 1.5s;
}

.social-link {
    color: #ccc;
    font-size: 20px;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

/* EFFECTS ON NAME */
.container .name {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container:hover .name {
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.02);
}

.container .name:not(:hover) {
    background: none;
    -webkit-text-fill-color: white;
    transform: scale(1);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUpCentered {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #666;
    margin-top: auto;
    position: relative;
    background: none;
    z-index: 5;
}

footer p {
    background: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
}

footer::before {
    content: '';
    display: block;
    width: 10%;
    height: 1px;
    background-color: #444;
    margin: 0 auto 5px auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .container { padding: 0 15px; }
    .hello { font-size: 18px; letter-spacing: 2px; }
    .subtitle { font-size: 16px; letter-spacing: 0.5px; }

    .social-box {
        gap: 15px;
        bottom: 4vh;
        padding: 10px 16px;
    }

    .social-link {
        font-size: 18px;
        width: 40px;
        height: 40px;
    }

    footer::before { width: 20%; }
    .about-content { padding: 1rem; }
    .skills-grid { grid-template-columns: 1fr; }
}
