/* ==========================================================
   PREVIEW LOCALE — NON TRANSFÉRABLE
   ========================================================== */

/* Ces classes simulent un site hôte neutre. Ne pas les copier dans le CMS. */
.sg-preview-page {
    /* Couleurs du cadre local, indépendantes des variables du guide transférable. */
    --sg-preview-accent-authentique: #733400;
    --sg-preview-accent-dissidence: #edc065;
    --sg-preview-panel-background: #ffffff;
    --sg-preview-content-width: 1000px;

    margin: 0;
    background: #cecece;
}

.sg-preview-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 32px 24px; /* Marges extérieures de simulation : non transférables. */
}

.sg-preview-header,
.sg-preview-footer {
    box-sizing: border-box;
    padding: 14px 20px 16px;
    border: 2px solid transparent;
    border-radius: 4px;
    background:
        linear-gradient(var(--sg-preview-panel-background), var(--sg-preview-panel-background)) padding-box,
        linear-gradient(to right,
            var(--sg-preview-accent-authentique) 42%,
            var(--sg-preview-accent-dissidence) 58%) border-box;
    text-align: center;
}

.sg-preview-brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: var(--sg-preview-content-width);
    margin-inline: auto;
}

.sg-preview-brand {
    display: flex;
    min-width: 0;
    align-items: center;
}

.sg-preview-brand--authentique {
    justify-self: start;
}

.sg-preview-brand--dissidence {
    justify-self: end;
}

.sg-preview-brand:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 4px;
    border-radius: 2px;
}

.sg-preview-brand img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sg-preview-title {
    position: relative;
    margin: 0;
    padding-inline: 12px;
    color: #111111;
    font: 700 20px/1.2 "Poppins", system-ui, sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sg-preview-title::before,
.sg-preview-title::after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    content: "";
    transform: skewX(-12deg);
}

.sg-preview-title::before {
    left: 0;
    background: var(--sg-preview-accent-authentique);
}

.sg-preview-title::after {
    right: 0;
    background: var(--sg-preview-accent-dissidence);
}

.sg-preview-main {
    padding-block: 24px;
}

/* La largeur commune aligne les pictogrammes sur le contenu ; elle reste locale. */
.sg-preview-content {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--sg-preview-content-width);
    margin-inline: auto;
    padding: 32px; /* Espace simulé autour du guide : non transférable. */
    border: 1px solid #d8dfe3;
    background: #fff;
}

@media (max-width: 749px) {
    .sg-preview-shell {
        padding: 16px 12px;
    }

    .sg-preview-header,
    .sg-preview-footer {
        padding: 12px;
    }

    .sg-preview-brand-row {
        gap: 6px;
    }

    .sg-preview-brand img {
        width: 24px;
        height: 24px;
    }

    .sg-preview-title {
        padding-inline: 9px;
        font-size: 16px;
        letter-spacing: 0.02em;
    }

    .sg-preview-main {
        padding-block: 12px;
    }

    .sg-preview-content {
        padding: 16px;
    }
}

/* ==========================================================
   SCOOTER GUIDE — TRANSFÉRABLE
   ========================================================== */

