/* === GENERAL === */
@keyframes shadowColor {
    0% { box-shadow: 3px 3px 30px rgb(47, 255, 0); }
    25% { box-shadow: 3px 3px 60px rgb(0, 255, 255); }
    50% { box-shadow: 3px 3px 30px rgb(255, 0, 255); }
    75% { box-shadow: 3px 3px 60px rgb(255, 255, 0); }
    100% { box-shadow: 3px 3px 10px rgb(47, 255, 0); }
}

/* === BACKGROUND WAVE (Three.js) === */
#bg-wave {
    position: fixed;
    inset: 0;
    z-index: 0;          /* arrière-plan */
    pointer-events: none; /* le canvas ne bloque pas les clics */
}

/* Le canvas généré par Three.js */
#bg-wave canvas {
    width: 100%;
    height: 100%;
    display: block;
}

body {
margin: 0;
font-family: 'Inter', sans-serif;
color: #c9d1d9;

}

header {
    text-align: center;
    padding: 60px 20px 20px;
}

p {
margin: 0;
padding: 0;
}

/* === NAVBAR === */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 40px;
position: sticky;
top: 0;
z-index: 1000;
}

.navbar .logo {
font-size: 24px;
font-weight: bold;
color: #58a6ff;
font-family: 'Fira Code', monospace;
letter-spacing: 0.5px;
text-shadow: 0 0 5px rgba(88, 166, 255, 0.4), 0 0 10px rgba(88, 166, 255, 0.2);
transition: text-shadow 0.3s ease;
}

.navbar .logo:hover {
text-shadow: 0 0 8px rgba(88, 166, 255, 0.7), 0 0 12px rgba(88, 166, 255, 0.5);
}

.navbar .nav-links {
list-style: none;
display: flex;
gap: 30px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #c9d1d9;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.nav-links li a i {
    margin-right: 6px;
}

.navbar .nav-links li a i {
    font-size: 20px;
    transition: transform 0.2s, color 0.3s;
}

.navbar .nav-links li a:hover i {
    transform: scale(1.2);
    color: #58a6ff;
}

.navbar .nav-links li a:hover {
    color: #58a6ff;
}

/* Contenu principal au-dessus */
#main-content {
    position: relative;
    z-index: 5;
}


/* === FOOTER === */
footer {
text-align: center;
padding: 37px 20px;
color: #f1f4f7;
font-size: 0.9em;
position: relative;
z-index: 1000;
}

/* === HERO GLOBAL === */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

/* PHOTO */
.hero-img img {
    width: 220px;
    border-radius: 50%;
    border: 3px solid #58a6ff;
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s;
    animation: shadowColor 3s ease-in-out infinite;
}

.hero-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(88, 166, 255, 0.7);
}

/* TEXTE */
.hero-text h1 {
    font-size: 3rem;
    margin-top: 25px;
}

.hero-text h1 span {
    color: #58a6ff;
}

.role {
    color: #eceff1;
    text-decoration: underline;
    margin-bottom: 20px;
    font-size: 1.3em;
}

/* INTRO */

.intro {
    margin-top: 20px;
    max-width: 650px;
    font-size: 1.1em;
    color: #f4f5f7;
    line-height: 1.6;
    max-width: 700px;
    margin: 20px auto 25px;
}

/* SCROLL DOWN INDICATOR */
.scroll-down {
    margin-top: 40px;
    font-size: 1.7rem;
    animation: bounce 1.5s infinite;
    color: #58a6ff;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* === HERO BUTTONS === */
.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Focus accessibilité cohérent avec le thème */
.hero-buttons:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .navbar .nav-links li a {
    font-size: 0;
    }

    .navbar .nav-links li a i {
    font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
    font-size: 2.2em;
    }
    .hero-img img {
    width: 130px;
    }
    .btn-primary,
    .btn-secondary {
    width: 100%;
    text-align: center;
    }
}

/* === EMERALD BUTTONS (HERO) === */

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Base emerald button */
.emerald-button {
    position: relative;
    z-index: 5;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0.8em 1.3em;
    padding-right: 3.2em;
    background: transparent;
    color: #f9fafc;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    filter: brightness(0.95);
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Emerald animated border */
.emerald-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        90deg,
        #0d1b2a,     /* bleu très sombre */
        #1f6feb,     /* bleu foncé */
        #58a6ff,     /* bleu principal */
        #8ecbff,     /* bleu clair */
        #58a6ff,
        #1f6feb,
        #0d1b2a
    );
    background-size: 300% 100%;
    border-radius: 6px;
    z-index: -1;
    padding: 2px;
    box-sizing: border-box;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;

    transition: background-position 0.8s ease;
}

/* Hover border animation */
.emerald-button:hover::before {
    background-position: 100% 0;
}

/* Arrow */
.emerald-button::after {
    content: "➔";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1em;
    display: flex;
    align-items: center;
    color: #8ecbff;
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

/* Arrow animation */
.emerald-button:hover::after {
    transform: translateX(4px);
    color: #58a6ff;
}

/* Click feedback */
.emerald-button:active {
    transform: translateY(2px) scale(0.97);
    filter: brightness(0.85);
}