:root {
    --primary: #C41E1E;
    --dark: #050505;
    --white: #F5F5F5;
}

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

::selection {
  background-color: var(--primary); /* Couleur de fond */
  color: #ffffff;             /* Couleur du texte */
}

::-moz-selection {
  background-color: var(--primary);
  color: #ffffff;
}

body {
    background: #050505;
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 30, 30, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 30, .08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.glow {
    position: fixed;
    left: 50%;
    top: 0;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(196, 30, 30, .25), transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

header {
    text-align: center;
    padding: 30px;
}

.logo {
    width: 600px;
    padding-top: 2%;
}

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 8%;
    gap: 3rem;
}

.badge {
    border: 1px solid var(--primary);
    padding: .7rem 1rem;
    border-radius: 999px;
    letter-spacing: 1.5px;
}

h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    margin: 1rem 0;
}

.accent {
    color: var(--primary);
}

.fields {
    letter-spacing: 1.5px;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    letter-spacing: 2px;
}

.btn {
    text-decoration: none;
    color: #fff;
    border: 1px solid #333;
    padding: 1rem 1.4rem;
    border-radius: 50px;
}

.primary {
    background: var(--primary);
    transition: all .5s ease;
}

.primary:hover {
    background: transparent;
    border: solid 1px var(--primary);
    cursor: pointer;
}

.triangle-core {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.triangle-core img {
    width: 100px;
    z-index: 2;
}

.node {
    position: absolute;
    background: #111;
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 16px;
    z-index: 2;
    box-shadow: 0 0 20px rgba(196, 30, 30, .35);
}

.top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.left {
    bottom: 40px;
    left: 30px;
}

.right {
    bottom: 40px;
    right: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 4rem 8%;
}

.card {
    padding: 2rem;
    background: #0f0f0f;
    border: 1px solid rgba(196, 30, 30, .2);
    border-radius: 20px;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
}

footer small {
    color: var(--white);
    font-size: .9rem;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: -12%;
    }

    h1 {
        margin: 2.5rem 0 0rem 0;
        font-size: clamp(1.7rem, 7.5vw, 5rem);
    }

    .fields {
        font-size: 1rem;
        display: none;
    }

    .logo {
        width: 250px;
        padding-top: 7%;
    }

    .actions {
        justify-content: center;
    }

    .triangle-core {
        width: 320px;
        height: 200px;
        /* padding-top: 5%; */
    }

    .triangle-core img {
        width: 30px;
        z-index: 2;
    }

    footer {
        padding: 2rem 1rem 0 1rem;
        margin-top: -15%;
    }
}