/* miDGT + Sede — reproduction fidèle des captures (mobile ~390px) */

.midgt-app {
    --midgt-teal: #00a9b8;
    --midgt-blue: #0077b3;
    --midgt-hero-from: #f3f6f9;
    --midgt-hero-to: #d4dfe8;
    --midgt-skyline: #ffffff;
    --midgt-tab-muted: #8a96a3;
    --midgt-vehicle-grey: #e8ecef;
    --midgt-sede-panel: #d4e4f0;
    --midgt-sede-border: #b8cfe0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* —— En-tête app mobile —— */
.midgt-app__header {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e8ecef;
}

.midgt-app__header-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.midgt-app__header-side--end {
    justify-content: flex-end;
}

.midgt-app__header #status-midgt-nav-open {
    height: 40px;
    width: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #5c6b7a;
}

.midgt-app__header #status-midgt-nav-open:hover {
    background: #f3f5f7;
}

.midgt-app__header #status-midgt-nav-open svg {
    width: 22px;
    height: 22px;
}

.midgt-app__logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.midgt-app__logo-img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 120px;
}

.midgt-app__bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #123a5f;
    text-decoration: none;
}

.midgt-app__bell:hover {
    background: #f3f5f7;
}

.midgt-app__bell svg {
    width: 22px;
    height: 22px;
}

.midgt-app__bell-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f28c00;
    border: 2px solid #fff;
}

/* —— Carte miDGT —— */
.midgt-app__card {
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.midgt-hero {
    position: relative;
    padding: 14px 14px 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--midgt-hero-from) 0%, var(--midgt-hero-to) 72%, #c8d6e2 100%);
}

.midgt-hero__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--midgt-hero-from) 0%, var(--midgt-hero-to) 55%, #c5d4e0 100%);
    pointer-events: none;
}

.midgt-hero__skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 64px;
    object-fit: fill;
    pointer-events: none;
}

.midgt-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 108px 1fr 88px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
    padding-bottom: 52px;
}

.midgt-hero__photo {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: start;
    width: 108px;
    height: 132px;
    overflow: hidden;
    background: #b8c9d6;
    box-shadow: 0 2px 8px rgba(0, 40, 70, 0.12);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 72%,
        92% 78%,
        84% 70%,
        74% 82%,
        64% 74%,
        54% 86%,
        44% 76%,
        34% 84%,
        24% 72%,
        14% 80%,
        0 74%
    );
}

.midgt-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.midgt-hero__identity {
    grid-column: 2 / 3;
    grid-row: 1;
    min-width: 0;
    padding-top: 4px;
}

.midgt-hero__hello {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.midgt-hero__name {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #2c2c2c;
    word-break: break-word;
}

a.midgt-points-ring {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border: 2.5px solid #7eb8dc;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 60, 100, 0.1);
    text-decoration: none;
    color: inherit;
}

a.midgt-points-ring:hover {
    box-shadow: 0 3px 10px rgba(0, 60, 100, 0.15);
}

.midgt-points-ring__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--midgt-blue);
    letter-spacing: -0.03em;
}

.midgt-points-ring__label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--midgt-blue);
}

.midgt-hero__status {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding-top: 6px;
    max-width: 100%;
}

.midgt-hero__wow {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.midgt-hero__line {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #3d3d3d;
}

.midgt-hero__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--midgt-teal);
    text-decoration: none;
}

.midgt-hero__link:hover {
    text-decoration: underline;
}

/* Onglets */
.midgt-tabs {
    display: flex;
    border-bottom: 1px solid #e2e6ea;
    background: #fff;
}

