@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

body {
    font-family: "Space Mono", monospace;
    background-color: #007fa8;
    min-height: 100dvh;
    background: linear-gradient(45deg, #007fa8, #424977);
    color: #eed883;
    overflow-x: hidden;
}

header {
    display: grid;
    grid-template-columns: 1fr 15rem 1fr;
    grid-template-rows: 10rem 10rem;
    background-color: #170304;
    margin-bottom: -10rem;
    animation: pulse infinite 5s ease-in-out;
    padding-top: 1rem;

    .circle {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 15rem;
        height: 15rem;
        align-self: center;
        border-radius: 100%;
        overflow: hidden;
        outline: 20px solid #003749;
        outline-offset: 10px;
        border: 4px solid #000;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    h1 {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
        margin-top: -5rem;
        transform: translateY(65%);
        justify-self: end;
        max-width: 10ch;
        line-height: 1;
        font-size: 2.5rem;
        font-weight: 500;
        text-shadow: 2px 2px 0px #170304;
        text-transform: uppercase;
    }
}

.text {
    grid-column: 3;
    max-width: 80ch;
    z-index: 1;
    border-left: 1px solid #fff4;
    padding-inline: 1rem;
    margin-block: 1rem;
    font-size: .95rem;
    /* background-color: #17030455; */

    em {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    p {
        line-height: 1.4;
    }

    p+p {
        margin-top: .75em;
    }
}

@keyframes pulse {
    50% {
        background-color: #01172c;
    }
}

main {
    padding-top: 5.5rem;
    background: linear-gradient(to bottom, #01172c, #003749);
    display: grid;
    grid-template-columns: 1fr 300px 3fr 1fr;
    gap: 1rem;

}

.pictures {
    grid-row: 1;
    grid-column: 1 / 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    align-items: start;
    justify-content: start;
    gap: .5rem;
    height: max-content;
    margin: 1rem;


    .div {
        flex: 1;
        width: 100%;
        outline: 2px solid #eed88399;
        outline-offset: -6px;
        border-top-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        overflow: hidden;
    }

    img {
        width: 100%;
        display: block;
        object-fit: contain;
    }
}

.integration-helloasso {
    margin-top: 1rem;
    grid-column: 2;
}

hr {
    grid-column: 1 / 5;
    border: none;
    background: linear-gradient(to top, #01172c, transparent);
    height: 15rem;
    margin-top: -15rem;
    transform: translateY(1rem);
}

.youtube {
    grid-column: 1 / 5;
    height: 600px;
    width: 100%;
}


.social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: .5rem;
    z-index: 1;
    grid-column: 3;
    grid-row: 1;
    justify-self: start;

    a {
        color: #eed883;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: all .2s;

        &:hover,
        &:focus-visible {
            transform: translateY(-3px);
        }
    }

    margin: 1rem;
    margin-top: 10rem;

    span {
        display: none;
    }
}

.far-away {
    box-shadow: 0px 0px 20px #0009 inset;
    grid-column: 1 / -1;
    background-color: #01172c;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 4rem 15rem;
    gap: 1.5rem;
    overflow: hidden;

    img {
        grid-column: 1;
        grid-row: 1 / 3;
        height: 100%;
        justify-self: end;

        filter: drop-shadow(0px 0px 100px #fff9);
    }

    p {
        align-self: end;
        color: white;
        display: flex;
        flex-direction: column;
        line-height: 1.3;

        em {
            font-size: 1.2rem;
            color: #eed883;
        }
    }

    a {
        color: white;
        text-decoration: none;
        padding: .7rem 1.5rem;
        border: 2px solid;
        width: max-content;
        height: max-content;
        border-top-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        transition: all .2s;

        &:hover,
        &:focus-visible {
            background-color: #0009;
        }
    }
}


@media (max-width: 1200px) {
    .pictures {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    header {
        display: flex;
        flex-direction: column;

        .social {
            margin: 4rem;
            margin-right: auto;
            justify-content: center;
        }

    }

    main {
        display: flex;
        flex-direction: column;
    }

    .pictures {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-block: 1rem;
    }

    .integration-helloasso {
        height: 30rem;
        margin-top: -1rem;
        padding-top: 1rem;
        background-color: #17030455;
    }

    .text {
        border: none;
    }

    .far-away {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        justify-content: center;
        align-items: center;

        >* {
            grid-column: 2;
        }

        img {
            max-width: 20rem;
            align-self: start;
            margin-right: auto;
        }

        p {
            align-self: start;
            grid-column: 1 / 3;
        }

        a {
            grid-column: 1 / 3;
        }
    }
}


footer {
    padding: 1rem;
    color: #eed883;
    grid-column: 1 / -1;
    padding-left: calc(5dvw + 2rem);

    em {
        display: block;
        margin-bottom: .5rem;
    }

    ul {
        list-style: none;
        margin-top: .75rem;

        li {
            margin-bottom: .3rem;
        }
    }
}

.sparkle {
    background-color: #eed883;
    height: 8px;
    width: 8px;
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0px 0px 5px #fff9);
    border-radius: 100%;
    animation: sparkle infinite 10s ease-in-out;
    transition: all 12s;
}

@keyframes sparkle {
    40% {
        opacity: 0;
    }
    60% {
        scale: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle {
    display: none;
  }
}