/* Public header, page introductions and footer. Loaded after the shared theme. */
body.public-site {
    --raised: #f1f6f3;
    --hover-yellow: #f4c95d;
    --shell-heading: #153c2d;
    --shell-panel: #edf5ef;
}
html[data-theme="dark"] body.public-site {
    --raised: #20382b;
    --shell-heading: #f3f8f5;
    --shell-panel: #192e23;
}

/* Both artworks occupy the same footprint; only the appropriate one is exposed. */
.public-site .theme-brand { display: inline-block; vertical-align: middle; }
.public-site .theme-brand > img { display: block; object-fit: contain; }
.public-site .theme-brand > .theme-brand-dark { display: none; }
html[data-theme="dark"] .public-site .theme-brand > .theme-brand-light,
.public-site .theme-brand-on-dark > .theme-brand-light { display: none; }
html[data-theme="dark"] .public-site .theme-brand > .theme-brand-dark,
.public-site .theme-brand-on-dark > .theme-brand-dark { display: block; }
html[data-theme] body.public-site .site-header { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: none; }
html[data-theme] body.public-site .site-header .navbar { min-height: 88px; padding-block: .65rem !important; }
html[data-theme] body.public-site .site-header .navbar-brand,
html[data-theme] body.public-site .drawer-brand { padding: 0; background: transparent; }
html[data-theme] body.public-site .site-header .site-logo { width: 184px; height: 56px; }
html[data-theme] body.public-site .site-header .nav-link { color: var(--ink); background: transparent; font-size: .875rem; }
html[data-theme] body.public-site .site-header .nav-link:is(:hover, :focus-visible, .active) { color: var(--green); background: var(--mint); }
html[data-theme] body.public-site .site-header .nav-link-disabled { color: var(--muted); }
html[data-theme] body.public-site .site-header :is(.theme-toggle, .mobile-header-icon, .mobile-menu-trigger) { color: var(--ink); background: var(--surface); border-color: var(--line); }
html[data-theme] body.public-site .site-header .public-publish-button { color: #173528 !important; background: #e6a54b; border-color: #e6a54b; }
html[data-theme] body.public-site .site-header .public-publish-button:is(:hover, :focus-visible) { color: #173528; background: #f4c95d; border-color: #f4c95d; }
html[data-theme="dark"] body.public-site .site-header { background: #0d211a; }
html[data-theme="dark"] body.public-site .public-publish-menu .dropdown-item { color: var(--ink) !important; }
.public-site .mobile-menu-cta strong { color: var(--ink); }
.public-site .mobile-menu-cta p { color: var(--muted); }

/* Original photography with a strong reading area and a clear image on the right. */
html[data-theme] body.public-site .home-hero {
    background: linear-gradient(90deg, rgba(5, 36, 25, .96) 0%, rgba(5, 36, 25, .9) 32%, rgba(5, 36, 25, .36) 66%, rgba(5, 36, 25, .06)), url('../images/hero_home.jpg') center 50% / cover;
    color: #fff;
    border-bottom: 0;
}
html[data-theme] body.public-site .home-hero > .container { padding-block: clamp(4rem, 6.5vw, 6rem) !important; }
html[data-theme] body.public-site .home-hero h1 {
    max-width: 690px; margin: 0 0 1.5rem;
    color: #fff; font-size: clamp(2.35rem, 4.5vw, 4.1rem); line-height: 1.08;
    font-weight: 700; letter-spacing: -.04em; text-wrap: balance;
}
html[data-theme] body.public-site .home-hero h1 em { color: #f4c95d; font-style: normal; }
html[data-theme] body.public-site .home-hero .hero-copy { max-width: 560px; color: #e0ece4; font-size: 1.08rem; font-weight: 400; line-height: 1.7; text-shadow: none; }
html[data-theme] body.public-site .home-hero .eyebrow { color: #f4c95d; margin-bottom: 1.4rem; font-size: .75rem; letter-spacing: .12em; }
html[data-theme] body.public-site .home-hero .btn { padding: .9rem 1.3rem; font-size: .95rem; }
html[data-theme] body.public-site .home-hero .btn-primary { color: #173528; background: #e6a54b; border-color: #e6a54b; }
html[data-theme] body.public-site .home-hero .btn-primary:is(:hover, :focus-visible) { background: #f4c95d; border-color: #f4c95d; }
html[data-theme] body.public-site .home-hero .btn-outline-dark { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(6,36,25,.35); }
html[data-theme] body.public-site .home-hero .btn-outline-dark:is(:hover, :focus-visible) { color: #173528; background: #fff; border-color: #fff; }

.public-site .opportunities-intro { --intro-image: url('../images/hero_emploi.jpg'); --intro-position: 70% 52%; }
.public-site .activities-intro { --intro-image: url('../images/hero_activite.jpg'); --intro-position: 70% 54%; }
.public-site .organizations-intro { --intro-image: url('../images/hero_organisation.jpg'); --intro-position: 70% 54%; }
.public-site .advertise-intro { --intro-image: url('../images/advertise-hero.webp'); --intro-position: 70% 55%; }
.public-site .sponsored-directory-intro { --intro-image: url('../images/design_pub.jpg'); --intro-position: 70% 50%; }
html[data-theme] body.public-site .page-intro.page-intro-illustrated,
html[data-theme] body.public-site .sponsored-directory-intro {
    position: relative; isolation: isolate;
    display: flex; align-items: center;
    min-height: clamp(480px, 56vh, 590px);
    padding-block: clamp(3.5rem, 6vw, 5rem);
    border: 0; border-bottom: 1px solid var(--line);
    background-color: var(--shell-panel);
    background-image: linear-gradient(90deg, #edf5ef 0%, rgba(237,245,239,.97) 35%, rgba(237,245,239,.75) 52%, rgba(237,245,239,.05) 78%), var(--intro-image);
    background-position: center, var(--intro-position);
    background-size: cover; background-repeat: no-repeat;
}
html[data-theme="dark"] body.public-site .page-intro.page-intro-illustrated,
html[data-theme="dark"] body.public-site .sponsored-directory-intro {
    background-image: linear-gradient(90deg, #132c20 0%, rgba(19,44,32,.98) 35%, rgba(19,44,32,.8) 52%, rgba(19,44,32,.12) 78%), var(--intro-image);
}
html[data-theme] body.public-site .page-intro h1 { max-width: 620px; margin-bottom: 1.1rem; color: var(--shell-heading); font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
html[data-theme] body.public-site .page-intro p:not(.eyebrow) { max-width: 540px; color: var(--ink); font-size: 1.04rem; line-height: 1.7; font-weight: 400; }
html[data-theme] body.public-site .page-intro :is(h1, p, .eyebrow) { text-shadow: none; }
.public-site .page-intro .eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--green); margin-bottom: 1.1rem; }
.public-site .page-intro .eyebrow::before { content: ''; width: 24px; height: 3px; background: #e6a54b; flex-shrink: 0; }
html[data-theme] body.public-site .page-intro:not(.page-intro-illustrated):not(.sponsored-directory-intro) {
    display: flex; align-items: center;
    min-height: clamp(400px, 46vh, 500px);
    background: var(--shell-panel); padding-block: 3.5rem; border-bottom: 1px solid var(--line);
}
/* The page title carries the hierarchy; redundant overlines and their rules stay hidden. */
.public-site .page-intro > .container > .eyebrow,
.public-site .legal-hero > .container > .eyebrow { display: none; }
html[data-theme] body.public-site .contact-hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.public-site .contact-hero { min-height: clamp(440px, 52vh, 560px); }
.public-site .contact-hero-note { border-left: 3px solid #e6a54b; }
.public-site .detail-hero { height: clamp(540px, 72vh, 650px); background: #0c291d; }
.public-site .detail-hero-overlay { background: linear-gradient(0deg, rgba(5,27,19,.96), rgba(5,27,19,.6) 55%, rgba(5,27,19,.1)); }
.public-site .detail-hero h1 { max-width: 920px; font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.15; }
.public-site .reader-auth-card { margin-inline: auto; }

/* Text colors on quiet light surfaces must follow the active theme tokens. */
html[data-theme] body.public-site .about-kreatis-content h3,
html[data-theme] body.public-site .about-kreatis-content > p strong { color: var(--ink); }
html[data-theme] body.public-site .about-kreatis-eyebrow { color: var(--green); }

/* Publication cards keep the publisher name without an extra company avatar. */
.public-site .organization-identity { gap: 0; }

/* Legal pages use a restrained reading layout with a sticky desktop summary. */
html[data-theme] body.public-site .legal-hero {
    display: flex;
    align-items: center;
    min-height: clamp(460px, 54vh, 560px);
    padding-block: clamp(3.5rem, 7vw, 6rem);
    color: var(--ink);
    background: var(--shell-panel);
    border-bottom: 1px solid var(--line);
}
.public-site .legal-hero .container { max-width: 920px; }
.public-site .legal-hero .eyebrow { margin-bottom: 1rem; color: var(--green); }
.public-site .legal-hero h1 { max-width: 760px; margin-bottom: 1rem; color: var(--shell-heading); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.public-site .legal-hero p { max-width: 720px; margin-bottom: 1.25rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.public-site .legal-updated { color: var(--muted); font-size: .8rem; }
.public-site .legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.public-site .legal-summary { position: sticky; top: 110px; align-self: start; display: grid; gap: .25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.public-site .legal-summary strong { margin-bottom: .6rem; color: var(--ink); font-size: .82rem; }
.public-site .legal-summary a { padding-block: .35rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.public-site .legal-summary a:is(:hover, :focus-visible) { color: var(--green); }
.public-site .legal-content { min-width: 0; }
.public-site .legal-content section { scroll-margin-top: 110px; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.public-site .legal-content section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.public-site .legal-content h2 { margin-bottom: 1rem; color: var(--shell-heading); font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.3; }
.public-site .legal-content :is(p, li) { color: var(--muted); font-size: .96rem; line-height: 1.8; }
.public-site .legal-content p { margin-bottom: 1rem; }
.public-site .legal-content ul { display: grid; gap: .55rem; padding-left: 1.25rem; }
.public-site .legal-content strong { color: var(--ink); }
.public-site .legal-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* A compact partner band, then newsletter and a legible four-column footer. */
html[data-theme] body.public-site .kreatis-footer-cta { background: var(--paper); color: var(--ink); border-block: 1px solid var(--line); padding: 0; }
.public-site .kreatis-footer-cta::after { display: none; }
.public-site .kreatis-footer-cta-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 3rem; padding-block: 3.5rem; min-height: 0; }
.public-site .kreatis-footer-cta-copy { padding: 0; }
html[data-theme] body.public-site .kreatis-footer-cta h2 { max-width: 610px; color: var(--shell-heading); font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-bottom: 1rem; line-height: 1.2; }
html[data-theme] body.public-site .kreatis-footer-cta-copy > p { color: var(--muted); font-size: .95rem; line-height: 1.7; }
html[data-theme] body.public-site .kreatis-footer-cta-copy > .kreatis-footer-cta-eyebrow { color: var(--green); font-size: .72rem; letter-spacing: .12em; }
.public-site .kreatis-footer-cta-services { gap: .5rem; margin-block: 1.25rem; }
.public-site .kreatis-footer-cta-services li { color: var(--ink); background: var(--mint); border: 1px solid var(--line); border-radius: 4px; padding: .4rem .65rem; font-size: .75rem; }
.public-site .kreatis-footer-cta-visual { position: relative; inset: auto; width: auto; min-height: 270px; height: 100%; max-height: 340px; border: 0; border-radius: 12px; overflow: hidden; box-shadow: none; opacity: 1; }
.public-site .kreatis-footer-cta-visual img { width: 100%; height: 100%; object-fit: cover; filter: none; }
html[data-theme] body.public-site .kreatis-footer-cta-button { color: #173528; background: #e6a54b; border: 1px solid #e6a54b; box-shadow: none; }
html[data-theme] body.public-site .kreatis-footer-cta-button:is(:hover, :focus-visible) { color: #173528; background: #f4c95d; border-color: #f4c95d; }
.public-site .kreatis-footer-cta-secondary { color: var(--green); font-size: .9rem; }
.public-site .kreatis-footer-cta-secondary:hover { color: var(--ink); }
html[data-theme] body.public-site .newsletter-section { background: var(--shell-panel); border: 0; }
.public-site .newsletter-inner { padding-block: 3.5rem; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.public-site .newsletter-copy h2 { max-width: 440px; color: var(--shell-heading); font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.15; }
.public-site .newsletter-eyebrow { color: var(--green); font-size: .72rem; letter-spacing: .12em; }
.public-site .newsletter-form { box-shadow: none; padding: 1.4rem; border-radius: 10px; }
.public-site .newsletter-form label { color: var(--ink); }
.public-site .newsletter-consent { font-size: .78rem; }
html[data-theme] body.public-site .site-footer { background: #0b291d; color: #d2e3d8; border-top: 3px solid #e6a54b; }
.public-site .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; padding-block: 3.5rem; }
.public-site .footer-original-logo { display: inline-block; background: transparent; padding: 0; border-radius: 0; margin-bottom: 1rem; }
.public-site .footer-original-logo img { width: 210px; height: auto; max-width: 100%; }
.public-site .footer-grid h2 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.public-site .footer-brand-column > p,
.public-site .footer-expertise > p { color: #c0d5c8; font-size: .9rem; line-height: 1.7; }
.public-site .footer-signature { display: block; color: #e6a54b; font-size: .8rem; line-height: 1.6; }
.public-site .footer-links { display: grid; gap: .3rem; padding: 0; list-style: none; }
.public-site .footer-links a { display: inline-block; padding-block: .35rem; color: #d2e3d8; font-size: .875rem; line-height: 1.5; }
.public-site .footer-expertise { padding-left: 1.5rem; border-left: 1px solid #345342; }
.public-site .footer-expertise-eyebrow { display: block; color: #e6a54b; font-size: .65rem; letter-spacing: .09em; margin-bottom: .75rem; }
html[data-theme] body.public-site .footer-link-disabled { color: #97ada0 !important; font-size: .875rem; }
.public-site .footer-bottom { padding-block: 1.5rem; border-color: #345342; color: #b6ccbe; gap: .75rem 1.5rem; font-size: .78rem; line-height: 1.6; }
.public-site .footer-bottom a { color: #e6a54b; font-size: inherit; }
.public-site .footer-links a:is(:hover, :focus-visible),
.public-site .footer-bottom a:is(:hover, :focus-visible) { color: #f4c95d; }
html[data-theme] body.public-site .publish-cta-section { background: #0c4a36; }

@media (min-width: 1200px) {
    html[data-theme] body.public-site .site-header .navbar { grid-template-columns: 184px minmax(0,1fr) auto; gap: 1rem; }
    .public-site .home-hero .col-lg-8 { width: 65%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    html[data-theme] body.public-site .site-header .navbar { grid-template-columns: 150px minmax(0,1fr) auto; gap: .65rem; }
    html[data-theme] body.public-site .site-header .site-logo { width: 150px; }
    html[data-theme] body.public-site .site-header .nav-link { font-size: .8rem; padding-inline: .35rem; }
    .public-site .site-header .public-desktop-nav { gap: 0; }
}
@media (max-width: 991.98px) {
    .public-site .kreatis-footer-cta-inner { gap: 2rem; }
    .public-site .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 3rem; }
    .public-site .footer-brand-column, .public-site .footer-expertise { grid-column: auto; }
    .public-site .footer-expertise { padding-left: 0; border-left: 0; }
    .public-site .legal-layout { grid-template-columns: minmax(0, 760px); }
    .public-site .legal-summary { position: static; }
}
@media (max-width: 767.98px) {
    html[data-theme] body.public-site .home-hero { background-image: linear-gradient(90deg,rgba(5,36,25,.94),rgba(5,36,25,.72)),url('../images/hero_home.jpg'); background-position: 64% center; }
    html[data-theme] body.public-site .home-hero > .container { padding-block: 3.25rem !important; }
    html[data-theme] body.public-site .home-hero h1 { font-size: clamp(2.15rem,8.6vw,3.2rem); margin-bottom: 1.25rem; }
    html[data-theme] body.public-site .home-hero .hero-copy { font-size: 1rem; }
    html[data-theme] body.public-site .page-intro.page-intro-illustrated,
    html[data-theme] body.public-site .sponsored-directory-intro { min-height: 420px; padding-block: 3rem; background-image: linear-gradient(90deg,rgba(237,245,239,.97),rgba(237,245,239,.86)),var(--intro-image); }
    html[data-theme="dark"] body.public-site .page-intro.page-intro-illustrated,
    html[data-theme="dark"] body.public-site .sponsored-directory-intro { background-image: linear-gradient(90deg,rgba(19,44,32,.97),rgba(19,44,32,.83)),var(--intro-image); }
    html[data-theme] body.public-site .page-intro h1 { font-size: clamp(2rem,7.5vw,2.8rem); }
    html[data-theme] body.public-site .page-intro p:not(.eyebrow) { font-size: 1rem; }
    html[data-theme] body.public-site .page-intro:not(.page-intro-illustrated):not(.sponsored-directory-intro) { min-height: 340px; }
    html[data-theme] body.public-site .legal-hero { min-height: 420px; }
    .public-site .contact-hero { min-height: 0; }
    .public-site .detail-hero { height: clamp(500px, 70vh, 590px); }
    .public-site .kreatis-footer-cta-inner, .public-site .newsletter-inner { grid-template-columns: minmax(0,1fr); gap: 1.75rem; padding-block: 2.5rem; }
    .public-site .kreatis-footer-cta-visual { min-height: 0; height: auto; aspect-ratio: 16/9; max-height: 320px; }
}
@media (max-width: 575.98px) {
    html[data-theme] body.public-site .site-header .navbar { min-height: 72px; padding: .5rem .75rem !important; }
    html[data-theme] body.public-site .site-header .site-logo { width: 128px; height: 46px; }
    html[data-theme] body.public-site .site-header :is(.theme-toggle,.mobile-header-icon,.mobile-menu-trigger) { width: 38px; height: 42px; min-width: 38px; min-height: 42px; flex-basis: 38px; }
    .public-site .footer-grid { gap: 2rem 1.25rem; padding-block: 2.5rem; }
    .public-site .footer-brand-column, .public-site .footer-expertise { grid-column: 1/-1; }
    .public-site .footer-expertise { padding-top: 1.5rem; border-top: 1px solid #345342; }
    .public-site .footer-original-logo img { width: 200px; }
    .public-site .footer-bottom { align-items: flex-start; }
    .public-site .newsletter-form { padding: .8rem; }
}
@media (max-width: 359.98px) {
    html[data-theme] body.public-site .site-header .site-logo { width: 112px; }
    .public-site .site-header .mobile-header-actions { gap: .15rem; }
}
