@import "./material.css";

* {
    box-sizing: border-box;

}

::selection {
    background: var(--primary);
    color: var(--accent);
    border-radius: 8px;
}

body {
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;

}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    position: sticky;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(50px) saturate(70%);
    margin: 0rem var(--margin-body);
    margin-bottom: 1rem !important;
    border-radius: 16px;
}

header div

/* :has(img) */
    {
    display: flex;
    align-items: center;
}

header img {
    height: 48px;
}

header a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    position: relative;
}

header a.fill {
    background-color: var(--secondary);
    color: var(--text);
    padding: .5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 1rem;
    transition: all .3s ease;
}

header a.fill:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

header a.fill::after {
    content: none !important;
}

.menu-desktop {
    position: absolute;
    left: 50%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    transform: translateX(-50%);
    gap: 32px;
}

.title-page {
    width: calc(100% - 2 * var(--margin-body));
    text-align: center;
    font-size: 4rem;
    margin: 0 auto;
}

.highlight {
    background-color: var(--tag);
    color: var(--text);
    padding: 0.3rem 0.6rem;
    border-bottom: 2px solid color-mix(in srgb, var(--tag), var(--darker));
    white-space: nowrap;
}

.account-shortcut {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--secondary);
    color: var(--text);
    padding: .5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 1rem;
    cursor: pointer;
    transition: all .3s ease;
}

.account-shortcut:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.account-shortcut::after {
    content: none !important;
}

.account-shortcut img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.account-shortcut span {
    font-weight: 500;
}

.hero {
    color: var(--secondary);
    border-radius: 2rem;
    margin: var(--margin-body);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    /*overflow: hidden;*/
    /*background-image: url(../img/website/bannerHero.png);
    background-position: bottom;
    background-size: 100%;
    background-repeat: no-repeat;*/
    min-height: 60vh;
    text-shadow: var(--shadow);

    --color: color-mix(in srgb, var(--primary), var(--darker));
    background: linear-gradient(45deg, var(--color) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, var(--color) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, var(--color) 75%) -50px 0,
        linear-gradient(-45deg, transparent 75%, var(--color) 75%) -50px 0;
    /*     background-color: #e5e5f7;
 */
    background-size: 10px 40px;
    background-color: var(--primary);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;

    border: var(--outline);

}

