@charset "UTF-8";

/*
Theme Name: Eurovia
Theme URI: https://reactif.ca/
Author: Michael Adam
Author URI: https://reactif.ca/
Description: Theme pour l'outil de commande d'Eurovia pour Imprimerie Élite
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --main-color: #23477e;
    --secondary-color: #e9edf2;
    --accent-color: #aee7fc;

    --color-dark: #000000;
    --other-color: #a5c0d1;
}

@media print {
    header,
    footer {
        display: none;
        visibility: hidden;
    }
}

#wpadminbar {
    overflow: hidden;
    opacity: 0;
    top: -25px;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
    transition-timing-function: cubic-bezier(0.36, 0, 0, 1);
}

#wpadminbar .input[type="text"] {
    width: auto;
}

#wpadminbar:hover {
    opacity: 1;
    top: 0;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
    transition-timing-function: cubic-bezier(0.36, 0, 0, 1);
}

.nopadding {
    padding: 0;
}

html {
}
body {
    color: var(--color-dark);
    font-family: "Roboto", serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
footer {
    margin-top: auto;
}
header {
    top: -1px;
    width: 100%;
    z-index: 10;
    position: sticky;
}

img {
    max-width: 100%;
}

table.commande-print {
    border-collapse: collapse;

    tr:nth-child(2n) {
        background-color: hsl(from var(--accent-color) h s calc(l * 1.15));
    }

    tr:has(th) {
        color: white;
        background-color: var(--main-color);
    }

    th,
    td {
        border: black 1px solid;
        padding: 2px 15px;
    }

    td {
        &:empty {
            background-color: var(--secondary-color);
        }
    }
}

header.is-sticky #btn-filtrer-categorie {
    line-height: 33px;
    transition: all 400ms;
}

header.is-sticky .logo-eurovia-header-commande {
    margin-top: 15px;
    margin-bottom: 15px;
    transition: all 400ms;
}
.lang-container.commande {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.set-lang-en,
.set-lang-fr {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color);
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: var(--main-color);
}
/*.set-lang-en:hover{
    color: var(--main-color) !important;

}
.set-lang-fr:hover{
    color: var(--main-color) !important;
}*/

a,
button,
#btn-fermer-filtre {
    -webkit-transition: background 0.5s ease-out, color 0.5s ease-out;
    -moz-transition: background 0.5s ease-out, color 0.5s ease-out;
    -o-transition: background 0.5s ease-out, color 0.5s ease-out;
    transition: background 0.5s ease-out, color 0.5s ease-out;
}

a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

.logo-login {
    display: flex;
    align-items: center;
    height: 100%;
}

.lwa {
    margin-bottom: 70px;
}

.main-header {
    padding: 0px;
    background-color: var(--main-color);
}

.main-header-text {
    /* width: 240px; */
    margin: auto;
    border-radius: 35px;
    padding: 44px 18px 18px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--secondary-color);
    text-transform: uppercase;
    color: var(--main-color);
    display: inline-block;
    position: absolute;
    /* top: 50%; */
    left: 45%;
    /* transform: translate(-50%, -50%);
}


.lwa-form
{
	/*
  width:390px;
	top: 300px;
	margin-left: 65%;
  margin-right:25%;
  */
}
.lwa td {
    padding-top: 7px;
    vertical-align: top;
    display: block;
    color: var(--main-color);
    font-size: 14px;
    font-weight: lighter;
}

.lwa-password input {
    width: 60%;
    border-radius: 10px;
    background-color: var(--secondary-color);
    padding-left: 10px;
    padding-right: 10px;
    outline: aquamarine;
    border: 0px;
    height: 27px;
    margin-top: 0;
    margin-bottom: 10px;
    margin-top: -10px;
}

.lwa-username input {
    width: 60%;
    border-radius: 10px;
    background-color: var(--secondary-color);
    padding-left: 10px;
    padding-right: 10px;
    outline: aquamarine;
    border: 0px;
    height: 27px;
    margin-top: 0;
    margin-bottom: 10px;
    margin-top: -20px;
}

