/* ==========================================
    Dividers
   ========================================== */

section:has(.home-hero), section:has(.expertise-hero) {
    --divider-height: 120px;
}

section:has(.realisations-hero) {
    --divider-height: 280px;
}

section:has(.site-hero) {
    --divider-height: 320px;
}


section:has(.realisations-hero) .divider:last-of-type {
    --divider-height: 150px;
}

section:has(.divider-185) {
    --divider-height: 160px;
}

section#agence .divider, section#expertise .divider, .page-id-101 .divider {
    z-index: 2;
}

section:has(.divider-191) {
    --divider-height: 480px;
}

section:has(.divider-696) {
    --divider-height: 120px;
}

.page-id-608 section:has(.divider-696) {
    --divider-height: 280px;
}

section:has(.divider-186) .divider.top {
    bottom: calc(100% - 170px);
}

section:has(.divider-186) {
    --divider-height: 380px;
}

section:has(.divider) > div > div {
    position: relative;
    z-index: 1;
}

:is(#evenements-site-locatif, #cta, #footer):before {
    position: absolute;
    left: 0;
    top: calc(-1 * var(--divider-height));
    width: 100%;
}

/* Global / Hooks */
article:has(> .divider) .entry-content {
    position: relative;
}

.hero-section .entry-header:has(> .divider) {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

.hero-section .entry-header:has(> .divider) {
    --divider-height: 240px;
}

.hero-section .entry-header:has(> .divider) .divider:nth-last-child(2) {
    --divider-height: 100px;
}

.hero-section .entry-header h1.page-title {
    position: relative;
    padding: 0 var(--theme-content-spacing);
    z-index: 10;
}

.single-evenement .ct-container-full {
	position: relative;
	z-index: 10;
}

.divider {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    pointer-events: none;
    bottom: calc(var(--divider-height) * -1);
}

.divider:last-of-type:not(:only-of-type) {
    z-index: 10;
}

.divider.top-overflow {
    z-index: 0;
}

.divider.top {
    bottom: calc(100% + var(--divider-height) * -1);
}

/* Sites locatifs Hero */
section:has(.single-site-hero) {
    --divider-height: 280px;
}

section:has(.single-site-hero) .wp-block-post-featured-image {
    position:relative;
    z-index: 10;
}

/* Événement site locatif */
#evenements-site-locatif {
    --divider-height: 70px;
    position: relative;
    margin-top: var(--divider-height) !important;
}
#evenements-site-locatif:before {
    content: url('/wp-content/uploads/2026/01/9.svg');
}
:is(#evenements-site-locatif, #cta, #footer) > div {
    position: relative;
    z-index: 10;
}

/* Appel à l'Action */
#cta {
    --divider-height: 80px;
    position: relative;
}

/* Footer */
#footer {
    --divider-height: 84px;
    position: relative;
}
#footer:before {
    z-index: 10;
    content: url('/wp-content/uploads/2025/10/cta-bottom.svg');
}