.page-id-7 .post-image-header {
    height: 40vh;
}

.service_btn_container .wp-block-button__link {
    background-color: #008e9a;
    color: #fff;
    min-width: 300px;
    height: 150px;
    border-radius: 20px;
    align-content: center;
    cursor: auto;
}

@font-face {
    font-family: 'fidouest25';
    src: url('../font/fidouest25.eot?48621659');
    src: url('../font/fidouest25.eot?48621659#iefix') format('embedded-opentype'),
        url('../font/fidouest25.woff2?48621659') format('woff2'),
        url('../font/fidouest25.woff?48621659') format('woff'),
        url('../font/fidouest25.ttf?48621659') format('truetype'),
        url('../font/fidouest25.svg?48621659#fidouest25') format('svg');
    font-weight: normal;
    font-style: normal;
}

.service-rse:before {
    font-family: "fidouest25";
    content: '\e800' !important;
}

.service-raf:before {
    font-family: "fidouest25";
    content: '\e801' !important;
}

/* composant étapes — SEARCH-Factory */
.sf-steps {
    --step-bg: #f4f6f8;
    --step-text: #111827;
    --step-radius: 16px;
    --connector: #8dc63f;
    /* vert pointillé */
    --shadow: 0 2px 10px rgba(0, 0, 0, .06);

    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(12px, 4vw, 32px);
    padding: clamp(8px, 2vw, 12px);
    margin: 20px;
}

/* ligne pointillée derrière les cartes */
.sf-steps::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    /* animated dotted line using repeating gradient */
    background-image: radial-gradient(circle, var(--connector) 2px, transparent 2.5px);
    background-size: 16px 4px;
    background-repeat: repeat-x;
    background-position: 0 0;
    animation: sf-dots-x 1.2s linear infinite;
    z-index: 0;
}

/* cartes */
.sf-step {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    max-width: 340px;
    /* ajuste selon ta grille */
    background: var(--step-bg);
    color: var(--step-text);
    text-align: center;
    padding: clamp(16px, 3.5vw, 28px);
    border-radius: var(--step-radius);
    box-shadow: var(--shadow);
    border: 1px solid #8dc63f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* texte */
.sf-step p {
    margin: 0;
    line-height: 1.35;
    font-weight: 600;
}

/* responsive : pile les blocs et met la ligne en verticale */
@media (max-width: 720px) {
    .sf-steps {
        flex-direction: column;
    }

    .sf-steps::before {
        left: 50%;
        right: auto;
        top: 6%;
        bottom: 6%;
        width: 4px;
        height: auto;
        transform: translateX(-50%);
        /* switch to vertical animated dotted line */
        background-image: radial-gradient(circle, var(--connector) 2px, transparent 2.5px);
        background-size: 4px 16px;
        background-repeat: repeat-y;
        background-position: 0 0;
        animation: sf-dots-y 1.2s linear infinite;
    }

    .sf-step {
        max-width: 520px;
        width: 100%;
    }
}

/* keyframes for flowing dots */
@keyframes sf-dots-x {
    from { background-position-x: 0; }
    to { background-position-x: 16px; }
}

@keyframes sf-dots-y {
    from { background-position-y: 0; }
    to { background-position-y: 16px; }
}

.sf-steps.single::before {
    display: none;
    /* supprime la ligne pointillée */
}

.sf-steps.single {
    justify-content: center;
    /* centre la carte */
}

.encart-texte {
    border: 4px solid #bfbfbf;
    border-radius: 50px;
    padding: 20px 32px;
    background-color: #fff;
    display: block;
    /* devient un vrai bloc */
    width: fit-content;
    /* largeur = contenu */
    margin: 20px auto;
    /* auto = centre horizontalement */
    text-align: center;
}

.steps-list {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.steps-list li {
    position: relative;
    margin: 2em 0;
    padding-left: 60px;
    font-size: 16px;
    line-height: 1.5;
}

.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #6DBE45;
    /* vert */
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 18px;
}

/* Sticky bottom navigation */
.sticky-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #85bb3c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.sticky-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sticky-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sticky-nav-item {
    margin: 0;
}

.sticky-nav-link {
    display: block;
    padding: 8px 12px;
    background: #f4f6f8;
    color: #111827;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sticky-nav-link:hover,
.sticky-nav-link.active {
    background: #85bb3c;
    color: #fff;
    border-color: #85bb3c;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }

    .wp-block-media-text__media {
        margin-bottom: 15px;
    }

    .sticky-nav-list {
        gap: 8px;
    }

    .sticky-nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .content-post {
        padding-bottom: 100px;
        /* More space on mobile */
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Active section highlighting */
.section-active {
    position: relative;
}

.section-active::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #85bb3c;
    border-radius: 2px;
}

.factu_cta {
    display: flex !important;
    justify-content: center;
    flex-direction: row;
    margin-bottom: 60px !important;
}

.factu_cta a {
    color: white !important;
    width: auto;
    width: 66% !important;
}

/* PDF list with icon pills */
#factu_pdf_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

#factu_pdf_list li {
    margin: 0;
    padding: 0;
}

/* Make each item look like an icon button */
#factu_pdf_list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f4f6f8;
    color: #111827;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid #85bb3c;
}

/* Replace previous list-item icon with an icon on the link itself */
#factu_pdf_list li::before { display: none; }

/* Vector icon that inherits text color */
#factu_pdf_list a::before {
    content: "";
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2385bb3c' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5L14 3.5z'/><text x='6.5' y='17' font-size='8' fill='%23ffffff' font-family='Arial' font-weight='700'>PDF</text></svg>");
}

#factu_pdf_list a:hover {
    background: #85bb3c;
    color: #fff;
    border-color: #85bb3c;
}

@media (max-width: 640px) {
    #factu_pdf_list {
        gap: 8px;
    }
    #factu_pdf_list a {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 16px;
    }
    #factu_pdf_list a::before {
        width: 18px;
        height: 18px;
    }
    .postid-1 .entry-content {
        margin-top: 20px !important;
    }
    .postid-1 h2  {
        font-size: 28px !important;
    }
    .postid-1 .wp-block-media-text__media {
        transform: scale(.7) !important;
    }
    .postid-1 .factu_cta a {
        width: 100% !important;
    }
}
.postid-1 h2 {
    margin: 60px 0 60px 0 !important;
}

.fact_bottom_separator {
    margin: 100px 0 60px 0 !important;
}