/* =====================================================================
   Pattes de Velours — Espace de Sandra (admin)
   Réutilise les variables et le style « autocollant » de style.css.
   ===================================================================== */

body.admin {
    background-color: var(--cream);
    background-image: radial-gradient(rgba(22,163,148,.07) 2px, transparent 2px);
    background-size: 26px 26px;
}

/* ------------------------------ Barre admin --------------------------- */
.abar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .7rem clamp(1rem, 4vw, 2rem);
    background: var(--paper);
    border-bottom: 2.5px solid var(--outline);
}
.abar__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.abar__brand .nav__paw { width: 38px; height: 38px; }
.abar__brand b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.abar__brand small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.atabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-left: .5rem; }
.atab { padding: .5rem .9rem; border-radius: var(--r-pill); font-family: var(--f-display); font-weight: 500; color: var(--ink-2); }
.atab:hover { background: rgba(22,163,148,.12); color: var(--teal-deep); }
.atab.is-active { color: #fff; background: var(--teal); }
.abar__right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.alogout { color: var(--coral-deep); font-family: var(--f-display); font-weight: 600; padding: .5rem .9rem; border-radius: var(--r-pill); border: 2.5px solid var(--outline); box-shadow: 3px 3px 0 rgba(31,74,68,.12); }
.alogout:hover { background: var(--coral); color: #fff; }

/* ------------------------------ Contenu ------------------------------- */
.awrap { max-width: 1080px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2rem) 4rem; }
.ahead { margin-bottom: 1.6rem; }
.ahead h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .2rem 0 .2rem; }
.ahead p { color: var(--muted); margin: 0; font-weight: 600; }
.ahead .kicker { font-size: 1.4rem; }

.aflash { margin: 0 0 1.4rem; padding: .9rem 1.1rem; border-radius: 14px; font-weight: 700; border: 2.5px solid; }
.aflash--ok  { color: var(--teal-deep); background: var(--mint); border-color: var(--teal); }
.aflash--err { color: var(--coral-deep); background: var(--blush); border-color: var(--coral); }

/* Cartes tableau de bord */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; }
.dcard { display: block; padding: 1.4rem; border-radius: var(--r); background: var(--paper); border: 2.5px solid var(--outline); box-shadow: var(--sticker); color: var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.dcard:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 rgba(31,74,68,.16); }
.dcard__ic { font-size: 1.9rem; }
.dcard__n { font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--teal-deep); line-height: 1; }
.dcard__t { font-family: var(--f-display); font-weight: 600; margin: .3rem 0 .1rem; }
.dcard__d { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* Panneaux */
.panel { background: var(--paper); border: 2.5px solid var(--outline); border-radius: var(--r); box-shadow: var(--sticker); padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1.4rem; }
.panel h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 1rem; }
.acols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 1.4rem; align-items: start; }

/* Formulaires admin */
.arow { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.arow--3 { grid-template-columns: 1fr 1fr 1fr; }
.aactions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 600; }
select.afield, input.afield, textarea.afield {
    width: 100%; font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--ink);
    padding: .7rem .9rem; border: 2.5px solid var(--line); border-radius: 14px; background: var(--cream); outline: none; resize: vertical;
}
.afield:focus { border-color: var(--teal); box-shadow: 3px 3px 0 rgba(22,163,148,.18); background: var(--paper); }
.acheck { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 500; color: var(--ink-2); cursor: pointer; }
.acheck input { width: 18px; height: 18px; accent-color: var(--teal); }

/* Listes */
.alist { display: grid; gap: .8rem; }
.arowitem { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 2.5px solid var(--outline); border-radius: 16px; background: var(--paper); box-shadow: 3px 3px 0 rgba(31,74,68,.1); }
.arowitem__main { min-width: 0; flex: 1; }
.arowitem__title { font-family: var(--f-display); font-weight: 600; }
.arowitem__meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.arowitem__price { font-family: var(--f-display); font-weight: 700; color: var(--teal-deep); white-space: nowrap; }
.aico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--mint); border: 2.5px solid var(--outline); }
.abadge { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-content: center; text-align: center; color: #fff; background: var(--teal); border: 2.5px solid var(--outline); }
.abadge b { font-family: var(--f-display); font-size: 1.25rem; line-height: 1; }
.abadge small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.btn--xs { padding: .45rem .85rem; font-size: .85rem; box-shadow: 3px 3px 0 rgba(31,74,68,.14); }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--edit { background: var(--paper); }
.btn--edit:hover { background: var(--mint); }
.btn--del { background: var(--coral); color: #fff; }
.btn--del:hover { background: var(--coral-deep); }
.inline-form { display: inline; }

/* Galerie admin */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.gtile { border: 2.5px solid var(--outline); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 3px 3px 0 rgba(31,74,68,.1); }
.gtile__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--mint); }
.gtile__b { padding: .7rem .8rem; }
.empty-note { color: var(--muted); text-align: center; padding: 1.5rem; border: 3px dashed var(--line); border-radius: 16px; font-weight: 700; }

/* Connexion admin */
.alogin { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.alogin__card { width: 100%; max-width: 400px; background: var(--paper); border: 3px solid var(--outline); border-radius: var(--r); box-shadow: var(--sticker-lg); padding: 2.2rem; text-align: center; }
.alogin__card .nav__paw { width: 58px; height: 58px; margin: 0 auto .8rem; }
.alogin__card h1 { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; margin: 0 0 .3rem; }
.alogin__card p { color: var(--muted); margin: 0 0 1.4rem; font-weight: 600; }
.alogin__card .field { text-align: left; }
.alogin__back { display: inline-block; margin-top: 1rem; font-family: var(--f-display); font-weight: 600; }

@media (max-width: 720px) {
    .acols, .arow, .arow--3 { grid-template-columns: 1fr; }
    .atabs { order: 3; width: 100%; }
    .abar__right { order: 2; }
}
