:root {
    --vert-orc: #556b2f;
    --gris-sombre: #333;
    --kaki: #b8bc5c;
}

a {
    color: var(--vert-orc);
    text-decoration: none;
}

a:hover {
    color: var(--gris-sombre);
}

mark,
.mark {
    background-color: rgb(124, 252, 0, 0.6);
    border-radius: 40% 0 40% 0;
}

.bg-vert-orc {
    background-color: var(--vert-orc);
}

.text-vert-orc {
    color: var(--vert-orc);
}

.btn-vert-orc {
    color: white;
    background-color: var(--vert-orc);
    border-color: var(--kaki);
}

.btn-vert-orc:hover {
    color: white;
    background-color: var(--kaki);
    border-color: var(--vert-orc);
}

/* Google Fonts */

.amaranth-regular {
    font-family: "Amaranth", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.amaranth-bold {
    font-family: "Amaranth", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.amaranth-regular-italic {
    font-family: "Amaranth", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.amaranth-bold-italic {
    font-family: "Amaranth", sans-serif;
    font-weight: 700;
    font-style: italic;
}

/* Titres */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Amaranth", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: var(--vert-orc);
}

.main-content h1 {
    text-align: center;
}

.main-content h5.card-title {
    font-weight: 400;
}

/* Max-height + scrolling */

.mhs100 {
    max-height: 100px !important;
    overflow-y: auto;
}

.mhs150 {
    max-height: 150px !important;
    overflow-y: auto;
}

.mhs200 {
    max-height: 200px !important;
    overflow-y: auto;
}

.mhs250 {
    max-height: 250px !important;
    overflow-y: auto;
}

.mhs300 {
    max-height: 300px !important;
    overflow-y: auto;
}

.mhs350 {
    max-height: 350px !important;
    overflow-y: auto;
}

.mhs400 {
    max-height: 400px !important;
    overflow-y: auto;
}

/* Formulaires */

.form-switch {
    padding-left: 0 !important;
}

.form-check-input {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.select2-container {
    width: 100% !important;
    max-width: 100%;
}

.help-text {
    font-style: italic;
}

/* Navigation */

nav.navbar {
    border-top: 1px solid var(--gris-sombre);
    border-bottom: 1px solid var(--gris-sombre);
    margin-bottom: 2rem
}

#navbarNav li.active a {
    color: var(--vert-orc);
    font-weight: bold;
}

/* .nav-item.dropdown.active .nav-link {
    background-color: #d2e0d2;
    color: #556b2f;
} */

#navbarNav .dropdown-item {
    font-weight: normal !important;
}

#navbarNav .dropdown-item.active {
    font-weight: bold;
    color: white !important;
    background-color: var(--vert-orc);
}

/* Navigation agenda */
#navAgenda {
    font-size: 1.5rem;
    background-color: var(--vert-orc);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--kaki);
}

#navAgenda a {
    color: white;
}

#navAgenda a:hover {
    color: var(--kaki);
}

/* Cards */

main .card {
    box-shadow: 0 10px 12px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid var(--kaki);
}

main .card .card-header {
    background-color: var(--vert-orc);
}

#changeDate {
    cursor: pointer;
    border: 1px solid var(--vert-orc);
    border-radius: 6px;
    padding: 0.05rem 0.5rem;
}

#changeDate:hover {
    border: 1px solid var(--kaki);
}

.changeTable {
    border-radius: 6px;
    color: white;
}

.changeTable:hover {
    background-color: var(--kaki);
}

/* DataTables */

.table th {
    font-family: "Amaranth", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: var(--vert-orc);
    font-size: 1.15rem;
}

.dataTables_paginate {
    margin-top: 2rem;
}

.dataTables_paginate a {
    cursor: pointer;
}

.dataTables_paginate .paginate_button {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    margin: 0.15rem;
    border-radius: 50%;
}

.dataTables_paginate .current {
    background-color: var(--vert-orc);
    color: white;
}

.dataTables_info {
    margin-top: 2rem;
    color: var(--vert-orc)
}

/* DatePicker changement de date */

#formGoToDate {
    display: none;
    position: absolute;
    background: white;
    color: var(--gris-sombre);
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid var(--vert-orc);
    border-radius: 6px;
    padding: 0.5rem;
    z-index: 1;
    left: 0;
    right: 0;
    margin: auto;
    width: 200px;
}

/* FullCalendar */

.fc-daygrid-day {
    cursor: pointer;
}

.fc-event {
    padding: 0.2rem 0.3rem;
    border-radius: 6px;
    border: 2px solid var(--vert-orc);
}

.fc-event:hover {
    transform: scale(1.05); /* Agrandissement au survol */
    transition: transform 0.2s ease-in-out;
}

/* Tables de jeu */

.tableJeu {
    width: 19rem;
}

.tableJeu .card-header .btn {
    font-size: 0.8rem;
    padding: 0.1rem 0.3rem;
}

.tableJeu .jeu {
    font-size: 0.75em;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: white;
}

/* Footer */

footer.footer {
    border-top: 1px solid var(--gris-sombre);
    border-bottom: 1px solid var(--gris-sombre);
    font-size: 0.75rem;
    opacity: 0.8;
    background-color: var(--kaki);
}