@media (min-width: 770px) {
    .nav-mobile{
        display: none;
    }
}

@media (max-width: 770px) {

    main{
        flex-direction: column;
    }

    .content {
     margin: 0;
    }



    .content-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .content-title h2{
     margin-top: 0;
    }

    .content-title-home-mobile h3{
        max-width: 400px;
        font-size: 18px;
    }

    .cards {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .card {
        margin: 0px 14px 18px 14px;
        width: 177px;
    }

    .card-img-full, .card-img, .card-img-full-other, #card-img-cgv.card-img-full, .card-img-full.sign-estimate, .card-img-custom {
        width: 177px;
        height: 198px;
    }

    .card-img-custom-text{
        font-family: markpro, sans-serif;
        font-size: 14px;
        color: #fff;
        margin: 0;
        line-height: 1.2;
        text-align: center;
      }
      
      .card-img-custom-subtext{
        font-family: markproblack, sans-serif;
        font-size: 14px;
        color: #fff;
        margin: 0;
        line-height: 1.2;
        text-align: center;
      }

      .custom-logo-extension{
        top: 110px;
        left: 42px;
      }

    .logo-group{
        margin: 4px;
    }

    .content-main-left-cards{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-main-left-card{
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
        margin-right: 0;
        height: 190px;
        max-width: 400px;
        width: 378px;
    }
    .content-main-left-card svg{
        grid-column: 1;
        grid-row: 1 / span 4;
    }
    .content-main-left-card h3{
        grid-column: 2;
        grid-row: 1 / span 2;
        font-family: markpro, sans-serif;
        font-size: 18px;
        font-weight: 300;
        text-align: start;
        align-self: end;
        padding-left: 5px;
        transform: translateY(-5px);
    }
    .content-main-left-card p{
        grid-column: 2;
        grid-row: 3 / span 4;
        font-size: 12px;
        text-align: start;
        align-self: start;
        padding-left: 5px;
        transform: translateY(-5px);
    }
    .content-main-left-card a {
        grid-column: 1 / span 2;
        grid-row: 5 / span 2;
        transform: translateY(-10px);
    }
    .content-main-left-card a div{
        width: 100%;
    }

    .content-main-left{
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
        transform: translateY(0px);
    }

    .content-title{
        margin-top: 0px;
        margin-bottom: 16px;
      }

    .content-title h2, .company-form-title {
        font-size: 35px;
    }

    .content-title h3{
        font-size: 22px;
        padding: 0 16px;
    }

    .content-title-home-mobile h3{
        margin-bottom: 0px;
    }

    .modal-uploadfile-edited-input-container, 
    .modal-uploadfile-edited-input-container input,
    .modal-uploadfile-input-container input {
        width: 641px;
        height: 221px;
    }

    .modal-uploadfile-edited-input-text{
        text-align: center;
    }

    .checkbox-sign-modal, .checkbox-sign-estimate-modal{
        width: var(--size-formwidth);
        padding: 0 16px;
    }

    .checkbox-sign-modal label, .checkbox-sign-estimate-modal label{
        width: 100%;
        text-align: start;
    }

    .sign-modal-title, .sign-estimate-modal-title{
        font-size: 45px;
    }

    .content-delivery{
        display: flex;
        align-items: center; 
        justify-content: center;
    }

    .company-searchbar-form{
        width: 100%;
        padding: 24px;
    }
    
    .company-searchbar-form input{
        width: 100%;
    }

    .company-searchbar-button{
        right: 34px;
    }
}


@media (max-width: 664px) {

    .accueil-company-card, .new-company{
        width: 174px;
        margin: 8px;
    }

    .modal-uploadfile-edited-input-container, 
    .modal-uploadfile-edited-input-container input,
    .modal-uploadfile-input-container input {
        width: 541px;
        height: 221px;
    }

    #checklist_radio_choice {
        display: grid;
        grid-template-columns: auto 1fr;
      }

    #company_type_operation, #company_edit_type_operation{
        display: grid;
        grid-template-columns: auto 1fr;
        width: fit-content;
    }

    .company-type-operation div{
        display: flex;
        justify-content: center;
    }
      
    #checklist_radio_choice label{
    text-align: start;
    }

    #company_type_operation label,
    #company_edit_type_operation label{
    text-align: start;
    margin-right: 0;
    width: fit-content;
    }

    #company_type_operation input,
    #company_edit_type_operation input{
    margin-left: 0px;
    }


      
    .logo-company-form-layout, .logo-sign-modal-layout, .logo-sign-estimate-modal-layout, .logo-terminalspecs-modal-layout, .logo-ubereat-modal-layout, .logo-deliveroo-modal-layout, .logo-ubereattips-modal-layout, .logo-deliverootips-modal-layout {
        position: absolute;
        bottom: unset;
        right: unset;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    
    .logo-company-form, .logo-ubereat-modal, .logo-deliveroo-modal, .logo-ubereattips-modal, .logo-ubereattips-modal2, .logo-checklist-modal, .logo-sign-modal, .logo-sign-estimate-modal, .logo-terminalspecs-modal, .logo-deliverootips-modal, .logo-deliverootips-modal2 {
        width: 158px;
        height: 63px;
        display: flex;
        justify-content: flex-end;
        cursor: pointer;
    }

    .sign-modal-container, .sign-estimate-modal-container, .company-form-container {
        margin-top: 60px;
        padding: 0 26px;
    }
    .checklist-modal-container, .terminalspecs-modal-container, .deliveroo-modal-container, .ubereat-modal-container, .deliverootips-modal-container, .ubereattips-modal-container{
        margin-top: 60px;
    }
    
    .sign-modal-title, .sign-estimate-modal-title{
        font-size: 45px;
    }
    
    .checkbox-sign-modal, .checkbox-sign-estimate-modal{
        width: auto;
        padding: 0 16px;
    }

    .terminalspecs-modal-container h2 {
        width: 80%;
    }

    .terminalspecs-input-group input{
        width: 173px;
        height: 67px;
        margin: 7px;
    }

    .terminalspecs-modal-text{
        margin: 24px 0;
    }

    .terminalspecs-accept div{
        display: flex;
        margin: 0 0 7px 0px;
    }

    .terminalspecs-form-input-container, .terminalspecs-form-submit, .deliveroo-form-input, .ubereat-form-input, .deliveroo-form-submit, .ubereat-form-submit{
        width: 360px;
    }


    .company-form-submit, .terminalspecs-form-select, .company-form-input, form[name="company"] div, form[name="company_edit"] div{
        width: 100%;
    }

    form[name="company"] .company-settings, form[name="company_edit"] .company-settings{
        width: fit-content;
    }

    .deliveroo-modal-title, .ubereat-modal-title,  .deliverootips-modal-title, .ubereattips-modal-title {
        font-size: 45px;
    }

    .deliverootips-modal-text, .deliverootips-modal-container, .ubereattips-modal-text, .ubereattips-modal-container{
        width: 100%;
        padding: 0 16px;
        min-width: unset;
    }

    .company-searchbar-form input, .company-searchbar-form input::placeholder{
        font-size: 24px;
    }

    form[name="create_password"], form[name="change_password"] {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 16px;
    }

    form[name="create_password"] div:nth-child(3), form[name="change_password"] div:nth-child(3) {
        width: 100%;
    }
}
    
    
@media (max-width: 616px) {

    .card-info{
        width: 384px;
        margin-bottom: 27px;
        height: 142px;
    }

    .card-img-custom{
        width: 100%;
    }

    .card-img-custom-text{
        margin-bottom: 12px;
    }
}
    
