:root {
    --luvia-dark: #1C1C1E;
    --luvia-muted: #70655F;
    --luvia-primary: #F5C6AA;
    --luvia-rose: #D4516A;
    --luvia-secondary: #D4A373;
    --luvia-light: #F8F3F0;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding-bottom: calc(env(safe-area-inset-bottom) + 88px);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.regions-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(28, 28, 30, 0.07);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.regions-brand,
.regions-topbar-actions,
.regions-topbar-action {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.regions-topbar-actions {
    gap: 8px;
}

.regions-brand {
    gap: 10px;
    color: var(--luvia-dark);
    font-size: 18px;
    font-weight: 800;
}

.regions-brand img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.regions-topbar-action {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(28, 28, 30, 0.09);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--luvia-dark);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(28, 28, 30, 0.045);
}

.regions-home-action {
    background: var(--luvia-light);
}

@media (max-width: 480px) {
    .regions-topbar {
        padding-right: 22px;
    }

    .regions-topbar-actions {
        margin-right: 8px;
        transform: translateX(-12px);
    }

    .regions-topbar-actions .regions-topbar-action:not(.regions-home-action) {
        display: none;
    }
}

.regions-hero {
    padding: 24px 18px 20px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 58%, var(--luvia-light) 100%);
}

.regions-hero-copy {
    max-width: 760px;
}

.regions-kicker {
    margin: 0 0 7px;
    color: var(--luvia-rose);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.regions-hero h1 {
    margin: 0;
    color: var(--luvia-dark);
    max-width: 100%;
    overflow-wrap: normal;
    font-size: clamp(31px, 8.2vw, 68px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: 0;
}

.regions-hero-copy > p:last-child {
    width: min(100%, 310px);
    max-width: 580px;
    margin: 14px 0 0;
    color: var(--luvia-muted);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.regions-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    min-height: 56px;
    margin: 22px 0 18px;
    padding: 8px 14px;
    border: 1px solid rgba(28, 28, 30, 0.05);
    border-radius: 999px;
    background: #F1F1F2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 22px rgba(28, 28, 30, 0.045);
}

.regions-search svg {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 10px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--luvia-dark);
    box-shadow: 0 5px 12px rgba(28, 28, 30, 0.06);
}

.regions-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--luvia-dark);
    font-size: 14px;
    font-weight: 700;
}

.regions-feature {
    min-height: 168px;
}

/* Mise en avant plein cadre : photo, dégradés cinéma, texte blanc. */
.regions-feature-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 214px;
    overflow: hidden;
    border-radius: 26px;
    background: #1A1216;
    color: inherit;
    text-decoration: none;
}

.regions-feature-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.regions-feature-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 8, 12, 0.68) 0%, rgba(10, 8, 12, 0.24) 55%, rgba(10, 8, 12, 0.02) 100%),
        linear-gradient(180deg, transparent 45%, rgba(10, 8, 12, 0.52) 100%);
}

.regions-feature-copy {
    position: relative;
    z-index: 2;
    width: 80%;
    padding: 18px;
}

.regions-feature-copy .regions-kicker {
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1.3px;
}

.regions-feature-copy h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.regions-feature-copy p {
    max-width: 250px;
    margin: 6px 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
}

.regions-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #1C1C1E;
    font-size: 13px;
    font-weight: 800;
}

.regions-feature-cta svg {
    width: 14px;
    height: 14px;
}

.regions-content {
    padding: 25px 18px 36px;
    background: #FFFFFF;
}

.regions-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.regions-section-heading h2 {
    margin: 0;
    color: var(--luvia-dark);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.regions-section-heading a {
    color: var(--luvia-dark);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

/* Carte région photo pleine carte : nom + prix en blanc, sans compteur. */
.region-product-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 208px;
    overflow: hidden;
    border-radius: 22px;
    background: #2A1B26;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease;
}

.region-product-card:focus-visible,
.region-product-card:hover {
    transform: translateY(-2px);
}

.region-product-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-product-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.24) 45%, rgba(0, 0, 0, 0.80) 100%);
}

.region-product-card.is-coming-soon > img {
    filter: saturate(0.7);
    opacity: 0.55;
}

.region-product-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--luvia-dark);
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-product-overlay {
    position: relative;
    z-index: 1;
    padding: 0 13px 12px;
}

.region-product-overlay h3 {
    margin: 0;
    color: #FFFFFF;
    font-size: 15.5px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.region-product-overlay strong {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    font-weight: 700;
}

.regions-empty {
    margin: 28px 0;
    color: var(--luvia-muted);
    font-size: 14px;
    font-weight: 700;
}

.regions-bottom-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(env(safe-area-inset-bottom) + 13px);
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    min-height: 62px;
    padding: 6px 11px;
    border: 1px solid rgba(212, 81, 106, 0.42);
    border-radius: 31px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 35px rgba(28, 28, 30, 0.17);
    backdrop-filter: blur(14px);
}

.regions-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 48px;
    color: var(--luvia-dark);
    text-decoration: none;
}

.regions-bottom-nav svg {
    width: 22px;
    height: 22px;
}

.regions-bottom-nav .is-active {
    width: 58px;
    min-height: 58px;
    margin: -18px auto 0;
    border: 4px solid #FFFFFF;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 28%, var(--luvia-primary) 0%, var(--luvia-rose) 58%, var(--luvia-dark) 130%);
    color: #FFFFFF;
    box-shadow: 0 13px 24px rgba(212, 81, 106, 0.30), 0 2px 0 rgba(255, 255, 255, 0.80) inset;
}

.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        background: var(--luvia-light);
    }

    .regions-topbar {
        padding: 14px max(32px, calc((100vw - 1160px) / 2));
    }

    .regions-hero,
    .regions-content {
        padding-left: max(32px, calc((100vw - 1160px) / 2));
        padding-right: max(32px, calc((100vw - 1160px) / 2));
    }

    .regions-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
        column-gap: 48px;
        align-items: end;
        padding-top: 56px;
        padding-bottom: 44px;
    }

    .regions-hero h1 {
        font-size: clamp(46px, 5.4vw, 68px);
    }

    .regions-search {
        grid-column: 1;
        max-width: 620px;
    }

    .regions-feature {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .regions-hero-copy > p:last-child {
        width: auto;
    }

    .regions-feature-card {
        min-height: 270px;
        grid-template-columns: minmax(0, 1fr) 180px;
    }

    .regions-feature-copy {
        padding: 34px 0 30px 28px;
    }

    .regions-feature-copy h2 {
        font-size: 34px;
    }

    .regions-feature-copy p {
        max-width: 240px;
        font-size: 14px;
    }

    .regions-feature-main {
        top: 36px;
        right: -24px;
        width: 216px;
        height: 152px;
    }

    .regions-feature-bubble.one {
        left: 2px;
        bottom: 55px;
        width: 60px;
        height: 60px;
    }

    .regions-feature-bubble.two {
        left: 52px;
        bottom: 35px;
        width: 42px;
        height: 42px;
    }

    .regions-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .region-product-card {
        min-height: 280px;
    }

    .region-product-media {
        height: 154px;
    }

    .regions-bottom-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .region-product-card {
        transition: none;
    }
}