.hero::before {
    --overSize: calc(var(--margin-body) / 4);
    /*content: "";*/
    position: absolute;
    top: calc(var(--overSize) * -1);
    left: calc(var(--overSize) * -1);
    width: calc(100% + var(--overSize) * 2);
    height: calc(100% + var(--overSize) * 2);
    background: linear-gradient(-89.999996185913deg, #f54f4f, #ff8041 33.65384638309479%, #edc74a, #2e2af6);
    filter: blur(11.5px);
    border-radius: 2rem;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.hero button,
.hero a {
    padding: 0.6rem 1.5rem !important;
    background: var(--button) !important;
    color: var(--text) !important;
    border: none !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    cursor: pointer;
    text-shadow: none !important;
}

.hero button.second,
.hero a.second {
    background: var(--secondary);
    color: var(--text);
}

.section {
    background: var(--secondary);
    border-radius: 1rem;
    margin: var(--margin-body);
    padding: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    border: var(--outline);
}

.section div {
    flex: 1 1 360px;
}

.section img {
    height: 180px;
}

.section .tag {
    background: var(--tag);
    color: var(--text);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.section .tag.good {
    background-color: var(--status-good);
}

.section .tag.warning {
    background-color: var(--status-warning);
}

.section .tag.bad {
    background-color: var(--status-bad);
}

.section p {
    margin-bottom: 1rem;
    font-size: var(--font-size);
}

.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    margin-top: 1rem;
    margin: var(--margin-body);
    /* background: var(--primary);
    border-radius: 1rem; */
}

.buttons button {
    background: var(--primary);
    color: var(--secondary);
    padding: 2rem !important;
    flex: 1;
}

.buttons button.second {
    background: var(--secondary);
    color: var(--primary);
}

.subtitle {
    margin-top: 1rem;
    margin: var(--margin-body);
    color: var(--subtitle);
}




.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
    margin: var(--margin-body);
}

.card {
    flex: 1 1 250px;
    background: var(--secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    font-size: var(--font-size);
    border: var(--outline);
}

.card .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.card span {
    font-weight: bold;
    color: var(--primary);
    background: var(--accent);
    border-radius: 50%;
    padding: 0.5rem 0.75rem;
    margin-right: 0.5rem;
    aspect-ratio: 1/1;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.card span.good {
    background-color: var(--status-good);
}

.card span.warning {
    background-color: var(--status-warning);
}

.card span.bad {
    background-color: var(--status-bad);
}

.card:has(img) {
    flex: 1 1 350px;
    padding: 0;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.grow-section {
    background: var(--secondary);
    border-radius: 1rem;
    margin: var(--margin-body);
    padding: 2rem;
    text-align: left;
    border: var(--outline);
}

.grow-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.grow-section p,
.grow-section div {
    display: initial;
    margin-bottom: 1rem;
    font-size: var(--font-size);
}

section .button,
section .a,
section > button
section:not(.subtitle):not(.footer) > a:not(.link):not(.social-link) {
    background: var(--primary);
    color: var(--secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: var(--font-size);
    font-family: var(--font-family-text);
    text-decoration: none;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: var(--margin-body);
    flex-wrap: wrap;
    /*border: 1px solid #ddd;
    border-bottom: none;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;*/
}

.footer .left,
.footer .right {
    flex: 1 1 250px;
}

.footer .left {
    background: var(--primary);
    color: var(--secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-right: 1rem;
}

.footer button,
.footer .left a {
    margin-top: 1rem;
    background: var(--button);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
}

.footer .right {
    position: relative;
    background: var(--secondary);
    border-radius: 1rem;

    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--subtitle);
    text-align: right;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.footer .right .title {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;

    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);

}

.footer .right a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

    transition: all .3s ease;
    position: relative;
}

.footer .right a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    background: var(--primary);
    transition: all .3s ease;
}

.footer .right a:hover::after {
    transform: scaleX(1);
}

/* ********************************************************** */
/* ********************************************************** */
/*                     INPUT                                  */
/* ********************************************************** */

.input {
    color: var(--text);
    width: fit-content;
    position: relative;
    margin: -.3rem;
    min-width: 500px;
    max-width: calc(100% + 2 * .3rem);
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-height: 4rem;
}

.input:has(span) {
    min-width: fit-content;
}

.input:has(span) label {
    display: none;
}

.input span {
    /* aspect-ratio: 1/1;
    height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--secondary);
    width: 4rem;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.input label {
    position: absolute;
    top: 2.1rem;
    left: 1.5rem;
    transform: translateY(-50%);

    font-size: var(--font-size);
    pointer-events: none;
    transition: all .3s ease;
    background-color: var(--surface);

    padding: 0px 8px;
    color: var(--subtitle)
}

.input input,
.input textarea,
.input select {
    background-color: var(--surface);
    color: var(--text);
    border: none;
    width: fit-content;
    /* min-width: 100%; */
    /* max-width: 100%; */
    flex: 1;
    padding: 1.3rem;
    border-radius: 1rem;
    font-size: var(--font-size);
    outline: none;
    outline: 3px solid var(--subtitle);
    outline-offset: -.5rem;
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    field-sizing: content;
}

.input:has(textarea) {
    min-width: calc(100% + 2 * .3rem);
    resize: vertical;
}

.input input[type="number"] {
    text-align: center;
}

@media screen and (max-width: 600px) {
    .input {
        min-width: calc(100% + 2 * .3rem);
    }

    .input:has(span) {
        width: 100%;
        margin: 0;
    }
}

.input:has(input:required) label:after,
.input:has(textarea:required) label:after,
.input:has(select:required) label:after {
    content: "*";
    color: red;
}

.input input:focus,
.input textarea:focus,
.input select:focus {
    outline-color: var(--primary);
    /*outline-offset: -.9rem; */
}

.input:has(input:focus) label,
.input:has(input:not(:placeholder-shown)) label,
.input:has(textarea:focus) label,
.input:has(textarea:not(:placeholder-shown)) label,
.input:has(select:focus) label,
.input:has(select:not(:placeholder-shown)) label {
    top: -.3rem;
    transform: translateY(0%);
}

.input input::placeholder,
.input textarea::placeholder,
.input select::placeholder {
    color: transparent;
}

.input:has(input:focus) label,
.input:has(textarea:focus) label,
.input:has(select:focus) label {
    color: var(--primary);
}

a.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

    transition: all .3s ease;
    position: relative;
}

a.link::after,
header a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    background: var(--primary);
    transition: all .3s ease;
}

a.link:hover::after,
header a:hover::after {
    transform: scaleX(1);
}

header a::after {
    background: var(--text);
}

@media (max-width: 768px) {
    :root {
        --margin-body: 1rem;
    }

    .hero {
        min-height: fit-content;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cards {
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer .right {
        margin-top: 1rem;
        text-align: center;
    }

    .footer .left {
        margin-right: 0rem;
        text-align: start;
    }
}



/* ********************************************************** */
/* ********************************************************** */
/*              MENU                                          */
/* ********************************************************** */


.menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    cursor: pointer;
    border-radius: 50%;
    fill: var(--text);
    height: 48px;
    width: 48px;
    padding: 10px;
    margin-left: 1rem;
    z-index: 101;
    transition: all .4s ease-in;
}

/*.menu.show {
    position: absolute;
    top: 1rem;
    right: 2rem;
    fill: var(--secondary);
}

.menu svg {
    display: none;
}

.menu:not(.show) svg:first-child {
    display: block;
}

.menu.show svg:last-child {
    display: block;
}*/

.header-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0rem;
    left: 0rem;
    width: calc(100% - var(--margin-body) * 2);
    height: 0;
    padding: 0 1rem;
    /* box-shadow: var(--shadow); */
    /* background-color: var(--primary); */
    backdrop-filter: blur(50px) saturate(70%);
    color: var(--text);
    z-index: 100;
    border-radius: 16px;

    margin: var(--margin-body);

    /* transform: scaleY(0);
    transform-origin: top; */
    transition: all .3s ease-in;
    overflow: hidden;
}

.header-menu.show {
    /* transform: scaleY(1); */
    padding: 1rem;
    height: calc(100% - var(--margin-body) * 2);
}

.header-menu div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-menu .close {
    cursor: pointer;
    height: 40px;
    width: 40px;
    fill: var(--text);
}

.header-menu h1 {
    margin: 0;
}

.header-menu hr {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    margin: 1rem 0;
    border: none;
    border-radius: 1px;
}

.header-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    text-decoration: none;
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    transition: all .3s ease;
    border-radius: 1rem;
    fill: var(--text);
}

