    /* â€”â€”â€” AperÃ§u multi-appareils â€”â€”â€” */
.device-preview {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

.device-preview__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    flex-shrink: 0;
}

.device-preview__toolbar {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: max-content;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.28rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.device-preview__fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.device-preview__fs-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.05);
}

.device-preview__fs-btn[aria-pressed="true"] {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.35);
}

.device-preview__fs-btn[aria-pressed="true"]:hover {
    background: #dc3545;
    transform: scale(1.08);
}

.device-preview__fs-btn[aria-pressed="true"] i {
    font-size: 1.15rem;
}

.device-preview__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
    opacity: 0.75;
    transition: background 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.device-preview__btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.device-preview__btn[aria-selected="true"],
.device-preview__btn.device-btn--active {
    opacity: 1;
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.device-preview__btn[aria-selected="true"]:hover,
.device-preview__btn.device-btn--active:hover {
    transform: translateY(-1px);
}

.device-preview__btn i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.device-preview__btn[aria-selected="true"] i {
    opacity: 1;
}

.device-preview__stage {
    position: relative;
    display: grid;
    grid-template: 1fr / 1fr;
    place-items: start center;
    width: 100%;
    flex: 1 1 auto;
    min-height: clamp(300px, 55vw, 480px);
    padding-bottom: 0.5rem;
    overflow: visible;
}

/* Portrait en carte : pas de min-height forcÃ© (Ã©vite un trou sous le mobile scalÃ©) */
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen)[data-device="tablet"] .device-preview__stage,
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen)[data-device="mobile"] .device-preview__stage {
    min-height: 0;
}

.device-preview__stage > * {
    grid-area: 1 / 1;
}

.device-preview__viewport {
    z-index: 1;
    width: 100%;
    max-width: min(100%, 1280px);
    margin-inline: auto;
    background: var(--df-screen-bg, #000);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.device-preview[data-device="desktop"] .device-preview__viewport {
    aspect-ratio: 16 / 10;
}

.device-preview[data-device="tablet"] .device-preview__viewport {
    max-width: min(100%, 768px);
    aspect-ratio: 3 / 4;
}

.device-preview[data-device="mobile"] .device-preview__viewport {
    max-width: min(100%, 375px);
    aspect-ratio: 9 / 19.5;
}

.device-preview__viewport .device-preview__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.device-preview__stage > .device-frame {
    display: none;
    z-index: 1;
    pointer-events: none;
}

.device-preview__stage > .device-frame.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    margin-inline: auto;
    z-index: 2;
    pointer-events: auto;
    transition: none;
}

.device-preview__stage > .device-frame.is-active .device-frame__screen {
    background: transparent;
    box-shadow: none;
}

.device-frame {
    --df-shell: #1a1a1e;
    --df-shell-highlight: #3a3a42;
    --df-shell-shadow: #050508;
    --df-bezel: #0c0c0f;
    --df-screen-bg: #000;
    --df-radius-phone: clamp(2rem, 5vw, 2.75rem);
    --df-radius-screen: clamp(1.35rem, 3.5vw, 1.85rem);
    width: min(100%, 300px);
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.device-preview__stage .device-frame.is-active:hover {
    filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.5));
}

.device-frame__screen {
    position: relative;
    width: 100%;
    background: var(--df-screen-bg);
    overflow: hidden;
    isolation: isolate;
}

.device-frame__screen iframe,
.device-frame__screen video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--df-screen-bg);
}

/* Mobile */
.device-frame--mobile {
    width: min(100%, clamp(200px, 38cqw, 300px));
}

@supports not (width: 1cqw) {
    .device-frame--mobile {
        width: min(100%, clamp(200px, 38vw, 300px));
    }
}

