/* Police */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

body {
  font-family: 'Manrope', sans-serif;
}

/* Général */
body {
    background-color: white;
    margin: 0;
}

h1, h2, p {
    margin: 0;
}

h2 {
    margin-bottom: 20px;
    text-decoration: underline;
}

p, label {
    font-size: 19px;
    color: white;
}

i {
    font-size: 20px;
}

main h2, main + section + section h2 {
    color: whitesmoke;
}

main + section h2 {
    color: black;
}

/* Conteneurs principaux */
header, main, section, footer {
    padding: 20px;
}

header, p, form, main + section > div {
    max-width: 1000px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    background-color: white;
}

main, section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main, main + section + section {
    background-color: darkgrey;
}

main + section {
    background-color: white;
}

/* Bouton de contact */
#contact-button {
    background-color: black;
    color: white;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 21px;
    transition: transform 0.3s;
}

#contact-button:hover {
    transform: scale(1.05);
}

/* Logo */
#logo {
    color: black;
    text-decoration: none;
    text-align: center;
}

/* Section cartes */
main + section > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    height: 200px;
}

.card {
    background-color: beige;
    border-radius: 20px;
    color: black;
    text-decoration: none;
}

.card > div {
    height: 80%;
    width: 100%;
    margin-bottom: 5px;
    border-radius: 20px 20px 0 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.card > span {
    margin-left: 5px;
    font-size: 15px;
}

/* Images des cartes */
#arsene-card > div {
    background-image: url("images/arsene-witz.png");
}

#nutscript-card > div {
    background-image: url("images/nutscript.png");
    background-size: 70%;
}

#python-card > div {
    background-image: url("images/python.png");
    background-size: 50%;
}

/* Formulaire */
form {
    margin-top: 20px;
    width: 100%;
}

input, textarea, button {
    font-size: 15px;
    padding: 5px;
}

input, textarea {
    border: none;
    border-radius: 5px;
}

input {
    width: 97%;
    margin-bottom: 10px;
    max-width: 400px;
}

textarea {
    width: 97%;
    max-width: 600px;
    height: 300px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
}

/* Image de profil */
#picture {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-image: url("images/abel.jpg");
    background-position: center;
    background-size: cover;
}

@media only screen and (max-width: 720px) {
    header {
        justify-content: center;
    }

    #contact-button {
        display: none;
    }

    main + section > div {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        height: 400px;
    }

    .card > span {
        font-size: 12px;
    }
}

@media only screen and (min-width: 721px) and (max-width: 950px) {
    .card > span {
        font-size: 12px;
    }
}