:root {
    /* Couleurs principales du site */
    --color-primary: #3c155d;
    /* Violet foncé */
    --color-secondary: #338899;
    /* Rose/magenta */
    --color-accent: #2dbb39;
    /* Orange */
    --color-neutral: #6b7280;
    /* Gris pour les boutons */
    --color-linkedin: #0077b5;
    /* Bleu LinkedIn */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    overflow: hidden;
    height: 100vh;
    position: relative;
    transition: background 0.8s ease-in-out;
}

/* Conteneur principal pour l'animation */
#container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La forme polygonale qui sera animée */
#shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0% 0%, 25% 0%, 50% 0%, 75% 0%, 100% 0%, 100% 50%, 100% 100%, 75% 100%, 50% 100%, 25% 100%, 0% 100%, 0% 50%);
    will-change: clip-path;
    /* Optimisation GPU pour les changements de clip-path */
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Conteneur pour le texte, initialement invisible */
#text-content {
    position: relative;
    z-index: 15;
    color: black;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 1em;
    box-sizing: border-box;
    max-width: 90vw;
    width: 775px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    opacity: 0;
    min-width: auto;
    max-width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex-wrap: wrap;
    will-change: contents;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.icon-button {
    background: transparent;
    border: 2px solid var(--color-neutral);
    border-radius: 50%;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

.icon-button .button-icon {
    width: 24px;
    height: 24px;
    color: var(--color-neutral);
    transition: all 0.3s ease;
}

/* Bouton Musique (4ème - animation couleur unie) */
.music-button {
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.music-button.active {
    border-color: transparent;
    animation: colorCycle 6s ease-in-out infinite;
}

.music-button.active .button-icon {
    color: white;
}

.music-button:hover {
    border-color: transparent;
    transform: scale(1.1);
    animation: colorCycle 6s ease-in-out infinite;
}

.music-button:hover .button-icon {
    color: white;
}

@keyframes colorCycle {
    0%, 100% {
        background-color: var(--color-primary);
    }
    33% {
        background-color: var(--color-secondary);
    }
    66% {
        background-color: var(--color-accent);
    }
}

/* Bouton Contact (1er - violet) */
.contact-button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.contact-button:hover .button-icon {
    color: white;
}

/* Bouton LinkedIn (2ème - turquoise) */
.linkedin-button:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.1);
}

.linkedin-button:hover .button-icon {
    color: white;
}

.icon-button:active {
    transform: scale(0.95);
}

/* Bouton Langue (3ème - vert) */
.language-button {
    position: relative;
    text-decoration: none;
}

.language-button .lang-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-neutral);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.language-button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
    text-decoration: none;
}

.language-button:hover .lang-text {
    color: white;
    text-decoration: none;
}

.progress-container {
    margin: 2rem 0 1.5rem 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 6px;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-text {
    text-align: left;
    line-height: 1.2;
    font-weight: 500;
}

.step.completed .step-icon {
    background: var(--color-accent);
    color: white;
}

.step.completed .step-text {
    color: var(--color-accent);
}

.step.in-progress .step-icon {
    background: var(--color-secondary);
    color: white;
}

.step.in-progress .step-icon svg {
    animation: rotate 2s linear infinite;
}

.step.in-progress .step-text {
    color: var(--color-secondary);
    font-weight: 600;
}

.step.upcoming .step-icon {
    background: white;
    color: var(--color-neutral);
    border: 2px solid var(--color-neutral);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step.upcoming .step-text {
    color: var(--color-neutral);
    opacity: 0.7;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(107, 114, 128, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s ease-in-out infinite;
    z-index: 2;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-percentage {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 45px;
    text-align: right;
}





/* Responsive */
@media (max-width: 768px) {
    .main-message {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        min-width: auto;
        max-width: 90vw;
        text-align: center;
    }

    .contact-buttons {
        gap: 1rem;
    }

    .icon-button {
        width: 45px;
        height: 45px;
        padding: 0.65rem;
    }

    .icon-button .button-icon {
        width: 20px;
        height: 20px;
    }

    .language-button .lang-text {
        font-size: 0.65rem;
    }

    .progress-container {
        max-width: 90%;
    }

    .project-steps {
        gap: 0.3rem;
    }

    .step {
        font-size: 0.7rem;
        flex-direction: row;
        justify-content: flex-start;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        padding: 5px;
        flex-shrink: 0;
    }

    .step-text {
        text-align: left;
    }

    .progress-percentage {
        font-size: 0.9rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {

    #shape{
        background: rgba(255, 255, 255, 0.01);
        backdrop-filter: blur(5px);
    }

    h1 {
        font-size: 1.3rem;
        min-width: auto;
        max-width: 95vw;
        min-height: 82px;
        margin: 0;
    }

    .main-message {
        padding: 1.5rem 1rem;
    }

    .contact-buttons {
        gap: 1rem;
    }

    .icon-button {
        width: 45px;
        height: 45px;
        padding: 0.65rem;
    }

    .icon-button .button-icon {
        width: 20px;
        height: 20px;
    }

    .language-button .lang-text {
        font-size: 0.6rem;
    }

    .progress-container {
        max-width: 95%;
        margin: 1.5rem auto;
    }

    .project-steps {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.6rem;
        font-size: 0.75rem;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        padding: 5px;
        flex-shrink: 0;
    }

    .step-text {
        text-align: left;
    }

    .progress-percentage {
        font-size: 0.85rem;
    }
}