/* ========================================================================
   SWEET SWAP — Le troc c'est in, partageons nos dress-in!
   Mobile-first web app, pastel candy palette, Parisian repair-café vibes.
   ======================================================================== */

:root {
    /* Candy pastel palette */
    --pink:          #FF8CB8;
    --pink-deep:     #F26299;
    --pink-soft:     #FFD9E6;
    --pink-wash:     #FFF4F8;
    --coral:         #FFB199;
    --mint:          #6EC6A3;
    --mint-soft:     #C9EBD9;
    --mint-wash:     #ECF9F2;
    --butter:        #FFE39A;
    --butter-soft:   #FFF2CC;
    --lavender:      #C2B2E8;
    --lavender-soft: #EBE3FA;

    --ink:           #3B2A4D;      /* deep plum headlines */
    --ink-soft:      #6B5B7C;      /* body */
    --ink-mute:      #9F93AE;      /* captions, dividers */

    --paper:         #FFFBF7;      /* app background */
    --surface:       #FFFFFF;      /* cards */
    --surface-2:     #FFF4F0;      /* subtle tinted surface */
    --border:        #F0E6EE;

    /* Typography */
    --f-display: 'Fraunces', 'Georgia', serif;
    --f-body:    'Nunito', system-ui, sans-serif;
    --f-hand:    'Caveat', cursive;

    /* Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-card: 0 10px 30px -12px rgba(242, 98, 153, 0.22);
    --shadow-soft: 0 4px 14px -6px rgba(59, 42, 77, 0.18);
    --shadow-pop:  0 20px 50px -16px rgba(59, 42, 77, 0.3);

    /* App layout */
    --phone-w: 400px;
    --phone-h: 850px;
    --tab-h:   76px;
}

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

html, body {
    font-family: var(--f-body);
    color: var(--ink);
    background: #F4EBE4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(1200px 800px at 85% -10%, var(--pink-soft) 0%, transparent 55%),
        radial-gradient(900px 700px at -10% 110%, var(--mint-soft) 0%, transparent 55%),
        radial-gradient(600px 500px at 50% 50%, var(--butter-soft) 0%, transparent 60%),
        #FFF8F2;
    background-attachment: fixed;
    overflow-x: hidden;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

input, textarea {
    font: inherit;
    color: inherit;
    outline: none;
}

a {
    color: var(--pink-deep);
    text-decoration: none;
}

/* ========================================================================
   SIMULATION BANNER (concept-stage ribbon)
   ======================================================================== */

.simulation-banner {
    position: fixed;
    top: 36px;
    right: -80px;
    width: 320px;
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(180deg, #FF8CB8 0%, #F26299 100%);
    color: white;
    font-family: var(--f-body);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(45deg);
    box-shadow:
        0 4px 15px -2px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    z-index: 500;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================================================
   STAGE (desktop context around the phone)
   ======================================================================== */

.stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    min-height: 100vh;
}

.stage-side {
    position: sticky;
    top: 40px;
    max-width: 420px;
}

.stage-side-left { justify-self: end; }
.stage-side-right { justify-self: start; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}
.brand img {
    display: block;
    filter: drop-shadow(0 6px 10px rgba(242, 98, 153, 0.25));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-tag {
    font-family: var(--f-hand);
    color: var(--pink-deep);
    font-size: 1.1rem;
}

.stage-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.08;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.stage-title em {
    font-style: italic;
    color: var(--pink-deep);
    background: linear-gradient(180deg, transparent 65%, var(--butter) 65%);
    padding: 0 4px;
}

.stage-lede {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 32px;
}

.stage-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}
.stage-bullets li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
}
.stage-bullets b { color: var(--ink); font-weight: 800; }
.stage-bullets div { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.bullet-ico {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.stage-partners {
    border-top: 1px dashed var(--border);
    padding-top: 20px;
}
.partners-label {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.partners-list { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-chip {
    background: var(--mint-wash);
    border: 1px solid var(--mint-soft);
    color: var(--mint);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: var(--r-pill);
}

/* ---- Right column: How it works / Manifesto / Join ---- */

.side-h {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.how-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.how-list li {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 20px 20px 20px 68px;
    box-shadow: var(--shadow-soft);
}
.how-step {
    position: absolute;
    left: 16px;
    top: 20px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 100%);
    color: white;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 6px 14px -4px rgba(242, 98, 153, 0.4);
}
.how-list h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--ink);
}
.how-list p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.side-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
.side-card h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 10px;
}
.side-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}
.side-card p:last-of-type { margin-bottom: 0; }

.side-card-karma {
    background: linear-gradient(140deg, var(--mint-wash) 0%, var(--pink-wash) 100%);
    border: 1px solid var(--mint-soft);
}
.karma-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.karma-mini-bar {
    flex: 1;
    height: 12px;
    background: white;
    border-radius: var(--r-pill);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.karma-mini-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mint) 0%, var(--pink) 100%);
    border-radius: var(--r-pill);
}
.karma-mini-val {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--mint);
}