.lwa-username-label {
    margin-top: 5px;
    display: inline-block;
}

.lwa-remember-email input {
    margin: 0px;
    width: 80%;
    padding-left: 2%;
    padding-right: 2%;
    background-color: var(--secondary-color);
    border: 0px;
    border-radius: 15px;
    height: 27px;
    color: var(--main-color);
}

#lwa_wp-submit {
    border-radius: 10px;
    color: white;
    background-color: var(--main-color);
    width: 60%;
    outline: aquamarine;
    border: 0px;
    min-height: 27px;
    min-width: 215px;
    margin-bottom: 0;
}

.lwa-links-remember {
    color: var(--main-color);
    text-decoration: underline;
    margin-left: 13%;
}

.lwa-links-remember-cancel {
    color: var(--main-color);
    text-decoration: underline;
}

.lwa-button-remember {
    border-radius: 10px;
    color: white;
    background-color: var(--main-color);
    width: 80%;
    outline: aquamarine;
    border: 0px;
    height: 27px;
    margin-top: 5px;
    margin-bottom: 0;
}

.logo-eurovia {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.footer {
    width: 100%;
    /* height: 25%; */
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    padding: 50px;
}

.footer-command {
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
}

.footer-command .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-eurovia-footer {
    margin-top: 30px;
    border: 8px solid white;
    border-radius: 10px;
}

.footer-with-logo {
    /*width:35%;*/
    margin: auto;
    border-radius: 12px;
    padding: 30px;
    background-color: var(--main-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 29px;
}

.footer-with-logo-command {
    margin: auto;
    border-radius: 12px;
    padding: 30px;
    background-color: var(--main-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 200px;
}

.column {
    float: left;
}

.logo-elite {
    width: 8rem;
    display: block;
    margin-left: 25px;
    margin-right: 25px;
}

/*.grid-item grid-text 
{
  margin-left: auto;
  margin-right: auto;
 
  font-size:1vw;
  text-align: center;
   display: flex;
}*/

/*@media (min-width: 768px )
{
    .grid-item grid-text 
    {
        font-size: 7px;
    }
    
    
}*/

/*.grid-cotainer
{
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-column-gap: 50px;
}*/

.text-connexion {
    text-transform: uppercase;
    color: var(--main-color);
    font-weight: bold;
    font-size: 20px;
    display: flex;
}

.hr-connexion {
    border: 1px solid;
    border-radius: 26px;
    color: var(--secondary-color);
    margin-left: auto;
    margin-right: 40%;
    display: flex;
    margin-top: 0;
    margin-bottom: 5px;
}

.main-header-commande {
    background-color: var(--main-color);
    padding-left: 10vw;
    padding-right: 10vw;
}

#btn-filtrer-categorie {
    line-height: 55px;
    background-color: var(--main-color);
    font-size: 16px;
    color: white;
    cursor: pointer;
    text-align: center;
    display: block;
}

#btn-filtrer-categorie:hover {
    color: var(--accent-color);
}

.column {
    float: left;
    width: 25%;
    padding: 40px;
    height: 30px;
}

.row:after {
    display: table;
    clear: both;
}

.logo-eurovia-header-commande {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 0px;
    padding-right: 0px;

    img {
        border-radius: 10px;
        border: white solid 10px;
        max-height: 70px;
    }
}

.total {
    font-weight: lighter;
    font-size: 14px;
    color: var(--main-color);
}
.prix-total {
    font-size: 16px;
    font-weight: bold;
}

#nom-agence {
    font-weight: lighter;
    color: var(--main-color);
    padding-left: 10px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
}

#nom-agence-header {
    font-weight: lighter;
    color: var(--main-color);
    padding-left: 10px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
}

#prix-total {
    font-size: 16px;
    color: var(--main-color);
}

