/* Fondation du site : reboot, grille, utilitaires et composants (sans Bootstrap) */

:root {
    --couleur-lien: #06418f;
    --couleur-texte: #1c2330;
    --couleur-muette: #5c6b80;
    --couleur-clair: #f4f7fb;
    --couleur-bordure: #e4ebf3;
    --rayon: 0.75rem;
    --gutter: 1.5rem;
    --police: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    /* Évite le décalage horizontal quand la barre de défilement apparaît ou disparaît. */
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--police);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--couleur-texte);
    background-color: var(--couleur-clair);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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; }
}

p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; }
a { color: var(--couleur-lien); text-decoration: underline; }
a:hover { color: #0a58ca; }
img { vertical-align: middle; }
table { border-collapse: collapse; caption-side: bottom; }
th, td { padding: 0; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}
button { cursor: pointer; background-color: transparent; }
textarea { resize: vertical; overflow: auto; }
figure { margin: 0; }
[hidden] { display: none !important; }

.container,
.container-lg {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    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,
    .container-lg { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container,
    .container-lg { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .container,
    .container-lg { max-width: 1200px; }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--gutter) / -2);
    margin-left: calc(var(--gutter) / -2);
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--gutter) / 2);
    padding-left: calc(var(--gutter) / 2);
}

.g-0,
.gx-0,
.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.g-0 > *,
.gx-0 > *,
.no-gutters > * {
    padding-right: 0;
    padding-left: 0;
}

.col { flex: 1 0 0%; width: auto; max-width: 100%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
}

@media (min-width: 992px) {
    .col-lg { flex: 1 0 0%; width: auto; max-width: 100%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.flex-column { flex-direction: column !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !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; }

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-flex { display: flex !important; }
    .flex-lg-column { flex-direction: column !important; }
    .flex-lg-row { flex-direction: row !important; }
    .align-items-lg-center { align-items: center !important; }
}

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.top-50 { top: 50% !important; }
.z-1 { z-index: 1 !important; }
.overflow-hidden { overflow: hidden !important; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.m-auto { margin: auto !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }

.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }

@media (min-width: 768px) {
    .text-md-start { text-align: left !important; }
}

@media (min-width: 992px) {
    .text-lg-start { text-align: left !important; }
    .text-lg-center { text-align: center !important; }
}
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fs-1 { font-size: calc(1.375rem + 1.5vw) !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.h2 { font-size: calc(1.325rem + 0.9vw) !important; }
.h3 { font-size: calc(1.3rem + 0.6vw) !important; }
.h4 { font-size: calc(1.275rem + 0.3vw) !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }
@media (min-width: 1200px) {
    .h2 { font-size: 2rem !important; }
    .h3 { font-size: 1.75rem !important; }
    .h4 { font-size: 1.5rem !important; }
    .fs-1 { font-size: 2.5rem !important; }
}

.text-white { color: #fff !important; }
.text-black { color: #000 !important; }
.text-light { color: var(--couleur-clair) !important; }
.text-dark { color: var(--couleur-texte) !important; }
.text-muted { color: var(--couleur-muette) !important; }
.text-primary { color: var(--primary, var(--couleur-lien)) !important; }

.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--couleur-clair) !important; }
.bg-primary { background-color: var(--primary, var(--couleur-lien)) !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-transparent { background-color: transparent !important; }

.border { border: 1px solid var(--couleur-bordure) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--couleur-bordure) !important; }
.border-bottom { border-bottom: 1px solid var(--couleur-bordure) !important; }
.border-end { border-right: 1px solid var(--couleur-bordure) !important; }
.border-2 { border-width: 2px !important; border-style: solid; }
.border-3 { border-width: 3px !important; }
.border-black { border-color: #000 !important; }
.rounded { border-radius: var(--rayon) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-top { border-top-left-radius: var(--rayon) !important; border-top-right-radius: var(--rayon) !important; }
.rounded-bottom { border-bottom-right-radius: var(--rayon) !important; border-bottom-left-radius: var(--rayon) !important; }
.rounded-end { border-top-right-radius: var(--rayon) !important; border-bottom-right-radius: var(--rayon) !important; }

.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.img-fluid { max-width: 100%; height: auto; }
.list-unstyled { padding-left: 0; list-style: none; }

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

@media (min-width: 992px) {
    .gap-lg-0 { gap: 0 !important; }
    .gap-lg-3 { gap: 1rem !important; }
    .gap-lg-4 { gap: 1.5rem !important; }
    .gap-lg-5 { gap: 3rem !important; }
}

.link-underline { text-decoration: underline; }
.link-underline-opacity-0 { text-decoration-color: transparent; }
.link-offset-3-hover:hover { text-underline-offset: 0.375em; }
.link-underline-opacity-0:hover { text-decoration-color: currentColor; }

.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--couleur-texte);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    appearance: none;
    border: 1px solid transparent;
    border-radius: var(--rayon);
    background-color: transparent;
}

.btn-primary {
    color: #fff;
    background-color: var(--secondary, #428bed);
    border-color: var(--secondary, #428bed);
    font-weight: 700;
    border-radius: 0.75rem;
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary, #06418f);
    border-color: var(--primary, #06418f);
}

.btn-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.btn-dark:hover {
    color: #fff;
    background-color: #424649;
    border-color: #373b3e;
}

.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 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
    border: 0;
    border-radius: var(--rayon);
    opacity: 0.5;
}

.btn-close:hover { opacity: 1; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: var(--rayon);
}

.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: 0.5rem; }
.card-text { margin-top: 0; }

.alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--rayon);
}

.alert-info { color: #055160; background-color: #cff4fc; border-color: #b6effb; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }

.form-label { margin-bottom: 0.5rem; display: inline-block; }
.form-check { display: block; min-height: 1.5rem; }
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    flex-shrink: 0;
    appearance: auto;
}
.form-check-label { cursor: pointer; }

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--rayon);
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.navbar-collapse {
    flex-grow: 1;
    flex-basis: 100%;
    align-items: center;
}