.sg-guide {
    /* Réglages globaux : adapter ici l'identité visuelle sans parcourir tout le CSS. */
    /* Poppins est le choix actuel du guide ; Roboto reste disponible pour une variante éventuelle. */
    --sg-font-roboto: "Roboto", system-ui, sans-serif;
    --sg-font-poppins: "Poppins", system-ui, sans-serif;
    --sg-font-body: var(--sg-font-poppins);
    --sg-font-heading: var(--sg-font-poppins);
    /* Échelle de lecture : valeurs de référence pour une racine à 16px. */
    --sg-heading-h1-size: 2.25rem;
    --sg-heading-h2-size: 1.75rem;
    --sg-heading-h3-size: 1.4375rem;
    --sg-heading-h4-size: 1.1875rem;
    --sg-heading-h5-size: 1rem;
    --sg-font-size-body: 0.9375rem;
    --sg-font-size-secondary: 0.875rem;
    --sg-font-size-tertiary: 0.8125rem;
    --sg-caption-inset: 8px;
    /* Palette de texte du guide. H4 et H5 reprennent H3 pour le moment. */
    --sg-color-text: #303030;
    --sg-color-text-strong: #1f1f1f;
    --sg-color-text-secondary: #5f6368;
    --sg-color-text-tertiary: #6b7280;
    --sg-color-quote: #404040;
    --sg-color-page-title: #111111;
    --sg-color-heading-h2: #171717;
    --sg-color-heading-h3: #222222;
    --sg-color-background: #ffffff;
    /* Accent primaire actif : Authentique. Pour Dissidence, l'intégrateur peut
       pointer --sg-color-accent-primary vers la variable Dissidence ci-dessous. */
    --sg-color-accent-primary-authentique: #733400;
    --sg-color-accent-primary-dissidence: #edc065;
    --sg-color-accent-primary: var(--sg-color-accent-primary-authentique);
    --sg-color-menu-icon: #111111;
    --sg-color-menu-border: #5f6368;
    --sg-color-surface-secondary: #f4f7f8;
    --sg-color-border: #d8e0e4;

    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    background: var(--sg-color-background);
    color: var(--sg-color-text);
    font: 400 var(--sg-font-size-body)/1.6 var(--sg-font-body);
}

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

/* Sécurité pour les futures images du guide, sans affecter le site hôte. */
.sg-guide img {
    max-width: 100%;
    height: auto;
}

/* Images du guide : gabarit commun ; les classes restent distinctes pour les futures variantes. */
.sg-guide :is(.sg-kk-diagram, .sg-illustration) {
    width: 75%;
    margin-block: 24px;
    margin-inline: 0;
}

.sg-guide :is(.sg-kk-diagram, .sg-illustration, .sg-image-pair__item) img {
    display: block;
    width: 100%;
    height: auto;
}

/* Les illustrations sont plus compactes et légèrement arrondies sur la page. */
.sg-guide .sg-illustration {
    width: 60%;
}

/* Exception réutilisable pour une image verticale, quelle que soit sa famille. */
.sg-guide .sg-image--9-16 {
    width: 40%;
}

.sg-guide :is(.sg-illustration, .sg-image-pair__item) img {
    border-radius: 4px;
}

/* Duo d’illustrations : les images gardent leur ratio natif et restent côte à côte. */
.sg-guide .sg-image-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 32px;
    width: 80%;
    margin: 24px auto;
}

.sg-guide .sg-image-pair__item {
    min-width: 0;
    margin: 0;
}

/* Le séparateur suit la hauteur du média, sans descendre entre les légendes. */
.sg-guide .sg-image-pair__item:first-child .sg-image-pair__zoom {
    position: relative;
}

.sg-guide .sg-image-pair__item:first-child .sg-image-pair__zoom::after,
.sg-guide .sg-video-pair .sg-video:first-child .sg-video__frame::after {
    position: absolute;
    top: 30%;
    bottom: 30%;
    left: calc(100% + 16px);
    width: 3px;
    border-radius: 2px;
    background: var(--sg-color-accent-primary);
    content: "";
    transform: translateX(-50%);
    pointer-events: none;
}

.sg-guide :is(.sg-kk-diagram__zoom, .sg-illustration__zoom, .sg-image-pair__zoom) {
    display: block;
    cursor: zoom-in;
}

.sg-guide :is(.sg-kk-diagram__zoom, .sg-illustration__zoom, .sg-image-pair__zoom):focus-visible {
    outline: none;
}

/* Vidéos : largeur définie par ratio (en % du guide) et cadre proportionnel pour l’intégration Shopify. */
.sg-guide .sg-video {
    max-width: 80%;
    margin: 24px 0;
}

.sg-guide .sg-video--16-9 {
    width: 80%;
}

.sg-guide .sg-video--4-3 {
    width: 70%;
}

.sg-guide .sg-video--9-16 {
    width: 40%;
}

/* Duo de Shorts 9:16 : deux colonnes à partir de 750px. */
.sg-guide .sg-video-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    width: 80%;
    margin: 24px auto;
}

