/* ==========================================================
   SC PLATFORM — COMPOSANTS
   Tous les composants consomment les tokens du thème actif.
   ========================================================== */


.app-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 320ms ease,
        visibility 320ms ease;
}

.app-loader__image {
    display: block;

    width: min(62vw, 250px);
    height: auto;
}

.app-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ==========================================================
   SEGMENTED CONTROL
   ========================================================== */

.sc-day-switch {
    display: flex;
    justify-content: center;

    margin-bottom: 14px;
}

.sc-segmented {
    display: inline-flex;
    align-items: center;

    gap: 2px;

    padding: 4px;

    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-pill);

    background: var(--app-surface);

    box-shadow: var(--app-shadow-soft);
}

.sc-segmented__button {
    min-height: 38px;

    padding: 9px 17px;

    border-radius: var(--app-radius-pill);

    background: transparent;
    color: var(--app-primary);

    font-size: 13px;
    font-weight: var(--app-font-semibold);

    cursor: pointer;
}

.sc-segmented__button.is-active {
    background: var(--app-active);
    color: var(--app-active-text);
}

.sc-segmented__button:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 2px;
}


/* ==========================================================
   HERO
   ========================================================== */

.sc-hero {
    position: relative;

    isolation: isolate;
    overflow: hidden;

    min-height: 310px;

    border-radius: var(--app-radius-lg);

    /*
     * La photo sera injectée ultérieurement.
     * En son absence, le thème crée un fallback propre.
     */
    background:
        linear-gradient(
            180deg,
            color-mix(
                in srgb,
                var(--app-primary) 16%,
                var(--app-surface)
            ),
            var(--app-primary)
        );

    box-shadow: var(--app-shadow-card);
}

.sc-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.sc-hero__overlay {
    position: absolute;

    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.01) 20%,
            rgba(0, 0, 0, 0.05) 52%,
            rgba(0, 0, 0, 0.30) 100%
        );
}

.sc-hero__content {
    position: absolute;

    z-index: 2;

    left: 22px;
    right: 22px;
    bottom: 22px;

    color: #FFFFFF;
}

.sc-hero__eyebrow {
    margin-bottom: 8px;

    font-size: clamp(15px, 4vw, 18px);
    font-weight: 800;
    letter-spacing: 0.08em;

}

.sc-hero__title {
    max-width: 590px;

    margin-bottom: 10px;

    font-size: clamp(28px, 7vw, 38px);
    line-height: 0.98;

    font-weight: var(--app-font-extrabold);
}

.sc-home-time {
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
}
.sc-home-time__label { margin: 0 0 8px; font-size: 11px; line-height: 1.4; letter-spacing: .06em; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.sc-segmented--sliding { position: relative; isolation: isolate; }
.sc-segmented--sliding::before {
    content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0;
    width: var(--segment-width, 0px); transform: translateX(var(--segment-left, 4px));
    border-radius: inherit; background: var(--app-active);
    transition: transform 220ms ease, width 220ms ease; pointer-events: none;
}
.sc-segmented--sliding .sc-segmented__button.is-active { background: transparent; }
.sc-home-time__options { max-width: 100%; background: rgba(255,255,255,.82); box-shadow: none; }
.sc-home-time .sc-segmented__button {
    flex: 0 0 auto; min-width: 44px; min-height: 44px; height: auto;
    padding: 7px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 12px; line-height: 1.2; color: #12372c; background: transparent;
}
.sc-home-time .sc-segmented__button.is-active { background: transparent; color: #12372c; }
.sc-home-time .sc-segmented__button:focus-visible { outline: 2px solid #12372c; outline-offset: -3px; }
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .sc-home-time__options {
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}
@media (max-width: 480px) {
    .sc-home-time .sc-segmented__button { padding-inline: 3px; font-size: 11px; }
}
@media (max-width: 360px) {
    .sc-home-time .sc-segmented__button { font-size: 10px; }
}
@media (min-width: 1024px) {
    .sc-hero__content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,340px); column-gap: 16px; align-items: end; }
    .sc-hero__eyebrow, .sc-hero__title { grid-column: 1; }
    .sc-home-time { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-segmented--sliding::before { transition: none; }
}

.sc-hero__location {
    margin-bottom: 0;

    font-size: 13px;
    line-height: 1.4;

    font-weight: var(--app-font-medium);
}


/* ==========================================================
   WEATHER
   ========================================================== */

.sc-weather-card {
    display: block;

    margin-top: 12px;

    padding: 18px;

    border-radius: var(--app-radius-lg);

    background: var(--app-surface);

    box-shadow: var(--app-shadow-card);
}

.sc-weather-card__icon {
    flex: 0 0 56px;

    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sc-weather-icon {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.sc-weather-card__content {
    min-width: 0;
}

.sc-weather-card__date {
    margin-bottom: 4px;

    color: var(--app-text);

    font-size: 15px;

    font-weight: var(--app-font-semibold);
}

.sc-weather-card__summary {
    margin-bottom: 3px;

    color: var(--app-primary);

    font-size: 14px;

    font-weight: var(--app-font-semibold);
}

.sc-weather-card__tip {
    margin-bottom: 0;

    color: var(--app-text-soft);

    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================================
   FEATURE CARD
   ========================================================== */

.sc-feature-card {
    position: relative;

    isolation: isolate;
    overflow: hidden;

    min-height: 175px;

    border-radius: var(--app-radius-lg);

    background:
        linear-gradient(
            110deg,
            var(--app-primary) 0%,
            color-mix(
                in srgb,
                var(--app-primary) 76%,
                var(--app-surface)
            ) 100%
        );

    box-shadow: var(--app-shadow-card);
}

.sc-feature-card__content {
    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    min-height: 175px;
    max-width: 78%;

    padding: 22px;

    color: #FFFFFF;
}

.sc-feature-card__label {
    margin-bottom: 6px;

    font-size: 10px;

    font-weight: var(--app-font-bold);

    letter-spacing: 0.14em;
}

.sc-feature-card__title {
    margin-bottom: 8px;

    font-size: clamp(21px, 5vw, 30px);
    line-height: 1.04;

    font-weight: var(--app-font-bold);
}

.sc-feature-card__meta {
    margin-bottom: 0;

    font-size: 12px;
    line-height: 1.4;

    opacity: 0.88;
}


/* ==========================================================
   EXPLORER
   ========================================================== */

.sc-explore-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.sc-explore-card {
    position: relative;

    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    aspect-ratio: 1 / 1;

    border-radius: var(--app-radius-md);

    background:
        linear-gradient(
            180deg,
            color-mix(
                in srgb,
                var(--app-primary) 22%,
                var(--app-surface)
            ),
            var(--app-primary)
        );

    color: #FFFFFF;

    transition: transform 0.16s ease;
}

.sc-explore-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.68) 100%
        );
}
}

.sc-explore-card:active {
    transform: scale(0.98);
}

.sc-explore-card:focus-visible {
    outline: 3px solid var(--app-primary);
    outline-offset: 3px;
}

.sc-explore-card__content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 16px;
}

