/*
 * Compatibilité Bootstrap 3 -> 5 pour le balisage des anciens sites.
 * Les classes ont été converties (convertisseur bs5.py) ; restent ici celles qui n'ont pas d'équivalent en Bootstrap 5.
 */

/* Espacements des anciens gabarits (définis aussi dans certains style.css) */
.clear10 { clear: both; height: 10px; }
.clear18 { clear: both; height: 18px; }
.clear20 { clear: both; height: 20px; }

/* .well et .thumbnail (supprimés en Bootstrap 4) */
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.well-sm { padding: 9px; }
.well-lg { padding: 24px; }
.thumbnail { display: block; padding: 4px; margin-bottom: 20px; background-color: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.thumbnail > img, .thumbnail a > img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.thumbnail .caption { padding: 9px; }

/* Tailles de champs (input-sm / input-lg) */
.input-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: var(--bs-border-radius-sm); }
.input-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: var(--bs-border-radius-lg); }

/* Menus empilés (nav-stacked) */
.nav-stacked { flex-direction: column; }

/* Séparateur de liste déroulante de Bootstrap 3 */
.dropdown-menu > .divider { height: 0; margin: .5rem 0; overflow: hidden; border-top: 1px solid var(--bs-border-color-translucent); }

/* .media (supprimé en Bootstrap 5) */
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; margin-left: 1rem; }

/* .jumbotron */
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius-lg); }

/* Formulaires : états et aide de Bootstrap 3 */
.has-success .form-control { border-color: var(--bs-success); }
.has-error .form-control { border-color: var(--bs-danger); }

/* Bootstrap 5 souligne les liens : les gabarits d'origine ne l'étaient pas */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .navbar-brand:hover, .card a:hover { text-decoration: none; }

/* Titres de Bootstrap 3 (tailles et marges plus proches de l'original) */
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }

/* Les .row Bootstrap 5 mettent une gouttière en marge ; les .col sans .row restent utilisables */
.form-horizontal .col-form-label { text-align: right; }
@media (max-width: 767.98px) { .form-horizontal .col-form-label { text-align: left; } }

/* Mode « fondu » des carrousels Bootstrap 3 (carousel-fade) */
.carousel-fade .carousel-item { transition-duration: .8s; }