.sg-guide .sg-video-pair .sg-video {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.sg-guide .sg-video__frame {
    position: relative;
    width: 100%;
}

.sg-guide .sg-video--16-9 .sg-video__frame {
    aspect-ratio: 16 / 9;
}

.sg-guide .sg-video--4-3 .sg-video__frame {
    aspect-ratio: 4 / 3;
}

.sg-guide .sg-video--9-16 .sg-video__frame {
    aspect-ratio: 9 / 16;
}

.sg-guide .sg-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
}

.sg-guide .sg-kk-diagram figcaption,
.sg-guide .sg-illustration figcaption,
.sg-guide .sg-image-pair__item figcaption,
.sg-guide .sg-video figcaption {
    margin-top: 8px;
    margin-inline-start: var(--sg-caption-inset);
    font-style: italic;
}

/* Repère décoratif commun aux légendes et aux notes sous les tableaux. */
.sg-guide .sg-kk-diagram figcaption::before,
.sg-guide .sg-illustration figcaption::before,
.sg-guide .sg-image-pair__item figcaption::before,
.sg-guide .sg-video figcaption::before,
.sg-guide .sg-table-note::before {
    display: inline-block;
    margin-inline-end: 0.45em;
    color: var(--sg-color-accent-primary);
    font-style: normal;
    font-weight: 700;
    content: "*";
}

/* Le focus clavier reste visible sans encadrer toute l’image après Échap. */
.sg-guide :is(.sg-kk-diagram__zoom, .sg-illustration__zoom, .sg-image-pair__zoom):focus-visible + figcaption {
    text-decoration: underline 2px var(--sg-color-accent-primary);
    text-underline-offset: 4px;
}

/* Visionneuse commune aux images du guide ; le lien reste utilisable sans JS. */
.sg-guide .sg-image-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 16px;
    border: 0;
    background: transparent;
    outline: none;
    overflow: auto;
}

.sg-guide .sg-image-dialog:not([open]) {
    display: none;
}

.sg-guide .sg-image-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-guide .sg-image-dialog::backdrop {
    background: rgb(17 17 17 / 40%);
    backdrop-filter: blur(6px);
}

.sg-guide .sg-image-dialog__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 32px);
    background: var(--sg-color-background);
    object-fit: contain;
}

.sg-guide .sg-image-dialog__close {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sg-color-menu-icon);
    cursor: pointer;
}

/* Cadre de 28px dans une zone cliquable de 44px. */
.sg-guide .sg-image-dialog__close::before {
    position: absolute;
    inset: 8px;
    border: 2px solid var(--sg-color-accent-primary);
    border-radius: 5px;
    background: var(--sg-color-background);
    box-shadow: 0 1px 6px rgb(0 0 0 / 18%);
    content: "";
}

.sg-guide .sg-image-dialog__close:focus-visible {
    outline: 2px solid var(--sg-color-page-title);
    outline-offset: 2px;
}

.sg-guide .sg-image-dialog__icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 150ms ease;
}

.sg-guide .sg-image-dialog__close:hover .sg-image-dialog__icon {
    transform: scale(1.2);
}

.sg-page-header {
    margin-bottom: 32px;
}

/* H1 : titre de page uniquement. H2 à H5 : niveaux de contenu du guide. */
.sg-guide h1,
.sg-guide h2,
.sg-guide h3,
.sg-guide h4,
.sg-guide h5 {
    font-family: var(--sg-font-heading);
}

.sg-guide h1 {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding-inline: 14px;
    color: var(--sg-color-page-title);
    font-size: var(--sg-heading-h1-size);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

/* Essai visuel : deux traits inclinés dans le sens de l'italique. */
.sg-guide h1::before,
.sg-guide h1::after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sg-color-accent-primary);
    content: "";
    transform: skewX(-12deg);
}

.sg-guide h1::before {
    left: 0;
}

.sg-guide h1::after {
    right: 0;
}

/* Espace entre sujets, puis lien visuel serré avec le paragraphe suivant. */
.sg-guide h2,
.sg-guide h3,
.sg-guide h4,
.sg-guide h5 {
    margin: 24px 0 0.35em;
}

.sg-main > h2:first-child {
    margin-top: 0;
}

