/* Mobile */
        @media (max-width: 576px) {}

        /* Tablette */
        @media (max-width: 768px) {}

        /* Laptop */
        @media (max-width: 1360px) {}

        html,
        body {
            height: 100%;
            overflow-anchor: none;
        }

        body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .page-container {
            display: None;
            width: 100%;
            padding-top: var(--pg-top);
            padding-left: 5px;
            padding-right: 5px;
        }


        .page-container.show {
            display: block;
        }

        .page-body {
            display: flex;
            justify-content: center;
            width: 100%;
            padding: 0;
        }

        /* footer */
        .page-footer {
            display: none;
            width: 100%;
            height: 70px;
        }

        /* content */
        .page-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding-inline: 5px;
        }

        /* theme */
        .site-theme .theme-diary-title {
            font-family: var(--font-display);
            letter-spacing: -0.02em;
            font-weight: 700;

            font-size: 30px;
            color: var(--title);
            padding-bottom: 10px;
            line-height: 1em;
        }

        .site-theme .theme-diary-content-sectiontitle {
            font-family: var(--font-display);
            letter-spacing: -0.02em;
            font-weight: 700;

            font-size: 24px;
            color: var(--color-warning);
            padding-top: 30px;
            padding-bottom: 5px;
            line-height: 1em;
        }


        .site-theme .theme-diary-content-title {
            font-family: var(--application-font);
            font-size: 16px;
            color: var(--subtitle);
            padding-bottom: 15px;
            line-height: 1.7;
            font-weight: 700;
        }

        .site-theme .theme-diary-subtitle {
            font-family: var(--application-font);
            font-size: 16px;
            color: var(--subtitle);
            padding-bottom: 15px;
            line-height: 1.7;
        }

        .site-theme .theme-diary-text {
            font-family: var(--application-font);
            font-size: 16px;
            color: var(--text);
            padding-top: 10px;
            line-height: 1.7;
        }

        .site-theme .theme-diary-subsection {
            font-family: var(--font-display);
            font-weight: 700;
            letter-spacing: -0.02em;
            font-size: 20px;
            text-decoration: underline;
            color: var(--subtitle);
            line-height: 1.7;
            padding-bottom: 15px;
        }

        .site-theme .theme-diary-status {
            color: var(--highlight);
        }


        /* photo content */
        .photo-content {
            overflow: hidden;
            width: 100%;
            border: 1px solid var(--border);
            min-height: 0;
        }

        .photo-content.loaded {
            cursor: default;
            width: auto;
            height: auto;

        }

        .photo-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .photo-content img {
            transform: scale(1);
            transition: transform 0.4s ease;
        }

        .photo-content.loaded:hover img {
            transform: scale(1.08);
            /* zoom léger */
        }

        /* section page */
        .section-page {
            display: none;
            max-width: var(--pg-width);
        }

        .section-page.active {
            display: block;
        }

        .section-page-content .footer {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .section-page-content .footer [data-field='btn.showmorephoto'] {
            border-width: 1px;
            border-radius: 8px;
            font-size: small;
            background: none;
        }

        /* =========================
   TOOLBAR
   ========================= */

        .uie-toolbar-map,
        .uie-toolbar-fixed {
            position: fixed;
            z-index: 2000;
            display: flex;
            pointer-events: auto;
            background: transparent;
            box-sizing: border-box;
        }

        .uie-toolbar-map {
            top: 18px;
            left: 0;
            right: 72px;
            /* remplace width: calc(100vw - 72px) */
            padding-left: 15px;
            padding-right: 15px;

            display: flex;
            flex-direction: row;
            flex-wrap: wrap;

            column-gap: 48px;
            /* espace horizontal */
            row-gap: 0;
            /* aucun espace vertical */
        }

        .uie-toolbar-fixed {
            top: 30px;
            right: 15px;
            align-items: flex-start;
        }

        /* espace libre éventuel */
        .uie-toolbar-map .uie-toolbar-space {
            flex: 1 1 200px;
            min-width: 0;
            max-width: 240px;
        }

        /* pousse un bloc à droite */
        .uie-toolbar-map .uie-toolbar-right {
            margin-left: auto;
        }

        /* =========================
            GROUPE DE BOUTONS
        ========================= */

        .uie-toolbar-map .uie-group-btn {
            display: flex;
            flex: 1 1 auto;
            min-width: 0;
            margin: 0;
            padding-top: 12px;
            gap: 8px;

            flex-wrap: nowrap;
            /* tout sur une ligne */
            overflow-x: auto;
            /* scroll horizontal */
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            /* mobile */
            scrollbar-width: none;
            /* Firefox */
        }

        .uie-toolbar-map .uie-group-btn::-webkit-scrollbar {
            display: none;
            /* Chrome / Safari / Edge */
        }

        /* =========================
   BOUTONS
   ========================= */

        .uie-toolbar-fixed .uie-btn,
        .uie-toolbar-map .uie-btn {
            appearance: none;
            -webkit-appearance: none;
            border: 0;
            outline: none;
            margin: 0;

            width: auto;
            min-width: max-content;
            /* garde la largeur naturelle */
            max-width: none;
            height: 32px;
            box-sizing: border-box;

            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            /* ne rétrécit pas */

            cursor: pointer;
            line-height: 1;
            white-space: nowrap;

            background: #fff;
            border-radius: 24px;
            box-shadow:
                0 1px 2px rgba(60, 64, 67, 0.30),
                0 2px 6px 2px rgba(60, 64, 67, 0.15);

            font-size: 15px;
            color: inherit;
        }

        /* bouton toolbar fixe */
        .uie-toolbar-fixed .uie-btn {
            padding: 8px;
        }

        /* bouton toolbar map */
        .uie-toolbar-map .uie-btn {
            padding-inline: 12px;
            gap: 6px;
        }

        /* hover / focus / active */
        .uie-toolbar-fixed .uie-btn:hover,
        .uie-toolbar-map .uie-btn:hover,
        .uie-toolbar-map .uie-btn.active {
            transform: translateY(-1px);
            background: rgb(235, 235, 235);
        }

        .uie-toolbar-map .uie-btn.active {
            background: rgb(235, 235, 235);
        }

        .uie-toolbar-fixed .uie-btn:focus-visible,
        .uie-toolbar-map .uie-btn:focus-visible {
            box-shadow:
                0 1px 2px rgba(60, 64, 67, 0.30),
                0 2px 6px 2px rgba(60, 64, 67, 0.15),
                0 0 0 3px rgba(26, 115, 232, 0.18);
        }

        .uie-toolbar-fixed .uie-btn:active,
        .uie-toolbar-map .uie-btn:active {
            transform: translateY(0);
        }

        /* état actif optionnel */
        .uie-toolbar-fixed .uie-btn.is-active,
        .uie-toolbar-map .uie-btn.is-active {
            background: #1a73e8;
            color: var(--trip-surface-text);
        }

        /* =========================
   CONTENU INTERNE BOUTON
   ========================= */

        .uie-toolbar-map .uie-btn .label,
        .uie-toolbar-fixed .uie-btn .label {
            display: block;
            flex: 0 0 auto;
            /* pas de shrink */
            min-width: auto;
            overflow: visible;
            text-overflow: clip;
            white-space: nowrap;
        }

        .uie-toolbar-map .uie-btn .uiicon,
        .uie-toolbar-map .uie-btn i,
        .uie-toolbar-map .uie-btn svg,
        .uie-toolbar-fixed .uie-btn .uiicon,
        .uie-toolbar-fixed .uie-btn i,
        .uie-toolbar-fixed .uie-btn svg {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            line-height: 1;
        }

        /* sécurité pour svg */
        .uie-toolbar-map .uie-btn svg,
        .uie-toolbar-fixed .uie-btn svg {
            width: 18px;
            height: 18px;
            overflow: visible;
        }

        /* sécurité pour i[data-icon] ou .uiicon */
        .uie-toolbar-map .uie-btn .uiicon,
        .uie-toolbar-fixed .uie-btn .uiicon {
            width: 18px;
            height: 18px;
        }

        /* =========================
   RESPONSIVE
   ========================= */

        @media (max-width: 768px) {
            .uie-toolbar-map {
                top: 12px;
                right: 60px;
                padding-left: 10px;
                padding-right: 10px;
            }

            .uie-toolbar-map .uie-group-btn {
                padding-top: 8px;
                gap: 6px;
            }

            .uie-toolbar-map .uie-btn {
                height: 30px;
                padding-inline: 10px;
                gap: 5px;
                font-size: 14px;
            }

            .uie-toolbar-fixed {
                top: 16px;
                right: 10px;
            }
        }

        /* edit */
        .photo-content {
            xxxoutline: 2px solid red;
        }

        .photo-content img {
            xxxoutline: 2px solid blue;
        }

/* Fond et sections dans le langage visuel des cartes. */
body {
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.18), transparent 34rem),
        linear-gradient(145deg, var(--trip-shell-bg-soft), var(--trip-shell-bg));
    background-attachment: fixed;
}