.wrapper {
    width: 922px;
    margin: auto;
}
#header {
    padding: 10px;
}
#content {
    color: #333;
    margin: 0px 0px 10px 0px;
    padding: 10px;
    min-height: 30px;
}
#content.widecolumn {
    margin-top: 32px;
    margin-inline: auto;
    width: min(1426px, 100% - 2rem);
}

.changer-agence {
    border: 0px;
    height: 27px;
    margin-top: 20px;
    font-weight: lighter;
    font-size: 14px;
    background-color: var(--secondary-color);
    color: var(--main-color);
}

#copyright {
    padding-top: 50px;
    color: var(--main-color);
    font-weight: lighter;
    font-size: 14px;
    padding-left: -70px;
}

.search-div {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 15px;
    padding: 8px 15px;
    background-color: var(--secondary-color);
}
.search-div__submit {
    color: var(--other-color);
    cursor: pointer;
    transition: all 400ms;
}
.search-div__submit:hover {
    opacity: 0.8;
}

#search-input {
    min-width: 285px;
    background-color: var(--secondary-color);
    border: 0px;
}

#search-input:focus {
    outline: none;
}

::placeholder {
    color: hsl(from var(--color-dark) h s l / 0.67);
}

.fa,
.fas {
    font-family: "Fontawsome";
    font-weight: lighter;
}

i.fal.fa-search-plus {
    color: var(--main-color);
    display: flex;
    align-items: flex-end;
}

h1 {
    color: #91a3bf;
}

h2 {
    text-transform: uppercase;
    color: var(--main-color);
    font-weight: bold;
    font-size: 24px;
    border-bottom: 1px solid var(--main-color);
    margin-bottom: 10px;
}

button.reinitialiser-la-commande {
    display: block;
    border: 0px;
    border-radius: 30px;
    min-width: 246px;
    background-color: var(--main-color);
    align-items: center;
    margin-top: 23px;
    color: var(--main-color);
    min-height: 30px;
}

.button.btn-commande-header {
    color: black;
    background-color: var(--accent-color);
    margin-top: 12px;
    margin-left: 20px;
}

.button.btn-commande-header i {
    font-weight: lighter;
    padding-left: 15px;
}

.button.btn-commande-header:hover {
    padding-right: 15px;
    color: #000000;
}

.button.btn-commande-header:hover i {
    padding-left: 20px;
}

button.trigger__filtrer-choix.button {
    background-color: white;
    color: var(--main-color);
}

.produit {
    padding: 15px 0;
    border-bottom: 1px solid #ccd1dd;
}
.produit:last-child {
    border-bottom: none;
}
/*
.produit .col-6, .produit .col-3 {
    border-right: 1px solid #CCD1DD;
}

.produit .col-6:last-child, .produit .col-3:last-child {
    border-right: 0;
}*/

.product-code {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    color: var(--main-color);
}

.product-name {
    font-weight: bold;
    font-size: 20px;
    color: var(--main-color);
    margin-top: 0.6em;
}

.product-file {
    font-weight: bold;
    font-size: 20px;
    color: var(--main-color);
    margin-top: 0.6em;
}

.product-desc {
    text-transform: uppercase;
    font-size: 18px;
    /*  color: var(--main-color);*/
}

.product-desc p:last-child {
    margin-bottom: 0;
}

.qte-title {
    font-size: 14px;
    color: var(--other-color);
}

.select {
    background-color: var(--secondary-color);
    height: 40px;
    border: 0px;
    display: block;
    border-radius: 10px;
    text-align-last: center;
    color: var(--main-color);
    border-right: 15px solid var(--secondary-color);
}

select.qte-selectbox,
input.qte-selectbox {
    background-color: var(--secondary-color);
    min-width: 120px;
    max-width: 120px;
    height: 40px;
    border: 0px;
    display: block;
    border-radius: 10px;
    text-align-last: center;
    color: var(--main-color);
    border-right: 15px solid var(--secondary-color);
}