/* Le paragraphe directement sous un titre garde une seule marge, celle du titre. */
.sg-guide :is(h2, h3, h4, h5) + p {
    margin-top: 0;
}

.sg-guide h2 {
    margin-top: 48px;
    padding-inline-start: 14px;
    border-inline-start: 4px solid var(--sg-color-accent-primary);
    color: var(--sg-color-heading-h2);
    font-size: var(--sg-heading-h2-size);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.sg-guide h3 {
    margin-top: 36px;
    color: var(--sg-color-heading-h3);
    font-size: var(--sg-heading-h3-size);
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

.sg-guide h3::after {
    display: block;
    width: min(72px, 40%);
    height: 2px;
    margin-top: 4px;
    background: var(--sg-color-accent-primary);
    content: "";
}

.sg-guide h2 + h3 {
    margin-top: 24px;
}

.sg-guide h4 {
    color: var(--sg-color-heading-h3);
    font-size: var(--sg-heading-h4-size);
    font-weight: 600;
    line-height: 1.3;
}

.sg-guide h5 {
    color: var(--sg-color-heading-h3);
    font-size: var(--sg-heading-h5-size);
    font-weight: 600;
    line-height: 1.35;
}

/* Pictogrammes intégrés au texte : taille relative à leur contexte. */
.sg-guide :is(.sg-heading-icon, .sg-callout__icon) {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: 0.35em;
    fill: currentColor;
    vertical-align: -0.12em;
}

/* TEXTE — les italiques conservent la couleur de leur contexte. */
.sg-guide p {
    color: inherit;
}

/* Liens dans le texte : l'accent actif peut varier selon la boutique. */
.sg-guide .sg-text-link {
    color: var(--sg-color-accent-primary);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.sg-guide .sg-text-link:is(:hover, :focus-visible) {
    text-decoration: underline 1px currentColor;
}

.sg-guide .sg-text-link:focus-visible {
    outline: 2px solid var(--sg-color-accent-primary);
    outline-offset: 3px;
}

.sg-guide strong,
.sg-guide b {
    color: var(--sg-color-text-strong);
    font-weight: 600;
}

.sg-guide em,
.sg-guide i {
    color: inherit;
    font-style: italic;
}

.sg-guide figcaption,
.sg-guide .sg-caption,
.sg-guide .sg-text--secondary {
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-font-size-secondary);
}

.sg-guide .sg-text--tertiary {
    color: var(--sg-color-text-tertiary);
    font-size: var(--sg-font-size-tertiary);
}

.sg-guide blockquote,
.sg-guide q {
    color: var(--sg-color-quote);
}

.sg-guide .sg-quote {
    margin: 24px 0;
}

.sg-guide .sg-quote blockquote,
.sg-guide .sg-quote p {
    margin: 0;
}

.sg-guide .sg-quote figcaption {
    margin-top: 8px;
}

/* Note mise en avant : fond dérivé de l'accent actif, texte primaire lisible. */
.sg-guide .sg-callout {
    margin-block: 24px;
    margin-inline: 16px 0;
    padding: 12px 16px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--sg-color-accent-primary) 8%, var(--sg-color-background));
    color: var(--sg-color-text);
    font-size: var(--sg-font-size-secondary);
}

.sg-guide .sg-callout p {
    margin: 0;
}

.sg-guide .sg-callout p + p {
    margin-top: 0.75em;
}

.sg-guide .sg-callout__icon {
    width: 1.3em;
    height: 1.3em;
    color: var(--sg-color-text-strong);
    vertical-align: -0.22em;
}

/* Tableau du guide : mêmes règles pour les futures comparaisons de fiches. */
.sg-guide .sg-table-wrap {
    max-width: 100%;
    margin-block: 24px 0;
    overflow-x: auto;
}

.sg-guide .sg-table-wrap:focus-visible {
    outline: 2px solid var(--sg-color-accent-primary);
    outline-offset: 2px;
}

/* Option ponctuelle : mesure insécable avec unité en exposant. */
.sg-guide .sg-measure {
    white-space: nowrap;
}

.sg-guide .sg-measure__unit {
    font-size: 0.7em;
    line-height: 0;
    vertical-align: super;
}

