/* =====================================================================
   INTERNAL PAGES - shared "et-*" design system
   ---------------------------------------------------------------------
   Loaded globally from views/layouts/templates/1.liquid and default.liquid.

   Rules:
   - Generic class names (.title-accent, .page-section, .lead...) are ALWAYS
     scoped under .et-content, because accueil / a-propos use the same class
     names with different styling.
   - Optional components use their own opt-in classes (.et-v2, .et-cta-inline,
     .et-final-section, .et-final-cta) so they never affect a page that has
     not added them.
   - Banner background images use Liquid (asset_url) and must stay inline
     in each page: a static .css file cannot run Liquid.

   Pages using this file: nuisibles/termites, hygiene-feminine and
   services-anti-nuisibles/ araignees, fourmis, mouches-moucherons,
   moustiques, punaises-de-lit, deratisation-rongeurs, pigeon,
   desinsectisation-volants-rampants, cafards-ravets,
   desinsectisation-termites.
   See INTERNAL-CSS-AUDIT.md at the project root for details.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
    --et-green: #198754;
    --et-green-dark: #146c43;
    --et-primary: #00852e;
    --et-primary-hover: #006b25;
    --et-ink: #1f2937;
    --et-muted: #6b7280;
    --et-bg: #f8fafc;
    --et-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}


/* ---------------------------------------------------------------------
   1b. GLOBAL HEADING SIZES (whole site, for uniformity)
       Overrides the theme sizes from main.min.css (h2 2rem / h3 1.75rem
       / h4 1.5rem). h1 is unchanged. Rules on a specific class or ID
       (e.g. the green final CTA) still win over these.
   --------------------------------------------------------------------- */
h2 {
    font-size: 1.5rem;    /* 24px */
}

h3 {
    font-size: 20px;
}

.h4, h4 {
    font-size: 16px;
}


/* ---------------------------------------------------------------------
   2. BASE (shared by every .et-content page)
   --------------------------------------------------------------------- */

/* Typography */
.et-content {
    font-family: var(--et-font);
    color: var(--et-ink);
}

.et-content .et-kicker {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--et-green);
    margin-bottom: .5rem;
}

.et-content .title-accent {
    position: relative;
    padding-top: .5rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.et-content .title-accent:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 6px;
    border-radius: 999px;
    background: var(--et-green);
}

.et-content .lead {
    font-size: 1.12rem;
}

/* Sections */
.et-content .page-section {
    padding-block: 3rem;
}

.et-content .page-section.alt {
    background: var(--et-bg);
}

/* Cards */
.et-content .et-card {
    background: #fff;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(2, 8, 20, .06);
}

.et-content .et-card .et-card-body {
    padding: 1.25rem;
}

.et-content .icon-check {
    color: var(--et-green);
    margin-right: .35rem;
}

/* Tables */
.et-content .table-wrap {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(2, 8, 20, .06);
}

.et-content .table thead th {
    background: rgba(25, 135, 84, .08);
    color: var(--et-ink);
}

.et-content .table td,
.et-content .table th {
    vertical-align: top;
}

/* Numbered process steps */
.et-content ol.et-process {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
    position: relative;
    margin-left: 1rem;
}

.et-content ol.et-process:before {
    content: "";
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(25, 135, 84, .25), rgba(25, 135, 84, .05));
}

.et-content ol.et-process > li {
    counter-increment: step;
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 1.25rem;
}

.et-content ol.et-process > li:before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .2rem;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    border: 3px solid var(--et-green);
    color: var(--et-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    box-shadow: 0 4px 12px rgba(2, 8, 20, .08);
}

.et-content ol.et-process h3,
.et-content ol.et-process h4 {
    margin: 0 0 .35rem;
    font-weight: 800;
}

/* FAQ (details / summary) */
.et-content details.faq {
    border: 1px solid rgba(25, 135, 84, .18);
    border-radius: .75rem;
    padding: 1rem 1.1rem;
    background: #fff;
}

.et-content details.faq + details.faq {
    margin-top: .75rem;
}

.et-content details.faq[open] {
    box-shadow: 0 8px 18px rgba(2, 8, 20, .06);
}

.et-content details.faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.et-content details.faq summary::-webkit-details-marker {
    display: none;
}

.et-content details.faq summary:after {
    content: "›";
    float: right;
    transform: rotate(90deg);
    transition: .2s;
}

.et-content details.faq[open] summary:after {
    transform: rotate(270deg);
}

.et-content details.faq p {
    margin: .75rem 0 0;
}

@media (min-width: 992px) {
    .et-content .et-card .et-card-body {
        padding: 1.75rem;
    }
}


/* ---------------------------------------------------------------------
   3. "et-v2" MODIFIER (opt-in: add class "et-v2" to the .et-content
      wrapper AND to the banner section)
      Branded primary buttons + tighter section spacing on mobile.
   --------------------------------------------------------------------- */
