body * {
    box-sizing: border-box;
    margin: 0;
}

html, body {
    display: flex;
    height:100%;
    width: 100%;
    flex-direction: column;
    margin: 0 auto;
}

header {
    display: flex;
    flex-direction: row;
    background-color: #5775d5;
    padding: 1em;
    align-items: center;
    gap: 2em;
    position: sticky;
}

header p {
    color: white;
    font-size: 38px;
}

header > button {
    border: none;
    background: white;
    color: #5775D5;
    display: flex;
    align-items: center;
    padding: 0.5em;
    border-radius: 10px;
    font-size: 25px;
    gap: 4px;
    position: absolute;
    right: 1em;
}

header > button:hover {
    cursor: pointer;
    box-shadow: 8px 8px 0 rgba(55, 74, 136, 1);
    transform: translate(-4px, -4px);
    transition: 0.4s;
}

header > button:not(:hover) {
    transition: 0.4s;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    padding: 2em;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.tuto-button-bleu {
    padding: 17px 40px;
    border-radius: 10px;
    border: 0;
    background-color: rgb(87, 117, 213);
    letter-spacing: 2px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: rgb(55, 74, 136) 0 10px 0 0;
    color: hsl(0, 0%, 100%);
    cursor: pointer;
}

.tuto-button-bleu:hover {
    box-shadow: rgb(55, 74, 136) 0 7px 0 0;
}

.tuto-button-bleu:active {
    background-color: rgb(87, 117, 213);
    box-shadow: rgb(55, 74, 136) 0 0 0 0;
    transform: translateY(5px);
    transition: 200ms;
}

.tuto-button-gris {
    padding: 17px 40px;
    border-radius: 10px;
    border: 0;
    background-color: rgb(123, 129, 133);
    letter-spacing: 2px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: rgb(52, 54, 56) 0 10px 0 0;
    color: rgb(39, 40, 42);
    cursor: pointer;
    opacity: 0.7;
}

.tuto-button-gris:hover {
    box-shadow: rgb(52, 54, 56) 0 7px 0 0;
}

.tuto-button-gris:active {
    background-color: rgb(123, 129, 133);
    box-shadow: rgb(52, 54, 56) 0 0 0 0;
    transform: translateY(5px);
    transition: 200ms;
}

.tuto-buttons {
    display: flex;
    flex-direction: row;
    gap: 1em;
    padding: 1em;
}

#title {
    display: flex;
    flex-direction: row;
    font-size: 24px;
    margin-bottom: 4px;
}

#title a {
    margin-right: 3px;
    text-decoration: none;
    position: relative;
    color: #5775d5;
}

#title a:hover {
    color: black;
}

h3 {
    font-size: 18px;
    margin-bottom: 2em;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 55px;
    display: flex;
    align-items: center;
}

.search-container input[type="text"] {
    width: 100%;
    height: 100%;
    padding: 0 60px 0 30px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 16px 5px rgba(0, 0, 0, 0.25);
    font-size: 22px;
    box-sizing: border-box;
}

.search-container .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat center center;
    background-size: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #515151;
}

.search-container .clear-icon {
    position: absolute;
    right: 23px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    cursor: pointer;
    color: black;
}

.liste-categories {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category {
    display: flex;
    flex-direction: column;
}

.category-container {
    display: flex;
    flex-direction: row;
    background-color: #5775d5;
    width: 1200px;
    padding: 6px 10px 6px 10px;
    align-items: center;
    color: white;
    font-size: 24px;
    justify-content: space-between;
    border-radius: 15px;
    z-index: 10;
    position: relative;
}

.category-container:hover {
    cursor: pointer;
}

.category-container span {
    font-size: 40px;
    transform: rotate(90deg);
}

.liste-tutoriels {
    position: relative;
    bottom: 10px;
    z-index: 0;
    display: flex;
    flex-direction: column;
    background-color: #DFE3F1;
    padding: 20px 30px 20px 30px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    gap: 5px;
}

.tutoriel a{
    color: black;
    text-decoration: none;
    position: relative;
    font-size: 20px;
}

.tutoriel a::before, #title a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: #18272F;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

a:hover::before, #title a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.tutoriel-classique {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    height: 580px;
    margin-top: 2em;
    gap: 2em;
}

.tutoriel-step {
    display: flex;
    gap: 4em;
    justify-content: center;
}

.tutoriel-step:nth-child(even) {
    flex-direction: row-reverse;
}

.tutoriel-step-text {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    max-width: 30%;
    font-size: 26px;
}

.tutoriel-step img {
    height: 450px;
    width: auto;
    border: 2px solid black;
}

.tutoriel-video {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.tutoriel-video > p {
    font-size: 36px;
}

.tutoriel-classique-no-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 36px;
}

.tutoriel-classique:has(.tutoriel-classique-no-text) {
    overflow-y: hidden;
}

.en-construction, .page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.en-construction span, .page-404 span {
    font-size: 70px;
}

footer {
    display: flex;
    flex-direction: row;
    background-color: #7b8185;
    padding: 1em;
    align-items: center;
    position: sticky;
    bottom: 0;
    justify-content: center;
    z-index: 20;
}

footer p {
    font-size: 20px;
}

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.scroll-top-btn {
    position: fixed;
    top: 275px;
    right: 100px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-top-btn:hover {
    background-color: #0056b3;
}

.scroll-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}