.header-menu a svg {
    height: 2rem;
    width: 2rem;
}

.header-menu a:hover {
    /*     color: var(--primary);
 */
    background-color: color-mix(in srgb, var(--text), rgba(0, 0, 0, 0) 80%);
}

.header-menu .subtitle {
    margin: 0;
    color: var(--text);
    cursor: default;
    user-select: none;
    opacity: 50%;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: center;
}

.menu-desktop a {
    margin: 0;
}


@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu {
        display: flex;
    }

    header {
        margin: 0rem calc(var(--margin-body));
    }
}






.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: var(--secondary);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 1rem;
    width: 800px;
    max-width: 90dvw;

    min-height: 400px;
    max-height: 90dvh;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}

.popup-body {
    background-color: var(--surface);
    color: var(--text);
    border-radius: 1rem;
    flex: 1;
    padding: 1rem;
}

.popup-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.popup-footer button {
    background-color: var(--button);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--font-size);
    flex: 1;
}

.popup-footer button:last-child {
    background-color: var(--primary);
    color: var(--secondary);
}

.project-hero {
    animation: image-appear ease-out both;
    animation-timeline: view();
    animation-range: entry 0% contain 0%;
}

@media screen and (max-width: 768px) {
    .project-hero {
        animation: none;
    }
}

@keyframes image-appear {
    from {
        filter: saturate(0) contrast(4) brightness(.1) blur(3px);
        opacity: 0;
        scale: .85;
        translate: 0 15%;
    }
}




.project-hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    margin: var(--margin-body);
    padding: var(--margin-body);
    background-color: var(--secondary);
    border-radius: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: var(--outline);
}

.project-hero h2 {
    font-family: var(--font-family-headings);
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 0;
    color: var(--text);
    /* Flat design color */
}

.project-hero .project-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-around;
}

.project-hero .project-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
}

/* .project-hero .project-buttons button {
    background-color: var(--primary);
    color: var(--text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
} */

/* .project-hero .project-buttons button:hover {
    background-color: var(--accent);
} */

.project-hero .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(32px) brightness(1.1);
    z-index: -1;
    max-width: none !important;
    display: none;
}

.project-hero img:not(.background) {
    height: auto;
    border-radius: 1rem;
    /*             box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

@media (min-width: 768px) {
    .project-hero {
        flex-direction: row;
        align-items: center;
        text-align: end;
        gap: 4rem;
        margin-bottom: 4rem;
        max-height: 80vh;
        /* Ajout d'espace entre les sections */
    }

    .project-hero img {
        height: 100% !important;
        object-fit: contain;
    }

    .project-hero:nth-of-type(even) {
        flex-direction: row-reverse;
        text-align: start;
    }

    .project-hero .project-content {
        flex: 1;
    }

    .project-hero img {
        flex: 1;
        max-width: 50%;
    }
}

@media (prefers-color-scheme: dark) {
    .project-hero .background {
        filter: blur(32px) brightness(0.4);
    }
}

@media (prefers-color-scheme: dark) {
    .dark-invert {
        filter: invert(1);
    }
}





.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-card {
    background-color: var(--primary);
    border-radius: 2rem;
    padding: 1.25rem;
    flex: 1;
    height: 116px;
    border: var(--outline);
    text-decoration: none;
    color: var(--secondary);

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.social-card img,
.social-card svg {
    height: 100%;
    fill: var(--secondary);
}

.social-card-info {
    display: flex;
    flex-direction: column;
}

.social-platform {
    font-weight: 600;
    font-size: 1.3rem;
}

.social-username {
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-link {
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 2rem;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.social-link:hover{
    opacity: 0.8;
}