/* Header Astra masqué, header Correl affiché à la place. */
#masthead,
.ast-primary-header-bar {
    display: none !important;
}

.correl-shell {
    width: min(var(--correl-shell), calc(100% - 40px));
    margin-inline: auto;
}

.correl-reading-width {
    max-width: var(--correl-reading);
}

.correl-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 253, 247, .94);
    border-bottom: 1px solid var(--correl-border);
    backdrop-filter: blur(14px);
}

.admin-bar .correl-header {
    top: 32px;
}

.correl-header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.correl-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.correl-header__logo {
    width: auto;
    max-width: min(290px, 46vw);
    max-height: 76px;
    object-fit: contain;
}

.correl-header__fallback {
    color: var(--correl-forest);
    font-size: 1.45rem;
    font-weight: 800;
}

.correl-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.correl-header__menu a {
    color: var(--correl-ink);
    font-weight: 700;
    text-decoration: none;
}

.correl-header__menu a:hover,
.correl-header__menu a:focus-visible {
    color: var(--correl-green);
}

.correl-header__toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 1px solid var(--correl-border);
    border-radius: 12px;
    background: var(--correl-white);
}

.correl-header__toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--correl-forest);
}

.correl-eyebrow {
    margin: 0 0 14px;
    color: var(--correl-green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.correl-eyebrow--light {
    color: var(--correl-mint);
}

.correl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.correl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--correl-radius-sm);
    text-decoration: none !important;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.correl-button:hover,
.correl-button:focus-visible {
    transform: translateY(-2px);
}

.correl-button--primary {
    background: var(--correl-forest);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(7, 86, 58, .18);
}

.correl-button--secondary {
    border-color: var(--correl-forest);
    color: var(--correl-forest) !important;
}

.correl-button--light {
    background: var(--correl-mint);
    color: var(--correl-deep) !important;
}

.correl-universe-card,
.correl-post-card {
    border: 1px solid var(--correl-border);
    border-radius: var(--correl-radius);
    background: #fff;
    box-shadow: 0 12px 35px rgba(7, 86, 58, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.correl-universe-card:hover,
.correl-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--correl-shadow);
}

.correl-universe-card {
    padding: 30px;
}

.correl-universe-card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 15px;
    background: var(--correl-soft);
    color: var(--correl-forest);
    font-size: 1.1rem;
    font-weight: 900;
}

.correl-universe-card h3 {
    margin: 0 0 10px;
    color: var(--correl-forest);
    font-size: 1.5rem;
}

.correl-universe-card p {
    min-height: 72px;
    color: var(--correl-muted);
    line-height: 1.65;
}

.correl-universe-card a {
    color: var(--correl-green);
    font-weight: 750;
    text-decoration: none;
}

.correl-post-card {
    overflow: hidden;
}

.correl-post-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--correl-soft);
}

.correl-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.correl-post-card:hover .correl-post-card__image img {
    transform: scale(1.035);
}

.correl-post-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--correl-green);
    font-weight: 900;
}

.correl-post-card__body {
    padding: 23px;
}

.correl-post-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: #73857b;
    font-size: .76rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.correl-post-card__meta a,
.correl-post-card__read {
    color: var(--correl-green);
    font-weight: 800;
    text-decoration: none;
}

.correl-post-card h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.23;
}

.correl-post-card h3 a {
    color: var(--correl-forest);
    text-decoration: none;
}

.correl-post-card p {
    color: var(--correl-muted);
    line-height: 1.65;
}

.correl-pagination {
    margin-top: 42px;
}

.correl-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.correl-universe-card__icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background-color: var(--correl-soft);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 34px 34px;
}

/* Plante en pot */
.correl-icon-plant {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2307563a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 31c-9-8-8-18-8-18s10-1 17 9M42 31c9-8 8-18 8-18s-10-1-17 9M32 34V12M21 36h22l-3 18H24z'/%3E%3C/svg%3E");
}

/* Fleur */
.correl-icon-flower {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2307563a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='27' r='5'/%3E%3Cpath d='M32 22c-4-12 8-12 6-2 10-7 14 5 4 8 10 3 5 14-4 8 2 11-10 11-6 1-5 10-16 5-9-3-10-12-1-14 9-2 4-14-5-8 3-10 15-7 14 3zM32 37v17M32 45c-7-5-12-2-12-2s2 7 12 7M32 46c7-5 12-2 12-2s-2 7-12 7'/%3E%3C/svg%3E");
}

/* Boussole / reconversion */
.correl-icon-compass {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2307563a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Cpath d='M38 25l-4 11-11 4 4-11zM32 7v5M32 52v5M7 32h5M52 32h5'/%3E%3C/svg%3E");
}
#masthead,
.ast-primary-header-bar {
    display: none !important;
}

.correl-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(7, 86, 58, .08);
    backdrop-filter: blur(14px);
}

.admin-bar .correl-header {
    top: 32px;
}

.correl-header__inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.correl-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.correl-header__logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 82px;
    object-fit: contain;
}

.correl-header__nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 42px);
}

.correl-header__menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.correl-header__menu a {
    position: relative;
    color: var(--correl-ink);
    font-weight: 700;
    text-decoration: none;
}

.correl-header__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 2px;
    border-radius: 999px;
    background: var(--correl-mint);
    transition: right .22s ease;
}

.correl-header__menu a:hover::after,
.correl-header__menu .current-menu-item > a::after {
    right: 0;
}

.correl-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 16px;
    background: var(--correl-forest);
    color: #fff !important;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(7, 86, 58, .14);
}

.correl-header__toggle {
    display: none;
}

/* IcÃ´nes */
.correl-icon-plant,
.correl-icon-flower,
.correl-icon-compass {
    background-repeat: no-repeat;
    background-position: center;
}

.correl-icon-plant {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2307563a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 31c-9-8-8-18-8-18s10-1 17 9M42 31c9-8 8-18 8-18s-10-1-17 9M32 34V12M21 36h22l-3 18H24z'/%3E%3C/svg%3E");
}

.correl-icon-flower {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2307563a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='27' r='5'/%3E%3Cpath d='M32 22c-4-12 8-12 6-2 10-7 14 5 4 8 10 3 5 14-4 8 2 11-10 11-6 1-5 10-16 5-9-3-10-12-1-14 9-2 4-14-5-8 3-10 15-7 14 3zM32 37v17'/%3E%3C/svg%3E");
}

.correl-icon-compass {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2307563a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Cpath d='M38 25l-4 11-11 4 4-11zM32 7v5M32 52v5M7 32h5M52 32h5'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
    .correl-header__toggle {
        display: block;
        width: 46px;
        height: 46px;
        padding: 10px;
        border: 1px solid var(--correl-border);
        border-radius: 12px;
        background: #fff;
    }

    .correl-header__toggle span:not(.screen-reader-text) {
        display: block;
        height: 2px;
        margin: 5px 0;
        background: var(--correl-forest);
    }

    .correl-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 18px 20px 26px;
        background: var(--correl-cream);
        border-bottom: 1px solid var(--correl-border);
    }

    .correl-header.is-open .correl-header__nav {
        display: grid;
        gap: 18px;
    }

    .correl-header__menu {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .correl-header__menu a {
        display: block;
        padding: 10px 0;
    }

    .correl-header__cta {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .admin-bar .correl-header {
        top: 46px;
    }

    .correl-header__inner {
        min-height: 76px;
    }

    .correl-header__logo {
        max-width: 105px;
        max-height: 66px;
    }
}
