/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0b163d;
    color: #f4f8ff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: .3s;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 22, 61, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 100;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 34px;
    height: 34px;
}

.logo span {
    color: #22d4fd;
    font-weight: 700;
    letter-spacing: .5px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links a:hover {
    color: #22d4fd;
}

.btn-nav {
    border: 1px solid #22d4fd;
    padding: 6px 14px;
    border-radius: 20px;
}

.btn-nav:hover {
    background: #22d4fd;
    color: #0b163d;
}

/* ===== BURGER ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
}

.burger span {
    height: 3px;
    width: 100%;
    background: #22d4fd;
    border-radius: 5px;
    transition: .3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ===== HERO ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.2rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.badge {
    background: rgba(34, 212, 253, .1);
    color: #22d4fd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .85rem;
    display: inline-block;
    margin-bottom: .8rem;
}

.hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
}

.accent {
    color: #22d4fd;
}

.subtitle {
    color: #c7d1ff;
    margin: .6rem 0 1.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: .8rem;
}

.btn-primary,
.btn-outline {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: .3s;
}

.btn-primary {
    background: linear-gradient(90deg, #22d4fd, #1593d6);
    color: #0b163d;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid #22d4fd;
    color: #22d4fd;
}

.btn-outline:hover {
    background: rgba(34, 212, 253, .1);
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.circle-glow {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #22d4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    color: #22d4fd;
    box-shadow: 0 0 30px #22d4fd;
}

/* ===== SERVICES ===== */
.services {
    text-align: center;
    padding: 55px 0;
}

.services h2 {
    font-size: 1.9rem;
    margin-bottom: .3rem;
}

.section-subtitle {
    color: #c7d1ff;
    margin-bottom: 1.6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.service-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 1.2rem;
    border-radius: 14px;
    transition: .3s;
}

.service-card:hover {
    border-color: #22d4fd;
    box-shadow: 0 0 12px rgba(34, 212, 253, .3);
    transform: translateY(-4px);
}

.icon {
    font-size: 1.8rem;
    color: #22d4fd;
    margin-bottom: .6rem;
}

.service-card h3 {
    margin-bottom: .4rem;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    text-align: center;
    padding: 60px 0;
}

.portfolio h2 {
    font-size: 1.9rem;
    margin-bottom: .3rem;
}

.portfolio-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.project {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, .03);
    transition: .3s;
    border: 1px solid transparent;
}

.project-thumb {
    background-size: cover;
    background-position: center;
    height: 180px;
    filter: brightness(.85);
    transition: .3s;
}

.project-info {
    padding: 1rem;
    color: #c7d1ff;
    text-align: left;
}

.project-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .3rem;
}

.project:hover .project-thumb {
    filter: brightness(1);
    transform: scale(1.05);
}

.project:hover {
    border-color: #22d4fd;
    box-shadow: 0 0 15px rgba(34, 212, 253, .3);
}

/* ===== ABOUT ===== */
.about {
    padding: 60px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #d3dbff;
    margin-bottom: .8rem;
}

.stack {
    list-style: none;
    margin-top: 1rem;
}

.stack li {
    color: #22d4fd;
    margin-bottom: .4rem;
}

.about-card {
    flex: 1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    text-align: center;
    padding: 2rem 1rem;
    transition: .3s;
    box-shadow: 0 0 20px rgba(34, 212, 253, .15);
}

.about-card h3 {
    color: #22d4fd;
    margin-top: .6rem;
}

.about-card p {
    color: #c7d1ff;
    font-size: .95rem;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(34, 212, 253, .35);
}

/* ===== CONTACT ===== */
.contact {
    padding: 60px 0;
}

.contact-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h2 {
    font-size: 1.9rem;
    margin-bottom: .4rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 1.5rem 1.8rem;
    margin-top: 1.5rem;
    box-shadow: 0 0 20px rgba(34, 212, 253, .08);
    transition: .3s;
}

.info-card:hover {
    box-shadow: 0 0 25px rgba(34, 212, 253, .3);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.info-item a {
    color: #f4f8ff;
    font-weight: 500;
    line-height: 1.3;
}

.info-item a:hover {
    color: #22d4fd;
}

.icon,
.insta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.icon {
    font-size: 1.2rem;
    color: #22d4fd;
}

.services-icon {
    width: auto;
}

.insta-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px #22d4fd);
    margin-right: 2px;
}

/* Formulaire */
.contact-form {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #22d4fd;
    outline: none;
    box-shadow: 0 0 5px rgba(34, 212, 253, .3);
}

