:root {
    --color-primary: #004389;
    --color-secondary: #c4ec77;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter.ttf') format('truetype');
}

html {
    font-size: 16px;
}

body {
    background-color: #f5f5f5;
    color: black;
    margin: 0;
    font-size: 0.875rem;
    font-family: Inter, serif;
}

h1, h2, h3, label, footer {
    color: var(--color-primary);
}

button {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0;
}

.logoBloc,
.blueBloc {
    background-color: var(--color-primary);
    color: white;
    flex-basis: 100%;
}

.pinkBloc {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 1rem;
}

.logoBloc,
.pinkBloc,
.blueBloc {
    display: flex;
    min-width: 100%;
    justify-content: center;
}

.logoBloc {
    padding: 1.5rem 0;
}

.pinkBloc {
    padding: 3rem 0;
}

.pinkBloc p {
    font-size: 1.1rem;
    margin: 0.5rem 0 0 1.5rem;
    font-weight: 500;
}

.blueBloc {
    font-size: 1rem;
    display: flex;
    flex-direction: row;
}

.blueBloc p {
    margin: 1rem 0 0;
    font-weight: 500;
}

.blueBloc .bloc-image {
    height: 94px;
    width: 177px;
    position: relative;
}

.blueBloc .bloc-image img {
    position: absolute;
    top: -20px;
    rotate: -5deg;
    left: 25px;
    box-shadow: -5px 1px 10px 0px #00000091;
    border-radius: 10px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
}

#content {
    max-width: 32.75rem;
}

#content.onFormPage {
    padding-left: 3.75rem;
    padding-right: 3.75rem;
}

#content p {
    text-align: center;
    margin: 0 50px;
}

#content p + .jaidejaunecarteBloc {
    margin-top: 1rem;
}

#content .confirmation p {
    margin: 2.25rem 0;
}

#content:not(.onFormPage) h1 {
    margin-left: 50px;
    margin-right: 50px;
}

.button {
    background-color: var(--color-primary);
    color: white;
    border-radius: 8px;
    padding: 0.5em 1em;
    text-decoration: none;
    margin: 0.5em 0.5em;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.875rem;
    min-width: 220px;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttonBloc {
    margin-top: 1.875rem;
    display: flex;
    justify-content: center;
}

.buttonBloc.buttonBloc-with-margin {
    margin: 0;
}

.buttonBloc a.button--no-margin {
    margin: 0;
}

.button--home {
    padding: 0 1rem;
}

.parentRadio {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0.75rem 0;
}

.parentRadio .itemsRadio {
    display: flex;
    justify-content: initial;
    align-items: center;
}

.parentRadio input[type="radio"] {
    transform: scale(1.5);
    border-color: var(--color-primary);
    margin-top: 0;
    width: 1px;
    height: 1px;
    margin-right: 20px;
    appearance: none;
}

.parentRadio input[type='radio']:after {
    width: 12px;
    height: 12px;
    border-radius: 12px;
    top: -6px;
    left: -1px;
    position: relative;
    background-color: #FFFFFF;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 1px solid var(--color-primary);
    z-index: 1;
}

.parentRadio input[type='radio']:checked:before {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    top: -4px;
    left: 1px;
    position: absolute;
    background-color: var(--color-primary);
    content: '';
    display: inline-block;
    visibility: visible;
    z-index: 2;
}

.parentRadio input[type="radio"] + label {
    cursor: pointer;
    font-size: 0.8125rem;
}

@media screen and (min-width: 1200px) {
    .parentRadio input[type="radio"] + label {
        font-size: 0.875rem;
    }
}

a {
    color: var(--color-primary);
    text-decoration: underline;
}

h1 {
    font-size: 1.313rem;
    margin: 3.125rem 0;
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
}

h2 {
    font-weight: 500;
    font-size: 1.125rem;
    margin-top: 3.125rem;
}

form h2 {
    text-transform: uppercase;
    margin: 0.75rem 0;
}

.cguBloc {
    margin: 0.75rem 0 0.75rem 2.125rem;
}

form select,
form input:not([type="checkbox"]):not([type="radio"]) {
    border: 1px solid var(--color-primary);
    border-radius: 25px;
    padding: 0.5em 1em;
    font-size: 1rem;
    margin: 0.75rem 0;
    width: 100%;
    flex-grow: 1;
    box-sizing: border-box;
}

form input[type="checkbox"] {
    transform: scale(1.25);
    margin: 0 0.5rem 0 0;
}

form select, select option {
    background: #FFFFFF;
    color: #000000;
    text-shadow: 0 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 99% 50%;
}

.errors {
    color: red;
    font-weight: 500;
    margin-bottom: 0;
}

.errors li {
    list-style: none;
}

.centerBloc {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    display: flex;
    justify-content: center;
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
    width: 100%;
}

.footer-content {
    max-width: 32.75rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
    width: 100%;
}

.footer-droits {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media screen and (min-width: 1200px) {
    .footer-content {
        max-width: 1200px;
        text-align: right;
    }

    .footer-droits {
        border-top: 1px solid var(--color-secondary);
        padding-top: 1.25rem;
        margin-top: 1.625rem;
    }
}

.center {
    text-align: center;
}

.wallet-imgs {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.wallet-imgs img {
    margin: 0;
    height: 46px;
    width: auto;
}

.wallet-imgs a {
    text-decoration: none;
}

.wallet-imgs a + a {
    margin-left: 1rem;
}

.flash {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    margin-top: 1rem;
}

.flash.flash-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.flash.flash-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#oldCardIndication {
    color: black;
    text-align: left !important;
    margin-left: 0 !important;
    margin: 0 0 1rem !important;
    font-size: 0.625rem;
}

.mobilePart {
    width: 100%;
    display: flex;
}

.mobilePart div:nth-child(2) {
    margin-left: 1rem;
    flex: 1;
}
