/* Page Contact. Les champs, options de consentement et messages restent ceux du formulaire Website. */
html.es2i-public main .es-contact-accueil {
    padding: 0;
    background: #0c3444;
    color: white;
    border: 0;
}
html.es2i-public main .es-contact-accueil > .es-contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
    align-items: stretch;
    gap: 0;
    width: min(100%, 96rem);
}
.es-contact-texte {
    align-self: center;
    padding: clamp(2rem, 4.5vw, 4.4rem) clamp(1.6rem, 3vw, 3.3rem)
             clamp(2rem, 4.5vw, 4.4rem) max(5vw, calc((min(100vw, 96rem) - 75rem) / 2));
}
html.es2i-public #wrap .es-contact-accueil h1 {
    margin: 0;
    max-width: 16ch;
    color: white;
    font-size: clamp(2.65rem, 4.5vw, 4.55rem);
    line-height: 1;
    letter-spacing: -.025em;
}
.es-contact-accueil h1 > span:not(.es-motion-accent) { color: #8ee5d3; }
html.es2i-public main .es-contact-accueil p {
    margin: 1.1rem 0 1.55rem;
    max-width: 49ch;
    color: #e3f1f0;
    line-height: 1.55;
    font-size: clamp(1.02rem, 1.3vw, 1.2rem);
}
html.es2i-public main .es-contact-accueil nav { gap: .5rem .9rem; }
html.es2i-public main .es-contact-accueil nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 46px;
    padding: .5rem .95rem;
    border: 1px solid #8cb3bb;
    border-radius: .35rem;
    text-decoration: none;
    color: white;
}
html.es2i-public main .es-contact-accueil nav a:first-child { background: var(--es-sun); border-color: var(--es-sun); color: var(--es-ink); }
html.es2i-public main .es-contact-accueil nav a:not(:first-child):is(:hover,:focus-visible) { background: #165061; }
.es-contact-portrait { display: block; min-width: 0; position: relative; }
.es-contact-hero > .es-contact-texte:only-child { grid-column: 1 / -1; }
.es-contact-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.es-contact-hero > img { align-self: stretch; width: 100%; max-width: 100%; min-width: 0; height: 100%; object-fit: cover; }

html.es2i-public #wrap .s_text_block:has(#demande-es2i) {
    padding-block: clamp(2.4rem, 4.7vw, 5rem) !important;
}
html.es2i-public #wrap .s_text_block:has(#demande-es2i) > .container {
    width: min(90%, 75rem);
    max-width: none;
    padding: 0;
}
html.es2i-public #wrap .s_text_block:has(#demande-es2i) > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
    margin: 0;
}
html.es2i-public #wrap .s_text_block:has(#demande-es2i) > .container > .row > [class*="col-"] { min-width: 0; width: auto; margin: 0 !important; }
html.es2i-public #wrap .s_text_block:has(#demande-es2i) > .container > .row > :where(:not(#agences-es2i)) { padding: 0; }
html.es2i-public #wrap .s_text_block p.lead:has(>br:only-child) { display: none; }
html.es2i-public #wrap #demande-es2i.s_website_form { padding: 0 !important; background: transparent; border-radius: 0; }
.es-contact-entete-formulaire { margin-bottom: 1.55rem; }
html.es2i-public #wrap :is(.es-contact-entete-formulaire h2, .es-contact-titre-agences) {
    margin: 0 0 .6rem;
    color: var(--es-ink);
    font: 600 clamp(1.85rem, 2.9vw, 2.8rem)/1.08 var(--es-face);
    letter-spacing: -.02em;
}
html.es2i-public #wrap .es-contact-entete-formulaire p { max-width: 58ch; margin: 0; line-height: 1.55; color: var(--es-slate); }
#demande-es2i .s_website_form_rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .95rem 1.05rem;
    margin: 0;
}
#demande-es2i .s_website_form_rows > * { grid-column: 1 / -1; min-width: 0; width: 100%; margin: 0 !important; padding: 0; }
#demande-es2i .s_website_form_field:has(input:is([name="contact_name"], [name="partner_name"], [name="phone"], [name="email_from"])) { grid-column: auto; }
#demande-es2i .s_website_form_field > .row { display: block; margin: 0; }
#demande-es2i .s_website_form_field > .row > * { padding: 0; }
#demande-es2i .s_website_form_field .s_website_form_label {
    display: block;
    width: auto !important;
    margin: 0 0 .32rem;
    padding: 0;
    font-size: 1rem;
}
html.es2i-public #wrap #demande-es2i :is(.form-control, .form-select) {
    background-color: #f8fbfa; border-color: #819999; caret-color: #006a65;
}
html.es2i-public #wrap #demande-es2i :is(.form-control, .form-select):focus {
    outline: 2px solid #00766f; outline-offset: 1px; background-color: white;
}
html.es2i-public #wrap #demande-es2i :is(.is-invalid, :user-invalid) { border-color: #aa3041; }
#demande-es2i .s_website_form_submit .s_website_form_label { display: none; }
#demande-es2i .s_website_form_submit { text-align: start !important; }
#demande-es2i .s_website_form_send { margin-top: .15rem; }
html.es2i-public #wrap .s_text_block .row > #agences-es2i {
    background: #ecf5f2;
    color: var(--es-ink);
    border: 0;
    border-radius: .5rem;
    padding: clamp(1.3rem, 2.6vw, 2.35rem);
}
html.es2i-public #wrap #agences-es2i .es-contact-titre-agences { font-size: clamp(1.75rem, 2.1vw, 2.2rem); margin-bottom: 1.3rem; }
html.es2i-public #wrap #agences-es2i > h3:not(:has(.fa-map-marker)) {
    clear: both; padding-top: 1rem; margin: 1rem 0 .45rem;
    border-top: 1px solid #b3cbc7;
    font: 600 1.45rem/1.2 var(--es-face);
}
html.es2i-public #wrap #agences-es2i > :is(p, h3:has(.fa-map-marker), ul) { margin: .4rem 0; }
html.es2i-public #wrap #agences-es2i :is(.lead, h3:has(.fa-map-marker)) { font: inherit; }
#agences-es2i > p:has(> img:only-child) { float: right; margin-inline-start: .55rem; }
html.es2i-public #wrap #agences-es2i > p > img:only-child { width: clamp(3.4rem, 5vw, 4.3rem) !important; max-width: 100%; }
#agences-es2i ul.list-unstyled { padding-left: 0 !important; }
#agences-es2i li:has(>br:only-child), #agences-es2i > p:has(>br:only-child) { display: none; }
html.es2i-public #wrap #agences-es2i :is(a[href^="tel:"], a[href^="mailto:"]) {
    display: inline-block; color: #00635e; font-weight: 650; line-height: 1.65; text-underline-offset: .17em; overflow-wrap: anywhere;
}
.es-contact-depannage { clear: both; border-top: 1px solid #b3cbc7; margin: 1.3rem 0 .9rem; padding-top: 1rem; }
.es-contact-depannage p { margin-bottom: .3rem; }
.es-contact-depannage a { font-weight: 650; text-underline-offset: .18em; }
.es-contact-depannage i { margin-left: .3rem; }
html.es2i-public #wrap #assistance-equipe-es2i { margin: .85rem 0 0; }
@media (max-width: 52rem) {
    html.es2i-public #wrap .s_text_block:has(#demande-es2i) > .container > .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 45rem) {
    html.es2i-public main .es-contact-accueil > .es-contact-hero { grid-template-columns: minmax(0, 1fr); }
    .es-contact-texte { padding: 1.8rem 5vw 1.5rem; }
    html.es2i-public main .es-contact-accueil p { margin-block: .85rem 1rem; }
    .es-contact-portrait { height: clamp(8rem, 32vw, 13.5rem); }
    .es-contact-hero > img { height: clamp(8rem, 32vw, 13.5rem); }
    .es-contact-portrait img { object-position: 55% 37%; }
}
@media (max-width: 34rem) {
    #demande-es2i .s_website_form_rows { grid-template-columns: minmax(0, 1fr); }
    html.es2i-public main .es-contact-accueil nav a { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .es-contact-accueil nav i { transition: transform .18s ease-out; }
    .es-contact-accueil nav a:hover .fa-arrow-down { transform: translateY(2px); }
}
