/* VARIABLES */

:root {
    --bordures: 20%;
    --gap: 0.5rem;
    --padding: 1rem;
    --primary-color: blue;
    --secondary-color: white;
    --spacing-s: 10px;
    --spacing-l: 60px;
}

@media (max-width: 1670px) {
    :root {
        --bordures: 5%;
    }
}

/* - */

/* FIX */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand";
}

/* - */

/* TYPOGRAPHIE */

p {
    font-size: 1rem;
}

h1+p {
    font-size: 1.5rem;
}

h1+p,
h2+p,
h3+p {
    font-weight: lighter;
    font-style: italic;
}

h1 {
    font-size: 2rem;
}

h2 {
    margin: auto 0;
    flex: 12;
    vertical-align: text-top;
    padding-left: var(--padding);
}

.sub-title h3 {
    display: block;
    margin: 10px;
}

li {
    list-style-position: inside;
}

li::marker {
    content: '✦ ';
    font-size: 1rem;
}

li {
    padding-top: 0.2rem;
}

footer p {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

/* - */

/* ICONS */

.icon {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
}

.icon i {
    font-size: 3rem;
    margin: auto;
}

.icon-s {
    border-radius: 10px;
    width: 4rem;
    height: 4rem;
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
}

.icon-s img {
    width: 100%;
    height: 100%;
}

.icon-s i {
    font-size: 3rem;
    margin: auto;
}

/* - */

/* COULEURS SECTIONS + INVERSES */

.blue,
.white .icon,
.white .icon-s {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.blue div {
    border-color: var(--secondary-color);
}

.white,
.blue .icon,
.blue .icon-s {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.white div {
    border-color: var(--primary-color);
}

/* - */

/* CONTAINER FLEX */

.container {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding-left: var(--bordures);
    padding-right: var(--bordures);
    padding-top: var(--spacing-s);
    padding-bottom: var(--spacing-s);
}

.sub-title {
    display: flex;
    flex: 8;
    justify-content: space-between;
}

.sub-title::before,
.sub-title::after {
    content: "";
    width: 10px;
    background-color: var(--secondary-color);
}

/* - */

/* CONTAINER GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr 7fr);
    gap: var(--padding);
    padding: var(--padding);
    margin-left: var(--bordures);
    margin-right: var(--bordures);
}

/* - */

/* CONTENTS */

.picture {
    display: block;
    width: 30%;
    object-fit: cover;
    object-position: center;
}

.text {
    flex: 5 0;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    gap: var(--gap);
    padding: var(--padding);
}

/* - */

/* BUTTON */

.button {
    background-color: var(--primary-color);
    width: 100%;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    transition: background-color 0.5s,
        color 0.5s;
}

.button:hover {
    background-color: #f4f4f4;
    color: var(--primary-color);
    transition: background-color 0.5s,
        color 0.5s;
}

.links a {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.blue .links a {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.blue .links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.icon-link {
    font-size: 1.3rem;
}


/* - */

/* UP-ARROW */

#up-arrow {
    position: fixed;
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    bottom: 30px;
    right: 30px;
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0;
    z-index: 2;
}

#up-arrow i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin: 20px 20px;
}

.visible {
    opacity: 1 !important;
}

/*  */

/* LINE-GRID */

section::before {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 1px;
    top: 0;
    left: var(--bordures);
    z-index: 1;
}

section::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 1px;
    top: 0;
    right: var(--bordures);
    z-index: 1;
}

.container::before {
    content: "";
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    top: var(--spacing-s);
    left: 0;
    z-index: 1;
}

.container::after {
    content: "";
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    left: 0;
    bottom: var(--spacing-s);
    z-index: 1;
}

.blue::before,
.blue::after,
.blue .container::before,
.blue .container::after {
    background-color: var(--secondary-color);
}

.white::before,
.white::after,
.white .container::before,
.white .container::after {
    background-color: var(--primary-color);
}


/* SECTION */

section {
    position: relative;
    padding-top: var(--spacing-l);
    padding-bottom: var(--spacing-l);
}

/*  */

/* QUERIES */

@media (max-width: 750px) {
    .container {
        flex-flow: column wrap;
    }

    .title.container {
        flex-flow: row wrap;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr 7fr;
        gap: var(--padding);
        padding: var(--padding);
    }

    .picture {
        width: 100%;
    }

    #landing .picture {
        height: 350px;
    }
}

@media (max-width: 1023px) {
    #up-arrow i {
        font-size: 2rem;
        margin: 10px 10px;
    }
}

@media (min-width: 1023px) {
    #landing {
        height: 100vh;
        display: flex;
        align-content: center;
    }
}

/*  */

/* LOADER */

.loader {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.opacity-loader {
    animation: loader-opacity 0.5s forwards;
}

@keyframes loader-opacity {
    from {
        opacity: 100%;
        display: flex;
    }

    to {
        opacity: 0;
        display: none;
    }
}

.progress {
    width: 211.2px;
    height: 38.7px;
    border-radius: 35.2px;
    color: #ffffff;
    border: 3.5px solid;
    position: relative;
 }
 
 .progress::before {
    content: "";
    position: absolute;
    margin: 3.5px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    animation: progress-pf82op 0.7s infinite;
 }
 
 @keyframes progress-pf82op {
    100% {
       inset: 0;
    }
 }

/*  */

.container, .grid {
    opacity: 0;
    transition: 0.5s;
}

.container.show, .grid.show {
    opacity: 1
}