/* Bet Abroad : design system "échelle d'exchange".
   Idée : chaque affirmation se place du côté BACK (bleu, pour) ou LAY (rose, contre), sur une grille de filets fins.
   Forces et faiblesses sont toujours côte à côte. Un seul accent ambre, réservé à l'action principale.
   Classes en BEM léger : bloc, bloc__element, bloc--variante. Un seul fichier, aucune ressource tierce. */

/* ------------------------------------------------------------------ polices */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
/* Repli à métriques proches (limite le décalage de mise en page au chargement de la police) */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ jetons */
:root {
  --bs-gray-900: #071326;
  --bs-dark: #0a1b33;
  --bs-gray-800: #10294a;
  --bs-gray-700: #183a66;

  --bs-body-color: #0a1b33;
  --bs-secondary-color: #34435c;
  --bs-tertiary-color: #4d5d76;

  --bs-body-bg: #ffffff;
  --bs-tertiary-bg: #f3f7fc;
  --bs-secondary-bg: #e6eef8;
  --bs-border-color: #d3deec;
  --bs-border-color-translucent: #a9bbd2;

  /* Famille BACK (bleu) : pour, forces, voie à suivre */
  --bs-blue-100: #eef5fe;
  --bs-blue-200: #dcebfc;
  --bs-blue-300: #c2dcf9;
  --bs-blue-400: #98c5f4;
  --bs-blue-500: #2f80e1;
  --bs-blue-600: #1463cf;
  --bs-blue-700: #0d4ba6;
  --bs-blue-800: #0a3980;

  /* Famille LAY (rose) : contre, risques, points faibles, peurs */
  --bs-pink-100: #fff2f5;
  --bs-pink-200: #fddfe6;
  --bs-pink-300: #fbc7d3;
  --bs-pink-400: #f7a0b5;
  --bs-pink-600: #c22a52;
  --bs-pink-700: #9d1a3f;
  --bs-pink-800: #7a1230;

  /* UN seul accent, réservé à l'action principale : un bouton ambre par ligne d'action (dans l'aside CTA, un par partenaire, tous de même poids) ; jamais dans la sélection, le lien d'évitement ni les animations */
  --bs-warning: #ffb400;
  --bs-warning-bg-subtle: #ffc736;
  --bs-warning-text-emphasis: #f0a000;

  /* Teintes de silo : pastille de 10 px dans le titre des cartes de hub, rien d'autre */
  --bs-theme-1: #2f80e1; --bs-theme-2: #5b6fe0; --bs-theme-3: #0fa3a3; --bs-theme-4: #2a9d7c;
  --bs-theme-5: #1e9bd8; --bs-theme-6: #7a63d0; --bs-theme-7: #5a7a99; --bs-theme-8: #0b7d95;
  --bs-primary: var(--bs-blue-500);

  --bs-font-sans-serif: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-border-radius: 6px;
  --bs-border-radius-sm: 4px;
  --bs-gutter-x: 1rem;
  --bs-body-max-width: 68ch;
  --bs-box-shadow-sm: 0 1px 2px rgba(10, 27, 51, .10), 0 4px 12px -4px rgba(10, 27, 51, .18);
  --bs-box-shadow: 0 2px 4px rgba(10, 27, 51, .12), 0 14px 28px -12px rgba(10, 27, 51, .35);
  --bs-transition-timing: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--bs-blue-500) var(--bs-tertiary-bg); scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-font-sans-serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--bs-blue-600);
  accent-color: var(--bs-blue-600);
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 780; line-height: 1.08; color: var(--bs-body-color); text-wrap: balance; letter-spacing: -.005em; word-spacing: .08em; font-stretch: 78%; }
h1 { font-size: clamp(2.35rem, 1.3rem + 5.2vw, 4.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem); font-weight: 720; font-stretch: 84%; }
h4 { font-size: 1.1rem; font-weight: 700; font-stretch: 90%; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--bs-blue-700); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bs-blue-800); text-decoration-thickness: 2px; }
/* Citation de partenaire dans le corps du texte (ext_mention()) : même lien qu'un lien interne, avec la puce "lien sortant". */
/* display: inline-flex contourne le reset "svg { display: block }" (règle I1) : sans ça, l'icône saute à la ligne suivante. */
.icon-link { display: inline-flex; align-items: center; gap: .15em; white-space: nowrap; }
.icon-link-img { width: 12px; height: 12px; opacity: .65; }
strong { font-weight: 700; }
::selection { background: var(--bs-blue-300); color: var(--bs-body-color); }
:focus-visible { outline: 3px solid var(--bs-blue-600); outline-offset: 2px; border-radius: 2px; }
.bg-dark :focus-visible, .jumbotron :focus-visible, .navbar-collapse :focus-visible, .bd-footer :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden-focusable { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--bs-dark); color: #fff; padding: .75rem 1rem; font-weight: 700; border-radius: var(--bs-border-radius-sm); }
.visually-hidden-focusable:focus { top: .5rem; }
.font-monospace, .table td.font-monospace, .progress-bar { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
[id] { scroll-margin-top: 1rem; }

.container { width: min(100% - 2 * var(--bs-gutter-x), 72rem); margin-inline: auto; }
@media (min-width: 48rem) { :root { --bs-gutter-x: 1.5rem; } }
/* deux .container nus qui se suivent dans <main> (sans .py-5 entre les deux) collent sinon l'un à l'autre quand le dernier bloc du premier n'a pas de marge basse (ex. .row-cols-1) */
main .container + .container { margin-top: 1.5rem; }

/* ------------------------------------------------------------------ bandes de fond alternées */
.py-5 { padding-block: clamp(2.25rem, 5vw, 4rem); }
.bg-body-tertiary { background: var(--bs-tertiary-bg); border-block: 1px solid var(--bs-border-color); }
.bg-primary-subtle { background: var(--bs-blue-200); }
.bg-danger-subtle { background: var(--bs-pink-100); }
.bg-dark { background: var(--bs-dark); color: #e3ecf8; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark a:not(.btn) { color: #cfe3fb; }
.py-4 { padding-block: clamp(1.25rem, 3vw, 2rem); }
.mt-n4 { position: relative; z-index: 2; margin-top: -2rem; }

/* ------------------------------------------------------------------ en-tête */
.navbar { background: var(--bs-body-bg); position: relative; z-index: 20; }
.d-flex { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--bs-body-color); min-height: 44px; }
.navbar-brand:hover { color: var(--bs-body-color); }
.navbar-brand-img { width: 32px; height: 32px; flex: none; }
.navbar-brand-title { font-size: 1.5rem; font-weight: 800; font-stretch: 78%; letter-spacing: -.005em; line-height: 1; }
.navbar-text { display: none; margin: 0 auto 0 1rem; color: var(--bs-tertiary-color); font-size: .95rem; }
.badge-outline-danger { margin-left: auto; padding: .15rem .45rem; border: 1.5px solid var(--bs-pink-700); color: var(--bs-pink-700); border-radius: var(--bs-border-radius-sm); font-weight: 800; font-size: .8rem; line-height: 1.2; }
.navbar-toggler { display: none; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; background: var(--bs-blue-700); color: #fff; border: 0; border-radius: var(--bs-border-radius-sm); font: inherit; font-weight: 700; cursor: pointer; }
.navbar-toggler:hover { background: var(--bs-blue-800); }
.navbar-toggler .bi { width: 20px; height: 20px; }
.navbar-collapse { background: var(--bs-blue-700); }
.navbar-nav { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; }
.nav-link { display: flex; align-items: center; min-height: 44px; padding: .5rem .9rem; color: #fff; text-decoration: none; font-weight: 650; font-stretch: 88%; font-size: 1rem; line-height: 1.2; }
a.nav-link:hover { background: var(--bs-blue-800); color: #fff; }
.nav-link.active { background: var(--bs-blue-800); box-shadow: inset 0 -3px 0 #fff; }
span.nav-link { color: #cfe0f7; }
.bs-js .navbar-toggler { display: inline-flex; }
.bs-js .navbar-collapse { display: none; }
.bs-js .navbar-collapse.show { display: block; }
@media (max-width: 63.99rem) {
  .navbar-nav { flex-direction: column; padding-block: .5rem; }
  .nav-link { border-bottom: 1px solid rgba(255, 255, 255, .14); }
}
@media (min-width: 64rem) {
  .navbar-text { display: block; }
  .d-flex { min-height: 4rem; }
  .bs-js .navbar-toggler { display: none; }
  .bs-js .navbar-collapse, .bs-js .navbar-collapse.show { display: block; }
  .badge-outline-danger { margin-left: 0; }
  .nav-link { padding-inline: 1rem; }
}

/* ------------------------------------------------------------------ fil d'Ariane */
.breadcrumb-wrapper { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.breadcrumb-item { display: inline-flex; align-items: center; gap: .5rem; color: #d6e4f7; }
.breadcrumb-item:not(:last-child)::after { content: "/"; opacity: .6; }
.breadcrumb-item a { color: #fff; }

/* ------------------------------------------------------------------ hero (image de fond en <picture>, texte HTML) */
.jumbotron { position: relative; isolation: isolate; overflow: hidden; background: var(--bs-dark); color: #fff; }
.jumbotron-media { position: absolute; inset: 0; z-index: -2; display: block; }
.jumbotron-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.jumbotron::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 19, 38, .62) 0%, rgba(7, 19, 38, .86) 100%); }
.jumbotron-inner { padding-block: 1.75rem 3.75rem; }
.display-4 { color: #fff; max-width: 18ch; margin-bottom: 1rem; text-shadow: 0 1px 2px rgba(7, 19, 38, .5); }
.jumbotron-lead { max-width: 46ch; margin: 0 0 1.5rem; font-size: 1.15rem; line-height: 1.5; color: #e6eefb; }
.btn-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.75rem; }
.jumbotron-fluid .jumbotron-inner { padding-block: 1.5rem 3.5rem; }
.jumbotron-fluid .display-4 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.25rem); }
@media (min-width: 48rem) {
  .jumbotron::before { background: linear-gradient(90deg, rgba(7, 19, 38, .9) 0%, rgba(7, 19, 38, .66) 52%, rgba(7, 19, 38, .28) 100%); }
  .jumbotron-inner { padding-block: 3rem 3.75rem; }
}

/* ------------------------------------------------------------------ tuiles de peur : cellule rose (la peur) au-dessus, cellule bleue (la voie) en dessous */
.list-group-horizontal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.list-group-item-action { display: grid; grid-template-rows: 1fr auto; height: 100%; text-decoration: none; border-radius: var(--bs-border-radius); overflow: hidden; box-shadow: var(--bs-box-shadow-sm); color: var(--bs-body-color); }
.list-group-item-danger { display: block; padding: .7rem .75rem; background: var(--bs-pink-300); color: var(--bs-pink-800); font-weight: 700; font-stretch: 88%; font-size: 1rem; line-height: 1.2; }
.list-group-item-primary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .75rem; min-height: 44px; background: var(--bs-blue-300); color: var(--bs-blue-800); font-weight: 650; font-size: .875rem; line-height: 1.25; animation: placeholder-glow 1.1s var(--bs-transition-timing) both; animation-delay: calc(var(--bs-order, 0) * 110ms + 250ms); }
.list-group-item:nth-child(1) { --bs-order: 0; } .list-group-item:nth-child(2) { --bs-order: 1; } .list-group-item:nth-child(3) { --bs-order: 2; } .list-group-item:nth-child(4) { --bs-order: 3; }
.list-group-item-primary .bi { flex: none; width: 18px; height: 18px; transition: transform .25s var(--bs-transition-timing); }
span.list-group-item-action .list-group-item-primary { background: var(--bs-blue-200); animation: none; }
span.list-group-item-action .bi { display: none; }
a.list-group-item-action:hover .list-group-item-primary, a.list-group-item-action:focus-visible .list-group-item-primary { background: var(--bs-blue-700); color: #fff; }
a.list-group-item-action:hover .bi, a.list-group-item-action:focus-visible .bi { transform: translateX(4px); }
@keyframes placeholder-glow { 0% { background-color: var(--bs-blue-400); } 100% { background-color: var(--bs-blue-300); } }
@media (min-width: 48rem) {
  .list-group-horizontal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
  .list-group-item-danger { font-size: 1.15rem; padding: .9rem 1rem; }
  .list-group-item-primary { font-size: .95rem; padding: .75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .list-group-item-primary { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.25rem; border: 2px solid transparent; border-radius: var(--bs-border-radius-sm); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, transform .15s var(--bs-transition-timing), box-shadow .15s; }
.btn .bi { width: 18px; height: 18px; }
.btn-warning { background: var(--bs-warning); color: var(--bs-body-color); box-shadow: 0 1px 0 rgba(10, 27, 51, .3), 0 8px 16px -8px rgba(10, 27, 51, .55); }
.btn-warning:hover { background: var(--bs-warning-bg-subtle); color: var(--bs-body-color); text-decoration: none; }
.btn-warning:active { background: var(--bs-warning-text-emphasis); transform: translateY(1px); box-shadow: none; }
/* Reflet blanc qui traverse les boutons ambre des partenaires (liens /ext/) toutes les ~5 s. Uniquement du background-position :
   pas de transform ni de position sur le bouton, sinon le ::after de .stretched-link (carte cliquable) rétrécit à sa taille.
   Les longhands viennent après les shorthands background de :hover et :active, donc le reflet survit à leurs changements de couleur. */
@keyframes progress-bar-stripes { 0% { background-position: 95% 0; } 22%, 100% { background-position: 5% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .btn-warning[href^="/ext/"] {
    background-image: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
    background-repeat: no-repeat; background-origin: border-box; background-size: 300% 100%; background-position: 5% 0;
    animation: progress-bar-stripes 5.5s var(--bs-transition-timing) 1.5s infinite;
  }
}
.btn-outline-primary { background: #fff; color: var(--bs-blue-700); border-color: var(--bs-blue-700); }
.btn-outline-primary:hover { background: var(--bs-blue-700); color: #fff; text-decoration: none; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: #fff; color: var(--bs-blue-800); text-decoration: none; }
.btn-sm { min-height: 44px; padding: .5rem .9rem; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--bs-secondary-bg); color: var(--bs-tertiary-color); box-shadow: none; cursor: not-allowed; }

/* ------------------------------------------------------------------ titre de section entre deux filets */
.hstack { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; }
.hstack::before, .hstack::after { content: ""; flex: 1 1 1.5rem; height: 6px; border-block: 1px solid var(--bs-blue-700); }
.text-center { flex: 0 1 auto; text-align: center; }
.bg-dark .hstack::before, .bg-dark .hstack::after { border-color: var(--bs-blue-400); }
.text-body-secondary { margin: -.75rem auto 1.5rem; max-width: 52ch; text-align: center; color: var(--bs-tertiary-color); }
.bg-dark .text-body-secondary { color: #bfd0e8; }

.alert-heading, .card-title, .table caption, .offcanvas-header, .ratio-title, .list-group-item-heading, .fw-semibold, .accordion-button, .progress-bar,
.popover-header, .tooltip-header, .pagination-title, .nav-tabs-title, .bd-footer-title, .text-center, .nav-fill-label, .navbar-brand-title, .nav-link { word-spacing: .08em; }

/* ------------------------------------------------------------------ texte courant */
.bd-content { max-width: var(--bs-body-max-width); }
.bd-content > * + * { margin-top: 1em; }
.bd-content p, .bd-content ul, .bd-content ol { margin-block: 0 1em; }
.bd-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-top: .75rem; border-top: 4px double var(--bs-blue-700); }
.bd-content h3 { margin-top: 2rem; margin-bottom: .6rem; }
.bd-content h2:first-child, .bd-content h3:first-child { margin-top: 0; }
.bd-content ul, .bd-content ol { padding-left: 1.4rem; }
.bd-content li { margin-bottom: .35em; padding-left: .2rem; }
.bd-content li::marker { color: var(--bs-blue-600); font-weight: 700; }
.bd-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); color: var(--bs-secondary-color); }
.bd-content blockquote p:last-child { margin-bottom: 0; }
.bd-content code { font-size: .92em; background: var(--bs-secondary-bg); padding: .1em .35em; border-radius: 3px; }
.bd-content figure { margin: 1.75rem 0; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--bs-secondary-color); }
.small { font-size: .9rem; color: var(--bs-tertiary-color); }
.row { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 64rem) { .row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .row-cols-lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ réponse rapide : rangée d'échelle (cellule icône | cellule texte) */
.alert { display: grid; grid-template-columns: 3rem minmax(0, 1fr); border-radius: var(--bs-border-radius); overflow: hidden; box-shadow: var(--bs-box-shadow); background: #fff; }
.alert-icon { display: flex; align-items: flex-start; justify-content: center; padding-top: 1.05rem; background: var(--bs-blue-700); color: #fff; }
.alert-icon .bi { width: 24px; height: 24px; }
.alert-body { padding: 1rem 1.15rem 1.1rem; background: var(--bs-blue-100); border: 1px solid var(--bs-blue-300); border-left: 0; border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0; }
.alert-heading { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 780; font-stretch: 78%; line-height: 1.1; }
.alert-body p:last-child { margin-bottom: 0; }
@media (min-width: 48rem) { .alert { grid-template-columns: 4rem minmax(0, 1fr); } .alert-body { padding: 1.35rem 1.75rem 1.5rem; font-size: 1.1rem; } .alert-icon { padding-top: 1.4rem; } }
/* Apparition au scroll : la rangée monte et se révèle quand elle entre dans l'écran (site.js ajoute .fade-in). Sans JS ou avec réduction des animations, elle reste affichée. */
@media (prefers-reduced-motion: no-preference) {
  .bs-js .alert { opacity: 0; transform: translateY(2.5rem); transition: opacity .7s var(--bs-transition-timing), transform .8s var(--bs-transition-timing); }
  .bs-js .alert.fade-in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ encadrés : barre d'en-tête de marché + corps teinté */
.toast { border-radius: var(--bs-border-radius); overflow: hidden; border: 1px solid var(--bs-blue-400); background: var(--bs-blue-100); margin-block: 1.5rem; }
.toast-header { display: flex; align-items: center; gap: .5rem; padding: .45rem 1rem; background: var(--bs-blue-300); color: var(--bs-blue-800); font-weight: 750; font-stretch: 85%; font-size: 1.05rem; word-spacing: .08em; }
.toast-header .bi { width: 20px; height: 20px; flex: none; }
.toast-body { padding: .9rem 1rem 1rem; }
.toast-body > :last-child { margin-bottom: 0; }
.toast-danger { border-color: var(--bs-pink-400); background: var(--bs-pink-100); }
.toast-danger .toast-header { background: var(--bs-pink-300); color: var(--bs-pink-800); }
.toast-dark { border-color: var(--bs-gray-700); background: var(--bs-gray-800); color: #e3ecf8; }
.toast-dark .toast-header { background: var(--bs-dark); color: #fff; }

/* ------------------------------------------------------------------ pastilles "best for" / "not ideal for" */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 3px; font-size: .82rem; font-weight: 750; line-height: 1.25; }
.text-bg-primary { background: var(--bs-blue-200); color: var(--bs-blue-800); border: 1px solid var(--bs-blue-400); }
.text-bg-danger { background: var(--bs-pink-200); color: var(--bs-pink-800); border: 1px solid var(--bs-pink-400); }
.badge .bi { width: 14px; height: 14px; }
.badge-pill { display: inline-flex; align-items: center; padding: .15rem .5rem; border-radius: 3px; font-size: .8rem; font-weight: 700; line-height: 1.3; }
.badge-primary { background: var(--bs-blue-200); color: var(--bs-blue-800); border: 1px solid var(--bs-blue-400); }
.badge-light { background: #fff; color: var(--bs-secondary-color); border: 1px dashed var(--bs-tertiary-color); }

/* ------------------------------------------------------------------ verdict : colonne BACK (forces) | colonne LAY (points faibles) */
.card-group { display: grid; gap: .5rem; margin-block: 1.25rem; }
.col-md-6 { border-radius: var(--bs-border-radius); overflow: hidden; }
.accordion-header { margin: 0; padding: .45rem 1rem; font-weight: 780; font-stretch: 85%; font-size: 1.05rem; word-spacing: .08em; display: flex; align-items: center; gap: .5rem; }
.accordion-header .bi { width: 18px; height: 18px; }
.border-primary { background: var(--bs-blue-200); border: 1px solid var(--bs-blue-400); }
.border-primary .accordion-header { background: var(--bs-blue-300); color: var(--bs-blue-800); }
.border-danger { background: var(--bs-pink-200); border: 1px solid var(--bs-pink-400); }
.border-danger .accordion-header { background: var(--bs-pink-300); color: var(--bs-pink-800); }
.list-group-flush { list-style: none; margin: 0; padding: .8rem 1rem .9rem; font-size: 1rem; }
.list-group-flush li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; line-height: 1.45; }
.list-group-flush li:last-child { margin-bottom: 0; }
.list-group-flush li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.05rem; height: 1.05rem; background: var(--bs-blue-700); -webkit-mask: url("/assets/img/icons/tick.svg") center / contain no-repeat; mask: url("/assets/img/icons/tick.svg") center / contain no-repeat; }
.border-danger .list-group-flush li::before { background: var(--bs-pink-700); -webkit-mask-image: url("/assets/img/icons/dash.svg"); mask-image: url("/assets/img/icons/dash.svg"); }
@media (min-width: 40rem) { .card-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } .border-primary { border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius); } .border-danger { border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0; border-left: 0; } }

/* ------------------------------------------------------------------ cartes de marché (comparatif, hubs) */
.row-cols-1 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.row-cols-1 + p, .row-cols-1 + .bd-content { margin-top: 1.5rem; }
@media (min-width: 40rem) { .row-cols-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .row-cols-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--bs-box-shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: var(--bs-gray-800); color: #fff; }
.card-title { margin: 0; color: #fff; font-size: 1.2rem; font-weight: 750; font-stretch: 82%; line-height: 1.15; }
.card-subtitle { font-size: .82rem; color: #bcd0ea; white-space: nowrap; }
.card-body { padding: 1rem; flex: 1; }
.card-body > :last-child { margin-bottom: 0; }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .75rem 1rem; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); }

/* fiche d'opérateur dans un classement (ordre fixe, jamais de rang) */
.media .card-header { background: #fff; color: var(--bs-body-color); border-bottom: 1px solid var(--bs-border-color); }
.media .card-title { color: var(--bs-body-color); }
.media .card-subtitle { color: var(--bs-tertiary-color); font-weight: 650; }

/* Carte cliquable en entier vers /ext/{slug}/ : un seul <a> (le bouton du market__foot), agrandi sur toute la carte
   via ::after (position:relative sur .card-hover). Accessible : un seul lien nommé, pas un bloc de texte entier en lien. */
.card-hover { position: relative; transition: box-shadow .15s ease, transform .15s ease; }
.card-hover:hover, .card-hover:focus-within { box-shadow: var(--bs-box-shadow); transform: translateY(-2px); }
.stretched-link::after { content: ""; position: absolute; inset: 0; }
/* .btn-warning:active applique un transform, qui ferait du bouton le containing block de son propre ::after (donc
   le ::after retrecit a la taille du bouton pendant l'appui) : neutralise pour que le clic garde toute la carte. */
.card-hover .stretched-link:active { transform: none; }
.media .img-thumbnail { height: 30px; width: auto; }
.media-body { display: flex; flex-wrap: wrap; gap: .4rem; }
.media .card-group { margin: 0; grid-template-columns: minmax(0, 1fr); }
.media .col-md-6 { border-radius: 0; border-inline: 0; }
.media .border-danger { border-left: 0; }

/* cartes de silo (grille de pages filles d'un hub) */
.row-cols-xl-3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.dropdown { background: #fff; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); overflow: hidden; box-shadow: var(--bs-box-shadow-sm); transition: transform .2s var(--bs-transition-timing), box-shadow .2s; }
.dropdown:hover { transform: translateY(-2px); box-shadow: var(--bs-box-shadow); }
.dropdown-item { display: flex; flex-direction: column; height: 100%; color: var(--bs-body-color); text-decoration: none; }
.dropdown-header { padding: 1rem 1rem .4rem; font-size: 1.3rem; font-weight: 750; font-stretch: 82%; line-height: 1.15; word-spacing: .08em; }
.dropdown-text { padding: 0 1rem 1rem; font-size: .98rem; color: var(--bs-secondary-color); line-height: 1.45; }
.dropdown-toggle { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-height: 44px; padding: .6rem 1rem; background: var(--bs-blue-200); font-weight: 700; color: var(--bs-blue-800); }
.dropdown-toggle .bi { width: 18px; height: 18px; transition: transform .2s var(--bs-transition-timing); }
.dropdown:hover .dropdown-toggle .bi { transform: translateX(4px); }
.dropdown-divider { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; background: var(--bs-primary); margin-right: .5rem; vertical-align: .05em; }
.dropdown:hover .dropdown-toggle { background: var(--bs-blue-700); color: #fff; }
/* Plan du site : un groupe par silo, hairlines, cibles de 44 px, aucune ombre (page utilitaire) */
.bd-toc { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.bd-toc-group { background: #fff; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); padding: 1rem 1rem .5rem; }
.bd-toc-title { margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 750; font-stretch: 82%; line-height: 1.15; word-spacing: .08em; }
.bd-toc-need { margin: 0 0 .5rem; font-size: .95rem; color: var(--bs-tertiary-color); }
.bd-toc-list { list-style: none; margin: 0; padding: 0; }
.bd-toc-item { border-top: 1px solid var(--bs-border-color); }
.bd-toc-item a { display: block; min-height: 44px; padding: .65rem 0; line-height: 1.3; }
.bd-toc-item-hub a { font-weight: 700; }
@media (min-width: 48rem) { .bd-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .bd-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ tableau : échelle */
.table-responsive { overflow-x: auto; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); margin-block: 1.5rem; background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left / 2rem 100% no-repeat local, linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right / 2rem 100% no-repeat local, linear-gradient(to right, rgba(10, 27, 51, .18), rgba(10, 27, 51, 0)) left / .8rem 100% no-repeat scroll, linear-gradient(to left, rgba(10, 27, 51, .18), rgba(10, 27, 51, 0)) right / .8rem 100% no-repeat scroll, #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.4; }
.table-lg { min-width: 34rem; }
.table-borderless { min-width: 56rem; }
.table caption { text-align: left; padding: .65rem 1rem; background: var(--bs-gray-800); color: #fff; font-weight: 750; font-stretch: 85%; font-size: 1.1rem; }
.table th, .table td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bs-border-color); }
.table thead th { background: var(--bs-tertiary-bg); border-bottom: 2px solid var(--bs-border-color-translucent); font-weight: 750; font-size: .92rem; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 700; background: #fff; position: sticky; left: 0; }
.table th.text-primary, .table td.text-primary { background: var(--bs-blue-200); }
.table th.text-danger, .table td.text-danger { background: var(--bs-pink-200); }
.table thead th.text-primary { background: var(--bs-blue-300); }
.table thead th.text-danger { background: var(--bs-pink-300); }
.table td.font-monospace, .table th.font-monospace { text-align: right; }
.table .table-active { box-shadow: inset 0 0 0 2px var(--bs-body-color); font-weight: 750; }
.table tbody tr:hover > td:not(.text-primary):not(.text-danger) { background: var(--bs-tertiary-bg); }
.caption-top { margin-top: -.75rem; font-size: .9rem; color: var(--bs-tertiary-color); }

/* ------------------------------------------------------------------ FAQ en <details> */
.accordion { border-top: 1px solid var(--bs-border-color-translucent); margin-block: 1rem; max-width: 52rem; }
.accordion-item { border-bottom: 1px solid var(--bs-border-color-translucent); }
.accordion-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .75rem .25rem; font-weight: 700; font-stretch: 92%; font-size: 1.1rem; line-height: 1.3; cursor: pointer; list-style: none; }
.accordion-button::-webkit-details-marker { display: none; }
.accordion-button::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: var(--bs-border-radius-sm); background: var(--bs-blue-200) url("/assets/img/icons/plus.svg") center / 1.1rem no-repeat; transition: background-color .15s; }
.accordion-item[open] .accordion-button::after { background-color: var(--bs-blue-300); background-image: url("/assets/img/icons/minus.svg"); }
.accordion-button:hover::after { background-color: var(--bs-blue-300); }
.accordion-body { padding: 0 .25rem 1rem; max-width: var(--bs-body-max-width); }
.accordion-body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ étapes (la séquence porte l'information) */
.list-group-numbered { list-style: none; margin: 1.5rem 0; padding: 0; counter-reset: step; display: grid; gap: .75rem; }
.list-group-item-numbered { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); overflow: hidden; background: #fff; }
.list-group-item-numbered::before { content: counter(step); display: flex; align-items: flex-start; justify-content: center; padding-top: .8rem; background: var(--bs-gray-800); color: #fff; font-weight: 800; font-stretch: 78%; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.list-group-item-body { padding: .8rem 1rem; }
.list-group-item-heading { margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 750; font-stretch: 85%; }
.list-group-item-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ graphique */
.ratio { margin: 1.75rem 0; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); overflow: hidden; background: #fff; }
.ratio-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 1rem; background: var(--bs-gray-800); color: #fff; }
.ratio-title { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 750; font-stretch: 85%; }
.ratio-canvas { position: relative; height: 18rem; padding: 1rem; }
.ratio-canvas canvas { width: 100% !important; height: 100% !important; }
.ratio-table { border-top: 1px solid var(--bs-border-color); }
.ratio-table > summary { display: flex; align-items: center; min-height: 44px; padding: .5rem 1rem; cursor: pointer; font-weight: 650; font-size: .95rem; color: var(--bs-blue-700); }
.ratio-table .table-responsive { margin: 0; border: 0; border-top: 1px solid var(--bs-border-color); border-radius: 0; }
.ratio-table .table { min-width: 0; }
.figure-caption { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); font-size: .9rem; color: var(--bs-secondary-color); }

/* ------------------------------------------------------------------ outil (calculateur) */
.offcanvas { border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); overflow: hidden; background: #fff; box-shadow: var(--bs-box-shadow-sm); margin-block: 1.75rem; }
.offcanvas-header { padding: .65rem 1rem; background: var(--bs-gray-800); color: #fff; font-weight: 750; font-stretch: 85%; font-size: 1.15rem; }
.offcanvas-body { display: grid; gap: 1rem; padding: 1rem; }
@media (min-width: 40rem) { .offcanvas-body { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.25rem; } }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-label { font-weight: 700; font-size: .95rem; }
.form-text { font-size: .85rem; color: var(--bs-tertiary-color); }
.form-group input, .form-group select { min-height: 44px; padding: .5rem .7rem; border: 1.5px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius-sm); background: #fff; color: var(--bs-body-color); font: inherit; font-variant-numeric: tabular-nums; }
.form-group input:hover, .form-group select:hover { border-color: var(--bs-tertiary-color); }
.form-group input:focus-visible, .form-group select:focus-visible { outline: 3px solid var(--bs-blue-600); outline-offset: 1px; border-color: var(--bs-blue-600); }
.form-group input[aria-invalid="true"] { border-color: var(--bs-pink-700); background: var(--bs-pink-100); }
.invalid-feedback { color: var(--bs-pink-700); font-size: .88rem; font-weight: 600; }
.progress-stacked { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--bs-border-color-translucent); }
@media (min-width: 40rem) { .progress-stacked { grid-template-columns: repeat(2, minmax(0, 1fr)); } .progress-stacked-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.progress { padding: .8rem 1rem; background: var(--bs-blue-200); border-right: 1px solid #fff; }
.progress-danger { background: var(--bs-pink-200); }
.progress-label { display: block; font-size: .85rem; font-weight: 650; color: var(--bs-secondary-color); }
.progress-bar { display: block; font-size: 1.9rem; font-weight: 780; font-stretch: 80%; line-height: 1.15; color: var(--bs-body-color); }
.progress.alert-warning { animation: placeholder-wave .9s var(--bs-transition-timing); }
@keyframes placeholder-wave { 0% { box-shadow: inset 0 0 0 100vmax var(--bs-blue-400); } 100% { box-shadow: inset 0 0 0 100vmax transparent; } }

/* ------------------------------------------------------------------ glossaire, figures, bande de liens */
.list-unstyled { display: grid; gap: 0; margin: 1.25rem 0; border-top: 1px solid var(--bs-border-color-translucent); }
.fw-semibold { padding: .8rem 0 .1rem; font-weight: 780; font-stretch: 85%; font-size: 1.15rem; }
.ms-3 { margin: 0; padding-bottom: .8rem; border-bottom: 1px solid var(--bs-border-color); max-width: var(--bs-body-max-width); }
@media (min-width: 48rem) { .list-unstyled { grid-template-columns: 14rem minmax(0, 1fr); } .fw-semibold, .ms-3 { padding-block: .9rem; border-bottom: 1px solid var(--bs-border-color); } }
.figure { margin: 1.75rem 0; }
.figure img { width: 100%; border-radius: var(--bs-border-radius); border: 1px solid var(--bs-border-color-translucent); }
.figure figcaption { margin-top: .5rem; font-size: .9rem; color: var(--bs-tertiary-color); }
.nav-fill { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: .9rem 0; list-style: none; border-block: 1px solid var(--bs-border-color-translucent); }
.nav-fill-label { margin-right: .5rem; font-weight: 750; font-stretch: 85%; }
.nav-fill a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; background: #fff; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius-sm); font-weight: 650; text-decoration: none; }
.nav-fill a:hover { background: var(--bs-blue-700); border-color: var(--bs-blue-700); color: #fff; }
.form-check { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.form-check-label { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.form-check-label .bi { width: 22px; height: 22px; padding: 3px; border-radius: 3px; background: var(--bs-blue-700); color: #fff; margin-top: .15em; }
.form-check-label-danger .bi { background: var(--bs-pink-700); }
.img-thumbnail { height: 26px; width: auto; max-width: 100%; object-fit: contain; }
.tooltip-logo .img-thumbnail, .popover-brand .img-thumbnail { max-width: 8.5rem; max-height: 26px; }

/* ------------------------------------------------------------------ asides communs (includes) */
.popover, .tooltip, .pagination, .nav-tabs { margin-block: 2rem; border-radius: var(--bs-border-radius); overflow: hidden; border: 1px solid var(--bs-border-color-translucent); background: #fff; box-shadow: var(--bs-box-shadow-sm); }
.popover-header, .tooltip-header, .pagination-title, .nav-tabs-title { margin: 0; padding: .65rem 1rem; background: var(--bs-gray-800); color: #fff; font-weight: 750; font-stretch: 85%; font-size: 1.15rem; line-height: 1.25; }
.popover-body { margin: 0; padding: .75rem 1rem 0; color: var(--bs-secondary-color); font-size: .98rem; }
.popover-list, .tooltip-list, .pagination-list, .nav-tabs-list { list-style: none; margin: 0; padding: 0; }
.popover-item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--bs-border-color); }
.page-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--bs-border-color); }
.popover-item:last-child, .page-item:last-child { border-bottom: 0; }
.popover-brand { display: flex; align-items: center; min-height: 32px; flex: 1 1 100%; }
.popover-item .btn { flex: 1 1 100%; }
@media (min-width: 40rem) {
  .popover-brand { flex: 0 0 11rem; }
  .popover-item .btn { flex: 0 0 auto; margin-left: auto; }
  .page-item { grid-template-columns: 9rem minmax(0, 1fr) auto; }
}
.page-link { font-weight: 750; }
.pagination-note, .pagination-note-global, .tooltip-body { color: var(--bs-tertiary-color); font-size: .9rem; }
.pagination-note-global, .tooltip-body { margin: 0; padding: .7rem 1rem; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); }
.tooltip-list { display: grid; }
@media (min-width: 40rem) { .tooltip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tooltip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tooltip-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo kind" "name name"; gap: .1rem .5rem; align-items: center; min-height: 44px; padding: .75rem 1rem; height: 100%; border-bottom: 1px solid var(--bs-border-color); border-right: 1px solid var(--bs-border-color); color: var(--bs-body-color); text-decoration: none; }
.tooltip-link:hover { background: var(--bs-blue-100); }
.tooltip-logo { grid-area: logo; display: flex; align-items: center; min-height: 28px; }
.tooltip-name { grid-area: name; font-weight: 700; }
.tooltip-kind { grid-area: kind; font-size: .8rem; font-weight: 700; color: var(--bs-blue-800); background: var(--bs-blue-200); padding: .1rem .4rem; border-radius: 3px; }
.nav-tabs-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; padding: .7rem 1rem; border-bottom: 1px solid var(--bs-border-color); text-decoration: none; font-weight: 650; }
.nav-tabs-link:hover { background: var(--bs-blue-100); }
.nav-tabs-item:last-child .nav-tabs-link { border-bottom: 0; }

/* ------------------------------------------------------------------ pied de page */
.bd-footer { background: var(--bs-gray-900); color: #c7d5ea; padding-top: 2.5rem; margin-top: 3rem; }
.bd-footer a { color: #e4eefb; }
.bd-footer a:hover { color: #fff; }
.bd-footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 2rem; }
.bd-footer-about { grid-column: 1 / -1; }
.navbar-brand-alt, .navbar-brand-alt:hover { color: #fff; }
.bd-footer-tagline { margin: .5rem 0; }
.bd-footer-title { margin: 0 0 .5rem; font-weight: 780; font-stretch: 85%; font-size: 1.1rem; color: #fff; }
.bd-footer-list { list-style: none; margin: 0; padding: 0; }
.bd-footer-list li { margin: 0; }
.bd-footer-list a, .bd-footer-list span { display: inline-block; padding-block: .5rem; }
.bd-footer-list span { color: #93a8c6; }
.bd-footer-legal { padding-block: 1.25rem 2rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .92rem; color: #a9bbd4; }
.bd-footer-legal p { max-width: 70ch; margin-bottom: .5rem; }
@media (min-width: 48rem) { .bd-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .bd-footer-about { grid-column: auto; } }

/* Bandeau cookies : barre nuit fixée en bas, hors flux (aucun décalage de mise en page). Hidden tant que site.js ne l'a pas affiché.
   Bouton fantôme clair, pas d'ambre : l'accent reste réservé à l'action principale de la page (règle de l'ambre unique). */
.modal-dialog { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--bs-gray-900); color: #c7d5ea; border-top: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 -8px 24px -12px rgba(7, 19, 38, .5); padding-block: .9rem max(.9rem, env(safe-area-inset-bottom)); }
.modal-dialog[hidden] { display: none; }
.modal-content { display: grid; gap: .75rem; align-items: center; }
.modal-body { margin: 0; font-size: .95rem; line-height: 1.5; max-width: 70ch; }
.modal-title { color: #fff; font-weight: 750; }
.modal-dialog a { color: #e4eefb; text-decoration: underline; text-underline-offset: 2px; }
.modal-dialog a:hover { color: #fff; }
.modal-dialog :focus-visible { outline-color: #fff; }
@media (min-width: 40rem) { .modal-content { grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; } }
@media (prefers-reduced-motion: no-preference) { .modal-dialog:not([hidden]) { animation: offcanvas-slide .5s var(--bs-transition-timing) both; } }
@keyframes offcanvas-slide { from { transform: translateY(100%); } }
@media print { .modal-dialog { display: none; } }

/* titre de colonne "Best fit / Not ideal for" (sportmarket-review) */
.bd-example-heading { margin-bottom: 1.25rem; }

/* tool: margin calculator */
.offcanvas-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.offcanvas-check { align-self: end; display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 650; cursor: pointer; }
.offcanvas-check input { flex: none; width: 1.4rem; height: 1.4rem; }
.offcanvas-content { grid-column: 1 / -1; display: grid; gap: 1rem; }
.blockquote { display: grid; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bs-border-color); }
.blockquote[hidden] { display: none; }
.blockquote-footer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .75rem; }
.offcanvas:not(.table-primary) .offcanvas-alt, .offcanvas.table-primary .offcanvas-solo { display: none; }
.offcanvas-text, .offcanvas .caption-top { margin: 0; padding: .7rem 1rem; font-size: .92rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); }
.offcanvas .table-responsive { margin: 0; border: 0; border-top: 1px solid var(--bs-border-color-translucent); border-radius: 0; }
.offcanvas .table-lg { min-width: 46rem; }
.offcanvas .table th, .offcanvas .table td { padding-inline: .6rem; }
.offcanvas .table tbody th { min-width: 6.5rem; }
@media (min-width: 40rem) { .blockquote { grid-template-columns: repeat(2, minmax(0, 1fr)); } .table-primary .blockquote-cite { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .table-primary .blockquote { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr); } .table-primary .blockquote-cite { grid-column: auto; } }

/* flow: path of a stake (schema DIAG, HTML/CSS, jamais une image) */
.carousel { margin: 1.75rem 0; }
.carousel-title { margin: 0 0 .9rem; font-size: 1.15rem; font-weight: 750; font-stretch: 85%; word-spacing: .08em; }
.carousel-inner { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.9rem; }
.carousel-item { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius); box-shadow: var(--bs-box-shadow-sm); }
.carousel-item:not(:last-child)::after { content: ""; position: absolute; top: 100%; left: 50%; margin: .35rem 0 0 -.65rem; border-left: .65rem solid transparent; border-right: .65rem solid transparent; border-top: .9rem solid var(--bs-blue-700); }
.carousel-header { display: block; padding: .5rem .9rem; background: var(--bs-gray-800); color: #fff; font-weight: 750; font-stretch: 85%; font-size: 1.05rem; word-spacing: .08em; border-radius: calc(var(--bs-border-radius) - 1px) calc(var(--bs-border-radius) - 1px) 0 0; }
.carousel-item-primary .carousel-header { background: var(--bs-blue-700); }
.carousel-body { display: block; padding: .7rem .9rem; }
.carousel-control-next { display: block; margin-top: auto; padding: .5rem .9rem; background: var(--bs-blue-200); color: var(--bs-blue-800); border-top: 1px solid var(--bs-blue-300); font-size: .88rem; font-weight: 650; line-height: 1.35; border-radius: 0 0 calc(var(--bs-border-radius) - 1px) calc(var(--bs-border-radius) - 1px); }
.carousel-control-prev { background: var(--bs-pink-200); color: var(--bs-pink-800); border-top-color: var(--bs-pink-300); }
.carousel-indicators { list-style: none; margin: 0; padding: .7rem .9rem; display: grid; gap: .5rem; }
.carousel-indicator { display: grid; padding: .5rem .7rem; background: var(--bs-blue-100); border: 1px solid var(--bs-blue-300); border-radius: var(--bs-border-radius-sm); }
.carousel-caption { font-weight: 750; font-stretch: 85%; }
.carousel-caption-text { font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) {
  .carousel-inner { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }
  .carousel-item:not(:last-child)::after { top: 50%; left: 100%; margin: -.65rem 0 0 .25rem; border-top: .65rem solid transparent; border-bottom: .65rem solid transparent; border-left: .9rem solid var(--bs-blue-700); border-right: 0; }
}
