*{
    padding: 0;
    margin: 0;
    font-family: arial;
    list-style-type: none;
    text-decoration: none;
    border: none;
    outline: none;
}

.title {
    margin-bottom: 25px;
}

.title h2 {
    margin-bottom: 10px;
    font-size: 40px;
    font-weight: normal;
}

.title p {
    color: #5F5F5F;
}
/*erreur*/
#error2, #error1, #error3 {
    color: red;
    font-size: 14px;
    font-weight: normal;
    background-color: black;
    border-radius: 5px;

}

#error2 {
    margin-left: 20%;
}

#error3 {
    margin-top: 10px;
}

/* REDIRECT */
#redirect {
    margin: auto;
    width: 300px;
    max-height: 250px;
    background-color: #f3f0f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 4px 8px #888888;
    border-radius: 10px;
    padding: 25px;
    margin-top: 5%;
    text-align: center;
}

#redirect button {
    margin-top: 15%;
    color: white;
}

#redirect button:hover {
    cursor:pointer;
    background-color: #58a27b;
}

#redirect img {
    width: 250px;
    margin: auto;
    margin-top: -100px;
}

#redirect p {
    margin-top: -70px;
}
/*NAV*/
nav {
    height: 100px;
    display: flex;
    justify-content: space-between;
}

#left {
    display: flex;
    align-items: center;
}

nav img {
    width: 200px;
    margin-left: 50px;
}

#right, #right div {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

nav a {
    color: black;
}

#le-buttun-perdu {
    display: flex;
    justify-content: end;
}

/*HEADER*/
header {
    height: 600px;
    background-image: url("img/header.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
}

#left-header h1, #left-header p, #left-header button {
    color: white;
    text-align: center;
}

#left-header, #illustration, .right-header {
    margin-top: 145px;
    width: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 20px;
}

#left-header p {
    font-size: 25px;
    margin-bottom: 50px;
    margin-top: 25px;
}

#left-header button, #hbutton, #redirect button {
    padding-top: 11px;
    padding-bottom: 11px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 10px;
    background-color: #8BD8AE;
    font-weight: bold;
    font-size: 20px;
    border: none;
}

#redirect button {
    font-size: 18px;
}

#left-header button:hover {
    background-color: #58a27b;
    cursor: pointer;
}

#left-header {
    margin-top: 145px;
}

.right-header p{
    color: white;
    font-size: 20px;
    font-weight: BOLD;
}

/* FORM */
.f2pl {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.fl {
    width: 100%;
    margin: auto;
    margin-top: 15px;
}

.fl input {
    width: 94%;
}

.fl select {
    width: 100%;
}

.f2pl input {
    width:40%;
}

.fl input, .fl select, .f2pl input {
    padding: 15px;
}

form input, form select {
    background-color: white;
    border-radius: 10px;
}

form select {
    color: grey;
}

#hbutton {
    background-color: #0371B7;
    color: white;
    width: 155px;
    margin-top: 15px;
}

#hbutton:hover {
    background-color: #015280;
    cursor: pointer;
}

form {
    max-width: 485px;
    width: 85%;
    margin-left: 20px;
}

/*TRANSITION ENERGETIQUE */
#transition-energetique, #accompagnement, #services, #form, #container{
    width: 90%;
    margin: auto;
    margin-top: 100px;
}
.container-card a {
    color: white;
}

.container-card, #container-stage {
    display: flex;
    justify-content: space-between;
}

#card1 {
    background-image: url("img/card1.png");
    transition: transform 0.3s ease-in-out;
}


#card1:hover {
    transform: scale(1.05);
}

#card2 {
    background-image: url("img/imgcard2.png");
    transition: transform 0.3s ease-in-out;
}

#card2:hover {
    transform: scale(1.05);
}

#card3 {
    background-image: url("img/imgcard3.png");
    transition: transform 0.3s ease-in-out;
}

#card3:hover {
    transform: scale(1.05);
}

#card1, #card2, #card3, #card4, #card5, #card6 {
    height: 600px;
    display: flex;
    align-items: end;
    box-shadow: 0px 4px 8px #888888;
}

/*TRANSITION ENERGETIQUE */
#card1 p, #card2 p, #card3 p {
    padding: 35px;
    font-weight: bold;
    font-size: 20px;
}

/* ACCOMPAGNEMENT */
#container-stage {
    display: flex;
    flex-direction: row;
    margin: auto;
}

.stage {
    background-color: rgba(54, 165, 5, 0.13);
    width: 250px;
    height: 300px;
    border-radius: 10px;
    margin-right: 3%;
    text-align: center;
}

#container-stage img {
    width: 90px;
    height: 90px;
}

.stage div{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

#accompagnement button, .container-card button {
    margin-top: 45px;
    border-radius: 10px;
    border: solid 3px #3AA406;
    font-weight: bold;
    font-size: 18px;
    color: #3AA406;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: white;
}

#accompagnement button:hover, .container-card button:hover {
    cursor: pointer;
    background-color: #f1f0f0;
}

#t {
    margin: auto;
    width: 350px;
}

/*SERVICES*/
#services .container-card{
    color: white;
}

.container-card button {
    background-color: rgba(255, 255, 255, 0);
    margin-top: 0px;
}

#card4 {
    background-image: url("img/imgcard4.png");
}

#card5 {
    background-image: url("img/imgcard5.png");
}

