:root{
    --primary-color: #227FB4;
    /* individuel */
    --secondary-color: #6d006d;
}
/* Style général */
body {
    font-family: Lato, sans-serif;
    margin: 0 auto;
    max-width: 1440px;
    font-size: 16px;
    line-height: 25px;
}

section {
    background-color: white;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 20px;
    background-color: white;
    font-family: Lato, sans-serif;
}

header img {
    height: 50px;
}

header nav{
    display: flex;
}
header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: black;
}
header nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
    margin-top: 5px;
}
header nav a:hover, header nav a.active {
    font-weight: bold;
}
header nav a:hover::after, header nav a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 5px;
}

/* Section Hero */
section.hero {
    text-align: center;
    position: relative;
}

section.hero img {
    width: 100%;
    height: auto;
}

section.hero .cta {
    position: absolute;
    top: 45%;
    left: 50%;
    text-align: right;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

section.hero .cta h1 {
    color: white;
    font-size: 2em;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}

section.hero .cta h1 strong{
    font-weight: 900;
}

section.hero .cta a{
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
section.hero .cta a:hover{
    scale: 1.05;
}

/* arrow ::after link */
section.hero .cta a::after{
    content: ">";
    margin-left: 10px;
    font-size: 1em;
}

section.formations-buttons {
    display: flex;
    max-width: 1080px;
    margin: 0 auto;
}

section.formations-buttons a{
    position: relative;
    width: 50%;
    margin: 10px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}
section.formations-buttons a:hover{
    scale: 1.05;
}

section.formations-buttons a .text{
    position: absolute;
    padding: 20px;
    bottom: 0;
    color: black;
    background: #ffffffe0;
}

/* Section Formations */
section.formation-list {
    padding: 20px;
}

section.formation-list .formation-nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}
section.formation-list .formation-nav .dropdown select{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Lato, sans-serif;
    font-size: 16px;
    cursor: pointer;
}

/* instead of flex, try grid with 3 columns, with gap and all elements aligned left */

section.formation-list .list-flex{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
}

section.formation-list .list-flex .article{
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

section.formation-list h2 {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 1.8em;
    text-align: center;
}
section.formation-list h2 strong {
    font-weight: 900;
}

section.formation-list .article {
    position: relative;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
section.formation-list .article:hover{
    scale: 1.05;
}

section.formation-list .article img {
    width: 100%;
    height: auto;
}

section.formation-list .article .description{
    padding: 0 20px 20px;
    color: black;
}

section.formation-list .article span {
    position: absolute;
    top: 10px;
    right: 0px;
    background-color: var(--primary-color);
    text-transform: uppercase;
    color: #fff;
    padding: 10px;
}
section.formation-list .article span.Individuel,
.formation-detail span.Individuel {
    /* purple in the same tone as the primary color */
    background-color: var(--secondary-color);
}
section.formation-list .article span.Coming,
.formation-detail span.Coming {
    /* red in the same tone as the primary color */
    background-color: #3d258b;
}

.formation-detail span {
    display: block;
    background-color: var(--primary-color);
    text-transform: uppercase;
    color: #fff;
    padding: 10px;
}
.formation-detail .detail .button{
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 17px;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.formation-detail .detail .button:hover{
    scale: 1.05;
}


section.vision {
    max-width: 1080px;
    margin: 50px auto;
}
section.vision .flex{
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}
section.vision .flex .left{
    margin-right: 20px;
}


/**
* Page Formation
*/

section.formation {
    display: flex;
    align-items: center;
    flex-direction: column;
}

section.formation .formation-detail {
    display: flex;
    justify-content: center;
}
section.formation .formation-detail .detail{
    max-width: 50%;
    margin: 0 20px;
}

/**
* Page Tarifs
*/

.hero-separator {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}
div.tarifs{
    text-align: center;
    margin-bottom: 50px;
}
div.tarifs .offres{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-gap: 10px 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "title title"
        "offer1 offer2";
}
div.tarifs .offres .title{
    grid-area: title;
    margin: 0;
    padding: 15px;
    background: var(--primary-color);
    color: white;
}
div.tarifs .offres.individuel .title,
div.tarifs .offres.individuel a.button{
    background: var(--secondary-color);
}

div.tarifs .offres .offre{
    transition: all 0.2s ease-in-out;
}
div.tarifs .offres .offre:hover{
    scale: 1.05;
}

div.tarifs .offres .offre, div.tarifs .accompagnement-sur-mesure{
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
div.tarifs h3{
    font-weight: normal;
    font-size: 26px;
}
div.tarifs .offres .offre p {
    min-height: 50px;
}
div.tarifs p.price{
    min-height: auto;
    font-size: 26px;
}
div.tarifs a.button{
    color: white;
    background-color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    display: block;
    text-decoration: none;
}

div.tarifs .accompagnement-sur-mesure{
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

section.modes-de-paiement{
    margin-bottom: 50px;
}
section.modes-de-paiement h2{
    text-align: center;
    margin-bottom: 20px;
}
section.modes-de-paiement .paiements{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
}
section.modes-de-paiement .paiements .liste{
    max-width: 70%;
    margin-left: 50px;
}

/**
* Page Contact
*/

div.contact {
    text-align: center;
    margin-bottom: 50px;
}
div.contact .contact-form {
    display: flex;
    max-width: 660px;
    margin: 0 auto;
}
div.contact .contact-form p{
    text-align: left;
    margin-right: 10px;
}
div.contact .contact-form form{
    text-align: left;
    min-width: 370px;
}
div.contact .contact-form form input,
div.contact .contact-form form textarea{
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Lato, sans-serif;
}
div.contact .contact-form form input:focus,
div.contact .contact-form form textarea:focus{
    outline: none;
    border-color: var(--primary-color);
}
div.contact .contact-form form textarea{
    height: 200px;
}
div.contact .contact-form form button{
    color: white;
    background-color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    display: block;
    text-decoration: none;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
}
div.contact .contact-form form button:hover{
    scale: 1.05;
}

/**
* Pages conditions d'utilisation et conditions générales de vente
*/
section.conditions {
    max-width: 1080px;
    margin: 50px auto;
}


/* Footer */
footer {
    background-color: #f8f8f8;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

footer img {
    height: 30px;
}

footer a{
    color: black;
}