/* media query inititation is here */
@media only screen and (max-width: 1140px) {
    #left-part {
        width: 0vw;
    }

    #right-part {
        width: 100vw;
    }
}


@media screen and (min-width: 1024px) {
    .constraint-row {
        max-width: 1288px;
    }

    .header-row {
        gap: 20px;
    }

    .translation-bottom .select-menu .options {
        bottom: 0px !important;
        top: 0px !important;
    }

    #no-access-small-user {
        display: none;
    }
}

@media only screen and (max-width: 1475px) {
    .header-row {
        padding: 15px 4.33%;
    }
}

@media screen and (max-width : 600px) {
    #head-logo-box {
        width: 90px;
        height: 51.2px;
        background-image: url(../image/logo/geoimpact-logo-2-lignes-sable-azur-RGB.png);
        background-size: contain;
        background-repeat: no-repeat;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .width60 {
        width: 100%;
    }

    .width40-ondemand {
        width: 100%;
    }

    .flexcentercol {
        width: 100% !important;
    }

    .mt-64 {
        margin-top: unset;
    }

    .medium-body {
        font-size: 1rem;
        text-align: center;
    }

    th,
    td {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .title-row-ondemand,
    .ondemand-image-box {
        width: 100%;
    }

    .animated-title {
        font-size: 21px;
    }

    #animated-wrapper {
        padding: 5px 14px;
        margin: unsetb !important;
    }

    .ondemand-image-box {
        margin-top: 0px;
        margin-left: unset;
        margin-bottom: 65px;
    }

    .flex-3 {
        justify-content: flex-end;
    }

    .footer-logo {
        width: 99px;
        height: auto;
        padding-right: 15px;
    }

    .pb-60 {
        padding-top: 0px !important;
    }

    .mobile-wrap {
        padding-left: 8.33%;
        padding-right: 8.33%
    }

    .flex-2 {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-direction: column;
    }

    .page-title.ondemand {
        text-align: left;
        line-height: normal !important;
    }

    .items-link,
    .items-link-even {
        padding: 22px;
    }

    .head-menu {
        height: unset !important;
    }

    .head-links,
    .head-menu {
        gap: 0 !important;
    }

    .linear-title {
        margin-top: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-subtitle.ondemand {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .page-subtitle {
        width: 100%;
    }

    .head-menu {
        height: unset !important;
    }

    .head-links,
    .head-menu {
        gap: 0 !important;
    }



    .pt-120 {
        padding: unset !important;
    }

    .pb-120 {
        padding-bottom: 40px;
    }

    .box-subtitle {
        font-size: 1rem;
    }

    .box-title,
    h3.indicator-title {
        font-size: 22px;
        color: #233652;
        font-weight: 600;
    }

    .pt-60 {
        padding-top: 40px;
    }

    .width60 {
        gap: 20px !important;
    }


    .btn-mobile-section {
        margin-bottom: 20px;
    }

    .footer-subrow {
        flex-direction: column;
    }

    .translation-bottom {
        display: block;
    }

    .section-title {
        font-weight: bold;
        text-align: center;
        font-size: 36px;
        margin-top: 20px !important;
        line-height: 1.2 !important;
    }

}

@media screen and (min-width : 600px) and (max-width : 760px) {
    .flex-2 {
        display: flex;
        align-items: center;
        gap: 24px;
        flex-direction: column;

    }

    h3.indicator-title {
        font-family: 'Gotham-Medium';
        font-size: 16px;
        margin: 0 !important;
    }

    .grid-container {
        grid-template-columns: 1fr;
        margin-top: 20px;

    }

    .width60 {
        width: 100%;
    }

    .width40-ondemand {
        width: 100%;
    }

    .box-subtitle {
        font-family: 'Gotham-Book';
        font-size: 12px;
        margin: 0 !important;
    }

    .box-title {
        font-family: 'Gotham-Medium';
        font-size: 16px;
        line-height: 2rem;
        margin: 0 0 10px 0 !important;
    }

    .flexcentercol {
        width: 100% !important;
    }

    .section-title {
        color: var(--pal-7);
        font-size: 22px;
        font-family: 'Gotham-Medium';
        line-height: 2.75rem;
    }

    .footer-logo {
        width: 120px;
        height: auto;
    }

    .flex-3 {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        flex-direction: row-reverse;
    }

    .footer-subrow {
        flex-direction: column;
        gap: 10px;
    }

    .mt-64 {
        margin-top: unset;
    }

    .medium-body {
        font-size: 13px;
    }

    th,
    td {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .page-title.ondemand {
        font-size: 36px;
        text-align: left;
        line-height: 56px;
    }

    h1.page-title.ondemand {
        margin: 20px 0;
    }

    .title-row-ondemand,
    .ondemand-image-box {
        width: 100%;
    }

    .animated-title {
        font-size: 1rem;
    }

    #animated-wrapper {
        padding: 5px 14px;
    }

    .ondemand-image-box {
        margin-top: 0px;
        margin-left: unset;
        margin-bottom: 65px;
    }

    .page-subtitle.ondemand {
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .mobile-wrap {
        padding-left: 8.33%;
        padding-right: 8.33%
    }

    .page-subtitle {
        font-family: 'Gotham-Book';
        font-size: 1rem;
        margin: 5px 0 45px;
        text-align: left;
        line-height: 1.5;
    }

    .head-menu {
        height: unset !important;
    }

    .items-link,
    .items-link-even {
        padding: 22px;
    }

    .head-links,
    .head-menu {
        gap: 0 !important;
    }

    .btn-mobile-section {
        margin-bottom: 20px;
    }

    .footer-subrow {
        flex-direction: column;
    }

    .translation-bottom {
        display: block;
    }

}


/*
This query will take effect for any screen smaller than 760px
and also iPads specifically. */
@media only screen and (max-width: 761px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    /* Force table to not be like tables anymore */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    .header-row {
        display: none;
    }

    .hamburger-menu {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        flex-wrap: nowrap;
        z-index: 9;
        padding-left: 32px;
        padding-right: 32px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    td:nth-of-type(1):before {
        content: "Indicateur";
    }

    td:nth-of-type(2):before {
        content: "Description";
    }

    td:nth-of-type(3):before {
        content: "Application";
    }

    td:nth-of-type(4):before {
        content: "Source de données";
    }

    tbody tr td,
    thead tr th {
        width: 100% !important;
        vertical-align: top;
    }

    tbody tr td:last-child,
    thead tr th:last-child {
        width: 100% !important;
        text-align: unset;
    }

    .head-menu {
        height: unset !important;
    }

    .items-link,
    .items-link-even {
        padding: 22px;
    }

    .head-links,
    .head-menu {
        gap: 0 !important;
    }

    .btn-mobile-section {
        margin-bottom: 20px;
    }

    .footer-subrow {
        flex-direction: column;
    }
}