/* ==========================================================================
   Page contact (template « Contact » : page-templates/contact.php)
   Le formulaire lui-même est stylé par forms.css + form-devis.css.
   ========================================================================== */

html body .sa-contact {
    --sa-black: #111111;
    --sa-yellow: #FFD100;
    --sa-yellow-light: #FFF8D6;

    background: #F4F4F1;
    color: var(--sa-black);
}

html body .sa-contact__inner {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
html body .sa-contact-hero {
    background: var(--sa-black);
    color: #FFFFFF;
}

html body .sa-contact-hero .sa-contact__inner {
    padding-top: 40px;
    padding-bottom: 40px;
}

html body .sa-contact-hero__surtitre {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sa-yellow);
}

html body .sa-contact-hero__title {
    max-width: 760px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: none;
    color: #FFFFFF;
}

html body .sa-contact-hero__title::before,
html body .sa-contact-hero__title::after {
    display: none;
}

html body .sa-contact-hero__intro {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #D4D4D4;
}

html body .sa-contact-hero__intro p {
    margin: 0 0 8px;
    text-align: left;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

html body .sa-contact-hero__intro p:last-child {
    margin-bottom: 0;
}

html body .sa-contact-hero__intro a {
    color: #FFFFFF;
    text-decoration: underline;
}

html body .sa-contact-hero__mentions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body .sa-contact-hero__mention {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #FFFFFF;
}

html body .sa-contact-hero__mention::before {
    display: none;
}

html body .sa-contact-hero__mention svg {
    flex: 0 0 auto;
    color: var(--sa-yellow);
}

/* --------------------------------------------------------------------------
   Formulaire + encarts
   -------------------------------------------------------------------------- */
html body .sa-contact__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: -24px;
    padding-bottom: 64px;
}

html body .sa-contact__main .gform_wrapper,
html body .sa-contact__main .gform_confirmation_wrapper {
    margin: 0;
}

html body .sa-contact-blocs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

html body .sa-contact-bloc {
    box-sizing: border-box;
    flex: 1 1 300px;
    min-width: 0;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
}

html body .sa-contact-bloc > :first-child {
    margin-top: 0;
}

html body .sa-contact-bloc > :last-child {
    margin-bottom: 0;
}

/* Titres des encarts (Titre 2 / Titre 3 dans l'éditeur) */
html body .sa-contact-bloc h2,
html body .sa-contact-bloc h3,
html body .sa-contact-bloc h4 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
}

html body .sa-contact-bloc h2::before,
html body .sa-contact-bloc h2::after,
html body .sa-contact-bloc h3::before,
html body .sa-contact-bloc h3::after {
    display: none;
}

html body .sa-contact-bloc p {
    margin: 0 0 8px;
    text-align: left;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* --- Encart 1 : contact (noir) ------------------------------------------- */
html body .sa-contact-bloc--dark {
    padding: 14px 18px;
    background: var(--sa-black);
    color: #FFFFFF;
}

html body .sa-contact-bloc--dark p {
    margin: 0;
}

html body .sa-contact-bloc--dark a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    word-break: break-word;
}

html body .sa-contact-bloc--dark a:hover {
    color: var(--sa-yellow);
}

html body .sa-contact-bloc--dark a[href^="tel:"] {
    font-weight: 800;
    white-space: nowrap;
}

html body .sa-contact-bloc--dark a[href^="tel:"]::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD100' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Paragraphe sans lien (ex. horaires) : petit texte jaune */
html body .sa-contact-bloc--dark p:not(:has(a)) {
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    color: var(--sa-yellow);
}

/* --- Encart 2 : étapes (blanc, liste numérotée) --------------------------- */
html body .sa-contact-bloc--steps {
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html body .sa-contact-bloc--steps ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sa-step;
}

html body .sa-contact-bloc--steps ol li {
    position: relative;
    min-height: 22px;
    margin: 0;
    padding: 1px 0 0 32px;
    counter-increment: sa-step;
}

html body .sa-contact-bloc--steps ol li::before {
    content: counter(sa-step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border: 2px solid var(--sa-black);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

/* --- Encart 3 : conseils (jaune, liste à puces) --------------------------- */
html body .sa-contact-bloc--tips {
    background: var(--sa-yellow-light);
    border: 1px solid #F0DE80;
    color: #2A2A2A;
}

html body .sa-contact-bloc--tips h2,
html body .sa-contact-bloc--tips h3 {
    margin-bottom: 8px;
    color: var(--sa-black);
}

html body .sa-contact-bloc--tips ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

html body .sa-contact-bloc--tips ul li {
    margin: 0;
    padding: 0;
    list-style: disc;
}

html body .sa-contact-bloc--tips ul li::before {
    display: none;
}

html body .sa-contact-bloc--tips ul li::marker {
    color: var(--sa-black);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    html body .sa-contact__inner {
        padding: 0 16px;
    }

    html body .sa-contact-hero .sa-contact__inner {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    html body .sa-contact-hero__title {
        font-size: 26px;
    }

    html body .sa-contact-hero__intro {
        font-size: 15px;
    }

    html body .sa-contact-hero__mention {
        font-size: 13px;
    }
}
