/* SCROLLBAR */
::-webkit-scrollbar {
    width: 0;
}

/*DATA THEME*/
[data-theme="light"] {
    --color-bgimg-body: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
    --color-bg-section: #ffffff;
    --color-f: #000000;
    --color-bgnth: #ededed;
}
  
[data-theme="dark"] {
    --color-bgimg-body: linear-gradient(to top, #331f5f 0%, #7e3467 100%);
    --color-bg-section: #1d1d1d;
    --color-f: #f1f1f1;
    --color-bgnth: #2f2f2f;
}

/* GENERAL */
* {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    transition: ease-in-out 0.2s;
}

html {
    background-color: white;
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #5c2b6d;
    background-image: var(--color-bgimg-body);
}

main {
    padding: 25px;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute; /* Positionnement absolu par rapport à la section */
    top: 0; /* Aligné en haut */
    right: 0; /* Aligné à gauche */
}

h1,
h2,
h3 {
    color: var(--color-f);
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

h3 {
    font-size: 1rem;
    font-weight: 400;
    color: gray;
}

a {
    text-decoration: none;
    color: var(--color-f);
}

section {
    position: relative;
    background-color: var(--color-bg-section);
    border-radius: 5px;
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    max-width: 700px;
}

section:first-of-type {
    margin-top: 0;
}

section:last-of-type {
    margin-bottom: 0;
}

section:nth-of-type(1)>img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
}

section:nth-of-type(2), section:nth-of-type(3) {
    display: flex;
    flex-direction: column;
}

section:nth-of-type(2)>a::before, section:nth-of-type(3)>a::before {
    content: url("../assets/icons/link.svg");
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

section:nth-of-type(2)>a, section:nth-of-type(3)>a, section:nth-of-type(4)>a {
    text-decoration: underline transparent solid 1px;
}

section:nth-of-type(2)>a:hover, section:nth-of-type(3)>a:hover, section:nth-of-type(4)>a:hover {
    text-decoration: underline gray solid 1px;
}

section:nth-of-type(4) {
    display: flex;
    flex-direction: column;
}

section:nth-of-type(4) a {
    margin-bottom: 5px;
}

section:nth-of-type(4) img {
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

section:nth-of-type(5) a {
    padding: 4px 8px;
    background-color: var(--color-bgnth);
    border-radius: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
    cursor: default;
}

section:nth-of-type(5)>div {
    display: flex;
    flex-wrap: wrap;
}

/* ANIMATIONS */
section {
    animation: fadeIn 0.5s forwards;
    opacity: 0;
}

section:nth-of-type(1) {
    animation-delay: 0.1s;
}

section:nth-of-type(2) {
    animation-delay: 0.2s;
}

section:nth-of-type(3) {
    animation-delay: 0.3s;
}

section:nth-of-type(4) {
    animation-delay: 0.4s;
}

section:nth-of-type(5) {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}