@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#loader img {
    animation: spin 1s ease infinite;
}

body {
    max-width: 430px;
    margin: auto;
    text-align: center;
}

.message {
    font-size: 2em;
}

.message img,
#messages img {
    vertical-align: middle;
}

#logo {
    max-width: 430px;
    min-width: 250px;
    width: 100%;
}

.form {
    margin: 32px;
}

.input-group {
    display: flex;
}

/* Style pour l'input */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group .form-control {
    flex: 1;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem 0 0 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

}

.form-control:focus {
    color: #12355B;
    background-color: white;
    border-color: #D72638;
    outline: 0;
}

/* Style pour le bouton submit */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group .btn {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    background-color: #12355B;
    border: 1px solid #12355B;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
}

.btn-primary,
.input-group .btn-primary {
    color: #fff;
    background-color: #12355B;
    border-color: #12355B;
}

.btn-primary:hover,
.input-group .btn-primary:hover {
    color: #fff;
    background-color: #420039;
    border-color: #D72638;
}

.btn-primary:focus,
.input-group .btn-primary:focus {
    color: #fff;
    background-color: #420039;
    border-color: #D72638;
}

/* Tableau */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  vertical-align: top;
  border-color: #dee2e6;
}

.table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  background-color: var(--bs-table-bg);
  border-bottom-width: 1px;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.table > tbody {
  vertical-align: inherit;
}

.table > thead {
  vertical-align: bottom;
}

/* Pour les bordures */
.table-bordered > :not(caption) > * {
  border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
  border-width: 0 1px;
}

/* Pour les rayures */
.table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.05);
  color: #212529;
}

/* Pour l'effet hover */
.table-hover > tbody > tr:hover {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.075);
  color: #212529;
}

/* Pour un tableau plus compact */
.table-sm > :not(caption) > * > * {
  padding: 0.25rem 0.25rem;
}

/* Pour le thème sombre */
.table-dark {
  --bs-table-bg: #212529;
  --bs-table-striped-bg: #2c3034;
  --bs-table-striped-color: #fff;
  --bs-table-active-bg: #373b3e;
  --bs-table-active-color: #fff;
  --bs-table-hover-bg: #323539;
  --bs-table-hover-color: #fff;
  color: #fff;
  border-color: #373b3e;
}