/* ########################################## */
/* CSS TOKENS ############################### */
/* ########################################## */
:root {
    --large-font-size: 46px;
    --maxw: 1200px;
    --gutter: 32px;
    --space: 56px;
    --icon: 92px;
    --color-brand-100: #ececff;
    --color-brand-200: #d2d1ff;
    --color-brand-300: #b1afff;
    --color-brand-400: #9187ff;
    --color-brand-500: #8356ff;
    --color-brand-600: #6932ff;
    --color-brand-700: #4932a7;
    --color-brand-800: #33287c;
    --color-brand-900: #201a51;
    --color-neutralgrey-100: #eef1fa;
    --color-neutralgrey-200: #dadeee;
    --color-neutralgrey-300: #c1c8de;
    --color-neutralgrey-400: #a7b0cb;
    --color-neutralgrey-500: #828caa;
    --color-neutralgrey-600: #707890;
    --color-neutralgrey-700: #5a6073;
    --color-neutralgrey-800: #3f4552;
    --color-neutralgrey-900: #252831;
}

/* ########################################## */
/* HTML BASE ################################ */
/* ########################################## */
html,
body {
    scroll-behavior: smooth;
    overflow-x: clip;
    margin: 0;
    padding: 0;
    font: 16px/1.55 Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-neutralgrey-800);
    line-height: 1.1em;
    text-wrap: balance;
}

h2 {
    font-size: var(--large-font-size);
    letter-spacing: -0.027em;
    line-height: 0.95em;
    margin: 0 0 .5em;
}

h4 {
    margin: 0;
    padding: 0 0 20px;
    font-size: 23px;
    color: var(--color-neutralgrey-800);
    letter-spacing: 0.02em;
    line-height: 1.15em;
}

p,
li {
    font-size: 19px;
    letter-spacing: 0.02em;
    line-height: 1.2em;
    margin: 0 0 .5em;
}

/* ########################################## */
/* HTML HEADER ############################## */
/* ########################################## */
/* Header principal */
header {
    position: fixed;
    top: 0;
    left: 16px;
    right: 16px;
    min-height: 40px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--color-brand-600);

    padding-right: 16px;

    border-bottom: 1px solid var(--color-brand-600);
    background: transparent;
    /* le fond est géré par .headergradient */
}

/* Bande de dégradé indépendante */
.headergradient {
    position: fixed;
    top: 0;
    left: -20px;
    /* dépasse 20px à gauche */
    width: calc(100% + 40px);
    /* +20px à gauche et à droite */
    height: 90px;
    /* hauteur du header + 20px de fondu */

    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.2) 70%,
            rgba(255, 255, 255, 0.1) 80%,
            rgba(255, 255, 255, 0.04) 90%,
            rgba(255, 255, 255, 0) 100%);

    pointer-events: none;
    /* ne bloque pas les clics */
    z-index: 999;
    /* sous le header */
}

body {
    padding-top: 60px;
}

header a {
    color: var(--color-brand-600);
    text-decoration: none;
    margin-left: 16px;
}

header a:hover {
    color: var(--color-neutralgrey-800);
}

header .logotype {
    width: 160px;
}

header .spacer {
    flex: 1;
}

/* ########################################## */
/* HTML FOOTER ############################## */
/* ########################################## */
footer {
    z-index: 2;
    border-top: 1px solid var(--color-neutralgrey-300);
    font-size: 14px;
    padding: 8px;
    color: var(--color-brand-600);
    text-align: center;
}

footer span {
    margin-right: 16px;
}

footer a {
    color: var(--color-brand-600);
    text-decoration: none;
    margin-left: 16px;
}

footer a:hover {
    color: var(--color-neutralgrey-800);
}

/* ########################################## */
/* SECTION BASE ############################# */
/* ########################################## */
.section {
    max-width: 90vw;
    margin: auto auto;
    position: relative;
    overflow: visible;
    padding-block: var(--space);
}