.sc-explore-card__label {
    margin-bottom: 4px;

    font-size: 10px;

    font-weight: var(--app-font-bold);

    letter-spacing: 0.12em;
}

.sc-explore-card__title {
    margin-bottom: 0;

    font-size: clamp(15px, 4vw, 22px);
    line-height: 1.05;

    font-weight: var(--app-font-bold);
}

.sc-explore-card[data-feature-link="hikes"] {
    background-image: url("../images/home/itineraires.webp");
    background-size: cover;
    background-position: center;
}

.sc-explore-card[data-feature-link="sites"] {
    background-image: url("../images/home/sites.webp");
    background-size: cover;
    background-position: center;
}

.sc-explore-card[data-feature-link="activities"] {
    background-image: url("../images/home/activites.webp");
    background-size: cover;
    background-position: center;
}

.sc-explore-card[data-feature-link="food"] {
    background-image: url("../images/home/boire-manger.webp");
    background-size: cover;
    background-position: center;
}


/* ==========================================================
   MA SÉLECTION
   ========================================================== */

.sc-selection-card {
    display: grid;

    gap: 18px;

    padding: 22px;

    border-radius: var(--app-radius-lg);

    background: var(--app-surface);
    color: var(--app-text);

    box-shadow: var(--app-shadow-card);
}

.sc-selection-card .sc-section__eyebrow {
    color: var(--app-primary);
}

.sc-selection-card__title {
    margin-bottom: 8px;

    color: var(--app-text);

    font-size: clamp(23px, 5vw, 30px);
    line-height: 1.06;

    font-weight: var(--app-font-bold);
}

.sc-selection-card__text {
    margin-bottom: 0;

    color: var(--app-text-soft);

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   PRIMARY ACTION
   ========================================================== */

.sc-primary-button {
    min-height: 46px;

    padding: 12px 18px;

    border-radius: var(--app-radius-pill);


    background: var(--app-action);
    color: var(--app-action-text);

    font-weight: var(--app-font-bold);

    cursor: pointer;
}

.sc-primary-button:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 3px;
}


/* ==========================================================
   BOTTOM NAV
   ========================================================== */

.sc-bottom-nav {
    position: fixed;

    z-index: 1000;

    left: 14px;
    right: 14px;

    bottom:
        calc(
            14px +
            env(safe-area-inset-bottom)
        );

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    align-items: center;

    max-width: 470px;

    margin: 0 auto;

    padding: 6px;

    border: 1px solid var(--app-border);
    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.94);

    box-shadow:
        0 10px 30px
        rgba(46, 58, 63, 0.14);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sc-bottom-nav__item {
    position: relative;
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    min-width: 0;
    min-height: 48px;

    padding: 5px 3px;

    border-radius: 22px;

    background: transparent;
    color: #59635f;

    cursor: pointer;
}

.sc-bottom-nav__item.is-active {
    color: var(--app-icon, var(--app-primary));
}

.sc-bottom-nav__icon {
    line-height: 1;
}

.sc-bottom-nav__icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sc-icon__fill {
    display: none;
}

.sc-bottom-nav__item.is-active .sc-icon__regular {
    display: none;
}

.sc-bottom-nav__item.is-active .sc-icon__fill {
    display: block;
}

.sc-bottom-nav__label {
    font-size: 11px;
    line-height: 1.15;

    font-weight: 700;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (min-width: 768px) {

    .sc-hero {
        min-height: 390px;
    }

    .sc-hero__content {
        left: 30px;
        right: 30px;
        bottom: 30px;
    }

    .sc-weather-card {
        padding: 22px;
    }

    .sc-explore-grid {
        gap: 16px;
    }

    .sc-explore-card {
        aspect-ratio: 1.2 / 1;
    }

    .sc-selection-card {
        grid-template-columns:
            1fr auto;

        align-items: center;

        padding: 28px;
    }
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 1200px) {

    .sc-home:not([hidden]) {
    	display: grid;

        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(340px, 0.65fr);

        gap: 30px 34px;

        align-items: start;
    }

    .sc-day-switch {
        grid-column: 1 / -1;

        justify-content: flex-start;

        margin-bottom: -8px;
    }

    .sc-hero {
        grid-column: 1;

        grid-row: 2 / span 2;

        min-height: 510px;
    }

    .sc-weather-card {
        grid-column: 2;

        margin-top: 0;
    }

    .sc-home > .sc-section {
        margin-top: 0;
    }

    .sc-explore-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .sc-explore-card {
        aspect-ratio: 1.18 / 1;
    }
}

/* ==========================================================
   SC PLATFORM — BOTTOM SHEET GÉNÉRIQUE / MENU
   ========================================================== */

.sc-sheet-backdrop {
    position: fixed;
    inset: 0;

    z-index: 2000;

    background: rgba(24, 28, 22, 0.34);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;

    transition:
        opacity 0.24s ease;

    cursor: pointer;
}

.sc-sheet-backdrop.is-open {
    opacity: 1;
}

.sc-sheet-backdrop[hidden] {
    display: none;
}


/* ==========================================================
   MENU SHEET
   ========================================================== */

.sc-menu-sheet {
    position: fixed;

    z-index: 2010;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    max-height: min(
        78vh,
        680px
    );

    padding:
        12px
        18px
        calc(
            24px +
            env(safe-area-inset-bottom)
        );

    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--app-surface);

    border-radius:
        28px
        28px
        0
        0;
    /* Clip the scrolling surface to the shared rounded sheet outline on iOS. */
    clip-path: inset(0 round 28px 28px 0 0);

    box-shadow:
        0 -12px 38px
        rgba(46, 58, 63, 0.16);

    transform: translateY(105%);

    transition:
        transform
        0.34s
        cubic-bezier(.22, 1, .36, 1);

    -webkit-overflow-scrolling: touch;
}

.sc-menu-sheet.is-open {
    transform: translateY(0);
}

.sc-bottom-nav__badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--app-favorite, #c6394d);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    pointer-events: none;
}

.sc-bottom-nav__badge[hidden] { display: none; }

.sc-weather-card__current {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sc-weather-card__context[hidden],
.sc-weather-card__vigilance[hidden] { display: none; }

.sc-weather-card__context { margin-top: 14px; }

.sc-weather-card__vigilance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--sc-vigilance-border);
    border-radius: 14px;
    background: var(--sc-vigilance-background);
    color: var(--sc-vigilance-text);
}

.sc-weather-card__vigilance[data-level="jaune"] {
    --sc-vigilance-background: #fff8df;
    --sc-vigilance-border: #e8d28d;
    --sc-vigilance-text: #654b0b;
}
.sc-weather-card__vigilance[data-level="orange"] {
    --sc-vigilance-background: #fff0df;
    --sc-vigilance-border: #e8b57e;
    --sc-vigilance-text: #713b16;
}
.sc-weather-card__vigilance[data-level="rouge"] {
    --sc-vigilance-background: #fce9e8;
    --sc-vigilance-border: #db9994;
    --sc-vigilance-text: #842b2b;
}
.sc-weather-card__vigilance-icon { display: inline-flex; flex: 0 0 20px; margin-top: 1px; }
.sc-weather-card__vigilance-icon .sc-icon { width: 20px; height: 20px; }
.sc-weather-card__vigilance-copy { display: grid; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.35; }
.sc-weather-card__vigilance-copy strong { font-size: 13px; }
.sc-weather-card__vigilance-copy [data-vigilance-phenomena] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.sc-weather-card__vigilance-copy [hidden] { display: none; }
.sc-weather-card__vigilance-copy [data-vigilance-note] { opacity: .8; }

