@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jost", sans-serif;
}

/* Calculator Styles */
.containeur{
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 50px 0 100px 0;
}
.loc{
    display: flex;
    flex-direction: column;
    flex-basis: 60%;
    padding: 0 70px 20px 10px;
}
.loc img{
    width: 220px;
    padding-bottom: 15px;
    display: none;
}
.loc strong{
    color: #4477d1;
}
.loc h2{
    color: #fd94c5;
    font-size: 2.2em;
    text-transform: uppercase;
    padding-bottom: 25px;
}
.loc h3{
    color: #333;
    font-size: 1.5em;
    text-transform: uppercase;
    padding-bottom: 25px;
}
.loc ul {
    padding-bottom: 20px;
}
.loc ul li{
    list-style-type: none;
    padding-bottom: 5px;
    font-size: 17px;
}
.loc p{
    list-style-type: none;
    padding-bottom: 25px;
    font-size: 17px;
}
.calculator {
    background: #ffffff;
    flex-basis: 40%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    padding: 20px 30px 30px 30px;
    text-align: center;
    height: 100%;
}
.calculator img{
    width: 300px;
    margin-bottom: 25px;
}
.calculator h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
}
label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9fafb;
    transition: border-color 0.3s ease;
    color: #333;
}
select:focus {
    border-color: #4477d1;
    outline: none;
}
button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4477d1;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
    background-color: #3562b0;
    transform: translateY(-1px);
}
button:active {
    transform: translateY(0);
}
.result {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    background-color: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    opacity: 0;
    transform: translateY(-20px); /* Initialement décalé vers le haut */
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.result.show {
    opacity: 1;
    transform: translateY(0); /* Retour à la position normale */
}


/* Section avantages */
.avcontain{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 100px 0;
}
.avcontain h2{
    text-align: center;
    text-transform: uppercase;
    font-size: 3em;
    padding-bottom: 50px;
    color: #333;
}
.avcontain h2 i{
    padding-left: 10px;
    color: #fd94c5;
}
.av {
    display: flex;
    justify-content: space-around;
    max-width: 1400px;
    margin: 0 10px 0 10px;
    width: 100%;
    flex-wrap: wrap;
}
.av .box{
    width: 380px;
    margin: 20px;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: transform 0.3s;
}
.av .box img{
    width: 45px;
    margin-bottom: 20px;
}
.av .box:hover{
    transform: translateY(-3px);
}
.av .box h3{
    padding-bottom: 15px;
    text-transform: uppercase;
    color: #4477d1;
}
.av .box ul li{
    list-style-type: none;
    padding-bottom: 5px;
    font-size: 17px;
}

/*  Lien retour site web */
.retour{
    display: flex;
    width: 100%;
    align-items: center;
    height: 150px;
    justify-content: center;
    background-color: #4477d1;
    color: #fff;
    font-weight: bold;
    font-size: 2em;
    transition: background-color 0.4s;
    text-decoration: none;
    border-radius: 50px 50px 0 0;
}
.retour i{
    padding-left: 17px;
    margin-top: 4px;
}
.retour:hover{
    background-color: #fd94c5;
}



/*MEDIA QUERY*/
@media only screen and (max-width:1180px){
    /* Calculator Styles */
    .containeur{
        padding: 50px 0 50px 0;
    }
    .loc{
        padding: 0 40px 20px 10px;
        flex-basis:55% ;
    }
    .calculator {
        width: 100%;
    }

    /* Section avantages */
    .avcontain{
        padding: 75px 0;
    }
    .avcontain h2{
        font-size: 2.5em;
    }
}
@media only screen and (max-width:850px){
    /* Calculator Styles */
    .containeur{
        flex-direction: column;
        padding:10px 0 50px 0 ;
        align-items: center;
    }
    .loc{
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
    }
    .calculator {
        width: 94%;
        max-width: 650px;
    }

    /* Section avantages */
    .avcontain{
        padding: 75px 0;
    }
    .avcontain h2{
        font-size: 2.5em;
    }
}
@media (max-width: 480px) {

    /*Calculateur Styles*/
    .containeur{
        padding:0 0 50px 0 ;
    }
    .loc h2{
        font-size: 2em;
        line-height: 42px;
    }
    .loc img{
        width: 220px;
        padding-bottom: 15px;
        display: flex;
    }
    .calculator {
        padding: 20px;
    }
    .calculator img{
        width: 220px;
        margin-bottom: 15px;
    }
    .calculator h2 {
        color: #333;
        margin-bottom: 20px;
        font-size: 20px;
    }
    /* Section avantages */
    .avcontain{
        padding: 50px 0;
    }
    .avcontain h2{
        font-size: 2em;
        padding-bottom: 25px;
    }

    /*  Lien retour site web */
    .retour{
        font-size: 1.8em;
        border-radius: 40px 40px 0 0;
    }
}
