.yerres-public {
    --yp-green: #008b5d;
    --yp-green-dark: #06774f;
    --yp-blue: #304f83;
    --yp-ink: #243654;
    --yp-muted: #6f7f97;
    --yp-line: #d8e0e8;
    --yp-soft: #f4f7fa;
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto;
    color: var(--yp-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yerres-public *,
.yerres-public *::before,
.yerres-public *::after {
    box-sizing: border-box;
}

.yerres-public__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.yerres-public__eyebrow,
.yerres-public__step {
    display: inline-flex;
    color: var(--yp-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.yerres-public h1 {
    margin: 8px 0 6px;
    color: var(--yp-ink);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.yerres-public__header p,
.yerres-public__card > p,
.yerres-public__dashboard-heading p {
    margin: 0;
    color: var(--yp-muted);
    line-height: 1.55;
}

.yerres-public__account {
    display: grid;
    justify-items: end;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--yp-line);
    border-radius: 10px;
    background: #fff;
}

.yerres-public__account span {
    font-weight: 800;
}

.yerres-public__account a {
    color: var(--yp-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.yerres-public__auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.yerres-public__card,
.yerres-public__empty,
.yerres-public__request {
    border: 1px solid var(--yp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(36, 54, 84, .07);
}

.yerres-public__card {
    padding: 26px;
}

.yerres-public__card h2 {
    margin: 8px 0 6px;
    color: var(--yp-ink);
    font-size: 25px;
}

.yerres-public__form,
.yerres-public__application {
    display: grid;
    gap: 18px;
}

.yerres-public__form {
    margin-top: 22px;
}

.yerres-public__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.yerres-public__form-grid--address {
    grid-template-columns: minmax(120px, .35fr) minmax(0, 1.65fr);
}

.yerres-public label {
    display: grid;
    gap: 7px;
    color: var(--yp-ink);
    font-weight: 750;
}

.yerres-public input,
.yerres-public select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #bfc9d5;
    border-radius: 8px;
    color: var(--yp-ink);
    background: #fff;
    font: inherit;
}

.yerres-public input:focus,
.yerres-public select:focus {
    outline: 3px solid rgba(0, 139, 93, .16);
    border-color: var(--yp-green);
}

.yerres-public__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid var(--yp-green);
    border-radius: 8px;
    color: #fff;
    background: var(--yp-green);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.yerres-public__button:hover {
    color: #fff;
    background: var(--yp-green-dark);
}

.yerres-public__button--secondary,
.yerres-public__button--ghost {
    color: var(--yp-green-dark);
    background: #fff;
}

.yerres-public__button--secondary:hover,
.yerres-public__button--ghost:hover {
    color: #fff;
}

.yerres-public__notice {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid;
    border-radius: 10px;
}

.yerres-public__notice strong {
    display: block;
}

.yerres-public__notice p {
    margin: 6px 0 12px;
}

.yerres-public__notice--success {
    border-color: #a8dac7;
    background: #eaf8f1;
}

.yerres-public__notice--error {
    border-color: #efb9c0;
    background: #fdecef;
}

.yerres-public__notice--warning {
    border-color: #ebd399;
    background: #fff7df;
}

.yerres-public__notice--info {
    border-color: #bfd2e8;
    background: #eef4fb;
}

.yerres-public__dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.yerres-public__dashboard-heading h2 {
    margin: 0 0 4px;
}

.yerres-public__empty {
    display: grid;
    justify-items: center;
    padding: 52px 24px;
    text-align: center;
}

.yerres-public__empty .dashicons {
    width: 46px;
    height: 46px;
    color: var(--yp-green);
    font-size: 46px;
}

.yerres-public__empty h3 {
    margin: 16px 0 6px;
}

.yerres-public__empty p {
    max-width: 560px;
    margin: 0 0 20px;
    color: var(--yp-muted);
}

.yerres-public__requests {
    display: grid;
    gap: 14px;
}

.yerres-public__request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}

.yerres-public__request h3 {
    margin: 5px 0 3px;
}

.yerres-public__request p {
    margin: 0;
    color: var(--yp-muted);
    font-size: 14px;
}

.yerres-public__reference {
    color: var(--yp-blue);
    font-size: 13px;
    font-weight: 800;
}

.yerres-public__request-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.yerres-public__badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: #5f6875;
    background: #eef0f2;
    font-size: 12px;
    font-weight: 800;
}

.yerres-public__badge.is-submitted,
.yerres-public__badge.is-processing {
    color: #315c9a;
    background: #edf3fb;
}

.yerres-public__badge.is-incomplete {
    color: #8a5a00;
    background: #fff4d9;
}

.yerres-public__badge.is-approved,
.yerres-public__badge.is-shipped {
    color: #06774f;
    background: #e9f7f0;
}

.yerres-public__progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--yp-line);
    border-radius: 10px;
    background: #fff;
}

.yerres-public__progress span {
    padding: 13px 16px;
    color: var(--yp-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.yerres-public__progress span + span {
    border-left: 1px solid var(--yp-line);
}

.yerres-public__progress .is-active {
    color: #fff;
    background: var(--yp-green);
}

.yerres-public__tariff-preview,
.yerres-public__amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    background: var(--yp-soft);
}

.yerres-public__tariff-preview span,
.yerres-public__amount span {
    color: var(--yp-muted);
    font-weight: 750;
}

.yerres-public__tariff-preview small {
    flex-basis: 100%;
    color: var(--yp-muted);
}

.yerres-public__tariff-preview {
    flex-wrap: wrap;
}

.yerres-public__tariff-preview strong,
.yerres-public__amount strong {
    color: var(--yp-blue);
    font-size: 20px;
}

.yerres-public__vehicles {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.yerres-public__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 760px) {
    .yerres-public {
        width: min(100% - 24px, 1180px);
        margin: 28px auto;
    }

    .yerres-public__header,
    .yerres-public__dashboard-heading,
    .yerres-public__request {
        align-items: stretch;
        flex-direction: column;
    }

    .yerres-public__account,
    .yerres-public__request-meta {
        justify-items: start;
    }

    .yerres-public__auth,
    .yerres-public__form-grid,
    .yerres-public__form-grid--address,
    .yerres-public__progress {
        grid-template-columns: 1fr;
    }

    .yerres-public__progress span + span {
        border-top: 1px solid var(--yp-line);
        border-left: 0;
    }

    .yerres-public__actions {
        flex-direction: column-reverse;
    }
}


/* 0.12.0 — shell public dédié, indépendant du thème WordPress */
html,
body.yerres-public-shell {
    margin: 0;
    min-height: 100%;
    background: #f4f7fa;
}

body.yerres-public-shell {
    color: #243654;
}

body.yerres-public-shell #wpadminbar {
    position: fixed;
}

.yerres-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top right, rgba(0, 139, 93, .08), transparent 30%),
        #f4f7fa;
}