.contact-form button {
    align-self: flex-start;
    padding: 10px 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, .02);
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22d4fd;
    font-weight: 600;
}

.footer .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22d4fd;
    box-shadow: 0 0 8px #22d4fd;
}

/* ===== MODE COMPACT (espaces réduits) ===== */
body.compact .nav-wrap {
    padding: .5rem 0;
}

body.compact .hero {
    min-height: 72vh;
    padding-top: 70px;
}

body.compact .hero-content {
    gap: 1.8rem;
}

body.compact .hero h1 {
    font-size: 1.9rem;
}

body.compact .subtitle {
    margin: .4rem 0 1rem;
}

body.compact section {
    padding: 48px 0;
}

body.compact .services-grid {
    gap: 1rem;
}

body.compact .service-card {
    padding: 1rem;
}

/* ===== LIGNE NÉON AU-DESSUS DES SECTIONS ===== */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 3px;
    border-radius: 50px;
    background: linear-gradient(90deg, transparent, #22d4fd, transparent);
    box-shadow: 0 0 15px #22d4fd;
    opacity: .9;
    transition: transform 1.2s ease;
}

header::before {
    display: none;
}

section.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .circle-glow {
        width: 110px;
        height: 110px;
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    nav.nav {
        position: fixed;
        top: 51px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(11, 22, 61, .98);
        overflow: hidden;
        transition: height .3s ease;
        backdrop-filter: blur(10px);
    }

    nav.nav.active {
        height: 245px;
        /* border-top: 1px solid rgba(255, 255, 255, .08); */
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: .8rem;
        padding: 1rem 0;
        display: flex;
    }

    section::before {
        width: 80%;
        height: 2px;
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .about-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .contact-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-form button {
        align-self: center;
    }

    .info-card {
        max-width: 420px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: .9rem;
    }

    .circle-glow {
        width: 90px;
        height: 90px;
        font-size: 1.9rem;
    }

    .services h2,
    .portfolio h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 1.6rem;
    }
}

/* ===== Stack logos (About) ===== */
.stack-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tech {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    transition: .25s ease;
}

.tech:hover {
    border-color: #22d4fd;
    box-shadow: 0 0 14px rgba(34, 212, 253, .25);
    transform: translateY(-2px);
}

.tech svg {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 0 6px rgba(34, 212, 253, .15));
    border-radius: 6px;
    /* pour les logos carrés */
    background: rgba(11, 22, 61, .25);
}

.tech span {
    font-weight: 600;
    letter-spacing: .2px;
}

/* responsive affiné */
@media (max-width: 600px) {
    .stack-logos {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 60px 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 1.9rem;
    margin-bottom: .3rem;
}

.ts-slider {
    position: relative;
    margin-top: 1.4rem;
}

.ts-viewport {
    overflow: hidden;
}

.ts-track {
    display: flex;
    gap: 1rem;
    will-change: transform;
    transition: transform .45s ease;
}

.ts-card {
    min-width: clamp(280px, 70vw, 520px);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    margin: .2rem 0;
    text-align: left;
    box-shadow: 0 0 16px rgba(34, 212, 253, .12);
}

.ts-card:hover {
    border-color: #22d4fd;
    box-shadow: 0 0 20px rgba(34, 212, 253, .28);
}

.ts-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .7rem;
}

.ts-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(34, 212, 253, .25);
}

.ts-role {
    color: #c7d1ff;
    font-size: .88rem;
}

.ts-text {
    color: #eaf0ff;
    margin: .4rem 0 .8rem;
}

.ts-stars {
    color: #ffd95a;
    letter-spacing: 2px;
}

.ts-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 22, 61, .7);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #22d4fd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
    backdrop-filter: blur(6px);
}

.ts-btn:hover {
    box-shadow: 0 0 12px rgba(34, 212, 253, .35);
    border-color: #22d4fd;
}

.ts-prev {
    left: -6px;
}

.ts-next {
    right: -6px;
}

.ts-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: .9rem;
}

.ts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    border: 1px solid rgba(255, 255, 255, .25);
    cursor: pointer;
    transition: .25s;
}

.ts-dot[aria-selected="true"] {
    background: #22d4fd;
    border-color: #22d4fd;
    box-shadow: 0 0 10px #22d4fd;
}

/* Responsive */
@media (min-width: 980px) {
    .ts-card {
        min-width: 520px;
    }
}

@media (max-width: 520px) {
    .ts-prev {
        left: 2px;
    }

    .ts-next {
        right: 2px;
    }
}