select.version-selectbox {
    background-color: var(--secondary-color);
    min-width: 400px;
    height: 40px;
    border: 0px;
    display: block;
    border-radius: 10px;
    text-align-last: center;
    color: var(--main-color);
    border-right: 15px solid var(--secondary-color);
}

.version-title {
    font-size: 14px;
    color: var(--other-color);
    margin-top: 1vh;
}

.version-selectbox {
}

.total-par-qte {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-color);
    margin-top: 10px;
}

.qte-choisi {
    font-size: 14px;
    font-weight: lighter;
    color: var(--main-color);
}

.livret_pads {
    font-size: 14px;
    font-weight: lighter;
    color: var(--main-color);
}
.info {
    position: relative;
}
.info::before {
    content: "i";
    background-color: var(--secondary-color);
    color: var(--main-color);
    font-weight: bold;
    border-radius: 20px;
    width: 20px;
    display: block;
    text-align: center;
    border-radius: 20px;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    text-transform: none;
    position: relative;
}

.tooltiptext {
    display: none;
}
.info:hover .tooltiptext {
    font-weight: lighter;
    font-size: 12px;
    display: inline-block;
    position: absolute;
    background-color: var(--secondary-color);
    color: var(--main-color);
    padding: 15px 25px;
    border-radius: 15px;
    min-width: 350px;
    left: 100%;
    top: 0;
    z-index: 2;
}

.f_title {
    width: 40%;
    color: var(--other-color);
}
.donner {
    width: 60%;
    text-align: left;
}

span#field_desc_tooltip {
    display: flex;
    border-bottom: 1px solid;
    padding-bottom: 10px;
    padding-top: 10px;
}

span#field_desc_tooltip:last-child {
    border-bottom: none;
}

.img-produit {
    background-color: var(--secondary-color);
    border-radius: 0.625rem;
    display: flex;
    padding: 0.625rem;
}
.img-produit a {
    position: absolute;
    bottom: 0px;
    right: 10px;
}

.col-sm-3 {
    max-width: 45%;
}

.liste-categorie {
    width: 100%;
    /*min-height: 200px;*/ /* fait bugger la transition */
    padding: 30px 15px;
    background-color: var(--main-color);
    /*position: relative;*/
    background-repeat: no-repeat;
    background-position: bottom left;
}

#btn-fermer-filtre {
    color: white;
    line-height: 0px;
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}

#btn-fermer-filtre:hover {
    color: var(--accent-color);
}
.trigger__filtrer-choix.button {
    margin: auto;
    background-color: var(--secondary-color);
    color: var(--main-color);
}

.trigger__filtrer-choix.button:hover {
    color: var(--accent-color);
}

textarea {
    min-height: 100px;
    min-width: 400px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    border: 0px;
    padding: 5px 10px;
    color: var(--main-color);
    white-space: pre-wrap;
}
input.input-blue {
    min-height: 40px;
    min-width: 400px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    border: 0px;
    padding: 5px 10px;
    color: var(--main-color);
}

textarea[readonly] {
    color: #74797d;
    cursor: not-allowed;
}

input:focus,
textarea:focus,
button:focus,
select:focus {
    outline: none;
}

.user-info {
    color: var(--other-color);
}

.button {
    text-transform: none;
    font-size: 16px;
    font-weight: normal;
    line-height: 20px;
    color: white;
    background-color: var(--main-color);
    padding: 5px 20px;
    border: 0;
    border-radius: 15px;
    outline: none;
    cursor: pointer;
}

.button:hover {
    color: var(--accent-color);
}

/* input.button {
    float: right;
}*/

.taxes {
    color: var(--main-color);
    padding: 10px;
    border-bottom: 1px solid #ccd1dd;
}

input[type="radio"] {
    vertical-align: top;
    margin-top: 17px;
}