.side-card-manifesto em {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    color: var(--pink-deep);
    font-size: 1.05rem;
}

.side-card-join {
    background: linear-gradient(140deg, var(--butter-soft) 0%, var(--pink-wash) 100%);
    border: 1px solid var(--butter);
}
.join-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.join-form input {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: white;
    font-size: 0.95rem;
}
.join-form input:focus { border-color: var(--pink); }
.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: white;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: var(--r-pill);
    box-shadow: 0 10px 24px -8px rgba(242, 98, 153, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(242, 98, 153, 0.7);
}
.btn-primary:active { transform: translateY(0); }
.legal {
    font-size: 0.8rem !important;
    color: var(--ink-mute) !important;
    margin-top: 8px !important;
}

/* ========================================================================
   PHONE FRAME
   ======================================================================== */

.phone {
    position: sticky;
    top: 40px;
    width: var(--phone-w);
    flex-shrink: 0;
}

.phone-frame {
    position: relative;
    width: var(--phone-w);
    height: var(--phone-h);
    background: #1A1024;
    border-radius: 48px;
    padding: 12px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 50px 120px -40px rgba(59, 42, 77, 0.5),
        0 25px 50px -20px rgba(242, 98, 153, 0.25);
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: #000;
    border-radius: 999px;
    z-index: 20;
    pointer-events: none;
}

/* ========================================================================
   APP
   ======================================================================== */

.app {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--paper);
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Decorative status bar */
.status-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}
.status-right { display: flex; gap: 6px; align-items: center; }
.status-right svg { fill: var(--ink); }

/* Screens container */
.screens {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--tab-h) + 16px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-soft) transparent;
}
.screen::-webkit-scrollbar { width: 4px; }
.screen::-webkit-scrollbar-thumb { background: var(--pink-soft); border-radius: 4px; }
.screen.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* App header shared */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 10px;
    gap: 12px;
}
.hello-small {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-mute);
    font-weight: 600;
    margin-bottom: 2px;
}
.hello-name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.hello-wave {
    display: inline-block;
    animation: wave 2.5s ease infinite;
    transform-origin: 70% 70%;
}
@keyframes wave {
    0%, 60%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}
.screen-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s;
}
.icon-btn:hover { transform: scale(1.05); }
.icon-btn.ghost { background: transparent; box-shadow: none; }

.karma-btn { width: auto; padding: 0; background: transparent; box-shadow: none; }
.karma-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--mint-soft) 100%);
    border-radius: var(--r-pill);
    font-family: var(--f-display);
    font-weight: 800;
    color: var(--pink-deep);
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}
.karma-pill svg { color: var(--pink-deep); }

/* Search bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 20px 16px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-soft);
    color: var(--ink-mute);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: 0;
    font-size: 0.95rem;
    color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-mute); }

/* Hero banner */
.hero-banner {
    position: relative;
    margin: 4px 20px 24px;
    padding: 22px 22px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--pink) 0%, var(--coral) 60%, var(--butter) 120%);
    color: white;
    overflow: hidden;
    min-height: 150px;
    box-shadow: 0 20px 40px -14px rgba(242, 98, 153, 0.5);
}
.hero-banner-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: var(--r-pill);
    margin-bottom: 10px;
}
.hero-banner-title {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.hero-banner-cta {
    background: white;
    color: var(--pink-deep);
    font-weight: 800;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,0.15);
    transition: transform 0.15s;
}
.hero-banner-cta:hover { transform: translateY(-1px); }