.midgt-tabs__btn {
    flex: 1;
    padding: 11px 8px 10px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--midgt-tab-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.midgt-tabs__btn.is-active {
    color: var(--midgt-teal);
    border-bottom-color: var(--midgt-teal);
}

.midgt-tabs__btn:not(.is-active):hover {
    color: #5a6570;
}

/* Panneaux */
.midgt-panel {
    display: none;
    padding: 16px;
    background: #fff;
}

.midgt-panel.is-active {
    display: block;
}

/* Carte véhicules (capture) */
.midgt-vehicle-tile {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.midgt-vehicle-tile__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: var(--midgt-vehicle-grey);
}

.midgt-vehicle-tile__visual svg {
    width: 120px;
    height: auto;
    opacity: 0.95;
}

.midgt-vehicle-tile__label {
    padding: 18px 16px 20px;
    text-align: center;
    font-size: 17px;
    font-weight: 400;
    color: #4a4a4a;
    letter-spacing: 0.01em;
}

.midgt-vehicle-tile__plate {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: #1a1a1a;
}

/* Permis (catégories) */
.midgt-permits {
    padding: 12px 16px 4px;
    background: #fff;
    border-top: 1px solid #e8ecef;
}

.midgt-permits__row {
    margin-bottom: 10px;
}

.midgt-permits__row:last-child {
    margin-bottom: 0;
}

.midgt-permits__label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.midgt-permits__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.midgt-permits__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.02em;
}

.midgt-permits__chip--held {
    background: #e8f4f8;
    color: #004481;
    border: 1px solid #b8d4e8;
}

.midgt-permits__chip--requested {
    background: #e6fafb;
    color: #007a85;
    border: 1px solid #7edce4;
}

.midgt-permits__chip--tramite {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-family: inherit;
    font-weight: 600;
    font-size: 11px;
}

.midgt-permits__empty {
    font-size: 12px;
    color: #9ca3af;
}

.midgt-permits__hint {
    background: #fafbfc;
    border-top: 1px solid #e8ecef;
}

/* Onglet validation */
.midgt-validation {
    padding: 8px 4px 12px;
}

.midgt-validation__bar {
    --midgt-teal: #00a9b8;
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dde3e8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.midgt-validation__fill {
    display: block;
    width: var(--validation-pct, 0%);
    min-width: 0;
    max-width: 100%;
    height: 100%;
    border-radius: 999px;
    background-color: #00a9b8;
    background-image: linear-gradient(90deg, #008a96 0%, #00a9b8 45%, #00c4d4 100%);
    box-shadow: 0 0 0 1px rgba(0, 105, 115, 0.15);
    transition: width 0.4s ease;
}

.midgt-validation__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #4a5568;
}

/* Actualidad DGT */
.midgt-news {
    padding: 20px 16px 24px;
    background: #fff;
    border-top: 8px solid #f0f2f4;
}

.midgt-news__title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--midgt-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2c3e50;
}

.midgt-news__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.midgt-news__scroll::-webkit-scrollbar {
    height: 0;
}

.midgt-news__item {
    flex: 0 0 200px;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f7f9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.midgt-news__item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background: #e8ecef;
}

.midgt-news__caption {
    padding: 10px 12px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
}

/* Dossier (repliable discret) */
.midgt-dossier {
    border-top: 1px solid #e8ecef;
    background: #fafbfc;
}

.midgt-dossier summary {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--midgt-blue);
    cursor: pointer;
    list-style: none;
}

.midgt-dossier summary::-webkit-details-marker {
    display: none;
}

.midgt-dossier__body {
    padding: 0 16px 16px;
    font-size: 13px;
}

/* —— Sede RESULTADO NOTAS —— */
.sede-exam {
    --sede-navy: #003366;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sede-exam__header {
    padding: 16px 16px 12px;
    background: #fff;
    border-bottom: 1px solid #dde4ea;
}

.sede-exam__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.sede-exam__logos img {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.sede-exam__gov {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #555;
}

.sede-exam__sede-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sede-navy);
}

.sede-exam__sede-url {
    font-size: 12px;
    color: #5a6a7a;
}

.sede-exam__title-wrap {
    padding: 14px 16px;
    background: #eef4f9;
    border-bottom: 1px solid var(--midgt-sede-border);
}

.sede-exam__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sede-navy);
    text-align: center;
}

.sede-exam__panel {
    margin: 0;
    padding: 4px 16px 8px;
    background: var(--midgt-sede-panel);
    border-bottom: 1px solid var(--midgt-sede-border);
}