input[type="radio"]:focus {
    color: var(--main-color);
}

h3 {
    text-transform: uppercase;
    color: var(--main-color);
    font-weight: bold;
    font-size: 20px;
    margin-top: 2.5vh;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccd1dd;
}

.header-liste-produits {
    font-size: 16px;
    font-weight: bold;
    color: var(--main-color);
    background-color: var(--secondary-color);
    padding: 10px;
    margin-bottom: 15px;
}

input {
    /*    color: var(--main-color);*/
    border: 1px solid var(--main-color);
    outline: none;
    border-radius: 30px;
    padding: 2px 10px;
}

input.input-nouvelle-adress {
    min-width: 200px;
}

.info-transporteur {
    color: var(--main-color);
    font-size: 14px;
    padding-top: 10px;
}

input#nouvelle_adresse_ligne_1 {
    margin-bottom: 5px;
}

label {
    /*    color: var(--main-color);*/
    font-size: 14px;
}

textarea[name="demande_speciale"] {
    min-height: 100px;
    border-radius: 10px;
    color: #E5EEF;
    border-color: var(--secondary-color);
    width: 100%;
    outline: none;
    color: var(--main-color);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
}

form#formulaire-produit {
    margin-top: 50px;
}

.liste-produit-prix {
    margin-top: 10px;
    padding-left: 30px;
}

div#nom_adresse_facturation {
    font-weight: medium;
    font-size: 20px;
    color: var(--main-color);
    font-weight: 400;
}

div#ligne_1_adresse_facturation {
    font-weight: lighter;
    font-size: 18px;
    color: var(--main-color);
}

div#ligne_2_adresse_facturation {
    font-weight: lighter;
    font-size: 18px;
    color: var(--main-color);
}

div#ligne_3_adresse_facturation {
    font-weight: lighter;
    font-size: 18px;
    color: var(--main-color);
}

div#nom_adresse_livraison {
    padding-top: 10px;
    font-weight: medium;
    font-size: 20px;
    font-weight: 400;
}

div#ligne_1_adresse_livraison {
    font-weight: lighter;
    font-size: 18px;
}

div#ligne_2_adresse_livraison {
    font-weight: lighter;
    font-size: 18px;
}

div#transporteur {
    margin-top: 50px;
}

div#adresse_livraison {
    margin-top: 40px;
}

.col-3 {
    color: var(--main-color);
}

.text-input-group {
    display: flex;
    align-items: baseline;
    flex-direction: column;
    padding-top: 15px;
}

.requis {
    color: var(--accent-color);
}

.border-after-product {
    margin-bottom: 30px;
    border-top: solid var(--main-color);
}

label[for="no_po"],
label[for="nom_destinataire"] {
    display: block;
}

div.version {
    color: var(--accent-color);
}

.erreurs {
    margin-top: 30px;
}

.deconnexion {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    padding-block: 0.6rem;

    .splitter {
        width: 1px;
        height: 1.5lh;
        background-color: white;
    }
    a {
        display: block;
        width: fit-content;
        color: white;

        &:hover {
            color: var(--accent-color);
        }

        i {
            font-size: 20px;
            margin-right: 6px;
            margin-top: 3px;
        }

        &.current-page {
            text-decoration: underline;
            text-underline-offset: 0.3em;
        }
    }
}

.exchange-light-footer {
    text-align: center;
}

/* Page choix-agences */

.page-template-choix-agence-php .site-content {
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}

#choix_agences-section {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

#choix_agences-titre {
    justify-content: center;
    text-align: center;
}
#choix_agences-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
    margin-top: 60px;
}
#choix_agences-form #choix_agences-select {
    text-align: center;
    font-size: 18px;
    text-transform: capitalize;
}
#choix_agences-form input[type="submit"] {
    width: 200px;
    margin: auto;
    margin-top: 24px;
}

.liste-categorie .filter {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: center;
}
.liste-categorie .filter label {
    margin-bottom: 0px;
}

