@import url('https://fonts.googleapis.com/css2?family=Sacramento&display=swap');

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

/* généralités */

html {
    min-height: 100vh;
    position: relative;
}

body {
    font-family: sans-serif;
}

header {
    padding: 5px 0;
    font-family: 'Sacramento', cursive;
    text-align: center;
}

header h1 {
    font-size: 3.5rem;
}

header, footer {
    background: black;
    color: snow;
}

main {
    padding: 56px;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: initial;

}

hr {
    height: 1px;
    margin: 15px auto;
    /* width:90%; */
    background-color: rgb(126, 125, 125);
    border: none;
}

/* partie centrale */

.conteneur {
    display: flex;
}

aside {
    width: 25%;
}

.maincontent {
    width: 75%;
    position: relative;
}

.categlist p a {
    display: block;
    background: khaki;
    border: 1px solid rgb(126, 125, 125);
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.categlist p a:hover {
    background: rgba(240, 230, 140, 0.575);
}

.subcateg {
    margin-left: 25px;
}



.title {
    position: absolute;
    margin: 0 0 170px 25px;
    width: 170px;
    height: 170px;
    background: linear-gradient(-45deg, transparent, transparent 50%, black 51%, khaki 50%);
    border-top: 1px solid black;
    border-left: 1px solid black;
    z-index: -1;
}


.title h2 {
    position: absolute;
    transform-origin: bottom center;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -100%, 0) rotateZ(-45deg);
    font-size: 1.3rem;

}


.tools {
    margin-top: 120px;
    display: flex;
    justify-content: space-evenly;
    z-index: 99;
}

.tools div i {
    font-size: 2rem;
}

.tools div a {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Formulaire */

form input[type="text"], form button, form textarea, form select {
    padding: 5px; 
    margin: 5px 0;
}

form input[type="color"]{
    margin: 8px 0 ;    
}

.formulaire {
    margin-top: 0px;
    text-align: center;
}

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

.formulaire div label {
    width: 75%;
    text-align: left;
}

.formulaire div input, .formulaire div textarea {
    width: 75%;
    margin: 15px 0;
}

.centerform {
    text-align: center;
}

/* boutons */

.btn {
    text-align: center;
    width: 200px;
    display: block;
    margin: 25px auto;
    background: khaki;
    padding: 10px;
    border: 1px solid rgb(126, 125, 125);
    border-radius: 5px;
}

.btn:hover {
    background: rgba(240, 230, 140, 0.575);
}



/* Style des notes */

.elements {
    display: flex;
    justify-content: space-evenly;
    margin-top: 35px;
    flex-wrap: wrap;
}

.elements>div {
    border: 1px solid black;
    width: 30%;
    padding: 15px;
    background: khaki;
    border-radius: 5px;
}

.elements .note {
    margin: 8px 0;
    padding: 10px 10px 30px;
    color: black;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    position: relative;
}

.elements .note p {
    margin-top: 8px;
}

.elements .note a {
    color: white;
}

.elements .note a.blacklink {
    color: black;
}

/* liens de modif */

.editcateg, .editnote {
    position: absolute;
    right: 60px;
    top: 5px;
    background: green;
    width: 25px;
    height: 25px;
    font-size: 1rem;
    border-radius: 50%;
    z-index: 99;
}

.editnote {
    left: unset;
    top: unset;
    right: 35px;
    bottom: 5px;
}

.editcateg a, .editnote a {
    color: white;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* liens de suppression */

.supcateg, .supnote {
    position: absolute;
    right: 30px;
    top: 5px;
    background: crimson;
    width: 25px;
    height: 25px;
    font-size: 1rem;
    border-radius: 50%;
    z-index: 99;
}

.supnote {
    left: unset;
    top: unset;
    right: 5px;
    bottom: 5px;
}

.supcateg a, .supnote a {
    color: white;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* coloris */

.square{
    display:inline-block;
}

.square .clr-field button,
.circle .clr-field button {
  width: 20px;
  height: 20px;
  left: 5px;
  top:15px;
  border-radius: 5px;
}

.square .clr-field input,
.circle .clr-field input {
  padding: 5px 0 5px 30px;
}


footer {
    padding: 15px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}