/* TO DO : mettre les variables dans le root (couleurs, polices, tailles textes) */
/* Reset */
* {
    /* border: 1px solid red; */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Variables */
:root {
    --font-family: 'Poppins', sans-serif;
    --font-size: 18px;
    --color-1: #FBFEFC;
    --color-2: #F4FBF6;
    --color-3: #E6F6EB;
    --color-4: #D6F1DF;
    --color-5: #C4E8D1;
    --color-6: #ADDDC0;
    --color-7: #8ECEAA;
    --color-8: #5BB98B;
    --color-9: #30A46C;
    --color-10: #2B9A66;
    --color-11: #218358;
    --color-12: #193B2D;
}
.bg-green {
    background: var(--color-5);
}
/* Style Global */
body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    color: var(--color-12);
    background-color: var(--color-3);
    /* color: var(#1f2120);
    background-color: var(--color-2); */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    line-height: 1.2;
}

h1 {
    font-size: 54px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: .01em;
    color: var(--color-12);
}

h2 {
    font-size: 40px;
    margin-bottom: 24px;
    font-weight: 400;
}

h3 {
    font-size: 24px;
   margin-bottom: 24px;
    font-weight: 400;
}

p {
    font-size: 18px;
    margin-bottom: 12px;
}

img {
    max-width: 100%;
    height: auto;
  

}

/* Boites */
section {
    padding: 120px 24px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cardWrapper {
    gap: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 48px;
}

/* cards */
.card {
    background-color: var(--color-1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    gap: 12px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
}

/* buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-9);
    color: var(--color-1);
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--color-8);
}

/*Header*/
header {
    position: fixed;
    z-index: 100;
    width: 100%;
    background-color: var(--color-3);
}

.flexheader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--color-9);
    border-bottom: 1px solid var(--color-9);
}

/* Hero section */

#hero{
    height: 100vh;
    display: flex;
    /* background: ( circle at 10%, #8aa1981c, #eeeeee00 75%, #ffffff); */
}
.flexhero {
    display: flex;
    flex-direction: row;
    text-align: left;
    gap: 48px;
    .btn{
    margin-top: 24px;
    }
}

/* problematique */
#problematique {
    h3{
        margin-bottom: 48px;
    }
}
/* solution */

/* application */
.fonction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.fonction-container {
    background-color: var(--color-2);
    padding: 50px 80px;
    margin-bottom: 24px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
}

/* Preuves */

/* engagement */

/* footer */
footer {
    background-color: var(--color-12);
}

.flexfooter {
    padding: 20px 0;
    gap: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
    align-items: stretch;
}

.flexfooter h3,
.flexfooter p {
    color: var(--color-1);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.contenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--color-1);
    border-right: 1px solid var(--color-1);
    padding: 20px 12px;
}


.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}
.copyright p{
    font-size: 12px;
}

input,
textarea {
    font-family: var(--font-family);
    font-size: var(--font-size);
    width: 100%;
    max-width: 400px;
    padding: 4px;
    border-radius: 10px;
    background-color: var(--color-1);
    resize: none;
}

.btn-form {
    padding: 14px 32px;
    font-weight: bold;
    background-color: var(--color-1);
    color: var(--color-12);
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
    cursor: pointer;
}

.media img {
    max-width: 48px;
    margin: 0 12px;
}