.sc-sheet-backdrop.sc-transport-search-backdrop--over-itinerary { z-index: 2030; }
.sc-menu-sheet.sc-transport-search--over-itinerary { z-index: 2040; }

.sc-menu-sheet[hidden] {
    display: none;
}

.sc-location-sheet {
    position: fixed;
    z-index: 2020;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(82vh, 680px);
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--app-surface);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 38px rgba(46, 58, 63, 0.16);
    transform: translateY(105%);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
}

.sc-location-sheet.is-open { transform: translateY(0); }
.sc-location-sheet[hidden] { display: none; }
.sc-location-sheet__handle { display: block; width: 42px; height: 5px; margin: 0 auto 18px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--app-text) 18%, var(--app-surface)); }
.sc-location-sheet__header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.sc-location-sheet__eyebrow { margin: 0 0 6px; color: var(--app-primary); font-size: 10px; font-weight: var(--app-font-bold); letter-spacing: .14em; }
.sc-location-sheet__title { margin: 0; color: var(--app-text); font-size: clamp(20px, 5vw, 26px); line-height: 1.08; }
.sc-location-sheet__close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--app-border); border-radius: 50%; background: var(--app-surface); color: var(--app-text); font: inherit; font-size: 22px; cursor: pointer; }
.sc-location-sheet__intro { margin: 18px 0; color: var(--app-text-muted); line-height: 1.5; }
.sc-location-sheet__gps, .sc-location-sheet__place { display: flex; align-items: center; justify-content: center; gap: var(--app-space-2); width: 100%; min-height: 50px; border-radius: var(--app-radius-pill); font: inherit; font-weight: var(--app-font-bold); cursor: pointer; }
.sc-location-sheet__gps { border: 0; background: var(--app-action); color: var(--app-action-text); }
.sc-location-sheet__gps[aria-pressed="true"]::after, .sc-location-sheet__place[aria-pressed="true"]::after { content: "✓"; font-size: 1.05em; }
.sc-location-sheet__place[aria-pressed="true"] { border-color: var(--app-primary); color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 8%, var(--app-surface)); }
.sc-location-sheet__gps:disabled { opacity: .65; cursor: wait; }
.sc-location-sheet__separator { margin: 18px 0 12px; color: var(--app-text-muted); text-align: center; font-size: 13px; }
.sc-location-sheet__places { display: grid; gap: 10px; }
.sc-location-sheet__place { border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text); }
.sc-transport-stop-choice { display: grid; gap: var(--app-space-2); }
.sc-transport-stop-choice .sc-location-sheet__place { flex-direction: column; gap: 2px; padding: 9px 14px; line-height: 1.25; }
.sc-transport-stop-choice .sc-location-sheet__place small { color: var(--app-text-muted); font-size: .78rem; font-weight: var(--app-font-medium); }
.sc-transport-stop-choice__details { padding-inline: 10px; }
.sc-transport-stop-choice__details summary { color: var(--app-primary); cursor: pointer; font-size: .82rem; font-weight: var(--app-font-bold); text-align: center; }
.sc-transport-stop-choice__members { display: grid; gap: var(--app-space-2); margin-top: var(--app-space-2); }
.sc-location-sheet__status { margin: 14px 0 0; color: var(--app-text); line-height: 1.4; }
.sc-location-sheet__gps:focus-visible, .sc-location-sheet__place:focus-visible, .sc-location-sheet__close:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }


/* ==========================================================
   POIGNÉE
   ========================================================== */

.sc-menu-sheet__handle {
    width: 42px;
    height: 5px;

    margin:
        0
        auto
        18px;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--app-text) 18%,
            var(--app-surface)
        );
}


/* ==========================================================
   HEADER
   ========================================================== */

.sc-menu-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 20px;
}

.sc-menu-sheet__eyebrow {
    margin:
        0
        0
        6px;

    color: var(--app-primary);

    font-size: 10px;
    line-height: 1.2;

    font-weight: var(--app-font-bold);

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sc-menu-sheet__title {
    margin: 0;

    color: var(--app-text);

    font-size: clamp(
        20px,
        5vw,
        26px
    );

    line-height: 1.05;

    font-weight: var(--app-font-bold);
}


/* ==========================================================
   BOUTON FERMER
   ========================================================== */

.sc-menu-sheet__close {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 1px solid var(--app-border);
    border-radius: 50%;

    background: var(--app-surface);

    color: var(--app-text);

    font: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}

.sc-menu-sheet__close span {
    display: block;

    transform: translateY(-1px);
}

.sc-menu-sheet__close:active {
    transform: scale(.94);
}

.sc-menu-sheet__close:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 2px;
}


/* ==========================================================
   LISTE DU MENU
   ========================================================== */

.sc-menu-sheet__list {
    display: grid;

    gap: 8px;
}


/* ==========================================================
   LIGNE
   ========================================================== */

.sc-menu-sheet__item {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 13px;

    min-height: 68px;

    padding:
        11px
        13px;

    border:
        1px solid
        var(--app-border);

    border-radius:
        var(--app-radius-md);

    background:
        var(--app-background);

    color:
        var(--app-text);

    text-decoration: none;

    transition:
        transform .16s ease,
        background-color .16s ease,
        border-color .16s ease;
}