.sg-guide .sg-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--sg-color-text);
    font-size: var(--sg-font-size-secondary);
    line-height: 1.5;
    text-align: left;
}

.sg-guide .sg-table--bearing-sizes {
    min-width: 700px;
}

.sg-guide .sg-table caption {
    padding-bottom: 8px;
    padding-inline-start: var(--sg-caption-inset);
    color: var(--sg-color-text-secondary);
    text-align: left;
}

.sg-guide .sg-table th,
.sg-guide .sg-table td {
    padding: 10px 12px;
    vertical-align: top;
}

.sg-guide .sg-table th:not(:first-child),
.sg-guide .sg-table td:not(:first-child) {
    border-inline-start: 2px solid var(--sg-color-border);
}

.sg-guide .sg-table thead th {
    background: var(--sg-color-background);
    color: var(--sg-color-heading-h3);
    font-weight: 600;
}

.sg-guide .sg-table thead th:not(:first-child) {
    border-image-source: linear-gradient(to bottom, var(--sg-color-accent-primary) 75%, var(--sg-color-border) 100%);
    border-image-slice: 1;
}

.sg-guide .sg-table tbody th {
    color: var(--sg-color-text-strong);
    font-weight: 600;
}

.sg-guide .sg-table thead th,
.sg-guide .sg-table tbody th,
.sg-guide .sg-table td:nth-child(2) {
    white-space: nowrap;
}

.sg-guide .sg-table-note {
    margin: 8px 0 0;
    margin-inline-start: var(--sg-caption-inset);
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-font-size-secondary);
    font-style: italic;
}

/* Listes : tiret aligné sur les paragraphes, texte en retrait ; sous-listes décalées. */
.sg-guide .sg-list {
    padding-inline-start: 1.25em;
    list-style-position: outside;
}

.sg-guide .sg-list > li::marker {
    content: "– ";
    color: var(--sg-color-accent-primary);
    font-weight: 700;
}

.sg-guide .sg-list li + li {
    margin-top: 0.625em;
}

.sg-guide .sg-list :is(ul, ol) {
    padding-inline-start: 1.5em;
}

/* Comparaison en deux colonnes : chaque liste garde son propre rythme. */
.sg-guide .sg-comparison {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 85%;
    margin: 24px auto;
}

.sg-guide .sg-comparison::before {
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 2px;
    background: var(--sg-color-accent-primary);
    content: "";
    transform: translateX(-50%);
}

.sg-guide .sg-comparison__column {
    min-width: 0;
    padding-inline: 16px;
}

.sg-guide .sg-comparison__column h4 {
    margin: 0 0 0.75em;
}

.sg-guide .sg-comparison__column .sg-list {
    margin: 0;
}

/* Métadonnées éditoriales : pied d’article transférable, distinct du footer de prévisualisation. */
.sg-guide .sg-article-meta {
    margin-top: 72px;
    color: var(--sg-color-text-secondary);
    font-size: var(--sg-font-size-secondary);
    text-align: left;
}

.sg-guide .sg-article-meta::before {
    display: block;
    width: 35%;
    height: 2px;
    margin-bottom: 18px;
    background: var(--sg-color-accent-primary);
    content: "";
}

.sg-guide .sg-article-meta p {
    margin: 0;
}

/* Pied d’article avec date et accès à la page suivante sur la même ligne. */
.sg-guide .sg-article-meta--with-next {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 20px;
}

.sg-guide .sg-article-meta--with-next::before {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.sg-guide .sg-article-meta__date {
    min-width: 0;
}

.sg-guide .sg-article-meta__next {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin-inline-end: 16px;
    white-space: nowrap;
}

.sg-guide .sg-article-meta__next .sg-guide-menu__link {
    width: 38px;
    height: 38px;
    flex: none;
}

.sg-text {
    margin: 0;
}

.sg-guide-menu {
    margin-bottom: 72px;
}

.sg-guide-menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-guide-menu__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--sg-color-menu-border);
    border-radius: 5px;
    color: var(--sg-color-menu-icon);
    text-decoration: none;
    transition: border-color 150ms ease, border-width 150ms ease;
}

.sg-guide-menu__link:hover {
    border-width: 3px;
    border-color: var(--sg-color-accent-primary);
}