.erreur-input {
    background-color: #f8d7da !important;
}

table#table-quantite-commandes-livraisons-speciales,
#table-quantite-commandes-livraisons-speciales th,
#table-quantite-commandes-livraisons-speciales td {
    border: 1px solid black;
}

table#table-quantite-commandes-livraisons-speciales {
    margin-top: 10px;
    width: 100%;
    border-left: none;
    border-right: none;
}

#table-quantite-commandes-livraisons-speciales th {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    color: #2980b9;
}
#table-quantite-commandes-livraisons-speciales th:first-child {
    border-left: none;
}
#table-quantite-commandes-livraisons-speciales th:last-child {
    border-right: none;
}

#table-quantite-commandes-livraisons-speciales td {
    text-align: center;
}
#table-quantite-commandes-livraisons-speciales td:first-child {
    border-left: none;
}
#table-quantite-commandes-livraisons-speciales td:last-child {
    border-right: none;
}

.msg_fixed {
    bottom: 0;
    z-index: 11;
    width: 100vw;
    padding: 1rem 1rem 0rem 1rem;
    position: fixed;
    background-color: var(--main-color);
    color: #ffffff;
    text-align: center;
}

.msg_fixed + footer .footer-command {
    padding-bottom: 5rem;
}

.site-content {
    margin-left: 10vw;
    margin-right: 10vw;
    margin-top: 20px;
    margin-bottom: 50px;
    padding-block: 3rem;
    flex-grow: 1;

    .order-history {
        width: 100%;

        th {
            color: var(--main-color);
            vertical-align: bottom;
        }

        td,
        th {
            padding: 0.3rem 0.5rem;
        }

        tr:nth-child(2n + 3) {
            background-color: #fafafa;
        }

        &.consumption tr:nth-child(odd):not(:first-child) {
            background-color: #fafafa;
        }
    }

    .image {
        width: 10%;
    }

    .underline {
        border-bottom: solid 1px #ccd1dd;
    }
}

.page-template-bon-de-commande-php .site-content {
    margin-top: 0;
    padding-top: 0;
}

.filter-form {
    padding: 1rem;
    background-color: #f3f8fc;

    input[type="submit"] {
        border-radius: 50rem;
        color: white;
        background-color: #0161ab;
    }

    button,
    a.btn {
        border-radius: 50rem;
        color: #0161ab;
        background-color: white;
    }
}

#exportCSV {
    margin-top: 1rem;
}

.filter-form__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-grow: 1;
    gap: 1rem;

    /*> * {
        flex: 1 1 0;
    }*/

    select {
        min-width: 16ch;
        width: 100%;
        max-width: 100%;
        padding: 0.4rem 0.6rem;
        border: none;
        border-right: 1em solid transparent;
        outline: var(--main-color) solid 1px;
        border-radius: 50rem;
        text-overflow: ellipsis;
        background-color: white;
    }
}

.filter-form__date {
    margin-bottom: 3rem;
}

.filter-form__chevron {
    display: flex;
    justify-content: space-between;
    color: inherit;

    &:hover {
        color: inherit;
    }

    i {
        font-weight: 700;
    }
}

.filter-form__collapse {
    display: flex;
    gap: 1rem;
}

.filter-form__selectors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-form__submit {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow > * + * {
    margin-top: var(--flow-spacer, 1em);
}

.grid {
    --_grid-cell-width: 32rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(~"min(var(--_grid-cell-width), 100%)", 1fr));
    gap: var(--gap, 1rem);

    &.--three {
        --_grid-cell-width: 25rem;
    }

    &.--large-gap {
        gap: var(--gutter, 1rem);
    }
}