.sede-exam__row {
    padding: 11px 0;
    border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.sede-exam__row:last-child {
    border-bottom: none;
}

.sede-exam__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--sede-navy);
}

.sede-exam__value {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
}

.sede-exam__value--apto {
    color: #0d7a3e;
    font-weight: 800;
    font-size: 15px;
}

.sede-exam__value--fail {
    color: #b91c1c;
    font-weight: 800;
}

.sede-exam__disclaimer {
    margin: 0;
    padding: 12px 16px;
    font-size: 12px;
    font-style: italic;
    color: #4a5568;
    background: #f7f9fb;
    border-bottom: 1px solid #e2e8f0;
}

.sede-exam__aviso {
    margin: 0;
    padding: 14px 16px;
    font-size: 11px;
    line-height: 1.5;
    color: #4a5568;
    background: #fff;
}

.sede-exam__aviso strong {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
}

.sede-exam__back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px;
    border: none;
    background: #3d3d3d;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.sede-exam__back:hover {
    background: #2a2a2a;
}

@media (min-width: 420px) {
    .status-result-responsive__mobile:not(.status-page--mobile-result *) .midgt-app__card {
        border-radius: 12px;
    }
}

.status-page-midgt-shell {
    background: #fff;
}

@media (max-width: 767px) {
    .status-page .status-page__chrome--breadcrumbs {
        display: none;
    }

    .status-page--mobile-result .status-page__chrome {
        display: none;
    }

    .status-page--mobile-result .status-result-responsive__mobile .midgt-app {
        max-width: 100%;
    }

    .status-page--mobile-result .status-result-responsive__mobile .midgt-app__card {
        border-radius: 0;
        box-shadow: none;
    }

    .status-page--mobile-result .status-result-responsive {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* —— Vue bureau (≥ lg) —— */
.status-result-responsive {
    --midgt-teal: #00a9b8;
    width: 100%;
}

.status-desktop {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.status-desktop__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 24px;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #eef4f8 0%, #f8fafb 100%);
}

.status-desktop__profile {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    gap: 20px;
}

.status-desktop__photo {
    width: 88px;
    height: 108px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #d4dce4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.status-desktop__hello {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.status-desktop__name {
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #374151;
}

.status-desktop__lead {
    margin: 10px 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #4b5563;
}

.status-desktop__action {
    font-size: 0.875rem;
    font-weight: 600;
    color: #004481;
    text-decoration: none;
}

.status-desktop__action:hover {
    text-decoration: underline;
}

.status-desktop__points {
    flex-shrink: 0;
    text-decoration: none;
}

.status-desktop__grid {
    display: grid;
    gap: 24px;
    padding: 24px 28px 28px;
}

@media (min-width: 768px) {
    .status-desktop__grid {
        grid-template-columns: 1fr 300px;
    }

    .status-desktop__news {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .sede-exam__panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        padding: 8px 20px 12px;
    }

    .sede-exam__row {
        border-bottom: 1px solid rgba(0, 51, 102, 0.08);
    }
}

.status-desktop__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.status-desktop__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-desktop__card {
    padding: 20px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafbfc;
}

.status-desktop__card-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00a9b8;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
}

.status-desktop__dl {
    margin: 0;
}

.status-desktop__dl-row {
    display: grid;
    grid-template-columns: minmax(0, 38%) 1fr;
    gap: 8px 16px;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f0f2f4;
}

.status-desktop__dl-row:last-child {
    border-bottom: none;
}

.status-desktop__dl-row dt {
    margin: 0;
    color: #6b7280;
}

.status-desktop__dl-row dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.status-desktop__bar {
    height: 14px;
    margin-bottom: 12px;
}

.status-desktop__muted {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
}

.status-desktop__vehicles-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #004481;
    text-decoration: none;
}

.status-desktop__vehicles-link:hover {
    border-color: #004481;
    background: #f0f7fc;
}

.status-desktop__vehicles-icon {
    font-size: 1.5rem;
}

.status-desktop__news {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-desktop__news-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.status-desktop__news-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.status-desktop__news-item span {
    display: block;
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
}
