/**
 * Eastmark UI — remplace Bootstrap 5 pour le site (grille, composants, utilitaires courants).
 * Les noms de classes restent compatibles avec le HTML existant.
 */
@import url("_eastmark-ui-grid.css");

:root {
    --eu-blue: #0d6efd;
    --eu-indigo: #6610f2;
    --eu-purple: #6f42c1;
    --eu-pink: #d63384;
    --eu-red: #dc3545;
    --eu-orange: #fd7e14;
    --eu-yellow: #ffc107;
    --eu-green: #198754;
    --eu-teal: #20c997;
    --eu-cyan: #0dcaf0;
    --eu-white: #fff;
    --eu-gray-100: #f8f9fa;
    --eu-gray-200: #e9ecef;
    --eu-gray-300: #dee2e6;
    --eu-gray-400: #ced4da;
    --eu-gray-500: #adb5bd;
    --eu-gray-600: #6c757d;
    --eu-gray-700: #495057;
    --eu-gray-800: #343a40;
    --eu-gray-900: #212529;
    --eu-black: #000;
    --eu-body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --eu-border-radius: 0.375rem;
    --eu-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --eu-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --eu-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--eu-body-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--eu-gray-900);
    background-color: var(--eu-white);
    -webkit-text-size-adjust: 100%;
}

