/* ==========================================================
   Greg Services — styles des blocs et compositions
   Chargé sur le site ET dans l'éditeur.
   ========================================================== */

/* ---------- Boutons ---------- */
.wp-block-button__link {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 50px; padding: .7em 1.5em;
    background: #1d6232; color: #fff; border: 2px solid transparent; border-radius: 8px;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover { background: #134a24; color: #fff; }
.wp-block-button.is-style-gs-primary .wp-block-button__link { background: #3aa856; }
.wp-block-button.is-style-gs-primary .wp-block-button__link:hover { background: #4cbd68; }
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent; border-color: currentColor; color: inherit;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #134a24; border-color: #134a24; color: #fff; }

/* icônes automatiques selon le lien */
.wp-block-button__link[href^="tel:"]::before,
.wp-block-button__link[href^="mailto:"]::before,
.wp-block-button__link[href="#contact"]::before {
    content: ""; width: 20px; height: 20px; flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--gs-btn-icon) center / contain no-repeat;
    mask: var(--gs-btn-icon) center / contain no-repeat;
}
.wp-block-button__link[href^="tel:"] { --gs-btn-icon: url("../img/icons/phone-mask.svg"); }
.wp-block-button__link[href^="mailto:"],
.wp-block-button__link[href="#contact"] { --gs-btn-icon: url("../img/icons/mail-mask.svg"); }

/* ---------- Liste à coches ---------- */
.wp-block-list.is-style-gs-checks { list-style: none; padding-left: 0; display: grid; gap: .5em; }
.wp-block-list.is-style-gs-checks li {
    position: relative; padding-left: 2.1em;
}
.wp-block-list.is-style-gs-checks li::before {
    content: ""; position: absolute; left: 0; top: .15em; width: 1.35em; height: 1.35em;
    background: url("../img/icons/check-bold.svg") center / contain no-repeat;
}

/* ---------- Sections ---------- */
.gs-section { padding: 56px 20px; }
.gs-section--tight { padding-top: 32px; }
.gs-section h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }

/* ---------- Bannière (Couverture « Bannière Greg ») ---------- */
.wp-block-cover.is-style-gs-hero {
    color: #fff; padding: 56px 20px 64px; align-items: flex-end;
    background-color: #12341c;
}
.wp-block-cover.is-style-gs-hero .wp-block-cover__background {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(12,36,18,.1) 0%, rgba(12,36,18,.7) 50%, rgba(12,36,18,.92) 100%) !important;
}
.wp-block-cover.is-style-gs-hero .wp-block-cover__inner-container {
    width: 100% !important; max-width: 1264px; margin: 0 auto !important; color: #fff;
}
.wp-block-cover.is-style-gs-hero .gs-hero__content { max-width: 640px; margin-left: 0 !important; margin-right: auto !important; }
.wp-block-cover.is-style-gs-hero .gs-hero__content > * { margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-cover.is-style-gs-hero h1 {
    font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
    margin: 0 0 .35em; text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.wp-block-cover.is-style-gs-hero .gs-lead { font-size: clamp(1.1rem, 2.6vw, 1.45rem); font-weight: 500; line-height: 1.4; }
.wp-block-cover.is-style-gs-hero .wp-block-list { font-size: 1.08rem; margin: 1.4em 0 2em; }
.wp-block-cover.is-style-gs-hero .wp-block-buttons { gap: 14px; }
.wp-block-cover.is-style-gs-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; background: rgba(0,0,0,.1); }
.wp-block-cover.is-style-gs-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: #134a24; border-color: #fff; }

/* ---------- Prestations ---------- */
.gs-services-section h2 { text-align: center; margin-bottom: 1.1em; }
.wp-block-columns.gs-services {
    display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 12px !important;
}
.wp-block-columns.gs-services > .wp-block-column {
    background: #f7f8f7; border-radius: 10px; padding: 22px 14px; margin: 0 !important;
    text-align: center; transition: transform .2s, box-shadow .2s;
}
.wp-block-columns.gs-services > .wp-block-column:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.gs-services .gs-icon { margin: 0 auto 12px !important; }
.gs-services .gs-icon img { width: 52px; height: 52px; }
.gs-services h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4em; }
.gs-services p { font-size: .9rem; color: #555d60; margin: 0; line-height: 1.45; }

/* ---------- Zone d'intervention ---------- */
.gs-zone {
    background: #f1f5f0; border-radius: 14px; padding: 24px 20px; gap: 20px !important;
}
.gs-zone__text { flex: 1 1 420px; }
.gs-zone__title {
    position: relative; padding-left: 2.3rem;
    font-size: clamp(1.2rem, 3.5vw, 1.6rem) !important; font-weight: 700 !important; margin: 0 0 .25em;
}
.gs-zone__title::before {
    content: ""; position: absolute; left: 0; top: .05em; width: 1.6rem; height: 1.6rem;
    background: url("../img/icons/pin-solid.svg") center / contain no-repeat;
}
.gs-zone__text p { margin: 0; padding-left: 2.3rem; }
.gs-zone__buttons { gap: 14px 28px !important; }
.gs-zone .is-style-outline .wp-block-button__link { color: #14181a; border-color: #134a24; background: #fff; }
.gs-zone .is-style-outline .wp-block-button__link:hover { color: #fff; background: #134a24; }

/* ---------- À propos ---------- */
.gs-about { gap: 0; }
.wp-block-media-text.gs-about.is-vertically-aligned-center > .wp-block-media-text__media { align-self: start; }
.gs-about .wp-block-media-text__media img { border-radius: 14px; aspect-ratio: 1 / 1.05; object-fit: cover; width: 100%; }
.gs-about .wp-block-media-text__content { padding: 28px 0 0 !important; }
.gs-about .gs-kicker {
    color: #3aa856; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .5em;
}
.gs-about h2 { margin-top: 0; }
.gs-about p { color: #3d4447; }
.gs-about .wp-block-list { margin: 1.4em 0 1.8em; font-weight: 500; }

/* ---------- Appel à contacter ---------- */
.gs-cta {
    background: #134a24 radial-gradient(circle at 85% 20%, rgba(76,189,104,.35), transparent 50%);
    color: #fff; text-align: center; padding: 64px 20px;
}
.gs-cta h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 800; margin-top: 0; }
.gs-cta p { color: rgba(255,255,255,.88); font-size: 1.1rem; }
.gs-cta .wp-block-buttons { gap: 14px; justify-content: center; }
.gs-cta .is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.gs-cta .is-style-outline .wp-block-button__link:hover { background: #fff; color: #134a24; border-color: #fff; }

/* ==========================================================
   Tablette ≥ 600px
   ========================================================== */
@media (min-width: 600px) {
    .gs-section, .wp-block-cover.is-style-gs-hero, .gs-cta { padding-left: 32px; padding-right: 32px; }
    .wp-block-columns.gs-services { grid-template-columns: repeat(3, 1fr); gap: 16px !important; }
    .gs-about { grid-template-columns: 1fr 1fr !important; column-gap: var(--wp--style--block-gap, 1.25rem); }
    .gs-about .wp-block-media-text__content { padding: 0 !important; }
}

/* ==========================================================
   Desktop ≥ 1024px
   ========================================================== */
@media (min-width: 1024px) {
    .gs-section { padding: 36px 24px; }
    .gs-section--tight { padding-top: 48px; padding-bottom: 24px; }
    .gs-services-section + .gs-section--tight { padding-top: 0; }
    .gs-services-section { padding-top: 40px; padding-bottom: 44px; }

    .wp-block-cover.is-style-gs-hero { padding: 64px 48px; align-items: center; min-height: 540px !important; }
    .wp-block-cover.is-style-gs-hero .wp-block-cover__background {
        background: linear-gradient(90deg, rgba(12,36,18,.82) 0%, rgba(12,36,18,.55) 40%, rgba(12,36,18,0) 66%) !important;
    }
    .wp-block-columns.gs-services { grid-template-columns: repeat(6, 1fr); gap: 12px !important; }
    .wp-block-columns.gs-services > .wp-block-column { padding: 20px 12px 24px; }

    .gs-zone { padding: 26px 40px; }
    .gs-cta { padding: 80px 48px; }
}

/* ---------- Prestations : cartes entièrement cliquables ---------- */
.wp-block-columns.gs-services > .wp-block-column { position: relative; display: flex; flex-direction: column; }
.gs-services h3 a { color: inherit; text-decoration: none; }
.gs-services h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.gs-services h3 a:focus-visible { outline: none; }
.gs-services h3 a:focus-visible::after { outline: 3px solid #4cbd68; outline-offset: 2px; }
.gs-services .gs-more {
    margin-top: auto !important; padding-top: 12px;
    font-size: .85rem !important; font-weight: 600; color: #1d6232 !important;
}
.gs-services .gs-more::after { content: " →"; display: inline-block; transition: transform .2s; }
.wp-block-columns.gs-services > .wp-block-column:hover .gs-more::after { transform: translateX(4px); }
.wp-block-columns.gs-services > .wp-block-column:hover h3 { color: #1d6232; }
.gs-services-note {
    text-align: center; margin: 28px auto 0 !important; max-width: none !important;
    color: #555d60;
}
.gs-services-note a { color: #1d6232; font-weight: 600; text-decoration: none; border-bottom: 2px solid #b9dcc2; }
.gs-services-note a:hover { border-bottom-color: #1d6232; }
.gs-style-chaleureux .gs-services .gs-more { color: #a85f1f !important; }
.gs-style-chaleureux .wp-block-columns.gs-services > .wp-block-column:hover h3 { color: #a85f1f; }
.gs-style-chaleureux .gs-services-note a { color: #a85f1f; border-bottom-color: #ecd2b5; }

/* ---------- Comment ça marche ---------- */
.gs-steps { background: #f7f8f7; }
.gs-steps h2 { text-align: center; margin-bottom: 1.2em; }
.wp-block-columns.gs-steps__grid { gap: 20px !important; counter-reset: none; }
.gs-steps__grid > .wp-block-column {
    background: #fff; border-radius: 14px; padding: 28px 24px; position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.gs-steps__grid h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.gs-steps__grid p { color: #555d60; margin: 0; }
.gs-steps__grid .gs-step__num {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #1d6232; color: #fff !important; font-weight: 800; font-size: 1.15rem;
    margin: 0 0 16px !important;
}


/* ---------- Formule entretien régulier ---------- */
.gs-formule {
    background: #134a24 radial-gradient(circle at 90% 10%, rgba(76,189,104,.35), transparent 45%);
    color: #fff; border-radius: 20px; padding: 36px 24px;
}
.gs-formule h2 { color: #fff; margin-top: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.gs-formule p { color: rgba(255,255,255,.88); }
.gs-formule .gs-kicker { color: #8fd6a2 !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .4em; }
.gs-formule .wp-block-list { margin: 1.2em 0 1.8em; font-weight: 500; }
@media (min-width: 1024px) { .gs-formule { padding: 52px 56px; } }

.gs-style-chaleureux .gs-steps { background: #efe6d6; }
.gs-style-chaleureux .gs-steps__grid .gs-step__num { background: #c9772e; }
.gs-style-chaleureux .gs-formule { background: #1f3d2b radial-gradient(circle at 90% 10%, rgba(201,119,46,.35), transparent 45%); }
.gs-style-chaleureux .gs-formule .gs-kicker { color: #e3a466 !important; }

/* ---------- Rester chez soi (seniors et proches) ---------- */
.gs-seniors .gs-kicker { color: #3aa856; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .4em; }
.gs-seniors h2 { margin-top: 0; }
.gs-seniors p { color: #3d4447; }
.gs-seniors .wp-block-list { margin: 1.3em 0 1.8em; font-weight: 500; }
.wp-block-columns.gs-seniors__cols { gap: 32px !important; }
.gs-seniors__card {
    background: #f1f5f0; border-radius: 18px; padding: 32px 28px;
    border: 1px solid #dfe9dd;
}
.gs-seniors__card .gs-icon { margin: 0 0 14px !important; }
.gs-seniors__card .gs-icon img { width: 48px; height: 48px; }
.gs-seniors__card h3 { font-size: 1.3rem; margin: 0 0 .5em; line-height: 1.3; }
.gs-seniors__card .is-style-outline .wp-block-button__link { color: #134a24; border-color: #134a24; }
.gs-seniors__card .is-style-outline .wp-block-button__link:hover { color: #fff; background: #134a24; }
.gs-seniors__note {
    font-size: .88rem !important; color: #6b7275 !important; text-align: center;
    margin-top: 28px !important; max-width: 760px !important;
}
@media (min-width: 1024px) {
    .wp-block-columns.gs-seniors__cols { gap: 64px !important; }
    .gs-seniors__card { padding: 40px 36px; }
}
.gs-style-chaleureux .gs-seniors .gs-kicker { color: #a85f1f; }
.gs-style-chaleureux .gs-seniors__card { background: #efe6d6; border-color: #e4dccb; }

/* ---------- Page Contact ---------- */
.gs-contact { padding-top: 40px; }
.gs-contact .gs-kicker { color: #3aa856; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .4em; }
.gs-contact h2 { margin-top: 0; }
.wp-block-columns.gs-contact__cols { gap: 32px !important; }
.gs-contact__item {
    gap: 16px !important; padding: 18px 0; border-top: 1px solid #e3e8e2; margin: 0 !important;
}
.gs-contact__item:first-of-type { margin-top: 1.5em !important; }
.gs-contact__icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: #f1f5f0;
    display: flex; align-items: center; justify-content: center; margin: 0 !important;
}
.gs-contact__icon img { width: 26px !important; height: 26px !important; }
.gs-contact__item h3 { font-size: 1rem; margin: 2px 0 .2em; }
.gs-contact__item p { margin: 0; color: #555d60; font-size: .95rem; }
.gs-contact__item a { color: #1d6232; font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.gs-contact__item a:hover { text-decoration: underline; }
.gs-contact__card {
    background: #fff; border: 1px solid #e3e8e2; border-radius: 20px; padding: 28px 22px;
    box-shadow: 0 14px 40px rgba(20,40,25,.07);
}
.gs-contact__card h2 { font-size: 1.5rem !important; margin-bottom: .3em; }
.gs-contact__lead { color: #555d60; margin-bottom: 1.4em !important; }
@media (min-width: 1024px) {
    .gs-contact { padding-top: 56px; }
    .wp-block-columns.gs-contact__cols { gap: 64px !important; }
    .gs-contact__card { padding: 40px 40px 36px; }
}

/* ---------- Formulaires (Contact Form 7, WPForms…) ---------- */
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 form > label, .wpcf7 .gs-form-row > label { margin-bottom: 16px; }
.wpcf7 label, .wpforms-field-label { display: block; font-weight: 600; font-size: .92rem; color: #14181a; }
.wpcf7 label .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 select, .wpcf7 textarea,
.wpforms-form input[type="text"], .wpforms-form input[type="email"], .wpforms-form input[type="tel"],
.wpforms-form select, .wpforms-form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: #14181a;
    padding: 13px 15px; border: 1px solid #cfd8ce; border-radius: 10px; background: #fbfcfb;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus,
.wpforms-form input:focus, .wpforms-form select:focus, .wpforms-form textarea:focus {
    outline: none; border-color: #3aa856; background: #fff; box-shadow: 0 0 0 4px rgba(58,168,86,.15);
}
.wpcf7 .gs-form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .wpcf7 .gs-form-row { grid-template-columns: 1fr 1fr; } }
.wpcf7 input[type="file"] { font-size: .9rem; }
.wpcf7 .wpcf7-list-item { margin: 4px 16px 0 0; font-weight: 500; }
.wpcf7 .gs-form-hint { font-size: .85rem; color: #6b7275; font-weight: 400; }
.wpcf7 input[type="submit"], .wpforms-submit {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
    padding: .75em 2em; border: 0; border-radius: 10px; cursor: pointer;
    background: #3aa856; color: #fff; font: 700 1.02rem var(--font, inherit); transition: background-color .2s;
}
.wpcf7 input[type="submit"]:hover, .wpforms-submit:hover { background: #1d6232; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7-not-valid-tip { font-size: .85rem; color: #b42318; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; padding: 12px 16px; margin: 16px 0 0; }
.gs-style-chaleureux .wpcf7 input[type="submit"] { background: #c9772e; border-radius: 999px; }
.gs-style-chaleureux .wpcf7 input[type="submit"]:hover { background: #a85f1f; }
.gs-style-chaleureux .gs-contact__item a, .gs-style-chaleureux .gs-contact .gs-kicker { color: #a85f1f; }
.gs-style-chaleureux .gs-contact__icon { background: #efe6d6; }