@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

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

:root {
    --blue: #75a7cf;
    --pink: #ab638d;
}

body {
    font-family: "Merriweather";
    background-color: #151214;
    color: var(--blue);
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background-color: #090909;
    padding: 3rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
h1 {
    margin: 0;
    font-size: 24px;
}
h1 a {
    text-decoration: none;
    color: var(--blue);
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
li {
    margin-left: 40px;
}
a {
    text-decoration: none;
    color: var(--blue);
    font-size: 2rem;
    transition: color 0.3s;
}
a:hover {
    color: var(--pink);
}
/* Page d'acceuil */
#acceuil {
    height: calc(100dvh - 133px);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.callAction {
    display: flex;
    width: 100%;
    gap: 25px;
    margin-top: 2rem;
}
.callAction a {
    padding: 8px;
    width: 100%;
    background-color: #090909;
    font-size: 2.5rem;
    border-radius: 10px;
}

.homeInfo {
    text-align: center;
}

.homeInfo span {
    font-weight: bold;
    color: var(--blue);
}

.homeInfo h1 {
    font-size: 5rem;
    margin-bottom: 5px;
}

.homeInfo p {
    font-size: 3rem;
    margin-bottom: 25px;
}

/* Projets */
.card {
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 300px;
}

.card p {
    margin-top: 4rem;
    text-align: center;
    font-size: 2rem;
    width: 80%;
}

.card h2 {
    margin-bottom: 5rem;
    font-size: 3rem;
}

.card img {
    width: 100%;
    height: 100vh;
    max-height: 850px;
    object-fit: contain;
}

.card img.horizontal {
    width: 100%;
    min-height: 100%;
    max-height: 100%;
}

.images {
    display: flex;
    justify-content: center ;
    gap: 20px;
    flex-wrap: wrap;
}
.images img {
    width: min-content;
    max-height: 480px;
}


/* Compétences */
#competences {
    margin-top: 6rem;
}
.container-skill, .skill-langs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 12vw;
    grid-row-gap: 4vw;
    width: fit-content;
}

.skill-langs {
    margin-top: 7rem;
    width: 62%;
    grid-row-gap: 4vw;
    grid-column-gap: 25vw;
}

.skill {
    display: flex;
    align-items: center;
}

.skill-info {
    display: flex;
    flex-direction: column;
    font-size: 3rem;
    margin-left: 2.5rem;
}
.skill-info p:nth-child(1) {
    font-weight: bold;
}
.skill-info p:nth-child(2) {
    font-style: italic;
    font-size: 2.2rem;
}
.skill-img {
    width: 130px;
    height: 130px;
}

/* Contact */
.title {
    font-size: 4rem;
    margin-top: 3rem;
    margin-left: 3rem;
}

.form-control {
    position: relative;
    width: 600px;
    margin: 1rem;
}
  
input,
textarea {
  width: 100%;
  padding: 16px 12px 12px;
  font-size: 16px;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 4px;
  outline: none;
  background: none;
  transition: border-color 0.3s;
  background-color: #090909;
}

input:focus,
textarea:focus {
  border-color: var(--pink);
}

label {
  position: absolute;
  top: 16px;
  left: 12px;
  color: var(--blue);
  font-size: 16px;
  pointer-events: none;
  padding: 0 4px;
  transition: 0.2s ease all;
}

input:focus + label,
input:not(:placeholder-shown) + label,
textarea:focus + label,
textarea:not(:placeholder-shown) + label {
  top: -25px;
  left: 8px;
  font-size: 1rem;
  color: var(--pink);
}

input:not(:focus) + label {
    color: var(--blue);
}

#contact-send-mail-btn {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #090909;
    color: var(--blue);
    font-size: 1.6rem;
    padding: 10px 35px 10px 35px;
    margin-top: 15px;
    transition: 0.2s ease all;
}
#contact-send-mail-btn:hover {
    background-color: var(--blue);
    color: #090909;
}

#message {
    margin-top: 10px;
    margin-bottom: 10px;
}
.error {
    color: #e34848;
}
.valid {
    color: #63cf68;
}