@media (max-width: 564px) {
    :root {
        --size-formwidth: 100%;
    }

    .checklist-modal-container form, .terminalspecs-modal-container form {
        padding: 16px;
    }

    form[name="company"], form[name="company_edit"]{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 16px;
    }
    

    .close-cross-bg, .close-cross-bg-edit{
        width: 40px;
        height: 40px;
    }

    .zoommodal-content {
        padding-top: 40px;
    }

    .modal-uploadfile-edited-input-container, 
    .modal-uploadfile-edited-input-container input,
    .modal-uploadfile-input-container input {
        width: 441px;
        height: 221px;
    }

    .terminalspecs-modal-subtitle{
        width: 80%;
    }

    #categories-list{
        width: 100%;
        padding: 16px;
    }

    .mobile-admin-nav-buttons-layout{
        display: grid;
        grid-column: 1fr 1fr;
        grid-row: 3fr 1fr;
    }

    .mobile-admin-nav-buttons-layout a{
        display: contents;
    }
    
    .admin-nav-item-clients{
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }
    
    .admin-nav-item-search{
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }
    
    .admin-nav-item-logout{
        grid-column: 1 / span 2;
        grid-row: 2;
        display: flex;
        flex-direction: row;
        margin: 0;
        width: 304px;
        height: 70px;
    }


}