.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin: 0; list-style: none; }
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rayon);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.collapse:not(.show) { display: none; }
.collapse.show { display: block; }

@media (min-width: 992px) {
    .navbar-expand-lg { flex-wrap: nowrap; }
    .navbar-expand-lg .navbar-toggler { display: none; }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        align-items: center;
    }
    .navbar-expand-lg .navbar-nav { flex-direction: row; }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1055;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.modal-header { display: flex; padding: 1rem; }
.modal-body { padding: 1rem; }
.modal-title { margin: 0; }

.voile-modale {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
}

body.modale-ouverte { overflow: hidden; }
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.ps-0 { padding-left: 0 !important; }
.pe-0 { padding-right: 0 !important; }
.px-0 { padding-right: 0 !important; padding-left: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-0 { margin-left: 0 !important; }
.me-0 { margin-right: 0 !important; }
.mx-0 { margin-right: 0 !important; margin-left: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.ps-1 { padding-left: 0.25rem !important; }
.pe-1 { padding-right: 0.25rem !important; }
.px-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.m-1 { margin: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.mx-1 { margin-right: 0.25rem !important; margin-left: 0.25rem !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.px-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.m-2 { margin: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.mx-2 { margin-right: 0.5rem !important; margin-left: 0.5rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ps-3 { padding-left: 1rem !important; }
.pe-3 { padding-right: 1rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.m-3 { margin: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ms-3 { margin-left: 1rem !important; }
.me-3 { margin-right: 1rem !important; }
.mx-3 { margin-right: 1rem !important; margin-left: 1rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.m-4 { margin: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.mx-4 { margin-right: 1.5rem !important; margin-left: 1.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.ps-5 { padding-left: 3rem !important; }
.pe-5 { padding-right: 3rem !important; }
.px-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.m-5 { margin: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-5 { margin-left: 3rem !important; }
.me-5 { margin-right: 3rem !important; }
.mx-5 { margin-right: 3rem !important; margin-left: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

@media (min-width: 768px) {
    .p-md-3 { padding: 1rem !important; }
    .p-md-4 { padding: 1.5rem !important; }
    .px-md-0 { padding-right: 0 !important; padding-left: 0 !important; }
    .px-md-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
    .ps-md-2 { padding-left: 0.5rem !important; }
    .pt-md-4 { padding-top: 1.5rem !important; }
    .pb-md-4 { padding-bottom: 1.5rem !important; }
    .mt-md-0 { margin-top: 0 !important; }
}

@media (min-width: 992px) {
    .p-lg-0 { padding: 0 !important; }
    .p-lg-5 { padding: 3rem !important; }
    .px-lg-0 { padding-right: 0 !important; padding-left: 0 !important; }
    .px-lg-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
    .ps-lg-3 { padding-left: 1rem !important; }
    .ps-lg-4 { padding-left: 1.5rem !important; }
    .pt-lg-5 { padding-top: 3rem !important; }
    .pb-lg-5 { padding-bottom: 3rem !important; }
    .py-lg-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .m-lg-0 { margin: 0 !important; }
    .mt-lg-0 { margin-top: 0 !important; }
    .mb-lg-0 { margin-bottom: 0 !important; }
    .me-lg-3 { margin-right: 1rem !important; }
    .my-lg-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
    .fs-lg-5 { font-size: 1.25rem !important; }
}