img, svg, video {
    vertical-align: middle;
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid var(--eu-gray-300);
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

p { margin-top: 0; margin-bottom: 1rem; }

a {
    color: var(--eu-blue);
    text-decoration: underline;
}
a:hover { color: #0a58ca; }

/* Containers */
.container {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1320px;
}
.container-fluid {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* Typography */
.display-1 { font-size: calc(1.625rem + 4.5vw); font-weight: 300; line-height: 1.2; }
.display-2 { font-size: calc(1.575rem + 3.9vw); font-weight: 300; line-height: 1.2; }
.display-3 { font-size: calc(1.525rem + 3.3vw); font-weight: 300; line-height: 1.2; }
.display-4 { font-size: calc(1.475rem + 2.7vw); font-weight: 300; line-height: 1.2; }
.display-5 { font-size: calc(1.425rem + 2.1vw); font-weight: 300; line-height: 1.2; }
.display-6 { font-size: calc(1.375rem + 1.5vw); font-weight: 300; line-height: 1.2; }
@media (min-width: 1200px) {
    .display-1 { font-size: 5rem; }
    .display-2 { font-size: 4.5rem; }
    .display-3 { font-size: 4rem; }
    .display-4 { font-size: 3.5rem; }
    .display-5 { font-size: 3rem; }
    .display-6 { font-size: 2.5rem; }
}
.lead { font-size: 1.25rem; font-weight: 300; }
.small, small { font-size: 0.875em; }
.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }
.fst-italic { font-style: italic !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-muted { color: var(--eu-gray-600) !important; }
.text-white { color: var(--eu-white) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-decoration-none { text-decoration: none !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-justify { text-align: justify !important; }
.text-break { word-wrap: break-word !important; }
.text-danger { color: var(--eu-red) !important; }
.text-success { color: var(--eu-green) !important; }
.text-primary { color: var(--eu-blue) !important; }
.text-warning { color: var(--eu-yellow) !important; }

.h1 { font-size: calc(1.375rem + 1.5vw); }
.h2 { font-size: calc(1.325rem + 0.9vw); }
.h3 { font-size: calc(1.3rem + 0.6vw); }
.h4 { font-size: calc(1.275rem + 0.3vw); }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }
@media (min-width: 1200px) {
    .h1 { font-size: 2.5rem; }
    .h2 { font-size: 2rem; }
    .h3 { font-size: 1.75rem; }
    .h4 { font-size: 1.5rem; }
}

/* Flex & display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.align-self-center { align-self: center !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

/* Spacing scale (0–5) */
:root {
    --eu-sp-0: 0;
    --eu-sp-1: 0.25rem;
    --eu-sp-2: 0.5rem;
    --eu-sp-3: 1rem;
    --eu-sp-4: 1.5rem;
    --eu-sp-5: 3rem;
}
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--eu-sp-1) !important; }
.m-2 { margin: var(--eu-sp-2) !important; }
.m-3 { margin: var(--eu-sp-3) !important; }
.m-4 { margin: var(--eu-sp-4) !important; }
.m-5 { margin: var(--eu-sp-5) !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--eu-sp-1) !important; }
.mt-2 { margin-top: var(--eu-sp-2) !important; }
.mt-3 { margin-top: var(--eu-sp-3) !important; }
.mt-4 { margin-top: var(--eu-sp-4) !important; }
.mt-5 { margin-top: var(--eu-sp-5) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--eu-sp-1) !important; }
.mb-2 { margin-bottom: var(--eu-sp-2) !important; }
.mb-3 { margin-bottom: var(--eu-sp-3) !important; }
.mb-4 { margin-bottom: var(--eu-sp-4) !important; }
.mb-5 { margin-bottom: var(--eu-sp-5) !important; }
.ms-0 { margin-inline-start: 0 !important; }
.ms-1 { margin-inline-start: var(--eu-sp-1) !important; }
.ms-2 { margin-inline-start: var(--eu-sp-2) !important; }
.ms-3 { margin-inline-start: var(--eu-sp-3) !important; }
.ms-auto { margin-inline-start: auto !important; }
.me-1 { margin-inline-end: var(--eu-sp-1) !important; }
.me-2 { margin-inline-end: var(--eu-sp-2) !important; }
.me-3 { margin-inline-end: var(--eu-sp-3) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: var(--eu-sp-1) !important; margin-bottom: var(--eu-sp-1) !important; }
.my-2 { margin-top: var(--eu-sp-2) !important; margin-bottom: var(--eu-sp-2) !important; }
.my-sm-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--eu-sp-1) !important; }
.p-2 { padding: var(--eu-sp-2) !important; }
.p-3 { padding: var(--eu-sp-3) !important; }
.p-4 { padding: var(--eu-sp-4) !important; }
.p-5 { padding: var(--eu-sp-5) !important; }
.px-2 { padding-left: var(--eu-sp-2) !important; padding-right: var(--eu-sp-2) !important; }
.px-3 { padding-left: var(--eu-sp-3) !important; padding-right: var(--eu-sp-3) !important; }
.px-4 { padding-left: var(--eu-sp-4) !important; padding-right: var(--eu-sp-4) !important; }
.py-1 { padding-top: var(--eu-sp-1) !important; padding-bottom: var(--eu-sp-1) !important; }
.py-2 { padding-top: var(--eu-sp-2) !important; padding-bottom: var(--eu-sp-2) !important; }
.py-3 { padding-top: var(--eu-sp-3) !important; padding-bottom: var(--eu-sp-3) !important; }
.py-4 { padding-top: var(--eu-sp-4) !important; padding-bottom: var(--eu-sp-4) !important; }
.py-5 { padding-top: var(--eu-sp-5) !important; padding-bottom: var(--eu-sp-5) !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--eu-sp-1) !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-3 { padding-bottom: var(--eu-sp-3) !important; }
.ps-0 { padding-inline-start: 0 !important; }
.pe-0 { padding-inline-end: 0 !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.start-50 { left: 50% !important; }
.start-100 { left: 100% !important; }
.top-50 { top: 50% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* Float */
.float-start { float: left !important; }
.float-end { float: right !important; }
.float-left { float: left !important; }
.clearfix::after { display: block; clear: both; content: ""; }

/* Visibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Border & radius */
.border { border: 1px solid var(--eu-gray-300) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--eu-gray-300) !important; }
.border-bottom { border-bottom: 1px solid var(--eu-gray-300) !important; }
.rounded { border-radius: var(--eu-border-radius) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* Background & shadow */
.bg-white { background-color: var(--eu-white) !important; }
.bg-light { background-color: var(--eu-gray-100) !important; }
.bg-dark { background-color: var(--eu-gray-800) !important; }
.bg-primary { background-color: var(--eu-blue) !important; }
.bg-secondary { background-color: var(--eu-gray-600) !important; }
.bg-success { background-color: var(--eu-green) !important; }
.bg-danger { background-color: var(--eu-red) !important; }
.bg-warning { background-color: var(--eu-yellow) !important; }
.bg-info { background-color: var(--eu-cyan) !important; }
.bg-body { background-color: var(--eu-white) !important; }
.shadow { box-shadow: var(--eu-box-shadow) !important; }
.shadow-sm { box-shadow: var(--eu-box-shadow-sm) !important; }
.shadow-lg { box-shadow: var(--eu-box-shadow-lg) !important; }

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: var(--eu-gray-900);
    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: var(--eu-border-radius);
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:hover { color: var(--eu-gray-900); }
.btn:disabled, .btn.disabled { pointer-events: none; opacity: 0.65; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.25rem; }
.btn-lg { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.5rem; }
.btn-xs { padding: 0.15rem 0.4rem; font-size: 0.75rem; border-radius: 0.2rem; }
.btn-primary { color: #fff; background-color: var(--eu-blue); border-color: var(--eu-blue); }
.btn-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; color: #fff; }
.btn-secondary { color: #fff; background-color: var(--eu-gray-600); border-color: var(--eu-gray-600); }
.btn-secondary:hover { background-color: #5c636a; color: #fff; }
.btn-success { color: #fff; background-color: var(--eu-green); border-color: var(--eu-green); }
.btn-success:hover { filter: brightness(0.92); color: #fff; }
.btn-danger { color: #fff; background-color: var(--eu-red); border-color: var(--eu-red); }
.btn-danger:hover { filter: brightness(0.92); color: #fff; }
.btn-warning { color: var(--eu-gray-900); background-color: var(--eu-yellow); border-color: var(--eu-yellow); }
.btn-info { color: var(--eu-gray-900); background-color: var(--eu-cyan); border-color: var(--eu-cyan); }
.btn-light { color: var(--eu-gray-900); background-color: var(--eu-gray-100); border-color: var(--eu-gray-200); }
.btn-dark { color: #fff; background-color: var(--eu-gray-900); border-color: var(--eu-gray-900); }
.btn-outline-primary { color: var(--eu-blue); border-color: var(--eu-blue); }
.btn-outline-primary:hover { color: #fff; background: var(--eu-blue); }
.btn-outline-secondary { color: var(--eu-gray-600); border-color: var(--eu-gray-600); }
.btn-outline-secondary:hover { color: #fff; background: var(--eu-gray-600); }
.btn-outline-danger { color: var(--eu-red); border-color: var(--eu-red); }
.btn-outline-danger:hover { color: #fff; background: var(--eu-red); }
.btn-outline-success { color: var(--eu-green); border-color: var(--eu-green); }
.btn-outline-success:hover { color: #fff; background: var(--eu-green); }
.btn-link { font-weight: 400; color: var(--eu-blue); text-decoration: underline; border: 0; background: none; }
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}
.btn-close:hover { opacity: 1; }

/* Forms */
label, .form-label { display: inline-block; margin-bottom: 0.5rem; }
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--eu-gray-900);
    background-color: var(--eu-white);
    background-clip: padding-box;
    border: 1px solid var(--eu-gray-400);
    appearance: none;
    border-radius: var(--eu-border-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-control::placeholder { color: var(--eu-gray-600); opacity: 1; }
textarea.form-control { min-height: calc(1.5em + 0.75rem + 2px); }
.form-check { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: 0.125rem; }
.form-check-input { width: 1em; height: 1em; margin-top: 0.25em; margin-left: -1.5em; vertical-align: top; }
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.input-group .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: var(--eu-gray-700);
    background: var(--eu-gray-200);
    border: 1px solid var(--eu-gray-400);
    border-radius: var(--eu-border-radius);
}
.input-group > :not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append { display: flex; }

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background: var(--eu-white);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--eu-border-radius);
    box-shadow: var(--eu-box-shadow-sm);
}
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: 0.5rem; }
.card-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.card-footer {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--eu-border-radius);
}
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1rem;
}
.alert-primary { color: #084298; background: #cfe2ff; border-color: #b6d4fe; }
.alert-secondary { color: #41464b; background: #e2e3e5; border-color: #d3d6d8; }
.alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background: #f8d7da; border-color: #f5c2c7; }
.alert-warning { color: #664d03; background: #fff3cd; border-color: #ffecb5; }
.alert-info { color: #055160; background: #cff4fc; border-color: #b6effb; }
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height 0.2s ease; }

/* Navbar */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}
.navbar > .container, .navbar > .container-fluid {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.9);
}
.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: rgba(0, 0, 0, 0.65);
    text-decoration: none;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: rgba(0, 0, 0, 0.85); }
.navbar-nav .nav-link.active { color: rgba(0, 0, 0, 0.9); }
.nav-item { list-style: none; }
.nav-link { display: block; }
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--eu-border-radius);
    cursor: pointer;
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center/contain no-repeat;
}
.navbar-light .navbar-brand { color: rgba(0, 0, 0, 0.9); }
.navbar-light .navbar-nav .nav-link { color: rgba(0, 0, 0, 0.65); }
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav { flex-direction: row; }
    .navbar-expand-lg .navbar-nav .nav-link { padding: 0.5rem 0.75rem; }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-expand-lg .navbar-toggler { display: none; }
    .navbar-expand-lg .ms-auto { margin-left: auto !important; }
    .navbar-expand-lg .align-items-lg-center { align-items: center !important; }
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: var(--eu-gray-900);
    text-align: left;
    list-style: none;
    background-color: var(--eu-white);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--eu-border-radius);
    box-shadow: var(--eu-box-shadow);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }
.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--eu-gray-900);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.dropdown-item:hover, .dropdown-item:focus {
    color: #1e2125;
    background-color: var(--eu-gray-100);
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    background-color: var(--eu-blue);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}
.modal.show { display: block; }
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--eu-white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    outline: 0;
    box-shadow: var(--eu-box-shadow-lg);
}
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--eu-gray-200);
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}
.modal-title { margin-bottom: 0; line-height: 1.5; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid var(--eu-gray-200);
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 0.5; }
@media (min-width: 576px) {
    .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
    .modal-lg { max-width: 800px; }
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--eu-gray-300);
    border-collapse: collapse;
    caption-side: bottom;
}
.table > :not(caption) > * > * {
    padding: 0.5rem;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px transparent;
}
.table-bordered > :not(caption) > * { border-width: 1px 0; }
.table-bordered > :not(caption) > * > * { border-width: 0 1px; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: rgba(0, 0, 0, 0.05); box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.05); }
.table-hover > tbody > tr:hover > * { box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.075); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-fixed { table-layout: fixed; }
.table-condensed > :not(caption) > * > * { padding: 0.25rem; }
.thead-dark th {
    color: #fff;
    background-color: var(--eu-gray-800);
    border-color: #454d55;
}
.table-sm > :not(caption) > * > * { padding: 0.25rem; }

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