.et-v2 .btn-primary {
    background-color: var(--et-primary) !important;
    border: 1px solid var(--et-primary) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .3s ease;
}

.et-v2 .btn-primary:hover,
.et-v2 .btn-primary:focus {
    background-color: var(--et-primary-hover) !important;
    border-color: var(--et-primary-hover) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .et-content.et-v2 .page-section {
        padding-block: 2rem;
    }
}


/* ---------------------------------------------------------------------
   4. INLINE CTA BOX (.et-cta-inline)
   --------------------------------------------------------------------- */
.et-cta-inline {
    background: #f4f8f3;
    border: 1px solid rgba(25, 135, 84, .18);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.et-cta-inline h3 {
    color: var(--et-green);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.et-cta-inline p {
    max-width: 760px;
    margin: 0 auto 1.25rem;
}

.et-cta-inline .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.et-cta-inline .btn-outline-success {
    background-color: transparent;
    border: 1px solid var(--et-primary);
    color: var(--et-primary) !important;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .3s ease;
}

.et-cta-inline .btn-outline-success:hover {
    background-color: var(--et-primary) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .et-cta-inline {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .et-cta-inline .btn {
        width: 100%;
        white-space: normal;
    }
}


/* ---------------------------------------------------------------------
   5. FINAL GREEN CTA (.et-final-section > .et-final-cta)
      Add "et-v2" to .et-final-section for 2rem padding on mobile.
      Heading can be h2 or h3.
   --------------------------------------------------------------------- */
.et-final-section {
    padding-block: 3rem;
}

.et-final-cta {
    background: var(--et-green);
    color: #fff;
}

.et-final-cta h2,
.et-final-cta h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.et-final-cta p {
    margin: 0;
}

.et-final-cta .btn {
    background: #fff;
    color: var(--et-green);
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all .3s ease;
}

.et-final-cta .btn:hover {
    background: #f8f9fa;
    color: var(--et-green-dark);
    transform: translateY(-2px);
}

.et-final-cta .phone-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    display: inline-block;
}

.et-final-cta .phone-link:hover {
    opacity: .85;
}

@media (max-width: 768px) {
    .et-final-section.et-v2 {
        padding-block: 2rem;
    }

    .et-final-cta h2,
    .et-final-cta h3 {
        font-size: 1.5rem;
    }

    .et-final-cta .phone-link {
        display: block;
        margin: 10px 0;
    }
}


/* ---------------------------------------------------------------------
   6. CONTACT PAGES (contact-guadeloupe, contact-martinique)
      Add class "et-contact-page" to the main <section class="sg-content">.
      Note: section padding comes from the theme (section.sg-content:
      50px, 100px from 992px), so it is not set here.
   --------------------------------------------------------------------- */
.et-contact-page.sg-content {
    background-color: #f9f9f9;
}

.et-contact-page .page-heading h1 {
    color: #198754;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.et-contact-page .page-heading p {
    font-size: 1.1rem;
    color: #444;
    max-width: 850px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.et-contact-page .about-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    margin-bottom: 40px;
}

.et-contact-page .about-box h2 {
    color: #198754;
    font-size: 1.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.et-contact-page .about-box p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 0;
}

.et-contact-page .contact-info-box {
    background-color: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    max-width: 850px;
    margin: 0 auto;
}

.et-contact-page .contact-info-box h5 {
    color: #198754;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.et-contact-page .contact-info-box .footer-contact-us li {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.et-contact-page .contact-info-box .footer-contact-us i {
    color: #018232;
    font-size: 1.2rem;
}

.et-contact-page .contact-info-box .footer-contact-us a {
    color: #000;
    text-decoration: none;
    transition: color .3s ease;
}

.et-contact-page .contact-info-box .footer-contact-us a:hover {
    color: #b4131c;
}

.et-contact-page .contact-info-box iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.et-contact-page .opening-hours {
    padding-left: 0;
    margin-bottom: 20px;
}

.et-contact-page .opening-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.et-contact-page .opening-hours strong {
    color: #198754;
}

@media (max-width: 992px) {
    .et-contact-page .page-heading h1 {
        font-size: 1.9rem;
    }

    .et-contact-page .page-heading p {
        font-size: 1rem;
    }

    .et-contact-page .about-box,
    .et-contact-page .contact-info-box {
        padding: 24px;
    }

    .et-contact-page .about-box h2 {
        font-size: 1.5rem;
    }

    .et-contact-page .contact-info-box iframe {
        height: 300px;
    }
}


/* ---------------------------------------------------------------------
   7. THANK-YOU PAGES (merci-*)
   --------------------------------------------------------------------- */
.text-center-all p {
    text-align: center;
}
