.presan-af {
    --presan-primary: #0c665a;
    --presan-primary-dark: #084b43;
    --presan-accent: #e4a11b;
    --presan-ink: #17252a;
    --presan-muted: #617176;
    --presan-line: #dce5e3;
    --presan-soft: #f4f8f7;
    --presan-danger: #a92929;
    color: var(--presan-ink);
    font-family: inherit;
    line-height: 1.55;
}

.presan-actualites-app-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(228, 161, 27, .12), transparent 26rem),
        linear-gradient(160deg, #edf6f3 0%, #f8fbfa 58%, #eef4f2 100%);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.presan-actualites-app-shell {
    margin: 0 auto;
    max-width: 1240px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(22px, 4vw, 58px) clamp(14px, 4vw, 44px);
    width: 100%;
}

.presan-actualites-app-shell > article,
.presan-actualites-app-shell > .page,
.presan-actualites-app-shell .entry-content {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.presan-af *,
.presan-af *::before,
.presan-af *::after {
    box-sizing: border-box;
}

.presan-af-auth {
    display: grid;
    place-items: center;
    min-height: 65vh;
}

.presan-af-card {
    background: #fff;
    border: 1px solid var(--presan-line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(23, 37, 42, .08);
    padding: clamp(24px, 4vw, 42px);
}

.presan-af-auth > .presan-af-card {
    width: min(100%, 500px);
}

.presan-af-brand {
    margin-bottom: 28px;
    text-align: center;
}

.presan-af-brand img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    width: 340px;
}

.presan-af-heading {
    margin-bottom: 26px;
}

.presan-af-heading h2,
.presan-af-heading h3,
.presan-af-topbar h2 {
    color: var(--presan-ink);
    line-height: 1.15;
    margin: 4px 0 8px;
}

.presan-af-heading p {
    color: var(--presan-muted);
    margin: 0;
}

.presan-af-kicker {
    color: var(--presan-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.presan-af-form {
    display: grid;
    gap: 10px;
}

.presan-af-form label {
    font-size: .92rem;
    font-weight: 700;
    margin-top: 8px;
}

.presan-af-form input[type="text"],
.presan-af-form input[type="password"],
.presan-af-form input[type="date"],
.presan-af-form input[type="file"],
.presan-af-form select,
.presan-af-form textarea {
    background: #fff;
    border: 1px solid #bccbc8;
    border-radius: 10px;
    color: var(--presan-ink);
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}

.presan-af-form textarea {
    min-height: 210px;
    resize: vertical;
}

.presan-af-captcha {
    background: var(--presan-soft);
    border: 1px solid var(--presan-line);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding: 16px;
}

.presan-af-captcha-question {
    align-items: center;
    display: flex;
    gap: 12px;
}

.presan-af-captcha-question label {
    display: block;
    margin: 0;
}

.presan-af-captcha-question small {
    color: var(--presan-muted);
    display: block;
    margin-top: 3px;
}

.presan-af-captcha-icon {
    align-items: center;
    background: var(--presan-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 34px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
}

.presan-af-form .presan-af-captcha input[type="text"] {
    max-width: 120px;
}

.presan-af-honeypot {
    height: 1px !important;
    left: -10000px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
}

.presan-af-form input:focus,
.presan-af-form select:focus,
.presan-af-form textarea:focus {
    border-color: var(--presan-primary);
    box-shadow: 0 0 0 3px rgba(12, 102, 90, .14);
    outline: 0;
}

.presan-af-file {
    background: var(--presan-soft);
    border: 1px dashed #a8bbb7;
    border-radius: 12px;
    padding: 14px;
}

.presan-af-file small {
    color: var(--presan-muted);
    display: block;
    margin-top: 8px;
}

.presan-af-current-image {
    align-items: center;
    background: var(--presan-soft);
    border: 1px solid var(--presan-line);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    padding: 10px;
}

.presan-af-current-image img {
    border-radius: 8px;
    height: 82px;
    object-fit: cover;
    width: 120px;
}

.presan-af-current-image span {
    color: var(--presan-muted);
    font-size: .88rem;
    font-weight: 700;
}

.presan-af-help {
    color: var(--presan-muted);
    display: block;
    margin: -3px 0 6px;
}

.presan-af-check {
    align-items: flex-start;
    display: flex;
    font-weight: 500 !important;
    gap: 10px;
}

.presan-af-check input {
    accent-color: var(--presan-primary);
    margin-top: 5px;
}

.presan-af-button {
    align-items: center;
    background: var(--presan-primary);
    border: 0;
    border-radius: 10px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    margin-top: 14px;
    min-height: 48px;
    padding: 12px 22px;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.presan-af-button:hover,
.presan-af-button:focus {
    background: var(--presan-primary-dark);
    transform: translateY(-1px);
}

.presan-af-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.presan-af-cancel-link {
    color: var(--presan-muted);
    font-size: .9rem;
    margin-top: 14px;
}

.presan-af-secondary-link {
    color: var(--presan-primary);
    display: inline-block;
    font-size: .9rem;
    margin-top: 18px;
}

.presan-af-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.presan-af-logout {
    border: 1px solid var(--presan-line);
    border-radius: 9px;
    color: var(--presan-ink);
    padding: 9px 14px;
    text-decoration: none !important;
}

.presan-af-topbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.presan-af-nav-link {
    background: var(--presan-primary);
    border: 1px solid var(--presan-primary);
    border-radius: 9px;
    color: #fff !important;
    font-weight: 700;
    padding: 9px 14px;
    text-decoration: none !important;
}

.presan-af-button-secondary {
    background: #fff;
    border: 1px solid var(--presan-primary);
    color: var(--presan-primary) !important;
    width: 100%;
}

.presan-af-button-secondary:hover,
.presan-af-button-secondary:focus {
    background: var(--presan-soft);
    color: var(--presan-primary-dark) !important;
}

.presan-af-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
}

.presan-af-grid .presan-af-heading {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.presan-af-step {
    align-items: center;
    background: var(--presan-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 32px;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

.presan-af-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.presan-af-list li {
    border-top: 1px solid var(--presan-line);
    padding: 17px 0;
}

.presan-af-list li:first-child {
    border-top: 0;
}

.presan-af-list li strong,
.presan-af-list li span {
    display: block;
}

.presan-af-list li span {
    color: var(--presan-muted);
    font-size: .84rem;
    margin-top: 3px;
}

.presan-af-list .presan-af-step {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    margin: 0;
}

.presan-af-item-actions {
    display: flex;
    font-size: .87rem;
    gap: 14px;
    margin-top: 8px;
}

.presan-af-item-actions a {
    color: var(--presan-primary);
}

.presan-af-delete-form {
    display: inline;
    margin: 0;
}

.presan-af-item-actions .presan-af-delete {
    background: none;
    border: 0;
    color: var(--presan-danger);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.presan-af-empty {
    background: var(--presan-soft);
    border-radius: 10px;
    color: var(--presan-muted);
    padding: 18px;
}

.presan-af-notice {
    border-left: 4px solid;
    border-radius: 8px;
    margin: 0 0 22px;
    padding: 13px 16px;
}

.presan-af-success {
    background: #eaf7ef;
    border-color: #21844f;
    color: #155f38;
}

.presan-af-error {
    background: #fff0f0;
    border-color: var(--presan-danger);
    color: #7f2020;
}

.presan-af-news-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.presan-af-news-card {
    overflow: hidden;
    padding: 0;
}

.presan-af-news-image {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: var(--presan-soft);
    color: var(--presan-muted);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.presan-af-news-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.presan-af-news-content {
    padding: 20px;
}

.presan-af-news-content h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin: 10px 0;
}

.presan-af-news-meta {
    align-items: center;
    color: var(--presan-muted);
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
}

.presan-af-status {
    background: var(--presan-soft);
    border-radius: 999px;
    color: var(--presan-primary);
    font-weight: 800;
    padding: 4px 8px;
}

.presan-af-news-author {
    color: var(--presan-muted);
    font-size: .85rem;
    margin: 0;
}

.presan-af-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 28px;
}

.presan-af-pagination .page-numbers {
    align-items: center;
    background: #fff;
    border: 1px solid var(--presan-line);
    border-radius: 8px;
    color: var(--presan-primary);
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    padding: 7px 12px;
    text-decoration: none;
}

.presan-af-pagination .current {
    background: var(--presan-primary);
    border-color: var(--presan-primary);
    color: #fff;
}

.presan-af-install[hidden],
.presan-af-install-modal[hidden] {
    display: none !important;
}

.presan-af-install {
    align-items: center;
    background: #fff;
    border: 1px solid var(--presan-line);
    border-radius: 16px;
    bottom: 18px;
    box-shadow: 0 18px 55px rgba(23, 37, 42, .2);
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) auto auto;
    left: 50%;
    max-width: 720px;
    padding: 12px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    z-index: 99990;
}

.presan-af-install > img {
    border-radius: 13px;
}

.presan-af-install-copy strong,
.presan-af-install-copy span {
    display: block;
}

.presan-af-install-copy strong {
    line-height: 1.25;
}

.presan-af-install-copy span {
    color: var(--presan-muted);
    font-size: .86rem;
    margin-top: 2px;
}

.presan-af-install-button {
    background: var(--presan-primary);
    border: 0;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 10px 15px;
}

.presan-af-install-close,
.presan-af-install-modal-close {
    background: transparent;
    border: 0;
    color: var(--presan-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 8px;
}

.presan-af-install-modal {
    inset: 0;
    position: fixed;
    z-index: 99999;
}

.presan-af-install-modal-backdrop {
    background: rgba(8, 25, 27, .62);
    inset: 0;
    position: absolute;
}

.presan-af-install-modal-card {
    background: #fff;
    border-radius: 22px 22px 0 0;
    bottom: 0;
    left: 50%;
    max-width: 560px;
    padding: 30px 24px calc(24px + env(safe-area-inset-bottom));
    position: absolute;
    transform: translateX(-50%);
    width: 100%;
}

.presan-af-install-modal-card > img {
    border-radius: 18px;
}

.presan-af-install-modal-card h3 {
    margin: 16px 0 12px;
}

.presan-af-install-modal-card ol {
    padding-left: 22px;
}

.presan-af-install-modal-card li {
    margin: 10px 0;
}

.presan-af-install-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
}

body.presan-af-modal-open {
    overflow: hidden;
}

@media (max-width: 850px) {
    .presan-af-grid {
        grid-template-columns: 1fr;
    }

    .presan-af-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .presan-actualites-app-shell {
        padding:
            max(14px, env(safe-area-inset-top))
            10px
            max(18px, env(safe-area-inset-bottom));
    }

    .presan-af-auth {
        align-items: start;
        min-height: auto;
    }

    .presan-af-card {
        border-radius: 14px;
        padding: 22px 18px;
    }

    .presan-af-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .presan-af-topbar-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .presan-af-topbar-actions a {
        text-align: center;
    }

    .presan-af-news-grid {
        grid-template-columns: 1fr;
    }

    .presan-af-install {
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 10px;
        grid-template-columns: 46px minmax(0, 1fr) auto;
        padding: 10px;
    }

    .presan-af-install > img {
        height: 46px;
        width: 46px;
    }

    .presan-af-install-copy span {
        display: none;
    }

    .presan-af-install-button {
        padding: 9px 12px;
    }

    .presan-af-install-close {
        position: absolute;
        right: -3px;
        top: -31px;
    }
}

/*
 * Compatibilité avec les cartes publiques de MASCO Actualités Pro.
 * Le titre est un conteneur flex : sans justify-content, un titre court
 * reste à gauche alors qu'un titre long donne l'impression d'être centré.
 */
@media (min-width: 481px) {
    .mnp-archive-premium .mnp-card h3 {
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
    }

    .mnp-archive-premium .mnp-card h3 > a {
        display: block;
        text-align: center !important;
        width: 100%;
    }
}
