/* Direction artistique DEMI-E 2.4 : terrain éditorial, bleu aquatique, bleu nuit, sable et accueil simplifié mobile-first. */
:root { --demie-aqua: #087eae; --demie-navy: #092c4c; --demie-ink: #112b42; --demie-sand: #f3eee4; --demie-mist: #e5f3f6; --demie-line: rgba(9, 44, 76, .16); }

.demie-refonte { background: #fff; color: var(--demie-ink); font-family: "DM Sans", Arial, sans-serif; line-height: 1.68; margin-left: calc(50% - 50vw); overflow: clip; width: 100vw; }
.demie-refonte *, .demie-refonte *::before, .demie-refonte *::after, .demie-site-footer *, .demie-site-footer *::before, .demie-site-footer *::after { box-sizing: border-box; }
.demie-refonte h1, .demie-refonte h2, .demie-refonte h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; letter-spacing: -.045em; line-height: .99; margin-top: 0; }
.demie-refonte h1 { font-size: clamp(3.15rem, 7.5vw, 6.8rem); margin-bottom: 1.5rem; max-width: 920px; }
.demie-refonte h2 { font-size: clamp(2.5rem, 4.6vw, 4.55rem); margin-bottom: 0; max-width: 960px; }
.demie-refonte h3 { font-size: clamp(1.7rem, 2.4vw, 2.45rem); margin-bottom: .9rem; }
.demie-refonte p { margin-top: 0; }
.demie-wrap { margin: 0 auto; width: min(1220px, calc(100% - 72px)); }
.demie-section { padding: clamp(5.5rem, 10vw, 10rem) 0; }
.demie-section--sand { background: var(--demie-sand); }
.demie-section--mist { background: var(--demie-mist); }
.demie-section--navy { background: var(--demie-navy); color: #fff; }
.demie-kicker, .demie-eyebrow { color: var(--demie-aqua); font-family: "DM Sans", Arial, sans-serif; font-size: .73rem; font-weight: 700; letter-spacing: .15em; margin-bottom: 1.1rem; text-transform: uppercase; }
.demie-text-link { align-items: center; color: var(--demie-navy); display: inline-flex; font-size: .9rem; font-weight: 700; gap: .55rem; text-decoration: none; }
.demie-text-link span, .demie-program-card__link span { color: var(--demie-aqua); font-size: 1.2em; transition: transform .18s cubic-bezier(.23,1,.32,1); }
.demie-text-link:hover span, .demie-program-card__link:hover span { transform: translateX(4px); }
.demie-button { align-items: center; border: 1px solid transparent; display: inline-flex; font-family: "DM Sans", Arial, sans-serif; font-size: .9rem; font-weight: 700; gap: .75rem; justify-content: center; min-height: 54px; padding: .85rem 1.25rem; text-decoration: none; transition: transform .18s cubic-bezier(.23,1,.32,1), background-color .18s cubic-bezier(.23,1,.32,1), color .18s cubic-bezier(.23,1,.32,1); }
.demie-button:active { transform: scale(.97); }
.demie-button--primary { background: var(--demie-aqua); color: #fff; }
.demie-button--primary:hover { background: #056789; color: #fff; }
.demie-button--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.demie-button--ghost:hover { background: #fff; color: var(--demie-navy); }
.demie-button--light { background: #fff; color: var(--demie-navy); }
.demie-button--light:hover { background: var(--demie-mist); color: var(--demie-navy); }

.demie-hero { align-items: flex-end; background-image: var(--demie-hero-image); background-position: center; background-size: cover; color: #fff; display: flex; min-height: min(850px, 88vh); position: relative; }
.demie-hero--full { min-height: max(720px, calc(100vh - 70px)); width: 100%; }
.demie-hero__veil { background: rgba(3, 29, 51, .68); inset: 0; position: absolute; }
.demie-hero__content { padding: clamp(8rem, 16vw, 13.5rem) 0 clamp(5.5rem, 9vw, 8rem); position: relative; z-index: 1; }
.demie-hero .demie-eyebrow { color: #b5edff; }
.demie-hero h1, .demie-hero .demie-hero__lead { color: #fff !important; }
.demie-hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.45rem); margin-bottom: 0; max-width: 670px; }
.demie-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.demie-hero__caption { align-items: center; bottom: 2rem; display: flex; font-size: .76rem; gap: .8rem; left: max(36px, calc((100vw - 1220px) / 2)); letter-spacing: .05em; position: absolute; text-transform: uppercase; z-index: 1; }
.demie-hero__caption span { background: #fff; display: block; height: 1px; width: 42px; }
.demie-hero__caption p { margin: 0; }

.demie-intro__grid { align-items: start; display: grid; gap: clamp(3rem, 10vw, 12rem); grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); }
.demie-intro__title { max-width: 720px; }
.demie-intro__copy { border-left: 2px solid var(--demie-aqua); padding-left: clamp(1.4rem, 3vw, 2.5rem); }
.demie-intro__copy p { font-size: 1.13rem; margin-bottom: 1.8rem; }
.demie-territories { background: var(--demie-aqua); color: #fff; }
.demie-territories__inner { align-items: center; display: grid; gap: 1.5rem 2rem; grid-template-columns: auto 1fr auto; min-height: 110px; }
.demie-territories p { font-family: "Source Serif 4", Georgia, serif; font-size: 1.42rem; font-weight: 700; margin: 0; }
.demie-territories ul { display: flex; flex-wrap: wrap; gap: .4rem .8rem; list-style: none; margin: 0; padding: 0; }
.demie-territories li { border-left: 1px solid rgba(255,255,255,.58); font-size: .82rem; font-weight: 700; padding-left: .8rem; }
.demie-territories li:first-child { border-left: 0; padding-left: 0; }
.demie-territories a { color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.demie-territories a span { margin-left: .4rem; }

.demie-section-heading { align-items: end; display: flex; gap: 2.5rem; justify-content: space-between; margin-bottom: clamp(2.5rem, 5vw, 4.8rem); }
.demie-section-heading > div { max-width: 930px; }
.demie-program-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.demie-program-card { background: #fff; display: flex; flex-direction: column; min-width: 0; }
.demie-program-card__media { aspect-ratio: 1.08 / 1; display: block; overflow: hidden; }
.demie-program-card__media img { height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.23,1,.32,1); width: 100%; }
.demie-program-card:hover .demie-program-card__media img { transform: scale(1.035); }
.demie-program-card__placeholder { align-items: flex-end; background: #d7ebef; color: var(--demie-navy); display: flex; font-family: "DM Sans", Arial, sans-serif; font-size: .7rem; font-weight: 700; height: 100%; letter-spacing: .12em; padding: 1.25rem; position: relative; text-transform: uppercase; width: 100%; }
.demie-program-card__placeholder::before { background: var(--demie-aqua); content: ""; height: 7px; left: 1.25rem; position: absolute; top: 1.25rem; width: 44px; }
.demie-program-card:nth-child(2) .demie-program-card__placeholder { background: #e6e9dc; }
.demie-program-card:nth-child(3) .demie-program-card__placeholder { background: #e4e8f0; }
.demie-program-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.7rem 1.55rem 1.8rem; }
.demie-program-card__body > span { color: var(--demie-aqua); font-size: .7rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 2.2rem; text-transform: uppercase; }
.demie-program-card__body p { color: #40566a; font-size: .96rem; }
.demie-program-card__link { align-items: center; color: var(--demie-navy); display: inline-flex; font-size: .83rem; font-weight: 700; gap: .45rem; margin-top: auto; padding-top: 1.15rem; text-decoration: none; }

.demie-principle__grid { display: grid; gap: clamp(2.5rem, 6vw, 7rem); grid-template-columns: .34fr 1fr; }
.demie-principle .demie-kicker { color: #98e7ff; margin: .6rem 0 0; }
.demie-principle h2, .demie-section--navy h2, .demie-section--navy h3, .demie-section--navy p, .demie-section--navy .demie-text-link { color: #fff !important; max-width: 900px; }
.demie-section--navy .demie-text-link span { color: #9deaff; }
.demie-principle .demie-button { margin-top: 2.3rem; }

.demie-news-grid, .demie-archive__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.demie-news-grid .demie-card--feature { background: var(--demie-mist); border-top: 0; display: grid; grid-column: span 2; grid-template-columns: minmax(0, 1.18fr) minmax(220px, .82fr); padding: 0; }
.demie-news-grid .demie-card--feature .demie-card__media { aspect-ratio: auto; height: 100%; min-height: 330px; }
.demie-news-grid .demie-card--feature .demie-card__body { padding: clamp(1.7rem, 3vw, 3rem); }
.demie-news-grid .demie-card--feature h3 { font-size: clamp(2rem, 3vw, 3.1rem); }
.demie-card { border-top: 1px solid var(--demie-line); display: flex; flex-direction: column; min-width: 0; padding-top: .8rem; }
.demie-card__media { aspect-ratio: 1.5 / 1; background: #dcecf0; display: block; overflow: hidden; }
.demie-card__media img { height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.23,1,.32,1); width: 100%; }
.demie-card:hover .demie-card__media img { transform: scale(1.035); }
.demie-card__placeholder { background: var(--demie-mist); display: block; height: 100%; width: 100%; }
.demie-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.3rem 0 .3rem; }
.demie-card__date { color: var(--demie-aqua); font-size: .7rem; font-weight: 700; letter-spacing: .09em; margin-bottom: .8rem; text-transform: uppercase; }
.demie-card h3 { font-size: 1.65rem; letter-spacing: -.035em; }
.demie-card h3 a { color: var(--demie-navy); text-decoration: none; }
.demie-card__body > p:not(.demie-card__date) { color: #52697c; font-size: .92rem; }
.demie-card .demie-text-link { margin-top: auto; padding-top: .9rem; }
.demie-archive { background: #fff; min-height: 60vh; padding: clamp(5rem, 9vw, 9rem) 0; }
.demie-archive__head { border-bottom: 1px solid var(--demie-line); margin-bottom: 3.4rem; max-width: 940px; padding-bottom: 2.4rem; }
.demie-archive__head > p:last-child { font-size: 1.08rem; max-width: 650px; }

.demie-partners__grid { display: grid; gap: clamp(3rem, 9vw, 10rem); grid-template-columns: 1.05fr .72fr; }
.demie-partners__grid > div:last-child { border-left: 2px solid var(--demie-aqua); padding-left: clamp(1.4rem, 3vw, 2.5rem); }
.demie-partners__grid p { font-size: 1.13rem; margin-bottom: 1.75rem; }
.demie-cta { background: var(--demie-aqua); color: #fff; padding: clamp(4rem, 8vw, 7rem) 0; }
.demie-cta .demie-kicker { color: #d8f8ff; }
.demie-cta h2, .demie-cta p { color: #fff !important; }
.demie-cta__inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.demie-cta h2 { font-size: clamp(2.4rem, 4vw, 4rem); }

/* Navigation et pages de Mistify/Kubio : extension de la direction éditoriale au reste du site. */
body, .wp-site-blocks { font-family: "DM Sans", Arial, sans-serif; }
.header.header-front-page .wp-block-kubio-navigation-top-bar__outer { background: #fff !important; border-bottom: 1px solid rgba(9,44,76,.12); }
.header.header-front-page .wp-block-kubio-menu-items__outer .menu-item > a { color: #092c4c !important; font-family: "DM Sans", Arial, sans-serif; font-size: .73rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.header.header-front-page .wp-block-kubio-menu-items__outer .menu-item.current-menu-item > a, .header.header-front-page .wp-block-kubio-menu-items__outer .menu-item.current-menu-ancestor > a { color: #087eae !important; }
.header.header-front-page .wp-block-kubio-menu-items__outer .sub-menu { border-top: 3px solid #087eae; box-shadow: 0 14px 30px rgba(9,44,76,.14); }
.header.header-front-page .wp-block-kubio-menu-items__outer .sub-menu a { font-size: .82rem; letter-spacing: 0; text-transform: none; }
.footer.footer-front-page, .footer.footer-inner-page { display: none !important; }
.demie-site-footer { background: #092c4c; color: rgba(255,255,255,.77); margin: 0; padding: 5.2rem 0 1.4rem; }
.demie-site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.2fr .75fr .8fr 1fr; }
.demie-site-footer__brand img { height: auto; max-height: 82px; max-width: 135px; object-fit: contain; }
.demie-site-footer__brand .demie-brand__wordmark { border: 1px solid rgba(255,255,255,.52); color: #fff; display: inline-block; font-weight: 700; letter-spacing: .1em; padding: .4rem .6rem; }
.demie-site-footer__brand p { max-width: 320px; margin: 1.25rem 0 0; }
.demie-site-footer h2 { color: #9deaff; font-family: "DM Sans", Arial, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .14em; margin: .45rem 0 1.15rem; text-transform: uppercase; }
.demie-site-footer a { color: #fff; display: block; font-size: .92rem; margin: 0 0 .65rem; text-decoration: none; }
.demie-site-footer a:hover { color: #9deaff; }
.demie-site-footer__contact p { line-height: 1.75; margin: 0; }
.demie-site-footer__social { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.2rem; }
.demie-site-footer__social a { border-bottom: 1px solid rgba(157,234,255,.55); color: #9deaff; margin: 0; padding-bottom: .15rem; }
.demie-site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); display: flex; font-size: .78rem; gap: 1rem; justify-content: space-between; margin-top: 3.6rem; padding-top: 1.3rem; }

body.page:not(.home) .kubio-post-content.entry-content, body.single-post .kubio-post-content.entry-content { color: #30495d; font-size: 1.06rem; line-height: 1.85; margin-left: auto; margin-right: auto; max-width: 900px; }
body.page:not(.home) .kubio-post-content.entry-content > .wp-block-group, body.single-post .kubio-post-content.entry-content > .wp-block-group { background: #f8f6f2; border-left: 2px solid #087eae; margin-bottom: 2.3rem; padding: clamp(1.5rem, 4vw, 3rem); }
body.page:not(.home) .kubio-post-content.entry-content h2, body.page:not(.home) .kubio-post-content.entry-content h3, body.single-post .kubio-post-content.entry-content h2, body.single-post .kubio-post-content.entry-content h3 { color: #092c4c; font-family: "Source Serif 4", Georgia, serif; letter-spacing: -.035em; line-height: 1.08; margin-top: 2.5rem; }
body.page:not(.home) .kubio-post-content.entry-content h2, body.single-post .kubio-post-content.entry-content h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
body.page:not(.home) .kubio-post-content.entry-content a, body.single-post .kubio-post-content.entry-content a { color: #087eae; font-weight: 700; }
body.page:not(.home) .kubio-post-content.entry-content iframe[src*="facebook.com/plugins/like.php"] { display: none !important; }
body.single-post .kubio-post-content.entry-content img, body.page:not(.home) .kubio-post-content.entry-content img { height: auto; max-width: 100%; }

/* Pages textuelles : un signal visuel éditorial sans ajouter de contenu factice ni remplacer les textes. */
.demie-textual-page { position: relative; }
.demie-textual-page__accent { align-items: center; border-bottom: 1px solid var(--demie-line); display: flex; gap: 1rem; margin: 0 0 2.6rem; padding: 0 0 1.1rem; }
.demie-textual-page__accent span { color: var(--demie-aqua); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.demie-textual-page__accent i { background: var(--demie-aqua); display: block; height: 3px; width: 46px; }
.demie-textual-page__accent b { background: var(--demie-sand); display: block; flex: 1; height: 8px; max-width: 230px; }
.demie-contact-experience { background: var(--demie-sand); margin: clamp(3.5rem, 8vw, 7rem) calc(50% - 50vw) 0; padding: clamp(4.5rem, 9vw, 8rem) max(36px, calc((100vw - 1220px) / 2)); width: 100vw; }
.demie-contact-experience__intro { max-width: 860px; }
.demie-contact-experience__intro h2 { color: var(--demie-navy); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2.4rem, 4.5vw, 4.6rem); letter-spacing: -.045em; line-height: 1; margin: 0 0 1.4rem; }
.demie-contact-experience__intro > p:last-child { color: #40566a; font-size: 1.08rem; max-width: 630px; }
.demie-contact-experience__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); margin-top: clamp(3rem, 7vw, 6rem); }
.demie-contact-form-wrap { background: #fff; padding: clamp(1.5rem, 4vw, 3rem); }
.demie-contact-form-wrap h3, .demie-contact-location h3 { color: var(--demie-navy); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 1.6rem; }
.demie-contact-form p { margin: 0 0 1.25rem; }
.demie-contact-form label { color: var(--demie-navy); display: block; font-size: .82rem; font-weight: 700; letter-spacing: .03em; margin-bottom: .45rem; }
.demie-contact-form input:not([type="checkbox"]), .demie-contact-form textarea { background: #fff; border: 1px solid rgba(9,44,76,.25); border-radius: 0; color: var(--demie-ink); font: inherit; min-height: 48px; padding: .75rem; width: 100%; }
.demie-contact-form textarea { min-height: 150px; resize: vertical; }
.demie-contact-form input:focus, .demie-contact-form textarea:focus { border-color: var(--demie-aqua); outline: 3px solid rgba(8,126,174,.18); outline-offset: 1px; }
.demie-contact-form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.demie-contact-form__consent label { align-items: flex-start; color: #40566a; display: flex; font-size: .79rem; font-weight: 500; gap: .65rem; line-height: 1.45; }
.demie-contact-form__consent input { flex: 0 0 auto; margin-top: .15rem; }
.demie-contact-form__honeypot { left: -9999px; position: absolute; }
.demie-contact-notice { border-left: 3px solid var(--demie-aqua); font-size: .9rem; margin: 0 0 1.3rem; padding: .85rem 1rem; }
.demie-contact-notice--success { background: #e9f7f3; border-color: #167a5c; color: #145846; }
.demie-contact-notice--error { background: #fff1ef; border-color: #a23325; color: #81291e; }
.demie-contact-location { background: var(--demie-navy); color: #fff; display: flex; flex-direction: column; min-height: 100%; }
.demie-contact-location__copy { padding: clamp(1.6rem, 4vw, 3rem); }
.demie-contact-location .demie-kicker { color: #9deaff; }
.demie-contact-location h3 { color: #fff; }
.demie-contact-location__copy > p { color: rgba(255,255,255,.78); font-size: 1.02rem; line-height: 1.8; }
.demie-contact-location__copy a { color: #fff; }
.demie-contact-location__copy .demie-text-link { color: #9deaff; }
.demie-contact-map { border: 0; display: block; flex: 1; min-height: 360px; width: 100%; }
.demie-page-visual { background: var(--demie-navy); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); margin: 0 0 clamp(2.8rem, 6vw, 5.2rem); overflow: hidden; }
.demie-page-visual img { display: block; height: 100%; max-height: 430px; object-fit: cover; width: 100%; }
.demie-page-visual figcaption { align-items: flex-start; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 3rem); }
.demie-page-visual figcaption span { color: #9deaff; font-size: .7rem; font-weight: 700; letter-spacing: .13em; margin-bottom: .9rem; text-transform: uppercase; }
.demie-page-visual figcaption strong { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1.05; }
.demie-textual-page__content { color: #30495d; }
.demie-textual-page__content > p:first-of-type { border-left: 3px solid var(--demie-aqua); color: var(--demie-navy); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.38; margin-bottom: 2.6rem; padding-left: clamp(1.2rem, 3vw, 2.2rem); }
.demie-textual-page__content ul, .demie-textual-page__content ol { display: grid; gap: .75rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style-position: inside; padding: 0; }
.demie-textual-page__content li { background: #f5f8f8; border-left: 2px solid var(--demie-aqua); padding: .85rem 1rem; }
.demie-partner-showcase { background: var(--demie-sand); margin: 0 calc(50% - 50vw); padding: clamp(4rem, 8vw, 7rem) max(36px, calc((100vw - 1220px) / 2)); width: 100vw; }
.demie-partner-showcase__intro { max-width: 790px; }
.demie-partner-showcase__intro h2 { color: var(--demie-navy); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 4.6rem); letter-spacing: -.045em; line-height: 1; margin: 0 0 1.35rem; }
.demie-partner-showcase__intro > p:last-child { color: #40566a; font-size: 1.06rem; max-width: 620px; }
.demie-partner-logos { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.demie-partner-logo { background: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 195px; padding: 1.4rem; }
.demie-partner-logo__image { align-items: center; display: flex; height: 104px; justify-content: center; }
.demie-partner-logo__image img { max-height: 92px; max-width: 100%; object-fit: contain; }
.demie-partner-logo p { border-top: 1px solid var(--demie-line); color: #536a7d; font-size: .75rem; font-weight: 700; letter-spacing: .05em; margin: 1rem 0 0; padding-top: .8rem; text-transform: uppercase; }
.demie-partner-logo p span { font-size: 1.05rem; margin-right: .3rem; }
.demie-partner-wordmarks { border-top: 1px solid var(--demie-line); margin-top: 2rem; padding-top: 1.5rem; }
.demie-partner-wordmarks p { color: #536a7d; font-size: .72rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 .85rem; text-transform: uppercase; }
.demie-partner-wordmarks > div { display: flex; flex-wrap: wrap; gap: .7rem; }
.demie-partner-wordmarks span { background: rgba(255,255,255,.75); color: var(--demie-navy); display: inline-flex; font-size: .82rem; font-weight: 700; padding: .7rem .85rem; }

/* Accueil : rendre le hero réellement bord à bord malgré le conteneur Kubio du thème. */
body.home .kubio-post-content.entry-content { max-width: none !important; overflow: visible !important; padding-left: 0 !important; padding-right: 0 !important; }
body.home .kubio-post-content.entry-content > .demie-refonte { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; width: 100vw !important; }
body.home#kubio .mistify-page__k__p7Z7tbZgOg-inner { max-width: none !important; width: 100% !important; }
body.home#kubio .mistify-page__k__BI8NFTorih-container, body.home#kubio .mistify-page__k__BI8NFTorih-inner { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; }
body.home#kubio .mistify-page__k__DbkmkmgSJj-container, body.home#kubio .mistify-page__k__DbkmkmgSJj-inner, body.home#kubio .mistify-page__k__DbkmkmgSJj-align { flex: 0 0 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; }
body.home#kubio #content { display: block !important; max-width: none !important; width: 100% !important; }
body.home#kubio #post-763, body.home#kubio .mistify-page__k__p7Z7tbZgOg-outer { display: block !important; flex: 0 0 100% !important; margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; }
body.home#kubio #content, body.home#kubio #post-763 { overflow: visible !important; }
body.home#kubio #post-763 > .mistify-page__k__p7Z7tbZgOg-outer, body.home#kubio .mistify-page__k__p7Z7tbZgOg-inner, body.home#kubio .mistify-page__k__BI8NFTorih-container, body.home#kubio .mistify-page__k__BI8NFTorih-inner, body.home#kubio .mistify-page__k__DbkmkmgSJj-container, body.home#kubio .mistify-page__k__DbkmkmgSJj-inner, body.home#kubio .mistify-page__k__DbkmkmgSJj-align, body.home#kubio .kubio-post-content.entry-content { display: contents !important; overflow: visible !important; }
/* Solution de repli v2.3.4 : le seul canevas DEMI-E de l’accueil publié est promu sous body. */
body.home#kubio > .demie-refonte--detached { display: block !important; margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; overflow: clip !important; width: 100% !important; }

/* Accueil v2.4 : une lecture courte, une seule promesse, des repères nets et sans surcharge visuelle. */
body.home .demie-refonte--home-compact .demie-hero { background-position: center; min-height: max(640px, calc(100vh - 70px)); }
body.home .demie-refonte--home-compact .demie-hero__content { padding-bottom: clamp(4.5rem, 8vw, 7rem); padding-top: clamp(8rem, 15vw, 12rem); }
body.home .demie-refonte--home-compact .demie-hero h1 { font-size: clamp(3.4rem, 8vw, 7.4rem); max-width: 760px; }
body.home .demie-refonte--home-compact .demie-section { padding: clamp(4rem, 7vw, 7.5rem) 0; }
.demie-home-intro { max-width: 820px; }
.demie-home-intro h2 { margin-bottom: 1.3rem; }
.demie-home-intro > p:not(.demie-kicker) { color: #40566a; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.65; margin-bottom: 1.65rem; max-width: 690px; }
.demie-home-section-head { margin-bottom: clamp(2rem, 4vw, 3.4rem); max-width: 850px; }
.demie-home-section-head h2 { max-width: 780px; }
.demie-program-grid--compact { gap: 1px; background: rgba(9,44,76,.14); }
.demie-program-grid--compact .demie-program-card { min-height: 315px; }
.demie-program-grid--compact .demie-program-card__body { padding: clamp(1.6rem, 3vw, 2.5rem); }
.demie-program-grid--compact .demie-program-card__body > span { margin-bottom: auto; }
.demie-program-grid--compact .demie-program-card__body p { font-size: 1rem; margin-bottom: 1.7rem; }
.demie-news-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demie-news-grid--compact .demie-card { border-top: 1px solid var(--demie-line); padding-top: 0; }
.demie-news-grid--compact .demie-card__media { aspect-ratio: 1.45 / 1; }
.demie-news-grid--compact .demie-card__body { padding: 1.2rem 0 .2rem; }
.demie-news-grid--compact .demie-card h3 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); }
.demie-cta--compact { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.demie-cta--compact h2 { font-size: clamp(2.5rem, 4vw, 4rem); }

body.blog .post-list-item .wp-block-kubio-query-loop-item__align { background: #fff; border-top: 2px solid #087eae; box-shadow: 0 10px 28px rgba(9,44,76,.1); height: 100%; overflow: hidden; transition: transform .22s cubic-bezier(.23,1,.32,1), box-shadow .22s cubic-bezier(.23,1,.32,1); }
body.blog .post-list-item:hover .wp-block-kubio-query-loop-item__align { box-shadow: 0 17px 36px rgba(9,44,76,.15); transform: translateY(-4px); }
body.blog .post-list-item .wp-block-kubio-post-featured-image__container { overflow: hidden; }
body.blog .post-list-item .wp-block-kubio-post-featured-image__image { transition: transform .35s cubic-bezier(.23,1,.32,1); }
body.blog .post-list-item:hover .wp-block-kubio-post-featured-image__image { transform: scale(1.035); }
/* Actualités : conserver un visuel documentaire pour les articles sans image mise en avant, à partir des médias déjà publiés par DEMI-E. */
body.blog .post-list-item .wp-block-kubio-post-featured-image__container.kubio-post-featured-image--image-missing { background-image: url('http://ongdemi-e.org/wp-content/uploads/2024/02/IMG-20240130-WA0039.jpg'); background-position: center; background-size: cover; }
body.blog .post-list-item:nth-child(3n + 2) .wp-block-kubio-post-featured-image__container.kubio-post-featured-image--image-missing { background-image: url('http://ongdemi-e.org/wp-content/uploads/2024/02/IMG_20231207_131425-scaled.jpg'); }
body.blog .post-list-item:nth-child(3n) .wp-block-kubio-post-featured-image__container.kubio-post-featured-image--image-missing { background-image: url('http://ongdemi-e.org/wp-content/uploads/2020/12/cropped-WhatsApp-Image-2020-12-24-at-11.09.00.jpeg'); }
body.blog .post-list-item .wp-block-kubio-row__container { padding: 1.45rem 1.4rem 1.7rem; }
body.blog .post-list-item .wp-block-kubio-post-title__link { color: #092c4c; font-family: "Source Serif 4", Georgia, serif; font-weight: 700; }
body.blog .post-list-item .wp-block-kubio-post-meta__metaDataContainer { color: #087eae; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Accueil : le hero Mistify historique est retiré, mais sa navigation est conservée et clarifiée. */
body.home#kubio .mistify-front-header__k__J6FPNZyUrn-outer { display: none !important; }
body.home#kubio .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) { background: #fff; box-shadow: 0 1px 0 rgba(9,44,76,.12); padding-bottom: 15px; padding-top: 15px; }
body.home#kubio .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) .wp-block-kubio-menu-items__outer .menu-item > a { color: #092c4c !important; }
body.home#kubio .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) .wp-block-kubio-menu-items__outer .menu-item.current-menu-item > a, body.home#kubio .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) .wp-block-kubio-menu-items__outer .menu-item.current-menu-ancestor > a { color: #087eae !important; }

/* Accueil v2.4.2 : replacer le menu en superposition, comme le hero natif de Mistify, sans modifier le contenu. */
body.home#kubio .header.header-front-page { left: 0; position: absolute !important; top: 0; width: 100%; z-index: 30; }
body.home#kubio .header.header-front-page .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) { background: transparent !important; box-shadow: none !important; }
body.home#kubio .header.header-front-page .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) .wp-block-kubio-menu-items__outer .menu-item > a { color: #fff !important; text-shadow: 0 1px 10px rgba(0,0,0,.32); }
body.home#kubio .header.header-front-page .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) .wp-block-kubio-menu-items__outer .menu-item.current-menu-item > a, body.home#kubio .header.header-front-page .mistify-front-header__k__xLwdIMLPC_l-nav:not(.extra-1) .wp-block-kubio-menu-items__outer .menu-item.current-menu-ancestor > a { color: #fff !important; }
body.home#kubio .demie-refonte--home-compact .demie-hero { background-position: center center; }

/* Accueil v2.4.3 : supprimer uniquement la réserve vide de Kubio et les fonds de navigation résiduels. */
body.home#kubio #content { display: none !important; }
body.home#kubio .header.header-front-page .wp-block-kubio-navigation__outer, body.home#kubio .header.header-front-page .wp-block-kubio-navigation-top-bar__outer, body.home#kubio .header.header-front-page .wp-block-kubio-navigation-section__nav, body.home#kubio .header.header-front-page .wp-block-kubio-navigation-section__nav-section, body.home#kubio .header.header-front-page .background-wrapper, body.home#kubio .header.header-front-page .background-layer { background: transparent !important; border-color: rgba(255,255,255,.2) !important; }
body.home#kubio .header.header-front-page .wp-block-kubio-navigation-top-bar__outer { border-bottom-color: rgba(255,255,255,.2) !important; }

@media (max-width: 900px) { .demie-wrap { width: min(100% - 48px, 1220px); } .demie-program-grid, .demie-news-grid, .demie-archive__grid { grid-template-columns: repeat(2, 1fr); } .demie-program-card--feature { grid-column: span 2; } .demie-program-card--feature .demie-program-card__media { aspect-ratio: 2 / 1; } .demie-site-footer__grid { grid-template-columns: repeat(2, 1fr); } .demie-contact-experience__grid { grid-template-columns: 1fr; } .demie-contact-location { min-height: 620px; } .demie-page-visual { grid-template-columns: 1fr .55fr; } .demie-partner-logos { grid-template-columns: repeat(3, 1fr); } .demie-news-grid .demie-card--feature { grid-column: span 2; } body.home .demie-refonte--home-compact .demie-hero { min-height: max(590px, calc(100vh - 70px)); } }
@media (max-width: 680px) { .demie-wrap { width: min(100% - 32px, 1220px); } .demie-section { padding: 4.5rem 0; } .demie-hero { min-height: 700px; } .demie-hero__content { padding-bottom: 8.5rem; } .demie-hero__caption { bottom: 1.6rem; left: 16px; max-width: calc(100% - 32px); } .demie-hero__caption p { line-height: 1.35; } .demie-intro__grid, .demie-partners__grid, .demie-principle__grid { grid-template-columns: 1fr; } .demie-territories__inner { grid-template-columns: 1fr; padding: 1.7rem 0; } .demie-section-heading, .demie-cta__inner { align-items: flex-start; flex-direction: column; } .demie-program-grid, .demie-news-grid, .demie-archive__grid { grid-template-columns: 1fr; } .demie-program-card--feature { grid-column: auto; } .demie-program-card--feature .demie-program-card__media { aspect-ratio: 1.2 / 1; } .demie-program-card__media { aspect-ratio: 1.25 / 1; } .demie-card { padding-top: .55rem; } .demie-news-grid .demie-card--feature { display: flex; grid-column: auto; } .demie-news-grid .demie-card--feature .demie-card__media { aspect-ratio: 1.25 / 1; min-height: 0; } .demie-site-footer { padding-top: 4rem; } .demie-site-footer__grid { grid-template-columns: 1fr; } .demie-site-footer__bottom { align-items: flex-start; flex-direction: column; } .demie-contact-experience, .demie-partner-showcase { margin-top: 3rem; padding-left: 16px; padding-right: 16px; } .demie-contact-form__row { grid-template-columns: 1fr; } .demie-contact-location { min-height: 0; } .demie-contact-map { min-height: 290px; } .demie-page-visual { grid-template-columns: 1fr; } .demie-page-visual img { max-height: 300px; } .demie-partner-logos { grid-template-columns: 1fr; } .demie-textual-page__content ul, .demie-textual-page__content ol { grid-template-columns: 1fr; } body.home .demie-refonte--home-compact .demie-hero { min-height: max(540px, calc(100vh - 70px)); } body.home .demie-refonte--home-compact .demie-hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); } .demie-program-grid--compact .demie-program-card { min-height: 250px; } }
@media (prefers-reduced-motion: reduce) { .demie-refonte *, .demie-refonte *::before, .demie-refonte *::after, body.blog .post-list-item .wp-block-kubio-query-loop-item__align, body.blog .post-list-item .wp-block-kubio-post-featured-image__image { scroll-behavior: auto !important; transition-duration: .01ms !important; } body.blog .post-list-item:hover .wp-block-kubio-query-loop-item__align, body.blog .post-list-item:hover .wp-block-kubio-post-featured-image__image { transform: none; } }