.hero-banner-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.art-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.75;
}
.art-blob-1 { width: 110px; height: 110px; top: -30px; right: -20px; background: rgba(255,255,255,0.4); }
.art-blob-2 { width: 70px;  height: 70px;  bottom: -20px; right: 70px; background: var(--lavender-soft); }
.art-blob-3 { width: 50px;  height: 50px;  top: 60px;    right: 110px; background: var(--mint-soft); }

/* Row heads */
.row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 12px;
    margin-top: 4px;
}
.row-head h4 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.row-sub {
    color: var(--ink-mute);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.85rem;
}
.row-link {
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Horizontal scroll of items */
.h-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 20px 22px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.h-scroll::-webkit-scrollbar { display: none; }

.h-item {
    flex: 0 0 140px;
    scroll-snap-align: start;
    border-radius: var(--r-md);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.h-item:hover { transform: translateY(-2px); }
.h-item-img {
    width: 100%;
    aspect-ratio: 3/4;
    display: grid;
    place-items: center;
    position: relative;
}
.h-item-meta {
    padding: 8px 10px 10px;
}
.h-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.h-item-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--ink-mute);
}
.h-item-sub .dot { opacity: 0.5; }

/* Grid feed */
.grid-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 2px 20px 24px;
}
.grid-item {
    background: var(--surface);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.18s;
    display: flex;
    flex-direction: column;
}
.grid-item:hover { transform: translateY(-2px); }
.grid-item-img {
    width: 100%;
    aspect-ratio: 3/4;
    display: grid;
    place-items: center;
    position: relative;
}
.grid-item-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: var(--r-pill);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.grid-item-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    color: var(--ink-mute);
    transition: color 0.15s, transform 0.15s;
}
.grid-item-heart:hover { transform: scale(1.1); }
.grid-item-heart.is-liked { color: var(--pink-deep); }
.grid-item-meta { padding: 10px 12px 12px; }
.grid-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 4px;
}
.grid-item-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--ink-mute);
}
.grid-item-sub .dot { opacity: 0.5; }
.mini-karma {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--mint);
    font-weight: 800;
}

/* People scroll (voisins) */
.h-scroll--people .person {
    flex: 0 0 96px;
    text-align: center;
    cursor: pointer;
}
.person-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 8px;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}
.person-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--pink) var(--karma-deg, 331deg), var(--pink-soft) 0);
    z-index: -1;
    padding: 3px;
}
.person-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}
.person-hood {
    font-size: 0.7rem;
    color: var(--ink-mute);
}

/* Screen tail */
.screen-tail {
    text-align: center;
    padding: 20px 32px;
    color: var(--ink-mute);
    font-size: 0.82rem;
    font-family: var(--f-hand);
    font-size: 1.1rem;
}

/* ========================================================================
   EXPLORER screen
   ======================================================================== */
.cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 20px 14px;
    scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: 0 0 auto;
    padding: 10px 16px;
    background: var(--surface);
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s, color 0.15s, background 0.15s;
}
.cat-pill.is-active {
    background: var(--ink);
    color: white;
}
.cat-pill:hover { transform: translateY(-1px); }

.filter-row {
    display: flex;
    gap: 8px;
    padding: 0 20px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
    display: inline-flex;
    gap: 6px;
    padding: 8px 14px;
    background: var(--pink-wash);
    border: 1px solid var(--pink-soft);
    border-radius: var(--r-pill);
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-weight: 600;
    white-space: nowrap;
}
.chip-val { color: var(--pink-deep); font-weight: 800; }

/* ========================================================================
   PARTAGER screen
   ======================================================================== */