.section__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    max-width: var(--maxw);
    margin: auto;
    padding-inline: var(--gutter);
}

/* Bloc Texte + Icone à gauche */
.section__content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    max-width: 40%;
    z-index: 1;
}

/* icone */
.section__icon {
    width: var(--icon);
    height: var(--icon);
    min-width: var(--icon);
    margin: -10px 5px 0 -14px;
}

/* titre */
.section__title {
    z-index: 3;
    color: var(--color-neutralgrey-900);
    max-width: 33vw;
    margin: 0 0 8px;
}

/* texte */
.section__text p {
    z-index: 2;
    margin: 0 0 10px;
}

/* listes à puces */
.section__text ul {
    margin: 0;
    padding: 0;
}

.section__text ul li {
    list-style: none;
    margin: 0 0 10px;
}

.section__text ul li::before {
    color: var(--color-brand-600);
    content: "• ";
    font-weight: bold;
}

/* liste à puces de l'intro */
.section__text ul.intro b {
    color: var(--color-brand-600);
}

.section__text ul.intro li::before {
    content: "⮕ ";
}

/* Bloc Media (Image) à droite */
.section__media {
    position: absolute;
    right: var(--gutter);
    transform: translateX(-33%)translateY(12%);
    max-width: 45%;
    z-index: 0;
    pointer-events: none;
}

.section__media img {
    max-width: 800px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ########################################## */
/* SECTION INTRO ############################ */
/* ########################################## */
.section__media_intro {
    position: absolute;
    right: var(--gutter);
    pointer-events: none;
    width: 120%;
    transform: translateY(-7%) translateX(30%);
}

.section__media_intro img {
    width: 75%;
}

.section--intro .section__title {
    color: var(--color-brand-600);
}

/* ########################################## */
/* SECTION DATA ############################ */
/* ########################################## */
.section--data .section__media {
    transform: translateX(-33%)translateY(0%);
}

/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* BACKGROUND TEXTURE GALAXIE - HAUT DE PAGE */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    width: 200%;
    height: 200%;
    background: url("../img/texture/texture_pink_green_L.webp") no-repeat center/contain;
    transform: translate(-10%, -48%) rotate(50deg);
    transform-origin: center;
    opacity: 0.9;
    overflow: visible;
}

/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* BACKGROUND TEXTURE GALAXIE - MILIEU DE PAGE */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
.section--ia::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    width: 260%;
    height: 260%;
    background: url("../img/texture/texture_pink_green_L.webp") no-repeat center/contain;
    transform: translate(-52%, -18%) rotate(50deg);
    transform-origin: center;
    opacity: 0.7;
    overflow: hidden;
}

/* ########################################## */
/* SECTION AGENT ############################ */
/* ########################################## */
.section--agent .section__media {
    transform: translateX(-10%)translateY(80px);
    border-radius: 16px;
    overflow: hidden;
}

.section--agent .section__media img {
    max-width: 100%;
}

/* ########################################## */
/* SECTION TEAM ############################# */
/* ########################################## */
.section--team .section__media {
    transform: translateX(-13%)translateY(14%);
    border-radius: 16px;
    overflow: hidden;
}

.section--team .section__media img {
    max-width: 100%;
}

/* ########################################## */
/* FULLWIDTH ################################ */
/* ########################################## */
.fullwidth {
    position: relative;
    /* clé : créer le contexte pour ::before */
    z-index: -10;
    overflow: hidden;
    /* clippe ce qui dépasse sans scroll */
}

.fullwidth img {
    overflow: visible;
    max-width: 88%;
}

/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
/*   BACKGROUND TEXTURE GALAXIE - BAS DE PAGE  */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
.fullwidth::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18rem;
    z-index: -11;
    pointer-events: none;
    width: 150%;
    height: 150%;
    background: url("../img/texture/texture_violet_yellow_L.webp") no-repeat center / contain;
    transform: translateX(-62%) translateY(6%) rotate(120deg);
    transform-origin: center;
    opacity: 0.85;
}