.yerres-app__header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #dbe3eb;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.admin-bar .yerres-app__header {
    top: 32px;
}

.yerres-app__header-inner,
.yerres-app__footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.yerres-app__header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    gap: 24px;
}

.yerres-app__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #243654;
    text-decoration: none;
}

.yerres-app__brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: #008b5d;
}

.yerres-app__brand-mark .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.yerres-app__brand-text {
    display: grid;
    gap: 2px;
}

.yerres-app__brand-text strong {
    font-size: 17px;
    line-height: 1.1;
}

.yerres-app__brand-text small {
    color: #6f7f97;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.yerres-app__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid #dbe3eb;
    border-radius: 11px;
    background: #f8fafc;
}

.yerres-app__nav a {
    padding: 9px 13px;
    border-radius: 8px;
    color: #52647f;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.yerres-app__nav a:hover,
.yerres-app__nav a.is-active {
    color: #fff;
    background: #008b5d;
}

.yerres-app__session {
    justify-self: end;
    display: grid;
    justify-items: end;
    gap: 2px;
    color: #6f7f97;
    font-size: 13px;
}

.yerres-app__session-name {
    color: #243654;
    font-weight: 800;
}

.yerres-app__session a {
    color: #06774f;
    font-weight: 750;
    text-decoration: none;
}

.yerres-app__main {
    flex: 1;
    width: 100%;
}

.yerres-app__main > .yerres-public {
    margin-top: 54px;
    margin-bottom: 72px;
}

.yerres-app__footer {
    margin-top: auto;
    border-top: 1px solid #dbe3eb;
    background: #fff;
}

.yerres-app__footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #6f7f97;
    font-size: 13px;
}

.yerres-app__footer-inner > div {
    display: grid;
    gap: 4px;
}

.yerres-app__footer-inner strong {
    color: #243654;
    font-size: 15px;
}

.yerres-app__footer-links {
    text-align: right;
}

/* Le shell gère désormais la session : éviter le doublon dans le contenu */
.yerres-public__header .yerres-public__account {
    display: none;
}