.document-link {
    display: block;
    /*    padding-top: 1.5625rem;*/
    /*    padding-bottom: 1.5rem;*/
    padding-right: 4.5em;
    border-bottom: solid var(--_doc-link-border-color, var(--main-color)) 1px;
    text-decoration: none;
    text-wrap: pretty;
    color: inherit;
    transition: padding 600ms ease, color 200ms ease;
    position: relative;

    &::after {
        content: "\f1c1";
        display: flex;
        justify-content: flex-end;
        align-items: center;
        font-family: "Font Awesome\ 5 Pro";
        font-size: 3em;
        position: absolute;
        inset: 0;
        transition: right 600ms ease;
    }

    &:hover {
        background-color: var(--main-color);
        color: var(--secondary-color);
        padding-inline: 1em 3.5em;

        &::after {
            right: 1em;
        }

        .document-link__heading {
            color: var(--secondary-color);
        }
    }

    &:first-of-type {
        --flow-spacer: unset;
    }

    &.--link {
        &::after {
            content: "\f054";
            font-weight: 300;
            right: 0.3em;
        }

        &:hover::after {
            right: 1.3em;
        }
    }
}

.document-link__heading {
    margin-top: 0;
    padding-top: 1.2rem;
    font-size: 3rem;
    border-bottom: none;
}

.document-link__filename {
    font-style: italic;
}

.document-link__content {
}

/* Gravity Forms */

.gform_heading {
    display: none;
}

.gform_confirmation_message {
    margin-top: 32px;
    margin-inline: auto;
    text-align: center;
}