.sc-services-sheet .sc-menu-sheet__list { grid-template-columns: minmax(0, 1fr); }
.sc-manuals-sheet__group { display: grid; gap: 8px; }
.sc-manuals-sheet__row { width: 100%; font: inherit; text-align: left; cursor: pointer; }
/* Manuals are a child of Services in property mode; keep its backdrop above the parent. */
[data-manuals-backdrop] { z-index: 2020; }
.sc-manuals-sheet { z-index: 2030; }
.sc-manuals-sheet__back { min-height: 44px; border: 0; background: transparent; color: var(--app-primary); font: inherit; font-weight: 700; cursor: pointer; }
.sc-manuals-sheet__header, .sc-manuals-sheet__device-heading { display: flex; align-items: center; gap: 12px; }
.sc-manuals-sheet__device-heading { margin: 8px 0 20px; }
.sc-manuals-sheet__device-heading h3, .sc-manuals-sheet__device-heading p { margin: 0 0 4px; }
.sc-manuals-sheet__device-heading small { color: var(--app-text-soft); }
.sc-manuals-sheet__section { margin: 20px 0; }
.sc-manuals-sheet__section h4 { margin: 0 0 9px; font-size: 1rem; }
.sc-manuals-sheet__accordion { border-bottom: 1px solid var(--app-border); }
.sc-manuals-sheet__question { width: 100%; min-height: 48px; padding: 10px 4px; border: 0; background: transparent; color: var(--app-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.sc-manuals-sheet__question::after { content: "⌄"; float: right; margin-left: 8px; color: var(--app-primary); }
.sc-manuals-sheet__question[aria-expanded="true"]::after { transform: rotate(180deg); }
.sc-manuals-sheet__answer { font-style: italic; padding: 0 4px 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sc-manuals-sheet__answer[hidden] { display: none; }
.sc-manuals-sheet__answer p { margin: 8px 0; }
.sc-manuals-sheet__answer-list { margin: 8px 0; padding-left: 22px; }
.sc-manuals-sheet__answer-list li { margin: 5px 0; }
.sc-manuals-sheet__note, .sc-manuals-sheet__disclaimer { padding: 12px; border-radius: var(--app-radius-md); background: color-mix(in srgb, var(--app-primary) 7%, var(--app-surface)); }
.sc-manuals-sheet__disclaimer { margin-top: 20px; font-size: .84rem; line-height: 1.5; }
.sc-manuals-sheet__disclaimer h3, .sc-manuals-sheet__disclaimer p { margin: 0 0 5px; }
.sc-manuals-sheet__empty { line-height: 1.5; }
.sc-manuals-sheet__back:focus-visible, .sc-manuals-sheet__question:focus-visible, .sc-manuals-sheet__row:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
.sc-services-sheet .sc-menu-sheet__item-icon { border-radius: 50%; }
.sc-services-sheet__section { margin: 12px 0 4px; font: inherit; font-weight: 700; }
.sc-emergency { display: grid; gap: 18px; }
.sc-emergency__section { display: grid; gap: 6px; min-width: 0; }
.sc-emergency__heading { margin: 0 0 2px; color: var(--app-primary); font-size: 12px; letter-spacing: .08em; }
.sc-emergency__section--immediate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-emergency__section--immediate > .sc-emergency__accessible { grid-column: 1 / -1; }
.sc-emergency__contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-background); color: var(--app-text); text-decoration: none; }
.sc-emergency__detail { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.sc-emergency__detail strong { font-size: 14px; }
.sc-emergency__detail small,.sc-emergency__accessible p { font-size: 13px; line-height: 1.5; }
.sc-emergency__number { flex-shrink: 0; font-size: 16px; font-weight: 800; white-space: nowrap; }
.sc-emergency__section--immediate > a { flex-direction: column-reverse; justify-content: center; gap: 2px; text-align: center; }
.sc-emergency__section--immediate > a .sc-emergency__number { font-size: 24px; }
.sc-emergency__section--immediate > a.sc-emergency__contact--europe { grid-column: 1 / -1; flex-direction: row-reverse; gap: 12px; }
@media (max-width: 480px) {
    .sc-emergency__section--immediate > a:not(.sc-emergency__contact--europe) { padding-inline: 4px; }
    .sc-emergency__section--immediate > a:not(.sc-emergency__contact--europe) .sc-emergency__detail { overflow-wrap: normal; }
    .sc-emergency__section--immediate > a:not(.sc-emergency__contact--europe) strong { font-size: 12px; }
}
.sc-emergency__accessible { display: grid; gap: 0; padding: 6px 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); }
.sc-emergency__accessible-title { display: flex; align-items: center; gap: 8px; }
.sc-emergency__logo { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.sc-emergency__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; }
.sc-emergency__accessible p { margin: 4px 0; }
.sc-emergency__action { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--app-border); border-radius: var(--app-radius-pill); background: var(--app-background); color: var(--app-primary); font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.sc-emergency__action svg { flex: 0 0 18px; width: 18px; height: 18px; }
.sc-emergency__pharmacy { display: grid; min-width: 0; padding: 0 12px 8px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-background); }
.sc-emergency__pharmacy > .sc-emergency__contact { margin-inline: -12px; border: 0; background: transparent; }
.sc-emergency__pharmacy > .sc-emergency__action { justify-self: start; }
.sc-emergency__directory-note { margin: 0 0 2px; font-size: 13px; line-height: 1.5; }
.sc-emergency__directory-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); background: var(--app-background); color: var(--app-text); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.sc-emergency__directory-summary::-webkit-details-marker { display: none; }
.sc-emergency__directory-summary svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--app-primary); }
.sc-emergency__directory-group[open] > summary svg { transform: rotate(90deg); }
.sc-emergency__directory-list { display: grid; gap: 6px; padding-block: 6px; }
.sc-emergency__directory-list[hidden] { display: none; }
.sc-emergency__header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.sc-emergency__header .sc-menu-sheet__title { text-align: center; }
.sc-emergency__header > button { width: 44px; height: 44px; min-height: 44px; }
.sc-emergency__back { display: inline-flex; align-items: center; justify-content: center; width: 44px; border: 0; background: transparent; color: var(--app-primary); cursor: pointer; font: inherit; font-size: 28px; }
.sc-emergency__back[hidden] { display: none; }
.sc-emergency a:focus-visible,.sc-emergency__back:focus-visible,.sc-emergency__directory-summary:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
@media (max-width: 360px) {
    .sc-emergency__contact { flex-wrap: wrap; }
}
.sc-services-sheet__handle {
    display: block;
    width: 64px;
    height: 32px;
    margin: -8px auto 10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}