.share-camera {
    margin: 20px 20px 24px;
    padding: 36px 20px;
    background: linear-gradient(140deg, var(--pink-wash) 0%, var(--butter-soft) 100%);
    border: 2px dashed var(--pink-soft);
    border-radius: var(--r-xl);
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s, border-color 0.18s;
}
.share-camera:hover { transform: translateY(-2px); border-color: var(--pink); }
.camera-circle {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: var(--pink-deep);
    box-shadow: var(--shadow-card);
}
.camera-help {
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
}
.camera-help span {
    display: block;
    font-weight: 500;
    color: var(--ink-mute);
    font-size: 0.85rem;
    margin-top: 2px;
}

.share-steps {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field { display: block; }
.field > span {
    display: block;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.field-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.field-pill {
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink-soft);
    box-shadow: var(--shadow-soft);
    transition: all 0.15s;
}
.field-pill.is-active {
    background: var(--pink);
    color: white;
    box-shadow: 0 8px 18px -6px rgba(242, 98, 153, 0.5);
}

.field-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
    color: var(--ink);
}
.field-input:focus { border-color: var(--pink); }

.share-tip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--mint-wash);
    border-radius: var(--r-md);
    align-items: flex-start;
}
.share-tip span { font-size: 1.3rem; }
.share-tip p { font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.share-tip b { color: var(--mint); font-weight: 800; }

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ========================================================================
   DRESSING screen
   ======================================================================== */
.tab-switch {
    display: flex;
    gap: 4px;
    margin: 8px 20px 20px;
    padding: 4px;
    background: var(--surface);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-soft);
}
.tab-switch-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink-mute);
    transition: all 0.2s;
}
.tab-switch-btn.is-active {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: white;
    box-shadow: 0 6px 16px -6px rgba(242, 98, 153, 0.5);
}

.closet-view { padding: 0 20px 24px; }

.closet-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 10px;
}
.closet-item-img {
    width: 76px;
    height: 76px;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.closet-item-info { flex: 1; min-width: 0; }
.closet-item-name {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.closet-item-sub {
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-bottom: 6px;
}
.closet-item-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-ok { background: var(--mint-wash); color: var(--mint); }
.status-soon { background: var(--butter-soft); color: #B88A20; }
.status-pending { background: var(--lavender-soft); color: #7E68B8; }
.status-live { background: var(--pink-soft); color: var(--pink-deep); }

/* ========================================================================
   MOI / Profile screen
   ======================================================================== */
.profile-head {
    text-align: center;
    padding: 10px 20px 20px;
}
.profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}
.profile-avatar svg {
    border-radius: 50%;
    box-shadow: var(--shadow-card);
}
.avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    font-size: 1rem;
}
.profile-name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.profile-hood {
    color: var(--ink-mute);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2px;
}

.karma-card {
    margin: 0 20px 20px;
    padding: 22px;
    background: linear-gradient(135deg, var(--mint-wash) 0%, var(--pink-wash) 100%);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-soft);
}
.karma-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.karma-label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    color: var(--ink-soft);
}
.karma-score {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--mint);
    line-height: 1;
}
.karma-score small {
    font-size: 1rem;
    color: var(--ink-mute);
    font-weight: 500;
}
.karma-gauge {
    position: relative;
    height: 14px;
    background: white;
    border-radius: var(--r-pill);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.karma-gauge-fill {
    height: 100%;
    width: var(--pct);
    background: linear-gradient(90deg, var(--mint) 0%, var(--pink) 100%);
    border-radius: var(--r-pill);
    transition: width 1s cubic-bezier(0.3, 1, 0.5, 1);
}
.karma-gauge-marks {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--ink-mute);
    font-weight: 700;
    padding: 0 2px;
}
.karma-expl {
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-top: 10px;
}
.karma-expl b { color: var(--ink); font-weight: 800; }

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 0 20px 24px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.stat-num {
    display: block;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--pink-deep);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-lbl {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-mute);
    font-weight: 700;
    line-height: 1.2;
}

