.newsletter_btn{
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.obligatoire{
    color: red;
}

.petition_form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    background-color: white;
    padding: 14px 20px 20px 20px;
    margin-left: 30px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    outline: 1.5px solid #8F3200;
    outline-offset: 2px;
    transform: scale(0.9);
}

.petition_form:hover{
    transform: scale(0.91);
}

.petition_form input, .petition_form select {
    height: 40px;
    outline: none;
    border-radius: 2px;
    background-color: #EEEEEE;
    outline: white;
    border: none;
    color: black;
    width: 100%;
}

.petition_form select:focus{
    border: 1px solid #8F3200   ;
    background-color: #8F3200;
    color : white;
}

.petition_form input[type="text"]:focus, .petition_form input[type=email]:focus{
    border: 1px solid #8F3200   ;
    background-color: #8F3200;
    color : white;
}

.petition_form select option{
    background-color: white;
    color: black;
}

.petition_form label{
    color: #8F3200;
    font-size: 0.8em;
    margin-bottom: 10px;
    margin-top: 20px;
    width: 310px;
    text-align: left;
    font-weight: bolder;
}

.petition_form input:focus{
    transform: scale(1.02);
}

#send_me_newsletter {
    width: 1rem;
}

.newsletter_lbl{
    font-size: 0.7em;
}

.petition_form input[type="submit"] {
    background-color: #8F3200;
    color: white;
    display: flex;
    align-items: center;
    height: 40px;
    text-align: center;
    outline: none;
    margin-top: 20px;
}

.petition_form input[type="submit"]:hover{
    background-color: rgb(128, 45, 0);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer ;
}
.checky{
    margin-top: 10px;
    display: flex;
    align-items: center;
    height: 50px;
    gap: 10px;
    padding: 0 30px;
}

.checky label {
    margin: 0;
    width: 250px;
}

.container{
    margin: 0 0 100px 0;
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
}

.all_petition_container{
    margin: 100px 0;
}

.errorbloc{
    min-height: 40vh;
    background: white;
    display: flex;
    justify-content: start;
    margin-top: 100px;
    flex-direction: column;
    align-items: center;
}

.middle{
    display: flex;
    gap: 50px
}

.button{
    padding: 1rem;
    background-color: rgb(244, 87, 0);
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}
.desc * {
    text-align: justify;
}

.desc {
    display: grid;
    grid-auto-columns: auto;
}

.bottom .button:hover{
    background-color: rgb(128, 45, 0);
    text-decoration: none;
    transform: rotate(2deg);
}

.bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: self-end;
}

.major{
    min-width: 300px;
    height: 300px;
}

.main_image{
    width: 100%;
    height: 400px;
  }

.close{
    background-color: grey;
}

.close * {
    color: white;
}

.bottom .close:hover{
    background-color: grey;
}

.all_petition_container .bottom .button p {
    padding: 0 !important;
    color: white;
    font-weight: bolder;
}

.main-title{
    text-decoration: none;
}

.main-title h2 {
    color: black;
}

.whom{
    margin: 30px 0 40px 0;
}

.whom p{
    font-weight: bolder;
}

.box{
    width: 350px;
    height: 300px;
    background-color: lightgray;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.closed{
    display: flex;
}

.box h1 {
    font-size: 1.4em;
}

.box p {
    font-size: 1.2em;
    text-align: center;
}
.count{
    background-color: orangered;
    color: white;
    padding: 10px 20px;
    width: fit-content;
    border-radius: 10px;
}

.counter{
    font-weight: bolder;
    margin: 0;
}

.all-content{
    display: flex;
    gap: 50px;
    height: min-content;
    min-height: 100vh;
}

.right{
    flex-basis: 30%;
    display: flex;
    flex-direction: column;
    align-items: right;
    position: sticky ;
    top: 30px;
}

.important{
    font-size: 1.2em;
    
}

.comments{
    margin: 20px 0px;
    max-width: 400px;
}

@media screen and (max-width: 1024px) {
    .all-content{
        flex-direction: column;
        gap: 0;
    }

    .container{
        flex-basis: 100%;
        margin: 0 100px 120px 100px;
    }

    .right{
        flex-basis: 100%;
        align-items: center;
        margin-top: -30px;
    }

    .petition_form {
        width: 60%;
        margin: 0;
    }

    .petition_form label {
        width: 100%;
    }
    .middle{
        flex-direction: column;
    }

    .all_petition_container{
        width: 80vw;
        margin: 50px 0;
    }

    .elementor-widget-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 500px) {

    .container{
        margin: 0 0 50px 0;
        max-width: 90vw;
    }

    .desc{
        font-size: 0.8em;
    }

    .major{
        height: 200px;
    }

    .main_image{
        height: 200px;
    }

    .petition_form{
        width: 100%;
    }

    .middle{
        flex-direction: column;
    }
    .bottom{
        margin: 20px 0 0 0;
        padding: 0;
        width: 100%;
        flex-direction: column-reverse;
        gap: 20px;
    }

    h1 {
        font-size: 1.8em;
        text-align: center;
        margin: 20px 0 -20px 0;

    }

    .main-title h2{
        font-size: 1.5em;
    }
}