.gform_wrapper.gravity-theme form {
    .hide-field {
        opacity: 0;
        position: absolute;
    }

    .field_description_above .gfield_description {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .gform_fields {
        grid-row-gap: 42px;
    }

    .gsection {
        border-bottom: 1px solid #e5e7eb;
        padding: 0 6px 0px 0;

        .gsection_title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 16px;
            color: #23477e;
        }
        .gsection_description {
            margin-top: 8px;
            margin-bottom: 0;
            padding-top: 0;
            font-size: 25px;
            color: #91a3bf;
        }
    }

    #field_4_69 {
        margin-top: 24px;
        border-bottom: 0px solid #e5e7eb;
        text-align: center;

        .gsection_title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 30px;
            color: #7b91b2;

            &:after {
                content: "";
                display: block;
                width: 50px;
                height: 2px;
                margin: 8px auto;
                background-color: #bdc8d8;
            }
        }
        .gsection_description {
            margin-top: 0px;
            margin-bottom: 0;
            padding-top: 0;
            font-size: 16px;
            color: #23477e;
        }
    }

    .gform_page {
        margin-top: 32px;
    }

    .gfield_label {
        color: var(--main-color);
        font-size: 16px;
    }

    .gchoice {
        margin-top: 0.3em;
        font-size: 1re;
    }

    .gfield {
        input {
            &:is([type="number"], [type="text"], [type="tel"], [type="file"], [type="email"], [type="password"]) {
                background-color: var(--secondary-color);
                height: 40px;
                border: 0px;
                display: block;
                border-radius: 10px;
                font-weight: bold;
                color: var(--main-color);
                border-right: 15px solid var(--secondary-color);
                outline: 1px solid var(--main-color);

                &::placeholder {
                    font-weight: normal;
                }
            }

            &[type="file"] {
                padding-block: 0.3em;
                text-align-last: left;
            }

            &.ginput_total {
                outline: unset;
                text-align: center;
                font-size: 1.5rem;
                background-color: transparent;
                border-right: none;
                color: var(--secondary-color);
            }
        }

        select,
        textarea {
            background-color: var(--secondary-color);
            height: 40px;
            border: 0px;
            outline: 1px solid var(--main-color);
            display: block;
            border-radius: 10px;
            /* text-align-last: center; */
            font-weight: bold;
            color: var(--main-color);
            border-right: 15px solid var(--secondary-color);

            &::placeholder {
                font-weight: normal;
            }
        }
    }

    .gfield-choice-input {
        block-size: 1.25rem;
        inline-size: 1.25rem;
        /* vertical-align: top; */
    }

    :is(.gfield_radio, .gfield_checkbox) label {
        margin-left: 0.25em;
        font-size: 1rem;
        text-wrap: balance;
    }

    .gf_progressbar {
        height: 40px;
        margin-bottom: 3em;
    }

    .gf_progressbar_percentage {
        align-content: center;
        height: inherit;
    }

    :is(.gform_button, .gform_next_button, .gform_previous_button).button {
        min-width: fit-content;
        width: 33%;
        /* max-width: 20rem; */
        padding-block: 0.75em;
        border-radius: 0.625em;
    }

    .gform_button,
    .gform_next_button.button {
        min-width: 33%;
        background-color: var(--main-color);
        float: right;
    }

    .gform_previous_button.button {
        background-color: var(--secondary-color);
    }

    .gsection_title {
        text-transform: uppercase;
        color: var(--main-color);
        font-weight: bold;
        font-size: 20px;
        margin-top: 16px;
        padding-bottom: 0px;
        border-bottom: none;
    }

    .gf_page_steps {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* padding-inline: 12px; */
        border-bottom: 0px solid #e5e7eb;
        /* border-radius: 10px; */
        background-color: #bdc8d8;
        position: relative;

        &::before,
        &::after {
            content: "";
            display: block;
            width: 10vw;
            background-color: inherit;
            position: absolute;
            top: 0;
            bottom: 0;
        }

        &::before {
            left: -10vw;
        }

        &::after {
            right: -10vw;
        }

        .gf_step {
            margin-block: 24px;
            color: #23477e;

            .gf_step_number {
                border: #91a3bf 1px solid;
                color: #e9edf2;
                background-color: #91a3bf;
            }
        }

        .gf_step_active .gf_step_number {
            color: #91a3bf;
            background-color: #e9edf2;
        }
    }

    .gfield--type-total {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 6px 12px;
        border-radius: 10px 10px 0 0;
        background-color: var(--main-color);
        position: fixed;
        bottom: 0;
        right: 10vw;

        .ginput_total {
            field-sizing: content;
        }

        .gfield_label {
            font-weight: normal;
            color: var(--secondary-color);
            margin-bottom: 0;
        }

        &.total-estime {
            flex-direction: row;
            justify-content: space-between;
            width: 33%;
            margin-left: auto;
            background-color: transparent;
            position: static;

            .gfield_label {
                font-weight: normal;
                color: #91a3bf;
                margin-bottom: 0;
            }

            .ginput_total {
                font-size: 30px;
                color: var(--main-color);
            }
        }
    }

    .gfield--type-html.commande-35 {
        width: 33%;
        margin-left: auto;
    }

    .gfield_description {
        font-size: 1rem;
    }

    .ginput_container_number .instruction {
        display: none;
    }

    #input_4_3 {
        display: grid;
        column-gap: 32px;
        row-gap: 32px;
        grid-template-columns: repeat(3, 1fr);

        .gchoice {
            align-content: center;
            border-radius: 15px;
            width: 100%;
            max-height: 5lh;
            aspect-ratio: 4 / 1;
            color: #47628a;
            font-weight: bold;
            background-color: var(--secondary-color);
            position: relative;

            &:has(:checked) {
                background-color: var(--main-color);

                color: white;
            }

            input {
                opacity: 0;
                position: absolute;
            }

            label {
                display: flex;
                justify-content: center;
                align-items: center;
                max-width: unset;
                margin-left: 0;
                padding-inline: 1em 1em;
                /* padding-inline: 8em 1em; */
                text-align: center;
                position: absolute;
                inset: 0;

                /* &::before {
                    content: "";
                    display: block;
                    width: 6.25em;
                    aspect-ratio: 1 / 1;
                    border-radius: 15px;
                    background-color: white;
                    position: absolute;
                    left: 0.875em;
                    top: 50%;
                    transform: translateY(-50%);
                } */
            }
        }
    }
}
