/* ======== GLOBALS (reset, variables, polices, styles communs) ======== */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

li {
    list-style: none;
    margin: 0;
    padding: 0;
}

li a {
    display: inline-block;
    margin: 0;
    padding: 0;
}

li a img {
    display: block;
    margin: 0;
    padding: 0;
}

input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    color: var(--text-default-dark);
}

:root {
    scroll-behavior: smooth;
    /* ================================ TEXTS ================================ */
    --text-default-dark: #585e6a;
    --text-default-dark1: #9fa6b0;
    --text-default-light: #F4F6F9;
    /* ================================ FORMS ================================ */
    --icons-border-radius: 10px;
    /* ================================ COLORS ================================ */
    --purple-primary: #778EFE;
    --purple-primary-light: #A4B3FC;
    --white-primary: #F6F6F6;
    --beige-light: #faf1f5;
    --gris-dark: #383b4a;
    --blue-dark: #16162b;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-regular.woff2") format("woff2"),
        url("../fonts/roboto-regular.woff") format("woff"),
        url("../fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-bold.woff2") format("woff2"),
        url("../fonts/roboto-bold.woff") format("woff"),
        url("../fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-light.woff2") format("woff2"),
        url("../fonts/roboto-light.woff") format("woff"),
        url("../fonts/Roboto-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/dm-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/dm-mono-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-extrabold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
}

body {
    font-family: "Poppins", "Roboto", Helvetica, sans-serif;
    height: 100%;
    background-color: var(--beige-light);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    justify-content: center;
    margin: 0;
}

section {
    padding: 2rem 1rem;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

h1 {
    color: var(--purple-primary);
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 1rem;
    line-height: 2rem;
    text-transform: uppercase;
}

h2 {
    color: var(--purple-primary);
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.2;
}

h3 {
    color: var(--gris-dark);
    font-size: 1.1rem;
    padding: 1rem 0;
    line-height: 1.5rem;
}

h4 {
    color: var(--gris-dark);
    font-size: 1rem;
    padding: 1rem 0;
    line-height: 1.4rem;
    text-shadow: 0px 0px 9px rgba(128, 128, 128, 0.215);
}

strong {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

p {
    font-size: 1.1rem;
    color: var(--gris-dark);
    line-height: 1.6rem;
}

::selection {
    background-color: var(--purple-primary);
    color: var(--text-default-light);
}

.little,
.little p {
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--purple-primary-light);
}

.link-button a {
    display: block;
    text-decoration: none;
    color: var(--beige-light);
    font-size: 1rem;
    background: linear-gradient(23deg, #41c594, #3722d4e0, #32a7e6e0);
    border-radius: 100px;
    padding: 1.3rem 0;
    cursor: pointer;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(162, 173, 255, 0.459);
    transition: 0.3s ease-in-out;
    margin: 2rem 0;
}

.link-button a:hover {
    cursor: pointer;
    transform: scale(1.01);
    filter: hue-rotate(65deg);
}

.bokeh-bkg {
    background: transparent;
}

.hidden {
    display: none;
}

.appear {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.appear.visible {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.sr-only li {
    display: block;
}

button {
    font-size: 1.15rem;
    display: block;
    padding: 0.9rem 1.5rem;
    background: radial-gradient(rgb(75, 89, 214), rgb(103, 118, 255));
    box-shadow: 0px 0px 20px rgba(99, 127, 252, 0.69);
    color: var(--beige-light);
    cursor: pointer;
    border: none;
    border-radius: 0.5rem;
    transition: 0.2s ease;
}

video {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ======== MEDIA QUERIES ======== */

/* Grand téléphone */

@media (min-width: 480px) {
    video {
        height: auto;
    }
}

/* Grande tablette */

@media (min-width: 1025px) {
    body {
        background-image: url("../img/background/1080_main-bkg.jpg");
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    h1 {
        line-height: 3rem;
        font-size: 2.5rem;
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
        padding: 0.8rem 0;
        line-height: 2rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .bokeh-bkg {
        background-image: url(../img/background/bokeh/Bokeh-1024.jpg);
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Grand écran */

@media (min-width: 1440px) {
    section {
        padding: 4% 16%;
    }

    .bokeh-bkg {
        background-image: url(../img/background/bokeh/Bokeh-1440.jpg);
    }
}

/* Écran très large */

@media (min-width: 1600px) {
    body {
        background-image: url("../img/background/2048_main-bkg.jpg");
    }
}

/* Écran 2K et + */

@media (min-width: 2160px) {
    .bokeh-bkg {
        background-image: url(../img/background/bokeh/Bokeh-2160.jpg);
    }
}