#card6 {
    background-image: url("img/imgcard6.png");
}

#card4 div, #card5 div, #card6 div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    margin-bottom: 5px;
    width: 100%;
}

#card4 h3, #card5 h3, #card6 h3{
    margin-right: 20px;
}

#card4, #card5, #card6, #transition-energetique a {
    width: 31%;
}

#services button {
    margin-right: 10px;
}



/* FORM FIN */
#contact {
    background-color: #E6F4E1;
    border-radius: 10px;
    display: flex;
    margin-bottom: 50px;
    height: 500px;
}

#illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
}

#grey {
    background-color: #D9D9D9;
    width: 2px;
    height: 500px;
}

#form img {
    width: 300px;
}

#illustration {
    text-align: center;
    margin-top: 0px;
}

#illustration h3 {
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 25px;
}

#illustration p {
    font-size: 20px;
    font-weight: lighter;
    margin-bottom: 15px;
}
#container-form {
    width: 50%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

#container-fbutton {
    display: flex;
    justify-content: end;
    width: 98%;
}

#container-fbutton input {
    color: #3AA406;
    border-radius: 10px;
    border: solid 3px #3AA406;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 30px;
    background-color: transparent;
    font-weight: bold;
    font-size: 15px;
}

#container-fbutton input:hover {
    cursor: pointer;
    background-color: rgba(139, 216, 174, 0.28);
}

/* RESPONSIVE */
@media(max-width: 1500px) {
    #container-stage {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stage {
        margin-top: 25px;
    }
}

@media(max-width:1385px) {
    #card4 div , #card5 div, #card6 div {
        flex-direction: column;
        text-align: center;
    }

    #card4 h3 {
        margin-bottom: 25px;
    }

    #card5 h3, #card6 h3 {
        margin-bottom: 45px;
    }

    #form h3{
        font-size: 25px;
    }
    #form p {
        font-size: 18px;
    }
}

@media(max-width: 1171px) {
    #form h3{
        font-size: 23px;
    }
    #form p {
        font-size: 18px;
    }

    #card1, #card2, #card3, #card4, #card5, #card6 {
        height: 500px;
        background-position: bottom;
    }
}

@media (max-width: 1100px) {
    .fl input {
        width: 91%;
    }
    .f2pl input:first-child{
        margin-right: 15px;
    }
    .right-header p{
        margin-left: 30px;
    }
    #error1, #error2, #error3 {
        margin-left: 5px;
        margin-right: 0px;
    }
    #container-form {
        margin-right: 20px;
    }
}

@media (max-width: 970px) {

    nav img {
        margin-left: 0;
    }
    #right {
        margin-right: 0;
    }
    nav p {
        font-size: 15px;
    }
}

@media (max-width: 865px) {
    #card5 h3 {
        margin-bottom: 25px;
    }

    #illustration img {
        width: 250px;
    }
    .right-header p{
        margin-left: 40px;
        margin-right: 40px;
    }

    #error1, #error2, #error3 {
        margin-left: 5px;
        margin-right: 0px;
    }

    nav p {
        font-size: 14px;
    }
    nav img {
        width: 150px;
    }
    #left-header h1 {
        font-size: 25px;
    }
    #left-header p {
        font-size: 20px;
    }
}

@media (max-width: 785px) {
    #card1, #card2, #card3, #card4, #card5, #card6 {
        height: 400px;
        width: 75%;
    }

    #transition-energetique a {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .container-card {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .fl input {
        width: 93%;
    }
    #illustration h3 {
        font-size: 25px;
    }
    #illustration p {
        font-size: 15px;
    }
    #container-form input, #container-form select{
        font-size: 10px;
    }

    #container-fbutton input {
        font-size: 13px;
    }

    #contact {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: 50px;
    }
    #grey {
        display: none;
    }
    #illustration, #container-form {
        margin: auto;
        margin-top: 0px;
        margin-bottom: 0px;
        width: 85%;
    }

    #illustration {
        padding: 0px;
    }
    nav p {
        font-size: 12px;
    }
    #left-header, .right-header {
        margin-top: 75px;
    }
    #transition-energetique, #accompagnement, #services{
        margin-top: 75px;
    }
    .title h2 {
        font-size: 30px;
    }
}

@media (max-width: 745px) {
    header {
        flex-direction: column;
        align-items: center;
        height: 100%;
        padding-bottom: 75px;
    }

    .right-header {
        margin-top: 35px;
    }

    .right-header, #left-header {
        width: 75%;
    }

    #left-header p {
        margin-bottom: 25px;
    }
}

@media (max-width: 660px) {
    nav a, nav p {
        width: 55%;
        font-size: 10px;
        font-weight: bold;
    }
}

@media (max-width: 500px) {
    #card1, #card2, #card3, #card4, #card5, #card6 {
        height: 350px;
    }
    #right {
        display: none;
    }
    nav {
        justify-content: center;
        height: 75px;
    }

}

@media (max-width: 430px) {
    #left-header p {
        display: none;
    }
    #left-header button {
        margin-top: 25px;
    }
    #form .title h2 {
        font-size: 20px;
    }
    #form .title p {
        font-size: 14px;
    }
    .right-header {
        text-align: center;
    }
    #le-buttun-perdu {
        justify-content: center;
    }
    .right-header form{
        margin: auto;
    }
    .title h2 {
        font-size: 20px;
    }
    .title p {
        font-size: 12px;
    }
}