/* Techfoam Custom CSS */

/* ===== HERO SECTION ===== */
.hero-section .wp-block-cover__image-background {
    object-position: center right;
}

.hero-badges {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-badges .wp-block-group {
    background-color: var(--ast-global-color-0);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
}

.hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.hero-section h1 mark {
    background: transparent;
    color: inherit;
}

.hero-subtitle {
    text-transform: uppercase;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.05em;
}

.hero-cta .wp-block-button__link {
    background-color: var(--ast-global-color-0);
    color: #fff;
    padding: 0.8em 1.5em;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hero-cta .wp-block-button__link:hover,
.hero-cta .wp-block-button__link:focus {
    background-color: var(--ast-global-color-1);
    color: #fff;
}

.hero-section .hero-note {
    font-size: 0.8em;
    opacity: 0.85;
}

/* Shape divider */
.hero-section {
    position: relative;
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.hero-divider svg {
    display: block;
    width: 100%;
    height: 2rem;
    fill: var(--ast-global-color-5, #F0F5FA);
}

@media (max-width: 767px) {
    .hero-badges {
        display: none !important;
    }
}
/* ===== END HERO ===== */

/* ===== EQUIPE ===== */
.tf-equipe-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 2rem;
    justify-content: flex-start;
}

.tf-equipe-card {
    flex: 0 0 calc(33.333% - 1.34rem);
    text-align: center;
    background-color: #fff;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    padding: 2.25rem;
}

.tf-equipe-photo {
    margin-bottom: 1rem;
}

.tf-equipe-photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
}

.tf-equipe-nom {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.tf-equipe-info {
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
}

.tf-equipe-info p {
    margin: 0;
}

.tf-equipe-info a {
    color: var(--ast-global-color-0);
    text-decoration: none !important;
    border-bottom: 1px solid var(--ast-global-color-0);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tf-equipe-info a:hover {
    color: var(--ast-global-color-1, #e76423);
    border-bottom-color: var(--ast-global-color-1, #e76423);
}

@media (max-width: 1024px) {
    .tf-equipe-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .tf-equipe-card {
        flex: 0 0 100%;
    }
}
/* ===== END EQUIPE ===== */

/* ===== CARDS COMMUNES ===== */
.tf-card-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 2rem;
    justify-content: flex-start;
}

.tf-card {
    background-color: #fff;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.tf-card:hover {
    border-color: var(--ast-global-color-1, #e76423);
}

.tf-no-hover .tf-card:hover {
    border-color: var(--ast-global-color-7, #d1d5db);
}

/* ===== PROJETS ===== */
.tf-projets-grid .tf-card {
    flex: 0 0 calc(33.333% - 1.34rem);
}

.tf-card-image {
    margin: 0;
    line-height: 0;
}

.tf-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tf-card-body {
    padding: 2.25rem;
}

.tf-projet-surtitre {
    font-size: 0.8rem;
    color: var(--ast-global-color-3);
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.tf-projet-titre {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.3;
}

a.tf-card {
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

a.tf-card:hover .tf-projet-titre {
    color: var(--ast-global-color-1, #e76423);
}

.tf-card a,
a.tf-card,
a.tf-card *,
.tf-filter-btn {
    text-decoration: none !important;
}

.tf-projet-soustitre {
    color: var(--ast-global-color-1, #e76423);
    font-size: 0.9rem;
    margin: 0.25rem 0 0.15rem;
}

.tf-projet-excerpt {
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
    margin: 0;
    line-height: 1.5;
}

/* Filtres */
.tf-projet-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tf-filter-btn {
    display: inline-block;
    padding: 0.5em 1.2em;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--ast-global-color-3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tf-filter-btn:hover,
.tf-filter-btn.is-active {
    background-color: var(--ast-global-color-0, #17304f);
    border-color: var(--ast-global-color-0, #17304f);
    color: #fff;
}

@media (max-width: 1024px) {
    .tf-projets-grid .tf-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .tf-projets-grid .tf-card {
        flex: 0 0 100%;
    }
}
/* ===== END PROJETS ===== */

/* ===== SOLUTIONS ===== */
.tf-solutions-grid .tf-card {
    flex: 0 0 calc(33.333% - 1.34rem);
}

.tf-solution-titre {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

a.tf-card:hover .tf-solution-titre {
    color: var(--ast-global-color-1, #e76423);
}

.tf-solution-excerpt {
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .tf-solutions-grid .tf-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .tf-solutions-grid .tf-card {
        flex: 0 0 100%;
    }
}
.tf-solutions-bandeau {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--ast-global-color-5, #f8fafc);
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    padding: 1rem 1.5rem;
}

.tf-solutions-bandeau label {
    font-weight: 600;
    color: var(--ast-global-color-2, #17304f);
    white-space: nowrap;
}

.tf-solutions-bandeau select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    font-size: 0.95rem;
    color: var(--ast-global-color-2, #17304f);
    background-color: #fff;
    cursor: pointer;
    flex: 1;
    max-width: 400px;
}

@media (max-width: 767px) {
    .tf-solutions-bandeau {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-solutions-bandeau label {
        white-space: normal;
    }

    .tf-solutions-bandeau select {
        max-width: 100%;
    }
}
/* ===== END SOLUTIONS ===== */

/* ===== PROCEDES ===== */
.tf-procedes-grid .tf-card {
    flex: 0 0 calc(50% - 1rem);
}

.tf-procede-titre {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    color: var(--ast-global-color-2, #17304f);
}

.tf-procede-excerpt {
    font-size: 0.95rem;
    color: var(--ast-global-color-3, #334155);
    margin: 0;
    line-height: 1.6;
}

.tf-procede-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ast-global-color-1, #e76423);
    margin: 0.75rem 0 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .tf-procedes-grid .tf-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .tf-procedes-grid .tf-card {
        flex: 0 0 100%;
    }
}
/* ===== END PROCEDES ===== */

/* ===== RESSOURCES ===== */
.tf-ressources-grid .tf-card {
    flex: 0 0 calc(33.333% - 1.34rem);
}

.tf-ressource-titre {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

a.tf-card:hover .tf-ressource-titre {
    color: var(--ast-global-color-1, #e76423);
}

.tf-ressource-excerpt {
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.tf-ressource-file {
    font-size: 0.8rem;
    color: var(--ast-global-color-1, #e76423);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1024px) {
    .tf-ressources-grid .tf-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .tf-ressources-grid .tf-card {
        flex: 0 0 100%;
    }
}
/* ===== END RESSOURCES ===== */

/* ===== SOUS-MENUS ===== */
.sub-menu .menu-item {
    margin-bottom: 0;
}

.sub-menu .menu-item .menu-link {
    padding-top: 5px;
    padding-bottom: 5px;
}
/* ===== END SOUS-MENUS ===== */

/* ===== MOBILE FIXES ===== */
@media (max-width: 1279px) {
    h1 br,
    h2 br,
    h3 br,
    h4 br {
        display: none;
    }
}
@media (max-width: 1279px) {
    .tf-icon-title-text {
        align-items: flex-start;
        gap: 0.5rem;
        flex: 0 0 calc(50% - 1rem);
    }

    .tf-icon-title-text .wp-block-image img {
        width: 20px !important;
        height: 20px !important;
    }

    .tf-icon-title-text .tf-content-wrapper p {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
        line-height: 1.2;
    }
}
/* ===== BOX ICONE ===== */
@media (max-width: 1279px) {
    .box-icone {
        padding: var(--wp--preset--spacing--50) !important;
    }

    .box-icone.is-layout-constrained > .wp-block-image,
    .box-icone .wp-block-image {
        display: inline-block !important;
        margin: 0 0 0 -5px !important;
        vertical-align: middle;
        max-width: none;
    }

    .box-icone.is-layout-constrained > h3,
    .box-icone h3 {
        display: inline-block !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        vertical-align: middle;
        max-width: none;
    }

    .box-icone .wp-block-image img {
        height: 30px !important;
        width: auto !important;
    }

    .box-icone h3 {
        display: inline-block;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        vertical-align: middle;
    }

    .box-icone p {
        margin-top: .5em !important;
    }

    .box-icone {
        margin-bottom: 0 !important;
    }
}
@media (max-width: 1279px) {
    .box-solutions .wp-block-column > .wp-block-image,
    .box-solutions .wp-block-column > .wp-block-image.aligncenter {
        display: inline-block !important;
        margin: 0 !important;
        vertical-align: middle;
        max-width: none;
        width: auto !important;
        float: none !important;
    }

    .box-solutions .wp-block-column > h3 {
        display: inline !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        vertical-align: middle;
        max-width: none;
    }

    .box-solutions .wp-block-column .wp-block-image img {
        height: 30px !important;
        width: auto !important;
    }

    .box-solutions {
        gap: 1em !important;
        margin-top: 0 !important;
    }

    .box-solutions .wp-block-column {
        padding: var(--wp--preset--spacing--50) !important;
        margin-bottom: 0 !important;
    }

    .box-solutions .wp-block-column p {
        margin-top: .5em !important;
        text-align: left !important;
    }

    .box-solutions .wp-block-column h3 {
        text-align: left !important;
    }

    .box-solutions .wp-block-column .wp-block-image {
        text-align: left !important;
    }
}
/* ===== END BOX ICONE ===== */

/* ===== HELPERS ===== */
.pl-0 { padding-left: 0 !important; }
.pl-0 .wp-block-image { margin-left: 0 !important; }

#professionnels .box-icone .wp-block-image img {
    height: 160px;
    width: auto;
}

#professionnels .box-icone {
    align-items: flex-start;
}

/* ===== INTERVENTIONS ===== */
#interventions .box-icone {
    flex: 1 1 0;
    text-align: left;
}

#interventions .box-icone .tf-icon-title-text {
    text-align: left;
}

#interventions .box-icone .tf-content-wrapper p {
    text-align: left;
}

@media (max-width: 1279px) {
    #interventions {
        flex-wrap: wrap !important;
        gap: 1em !important;
    }

    #interventions .box-icone {
        padding-left: 1.5em !important;
    }

    #interventions .tf-icon-title-text {
        flex: unset !important;
    }

    #interventions .tf-icon-wrapper {
        margin-left: 5px;
    }
}
@media (max-width: 767px) {
    #interventions .wp-block-column,
    #interventions .box-icone {
        flex-basis: 100% !important;
    }
}
/* ===== END INTERVENTIONS ===== */

#professionnels .tf-icon-title-text {
    align-items: flex-start;
}

#professionnels .tf-icon-title-text .wp-block-image {
    margin-right: .5em;
}

#professionnels .tf-icon-title-text .wp-block-image img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
    object-position: top;
}

#professionnels .tf-icon-title-text h3,
#professionnels .tf-icon-title-text .wp-block-heading {
    margin-bottom: 0 !important;
}
/* ===== SOCIAL LINKS ===== */
.tf-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tf-social-links a {
    color: var(--ast-global-color-7, #d1d5db);
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.tf-social-links a:hover {
    color: var(--ast-global-color-1, #e76423);
}
/* ===== FOOTER ===== */
@media (max-width: 1279px) {
    .site-primary-footer-wrap .ast-builder-grid-row {
        padding-left: var(--wp--preset--spacing--60) !important;
        padding-right: var(--wp--preset--spacing--60) !important;
    }
}
/* ===== END FOOTER ===== */

/* ===== END SOCIAL LINKS ===== */

/* ===== END HELPERS ===== */

/* ===== END MOBILE FIXES ===== */

#masthead {
    position: fixed;
    width: 100%;
    top: 0;
}

body.admin-bar #masthead {
    top: 32px;
}

.sur-titre {
    position: relative;
    padding-left: 60px;
}

.sur-titre:before {
    position: absolute;
    top: 9px;
    left: 2px;
    content: '';
    width: 50px;
    height: 1px;
    background-color: var(--ast-global-color-1);
}

.section-carte {
    position: relative;
}

.section-carte:after {
    content: '';
    width: 35%;
    height: 100%;
    position: absolute;
    right: -1em;
    bottom: -3em;
    background: url(https://preprod.techfoam.ch/wp-content/uploads/2026/03/techfoam-map-suisse.png) no-repeat right;
    background-size: contain;
    opacity: .15;
    z-index: 0;
    pointer-events: none;
}

.section-carte > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1279px) {
    .section-carte {
        padding-left: var(--wp--preset--spacing--60) !important;
        padding-right: var(--wp--preset--spacing--60) !important;
    }

    .section-carte:after {
        width: 80%;
        right: 0;
        bottom: 0;
        top: auto;
        height: 50%;
        background-position: bottom right;
        opacity: 0.15;
        z-index: 0;
        pointer-events: none;
    }

    .section-carte > * {
        position: relative;
        z-index: 1;
    }
}

.forminator-button.forminator-button-submit {
    font-weight: 600;
}

.forminator-ui#forminator-module-192.forminator-design--default .forminator-select2 + .forminator-select .selection .select2-selection--single[role="combobox"] {
    border-color: #d2d5db!important;
}

.ast-footer-copyright a {
    color: white!important;
}

.tf-icon-title-text {
    flex-wrap: nowrap;
}

@media(max-width: 1280px){

    .box-solutions {
        padding-right: 2em!important;
        padding-left: 2em!important;
    }

    .box-solutions .wp-block-image {
        width: 50%;
    }

    .box-solutions h3,
    .box-solutions p {
        text-align: center;
    }

    #realisations .wp-block-column figure {
        margin-left: -2em!important;
        margin-right: -2em!important;
    }

    #interventions {
        flex-wrap: wrap !important;
        gap: 1em !important;
    }

    #interventions .wp-block-column {
        flex-basis: 47% !important;
        flex-grow: 0;
        padding: 1em 2em 0em 2em !important;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }
}
/* ===== FAQ ACCORDION ===== */
.wp-block-accordion-heading {
    font-size: 1rem;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    padding: 0.75em 1em;
    margin: 0;
}

.wp-block-accordion-heading__toggle {
    background: none !important;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ast-global-color-2) !important;
    padding: 0;
    text-decoration: none !important;
}

.wp-block-accordion-heading__toggle:hover,
.wp-block-accordion-heading__toggle:focus {
    background: none !important;
    color: var(--ast-global-color-2) !important;
    text-decoration: none !important;
    outline: none;
}

.wp-block-accordion-heading:hover {
    background: none !important;
}

.wp-block-accordion-item {
    margin-bottom: 0.5em;
}

.wp-block-accordion-panel {
    padding: 0.75em 1em;
    font-size: 0.9rem;
}
/* ===== END FAQ ACCORDION ===== */

/* FAQ Accordion - bordure réponse + hover question */
.wp-block-accordion-panel {
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    border-top: none;
}

.wp-block-accordion-heading:hover {
    background-color: #f0f2f5 !important;
}

.wp-block-accordion-heading {
    transition: background-color 0.2s ease;
}

/* FAQ - réduire espace entre question et réponse */
.wp-block-accordion-panel {
    margin-top: -1px !important;
    padding-top: 0.5em;
}

/* FAQ - padding réponse */
.wp-block-accordion-panel {
    padding: 1.25em 1em !important;
}

/* FAQ - plus de padding right sur le titre */
.wp-block-accordion-heading__toggle-icon {
    flex-shrink: 0;
    margin-left: 1.5em;
}

/* FAQ - enlever underline sur le titre au hover */
.wp-block-accordion-heading__toggle-title,
.wp-block-accordion-heading__toggle-title:hover,
.wp-block-accordion-heading__toggle-title:focus {
    text-decoration: none !important;
}

/* FAQ - couleurs titres et paragraphes alignées sur le thème */
.wp-block-accordion-heading__toggle-title {
    color: var(--ast-global-color-2, #1e293b) !important;
}

.wp-block-accordion-panel p,
.wp-block-accordion-panel li {
    color: var(--ast-global-color-3, #334155);
}

/* ===== SINGLE SOLUTION ===== */
.single-tf_solution .ast-article-single figure,
.single-tf_solution .ast-article-single img:not(figure img) {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.single-tf_solution .ast-article-single {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.single-tf_solution .ast-separate-container #primary {
    background: none;
    border: none;
    padding: 0;
}
/* ===== END SINGLE SOLUTION ===== */

/* Entry content margin bottom à 0 sur les CPT */
.single-tf_solution .entry-content,
.single-tf_projet .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Même fix images/container pour les projets */
.single-tf_projet .ast-article-single figure,
.single-tf_projet .ast-article-single img:not(figure img) {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.single-tf_projet .ast-article-single {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.single-tf_projet .ast-separate-container #primary {
    background: none;
    border: none;
    padding: 0;
}

/* ===== TAXONOMY BADGES ===== */
.wp-block-tag-cloud a,
.wp-block-categories-list a,
.wp-block-post-terms a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ast-global-color-2, #1e293b) !important;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.8rem !important;
    font-weight: 500;
    text-decoration: none !important;
    margin: 0 0.25em 0.4em 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.wp-block-tag-cloud a:hover,
.wp-block-categories-list a:hover,
.wp-block-post-terms a:hover {
    background: var(--ast-global-color-1, #e76423);
    color: #fff !important;
}
/* ===== END TAXONOMY BADGES ===== */

/* Taxonomy badges - override */
.wp-block-tag-cloud a,
.wp-block-categories-list a,
.wp-block-post-terms a {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #fff;
    position: relative;
    top: -1px;
}

.wp-block-tag-cloud a:hover,
.wp-block-categories-list a:hover,
.wp-block-post-terms a:hover {
    background: var(--ast-global-color-1, #e76423) !important;
    border-color: var(--ast-global-color-1, #e76423);
    color: #fff !important;
}

/* Enlever les virgules entre les termes */
.wp-block-post-terms {
    font-size: 0;
}

.wp-block-post-terms a {
    font-size: 0.8rem !important;
}

.wp-block-post-terms .wp-block-post-terms__separator {
    display: none;
}

/* Badges - espacement droite */
.wp-block-tag-cloud a,
.wp-block-categories-list a,
.wp-block-post-terms a {
    margin-right: 0.5em !important;
}

/* Sous-menus - padding et taille de fonte */
.sub-menu {
    padding: 0.5em 0.75em !important;
}

.sub-menu .menu-item .menu-link {
    font-size: 0.85rem;
}

/* Sous-menus - plus d'espace vertical */
.sub-menu {
    padding: 1em 0.75em !important;
}

/* ===== ARTICLES GRID ===== */
.tf-articles-grid .tf-card {
    flex: 0 0 calc(33.333% - 1.34rem);
}

.tf-article-date {
    font-size: 0.75rem;
    color: var(--ast-global-color-1, #e76423);
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.tf-article-titre {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

a.tf-card:hover .tf-article-titre {
    color: var(--ast-global-color-1, #e76423);
}

.tf-article-excerpt {
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .tf-articles-grid .tf-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .tf-articles-grid .tf-card {
        flex: 0 0 100%;
    }
}
/* ===== END ARTICLES ===== */

/* ===== PAGINATION ===== */
.tf-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.tf-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.4em;
}

.tf-pagination li {
    display: inline-block;
}

.tf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5em;
    height: 2.5em;
    padding: 0 0.6em;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ast-global-color-2, #1e293b);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tf-pagination .page-numbers:hover {
    border-color: var(--ast-global-color-1, #e76423);
    color: var(--ast-global-color-1, #e76423);
}

.tf-pagination .page-numbers.current {
    background: var(--ast-global-color-0, #17304f);
    border-color: var(--ast-global-color-0, #17304f);
    color: #fff;
}

.tf-pagination .page-numbers.prev,
.tf-pagination .page-numbers.next {
    font-size: 1.1rem;
}
/* ===== END PAGINATION ===== */

/* ===== STICKY HEADER sans top bar ===== */
#masthead {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: transform 0.3s ease;
}

body.admin-bar #masthead {
    top: 32px;
}

#masthead.header-scrolled .ast-above-header-wrap {
    transform: translateY(-100%);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

#masthead .ast-above-header-wrap {
    transition: all 0.3s ease;
    max-height: 100px;
    opacity: 1;
}
/* ===== END STICKY HEADER ===== */

/* Sticky header - fond sur le masthead pour éviter le flash blanc */
#masthead {
    background-color: var(--ast-global-color-0, #17304f);
}

/* Single article - dimensionnement */
@media (min-width: 993px) {
    .ast-separate-container #primary,
    .ast-separate-container.ast-left-sidebar #primary,
    .ast-separate-container.ast-right-sidebar #primary {
        margin: 7em 0;
        padding: 0;
    }
}

@media (min-width: 1201px) {
    .ast-separate-container .ast-article-post,
    .ast-separate-container .ast-article-single,
    .ast-separate-container .ast-author-box,
    .ast-separate-container .ast-404-layout-1,
    .ast-separate-container .no-results {
        padding: 2.5em 0 0;
    }
}

/* Single - post navigation */
.single .post-navigation {
    padding: 6em 0 0;
}

/* ===== FAQ GRID ===== */
.tf-faq-grid {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.tf-faq-col {
    flex: 0 0 calc(50% - 1rem);
}

@media (max-width: 767px) {
    .tf-faq-grid {
        flex-direction: column;
    }

    .tf-faq-col {
        flex: 0 0 100%;
    }
}
/* ===== END FAQ GRID ===== */

/* ===== SIDEBAR ===== */
#secondary {
    background-color: var(--ast-global-color-6, #f3f5f7);
    padding: 1.5em !important;
    margin-top: 10em;
}

@media (max-width: 1279px) {
    #secondary {
        margin-top: 2em;
    }
}

#secondary .widget {
    padding: 0 !important;
    margin-bottom: 1em !important;
}

#secondary .widget h2,
#secondary .widget .widget-title {
    margin-top: 0;
    margin-bottom: 0.5em;
}

#secondary .widget:last-child {
    margin-bottom: 0 !important;
}
/* ===== END SIDEBAR ===== */

/* Container flex gap pour sidebar */
@media (min-width: 1280px) {
    .site-content .ast-container {
        gap: 2em;
    }
}

/* Sidebar widgets - fond transparent */
#secondary .widget {
    background: transparent !important;
}

/* ===== ZONES TRAITÉES ===== */
.tf-zones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.tf-zone-card {
    flex: 0 0 calc(100% / var(--tf-zones-cols, 4) - 1.5rem);
    background-color: #fff;
    border: 1px solid var(--ast-global-color-7, #d1d5db);
    padding: var(--wp--preset--spacing--60);
    text-align: center;
    transition: border-color 0.25s ease;
}

.tf-zone-card:hover {
    border-color: var(--ast-global-color-1, #e76423);
}

.tf-no-hover .tf-zone-card:hover {
    border-color: var(--ast-global-color-7, #d1d5db);
}

a.tf-zone-card,
a.tf-zone-card *,
a.tf-zone-card:hover,
a.tf-zone-card:hover * {
    text-decoration: none !important;
    color: inherit;
}

.tf-zone-icon {
    margin-bottom: 1rem;
}

.tf-zone-icon img {
    height: 160px;
    width: auto;
    display: inline-block;
}

.tf-zone-titre {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    text-align: left;
}

.tf-zone-desc {
    font-size: 0.85rem;
    color: var(--ast-global-color-3);
    text-align: left;
}

.tf-zone-desc p {
    margin: 0;
}

@media (max-width: 1279px) {
    .tf-zone-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    .tf-zone-card {
        flex: 0 0 100%;
    }
}
/* ===== END ZONES ===== */

/* ===== REVERSE MOBILE — inverser colonnes texte/image sur mobile ===== */
@media (max-width: 767px) {
    .reverse-section-mobile.wp-block-columns {
        flex-direction: column-reverse !important;
    }
}
/* ===== END REVERSE MOBILE ===== */

/* ===== SINGLE RESSOURCE ===== */
.single-tf_ressource .post-navigation {
    display: none;
}
/* ===== END SINGLE RESSOURCE ===== */

/* ===== CTA MOBILE STICKY ===== */
.tf-cta-mobile {
    display: none;
}

@media (max-width: 767px) {
    .tf-cta-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background: var(--ast-global-color-0, #17304f);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        padding: 0.6rem 1rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .tf-cta-mobile.is-visible {
        transform: translateY(0);
    }

    .tf-cta-mobile-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 0.5rem;
    }

    .tf-cta-mobile-list li {
        flex: 1;
    }

    .tf-cta-mobile-list a {
        display: block;
        text-align: center;
        padding: 0.75rem 0.5rem;
        border-radius: 4px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        color: #fff;
        background: var(--ast-global-color-1, #e76423);
        transition: background 0.2s ease;
    }

    .tf-cta-mobile-list a:hover {
        background: #cf5a1f;
    }

    /* Ajouter du padding en bas du body pour ne pas masquer le contenu */
    body {
        padding-bottom: 70px;
    }
}
/* ===== END CTA MOBILE STICKY ===== */

/* ===== LANGUAGE SWITCHER ===== */
/* Pas de méga menu sur le dropdown de langues */
@media (min-width: 1280px) {
    .main-header-menu > .menu-item.lang-item.menu-item-has-children > .sub-menu {
        display: none;
        position: relative !important;
        width: auto !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: none;
        padding: 0.5rem !important;
        flex-wrap: nowrap;
    }

    .main-header-menu > .menu-item.lang-item.menu-item-has-children:hover > .sub-menu {
        display: block;
        position: absolute !important;
    }
}

/* Pas de padding droite sur les liens drapeaux */
.lang-item .menu-link {
    padding-right: 0 !important;
}
/* ===== END LANGUAGE SWITCHER ===== */

/* ===== MEGA MENU — tous les sous-menus du menu principal ===== */
/* >>> BLOC TEST — supprimer ce bloc entier pour revenir aux menus normaux <<< */
@media (min-width: 1280px) {
    /* Toute la chaîne parente doit être static */
    .main-header-menu .menu-item-has-children,
    .main-header-menu,
    .main-navigation,
    .ast-primary-header-bar,
    .site-primary-header-wrap {
        position: static !important;
    }

    /* Sub-menu pleine largeur, contenu centré sur le container */
    .main-header-menu > .menu-item-has-children > .sub-menu {
        display: none;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background: #fff;
        border-top: 3px solid var(--ast-global-color-1, #e76423);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        padding: 1.5rem calc((100vw - var(--ast-normal-container-width, 1280px)) / 2) !important;
        flex-wrap: wrap;
        gap: 0;
        z-index: 9999;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Afficher au hover */
    .main-header-menu > .menu-item-has-children:hover > .sub-menu,
    .main-header-menu > .menu-item-has-children:focus-within > .sub-menu {
        display: flex;
    }

    /* Items en colonnes : 3 colonnes par défaut avec gap */
    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item {
        flex: 0 0 calc(33.333% - 1.5rem);
        margin: 0 0.75rem;
        padding: 0;
        border-bottom: 1px solid var(--ast-global-color-7, #eee);
        box-sizing: border-box;
    }

    /* Liens */
    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item > .menu-link {
        font-size: 0.9rem;
        color: var(--ast-global-color-2, #1e293b);
        padding: 0.75rem 1rem;
        transition: all 0.15s ease;
        display: flex;
        align-items: center;
    }

    /* Cacher la flèche Astra, afficher notre flèche */
    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item > .menu-link .ast-icon {
        display: none;
    }

    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item > .menu-link::before {
        content: '\2192';
        margin-right: 0.6em;
        color: var(--ast-global-color-1, #e76423);
        font-size: 0.85em;
        flex-shrink: 0;
    }

    /* Hover sur les items */
    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item:hover {
        background-color: var(--ast-global-color-6, #f3f5f7);
    }

    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item:hover > .menu-link {
        color: var(--ast-global-color-1, #e76423);
    }

    /* Dernière rangée sans bordure (3 colonnes) */
    .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}
/* ===== END MEGA MENU ===== */
