@font-face {
    font-family: "Nohemi";
    src: url("src/fonts/Nohemi-VF.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Nohemi", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: #e0e0e0;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        linear-gradient(
            45deg,
            rgba(200, 200, 200, 0.02) 25%,
            transparent 25%,
            transparent 75%,
            rgba(200, 200, 200, 0.02) 75%
        ),
        linear-gradient(
                45deg,
                rgba(200, 200, 200, 0.01) 25%,
                transparent 25%,
                transparent 75%,
                rgba(200, 200, 200, 0.01) 75%
            )
            2px 2px;
    background-size: 4px 4px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

main {
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: #bb86fc;
}

a:hover {
    color: #ffffff;
}

.btn-principal {
    font-family: "Nohemi", Arial, sans-serif;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    background-color: #ffffff;
    color: #1e1e1e;
    border: 1px solid #ffffff;
    transition: all 0.4s ease;
}

.btn-principal:hover {
    background-image: linear-gradient(to right, #bb86fc, #8e44ad);
    background-color: transparent;
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}

.main-header {
    width: 100%;
    padding: 15px 25px;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand a {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #bb86fc;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links ul li a {
    font-size: 1em;
    font-weight: 500;
    color: #e0e0e0;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links ul li a:hover {
    color: #bb86fc;
}

.nav-links ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #bb86fc;
    transition: width 0.3s ease;
}

.nav-links ul li a:hover::after {
    width: 100%;
}

.nav-button {
    padding: 8px 18px;
    border: 1px solid #bb86fc;
    border-radius: 20px;
    color: #bb86fc;
    background-color: transparent;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.nav-button:hover {
    background-color: #bb86fc;
    color: #121212;
}

.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user-info span {
    color: #e0e0e0;
    font-weight: 500;
}

.section-heros {
    background-color: #000000;
    background-image: radial-gradient(
        ellipse at 50% 25%,
        #404040 0%,
        #181818 35%,
        #000000 75%
    );
    color: #ffffff;
    min-height: 93vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 0 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.heros-contenu-haut {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    gap: 60px;
}

.heros-colonne-gauche {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.heros-colonne-droite {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.heros-texte {
    text-align: left;
}

.heros-nom {
    font-size: 4em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.nom-surligne {
    background-image: linear-gradient(to right, #bb86fc, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.heros-role {
    font-size: 2em;
    font-weight: 300;
    color: #cccccc;
    margin: 0;
}

#animation-terminal {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.terminal-entete {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-controles {
    display: flex;
}

.terminal-controles .point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.point.rouge {
    background-color: #ff5f57;
}
.point.jaune {
    background-color: #febb2e;
}
.point.vert {
    background-color: #28c840;
}

#terminal-titre {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85em;
    color: #bbbbbb;
    margin-left: auto;
    padding-right: 5px;
}

#terminal-contenu {
    padding: 15px 20px 20px 20px;
    font-family: "Courier New", Courier, monospace;
    min-height: 250px;
}

.code-ligne {
    display: block;
    margin-bottom: 6px;
    font-size: 1em;
    white-space: pre;
    border-right: 0.15em solid #ccc;
    overflow: hidden;
    animation: curseur-clignotant 0.75s step-end infinite;
}

@keyframes curseur-clignotant {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #ccc;
    }
}

.texte-final p {
    font-family: "Nohemi", Arial, sans-serif;
    color: #e8e8e8;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 25px;
    white-space: normal;
}

.texte-final a.btn-principal {
    opacity: 1;
    cursor: pointer;
}

.conteneur-vagues {
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.vagues-svg {
    position: relative;
    width: 100%;
    height: 100px;
}

.parallax-vagues > use {
    animation: mouvement-infini 35s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax-vagues > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 15s;
}

.parallax-vagues > use:nth-child(2) {
    animation-delay: -5s;
    animation-duration: 25s;
}

@keyframes mouvement-infini {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.section-a-propos {
    padding: 80px 20px;
    background-color: #121212;
    position: relative;
    z-index: 1;
}

.a-propos-contenu {
    display: flex;
    align-items: center;
    gap: 70px;
    max-width: 1000px;
    margin: 0 auto;
}

.a-propos-photo {
    flex-basis: 300px;
    flex-shrink: 0;
}

.a-propos-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
}

.a-propos-texte {
    flex: 1;
    text-align: left;
}

.a-propos-texte h2 {
    font-size: 2.8em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.a-propos-texte p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #cccccc;
}

.a-propos-texte .btn-principal {
    margin-top: 15px;
}

.section-projets-recents {
    background-color: #0f0f0f;
    padding: 80px 20px 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.titre-section {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #e0e0e0;
    font-weight: 600;
}

.grille-projets {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.carte-projet {
    background-color: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid #333;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    width: 320px;
    flex-shrink: 0;
}

.carte-projet:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.carte-projet img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.carte-titre {
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    background-color: #1c1c1c;
    position: relative;
    z-index: 1;
    background-image: linear-gradient(to right, #bb86fc, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.carte-superposition {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
}

.carte-badge {
    background-color: rgba(187, 134, 252, 0.9);
    color: #121212;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.message-info {
    color: #888;
}

.main-footer {
    padding: 40px;
    background-color: #121212;
    border-top: 1px solid #222222;
    color: #888888;
}

.footer-cta {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #222222;
}

.footer-cta h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
}

.footer-cta .btn-principal {
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.9em;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social-links a {
    color: #888888;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-social-links a:hover {
    color: #bb86fc;
    transform: translateY(-3px);
}

.footer-social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 20px;
    }
    .nav-links ul {
        display: none;
    }
    .hero-section {
        min-height: 85vh;
    }
    .heros-contenu-haut {
        flex-direction: column;
        gap: 30px;
    }
    .heros-nom {
        font-size: 2.8em;
    }
    .heros-role {
        font-size: 1.6em;
    }
    .conteneur-vagues {
        height: 60px;
    }
    .vagues-svg {
        height: 60px;
    }
    .a-propos-contenu {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .a-propos-photo {
        max-width: 250px;
        width: 70%;
    }
    .a-propos-texte {
        text-align: center;
    }
    .a-propos-texte h2 {
        font-size: 2em;
    }
    .a-propos-texte p {
        font-size: 1em;
        text-align: left;
    }
    .btn-principal {
        font-size: 0.85em;
        padding: 7px 20px;
    }
    .section-projets-recents {
        padding: 40px 15px;
    }
    .titre-section {
        font-size: 1.8em;
    }
    .grille-projets {
        gap: 15px;
    }
    .carte-projet {
        width: 100%;
    }
    .footer-content {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }
}