.sc-services-sheet__handle::after {
    content: "";
    display: block;
    width: 42px;
    height: 5px;
    margin: auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-text) 18%, var(--app-surface));
}
.sc-services-sheet__handle:focus-visible { outline: 2px solid var(--app-text); outline-offset: 2px; }
.sc-filter-sheet { max-height: min(72vh, 560px); }
.sc-filter-sheet__header { margin-bottom: 14px; }
.sc-filter-sheet__form,
.sc-filter-sheet__groups { display: grid; gap: 14px; }
.sc-filter-sheet__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.sc-filter-sheet__group-label {
    margin-bottom: 9px;
    color: var(--app-text-muted, var(--app-text));
    font-size: 11px;
    font-weight: var(--app-font-bold);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sc-filter-sheet__options { display: grid; gap: 7px; }
.sc-filter-sheet__options--chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-filter-sheet__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-pill);
    background: var(--app-surface);
    color: var(--app-text);
    font: inherit;
    font-size: 13px;
    font-weight: var(--app-font-semibold);
    text-align: left;
    cursor: pointer;
}
.sc-filter-sheet__options--chips .sc-filter-sheet__option { display: inline-flex; flex: 0 0 auto; }
.sc-filter-sheet__option.is-selected {
    border-color: var(--app-active, var(--app-primary));
    background: var(--app-active, var(--app-primary));
    color: var(--app-active-text, #fff);
    box-shadow: var(--app-shadow-soft);
}
.sc-filter-sheet__option.is-disabled { opacity: .55; cursor: not-allowed; }
.sc-filter-sheet__count { color: currentColor; font-size: 12px; opacity: .72; }
.sc-filter-sheet__actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
.sc-filter-sheet__apply,
.sc-filter-sheet__reset {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: var(--app-radius-pill);
    font: inherit;
    font-weight: var(--app-font-bold);
    cursor: pointer;
}
.sc-filter-sheet__apply { border: 0; background: var(--app-action); color: var(--app-action-text); }
.sc-filter-sheet__reset { border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text); }
.sc-filter-sheet__option:focus-visible,
.sc-filter-sheet__apply:focus-visible,
.sc-filter-sheet__reset:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
.sc-services-sheet [aria-disabled="true"] { cursor: default; transform: none; }
.sc-transport-search__form { display: grid; gap: 10px; }
.sc-transport-search__modes { margin: 0; max-width: 100%; }
.sc-transport-search__modes .sc-sites-segmented__button { flex: 1 1 0; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: .9rem; }
.sc-transport-search__return { display: grid; gap: 10px; min-width: 0; margin: 4px 0 0; padding: 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); }
.sc-transport-search__return[hidden], .sc-transport-search__return [hidden] { display: none; }
.sc-transport-search__return legend { padding: 0 4px; font-weight: 700; }
.sc-transport-search__optional { color: var(--app-text-muted, var(--app-text)); font-weight: 400; }
.sc-transport-search__result-group { display: grid; gap: 12px; min-width: 0; }
.sc-transport-search__result-label { margin: 0; color: var(--app-text); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sc-transport-search__form [type="submit"] {
    margin-bottom: 18px;
}
.sc-transport-search__form input,
.sc-transport-search__form select {
    width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--app-border); border-radius: var(--app-radius-md);
    background: var(--app-background); color: var(--app-text); font: inherit;
}
.sc-transport-search__form input:focus-visible,
.sc-transport-search__form select:focus-visible { outline: 2px solid var(--app-text); outline-offset: 2px; }
.sc-transport-search__suggestions { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sc-transport-search__suggestions button { width: 100%; text-align: left; }
.sc-transport-search__suggestions button span,
.sc-transport-search__suggestions button small { display: block; }
.sc-transport-search__suggestions button small { margin-top: 2px; color: var(--app-text-muted, var(--app-text)); font-size: .8125rem; }
.sc-transport-search__precise-action { justify-self: start; border: 0; padding: 4px 0; background: transparent; color: var(--app-text); font: inherit; text-decoration: underline; cursor: pointer; }
.sc-transport-search__hint { font-size: .875rem; margin: 0; color: var(--app-text-muted, var(--app-text)); }
.sc-transport-search [data-journey-modes] { display: grid; gap: 12px; margin-top: 18px; }
.sc-transport-alerts { display: grid; gap: 8px; margin-top: 12px; }
.sc-transport-alerts:empty { display: none; }
.sc-transport-alert { padding: 12px 14px; border: 1px solid var(--app-border); border-left: 4px solid var(--app-tertiary, #d95d39); border-radius: var(--app-radius-md); background: var(--app-surface, #fff); }
.sc-transport-alert--critical { border-left-color: #a32724; }
.sc-transport-alert h3 { margin: 0 0 4px; font-size: 1rem; }
.sc-transport-alert p { margin: 0; overflow-wrap: anywhere; font-size: .88rem; }
.sc-transport-alert button { min-height: 44px; margin-top: 3px; padding: 0; border: 0; background: transparent; color: var(--app-primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sc-transport-alerts__degraded { margin: 0; padding: 10px 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-md); font-size: .88rem; }
.sc-transport-alert-detail__backdrop { z-index: 2050; }
.sc-transport-alert-detail { z-index: 2060; }
.sc-transport-alert-detail__content { padding: 16px 20px 32px; overflow-wrap: anywhere; }
.sc-transport-alert-detail__content h2 { margin: 0 0 14px; font-size: 1.2rem; }
.sc-transport-alert-detail__content p { margin: 0 0 10px; }
.sc-transport-alert-detail__message { white-space: pre-line; }
.sc-transport-alert-detail__content a { display: inline-block; min-height: 44px; padding-block: 10px; }
.sc-transport-alert button:focus-visible,.sc-transport-alert-detail__content a:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
.sc-journey-sheet__return-action { min-height: 44px; margin-top: 10px; padding: 8px 16px; border: 0; border-radius: var(--app-radius-pill); background: var(--app-action); color: var(--app-action-text); font: inherit; font-weight: var(--app-font-bold); cursor: pointer; }
.sc-journey-sheet__return-action:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
@media (min-width: 768px) {
    /* Keep horizontal centering independent of the controller's vertical drag. */
    .sc-menu-sheet.sc-services-sheet {
        left: 0;
        right: 0;
        margin-inline: auto;
        transform: translateY(calc(100% + 48px));
    }
    .sc-menu-sheet.sc-services-sheet.is-open { transform: translateY(0); }
}

.sc-menu-sheet__item:active {
    transform: scale(.985);
}

@media (hover: hover) {

    .sc-menu-sheet__item:hover {
        background:
            color-mix(
                in srgb,
                var(--app-primary) 7%,
                var(--app-surface)
            );

        border-color:
            color-mix(
                in srgb,
                var(--app-primary) 24%,
                var(--app-border)
            );
    }
}

.sc-menu-sheet__item:focus-visible {
    outline:
        3px solid
        var(--app-focus-ring);

    outline-offset: 2px;
}


/* ==========================================================
   ICÔNE
   ========================================================== */

.sc-menu-sheet__item-icon {
    display: grid;

    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: transparent;
        
    color:
        var(--app-primary);

    font-size: 20px;
    line-height: 1;
}

[data-services-sheet] .sc-menu-sheet__item-icon {
    background: transparent;
}

[data-services-sheet] .sc-menu-sheet__item-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.sc-menu-sheet__item-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}


/* ==========================================================
   TEXTE
   ========================================================== */

.sc-menu-sheet__item-content {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.sc-menu-sheet__item-title {
    color:
        var(--app-text);

    font-size: 14px;
    line-height: 1.25;

    font-weight:
        var(--app-font-semibold);
}

.sc-menu-sheet__item-description {
    margin-top: 3px;

    color:
        var(--app-text-soft);

    font-size: 11px;
    line-height: 1.35;
}


/* ==========================================================
   FLÈCHE
   ========================================================== */

.sc-menu-sheet__item-arrow {
    color:
        var(--app-primary);

    font-size: 24px;
    line-height: 1;

    opacity: .65;
}


/* ==========================================================
   PAGE BLOQUÉE QUAND UNE SHEET EST OUVERTE
   ========================================================== */

body.sc-sheet-open {
    overflow: hidden;
}

/* ==========================================================
   APP SHEET — BASE
   ========================================================== */

.sc-app-sheet {
    position: fixed;

    z-index: 2020;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 92vh;
    max-height: 92vh;

    overflow: hidden;

    border-radius:
        30px
        30px
        0
        0;

    background:
        var(--app-surface);

    box-shadow:
        0 -12px 42px
        rgba(46, 58, 63, .18);

    transform:
        translateY(105%);

    transition:
        transform
        .42s
        cubic-bezier(.22,1,.36,1);
}


.sc-app-sheet.is-open {
    transform:
        translateY(0);
}


.sc-app-sheet[hidden] {
    display: none;
}


/* ==========================================================
   HERO
   ========================================================== */

.sc-app-sheet__hero {
    position: relative;

    flex: 0 0 auto;

    height: 240px;

    overflow: hidden;

    background:
        color-mix(
            in srgb,
            var(--app-primary) 18%,
            var(--app-surface)
        );

    touch-action: pan-x;
}


.sc-app-sheet__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 160ms ease;
}

.sc-app-sheet__image.is-changing { opacity: .35; }


.sc-app-sheet__image[hidden] {
    display: none;
}

.sc-app-sheet__gallery-pagination {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 18px;
    padding: 5px 12px 3px;
    background: var(--app-surface);
}

.sc-app-sheet__gallery-pagination[hidden] { display: none; }

.sc-app-sheet__gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--app-border);
    cursor: pointer;
}

.sc-app-sheet__gallery-dot[aria-current="true"] {
    background: var(--app-primary);
}

.sc-app-sheet__gallery-dot:focus-visible {
    outline: 2px solid var(--app-focus-ring);
    outline-offset: 3px;
}

.sc-app-sheet__hero[data-app-sheet-gallery="true"] {
    touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
    .sc-app-sheet__image { transition: none; }
}


.sc-app-sheet__image-fallback {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            145deg,
            color-mix(
                in srgb,
                var(--app-primary) 14%,
                var(--app-surface)
            ),
            color-mix(
                in srgb,
                var(--app-primary) 34%,
                var(--app-surface)
            )
        );
}


.sc-app-sheet__image-fallback[hidden] {
    display: none;
}

.sc-app-sheet__copyright {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 4px 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .56);
    color: #fff;
    font-size: 10px;
    line-height: 1.25;
    cursor: pointer;
    font-family: inherit;
}