/* --- Fix click zone + z-index des flèches --- */
.ts-slider {
    position: relative;
}

.ts-viewport {
    position: relative;
    z-index: 1;
}

.ts-btn {
    z-index: 3;
    /* au-dessus de tout */
    width: 42px;
    height: 42px;
    /* hitbox un peu plus grande */
    pointer-events: auto;
    /* clics assurés */
}

.ts-prev {
    left: 6px;
}

/* évite d’être “hors” du conteneur */
.ts-next {
    right: 6px;
}




/* ===== PAGE PROJET ===== */
.proj-hero {
    padding: 78px 0 24px;
}

.breadcrumb a {
    color: #22d4fd;
    opacity: .95;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.proj-title {
    font-size: 2rem;
    margin-top: .5rem;
}

.proj-sub {
    color: #c7d1ff;
}

.proj-content {
    padding: 10px 0 32px;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.proj-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0e1a4b;
    transition: .25s;
}

.proj-img:hover {
    transform: translateY(-2px);
    border-color: #22d4fd;
    box-shadow: 0 0 14px rgba(34, 212, 253, .28);
}

.proj-meta {
    padding: 18px 0 40px;
}

.proj-meta-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
}

.proj-col h2 {
    font-size: 1.4rem;
    margin-bottom: .4rem;
}

.proj-col p {
    color: #eaf0ff;
    margin-bottom: .8rem;
}

.proj-list {
    margin: .4rem 0 1rem 1rem;
    color: #cfe3ff;
}

.proj-list li {
    margin: .3rem 0;
    list-style: disc;
}

.proj-kpis {
    margin: .4rem 0 1rem 1rem;
    color: #eaf0ff;
}

.proj-kpis li {
    list-style: "✓ ";
    margin: .3rem 0;
}

.proj-link {
    display: inline-block;
    margin: .6rem 0 1.2rem;
}

/* Stack déjà stylée via .stack-logos/.tech dans tes styles globaux */

/* Avis client */
.proj-review {
    padding: 32px 0;
}

.review-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 0 16px rgba(34, 212, 253, .12);
    max-width: 820px;
    margin: 0 auto;
}

.review-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .6rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(34, 212, 253, .25);
}

.review-role {
    color: #c7d1ff;
    font-size: .9rem;
}

.review-text {
    color: #eaf0ff;
    margin: .4rem 0 .6rem;
}

.review-stars {
    color: #ffd95a;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 980px) {
    .proj-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .proj-img {
        height: 200px;
    }
}

/* ===== GALERIE PROJET (HOMOGÈNE) ===== */
.proj-gallery {
    padding: 50px 0;
    text-align: center;
}

.proj-gallery h2 {
    margin-bottom: 1.4rem;
    font-size: 1.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    /* ✅ garde un format homogène */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(34, 212, 253, 0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover {
    box-shadow: 0 0 22px rgba(34, 212, 253, 0.35);
}

/* Overlay au survol */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 26, 75, 0.8);
    color: #fff;
    padding: .5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform .3s ease;
    font-weight: 500;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 25, 0.95);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s;
    z-index: 9999;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 92%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(34, 212, 253, 0.4);
    transform: scale(0.9);
    transition: transform .3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 34px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    transition: .25s;
}

.lightbox-close:hover {
    color: #22d4fd;
    text-shadow: 0 0 10px #22d4fd;
}

/* Petit effet au survol sur la grille */
.gallery-item img {
    cursor: zoom-in;
}

/* Netlify honeypot */
.nf-hidden {
    display: none;
}

/* Toast bleu */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    min-width: 220px;
    max-width: 90vw;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(34, 212, 253, .15);
    border: 1px solid rgba(34, 212, 253, .45);
    color: #cfefff;
    box-shadow: 0 8px 28px rgba(34, 212, 253, .25);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: rgba(255, 80, 80, .12);
    border-color: rgba(255, 80, 80, .5);
    color: #ffdada;
}

/* === Toast en haut (au-dessus du contenu) === */
:root {
    --nav-h: 60px;
}

/* ajuste si ta navbar est plus haute */

.toast {
    bottom: auto;
    /* plus en bas */
    top: calc(var(--nav-h) + 12px);
    /* espace sous la navbar */
    transform: translateX(-50%) translateY(-20px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Option iPhone encoches */
@supports (top: calc(env(safe-area-inset-top) + 0px)) {
    .toast {
        top: calc(var(--nav-h) + env(safe-area-inset-top) + 12px);
    }
}