/* Page d'accueil. Mobile d'abord : bandeau photo puis contenu. À partir de 992 px : la photo occupe la moitié gauche
   sur toute la hauteur (elle reste en place pendant le défilement), le contenu vit sur l'aplat crème à droite. */
main.sm-home-main { display: block; padding: 0; }
main.sm-home-main > .alert { margin: 1rem 16px; }
.sm-split-photo img { display: block; width: 100%; height: 34vh; height: 34svh; min-height: 11rem; object-fit: cover; object-position: 38% 55%; }
.sm-split-body { min-width: 0; display: flex; flex-direction: column; }
.sm-column { width: 100%; max-width: 38rem; margin: 0 auto; padding: 0 16px; }
.sm-column > section { padding: 2rem 0; border-top: 1px solid var(--bs-border-color); }
.sm-column > section.sm-intro { border-top: 0; }
.sm-column h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; font-weight: 600; color: var(--bs-emphasis-color); margin-bottom: 1rem; text-wrap: balance; }
.sm-column h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; text-wrap: balance; }
.sm-lead { font-size: 1.22rem; line-height: 1.5; }
.sm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin: 1.5rem 0 1rem; }
.sm-textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: .25em; }
.sm-terms { font-size: 1rem; margin: 0; padding-left: .9rem; border-left: 3px solid var(--sm-sun); }
.sm-note { font-size: .95rem; color: var(--bs-secondary-color); }
.sm-prose p { line-height: 1.65; }

/* L'adaptation du champ de données, mise en avant : plus grand, mots clés surlignés (texte foncé dans les deux thèmes). */
.sm-views { margin: 1.5rem 0 0; font-family: var(--sm-serif); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.7rem); line-height: 1.6; color: var(--bs-emphasis-color); }
.sm-views mark { padding: .02em .22em; border-radius: .25em; color: var(--sm-on-sun); font-weight: 700;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sm-views .sm-hl-sun { background: var(--sm-sun); }
.sm-views .sm-hl-blue { background: #8cc4ee; }

/* Onglets nommés des écrans de montre */
.sm-tabbar { display: flex; align-items: flex-start; gap: .5rem; border-bottom: 1px solid var(--bs-border-color); }
.sm-tabbar[hidden] { display: none; }
.sm-tabs { display: flex; flex-wrap: wrap; flex: 1 1 auto; }
.sm-tabs [role="tab"] { min-height: 44px; padding: .4rem .8rem; background: none; border: 0; border-bottom: 3px solid transparent;
    color: var(--bs-secondary-color); font-weight: 600; cursor: pointer; }
.sm-tabs [role="tab"]:hover { color: var(--bs-emphasis-color); }
.sm-tabs [role="tab"][aria-selected="true"] { color: var(--bs-emphasis-color); border-bottom-color: var(--sm-sun); }
.sm-carousel-toggle { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sm-control-border);
    background: none; color: var(--bs-body-color); font-size: 1.2rem; cursor: pointer; }
.sm-slides { display: grid; padding-top: 1.25rem; }
.sm-slide { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.sm-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.sm-watch { width: min(70%, 260px); height: auto; aspect-ratio: 300 / 380; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(28, 20, 40, .28)); }
.sm-slide figcaption { font-weight: 600; margin: .5rem 0; min-height: 1.5em; }
.sm-carousel .sm-note { text-align: center; }

/* Curseur de distance */
.sm-distance[hidden] { display: none; }
.sm-distance-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sm-distance-head label { font-weight: 600; }
.sm-distance-head output { font-family: var(--sm-serif); font-size: 2.4rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sm-stops { display: flex; flex-wrap: wrap; gap: .5rem; }
.sm-stops button { min-height: 44px; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--sm-control-border); background: none;
    color: var(--bs-body-color); font-weight: 600; cursor: pointer; }
.sm-stops button[aria-pressed="true"] { background: var(--bs-primary); border-color: var(--bs-primary); color: var(--sm-on-primary); }
.sm-verdict { font-family: var(--sm-serif); font-size: 1.3rem; margin: 1rem 0; min-height: 3.1em; }
.sm-distance-view { display: grid; gap: 1.25rem; align-items: center; justify-items: center; }
.sm-minimap { width: min(100%, 12rem); height: auto; border: 5px solid var(--bs-primary); border-radius: 50%; }
.sm-minimap [data-layer], .sm-mini-route { transition: opacity .25s ease; }
.sm-minimap .is-off { opacity: 0; }
.sm-distance.is-refused .sm-minimap { opacity: .3; }
.sm-layers { list-style: none; margin: 0; padding: 0; width: 100%; }
.sm-layers li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--bs-border-color); }
.sm-layer-state { font-weight: 700; white-space: nowrap; }
.sm-layers li.is-off > span:first-child { text-decoration: line-through; }
.sm-layers li.is-off .sm-layer-state { font-weight: 400; color: var(--bs-secondary-color); }
.sm-limits { margin-top: 1.25rem; padding-left: 1.1rem; }

.sm-split-body .sm-footer { margin-top: auto; }
.sm-split-body .sm-footer p { margin: 0 0 .25rem; }

@media (min-width: 576px) { .sm-distance-view { grid-template-columns: auto minmax(0, 1fr); } }
@media (min-width: 992px) {
    .sm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .sm-split-photo { position: sticky; top: 0; height: 100vh; height: 100svh; }
    .sm-split-photo img { height: 100%; min-height: 0; object-position: 38% 50%; }
    .sm-column { padding: 0 2.5rem; max-width: 42rem; }
    .sm-column > section.sm-intro { padding-top: clamp(2rem, 9vh, 6rem); }
}
@media (prefers-reduced-motion: reduce) {
    .sm-slide, .sm-slide.is-active, .sm-minimap [data-layer], .sm-mini-route { transition: none; }
}