.sc-app-sheet__copyright-label {
    display: inline-block;
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    vertical-align: bottom;
    transition: max-width 180ms ease, margin-left 180ms ease, opacity 180ms ease;
}

.sc-app-sheet__copyright:hover .sc-app-sheet__copyright-label,
.sc-app-sheet__copyright:focus .sc-app-sheet__copyright-label,
.sc-app-sheet__copyright.is-expanded .sc-app-sheet__copyright-label {
    max-width: min(70vw, 420px);
    margin-left: 4px;
    opacity: 1;
}

.sc-app-sheet__copyright:focus-visible {
    outline: 2px solid var(--app-surface);
    outline-offset: 2px;
}

.sc-app-sheet__copyright[hidden] { display: none; }


/* ==========================================================
   POIGNÉE
   ========================================================== */

.sc-app-sheet__handle {
    position: absolute;

    z-index: 4;

    top: 12px;
    left: 50%;

    width: 50px;
    height: 5px;

    transform:
        translateX(-50%);

    border-radius:
        var(--app-radius-pill);

    background:
        rgba(255,255,255,.88);

    box-shadow:
        0 1px 5px
        rgba(0,0,0,.10);

    cursor: grab;
}

.sc-app-sheet__handle {
    border: 0;
    cursor: grab;
}

.sc-app-sheet__handle:focus-visible {
    outline: 3px solid var(--app-primary, #2f6758);
    outline-offset: 3px;
}


/* ==========================================================
   FAVORI — COMPOSANT CANONIQUE
   ========================================================== */

.sc-favorite {
    appearance: none;
    -webkit-appearance: none;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        var(
            --app-favorite-surface,
            rgba(255,255,255,.94)
        );

    color:
        var(
            --app-favorite,
            var(--app-primary)
        );

    box-shadow:
        0 4px 14px
        rgba(0,0,0,.10);

    cursor: pointer;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    transition:
        transform .16s ease,
        background-color .16s ease;
}


/* ==========================================================
   ICÔNE
   ========================================================== */

.sc-favorite svg {
    display: block;

    width: 21px;
    height: 21px;

    fill: currentColor;

    transition:
        fill .18s ease,
        stroke .18s ease,
        transform .18s ease;
}


/* ==========================================================
   ÉTAT ACTIF
   ========================================================== */

.sc-favorite.is-active svg,
.sc-favorite[aria-pressed="true"] svg {
    fill: currentColor;
}

.sc-favorite .sc-icon__fill,
.sc-favorite.is-active .sc-icon__regular,
.sc-favorite[aria-pressed="true"] .sc-icon__regular {
    display: none;
}

.sc-favorite.is-active .sc-icon__fill,
.sc-favorite[aria-pressed="true"] .sc-icon__fill {
    display: block;
}


/* ==========================================================
   FAVORI — CARTE LISTE
   ========================================================== */

.sc-tourism-card__media {
    position: relative;
}

.sc-favorite--card {
    position: absolute;

    z-index: 10;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;
}


/* ==========================================================
   FAVORI — APP SHEET / FICHE OUVERTE
   ========================================================== */

.sc-favorite--media {
    position: static;
}

.sc-app-sheet__hero-actions {
    position: absolute;
    z-index: 10;
    top: 16px;
    right: 14px;
    display: flex;
    gap: 7px;
}

.sc-app-sheet__hero-action {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    background: var(--app-favorite-surface, var(--app-surface));
    color: var(--app-favorite, var(--app-primary));
    box-shadow: var(--app-shadow-soft);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sc-app-sheet__hero-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sc-app-sheet__hero-action:active {
    transform: scale(.92);
}

.sc-app-sheet__hero-action:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 2px;
}


/* ==========================================================
   INTERACTIONS
   ========================================================== */

.sc-favorite:active {
    transform:
        scale(.92);
}

.sc-favorite:focus-visible {
    outline:
        3px solid
        var(--app-focus-ring);

    outline-offset: 2px;
}
/* ==========================================================
   CORPS SCROLLABLE
   ========================================================== */

.sc-app-sheet__scroll {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    scroll-padding-top: 48px;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}


.sc-app-sheet__content {
    padding:
        28px
        22px
        calc(
            28px +
            env(safe-area-inset-bottom)
        );
}


/* ==========================================================
   TYPOGRAPHIE
   ========================================================== */

.sc-app-sheet__eyebrow {
    margin:
        0
        0
        9px;

    color:
        var(--app-primary);

    font-size: 10px;
    line-height: 1.2;

    font-weight:
        var(--app-font-bold);

    letter-spacing: .14em;
    text-transform: uppercase;
}


.sc-app-sheet__title {
    margin:
        0
        0
        12px;

    color:
        var(--app-text);

    font-size:
        clamp(
            24px,
            6vw,
            32px
        );

    line-height: 1.08;

    font-weight:
        var(--app-font-bold);
}


.sc-app-sheet__meta {
    min-width: 0;
    margin: 0;

    color:
        var(--app-primary);

    font-size: 12px;

    font-weight:
        var(--app-font-semibold);
}


.sc-app-sheet__description {
    margin: 0;

    color:
        var(--app-text-soft);

    font-size: 14px;
    line-height: 1.65;
}

.sc-app-sheet__description--detail {
    margin-top: 18px;
}

.sc-app-sheet__sanitary-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 2px solid #a92828;
    border-radius: var(--app-radius-md, 16px);
    background: #fff0f0;
    color: #781919;
}

