/*
 * landing-utils.css — sous-ensemble d'utilitaires Bootstrap 5.3 réellement
 * utilisés par les pages publiques (landing). Remplace le chargement de
 * bootstrap.min.css (228 KiB) uniquement sur la landing, qui n'emploie que la
 * grille + quelques utilitaires et AUCUN composant/JS Bootstrap.
 * Les valeurs reprennent celles de Bootstrap 5.3 → rendu identique.
 */

/* ── Reboot minimal (remplace le reboot Bootstrap) ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* Bootstrap posait ces valeurs sur body ; landing.css ne les redéfinit pas
   (police/couleur/marge oui, mais pas l'interlignage) → on les conserve. */
body { font-size: 1rem; font-weight: 400; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; }
img, svg { vertical-align: middle; }
button { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    padding-right: .75rem;
    padding-left: .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 { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ── Grille (row / col / gutters) ──────────────────────────────────────────── */
.row {
    --gx: 1.5rem;
    --gy: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gy));
    margin-right: calc(-.5 * var(--gx));
    margin-left: calc(-.5 * var(--gx));
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--gx) * .5);
    padding-left: calc(var(--gx) * .5);
    margin-top: var(--gy);
}
.g-3 { --gx: 1rem;  --gy: 1rem;  }
.g-4 { --gx: 1.5rem; --gy: 1.5rem; }
.g-5 { --gx: 3rem;  --gy: 3rem;  }

@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
    .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%; }
}

/* ── Display ───────────────────────────────────────────────────────────────── */
.d-none  { display: none !important; }
.d-block { display: block !important; }
.d-flex  { display: flex !important; }
@media (min-width: 768px) {
    .d-md-none  { display: none !important; }
    .d-md-flex  { display: flex !important; }
    .d-md-block { display: block !important; }
}

/* ── Flex ──────────────────────────────────────────────────────────────────── */
.flex-wrap   { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.align-items-center   { align-items: center !important; }
.align-items-start    { align-items: flex-start !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end     { justify-content: flex-end !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

/* ── Espacements ───────────────────────────────────────────────────────────── */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.ms-2 { margin-left: .5rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

/* ── Typographie & divers ──────────────────────────────────────────────────── */
.text-center { text-align: center !important; }
.text-decoration-none { text-decoration: none !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: .875em; }
.fs-2 { font-size: calc(1.325rem + .9vw) !important; }
@media (min-width: 1200px) { .fs-2 { font-size: 2rem !important; } }
.list-unstyled { padding-left: 0; list-style: none; }

/* ── Bouton « Voir plus » (btn + btn-outline-secondary) ────────────────────── */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-outline-secondary { color: #6c757d; border-color: #6c757d; background-color: transparent; }
.btn-outline-secondary:hover { color: #fff; background-color: #6c757d; border-color: #6c757d; }