.sg-guide-menu__link:focus-visible {
    outline: 2px solid var(--sg-color-menu-icon);
    outline-offset: 2px;
}

.sg-guide-menu__link[aria-current="page"] {
    width: 50px;
    height: 50px;
    border-width: 3px;
    border-color: var(--sg-color-accent-primary);
}

.sg-guide-menu__icon {
    display: block;
    width: 30px;
    height: 30px;
    flex: none;
}

.sg-guide-menu__link[aria-current="page"] .sg-guide-menu__icon {
    width: 38px;
    height: 38px;
}

/* Le canevas transparent du PNG règle l'espace visuel autour du dessin. */
.sg-guide .sg-guide-menu__icon--png,
.sg-guide .sg-guide-menu__link[aria-current="page"] .sg-guide-menu__icon--png {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sg-guide-menu__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Convention du guide : un seul seuil majeur, sous 750px pour le mode mobile. */
@media (max-width: 749px) {
    .sg-guide {
        padding: 16px;
        --sg-heading-h1-size: 1.875rem;
        --sg-heading-h2-size: 1.5rem;
        --sg-heading-h3-size: 1.25rem;
        --sg-heading-h4-size: 1.0625rem;
        --sg-heading-h5-size: 0.9375rem;
        --sg-font-size-body: 0.875rem;
        --sg-font-size-secondary: 0.8125rem;
        --sg-font-size-tertiary: 0.75rem;
    }

    .sg-guide h1 {
        padding-inline: 10px;
    }

    .sg-page-header {
        margin-bottom: 28px;
    }

    .sg-guide h2 {
        margin-top: 36px;
        padding-inline-start: 10px;
    }

    .sg-guide h3 {
        margin-top: 28px;
    }

    .sg-guide h2 + h3 {
        margin-top: 20px;
    }

    .sg-guide :is(h4, h5) {
        margin-top: 20px;
    }

    .sg-guide .sg-callout {
        margin-inline-start: 8px;
        padding: 10px 12px;
    }

    .sg-guide :is(.sg-kk-diagram, .sg-illustration) {
        width: calc(100% - 16px);
        margin-inline: auto;
    }

    .sg-guide .sg-image-pair {
        width: calc(100% - 16px);
        gap: 16px;
    }

    .sg-guide .sg-image-pair__item:first-child .sg-image-pair__zoom::after {
        left: calc(100% + 8px);
    }

    .sg-guide .sg-comparison {
        width: calc(100% - 16px);
    }

    .sg-guide .sg-comparison__column {
        padding-inline: 8px;
    }

    .sg-guide-menu {
        margin-bottom: 56px;
    }

    .sg-guide .sg-article-meta {
        margin-top: 56px;
    }

    .sg-guide .sg-article-meta::before {
        margin-bottom: 14px;
    }

    .sg-guide .sg-article-meta--with-next {
        padding-top: 16px;
    }

    .sg-guide .sg-article-meta--with-next::before {
        margin-bottom: 0;
    }

    .sg-guide .sg-article-meta__next {
        margin-inline-end: 8px;
    }

    .sg-guide .sg-video {
        width: calc(100% - 16px);
        max-width: none;
        margin-inline: auto;
    }

    .sg-guide .sg-video-pair {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 16px);
        gap: 24px;
    }

    .sg-guide .sg-video-pair .sg-video {
        margin-inline: auto;
    }

    .sg-guide .sg-video-pair .sg-video:first-child .sg-video__frame::after {
        display: none;
    }

    .sg-guide .sg-image-dialog {
        padding: 8px;
    }

    .sg-guide .sg-image-dialog__image {
        max-height: calc(100dvh - 16px);
    }

    .sg-guide .sg-image-dialog__close {
        top: 8px;
        right: 8px;
    }
}

/* Les médias verticaux restent moins hauts sur les écrans intermédiaires. */
@media (min-width: 500px) and (max-width: 749px) {
    .sg-guide .sg-image--9-16,
    .sg-guide .sg-video--9-16,
    .sg-guide .sg-video-pair .sg-video--9-16 {
        max-width: 75%;
    }
}