/* ########################################## */
/* BOTTOM CONTAINER ######################### */
/* ########################################## */
.bottom-container {
    z-index: 2;
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin-top: -230px;
}

.bottom-container img {
    max-width: 520px;
    margin-bottom: -20px;
}

/* ########################################## */
/* CONTACT / LEGAL PAGES #################### */
/* ########################################## */

.contact-page .form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 900px;
}

.contact-page .form-row {
    display: flex;
    flex-direction: row;
}

.contact-page .form-row input,
.contact-page .form-row textarea {
    flex: 1;
    font-size: 16px;
    padding: 8px;
}

.contact-page .form-button {
    background-color: var(--color-brand-600);
    border: none;
    color: white;
    font-size: 18px;
    margin-bottom: 32px;
    padding: 8px;
}

.contact-page h1,
.error-page h1,
.legal-page h1 {
    color: var(--color-brand-600);
    font-size: var(--large-font-size);
}

.legal-page h2 {
    font-size: 32px;
}

.legal-page h3 {
    font-size: 24px;
}

.legal-page table {
    border-collapse: collapse;
}

.legal-page table th,
.legal-page table td {
    border: 1px solid var(--color-brand-600);
    padding: 8px;
}

/* ========================================== */
/* ============ M E D I A  Q U E R I E S ==== */
/* ========================================== */
@media (max-width: 980px) {

    /* HTML BASE */
    :root {
        --maxw: 1200px;
        --gutter: 0px;
        --space: 40px;
        --icon: 58px;
    }

    /* SECTION BASE */
    .section {
        max-width: min(640px, 100vw - 54px);
        margin: auto auto;
        padding-top: 10px;
        padding-bottom: 36px;
    }

    .section__inner {
        display: flex;
        flex-direction: column-reverse;
    }

    .section__content {
        padding-top: 30px;
        max-width: 100%;
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .section__icon {
        margin-left: -7px;
        margin-right: 0;
        margin-top: -7px;
    }

    .section__icon img {
        width: 90px;
        height: 90px;
    }

    .section__title {
        max-width: 100%;
        margin: 0 0 20px;
    }

    .section__media:not(.media-bg) {
        position: static;
        width: 100%;
        max-width: 100%;
        transform: translateX(0%);
        margin-left: auto;
        margin-right: auto;
        margin-top: 100px;
    }

    .section__media:not(.media-bg) img {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    /* SECTION INTRO */
    .section--intro {
        margin-top: -90px;
    }

    .section--intro .section__content {
        max-width: 100%;
        margin-top: -280px;
    }

    .section__media_intro {
        position: static;
        transform: none;
        width: 130%;
        max-width: none;
        margin-top: 80px;
        margin-left: auto;
        margin-left: auto;
        pointer-events: auto;
        transform: translate(-20%);
    }

    .section__media_intro img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        margin: 0;
        margin-left: -40px;
    }

    /* SECTION AGENT */
    .section--agent .section__content {
        padding-top: 60px;
    }

    .section--agent .section__media {
        width: 100%;
        max-width: 100%;
        transform: translateX(0%);
        margin-left: auto;
        margin-right: auto;
    }

    /* SECTION TEAM */
    .section--team .section__media {
        width: 100%;
        max-width: 100%;
        transform: translateX(0%);
        padding-bottom: 50px;
        margin-left: auto;
        margin-right: auto;
    }

    /* FULLWIDTH */
    .fullwidth img {
        max-width: 100%;
    }

    /* Bottom Container */
    .bottom-container {
        margin-top: -170px;
    }

    .bottom-container img {
        max-width: 360px;
    }
}

@media (max-width: 450px) {
    :root {
        --large-font-size: 40px;
    }

    header .logotype {
        width: 110px;
    }
}

/* End of spacivox.css * * * * * * * * * * * * * * * * * * * * * * * * */