/* List group */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: var(--eu-border-radius);
    list-style: none;
}
.list-group-item {
    position: relative;
    display: block;
    padding: 0.5rem 1rem;
    color: var(--eu-gray-900);
    text-decoration: none;
    background-color: var(--eu-white);
    border: 1px solid rgba(0, 0, 0, 0.125);
}
.list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: var(--eu-blue);
    border-color: var(--eu-blue);
}
.list-group-flush { border-radius: 0; }
.list-group-flush > .list-group-item { border-width: 0 0 1px; }

/* Pagination (minimal) */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}
.page-link {
    position: relative;
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--eu-blue);
    text-decoration: none;
    background-color: var(--eu-white);
    border: 1px solid var(--eu-gray-300);
}
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--eu-blue);
    border-color: var(--eu-blue);
}

/* Admin nav buttons (include/menu.php) */
.nav-btn {
    margin: 0.125rem;
}

/* Utilities: opacity, lh */
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.5 !important; }
.lh-lg { line-height: 2 !important; }

/* Align */
.align-middle { vertical-align: middle !important; }
.align-top { vertical-align: top !important; }

/* Order */
.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }

/* Ratio (minimal) */
.ratio { position: relative; width: 100%; }
.ratio::before { display: block; padding-top: var(--bs-aspect-ratio, 56.25%); content: ""; }
.ratio > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.fw-semibold { font-weight: 600 !important; }

@media (min-width: 768px) {
    .p-md-2 { padding: 0.5rem !important; }
}

@media (min-width: 992px) {
    .text-lg-start { text-align: left !important; }
    .text-lg-center { text-align: center !important; }
    .mt-lg-0 { margin-top: 0 !important; }
    .mb-lg-0 { margin-bottom: 0 !important; }
    .ms-lg-2 { margin-inline-start: 0.5rem !important; }
    .align-items-lg-center { align-items: center !important; }
    .justify-content-lg-between { justify-content: space-between !important; }
    .justify-content-lg-start { justify-content: flex-start !important; }
    .justify-content-lg-end { justify-content: flex-end !important; }
    .col-lg-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
}

/* Row columns (e.g. about page) */
.row-cols-1 > * {
    flex: 0 0 auto;
    width: 100%;
}
@media (min-width: 768px) {
    .row-cols-md-2 > * {
        flex: 0 0 auto;
        width: 50%;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

@keyframes eu-spin {
    to { transform: rotate(360deg); }
}
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: eu-spin 0.75s linear infinite;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