.profile-section-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    padding: 0 20px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 24px;
}
.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s;
}
.badge:hover { transform: translateY(-2px); }
.badge-emoji { font-size: 1.6rem; }
.badge-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    line-height: 1.2;
}
.badge--locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.reviews {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.review {
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
}
.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.review-author {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--ink);
}
.review-stars {
    color: var(--butter);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.review p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.4;
    font-style: italic;
}

.info-card {
    margin: 0 20px;
    padding: 20px;
    background: var(--lavender-soft);
    border-radius: var(--r-md);
}
.info-card h4 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 10px;
}
.info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.info-card b { color: #5A3C8F; font-weight: 800; }
.info-card p {
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ========================================================================
   BOTTOM TAB BAR
   ======================================================================== */
.tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tab-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-top: 1px solid var(--border);
    padding: 8px 8px 14px;
    z-index: 15;
}
.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px;
    color: var(--ink-mute);
    font-size: 0.68rem;
    font-weight: 700;
    transition: color 0.15s, transform 0.15s;
}
.tab.is-active { color: var(--pink-deep); }
.tab:hover { transform: translateY(-2px); }

.tab--add .tab-add-circle {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: white;
    box-shadow: 0 10px 24px -6px rgba(242, 98, 153, 0.5);
    margin-top: -16px;
    transition: transform 0.2s;
}
.tab--add:hover .tab-add-circle { transform: scale(1.08) rotate(90deg); }

/* ========================================================================
   MODAL (item detail)
   ======================================================================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}
.modal.is-open {
    display: flex;
    animation: modal-fade 0.2s ease;
}
@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(59, 42, 77, 0.55);
    backdrop-filter: blur(6px);
}
.modal-sheet {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    background: var(--paper);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modal-up 0.3s cubic-bezier(0.3, 1, 0.4, 1);
    box-shadow: var(--shadow-pop);
    margin: 0 auto;
}
@media (min-width: 601px) {
    .modal { align-items: center; }
    .modal-sheet { border-radius: var(--r-xl); margin-bottom: 0; max-height: 90vh; }
}
@keyframes modal-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    z-index: 20;
    transition: transform 0.15s;
}
.modal-close:hover { transform: scale(1.08); }

.modal-body {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-soft) transparent;
}

.detail-img {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: relative;
}
.detail-content {
    padding: 20px 22px 22px;
}
.detail-cat {
    display: inline-block;
    background: var(--pink-soft);
    color: var(--pink-deep);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    margin-bottom: 10px;
}
.detail-name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 6px;
}
.detail-meta {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ink-mute);
    margin-bottom: 16px;
    font-weight: 600;
}
.detail-meta .dot { opacity: 0.5; }
.detail-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 20px;
}
.detail-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
.owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.owner-info { flex: 1; }
.owner-name { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.owner-hood { font-size: 0.78rem; color: var(--ink-mute); margin-top: 2px; }
.owner-karma {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--mint-wash);
    border-radius: var(--r-pill);
    color: var(--mint);
    font-weight: 800;
    font-size: 0.88rem;
}

.detail-reviews {
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 20px;
}
.detail-reviews h5 {
    font-weight: 800;
    color: var(--ink);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.detail-reviews p {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-style: italic;
    line-height: 1.4;
}
.detail-reviews p + p { margin-top: 6px; }

.detail-actions {
    display: flex;
    gap: 10px;
}
.btn-secondary {
    flex: 0 0 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border-radius: var(--r-md);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s, color 0.15s;
}
.btn-secondary:hover { transform: translateY(-2px); color: var(--pink-deep); }
.btn-secondary.is-liked { color: var(--pink-deep); }
.detail-actions .btn-primary {
    flex: 1;
    height: 56px;
    font-size: 1rem;
}

/* ========================================================================
   TOAST
   ======================================================================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ink);
    color: white;
    padding: 14px 22px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-pop);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 90%;
    text-align: center;
}
.toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================================================
   V2: SOS CARD (À l'aide!)
   ======================================================================== */

