@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


:root {
    --colorDark: #191919;
    --colorMedium: #262625;
    --colorLight: #40403E;
    --color1: #FAFAF7;
    --color2: #207FDE;

    --ff: "Poppins", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--ff) Arial, sans-serif;
}

button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--color1);
    background-color: var(--colorMedium);
    animation: slideIn2 2s;
    min-height: calc(100vh + 127px);
}

hr {
    width: 100%;
    border: 0;
    margin: auto;
    border-top: 1px solid var(--colorLight);
}


nav {
    display: flex;
    padding: 16px;
    justify-content: space-between;
    align-items: center;
    color: var(--color1);
    background-color: var(--colorDark);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex: 1 0 0;
    align-self: stretch;
}

footer {
    display: flex;
    padding: 2rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    background-color: var(--colorDark);
}


.logo {
    height: 1rem;
    aspect-ratio: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-current {
    color: var(--color2);
    font-weight: 600;
}

.nav-current:hover,
.nav-current:focus {
    text-decoration: underline;
}

.buttonWhite {
    display: flex;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: var(--color1);
    cursor: pointer;
    color: var(--colorDark);
}

.buttonBlue {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--color2);
    color: var(--color1);
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--colorLight);
    color: var(--color1);
    border: none;
}

/* ----- Section 'Home' ----- */
.home {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.img2 {
    width: 500px;
    height: 500px;
    aspect-ratio: 1/1;
    border-radius: 24px;
    animation: slideIn4 1.5s;
    object-fit: cover;
}

/* ----- Popup de connexion ----- */
#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--colorDark);
    justify-content: center;
    align-items: center;
    animation: slideIn 1s;
}

.popup-login {
    background-color: var(--colorMedium);
    border-radius: 16px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--colorLight);
    color: var(--color1);
    border: none;
}

#close-popup {
    border-radius: 4px;
    border: 1px solid var(--colorLight);
    background: var(--color2);
    align-self: flex-end;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

#img-connection {
    width: 100px;
    height: 100px;
}

/* ----- Footer ----- */
.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
}

.footer-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--color1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    text-align: right;
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(250, 250, 247, 0.75);
    max-width: 20rem;
}

.footer-legal-link {
    color: var(--color2);
    font-weight: 500;
}

.footer-legal-link:hover,
.footer-legal-link:focus {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(250, 250, 247, 0.8);
}

.info-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 10vw;
    background: #1f1f1f;
}

.info-wrapper {
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-section h2 {
    font-size: 2rem;
    font-weight: 600;
}

.info-section p,
.info-section li {
    line-height: 1.6;
}

.info-section ul {
    list-style: disc;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-section a {
    color: var(--color2);
}

.info-section a:hover,
.info-section a:focus {
    text-decoration: underline;
}

.legal-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 3rem 10vw;
    align-self: stretch;
    flex: 1 0 auto;
}

.legal-main section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-main h1 {
    font-size: 2.5rem;
}

.legal-main h2 {
    font-size: 1.5rem;
}

.legal-list {
    list-style: disc;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-list a {
    color: var(--color2);
}

.legal-list a:hover,
.legal-list a:focus {
    text-decoration: underline;
}

.legal-update {
    font-size: 0.875rem;
    color: rgba(250, 250, 247, 0.75);
}

.hero_page {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.form {
    display: flex;
    width: 364px;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.w-464 {
    width: 464px;
}

.text_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    text-align: center;
    text-wrap: balance;
}

.input_and_Label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    height: fit-content;
}

.input_and_Label2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.avatar_date_content {
    display: flex;
    padding-top: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.Terms_and_conditions {
    display: flex;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.check_and_label {
    color: var(--colorDark);
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.5px;
}


.cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

.cardFront {
    display: flex;
    height: 254px;
    padding: 13px 9px;
    justify-content: center;
    align-items: center;
    gap: 13px;
    align-self: stretch;
    border-radius: 10px;
    background: url(/src/img/StudentID/CardFront.png) lightgray 50% / cover no-repeat;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.cardBack {
    height: 254px;
    width: 408px;
    align-self: stretch;
    border-radius: 10px;
    background: url(src/img/StudentID/CardBack.png) lightgray 50% / cover no-repeat;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.image_and_information {
    display: flex;
    width: 308px;
    height: 120px;
    justify-content: center;
    align-items: center;
    gap: 13px;
    aspect-ratio: 77/30;
}

.profilPicture {
    display: flex;
    padding: 5px;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    background: var(--color1);
}

.userStudentIMG {
    width: 90px;
    height: 110px;
    border-radius: 10px;
    background: var(--color1);
}

.userStudentInfo {
    display: flex;
    width: 195px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--colorDark);
}

.userInfoLabel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.barcode {
    width: 69px;
    height: 69px;
    background: url(/src/img/StudentID/barcode.png) lightgray 50% / cover no-repeat;
}

.img {
    width: 300px;
    height: 400px;
}

.slideIn3 {
    animation: slideIn3 1s;
}


@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn2 {
    from {
        transform: translateZ(-100px);
        opacity: 0;
    }
    to {
        transform: translateZ(0);
        opacity: 1;
    }
}

@keyframes slideIn3 {
    from {
        transform: translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn4 {
    from {
        transform: translateX(50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}