.sc-app-sheet__sanitary-alert-title,
.sc-app-sheet__sanitary-alert-detail,
.sc-app-sheet__sanitary-stale,
.sc-app-sheet__sanitary-label,
.sc-app-sheet__sanitary-value { margin: 0; }

.sc-app-sheet__sanitary-alert-title,
.sc-app-sheet__sanitary-value { font-weight: 800; }

.sc-app-sheet__sanitary-alert-detail,
.sc-app-sheet__sanitary-stale { margin-top: 5px; }

.sc-app-sheet__sanitary-stale { font-size: .78rem; }

.sc-app-sheet__sanitary-control {
    display: grid;
    gap: 4px;
    margin: 0 0 20px;
    padding: 15px 16px;
    border-radius: var(--app-radius-md, 16px);
    background: var(--app-primary-soft, rgba(47, 103, 88, .1));
}

.sc-app-sheet__sanitary-label { color: var(--app-text-muted, #66726e); font-size: .78rem; }
.sc-app-sheet__sanitary-value + .sc-app-sheet__sanitary-label { margin-top: 8px; }
.sc-app-sheet__sanitary-source { margin-top: 10px; color: var(--app-primary, #2f6758); font-size: .8rem; font-weight: 700; }

.sc-app-sheet__tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 -4px;
    padding-top: 5px;
    background: var(--app-surface, #fff);
    border-bottom: 1px solid var(--app-border, rgba(34, 51, 45, .14));
}

.sc-app-sheet__tab {
    min-width: 0;
    padding: 12px 3px 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--app-text-muted, #66726e);
    font: inherit;
    font-size: clamp(.72rem, 3.3vw, .86rem);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.sc-app-sheet__back {
    min-height: 44px;
    margin: -12px 0 4px -10px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--app-radius-sm);
    background: transparent;
    color: var(--app-primary);
    font: inherit;
    font-weight: var(--app-font-bold);
    cursor: pointer;
}

.sc-app-sheet__back:hover { background: var(--app-surface-soft); }
.sc-app-sheet__back:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
.sc-app-sheet__back[hidden] { display: none; }

.sc-app-sheet__tab.is-active {
    border-bottom-color: var(--app-primary, #2f6758);
    color: var(--app-primary, #2f6758);
}

.sc-app-sheet__tab:focus-visible,
.sc-app-sheet__more:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 2px;
}

.sc-app-sheet__panel {
    padding: 22px 2px 10px;
    scroll-margin-top: 48px;
}

.sc-app-sheet__panel[hidden] {
    display: none;
}

.sc-app-sheet__expandable-copy {
    display: contents;
}

.sc-app-sheet__expandable-copy .sc-app-sheet__description + .sc-app-sheet__description::before {
    content: "";
    display: block;
    height: .8em;
}

.sc-app-sheet__expandable-text .sc-app-sheet__description.is-last {
    display: inline;
}

.sc-app-sheet__more {
    display: inline-flex;
    margin: 0 0 0 .35em;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--app-primary, #2f6758);
    font-family: inherit;
    font-size: .75rem;
    font-weight: var(--app-font-medium);
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sc-app-sheet__more:hover {
    color: var(--app-action-icon, var(--app-primary));
    text-decoration: none;
}

.sc-app-sheet__directions-link {
    display: inline-flex;
    margin-top: 10px;
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    background: var(--app-primary-soft, rgba(47, 103, 88, .1));
    color: var(--app-primary, #2f6758);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
}

.sc-app-sheet__status {
    margin: 0 0 14px;
    color: var(--app-primary, #2f6758);
    font-weight: 800;
}

.sc-app-sheet__immediate {
    margin: 10px 0 0;
    color: var(--app-temporal-status, var(--app-primary));
    font-weight: 800;
}

.sc-app-sheet__panel-title {
    margin: 0 0 18px;
    font-size: .98rem;
}

.sc-app-sheet__info-section {
    margin-top: 22px;
}

.sc-app-sheet__info-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: .9rem;
}

.sc-app-sheet__practical-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 9px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--app-border);
}

.sc-app-sheet__practical-actions[hidden] {
    display: none;
}

.sc-app-sheet__practical-action {
    min-width: 0;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 7px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md, 16px);
    background: var(--app-surface);
    color: var(--app-action-icon, var(--app-primary));
    font: inherit;
    font-size: clamp(.75rem, 3.2vw, .78rem);
    font-weight: var(--app-font-semibold);
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.sc-app-sheet__practical-action .sc-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.sc-app-sheet__practical-action:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 2px;
}

.sc-app-sheet__info-heading .sc-icon,
.sc-app-sheet__info-row .sc-icon,
.sc-app-sheet__info-link .sc-icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--app-action-icon, var(--app-primary, #2f6758));
}

.sc-app-sheet__info-row,
.sc-app-sheet__info-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    color: var(--app-text, #26332f);
    line-height: 1.45;
    text-decoration: none;
}

.sc-app-sheet__info-link {
    color: var(--app-primary, #2f6758);
    font-weight: 700;
}

.sc-app-sheet__detail,
.sc-app-sheet__hours-row,
.sc-app-sheet__empty {
    margin: 0 0 10px;
    color: var(--app-text, #26332f);
    line-height: 1.5;
}

.sc-app-sheet__empty {
    color: var(--app-text-muted, #66726e);
}

.sc-app-sheet__hero-action[hidden] { display: none; }

.sc-marks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    min-width: 0;
}

.sc-marks__item {
    min-width: 0;
    max-width: 100%;
}

.sc-marks__item--logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
}

.sc-marks__epis { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--app-text, #26332f); }
.sc-marks__epis .sc-icon { flex: none; }

.sc-accommodation-detail__section { margin-top: 22px; }
.sc-accommodation-detail__stars { display: inline-flex; align-items: center; gap: 2px; margin-left: .25em; white-space: nowrap; vertical-align: baseline; color: #aa761c; }
.sc-accommodation-detail__stars .sc-icon { width: .52em; height: .52em; flex: none; }
.sc-accommodation-detail__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-accommodation-detail__fact { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; padding: 8px 11px; border-radius: var(--app-radius-sm, 8px); background: var(--app-surface-subtle, #f4f5f2); line-height: 1.35; }
.sc-accommodation-detail__fact .sc-icon { flex: none; width: 19px; height: 19px; }
.sc-accommodation-detail__equipment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 7px 20px; margin: 0; padding-left: 20px; }
.sc-accommodation-detail__equipment li { overflow-wrap: anywhere; }

.sc-marks__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(150px, 100%);
    max-height: 52px;
    object-fit: contain;
}

.sc-marks__item--text {
    padding: 5px 9px;
    border-radius: var(--app-radius-sm, 8px);
    background: var(--app-surface-subtle, #f4f5f2);
    color: var(--app-text, #26332f);
    font-size: .84rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.sc-activity-sheet__opening-days + .sc-activity-sheet__opening-days { margin-top: 12px; }

/* ==========================================================
   TABLETTE
   ========================================================== */

@media (min-width: 768px) {

    .sc-menu-sheet {
        left: 50%;
        right: auto;

        width:
            min(
                560px,
                calc(100vw - 48px)
            );

        bottom: 24px;

        padding:
            16px
            22px
            24px;

        border-radius:
            28px;
        clip-path: inset(0 round 28px);

        transform:
            translate(
                -50%,
                calc(100% + 48px)
            );
    }

    .sc-menu-sheet.is-open {
        transform:
            translate(
                -50%,
                0
            );
    }

    .sc-menu-sheet__handle {
        display: none;
    }
}

@media (min-width: 768px) {

    .sc-app-sheet {
        left: 50%;
        right: auto;

        width:
            min(
                680px,
                calc(100vw - 48px)
            );

        bottom: 24px;

        border-radius:
            30px;

        transform:
            translate(
                -50%,
                calc(100% + 48px)
            );
    }


    .sc-app-sheet.is-open {
        transform:
            translate(
                -50%,
                0
            );
    }
}

/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 1200px) {

    .sc-menu-sheet {
        width: 600px;

        max-height: min(
            76vh,
            720px
        );
    }

    .sc-menu-sheet__list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 10px;
    }

    .sc-menu-sheet__item {
        min-height: 82px;
    }
}

/* Contenu accessible aux lecteurs d'écran uniquement */
.sc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sc-app-sheet__context-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    margin-bottom: 16px;
}
.sc-app-sheet__weather {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    min-height: 26px;
    white-space: nowrap;
    color: var(--app-primary);
}

.sc-app-sheet__weather[hidden] {
    display: none;
}

.sc-app-sheet__weather-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}

.sc-app-sheet__weather-condition {
    max-width: 7.5rem;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: normal;
}

.sc-app-sheet__weather-temperature {
    font-size: 0.94rem;
    font-weight: var(--app-font-bold);
    line-height: 1;
}

.sc-journey-sheet {
    z-index: 2040;
    max-height: min(72vh, 620px);
}

.sc-journey-sheet__backdrop { z-index: 2030; }

.sc-journey-sheet__content {
    overflow-y: auto;
    padding: 34px 20px calc(20px + env(safe-area-inset-bottom));
}

.sc-journey-sheet__route {
    margin: 8px 0 14px;
    color: var(--app-text-muted);
}

.sc-journey-sheet__route p,
.sc-journey-sheet__status,
.sc-journey-sheet__mode p { margin: 0; }

.sc-journey-sheet__route p + p { margin-top: 3px; }

.sc-journey-sheet__status {
    padding: 10px 0;
    color: var(--app-text-muted);
}

.sc-journey-sheet__modes { border-top: 1px solid var(--app-border); }

.sc-journey-sheet__mode {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--app-border);
}

.sc-journey-sheet__mode-icon { color: var(--app-primary); }
.sc-journey-sheet__mode-icon svg { width: 24px; height: 24px; }
.sc-journey-sheet__mode h3 { margin: 0 0 2px; font-size: 1rem; }
.sc-journey-sheet__mode-detail { color: var(--app-text-muted); font-size: .88rem; }
.sc-journey-sheet__mode-delay { color: var(--app-tertiary, #d95d39); font-size: .92rem; font-weight: var(--app-font-bold); }
.sc-journey-sheet__mode-scheduled { color: var(--app-text-muted); font-size: .82rem; }
.sc-journey-sheet__details { grid-column: 2; font-size: .88rem; }
.sc-journey-sheet__details summary { cursor: pointer; color: var(--app-primary); }
.sc-journey-sheet__details ol { margin: 8px 0 0; padding-left: 18px; }

.sc-journey-sheet__absence {
    padding: 14px 0;
    border-bottom: 1px solid var(--app-border);
}

.sc-journey-sheet__absence h3,
.sc-journey-sheet__absence p { margin: 0; }
.sc-journey-sheet__absence h3 { color: var(--app-primary); font-size: 1rem; }
.sc-journey-sheet__absence p + p { margin-top: 4px; }
.sc-journey-sheet__absence-summary { font-weight: var(--app-font-bold); }
.sc-journey-sheet__absence-detail { color: var(--app-text-muted); font-size: .86rem; }

.sc-journey-sheet__return {
    padding: 14px 0;
    border-bottom: 1px solid var(--app-border);
}
.sc-journey-sheet__return h3,
.sc-journey-sheet__return p { margin: 0; }
.sc-journey-sheet__return h3 { color: var(--app-primary); font-size: 1rem; }
.sc-journey-sheet__return p + p { margin-top: 4px; }
.sc-journey-sheet__return-duration { font-weight: var(--app-font-bold); }
.sc-journey-sheet__return-safe-leave,
.sc-journey-sheet__return-fallback,
.sc-journey-sheet__return-planned { color: var(--app-text-muted); font-size: .86rem; }
.sc-journey-sheet__return-warning,
.sc-journey-sheet__return--warning h3,
.sc-journey-sheet__return--error h3 { color: var(--app-tertiary, #d95d39); }

.sc-journey-sheet__maps {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-top: 14px;
    color: var(--app-primary);
    font-weight: var(--app-font-bold);
    text-decoration: none;
}

.sc-journey-sheet__maps[hidden] { display: none; }
.sc-journey-sheet__maps svg { width: 22px; height: 22px; }

.sc-app-sheet__pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px 24px;
}

.sc-app-sheet__pricing-grid > * {
    min-width: 0;
}

.sc-app-sheet__pricing-note {
    margin: 6px 0 24px;
}

.sc-app-sheet__list { margin: 0; padding: 0; list-style: none; }
.sc-app-sheet__list-item { padding: 0 0 15px; border-bottom: 1px solid var(--app-border); }
.sc-app-sheet__list-item + .sc-app-sheet__list-item { padding-top: 15px; }
.sc-app-sheet__list-item:last-child { border-bottom: 0; }
.sc-app-sheet__list-action {
    position: relative;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 5px 34px 5px 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sc-app-sheet__list-action:hover { background: var(--app-surface-soft); }
.sc-app-sheet__list-action:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 2px; }
.sc-app-sheet__list-chevron {
    position: absolute;
    top: 50%;
    right: 8px;
    color: var(--app-text-soft);
    font-size: 1.55rem;
    line-height: 1;
    transform: translateY(-50%);
}
.sc-app-sheet__list-primary,
.sc-app-sheet__list-secondary,
.sc-app-sheet__list-status { margin: 0; }
.sc-app-sheet__list-primary { color: var(--app-text); font-weight: var(--app-font-bold); }
.sc-app-sheet__list-secondary { margin-top: 4px; color: var(--app-text-muted); font-size: .86rem; }
.sc-app-sheet__list-status { margin-top: 5px; color: #781919; font-size: .82rem; font-weight: var(--app-font-bold); }
.sc-scroll-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(94px + env(safe-area-inset-bottom));
    z-index: 990;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 3px 10px rgb(0 0 0 / 12%);
    cursor: pointer;
}
.sc-scroll-to-top[hidden] { display: none; }
.sc-scroll-to-top:focus-visible { outline: 3px solid var(--app-focus-ring); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .sc-scroll-to-top { scroll-behavior: auto; }
}
.sc-instance-unavailable {
    box-sizing: border-box;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem;
    text-align: center;
}

.sc-instance-unavailable h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.3;
}
