/* GENERAL */

body {
    --lightest-primary-color: hsl(219, 79%, 86%);
    --lighter-primary-color: hsl(219, 79%, 76%);
    --primary-color: hsl(219, 79%, 66%);
    --darker-primary-color: hsl(219, 79%, 56%);


    --lightest-pink: hsl(351, 100%, 86%);
    --pink: hsl(351, 100%, 66%);


    --lightest-orange: hsl(16, 100%, 86%);
    --orange: hsl(16, 100%, 66%);


    --lightest-yellow: hsl(55, 100%, 86%);
    --yellow: hsl(55, 100%, 66%);

    --lightest-green: hsl(115, 100%, 86%);
    --green: hsl(115, 100%, 66%);
    

    margin: 0 2em 2em 2em;
    font-family: sans-serif;
}

a {
    text-decoration: none;
}

/* HEADER */

header h1 {
    font-size: 4rem;
    letter-spacing: -3px;
    font-weight: bold;
    line-height: 60px;
    margin: 10px -5px;
}

header h1 a:any-link {
    color: var(--primary-color);
}

.header-home, .header-connexion {
        margin-left: -16px;
        padding: 16px;
    }

@media(min-width: 45em) {

    .header-home, .header-connexion, .main-home, .main-connexion {
        position: fixed;
        height: 100%;
        overflow-y: auto;
    }

    .header-home, .header-connexion {
        width: 360px;
    }

    .main-home, .main-connexion {
        margin-left: 360px;
    }

    .main-connexion {
        background-color: var(--primary-color);
        width: 100%;
    }
}

main h3 a:any-link {
    display: block;
    text-align: left;
    line-height: 40px;
    width: 100%;
    background-color: #FFF;
    color: #000;
    margin-left: 0em;
    border-bottom: 1px solid #000;
}

.bonjour {
    font-size: 1.2rem;
}

.je-realise {
    font-size: 1.5rem;
}

.category-link {
    font-weight: bold;
    transition-duration: 0.5s;
}

.pink {
    box-shadow: inset 0px -5px var(--lightest-pink);
}

.orange {
    box-shadow: inset 0px -5px var(--lightest-orange);
}

.yellow {
    box-shadow: inset 0px -5px var(--lightest-yellow);
}

.green {
    box-shadow: inset 0px -5px var(--lightest-green);
}

.pink:hover, .pink-active {
    box-shadow: inset 0px -30px var(--lightest-pink);
}

.orange:hover, .orange-active {
    box-shadow: inset 0px -30px var(--lightest-orange);
}

.yellow:hover, .yellow-active {
    box-shadow: inset 0px -30px var(--lightest-yellow);
}

.green:hover {
    box-shadow: inset 0px -30px var(--lightest-green);
}

.category-link:any-link {
    color: black;
}

/* CONTACT */

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.pictoenvoyer {
    width: 18px;
    position: relative;
    top: 4px;
}

/* LISTES */

ul {
    margin-left: -2.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

li {
    list-style: none;
    color: #000;
}

@media(min-width: 45em) {
    ul {
        margin-right: 2em;
    }
}

@media(min-width: 60em) {

    .listeprojets a,
    .galerie li {
        flex: 46.2% 0;
    }
}

@media(min-width: 85em) {

    .listeprojets a,
    .galerie li {
        flex: 30.4% 0;
    }
}

.listeprojets .div-img {
    border-radius: 10px;
    box-shadow: 1px 1px 2px gray;
    overflow: hidden;
}

.listeprojets img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 1/1;
    margin-bottom: -5px;
    transition-duration: 0.5s;
}

.listeprojets img:hover {
    scale: 1.05;
}

.container div {
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
}

.container div .categorie {
    background-color: #DDD;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7em;
    text-transform: uppercase;
}

.lien-mail:any-link,
.lien-cv:any-link {
    background-color: #EEE;
    color: #000;
    border-radius: 20px;
    padding: 5px 10px;
}

.lien-mail:hover,
.lien-cv:hover {
    background-color: #DDD;
}

.galerie img {
    max-width: 100%;
    min-width: 10em;
    max-height: 75vh;
}

/* FORM */

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px;
}

@media(min-width: 45em) {
    form {
        width: 300px;
    }
}

input[type=text],
input[type=password],
select,
button {
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 30px;
}

input[type=text],
input[type=password],
select {
    border: 0px;
    background: aliceblue;
}

input[type=text],
input[type=password] {
    width: 100%;
}

input[type=file] {
    width: 100%;
}

select,
::picker(select) {
    appearance: base-select;
}

select {
    width: 107%;
    height: 40px;
}

input[type="file"]::file-selector-button {
    border-radius: 4px;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
    margin-right: 16px;
    margin-top: 10px;
}

button {
    cursor: pointer;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-top: 10px;
    color: white;
}

button:hover {
    background-color: var(--darker-primary-color);
    border: 1px solid var(--darker-primary-color);
}

.p-insc-conn {
    text-align: center;
    color: grey;
    font-size: 0.7em;
}