.yerres-public__header {
    max-width: 760px;
}

.yerres-public__header h1 {
    max-width: 740px;
}

@media (max-width: 900px) {
    .yerres-app__header-inner {
        grid-template-columns: 1fr auto;
        min-height: 72px;
    }

    .yerres-app__nav {
        grid-column: 1 / -1;
        order: 3;
        justify-content: stretch;
        margin-bottom: 12px;
    }

    .yerres-app__nav a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 782px) {
    .admin-bar .yerres-app__header {
        top: 46px;
    }
}

@media (max-width: 620px) {
    .yerres-app__header-inner,
    .yerres-app__footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .yerres-app__header-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .yerres-app__session {
        justify-self: start;
        justify-items: start;
    }

    .yerres-app__nav {
        grid-column: auto;
        width: 100%;
        margin-bottom: 0;
    }

    .yerres-app__footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 0;
    }

    .yerres-app__footer-links {
        text-align: left;
    }

    .yerres-app__main > .yerres-public {
        margin-top: 34px;
        margin-bottom: 48px;
    }
}


/* 0.13.0 — reprise des brouillons et justificatifs */
.yerres-public__request-link {
    color: var(--yp-green-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.yerres-public__request-link:hover {
    text-decoration: underline;
}

.yerres-public__request-link--muted {
    color: var(--yp-muted);
}

.yerres-public__helper {
    margin: 0 0 18px;
    color: var(--yp-muted);
    font-size: 14px;
}

.yerres-public__documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.yerres-public__document {
    min-height: 150px;
    align-content: start;
    padding: 18px;
    border: 1px dashed #bfcbd8;
    border-radius: 12px;
    background: #f8fafc;
}

.yerres-public__document input[type="file"] {
    min-height: auto;
    padding: 10px;
    background: #fff;
}

.yerres-public__document-ok {
    color: var(--yp-green-dark);
    font-size: 13px;
}

.yerres-public__progress span.is-active + span.is-active {
    border-left-color: rgba(255, 255, 255, .28);
}

@media (max-width: 760px) {
    .yerres-public__documents {
        grid-template-columns: 1fr;
    }
}


/* 0.14.0 — direction typographique plus institutionnelle */
.yerres-public {
    --yp-ink: #253954;
    --yp-muted: #687a93;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.yerres-public h1,
.yerres-public h2,
.yerres-public h3,
.yerres-app__brand-text strong {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-wrap: balance;
}

.yerres-public h1 {
    margin: 10px 0 10px;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.yerres-public__header {
    margin-bottom: 34px;
}

.yerres-public__header p {
    max-width: 760px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

.yerres-public__eyebrow,
.yerres-public__step {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .105em;
}

.yerres-public__card {
    padding: 30px;
}

.yerres-public__card h2 {
    margin: 9px 0 8px;
    font-size: 23px;
    font-weight: 650;
    line-height: 1.22;
    letter-spacing: -.018em;
}

.yerres-public__dashboard-heading h2 {
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.yerres-public__card > p,
.yerres-public__intro,
.yerres-public__helper {
    max-width: 760px;
    color: var(--yp-muted);
    font-size: 15px;
    line-height: 1.6;
}

.yerres-public label {
    gap: 8px;
    font-size: 15px;
    font-weight: 650;
}

.yerres-public input,
.yerres-public select {
    min-height: 50px;
    padding: 11px 13px;
    border-color: #c6d0dc;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 450;
}

.yerres-public__button {
    min-height: 46px;
    padding: 11px 19px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
}

.yerres-public__progress span {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .005em;
}

.yerres-public__amount,
.yerres-public__tariff-preview {
    padding: 18px;
}

.yerres-public__amount span,
.yerres-public__tariff-preview span {
    font-size: 15px;
    font-weight: 650;
}

.yerres-public__amount strong,
.yerres-public__tariff-preview strong {
    font-size: 19px;
    font-weight: 700;
}

.yerres-public__notice {
    padding: 17px 19px;
}

.yerres-public__notice strong {
    font-size: 15px;
    font-weight: 700;
}

.yerres-public__notice p {
    font-size: 15px;
    line-height: 1.55;
}

.yerres-app__brand-text strong {
    font-size: 16px;
    font-weight: 650;
}

.yerres-app__brand-text small {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
}

.yerres-app__nav a {
    font-size: 13px;
    font-weight: 700;
}

.yerres-app__session {
    font-size: 12px;
}

.yerres-app__session-name {
    font-size: 14px;
    font-weight: 650;
}

/* Profil */
.yerres-public__profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
    gap: 22px;
    align-items: start;
}

.yerres-public__profile-aside {
    display: grid;
    gap: 18px;
}

.yerres-public__card--quiet {
    box-shadow: none;
    background: rgba(255, 255, 255, .72);
}

.yerres-public__summary-list {
    display: grid;
    gap: 0;
    margin: 22px 0 0;
}

.yerres-public__summary-list div {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--yp-line);
}

.yerres-public__summary-list dt {
    color: var(--yp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.yerres-public__summary-list dd {
    margin: 0;
    color: var(--yp-ink);
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.yerres-public__actions--profile {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .yerres-public__profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .yerres-public__card {
        padding: 22px;
    }

    .yerres-public h1 {
        font-size: 34px;
    }

    .yerres-public__header p {
        font-size: 16px;
    }
}


/* 0.14.2 — reprise de brouillon fiabilisée */
.yerres-public [hidden] {
    display: none !important;
}

/* Parcours : phases métier, pas faux onglets */
.yerres-public__journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--yp-line);
    border-radius: 12px;
    background: var(--yp-line);
}

.yerres-public__journey-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 15px 18px;
    background: #fff;
}

.yerres-public__journey-step.is-current {
    background: #eef8f4;
}

.yerres-public__journey-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #b9c7d6;
    border-radius: 50%;
    color: var(--yp-muted);
    font-size: 14px;
    font-weight: 750;
    background: #fff;
}

.yerres-public__journey-step.is-current .yerres-public__journey-number {
    border-color: var(--yp-green);
    color: #fff;
    background: var(--yp-green);
}

.yerres-public__journey-step strong,
.yerres-public__journey-step small {
    display: block;
}

.yerres-public__journey-step strong {
    color: var(--yp-ink);
    font-size: 14px;
    font-weight: 700;
}

.yerres-public__journey-step small {
    margin-top: 2px;
    color: var(--yp-muted);
    font-size: 12px;
    line-height: 1.35;
}

.yerres-public__journey-step em {
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--yp-green-dark);
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Justificatifs existants */
.yerres-public__document-existing {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 5px;
    padding: 10px 11px;
    border-radius: 8px;
    background: #eaf8f1;
}

.yerres-public__document-existing .dashicons {
    width: 19px;
    height: 19px;
    color: var(--yp-green-dark);
    font-size: 19px;
}

.yerres-public__document-existing strong,
.yerres-public__document-existing a {
    display: block;
}

.yerres-public__document-existing strong {
    color: var(--yp-green-dark);
    font-size: 13px;
}

.yerres-public__document-existing a {
    margin-top: 2px;
    color: var(--yp-ink);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.yerres-public__document-help {
    color: var(--yp-muted);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.4;
}

@media (max-width: 820px) {
    .yerres-public__journey {
        grid-template-columns: 1fr;
    }

    .yerres-public__journey-step {
        min-height: 72px;
    }
}


/* 0.14.4 — actions sur les brouillons */
.yerres-public__request-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.yerres-public__request-link--danger {
    color: #a42d39;
}

.yerres-public__request-link--danger:hover {
    color: #7f1f29;
}

.yerres-public__checkbox { display:flex; gap:10px; align-items:flex-start; margin-top:14px; }
.yerres-public__checkbox input { margin-top:3px; }
#yerres-public-visitor-card { display:block; margin-top:6px; color:#066B49; font-weight:700; }


/* 0.15.2 — correction affichage cases à cocher du parcours public */
.yerres-public input[type="checkbox"],
.yerres-public input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #008f63;
    vertical-align: middle;
    box-sizing: border-box;
}

.yerres-public__field--checkbox,
.yerres-public__checkbox,
.yerres-public label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yerres-public__field--checkbox input[type="checkbox"],
.yerres-public__checkbox input[type="checkbox"],
.yerres-public label:has(input[type="checkbox"]) input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 2px;
}

.yerres-public__field--checkbox label,
.yerres-public__checkbox label {
    margin: 0;
    line-height: 1.35;
}

.yerres-public textarea {
    min-height: 92px;
    resize: vertical;
}


/* 0.15.3 — palette institutionnelle sobre, sans accent vert de marque */
.yerres-public {
    --yp-green: #304f83;
    --yp-green-dark: #243654;
    --yp-blue: #304f83;
    --yp-ink: #243654;
}

.yerres-public__logo-icon,
.yerres-public__button--primary,
.yerres-public__nav a.is-active,
.yerres-public__request-new,
.yerres-public button[type="submit"],
.yerres-public input[type="submit"] {
    background: #304f83;
    border-color: #304f83;
    color: #ffffff;
}

.yerres-public__button--primary:hover,
.yerres-public__request-new:hover,
.yerres-public button[type="submit"]:hover,
.yerres-public input[type="submit"]:hover {
    background: #243654;
    border-color: #243654;
}

.yerres-public__eyebrow,
.yerres-public__link,
.yerres-public a,
.yerres-public__request-link,
#yerres-public-visitor-card {
    color: #304f83;
}

.yerres-public input[type="checkbox"],
.yerres-public input[type="radio"] {
    accent-color: #304f83;
}

.yerres-public__step.is-active,
.yerres-public__notice--success,
.yerres-public__status--paid,
.yerres-public__status--complete {
    border-color: #c6d2e2;
    background: #eef4fb;
    color: #304f83;
}


/* 0.16.0 — états publics calculés demande / paiement / droit */
.yerres-public__badge.is-approved,
.yerres-public__badge.is-card-pending {
    background: #eef4fb;
    color: #304f83;
}

.yerres-public__badge.is-card-active {
    background: #e8f7f0;
    color: #087a4b;
}

.yerres-public__badge.is-expired,
.yerres-public__badge.is-cancelled {
    background: #f4f7fa;
    color: #4a5568;
}



/* 0.16.3 — correctif front : boutons lisibles et palette institutionnelle */
.yerres-app__brand-mark,
.yerres-app__nav a.is-active,
.yerres-app__nav a:hover {
    background: #304f83 !important;
    color: #ffffff !important;
}

.yerres-app__session a,
.yerres-public a:not(.yerres-public__button) {
    color: #304f83;
}

.yerres-public .yerres-public__button,
.yerres-public a.yerres-public__button,
.yerres-public button.yerres-public__button,
.yerres-public input[type="submit"].yerres-public__button {
    min-width: max-content;
    border-color: #304f83 !important;
    background: #304f83 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.yerres-public .yerres-public__button:hover,
.yerres-public a.yerres-public__button:hover,
.yerres-public button.yerres-public__button:hover,
.yerres-public input[type="submit"].yerres-public__button:hover {
    border-color: #243654 !important;
    background: #243654 !important;
    color: #ffffff !important;
}

.yerres-public .yerres-public__button--secondary,
.yerres-public a.yerres-public__button--secondary,
.yerres-public .yerres-public__button--ghost,
.yerres-public a.yerres-public__button--ghost {
    border-color: #cbd6e4 !important;
    background: #ffffff !important;
    color: #304f83 !important;
}

.yerres-public .yerres-public__button--secondary:hover,
.yerres-public a.yerres-public__button--secondary:hover,
.yerres-public .yerres-public__button--ghost:hover,
.yerres-public a.yerres-public__button--ghost:hover {
    border-color: #304f83 !important;
    background: #eef4fb !important;
    color: #243654 !important;
}

.yerres-public__dashboard-heading .yerres-public__button,
.yerres-public__empty .yerres-public__button {
    min-width: 170px;
}

.yerres-public__empty {
    min-height: 260px;
}



/* 0.16.4 — fiche front : suivi de demande */
.yerres-public__tracking-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--yp-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(36, 54, 84, .07);
}

.yerres-public__tracking-hero h2 {
    margin: 8px 0 8px;
    color: var(--yp-ink);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.yerres-public__tracking-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--yp-muted);
    font-size: 17px;
    line-height: 1.55;
}

