/* Montote Devis 2.7.5 — phrase à compléter ([montote_estimation]).
   Reprend la police et les couleurs du site (variables --mt-…), avec des valeurs de secours. */
.montote-estim {
    --estim-encre: var(--mt-ink, #0A0A0A);
    --estim-doux: var(--mt-ink-soft, #3A3A3A);
    --estim-fond: var(--mt-surface, #FFFFFF);
    --estim-trait: var(--mt-border-soft, #D8D4CE);
    --estim-action: var(--mt-cta, #1A3A2F);
    --estim-accent: var(--mt-accent, #C8D8D2);
    margin: 0 0 24px;
    padding: 20px clamp(16px, 3vw, 28px);
    background: var(--estim-fond);
    border: 1px solid var(--estim-trait);
    color: var(--estim-encre);
    font-family: var(--mt-font-t, 'Archivo', system-ui, sans-serif);
}
.montote-estim__sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.montote-estim__phrase {
    margin: 0 0 16px;
    max-width: none;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.9;
}
.montote-estim__champ { display: inline; }
.montote-estim__phrase select,
.montote-estim__phrase input {
    font: inherit;
    font-weight: 700;
    color: var(--estim-action);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--estim-action);
    border-radius: 0;
    padding: 0 2px;
    min-height: 44px;
    max-width: 100%;
    cursor: pointer;
}
.montote-estim__phrase input { width: 4.2em; text-align: center; cursor: text; }
.montote-estim__phrase select:focus-visible,
.montote-estim__phrase input:focus-visible,
.montote-estim button:focus-visible,
.montote-estim a:focus-visible { outline: 2px solid var(--estim-encre); outline-offset: 2px; }
.montote-estim__sac { font-weight: 700; }
.montote-estim__technique {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
    margin: -4px 0 14px; padding: 8px 12px; border: 1px dashed var(--estim-trait);
    font-size: 15px; max-width: none;
}
.montote-estim__technique label { font-weight: 600; }
.montote-estim__technique select {
    font: inherit; min-height: 44px; padding: 4px 8px; max-width: 100%;
    border: 1px solid var(--estim-doux); border-radius: 0; background: #fff; color: var(--estim-encre); cursor: pointer;
}
.montote-estim__technique select:focus-visible { outline: 2px solid var(--estim-encre); outline-offset: 2px; }
.montote-estim__aide { flex-basis: 100%; font-size: 13px; color: var(--estim-doux); }
.montote-estim__pref { font-size: 15px; margin: 0 0 8px; max-width: none; }
.montote-estim__reponse { min-height: 2em; }
.montote-estim__phrase-reponse { font-size: 20px; margin: 0 0 6px; max-width: none; }
.montote-estim__moins-cher { font-size: 16px; margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--estim-action); max-width: none; }
.montote-estim__delai,
.montote-estim__notes { font-size: 15px; color: var(--estim-doux); margin: 0 0 10px; }
.montote-estim__ticket { width: 100%; max-width: 560px; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.montote-estim__ticket th,
.montote-estim__ticket td { padding: 7px 0; border-bottom: 1px solid var(--estim-trait); text-align: left; font-weight: 400; vertical-align: top; }
.montote-estim__ticket td { text-align: right; white-space: nowrap; padding-left: 16px; }
.montote-estim__total th,
.montote-estim__total td { font-weight: 700; border-bottom: 2px solid var(--estim-encre); }
.montote-estim__astuce { background: var(--estim-accent); padding: 10px 14px; font-size: 15px; margin: 0 0 12px; }
.montote-estim__essai {
    font: inherit; font-weight: 700; color: var(--estim-encre); background: none; border: 0;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 4px 2px;
}
.montote-estim__suite { margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.montote-estim__continuer {
    display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
    background: var(--estim-action); color: #fff; font-weight: 700; text-decoration: none;
}
.montote-estim__continuer:hover { color: #fff; background: var(--estim-encre); }
.montote-estim__mention { font-size: 14px; color: var(--estim-doux); margin: 0; }
.montote-estim__offre-bouton {
    min-height: 48px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer;
    color: var(--estim-action); background: transparent; border: 2px solid var(--estim-action);
}
.montote-estim__offre-bouton:hover { background: var(--estim-accent); }
.montote-estim__offre { margin: 14px 0 10px; padding: 16px; border: 1px solid var(--estim-trait); min-width: 0; }
.montote-estim__offre legend { font-weight: 700; padding: 0 6px; }
.montote-estim__offre-intro { font-size: 15px; color: var(--estim-doux); margin: 0 0 12px; max-width: none; }
.montote-estim__offre label { display: block; font-size: 15px; margin: 0 0 12px; }
.montote-estim__offre input[type="text"],
.montote-estim__offre input[type="email"],
.montote-estim__offre input[type="tel"],
.montote-estim__offre input[type="file"],
.montote-estim__offre textarea {
    display: block; width: 100%; box-sizing: border-box; margin-top: 4px; min-height: 44px;
    padding: 8px 10px; font: inherit; border: 1px solid var(--estim-doux); border-radius: 0; background: #fff; color: var(--estim-encre);
}
.montote-estim__offre input[aria-invalid="true"] { border: 2px solid #B42318; }
.montote-estim__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .montote-estim__grille { grid-template-columns: 1fr; } }
.montote-estim__offre label.montote-estim__case { display: flex; gap: 8px; align-items: flex-start; }
.montote-estim__case input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.montote-estim__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.montote-estim__envoyer {
    min-height: 48px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer;
    color: #fff; background: var(--estim-action); border: 0;
}
.montote-estim__envoyer[disabled] { opacity: .6; cursor: wait; }
.montote-estim__offre-statut { margin: 10px 0 0; font-size: 15px; }
.montote-estim__offre-statut.is-erreur { color: #B42318; font-weight: 600; }
.montote-estim__merci { font-size: 17px; margin: 0; }
@media (max-width: 480px) {
    .montote-estim__phrase { line-height: 2.1; }
    .montote-estim__phrase select { max-width: 100%; }
}

/* 2.7.7 — Tient tête aux styles du thème (Astra : champs en pleine largeur et en petit, bordures de tableau)
   et du site (.montote a, .montote label) : menus de la phrase en ligne, à la taille de la phrase ;
   bouton lisible ; ticket sans bordures de tableau. */
.montote-estim .montote-estim__phrase .montote-estim__champ { font: inherit; display: inline; margin: 0; }
.montote-estim .montote-estim__phrase select,
.montote-estim .montote-estim__phrase input {
    display: inline-block; width: auto; height: auto; min-height: 44px; max-width: 100%;
    margin: 0; padding: 0 4px; vertical-align: baseline; box-shadow: none;
    font-family: inherit; font-size: inherit; font-weight: 700; line-height: 1.3;
    color: var(--estim-action); background-color: transparent;
    border: 0; border-bottom: 2px solid var(--estim-action); border-radius: 0;
}
.montote-estim .montote-estim__phrase input { width: 4.2em; text-align: center; }
.montote-estim .montote-estim__technique select { width: auto; max-width: 100%; }
.montote-estim a.montote-estim__continuer,
.montote-estim a.montote-estim__continuer:hover,
.montote-estim a.montote-estim__continuer:focus { color: #fff; text-decoration: none; }
.montote-estim .montote-estim__ticket { border: 0; }
.montote-estim .montote-estim__ticket th,
.montote-estim .montote-estim__ticket td { border: 0; border-bottom: 1px solid var(--estim-trait); background: transparent; }
.montote-estim .montote-estim__ticket .montote-estim__total th,
.montote-estim .montote-estim__ticket .montote-estim__total td { border-bottom: 2px solid var(--estim-encre); }
.montote-estim .montote-estim__case a { text-decoration: underline; text-underline-offset: 2px; }

/* 2.7.8 (Georges, 21.11) : « Recevoir une offre sous 24 h » en premier, bouton vert plein ;
   « Placer mon logo et voir le prix exact » en lien souligné, moins en évidence. */
.montote-estim .montote-estim__suite .montote-estim__offre-bouton {
    min-height: 48px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer;
    color: #fff; background: var(--estim-action); border: 2px solid var(--estim-action); border-radius: 0; box-shadow: none;
}
.montote-estim .montote-estim__suite .montote-estim__offre-bouton:hover,
.montote-estim .montote-estim__suite .montote-estim__offre-bouton:focus-visible { color: #fff; background: var(--estim-encre); border-color: var(--estim-encre); }
.montote-estim .montote-estim__suite a.montote-estim__continuer,
.montote-estim .montote-estim__suite a.montote-estim__continuer:focus {
    min-height: 44px; padding: 8px 4px; background: transparent; color: var(--estim-action);
    font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.montote-estim .montote-estim__suite a.montote-estim__continuer:hover { background: transparent; color: var(--estim-encre); }

/* 2.8.0 — « Envoyer ma demande » devient un bouton d'envoi (type submit) : il garde son style malgré le thème. */
.montote-estim .montote-estim__offre .montote-estim__envoyer {
    min-height: 48px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer;
    color: #fff; background: var(--estim-action); border: 0; border-radius: 0; box-shadow: none;
}
.montote-estim .montote-estim__offre .montote-estim__envoyer:hover,
.montote-estim .montote-estim__offre .montote-estim__envoyer:focus-visible { color: #fff; background: var(--estim-encre); }
.montote-estim .montote-estim__offre .montote-estim__envoyer[disabled] { opacity: .6; cursor: wait; }

/* 2.8.1 — Remerciement après l'envoi d'une offre : bien visible. */
.montote-estim .montote-estim__offre .montote-estim__merci {
    margin: 0; padding: 20px 22px; background: var(--estim-accent); border-left: 6px solid var(--estim-action);
    font-size: 17px; line-height: 1.5; color: var(--estim-encre);
}
.montote-estim .montote-estim__merci p { margin: 0 0 8px; max-width: none; }
.montote-estim .montote-estim__merci p:last-child { margin-bottom: 0; }
.montote-estim .montote-estim__merci .montote-estim__merci-titre { font-size: clamp(21px, 2.4vw, 26px); font-weight: 750; line-height: 1.2; color: var(--estim-action); }
.montote-estim .montote-estim__merci .montote-estim__merci-ref { font-size: 18px; }
.montote-estim .montote-estim__merci .montote-estim__merci-ref strong { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.montote-estim .montote-estim__merci .montote-estim__merci-note { font-weight: 600; }
.montote-estim .montote-estim__merci .montote-estim__merci-aide { font-size: 16px; }
.montote-estim .montote-estim__merci a { color: var(--estim-action); font-weight: 700; }
.montote-estim .montote-estim__merci:focus { outline: none; }
.montote-estim .montote-estim__merci:focus-visible { outline: 2px solid var(--estim-encre); outline-offset: 2px; }