.sos-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 40px);
    margin: 0 20px 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFD5D5 0%, #FFB199 100%);
    border: 2px dashed #D86262;
    border-radius: var(--r-lg);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 8px 20px -10px rgba(216, 98, 98, 0.4);
}
.sos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(216, 98, 98, 0.5);
}
.sos-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: #D86262;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}
.sos-card-text { flex: 1; min-width: 0; }
.sos-card-text h5 {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1rem;
    color: #5A1D1D;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.sos-card-text p {
    font-size: 0.82rem;
    color: #7A2E2E;
    line-height: 1.3;
}
.sos-card-arrow {
    color: #D86262;
    flex-shrink: 0;
}

/* ========================================================================
   V2: COLOR SWATCHES (Explorer filter)
   ======================================================================== */

.color-swatches {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 20px 14px;
    scrollbar-width: none;
    align-items: center;
}
.color-swatches::-webkit-scrollbar { display: none; }

.color-swatch {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 4px;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.is-active {
    box-shadow: 0 0 0 2.5px var(--pink-deep), var(--shadow-soft);
}
.color-swatch.is-all {
    width: auto;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink-soft);
}
.color-swatch.is-all.is-active {
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow-soft);
}
.swatch-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1);
}

/* ========================================================================
   V2: ATTR CHIPS (material + details on detail modal)
   ======================================================================== */

.detail-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.attr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--lavender-soft);
    color: #5A3C8F;
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 700;
}
.attr-chip.attr-color {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
}
.attr-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ========================================================================
   V2: ALERTE CARDS (home h-scroll "Les voisins cherchent")
   ======================================================================== */

.h-scroll--alertes {
    padding-bottom: 24px;
}

.alerte-card {
    flex: 0 0 265px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: linear-gradient(140deg, #FFF4F0 0%, #FFE1EC 100%);
    border: 1.5px solid var(--pink-soft);
    border-radius: var(--r-lg);
    padding: 14px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 6px 16px -8px rgba(242, 98, 153, 0.25);
    text-align: left;
}
.alerte-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(242, 98, 153, 0.35);
}
.alerte-sos {
    display: inline-block;
    background: #D86262;
    color: white;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    align-self: flex-start;
}
.alerte-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.alerte-desc {
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.alerte-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.alerte-owner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--ink-mute);
    font-weight: 600;
}
.alerte-avatar {
    width: 28px;
    height: 28px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.alerte-responses {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink-deep);
}
.alerte-help-btn {
    width: 100%;
    padding: 8px;
    background: white;
    color: var(--pink-deep);
    border-radius: var(--r-pill);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px -4px rgba(242, 98, 153, 0.3);
    transition: transform 0.15s;
}
.alerte-help-btn:hover { transform: translateY(-1px); }
.alerte-help-btn b { color: var(--mint); }

/* ========================================================================
   V2: ALERTE MODAL (compose + view)
   ======================================================================== */

.alerte-head {
    padding: 24px 22px 18px;
    background: linear-gradient(140deg, #FFD5D5 0%, #FFF4F0 100%);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.alerte-badge-big {
    display: inline-block;
    background: #D86262;
    color: white;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.alerte-h2 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.15;
}
.alerte-sub {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.4;
}
.alerte-form {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.alerte-tip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--mint-wash);
    border-radius: var(--r-md);
    align-items: flex-start;
}
.alerte-tip span { font-size: 1.3rem; }
.alerte-tip p { font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.alerte-tip b { color: var(--mint); font-weight: 800; }

.alerte-photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.alerte-photo-btn,
.alerte-photo-thumb {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    flex-shrink: 0;
    gap: 2px;
}
.alerte-photo-btn {
    background: var(--surface);
    border: 2px dashed var(--pink-soft);
    color: var(--pink-deep);
    font-size: 0.7rem;
    font-weight: 700;
    flex-direction: column;
    cursor: pointer;
}
.alerte-photo-btn:hover { background: var(--pink-wash); }
.alerte-photo-thumb {
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--mint-soft) 100%);
    font-size: 1.5rem;
}