.yerres-public__tracking-hero > .yerres-public__badge {
    flex: 0 0 auto;
    margin-top: 4px;
}

.yerres-public__tracking-hero--success {
    background: linear-gradient(135deg, #ffffff 0%, #f2fbf7 100%);
}

.yerres-public__tracking-hero--warning {
    background: linear-gradient(135deg, #ffffff 0%, #fff8e5 100%);
}

.yerres-public__tracking-hero--error {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
}

.yerres-public__journey--tracking {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.yerres-public__journey-step.is-complete {
    background: #f4f7fa;
}

.yerres-public__journey-step.is-complete .yerres-public__journey-number {
    border-color: #304f83;
    background: #304f83;
    color: #ffffff;
}

.yerres-public__journey-step.is-current {
    background: #eef4fb;
}

.yerres-public__journey-step.is-current .yerres-public__journey-number {
    border-color: #304f83;
    background: #304f83;
    color: #ffffff;
}

.yerres-public__journey-step.is-warning {
    background: #fff8e5;
}

.yerres-public__journey-step.is-warning .yerres-public__journey-number {
    border-color: #d19800;
    background: #d19800;
    color: #ffffff;
}

.yerres-public__journey-step.is-error {
    background: #fff1f2;
}

.yerres-public__journey-step.is-error .yerres-public__journey-number {
    border-color: #b42330;
    background: #b42330;
    color: #ffffff;
}

.yerres-public__journey-step.is-current em,
.yerres-public__journey-step.is-complete em {
    color: #304f83;
}

.yerres-public__detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.yerres-public__plain-list {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.yerres-public__plain-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--yp-line);
}

.yerres-public__plain-list strong {
    color: var(--yp-ink);
}

.yerres-public__plain-list span {
    color: var(--yp-muted);
    font-weight: 700;
    text-align: right;
}

@media (max-width: 920px) {
    .yerres-public__tracking-hero {
        display: grid;
    }

    .yerres-public__journey--tracking {
        grid-template-columns: 1fr;
    }

    .yerres-public__detail-grid {
        grid-template-columns: 1fr;
    }
}



/* 0.16.5 — messages front visibles après soumission */
.yerres-public > .yerres-public__notice {
    max-width: var(--yp-max);
    margin: 0 auto 22px;
    box-sizing: border-box;
}

.yerres-public__notice--error {
    border-left: 5px solid #b42330;
}

.yerres-public__notice--success {
    border-left: 5px solid #087a4b;
}

.yerres-public__notice--warning {
    border-left: 5px solid #d19800;
}



/* 0.16.8 — justificatifs visibles en fiche front */
.yerres-public__documents-list li {
    align-items: flex-start;
}

.yerres-public__documents-list li > div {
    display: grid;
    gap: 5px;
}

.yerres-public__documents-list li > div span {
    color: var(--yp-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.yerres-public__inline-link {
    color: #304f83;
    font-weight: 800;
    text-align: right;
    text-decoration: none;
}

.yerres-public__inline-link:hover {
    text-decoration: underline;
}



/* 0.17.11 — message de complément usager */
.yerres-public__complement-notice {
    max-width: 1180px;
    margin: 0 auto 22px;
}



/* 0.17.12 — réponse complément hors portail */
.yerres-public__complement-notice {
    display: grid;
    gap: 10px;
}

.yerres-public__complement-notice .yerres-public__button {
    justify-self: start;
    margin-top: 4px;
}



/* 0.17.13 — suivi usager sobre, minimal, institutionnel */
.yerres-public__tracking-hero,
.yerres-public__tracking-hero--warning,
.yerres-public__tracking-hero--info,
.yerres-public__tracking-hero--success,
.yerres-public__tracking-hero--danger {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d8e1ec !important;
    box-shadow: 0 10px 28px rgba(29, 49, 82, 0.06) !important;
}

.yerres-public__tracking-hero h2,
.yerres-public__tracking-hero--warning h2 {
    color: #1f3558 !important;
}

.yerres-public__tracking-hero p,
.yerres-public__tracking-hero--warning p {
    color: #5e7190 !important;
}

.yerres-public__tracking-hero .yerres-public__badge,
.yerres-public__tracking-hero--warning .yerres-public__badge,
.yerres-public__badge.is-warning,
.yerres-public__badge.warning {
    background: #f4f7fb !important;
    border: 1px solid #d8e1ec !important;
    color: #304f83 !important;
    box-shadow: none !important;
}

.yerres-public__notice,
.yerres-public__notice--warning,
.yerres-public__complement-notice {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d8e1ec !important;
    border-left: 4px solid #304f83 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(29, 49, 82, 0.05) !important;
    color: #1f3558 !important;
}

.yerres-public__complement-notice strong {
    color: #1f3558 !important;
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
}

.yerres-public__complement-notice p {
    color: #4f6383 !important;
    line-height: 1.55 !important;
}

.yerres-public__journey,
.yerres-public__tracking-steps {
    box-shadow: none !important;
}

.yerres-public__journey-item,
.yerres-public__tracking-step {
    background: #ffffff !important;
}

.yerres-public__journey-item.is-current,
.yerres-public__tracking-step.is-current,
.yerres-public__journey-item--current,
.yerres-public__tracking-step--current {
    background: #f4f7fb !important;
    border-color: #c9d6e6 !important;
}

.yerres-public__journey-number,
.yerres-public__tracking-step-number {
    background: #ffffff !important;
    border: 1px solid #c9d6e6 !important;
    color: #304f83 !important;
    box-shadow: none !important;
}

.yerres-public__journey-item.is-current .yerres-public__journey-number,
.yerres-public__tracking-step.is-current .yerres-public__tracking-step-number,
.yerres-public__journey-item--current .yerres-public__journey-number,
.yerres-public__tracking-step--current .yerres-public__tracking-step-number {
    background: #304f83 !important;
    border-color: #304f83 !important;
    color: #ffffff !important;
}

.yerres-public__journey-status,
.yerres-public__tracking-status {
    color: #304f83 !important;
}



/* 0.17.19 — étapes finalisées et vocabulaire droit de stationnement */
.yerres-public__journey-step.is-complete .yerres-public__journey-number {
    background: #edf8f2;
    border-color: #9bc7ad;
    color: #1f6b3f;
    font-size: 16px;
    line-height: 1;
}



/* 0.17.22 — progression : couleur sur les tags, pas sur les box */
.yerres-public__journey-step,
.yerres-public__journey-step.is-current,
.yerres-public__journey-step.is-complete,
.yerres-public__journey-step.is-warning,
.yerres-public__journey-step.is-error {
    background: #ffffff !important;
}

.yerres-public__journey-step.is-current {
    box-shadow: inset 0 -3px 0 #304f83;
}

.yerres-public__journey-step.is-warning {
    box-shadow: inset 0 -3px 0 #d19800;
}

.yerres-public__journey-step.is-error {
    box-shadow: inset 0 -3px 0 #b42330;
}

.yerres-public__journey-step.is-complete {
    box-shadow: none;
}

.yerres-public__journey-step em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #304f83;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yerres-public__journey-step.is-complete em {
    background: #edf8f2;
    color: #1f6b3f;
}

.yerres-public__journey-step.is-current em {
    background: #eef4fb;
    color: #304f83;
}

.yerres-public__journey-step.is-warning em {
    background: #fff4d7;
    color: #8a5f00;
}

.yerres-public__journey-step.is-error em {
    background: #fff1f2;
    color: #b42330;
}



/* 0.17.23 — progression : espacements des tags sans chevauchement */
.yerres-public__journey-step {
    position: relative;
    align-items: flex-start !important;
    min-height: 92px;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.yerres-public__journey-step > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 5px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.yerres-public__journey-step strong {
    min-width: 0;
    line-height: 1.25;
    padding-right: 4px;
}

.yerres-public__journey-step small {
    grid-column: 1 / -1;
    line-height: 1.35;
}

.yerres-public__journey-step em {
    position: static !important;
    align-self: start;
    justify-self: end;
    margin: 0;
    white-space: nowrap;
    transform: none !important;
}

@media (max-width: 980px) {
    .yerres-public__journey-step > div {
        grid-template-columns: 1fr;
    }

    .yerres-public__journey-step em {
        justify-self: start;
        margin-top: 4px;
    }
}



/* 0.17.24 — progression : badges intégrés en haut à droite */
.yerres-public__journey-step {
    position: relative !important;
    overflow: hidden !important;
    padding: 22px 22px 20px 72px !important;
    min-height: 112px !important;
    align-items: flex-start !important;
}

.yerres-public__journey-step .yerres-public__journey-number {
    position: absolute !important;
    left: 22px !important;
    top: 30px !important;
    flex: 0 0 auto !important;
}

.yerres-public__journey-step > div {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 92px !important;
}

.yerres-public__journey-step strong {
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    line-height: 1.25 !important;
}

.yerres-public__journey-step small {
    display: block !important;
    max-width: 100% !important;
    line-height: 1.35 !important;
}

.yerres-public__journey-step em {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    margin: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

@media (max-width: 980px) {
    .yerres-public__journey-step {
        padding: 22px 18px 20px 66px !important;
    }

    .yerres-public__journey-step .yerres-public__journey-number {
        left: 18px !important;
    }

    .yerres-public__journey-step > div {
        padding-right: 0 !important;
    }

    .yerres-public__journey-step em {
        position: static !important;
        display: inline-flex !important;
        margin: 8px 0 0 !important;
    }
}



/* 0.17.25 — progression : retour à une structure 2 colonnes lisible */
.yerres-public__journey-step,
.yerres-public__journey-step.is-current,
.yerres-public__journey-step.is-complete,
.yerres-public__journey-step.is-warning,
.yerres-public__journey-step.is-error {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 14px !important;
    row-gap: 8px !important;
    align-items: start !important;
    min-height: 108px !important;
    padding: 20px 22px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.yerres-public__journey-step .yerres-public__journey-number {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    justify-self: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.yerres-public__journey-step > div {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.yerres-public__journey-step strong {
    display: block !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    max-width: none !important;
    line-height: 1.25 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.yerres-public__journey-step small {
    display: block !important;
    max-width: none !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.yerres-public__journey-step em {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-self: start !important;
    margin: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
    z-index: auto !important;
}

.yerres-public__journey-step.is-current {
    box-shadow: inset 0 -3px 0 #304f83 !important;
}

.yerres-public__journey-step.is-warning {
    box-shadow: inset 0 -3px 0 #d19800 !important;
}

.yerres-public__journey-step.is-error {
    box-shadow: inset 0 -3px 0 #b42330 !important;
}

.yerres-public__journey-step.is-complete {
    box-shadow: none !important;
}

@media (max-width: 980px) {
    .yerres-public__journey-step {
        min-height: auto !important;
        padding: 18px !important;
    }
}



/* 0.17.27 — justificatifs par véhicule */
.yerres-public__vehicle-document[hidden] {
    display: none !important;
}

.yerres-public__documents {
    align-items: stretch;
}

.yerres-public__document span:first-child {
    line-height: 1.3;
}



/* 0.17.31 — historique public des demandes de complément */
.yerres-public__complement-history {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(48, 79, 131, .16);
}

.yerres-public__complement-history summary {
    width: fit-content;
    color: var(--yp-blue);
    font-weight: 800;
    cursor: pointer;
}

.yerres-public__complement-history ol {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
}

.yerres-public__complement-history li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #f8fafc;
}

.yerres-public__complement-history li > span {
    color: var(--yp-muted);
    font-size: 12px;
    font-weight: 750;
}

.yerres-public__complement-history li > p {
    margin: 0;
}



/* 0.17.36 — étapes finalisées : badge Terminé toujours vert */
.yerres-public__journey-step.is-complete em,
.yerres-public__journey-step.is-current.is-complete em {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    color: #087a4b !important;
    background: #e9f7f0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}



/* 0.17.37 — situation usager et clarification tarifaire */
.yerres-public__residence-fields {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.yerres-public__residence-fields[hidden],
.yerres-public__notice[hidden] {
    display: none !important;
}

.yerres-public__residence-fields h3 {
    margin: 0;
    color: var(--yp-ink);
    font-size: 18px;
}

.yerres-public__tariff-help {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #f8fafc;
}

.yerres-public__tariff-help > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--yp-ink);
}

.yerres-public__tariff-help summary {
    color: var(--yp-blue);
    font-weight: 800;
    cursor: pointer;
}

.yerres-public__tariff-help ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--yp-muted);
    line-height: 1.45;
}

.yerres-public__application button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}



/* 0.17.38 — aide tarifaire contextualisée selon la situation */
.yerres-public__situation-help {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #d7e0ec;
    border-left: 4px solid var(--yp-blue);
    border-radius: 12px;
    background: #f8fafc;
}

.yerres-public__situation-help[hidden] {
    display: none !important;
}

.yerres-public__situation-help strong {
    display: block;
    margin-bottom: 6px;
    color: var(--yp-ink);
    font-size: 14px;
}

.yerres-public__situation-help p {
    margin: 0 0 8px;
    color: var(--yp-muted);
    line-height: 1.5;
}

.yerres-public__situation-help ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
    color: var(--yp-muted);
}

.yerres-public__situation-help--specific {
    border-left-color: #b77900;
    background: #fffaf0;
}



/* 0.17.40 — aide autre commune unique */
.yerres-public__situation-help--specific {
    border-left-color: #b77900;
    background: #fffaf0;
}



/* 0.17.41 — autre commune : orientation service, pas de formulaire annuel */
.yerres-public__application.is-specific-situation .yerres-public__annual-only {
    display: none !important;
}

.yerres-public__situation-help .yerres-public__button {
    margin-top: 10px;
}



/* 0.17.42 — autre commune : aucun champ annuel résiduel */
.yerres-public__application.is-specific-situation .yerres-public__actions {
    justify-content: flex-end;
}
