:root {
    --uc-orange: #E9531B;
    --uc-orange-80: #EE7549;
    --uc-orange-20: #FBDDCF;
    --uc-blue: #1226AA;
    --uc-blue-20: #D0D4EE;

    --black: #171717;
    --dark-grey: #555555;
    --light-grey: #F2F2F0;
    --border: #D9D9D4;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--black);
    background: var(--white);
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.35;
}

button,
a {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--uc-blue);
    outline-offset: 4px;
}

.page-content {
    flex: 1;
}

/* En-tête */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(1240px, calc(100% - 48px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 165px;
    height: auto;
}

.brand-region {
    padding-left: 20px;
    color: var(--uc-blue);
    border-left: 2px solid var(--uc-orange);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 22px;
}

.user-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.user-name {
    font-size: 19px;
    font-weight: 500;
    text-transform: uppercase;
}

.user-account {
    margin-top: 4px;
    color: var(--dark-grey);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.logout-button {
    padding: 9px 15px;
    color: var(--uc-orange);
    background: var(--white);
    border: 1px solid var(--uc-orange);
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.07em;
    cursor: pointer;
}

.logout-button:hover {
    color: var(--white);
    background: var(--uc-orange);
}

/* Connexion */

.login-page {
    min-height: calc(100vh - 135px);
    display: grid;
    grid-template-columns: minmax(0, 57%) minmax(420px, 43%);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--uc-orange);
}

.login-brand-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    padding: 56px clamp(38px, 6vw, 88px) 62px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-logo-cartouche {
    width: fit-content;
    padding: 17px 22px;
    background: var(--white);
}

.login-logo {
    display: block;
    width: 185px;
    height: auto;
}

.login-brand-message {
    max-width: 650px;
    margin: 65px 0 35px;
}

.uc-eyebrow {
    margin: 0 0 12px;
    color: var(--uc-orange);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.uc-eyebrow-light {
    color: var(--white);
}

.login-brand-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: clamp(48px, 5.4vw, 82px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.015em;
}

.login-brand-title span {
    display: inline-block;
    padding: 2px 11px 7px;
    color: var(--uc-orange);
    background: var(--white);
}

.login-brand-description {
    max-width: 500px;
    margin: 28px 0 0;
    color: var(--white);
    font-size: 22px;
    line-height: 1.3;
}

.login-blue-band {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 18px;
    background: var(--uc-blue);
}

.login-form-panel {
    padding: 58px 52px;
    display: grid;
    place-items: center;
    background: var(--light-grey);
}

.login-form-content {
    width: min(470px, 100%);
}

.login-form-title {
    margin: 0;
    color: var(--black);
    font-size: clamp(45px, 4.8vw, 68px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.01em;
}

.login-title-line {
    width: 95px;
    height: 9px;
    margin: 25px 0 28px;
    background: var(--uc-orange);
}

.login-form-description {
    max-width: 430px;
    margin: 0 0 30px;
    color: var(--dark-grey);
    font-size: 21px;
    line-height: 1.35;
}

.login-form {
    margin: 0;
}

.login-button {
    width: 100%;
    min-height: 58px;
    padding: 14px 19px 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--white);
    background: var(--uc-orange);
    border: 0;
    border-radius: 0;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: left;
    cursor: pointer;
}

.login-button:hover {
    background: var(--uc-blue);
}

.login-button-arrow {
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
}

.login-security {
    margin: 16px 0 0;
    color: var(--dark-grey);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-align: center;
}

.login-help {
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
}

.login-help strong {
    color: var(--uc-blue);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.07em;
}

.login-help span {
    color: var(--dark-grey);
    font-size: 17px;
}

/* Tableau de bord */

.dashboard-page {
    background: var(--white);
}

.dashboard-container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 66px 0 86px;
}

.dashboard-hero {
    max-width: 830px;
}

.dashboard-title {
    margin: 0;
    color: var(--black);
    font-size: clamp(50px, 6.4vw, 82px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.015em;
}

.dashboard-title-accent {
    display: block;
    width: 110px;
    height: 10px;
    margin: 23px 0 25px;
    background: var(--uc-orange);
}

.dashboard-introduction {
    max-width: 690px;
    margin: 0;
    color: var(--dark-grey);
    font-size: 23px;
}

.applications-section {
    margin-top: 64px;
}

.applications-heading {
    margin-bottom: 24px;
    padding-bottom: 11px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid var(--black);
}

.applications-heading h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 500;
}

.applications-heading span {
    color: var(--uc-blue);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

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

.application-card {
    min-height: 285px;
    display: grid;
    grid-template-columns: 16px 1fr;
    color: inherit;
    background: var(--light-grey);
    border: 1px solid var(--border);
    text-decoration: none;
    transition:
        transform 150ms ease,
        border-color 150ms ease;
}

.application-card:hover {
    transform: translateY(-3px);
    border-color: var(--uc-orange);
}

.application-card-accent {
    background: var(--uc-orange);
}

.application-card-body {
    position: relative;
    padding: 32px 34px 30px;
}

.application-number {
    position: absolute;
    top: 24px;
    right: 27px;
    color: var(--uc-orange-20);
    font-size: 48px;
    font-weight: 500;
}

.application-category {
    margin: 0 0 7px;
    color: var(--uc-blue);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.09em;
}

.application-card h3 {
    margin: 0;
    font-size: 38px;
    font-weight: 500;
}

.application-description {
    max-width: 430px;
    min-height: 70px;
    margin: 20px 0 31px;
    color: var(--dark-grey);
    font-size: 19px;
}

.application-action {
    color: var(--uc-orange);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.application-action span {
    margin-left: 7px;
    font-size: 22px;
}

.dashboard-information {
    max-width: 720px;
    margin-top: 40px;
    padding: 21px 25px;
    color: var(--white);
    background: var(--uc-blue);
}

.dashboard-information-title {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.dashboard-information p {
    margin: 7px 0 0;
    font-size: 17px;
}

/* Pied de page */

.site-footer {
    min-height: 46px;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    color: var(--dark-grey);
    background: var(--white);
    border-top: 3px solid var(--uc-orange);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.09em;
}

/* Tablettes */

@media (max-width: 920px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand-content {
        min-height: 530px;
        padding: 45px 34px 50px;
    }

    .login-brand-message {
        margin: 55px 0 25px;
    }

    .login-blue-band {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: 12px;
    }

    .login-form-panel {
        padding: 62px 30px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobiles */

@media (max-width: 650px) {
    body {
        font-size: 17px;
    }

    .header-inner {
        width: calc(100% - 28px);
        min-height: 78px;
    }

    .brand-logo {
        width: 125px;
    }

    .brand-region,
    .user-identity {
        display: none;
    }

    .logout-button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .login-brand-content {
        min-height: 450px;
        padding: 34px 22px 42px;
    }

    .login-logo-cartouche {
        padding: 14px 18px;
    }

    .login-logo {
        width: 145px;
    }

    .login-brand-message {
        margin-top: 48px;
    }

    .login-brand-title {
        font-size: 43px;
    }

    .login-brand-description {
        font-size: 19px;
    }

    .login-form-panel {
        padding: 50px 22px;
    }

    .login-form-title {
        font-size: 44px;
    }

    .login-form-description {
        font-size: 19px;
    }

    .login-button {
        font-size: 15px;
    }

    .dashboard-container {
        width: calc(100% - 28px);
        padding: 50px 0 64px;
    }

    .dashboard-title {
        font-size: 48px;
    }

    .dashboard-introduction {
        font-size: 20px;
    }

    .applications-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .application-card-body {
        padding: 27px 24px;
    }

    .application-number {
        top: 20px;
        right: 20px;
        font-size: 39px;
    }

    .application-card h3 {
        font-size: 33px;
    }

    .site-footer {
        flex-direction: column;
        gap: 1px;
        text-align: center;
    }
}