.page-body:has(.workspace__travel.show) {
    padding: 1.25rem var(--gutter, 16px) 3rem;
}

.section-container {
    width: 100%;
}

.section-page {
    width: min(100%, var(--pg-width));
    margin-inline: auto;
    padding: clamp(1rem, 2.5vw, 2rem);
    color: var(--trip-surface-text);
    background: linear-gradient(145deg, var(--trip-surface-soft), var(--trip-surface));
    border: 1px solid var(--trip-surface-border);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.04),
        0 20px 50px rgba(2, 6, 23, 0.3);
}

.section-page.traveldiary .header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--trip-surface-border);
}

.section-page.traveldiary .theme-diary-title,
.section-page.traveldiary .theme-diary-content-sectiontitle {
    color: var(--trip-surface-text);
}

.section-page.traveldiary .theme-diary-subtitle,
.section-page.traveldiary .theme-diary-content-title,
.section-page.traveldiary .theme-diary-subsection {
    color: var(--trip-surface-muted);
}

.section-page.traveldiary .theme-diary-text {
    color: var(--trip-surface-text);
}

.section-page.listtraveldiary {
    background: var(--trip-surface);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .page-body:has(.workspace__travel.show) {
        padding: 12px 12px 2rem;
    }

    .section-page {
        padding: 1rem;
        border-radius: 16px;
    }
}
