
/* ═══════════════════════════════════════════════════════════════════════════
   APP LAYOUT — sidebar + content
   ═══════════════════════════════════════════════════════════════════════════ */

:root { --sidebar-w: 240px; }

.alert { padding: .9rem 1.1rem; border-radius: 8px; font-size: .9rem; }
.alert--info { background: #e8f4fd; border-left: 4px solid #3b82f6; color: #1e40af; }
.alert--info a { color: #1e40af; font-weight: 600; }

.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}
.status-dot--on      { background: #52b788; }
.status-dot--off     { background: #ccc; }
.status-dot--pending { background: #f4a261; }

/* Supprime le soulignement au survol pour tous les éléments de l'appli */
body.app-layout a:hover,
.col-card:hover,
.col-card a:hover,
.plant-card:hover,
.plant-card a:hover,
.sidebar__link:hover,
.sidebar__logo:hover,
.btn:hover { text-decoration: none; }

body.app-layout {
    display: flex; min-height: 100vh;
    background: var(--clr-bg);
    overflow-x: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--clr-primary);
    color: #fff;
    display: flex; flex-direction: column;
    flex-shrink: 0;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform .25s ease;
}
.sidebar__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar__logo {
    display: flex; align-items: center;
    text-decoration: none;
}
/* Logo dans la sidebar (fond vert foncé) : couleurs inversées */
.sidebar__logo-img {
    height: 30px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.sidebar__close { display: none; background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.2rem; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

.sidebar__nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar__nav ul { list-style: none; }
.sidebar__link {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1.25rem;
    color: rgba(255,255,255,.7);
    text-decoration: none; font-size: .9rem;
    transition: background .15s, color .15s;
}
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar__link.is-active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }

.sidebar__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.sidebar__profile-link {
    display: flex; align-items: center; gap: .45rem;
    font-size: .85rem; color: rgba(255,255,255,.7);
    text-decoration: none; overflow: hidden;
    border-radius: var(--radius); padding: .25rem .4rem; transition: color .15s, background .15s;
    white-space: nowrap; text-overflow: ellipsis; min-width: 0;
}
.sidebar__profile-link:hover,
.sidebar__profile-link.is-active { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.sidebar__profile-link svg { flex-shrink: 0; opacity: .7; }
.sidebar__logout {
    background: none; border: none; color: rgba(255,255,255,.5);
    font-size: .8rem; cursor: pointer; padding: .25rem .5rem;
    border-radius: var(--radius); transition: color .15s;
}
.sidebar__logout:hover { color: #fff; }

/* ─── App content ────────────────────────────────────────────────────────── */
.app-content {
    margin-left: var(--sidebar-w);
    flex: 1; display: flex; flex-direction: column; min-width: 0;
}

.app-topbar {
    height: 56px;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    display: flex; align-items: center; gap: 1rem;
    padding: 0 1.5rem;
    position: sticky; top: 0; z-index: 100;
}
.topbar__burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    /* Hit area 44×44px */
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center; padding: .4rem;
}
.topbar__burger span { display: block; width: 22px; height: 2px; background: var(--clr-text); border-radius: 2px; }
.topbar__title { font-size: 1rem; font-weight: 600; color: var(--clr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.topbar__lang-group { display: flex; gap: .25rem; align-items: center; }
.topbar__lang { font-size: .75rem; font-weight: 600; color: var(--clr-muted, #6b7280); padding: .2rem .4rem; border-radius: 4px; text-decoration: none; }
.topbar__lang:hover { color: var(--clr-primary); background: var(--clr-accent-l); }

.app-main { flex: 1; padding: 2rem; max-width: 1100px; width: 100%; margin: 0 auto; }

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 199;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar__close { display: block; }
    .sidebar-overlay.is-visible { display: block; }
    .topbar__burger { display: flex; }
    .app-content { margin-left: 0; }
    .app-main { padding: 1.25rem 1rem; }
}
@media (max-width: 480px) {
    .app-main { padding: 1rem .75rem; }
    .app-topbar { padding: 0 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARTNER PROFILE BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.partner-profile-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: .75rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    flex-wrap: wrap;
}
.partner-profile-bar__label {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--clr-text-m);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD STATS
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard__stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; text-align: center;
    box-shadow: var(--shadow-xs);
}
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--clr-secondary); letter-spacing: -.03em; }
.stat-card__max { font-size: 1rem; font-weight: 400; color: var(--clr-text-l); letter-spacing: 0; }
.stat-card__label { font-size: .8rem; color: var(--clr-text-m); margin-top: .25rem; }
.stat-card--alert { border-color: #f0c96d; background: #fffbeb; }
.stat-card--alert .stat-card__value { color: #b45309; }

.dashboard__section { margin-bottom: 2.5rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-header h2 { font-size: 1.1rem; font-weight: 700; }
.link-more { font-size: .85rem; color: var(--clr-secondary); text-decoration: none; }
.link-more:hover { text-decoration: underline; }

@media (max-width: 700px) { .dashboard__stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .dashboard__stats { grid-template-columns: 1fr 1fr; } .stat-card__value { font-size: 1.6rem; } }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.page-header__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.page-header__sub { font-size: .85rem; color: var(--clr-text-m); margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   COLLECTIONS GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.collections-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.collections-grid--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 480px) {
    .collections-grid, .collections-grid--compact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
    .collections-grid, .collections-grid--compact { grid-template-columns: 1fr; }
}

.collection-card {
    display: flex; flex-direction: column;
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg); text-decoration: none; color: inherit;
    overflow: hidden; transition: box-shadow .2s, transform .2s;
    box-shadow: var(--shadow-xs);
}
.collection-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.collection-card__accent { height: 5px; background: var(--col-color, var(--clr-secondary)); }
.collection-card__body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.collection-card__name { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.collection-card__type { font-size: .75rem; color: var(--clr-text-l); text-transform: uppercase; letter-spacing: .05em; }
.collection-card__desc { font-size: .82rem; color: var(--clr-text-m); margin-top: .5rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.collection-card__meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--clr-text-m); margin-top: .75rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   COLLECTION SHOW HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.coll-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap;
    padding-left: 1rem;
    border-left: 5px solid var(--col-color, var(--clr-secondary));
}
.coll-header__left { flex: 1; min-width: 0; }
.back-link { font-size: .82rem; color: var(--clr-text-m); text-decoration: none; display: inline-block; margin-bottom: .5rem; }
.back-link:hover { color: var(--clr-secondary); }
.coll-header__title-row { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; margin-bottom: .15rem; }
.coll-header__name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.coll-header__type { font-size: .75rem; color: var(--clr-text-l); text-transform: uppercase; letter-spacing: .06em; }
.coll-header__desc { font-size: .9rem; color: var(--clr-text-m); margin-top: .5rem; }
.coll-header__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Badge visibilité collection */
.visibility-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 20px; white-space: nowrap; }
.visibility-badge--public  { background: #d8f3dc; color: #1a7a3a; }
.visibility-badge--private { background: #f0f0f0; color: #666; }

@media (max-width: 600px) {
    .coll-header { flex-direction: column; gap: .75rem; }
    .coll-header__name { font-size: 1.25rem; }
    .coll-header__actions { width: 100%; }
}

/* Barre lien public */
.share-bar {
    display: flex; align-items: center; gap: .25rem;
    margin-bottom: 1rem;
}
.share-bar__label { font-size: .8rem; font-weight: 600; color: #1a7a3a; white-space: nowrap; }
.share-bar__actions { display: flex; gap: .1rem; }
.share-bar__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border: none; border-radius: 5px;
    background: transparent; color: #1a7a3a; cursor: pointer; transition: background .15s;
}
.share-bar__btn:hover { background: #d8f3dc; }

/* ═══════════════════════════════════════════════════════════════════════════
   PLANTS TOOLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.plants-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.plants-count { font-size: .85rem; color: var(--clr-text-m); }
.plants-toolbar__right { display: flex; align-items: center; gap: .5rem; }
.plants-search {
    padding: .4rem .75rem; border: 1px solid var(--clr-border);
    border-radius: var(--radius); font-size: .88rem;
    background: var(--clr-surface); color: var(--clr-text);
    width: 180px; transition: border-color .15s;
}
.plants-search:focus { outline: none; border-color: var(--clr-secondary); }
@media (max-width: 560px) {
    .plants-toolbar { flex-direction: column; align-items: stretch; gap: .75rem; }
    .plants-toolbar__right { flex-direction: column; align-items: stretch; }
    .plants-search { width: 100%; }
    .plants-toolbar__right .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLANT CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.plants-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
@media (max-width: 480px) { .plants-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } }
@media (max-width: 340px) { .plants-grid { grid-template-columns: 1fr; } }
.plant-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
    position: relative;
}
.plant-card__img { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--clr-accent-l); display: flex; align-items: center; justify-content: center; }
.plant-card__img img { width: 100%; height: 100%; object-fit: cover; }
.plant-card__img-placeholder { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.plant-card__img-placeholder svg { width: 60px; height: 60px; opacity: .5; }
.plant-card__body { padding: .75rem; flex: 1; }
.plant-card__name { font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.plant-card__scientific { font-size: .75rem; color: var(--clr-text-m); font-style: italic; margin-bottom: .4rem; }
.plant-card__meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.plant-card__qty { font-size: .75rem; color: var(--clr-text-m); }
.plant-card__status { font-size: .68rem; font-weight: 600; padding: .15rem .4rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }
.plant-card__comment { font-size: .78rem; color: var(--clr-text-m); margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.status--owned     { background: #d8f3dc; color: #1e8449; }
.status--wanted    { background: #fff3cd; color: #856404; }
.status--traded    { background: #dbeafe; color: #1e40af; }
.status--given     { background: #fce7f3; color: #9d174d; }

.plant-card__actions { position: absolute; top: .5rem; right: .5rem; display: flex; gap: .25rem; opacity: 0; transition: opacity .15s; }
.plant-card:hover .plant-card__actions { opacity: 1; }
/* Sur touch : boutons toujours visibles */
@media (hover: none) { .plant-card__actions { opacity: 1; } }
.plant-card__btn { width: 32px; height: 32px; border-radius: 6px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.plant-card__btn svg { width: 13px; height: 13px; }
.plant-card__btn--edit { background: rgba(255,255,255,.9); color: var(--clr-secondary); }
.plant-card__btn--edit:hover { background: var(--clr-secondary); color: #fff; }
.plant-card__btn--del { background: rgba(255,255,255,.9); color: var(--clr-error); }
.plant-card__btn--del:hover { background: var(--clr-error); color: #fff; }
.plant-card__btn--buy { background: rgba(255,255,255,.9); color: #e07b00; }
.plant-card__btn--buy:hover { background: #e07b00; color: #fff; }

/* Menu sites de vente */
.plant-search-menu { background: #fff; border: 1px solid #d8e8de; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); overflow: hidden; min-width: 190px; }
.plant-search-menu a { display: block; padding: .5rem .875rem; font-size: .85rem; color: #2d6a4f; text-decoration: none; border-bottom: 1px solid #f0f5f2; }
.plant-search-menu a:last-child { border-bottom: none; }
.plant-search-menu a:hover { background: #f4faf7; }

.empty-plants { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; background: var(--clr-surface); border: 2px dashed var(--clr-border); border-radius: var(--radius-xl); color: var(--clr-text-m); }
.empty-plants p { margin-bottom: 1.25rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PLANT MODAL FORM
   ═══════════════════════════════════════════════════════════════════════════ */
.plant-form { display: flex; gap: 1.5rem; }
.plant-form__image-col { width: 140px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.plant-form__fields { flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.plant-image-preview { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 2px solid var(--clr-border); display: flex; align-items: center; justify-content: center; background: var(--clr-accent-l); }
.plant-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.plant-image-placeholder svg { width: 56px; height: 56px; opacity: .6; }
.input--sm { font-size: .82rem; padding: .35rem .6rem; width: 100%; border: 1px solid var(--clr-border); border-radius: var(--radius); color: var(--clr-text); background: var(--clr-surface); }
@media (max-width: 560px) { .plant-form { flex-direction: column; align-items: center; } .plant-form__image-col { width: 100%; } }

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(13,40,24,.5); backdrop-filter: blur(3px); }
.modal__box { background: var(--clr-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; z-index: 1; }
.modal__box--lg { max-width: 680px; }
.modal__box--sm { max-width: 380px; }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--clr-border); }
.modal__header h3 { font-size: 1rem; font-weight: 700; }
.modal__close {
    background: none; border: none; cursor: pointer; color: var(--clr-text-m);
    border-radius: var(--radius);
    /* Hit area 44×44px */
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.modal__close:hover { background: var(--clr-bg); }
.modal__body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.modal__footer { padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--clr-border); display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 520px) {
    .modal { padding: .5rem; align-items: flex-end; }
    .modal__box, .modal__box--lg, .modal__box--sm { max-width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; }
    .modal__body { padding: 1rem; }
    .modal__header { padding: 1rem 1rem .75rem; }
    .modal__footer { padding: .75rem 1rem 1rem; }
    .modal__footer .btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS (shared)
   ═══════════════════════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--clr-text-m); }
.form-group input, .form-group select, .form-group textarea {
    padding: .5rem .75rem; border: 1px solid var(--clr-border); border-radius: var(--radius);
    /* 16px minimum pour éviter le zoom automatique sur iOS */
    font-size: 16px; color: var(--clr-text); background: var(--clr-surface);
    transition: border-color .15s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--clr-secondary); }
.form-row { display: flex; gap: .75rem; }
.form-row .form-group { flex: 1; min-width: 0; }
@media (max-width: 420px) { .form-row { flex-direction: column; gap: .5rem; } }
.form-inline { display: inline-block; }

.color-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.color-swatch { cursor: pointer; }
.color-swatch input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.color-swatch span { display: block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; transition: transform .1s, border-color .1s; }
.color-swatch input:checked + span { border-color: var(--clr-text); transform: scale(1.15); }

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES & EXTRA BTNS
   ═══════════════════════════════════════════════════════════════════════════ */
.badge { display: inline-block; padding: .2rem .5rem; border-radius: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge--public  { background: #d8f3dc; color: #1e8449; }
.badge--warning { background: #fff3cd; color: #856404; }

.btn--sm { padding: .35rem .8rem; font-size: .82rem; }
.btn--ghost { background: transparent; color: var(--clr-secondary); border: 1px solid var(--clr-border); }
.btn--ghost:hover { background: var(--clr-accent-l); }
.btn--danger { background: var(--clr-error); color: #fff; }
.btn--danger:hover { background: #a93226; }
.btn--danger-ghost { background: transparent; color: var(--clr-error); border: 1px solid rgba(192,57,43,.3); }
.btn--danger-ghost:hover { background: rgba(192,57,43,.08); }

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC COLLECTION PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   PAGE PUBLIQUE — COLLECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.public-collection { min-height: 100vh; background: #f6f9f6; }

/* ── Header ── */
.pub-header { background: #fff; border-bottom: 1px solid #e4ede6; margin-bottom: 3rem; }
.pub-header__band { height: 5px; background: var(--col-color, var(--clr-secondary)); }
.pub-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.25rem; flex-wrap: wrap; }
.pub-header__body { flex: 1; min-width: 0; }
.pub-header__by { font-size: .82rem; color: var(--clr-text-m); margin-bottom: .4rem; }
.pub-header__title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; color: var(--clr-text); line-height: 1.1; }
.pub-header__desc { font-size: .95rem; color: var(--clr-text-m); margin-top: .6rem; max-width: 55ch; line-height: 1.6; }
.pub-header__meta { margin-top: .75rem; font-size: .82rem; color: var(--clr-text-l); display: flex; align-items: center; gap: .75rem; }
.pub-header__meta::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--col-color, var(--clr-secondary)); }

/* Bouton partager */
.pub-share-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.25rem; background: var(--clr-secondary); color: #fff; border: none; border-radius: var(--radius); font-size: .875rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .15s, transform .1s; }
.pub-share-btn:hover { background: var(--clr-primary); transform: translateY(-1px); }
.pub-share-btn:active { transform: translateY(0); }

/* ── Grille : 4 col → 3 → 2 → 1 ── */
.pub-main { padding-bottom: 2rem; }
.pub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) { .pub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .pub-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 360px)  { .pub-grid { grid-template-columns: 1fr; } }

/* ── Carte ── */
.pub-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e8f0ea; box-shadow: 0 1px 4px rgba(0,0,0,.05); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.pub-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }

/* Image — ratio 4:3 via padding-bottom (compat universelle) */
.pub-card__img { width: 100%; padding-bottom: 75%; position: relative; overflow: hidden; background: #eaf4ee; flex-shrink: 0; }
.pub-card__img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pub-card__no-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pub-card__no-img svg { width: 52px; height: 52px; opacity: .3; }

/* Corps */
.pub-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.pub-card__name { font-size: 1rem; font-weight: 700; color: var(--clr-text); line-height: 1.3; }
.pub-card__sci { font-size: .78rem; color: var(--clr-text-m); font-style: italic; margin-top: .2rem; }
.pub-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }
.pub-card__qty { font-size: .78rem; color: var(--clr-text-m); }
.pub-card__comment { font-size: .78rem; color: var(--clr-text-m); margin-top: .6rem; line-height: 1.5; border-top: 1px solid #f0f5f2; padding-top: .6rem; }

/* Statuts */
.pub-status { font-size: .65rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.pub-status--owned     { background: #d8f3dc; color: #1a6e38; }
.pub-status--wanted    { background: #fff3cd; color: #7d5a00; }
.pub-status--traded    { background: #dbeafe; color: #1e40af; }
.pub-status--given_away { background: #fce7f3; color: #9d174d; }

/* Vide */
.pub-empty { text-align: center; padding: 5rem 1rem; color: var(--clr-text-m); font-size: 1rem; }

/* Footer */
.pub-footer { border-top: 1px solid #e4ede6; padding-top: 2rem; padding-bottom: 2rem; margin-top: 1rem; }
.pub-footer__brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--clr-text-m); font-size: .85rem; text-decoration: none; transition: color .15s; }
.pub-footer__brand:hover { color: var(--clr-secondary); }

/* Mobile header */
@media (max-width: 600px) {
    .pub-header__inner { gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .pub-share-btn { width: 100%; justify-content: center; }
}
.empty-state-text { text-align: center; color: var(--clr-text-m); padding: 3rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   FLASH TOASTS
   ═══════════════════════════════════════════════════════════════════════════ */
.flash { padding: .75rem 1.25rem; border-radius: var(--radius); font-size: .88rem; font-weight: 500; border: 1px solid transparent; }
.flash--success { background: #d8f3dc; border-color: #a8dabc; color: #1e4d2b; }
.flash--error   { background: #fde8e8; border-color: #f5c2c2; color: #7b1f1f; }
.flash--info    { background: #dbeafe; border-color: #bfdbfe; color: #1e3a5f; }

/* ── Carte-card (liste /maps) ── */
.map-card { cursor: default; }
.map-card__actions {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem 1rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARTE DU JARDIN (Phase 4)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Full-screen layout ── */
.app-main:has(#mapPage) {
    padding: 0;
    max-width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    /* Occupe tout l'espace restant sous la topbar */
    flex: 1;
    min-height: 0;
}

#mapPage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
    min-height: 0;
    z-index: 1;
}

/* ── Panneau lateral plantes ── */
.map-panel {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    z-index: 10;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.08);
}
.map-panel.is-open { transform: translateX(0); }

.map-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem .5rem;
    border-bottom: 1px solid var(--clr-border);
    flex-shrink: 0;
}
.map-panel__title { font-size: .95rem; font-weight: 700; margin: 0; }
.map-panel__close {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; color: var(--clr-text-m); padding: .25rem;
}

.map-panel__search { padding: .75rem 1rem .5rem; flex-shrink: 0; }
.map-search-input {
    width: 100%;
    padding: .5rem .75rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    outline: none;
}
.map-search-input:focus { border-color: var(--clr-accent); }

.map-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 0 1rem;
}
.map-panel__empty {
    text-align: center;
    color: var(--clr-text-m);
    font-size: .875rem;
    padding: 2rem 1rem;
    line-height: 1.6;
}

/* ── Groupes de collections ── */
.map-col-group__title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--col-color, var(--clr-secondary));
    padding: .6rem 1rem .3rem;
}

/* ── Items plante ── */
.map-plant-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .45rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}
.map-plant-item:hover { background: var(--clr-accent-l); }

.map-plant-item__thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}
.map-plant-item__name {
    font-size: .84rem;
    font-weight: 600;
    flex: 1;
    color: var(--clr-text);
}
.map-plant-item__hint {
    font-size: .72rem;
    color: var(--clr-accent);
    opacity: 0;
    transition: opacity .15s;
}
.map-plant-item:hover .map-plant-item__hint { opacity: 1; }

/* ── Bouton toggle panneau ── */
.map-toggle-panel {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius);
    padding: .45rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: box-shadow .15s;
    color: var(--clr-text);
}
.map-toggle-panel:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); }

/* ── Barre de placement ── */
.map-placement-bar {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: var(--clr-primary);
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    white-space: nowrap;
}
.map-placement-bar__hint {
    font-weight: 400;
    opacity: .75;
}
.map-placement-bar__cancel {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: .78rem;
    padding: .25rem .75rem;
}
.map-placement-bar__cancel:hover { background: rgba(255,255,255,.25); }

/* ── Marqueurs Leaflet custom ── */
.map-marker { background: none !important; border: none !important; }
.micon {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--mc, #52b788);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.micon-img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: rotate(45deg);
}
.micon-init {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    transform: rotate(45deg);
}

/* ── Popup ── */
.map-popup {
    display: flex;
    gap: .6rem;
    min-width: 160px;
    max-width: 220px;
}
.mpop-img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.mpop-body { display: flex; flex-direction: column; gap: .15rem; }
.mpop-name { font-size: .875rem; font-weight: 700; }
.mpop-sci  { font-size: .72rem; color: #666; }
.mpop-col  { font-size: .72rem; color: var(--clr-secondary); font-weight: 600; margin-top: .1rem; }
.mpop-delete {
    margin-top: .4rem;
    background: none;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: .72rem;
    cursor: pointer;
    padding: .15rem .5rem;
    align-self: flex-start;
}
.mpop-delete:hover { background: #e74c3c; color: #fff; }

/* ── Overlay bienvenue ── */
.map-welcome {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(13,40,24,.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    backdrop-filter: blur(3px);
    overflow-y: auto;
    padding: 2rem 1rem;
}
.map-welcome__card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    flex-shrink: 0;
    margin: auto 0;
}
.map-welcome__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.map-welcome__title { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.map-welcome__desc { font-size: .875rem; color: var(--clr-text-m); margin-bottom: 1.5rem; }
.map-welcome__geo { width: 100%; margin-bottom: .75rem; }
.map-welcome__or {
    font-size: .78rem;
    color: var(--clr-text-l);
    margin: .75rem 0;
    position: relative;
}
.map-welcome__or::before,
.map-welcome__or::after {
    content: '';
    display: block;
    width: 42%;
    height: 1px;
    background: var(--clr-border);
    position: absolute;
    top: 50%;
}
.map-welcome__or::before { left: 0; }
.map-welcome__or::after  { right: 0; }

.map-welcome__search-wrap { display: flex; gap: .5rem; margin-bottom: 1rem; }
.map-welcome__search-wrap .btn { flex-shrink: 0; white-space: nowrap; padding-left: .85rem; padding-right: .85rem; }
.map-address-input {
    flex: 1;
    min-width: 0;
    padding: .6rem .85rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    outline: none;
}
.map-address-input:focus { border-color: var(--clr-accent); }

.btn--secondary {
    background: var(--clr-accent-l);
    color: var(--clr-secondary);
    border-color: var(--clr-accent-l);
}
.btn--secondary:hover { background: #c3e6cb; border-color: #c3e6cb; }
.btn--ghost {
    background: none;
    color: var(--clr-text-m);
    border-color: var(--clr-border);
    font-size: .82rem;
    width: 100%;
}
.btn--ghost:hover { background: var(--clr-bg); }
.map-welcome__skip { margin-top: .25rem; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — badge compteur
   ═══════════════════════════════════════════════════════════ */

.sidebar__link { position: relative; }
.sidebar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e9c46a;
    color: #1a3c2e;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 9px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   BADGES STATUT PROMOTION
   ═══════════════════════════════════════════════════════════ */

.badge--pending  { background: #fef3c7; color: #92400e; border: 1px solid #f0c96d; }
.badge--approved { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge--rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 20px; }

/* ═══════════════════════════════════════════════════════════
   PROMOS MEMBRES
   ═══════════════════════════════════════════════════════════ */

.promos-page { }
.promos-page__intro {
    color: var(--clr-text-m);
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.promo-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.promo-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e9c46a;
    color: #1a3c2e;
    font-size: .8rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 20px;
}
.promo-card__body {
    padding: 1.25rem 1.25rem .75rem;
    flex: 1;
}
.promo-card__partner {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--clr-primary);
    margin-bottom: .35rem;
}
.promo-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    padding-right: 4rem;
}
.promo-card__desc {
    font-size: .88rem;
    color: var(--clr-text-m);
    line-height: 1.55;
}
.promo-card__footer {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.25rem;
    border-top: 1px solid var(--clr-border);
    font-size: .78rem;
    color: var(--clr-text-m);
    background: var(--clr-bg);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN / MEMBERS
   ═══════════════════════════════════════════════════════════ */

.sidebar__section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    padding: 1rem 1rem .25rem;
    list-style: none;
}

.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.data-table th,
.data-table td {
    padding: .6rem .75rem;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}
.data-table th {
    font-weight: 600;
    background: var(--clr-bg);
    color: var(--clr-text-m);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.data-table tbody tr:hover { background: var(--clr-bg); }
.data-table .row--inactive { opacity: .55; }
.table-actions { display: flex; gap: .35rem; align-items: center; }

.select-inline {
    border: 1px solid var(--clr-border);
    border-radius: .3rem;
    padding: .2rem .4rem;
    font-size: .82rem;
    background: #fff;
    cursor: pointer;
}

.btn--xs {
    padding: .2rem .55rem;
    font-size: .78rem;
    border-radius: .3rem;
}
.btn--danger {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}
.btn--danger:hover { background: #c53030; border-color: #c53030; }

/* basket dot in partner table */
.basket-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: .35rem;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════
   BASKETS
   ═══════════════════════════════════════════════════════════ */

.basket-items { margin-top: 2rem; }
.empty-state--sm { padding: 1.5rem; text-align: center; }
.empty-state--sm p { color: var(--clr-text-m); }

.form-group--row {
    display: flex;
    gap: 1rem;
}
.form-group--row > div { flex: 1; }

/* ═══════════════════════════════════════════════════════════
   PRICING — 3 cols + partner card
   ═══════════════════════════════════════════════════════════ */

.pricing__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}
@media (max-width: 900px) {
    .pricing__grid--3 { grid-template-columns: 1fr; }
}

.pricing-card--partner {
    border-color: #b45309;
}
.pricing-card__badge--partner {
    background: #b45309;
}
.btn--partner {
    background: #b45309;
    color: #fff;
    border-color: #b45309;
}
.btn--partner:hover { background: #fff; color: #b45309; border-color: #b45309; }

/* ═══════════════════════════════════════════════════════════
   PLAN / ABONNEMENT
   ═══════════════════════════════════════════════════════════ */

.plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1.5px solid var(--clr-border, #e5e7eb);
    background: #fff;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.plan-card--pro         { border-color: #2d6a4f; background: #f0faf4; }
.plan-card--cancelling  { border-color: #f4a261; background: #fff8f0; }
.plan-card__info        { display: flex; align-items: center; gap: .75rem; flex: 1; flex-wrap: wrap; }
.plan-card__text        { font-size: .9rem; color: var(--clr-text, #111827); }
.plan-card__actions     { display: flex; gap: .5rem; flex-shrink: 0; }

.plan-badge             { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.plan-badge--free       { background: #e5e7eb; color: #374151; }
.plan-badge--pro        { background: #2d6a4f; color: #fff; }

.btn--danger {
    background: #dc2626; color: #fff; border-color: #dc2626;
}
.btn--danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* ═══════════════════════════════════════════════════════════
   AFFILIATION
   ═══════════════════════════════════════════════════════════ */

.affiliate-welcome {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--clr-border, #e5e7eb);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}
.affiliate-welcome__icon { font-size: 3rem; margin-bottom: 1rem; }
.affiliate-welcome h2    { font-size: 1.4rem; margin-bottom: .75rem; }
.affiliate-welcome p     { color: var(--clr-muted, #6b7280); margin-bottom: 1.25rem; }
.affiliate-welcome__list {
    text-align: left;
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--clr-text, #111827);
}
.affiliate-welcome__list li { margin-bottom: .4rem; }

.affiliate-reflink {
    background: var(--clr-bg, #f9fafb);
    border: 1px solid var(--clr-border, #e5e7eb);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.affiliate-reflink__label { font-weight: 600; margin-bottom: .5rem; }
.affiliate-reflink__row   { display: flex; gap: .5rem; align-items: center; }
.affiliate-reflink__input { flex: 1; font-size: .85rem; font-family: monospace; }
.affiliate-reflink__hint  { margin-top: .5rem; font-size: .8rem; color: var(--clr-muted, #6b7280); }

.inline-form { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .map-panel { width: 100%; max-width: 320px; }
    .map-placement-bar { bottom: 1rem; font-size: .8rem; padding: .6rem 1rem; }
    .map-placement-bar__hint { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.profile-page {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.profile-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.profile-card__title {
    font-size: 1rem;
    font-weight: 700;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    margin: 0;
}
.profile-card__fields {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-card__fields--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.profile-card__footer {
    padding: .9rem 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg);
    display: flex;
    justify-content: flex-end;
}
.form-hint {
    font-size: .76rem;
    font-style: italic;
    color: var(--clr-text-m);
    margin-top: .25rem;
}
@media (max-width: 500px) {
    .profile-card__fields--2col { grid-template-columns: 1fr; }
    .profile-card__fields, .profile-card__title, .profile-card__footer { padding-left: 1rem; padding-right: 1rem; }
}

/* ─── Form components (shared with auth) ────────────────────────────────── */
.form-label {
    font-size: .825rem; font-weight: 600;
    color: var(--clr-text);
    display: flex; justify-content: space-between; align-items: center;
    letter-spacing: .01em;
}
.form-input {
    width: 100%;
    padding: .72rem 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius);
    font-size: 16px; font-family: inherit;
    color: var(--clr-text); background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.form-input:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(82,183,136,.18);
}
.form-input::placeholder { color: #aabfb2; }
.form-hint { font-size: .76rem; color: var(--clr-text-l); }