.alerte-view-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 22px 14px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
}
.alerte-urgency-row {
    display: flex;
    gap: 8px;
    padding: 0 22px 16px;
    flex-wrap: wrap;
}
.urgency-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--butter-soft);
    color: #8B6B20;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--r-pill);
}
.urgency-chip--count {
    background: var(--mint-wash);
    color: var(--mint);
}

.field-help {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
    font-weight: 500;
    margin: -4px 0 8px;
    line-height: 1.3;
}
.field > span small {
    color: var(--ink-mute);
    font-weight: 500;
    font-size: 0.78rem;
    margin-left: 4px;
}

/* ========================================================================
   V2: EVAL MODAL (stars + public note + private note)
   ======================================================================== */

.eval-head {
    padding: 24px 22px 14px;
    background: linear-gradient(140deg, var(--mint-wash) 0%, var(--pink-wash) 100%);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.eval-h2 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.15;
}
.eval-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: var(--r-md);
    padding: 10px;
}
.eval-item-img {
    width: 54px;
    height: 54px;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.eval-item-name {
    font-weight: 800;
    color: var(--ink);
    font-size: 0.92rem;
}
.eval-item-sub {
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-top: 2px;
}

.eval-stars-row {
    padding: 20px 22px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.eval-label {
    font-weight: 800;
    color: var(--ink);
    font-size: 0.95rem;
}
.eval-stars {
    display: flex;
    gap: 6px;
}
.eval-star {
    font-size: 2.2rem;
    color: var(--ink-mute);
    opacity: 0.3;
    transition: color 0.15s, opacity 0.15s, transform 0.15s;
    line-height: 1;
    padding: 2px;
}
.eval-star:hover { transform: scale(1.1); }
.eval-star.is-lit {
    color: #E6B341;
    opacity: 1;
}

.eval-tip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 22px 18px;
    background: var(--lavender-soft);
    border-radius: var(--r-md);
    align-items: flex-start;
}
.eval-tip span { font-size: 1.3rem; }
.eval-tip p { font-size: 0.88rem; line-height: 1.4; color: var(--ink-soft); }

#evalBody .field { padding: 0 22px; }
#evalBody .field + .field { padding-top: 8px; }
#evalBody .btn-primary { margin: 0 22px 22px; width: calc(100% - 44px); }

/* ========================================================================
   V2: EMPTY RESULT (filter returns 0 → suggest alerte)
   ======================================================================== */

.empty-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}
.empty-emoji {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.empty-result p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* ========================================================================
   V2: CLOSET "NOTER" BUTTON
   ======================================================================== */

.closet-item--rate {
    background: linear-gradient(140deg, var(--mint-wash) 0%, var(--pink-wash) 100%);
    border: 1.5px solid var(--mint-soft);
}
.status-rate {
    background: var(--pink);
    color: white;
}
.closet-rate-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: white;
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 14px -4px rgba(242, 98, 153, 0.4);
    transition: transform 0.15s;
}
.closet-rate-btn:hover { transform: translateY(-1px); }

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

/* Tablet: hide one side, slim the stage */
@media (max-width: 1200px) {
    .stage {
        grid-template-columns: minmax(0, 1fr) auto;
        max-width: 900px;
    }
    .stage-side-right { display: none; }
    .stage-side { position: static; }
}

/* Mobile: hide side columns, phone fills viewport */
@media (max-width: 820px) {
    body { background: var(--paper); }
    .simulation-banner { display: none; }
    .stage {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        min-height: 100vh;
    }
    .stage-side { display: none; }
    .phone {
        position: static;
        width: 100%;
    }
    .phone-frame {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        border-radius: 0;
        background: var(--paper);
        box-shadow: none;
    }
    .phone-notch { display: none; }
    .app { border-radius: 0; }
    .status-bar { padding-top: calc(env(safe-area-inset-top, 12px) + 10px); }
    .tab-bar { padding-bottom: calc(env(safe-area-inset-bottom, 10px) + 10px); }
}

/* Very wide: push phone to center, bring both panels in */
@media (min-width: 1600px) {
    .stage { max-width: 1700px; gap: 72px; }
}