.device-frame--mobile .device-frame__shell {
    position: relative;
    padding: clamp(0.45rem, 1.2vw, 0.65rem);
    border-radius: var(--df-radius-phone);
    background: linear-gradient(
        145deg,
        var(--df-shell-highlight) 0%,
        var(--df-shell) 45%,
        var(--df-shell-shadow) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 6px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-frame--mobile .device-frame__island {
    position: absolute;
    top: clamp(0.55rem, 1.5vw, 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(4.5rem, 22%, 5.5rem);
    height: clamp(1.1rem, 3vw, 1.35rem);
    border-radius: 999px;
    background: #000;
    z-index: 3;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-frame--mobile .device-frame__screen {
    aspect-ratio: 9 / 19.5;
    border-radius: var(--df-radius-screen);
    box-shadow: inset 0 0 0 2px var(--df-bezel);
}

.device-frame--mobile .device-frame__home-bar {
    width: clamp(5rem, 32%, 6.5rem);
    height: 4px;
    margin: clamp(0.5rem, 1.5vw, 0.65rem) auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.device-frame--mobile .device-frame__screen iframe {
    min-height: 100%;
}

/* Tablette */
.device-frame--tablet {
    width: min(100%, clamp(240px, 72cqw, 440px));
}

@supports not (width: 1cqw) {
    .device-frame--tablet {
        width: min(100%, clamp(240px, 72vw, 440px));
    }
}

.device-frame__shell--tablet {
    position: relative;
    padding: clamp(0.65rem, 1.8vw, 0.9rem);
    border-radius: clamp(1.25rem, 3vw, 1.65rem);
    background: linear-gradient(
        160deg,
        var(--df-shell-highlight) 0%,
        var(--df-shell) 50%,
        var(--df-shell-shadow) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 8px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-frame__camera--tablet {
    position: absolute;
    top: clamp(0.7rem, 2vw, 0.95rem);
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a1f28;
    z-index: 3;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.device-frame--tablet .device-frame__screen {
    aspect-ratio: 3 / 4;
    border-radius: clamp(0.5rem, 1.2vw, 0.65rem);
    box-shadow: inset 0 0 0 2px var(--df-bezel);
}

.device-frame__home-btn {
    width: clamp(2rem, 8%, 2.5rem);
    height: clamp(2rem, 8%, 2.5rem);
    margin: clamp(0.55rem, 1.5vw, 0.75rem) auto 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

/* Bureau (laptop) */
.device-frame--desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, clamp(260px, 95cqw, 1280px));
    flex-shrink: 0;
}

@supports not (width: 1cqw) {
    .device-frame--desktop {
        width: min(100%, clamp(260px, 95vw, 1280px));
    }
}

@container device-media (max-width: 520px) {
    .device-frame--tablet {
        width: min(100%, 100%);
        max-width: 360px;
    }

    .device-frame--mobile {
        width: min(100%, 280px);
    }
}

.device-frame--desktop .device-frame__lid {
    width: 100%;
    flex-shrink: 0;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 1.5vw, 0.75rem) 0;
    border-radius: clamp(0.75rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1rem) 0 0;
    background: linear-gradient(
        180deg,
        var(--df-shell-highlight) 0%,
        var(--df-shell) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-frame--desktop .device-frame__bezel {
    position: relative;
    padding: clamp(0.65rem, 2vw, 0.9rem) clamp(0.65rem, 2vw, 0.9rem) clamp(0.85rem, 2.5vw, 1.1rem);
    background: var(--df-bezel);
    border-radius: clamp(0.35rem, 1vw, 0.5rem);
}

.device-frame--desktop .device-frame__camera {
    position: absolute;
    top: clamp(0.35rem, 1vw, 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e2430;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.device-frame--desktop .device-frame__screen {
    aspect-ratio: 16 / 10;
    border-radius: clamp(0.2rem, 0.6vw, 0.35rem);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.device-frame--desktop .device-frame__base {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    margin-top: 2px;
}

.device-frame--desktop .device-frame__hinge {
    width: 100%;
    height: clamp(0.4rem, 1.2vw, 0.55rem);
    background: linear-gradient(180deg, #2a2a30, #121214);
    border-radius: 0 0 2px 2px;
    flex-shrink: 0;
}

.device-frame--desktop .device-frame__deck {
    width: 104%;
    min-height: clamp(0.75rem, 2.5vw, 1.1rem);
    height: clamp(0.75rem, 2.5vw, 1.1rem);
    margin-top: -1px;
    border-radius: 0 0 clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 1.5vw, 0.75rem);
    background: linear-gradient(
        180deg,
        #252528 0%,
        #141416 100%
    );
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Plein Ã©cran Ã©mulateur */
body.device-preview-fs-open {
    overflow: hidden;
}

.device-preview-placeholder {
    width: 100%;
    pointer-events: none;
    visibility: hidden;
}

.device-preview.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom))
        max(0.75rem, env(safe-area-inset-left));
    box-sizing: border-box;
    background: rgba(6, 6, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.device-preview.is-fullscreen .device-preview__header {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    justify-content: center;
}

.device-preview.is-fullscreen .device-preview__toolbar {
    flex: 0 0 auto;
    width: auto;
    max-width: max-content;
}

.device-preview.is-fullscreen .device-preview__stage {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-height: none;
    padding-bottom: 0;
    align-items: center;
    justify-content: center;
}

.device-preview.is-fullscreen .device-preview__stage > .device-frame:not(.is-active) {
    display: none !important;
}

.device-preview.is-fullscreen .device-preview__stage > .device-frame.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: calc(100dvh - 5.5rem);
    height: calc(100dvh - 5.5rem);
    width: auto;
    max-width: min(96vw, 100%);
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame--desktop.is-active {
    width: min(96vw, 1280px);
    height: calc(100dvh - 5.5rem);
    max-height: calc(100dvh - 5.5rem);
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame__lid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame__bezel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame__screen {
    flex: 1 1 auto;
    aspect-ratio: unset;
    min-height: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    pointer-events: auto;
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame--desktop.is-active {
    pointer-events: auto;
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame--desktop.is-active .device-frame__fallback {
    display: none;
}

.device-preview.is-fullscreen[data-device="desktop"] .device-frame__screen .device-preview__iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    display: block;
    border: 0;
    pointer-events: auto;
}

.device-preview.is-fullscreen[data-device="tablet"] .device-frame--tablet.is-active {
    width: auto;
    height: auto;
    max-height: calc(100dvh - 5.5rem);
    max-width: min(96vw, 768px);
    pointer-events: auto;
}

.device-preview.is-fullscreen[data-device="tablet"] .device-frame__shell--tablet {
    height: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.device-preview.is-fullscreen[data-device="tablet"] .device-frame__screen {
    flex: 0 0 auto;
    aspect-ratio: unset;
    width: 768px;
    height: 1024px;
    max-width: 100%;
    max-height: min(1024px, calc(100dvh - 5.5rem));
    overflow: hidden;
    pointer-events: auto;
}

.device-preview.is-fullscreen[data-device="tablet"] .device-frame__screen .device-preview__iframe {
    width: 768px;
    height: 1024px;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: block;
    pointer-events: auto;
    border: 0;
}

.device-preview.is-fullscreen[data-device="mobile"] .device-frame--mobile.is-active {
    width: auto;
    height: calc(100dvh - 5.5rem);
    max-height: calc(100dvh - 5.5rem);
    max-width: min(42vw, 420px);
}

.device-preview.is-fullscreen[data-device="mobile"] .device-frame__shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.device-preview.is-fullscreen[data-device="mobile"] .device-frame__screen {
    flex: 1 1 auto;
    aspect-ratio: unset;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.device-preview.is-fullscreen .device-preview__viewport,
.device-preview.is-fullscreen .device-preview__viewport .device-preview__iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

    @media (max-width: 768px) {
        .device-preview.is-fullscreen[data-device="mobile"] .device-frame--mobile.is-active {
            max-width: min(88vw, 360px);
        }

        .device-preview.is-fullscreen[data-device="tablet"] .device-frame--tablet.is-active {
            max-width: min(92vw, 768px);
        }

        .device-preview.is-fullscreen[data-device="desktop"] .device-frame--desktop.is-active {
            width: 100%;
        }
    }

/* ——— Intégration modale portfolio ——— */
.modal-image-container--device {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.75rem 1rem 1rem;
    overflow: auto;
    min-height: min(72vh, 720px);
}

.modal-image-container--device .device-preview {
    flex: 1 1 auto;
    min-height: 0;
}

.modal-image-container--device .device-preview__stage > .device-frame.is-active {
    pointer-events: auto;
}

.modal-image-container--device .device-frame.is-active .device-frame__screen,
.modal-image-container--device .device-frame.is-active .device-preview__iframe {
    pointer-events: auto;
}

/* ——— Carte de lancement (avant plein écran) ——— */
.modal-image-container--launch {
    padding: 1rem 1.25rem 1.25rem;
}

.device-launch-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.device-launch-card--hidden {
    display: none;
}

.device-launch-card__visual {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.device-launch-card__hero {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 520px);
    object-fit: contain;
    background: #111;
}

.device-launch-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.device-launch-card__title {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: #fff;
}

.device-launch-card__headline {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 36rem;
}

.device-launch-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d7cff 0%, #4f5bd5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 28px rgba(79, 91, 213, 0.35);
}

.device-launch-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(79, 91, 213, 0.45);
}

.device-launch-card__external {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #a8b4ff;
    text-decoration: none;
    font-size: 0.9rem;
}

.device-launch-card__external:hover {
    text-decoration: underline;
}

.device-launch-card__thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.device-launch-card__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.device-launch-card__thumb.is-active {
    border-color: #8b98ff;
    transform: translateY(-2px);
}

.device-launch-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.device-preview-mount {
    display: none;
}

.device-preview--dormant {
    display: none !important;
}

.device-preview.is-fullscreen,
.device-preview.device-preview--fullscreen {
    z-index: 10050;
}

/* ——— Viewports logiques iframe (mode modale) ——— */
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--desktop {
    width: min(100%, clamp(280px, 95cqw, 980px)) !important;
    max-width: 980px !important;
}

@supports not (width: 1cqw) {
    .device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--desktop {
        width: min(100%, clamp(280px, 95vw, 980px)) !important;
    }
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--desktop.is-active {
    width: min(100%, 980px) !important;
    max-width: 980px !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--tablet.is-active {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--mobile.is-active {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--desktop .device-frame__screen,
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--tablet .device-frame__screen,
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--mobile .device-frame__screen {
    container-type: inline-size;
    overflow: hidden !important;
    position: relative !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--desktop .device-frame__screen {
    aspect-ratio: 16 / 10 !important;
    width: 100% !important;
    height: auto !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--desktop.is-active .device-frame__screen .device-preview__iframe {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 1280px !important;
    height: 800px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(calc(100cqw / 1280px)) !important;
    transform-origin: top center !important;
    background: #fff !important;
    pointer-events: auto !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--tablet.is-active .device-frame__screen .device-preview__iframe {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 768px !important;
    height: 1024px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(calc(100cqw / 768px)) !important;
    transform-origin: top center !important;
    background: #fff !important;
    pointer-events: auto !important;
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame--mobile.is-active .device-frame__screen .device-preview__iframe {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 375px !important;
    height: 812px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding-top: 28px !important;
    box-sizing: border-box !important;
    transform: translateX(-50%) scale(calc(100cqw / 375px)) !important;
    transform-origin: top center !important;
    background: #fff !important;
    pointer-events: auto !important;
}

@supports not (width: 1cqw) {
    .device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame.is-active .device-frame__screen .device-preview__iframe {
        position: static !important;
        left: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 auto !important;
        transform: none !important;
    }
}

.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-preview__stage > .device-frame.is-active,
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame.is-active .device-frame__screen,
.device-preview:not(.device-preview--fullscreen):not(.is-fullscreen) .device-frame.is-active .device-preview__iframe {
    pointer-events: auto !important;
}

.device-preview--modal .device-preview__stage {
    min-height: clamp(380px, 52vh, 560px);
}

/* Plein écran : viewports réels */
.device-preview--fullscreen[data-device="tablet"] .device-frame--tablet.is-active .device-frame__screen,
.device-preview.is-fullscreen[data-device="tablet"] .device-frame--tablet.is-active .device-frame__screen {
    width: 768px !important;
    height: 1024px !important;
    max-width: 100% !important;
    max-height: min(1024px, calc(100dvh - 5.5rem)) !important;
    overflow: hidden !important;
}

.device-preview--fullscreen[data-device="tablet"] .device-frame--tablet.is-active .device-frame__screen .device-preview__iframe,
.device-preview.is-fullscreen[data-device="tablet"] .device-frame--tablet.is-active .device-frame__screen .device-preview__iframe {
    width: 768px !important;
    height: 1024px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    transform: none !important;
    position: static !important;
    left: auto !important;
}

.device-preview--fullscreen[data-device="mobile"] .device-frame--mobile.is-active .device-frame__screen,
.device-preview.is-fullscreen[data-device="mobile"] .device-frame--mobile.is-active .device-frame__screen {
    width: 375px !important;
    max-width: min(92vw, 375px) !important;
    height: auto !important;
    aspect-ratio: 9 / 19.5 !important;
    overflow: hidden !important;
}

.device-preview--fullscreen[data-device="mobile"] .device-frame--mobile.is-active .device-frame__screen .device-preview__iframe,
.device-preview.is-fullscreen[data-device="mobile"] .device-frame--mobile.is-active .device-frame__screen .device-preview__iframe {
    width: 375px !important;
    height: 812px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    transform: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding-top: 28px !important;
    box-sizing: border-box !important;
}
