/* =====================================================================
   Miamsolidaire — Feuille de style globale
   Palette : vert nature, crème, accent orange
   Approche mobile-first, grilles qui s'empilent sous 768px
   ===================================================================== */

:root {
  --green-900: #14532d;
  --green-700: #1e7a3c;
  --green-600: #2e9e4f;
  --green-500: #43a047;
  --green-200: #c6e5ce;
  --green-100: #e7f4ea;
  --green-50: #f2f9f4;
  --orange: #ef7a1f;
  --orange-dark: #d9660f;
  --orange-50: #fff5ea;
  --cream: #fbfaf6;
  --ink: #17241d;
  --ink-soft: #34463b;
  --muted: #6a7a70;
  --line: #e3e8e2;
  --line-soft: #eef1ec;
  --white: #ffffff;
  --danger: #d24545;
  --danger-50: #fdecec;
  --blue: #3b7ddd;
  --shadow-sm: 0 1px 2px rgba(20, 40, 25, .06), 0 1px 3px rgba(20, 40, 25, .04);
  --shadow-md: 0 6px 18px rgba(20, 40, 25, .08);
  --shadow-lg: 0 18px 44px rgba(20, 40, 25, .14);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --header-h: 64px;
  --nav-h: 64px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.muted-text { color: var(--muted); font-size: .94rem; }
.fine-print { color: var(--muted); font-size: .82rem; margin-top: .8rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .68rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 4px 14px rgba(30, 122, 60, .22); }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-outline { border-color: var(--green-200); background: var(--white); color: var(--green-700); }
.btn-outline:hover { border-color: var(--green-600); background: var(--green-50); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-700); }
.btn-light { background: #fff; color: var(--green-800, var(--green-700)); font-weight: 700; }
.btn-light:hover { background: var(--green-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b93a3a; }
.btn-lg { padding: .88rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .48rem .85rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn.danger { color: var(--danger); }
.link {
  background: none; border: 0; padding: 0;
  color: var(--green-700); font-weight: 600; cursor: pointer; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.link.small { font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(30, 122, 60, .25);
}
.brand-text { font-size: 1.16rem; letter-spacing: -.02em; font-weight: 600; }
.brand-text strong { font-weight: 800; color: var(--green-700); }
.brand-sm .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
.brand-sm .brand-text { font-size: 1.04rem; }

/* =====================================================================
   PAGE D'ACCUEIL
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 246, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 40, 25, .05); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.main-nav { display: none; gap: 1.5rem; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .94rem; }
.main-nav a:hover { color: var(--green-700); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.header-actions .btn-ghost { display: none; }
.nav-toggle {
  display: grid; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: .2rem;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.main-nav.open {
  display: flex; flex-direction: column; gap: .2rem;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; padding: 1rem 20px 1.3rem; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.main-nav.open a { padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }

/* Hero */
.hero { padding: 2.6rem 0 3rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% -20% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(67, 160, 71, .16), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 2.4rem; align-items: center; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green-100); color: var(--green-700);
  padding: .38rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .7rem; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(239, 122, 31, .32) 62%);
  color: var(--green-700);
}
.hero .lead { font-size: 1.06rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.9rem; }
.hero-stats { display: grid; grid-template-columns: 1fr; gap: .9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--green-700); line-height: 1.1; }
.hero-stat span { font-size: .84rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hero-collage img { border-radius: var(--radius); object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }
.hero-collage img:first-child { grid-row: span 2; height: 100%; min-height: 260px; }
.hero-collage img:not(:first-child) { height: 128px; }
.hero-badge {
  position: absolute; bottom: -14px; left: 8px;
  display: flex; align-items: center; gap: .6rem;
  background: #fff; padding: .65rem .95rem; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.hero-badge strong { display: block; font-size: .92rem; }
.hero-badge span { font-size: .74rem; color: var(--muted); }
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(67, 160, 71, .18); }

/* Bandeau stats */
.band { background: var(--green-900); color: #fff; padding: 1.6rem 0; }
.band-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
.band-item strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.band-item span { font-size: .82rem; color: rgba(255, 255, 255, .72); }

/* Sections */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--green-50); }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; font-weight: 700; color: var(--orange); margin-bottom: .6rem;
}
.section-head p { color: var(--muted); font-size: 1rem; margin: 0; }
.section-cta { text-align: center; margin-top: 2rem; }

/* Etapes */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute; top: -14px; left: 1.5rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; box-shadow: 0 6px 14px rgba(239, 122, 31, .3);
}
.step-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: var(--green-100); color: var(--green-700); margin: .4rem 0 1rem;
}
.step-card h3 { margin-bottom: .4rem; }
.step-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Cartes aliment (partagees landing + app) */
.food-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.food-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.food-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.food-media { position: relative; aspect-ratio: 4 / 3; background: var(--green-100); overflow: hidden; }
.food-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.food-card:hover .food-media img { transform: scale(1.05); }
.food-chip {
  position: absolute; top: .6rem; left: .6rem;
  background: rgba(255, 255, 255, .94); color: var(--green-900);
  padding: .26rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.food-chip.type-echange { background: var(--orange); color: #fff; }
.food-dist {
  position: absolute; top: .6rem; right: .6rem;
  background: rgba(20, 83, 45, .86); color: #fff;
  padding: .26rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
}
.food-body { padding: .95rem 1.05rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.food-body h3 { font-size: 1.02rem; margin: 0; }
.food-desc { color: var(--muted); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .8rem; color: var(--muted); margin-top: auto; }
.food-meta span { display: inline-flex; align-items: center; gap: .32rem; }
.food-meta svg { flex: 0 0 auto; }
.food-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); margin-top: .3rem; }
.food-owner { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft); min-width: 0; }
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-initials {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .78rem; flex: 0 0 auto;
}
.badge-days { font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--green-100); color: var(--green-700); white-space: nowrap; }
.badge-days.warn { background: var(--orange-50); color: var(--orange-dark); }
.badge-days.urgent { background: var(--danger-50); color: var(--danger); }
.card-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-pill { font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.status-pill.reserve { background: var(--orange-50); color: var(--orange-dark); }
.status-pill.donne { background: #eef1ec; color: var(--muted); }
.status-pill.indisponible { background: var(--danger-50); color: var(--danger); }
.status-pill.acceptee { background: var(--green-100); color: var(--green-700); }
.status-pill.en_attente { background: var(--orange-50); color: var(--orange-dark); }
.status-pill.refusee, .status-pill.annulee { background: #f1f1f1; color: var(--muted); }
.status-pill.remise_confirmee { background: var(--green-100); color: var(--green-700); }
.status-pill.nouveau { background: var(--danger-50); color: var(--danger); }
.status-pill.traite { background: var(--green-100); color: var(--green-700); }
.status-pill.rejete { background: #f1f1f1; color: var(--muted); }

/* Fonctionnalites */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: .9rem;
}
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.feature-card h3 { margin-bottom: .35rem; }

/* Impact */
.section-impact { background: #fff; }
.impact-grid { display: grid; gap: 2.2rem; align-items: center; }
.impact-list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .7rem; }
.impact-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.impact-list svg { color: var(--green-600); flex: 0 0 auto; margin-top: 3px; }
.impact-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

/* Temoignages */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.testimonial-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; margin: 0; box-shadow: var(--shadow-sm);
}
.testimonial-card blockquote { margin: 0 0 1rem; font-size: .97rem; color: var(--ink-soft); font-style: italic; }
.testimonial-card figcaption { display: flex; flex-direction: column; }
.testimonial-card figcaption strong { font-size: .92rem; }
.testimonial-card figcaption span { font-size: .8rem; color: var(--muted); }

/* CTA final */
.cta-final { padding: 3rem 0 3.6rem; }
.cta-box {
  background: linear-gradient(135deg, var(--green-700), var(--green-600) 60%, #4fb869);
  color: #fff; border-radius: var(--radius-lg); padding: 2.2rem 1.6rem;
  display: grid; gap: 1.4rem; box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; margin-bottom: .4rem; }
.cta-box p { color: rgba(255, 255, 255, .88); margin: 0; }
.cta-box .btn { justify-self: start; }

/* Footer */
.site-footer { background: #10231a; color: rgba(255, 255, 255, .74); padding: 2.6rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text strong { color: #7dd396; }
.footer-brand p { font-size: .9rem; margin-top: .8rem; max-width: 26rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .7rem; }
.footer-col a { display: block; color: rgba(255, 255, 255, .72); padding: .28rem 0; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 1.8rem; padding-top: 1.2rem; }
.footer-bottom p { font-size: .82rem; margin: 0; }
.footer-bottom a { color: #7dd396; }

/* Page legale */
.legal-main { padding: 2.6rem 0 3.4rem; }
.legal-container { max-width: 800px; }
.legal-container h1 { margin-bottom: .3rem; }
.legal-updated { color: var(--muted); font-size: .86rem; margin-bottom: 2rem; }
.legal-container section { margin-bottom: 1.9rem; }
.legal-container h2 { font-size: 1.18rem; margin-bottom: .5rem; color: var(--green-800, var(--green-700)); }
.legal-container p { color: var(--ink-soft); font-size: .95rem; }

/* =====================================================================
   FORMULAIRES / MODALES / TOASTS
   ===================================================================== */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea,
.filter-search input, .panel-toolbar select, .panel-toolbar input[type="search"] {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(67, 160, 71, .15);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.form .form-error, .form-error { color: var(--danger); font-size: .86rem; min-height: 0; margin-bottom: .8rem; }
.form .form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 1rem; }
.form-wide { padding: 1.5rem; }

.radio-cards { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.radio-card { cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card-body {
  display: flex; flex-direction: column; gap: .15rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; color: var(--ink-soft); transition: .18s; background: #fff;
}
.radio-card-body svg { color: var(--green-600); margin-bottom: .3rem; }
.radio-card-body strong { font-size: .95rem; color: var(--ink); }
.radio-card-body em { font-style: normal; font-size: .82rem; color: var(--muted); }
.radio-card input:checked + .radio-card-body {
  border-color: var(--green-500); background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, .12);
}

.dropzone {
  display: grid; place-items: center; gap: .35rem; text-align: center;
  border: 2px dashed var(--green-200); border-radius: var(--radius);
  padding: 1.6rem 1rem; background: var(--green-50); color: var(--green-700);
  cursor: pointer; transition: .18s; position: relative; overflow: hidden;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--green-500); background: var(--green-100); }
.dropzone strong { font-size: .92rem; }
.dropzone em { font-style: normal; font-size: .78rem; color: var(--muted); }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone.has-photo svg, .dropzone.has-photo strong, .dropzone.has-photo em { visibility: hidden; }
.tip-card { background: var(--orange-50); border: 1px solid #f8dfc4; border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 1.2rem; }
.tip-card h4 { font-size: .92rem; margin-bottom: .5rem; color: var(--orange-dark); }
.tip-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .87rem; }
.tip-card li { margin-bottom: .35rem; }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 28, 18, .55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg);
  padding: 1.7rem 1.4rem; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: modalIn .22s ease;
}
.modal-card.modal-wide { max-width: 620px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card h3 { margin-bottom: .3rem; padding-right: 2rem; }
.modal-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.modal-close {
  position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: var(--green-50); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: var(--green-100); color: var(--green-700); }
.modal-alt { font-size: .9rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.demo-hint {
  margin-top: 1.2rem; background: var(--green-50); border: 1px dashed var(--green-200);
  border-radius: var(--radius-sm); padding: .7rem .9rem; display: grid; font-size: .82rem; color: var(--ink-soft);
}
.demo-hint span { font-weight: 600; color: var(--green-700); }

/* Detail aliment */
.detail-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--green-100); margin-bottom: 1.1rem; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.detail-meta { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 1rem 0; }
.detail-meta div { background: var(--green-50); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.detail-meta span { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.detail-meta strong { font-size: .92rem; }
.detail-desc { color: var(--ink-soft); font-size: .94rem; }
.detail-owner { display: flex; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1rem 0; }
.detail-owner strong { display: block; font-size: .92rem; }
.detail-owner span { font-size: .8rem; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Toasts */
.toast-wrap { position: fixed; bottom: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: .5rem; width: min(92vw, 420px); }
.toast {
  background: var(--ink); color: #fff; padding: .8rem 1rem; border-radius: 12px;
  font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
  display: flex; align-items: center; gap: .6rem;
}
.toast.ok { background: var(--green-700); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty-state {
  text-align: center; padding: 2.6rem 1rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
  display: grid; place-items: center; gap: .6rem; grid-column: 1 / -1;
}
.empty-state svg { color: var(--green-200); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =====================================================================
   APPLICATION
   ===================================================================== */
.app-body { background: var(--cream); padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
.app-header {
  position: sticky; top: 0; z-index: 70; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.app-header-inner { display: flex; align-items: center; gap: .7rem; padding: .6rem 16px; max-width: 1240px; margin: 0 auto; }
.header-search { display: none; position: relative; flex: 1; max-width: 460px; margin: 0 auto; }
.header-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-search input { width: 100%; padding: .58rem .9rem .58rem 2.35rem; border-radius: 999px; border: 1px solid var(--line); background: var(--green-50); }
.header-search input:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 3px rgba(67, 160, 71, .13); }
.header-right { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; transition: .16s;
}
.icon-btn:hover { background: var(--green-50); color: var(--green-700); }
.badge-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; overflow: hidden; cursor: pointer; background: var(--green-100); display: grid; place-items: center; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn .avatar-initials { width: 100%; height: 100%; font-size: .95rem; }
.avatar-menu {
  position: absolute; top: calc(var(--header-h) - 6px); right: 16px; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 232px; padding: .5rem; display: grid; gap: .1rem;
  animation: modalIn .16s ease;
}
.avatar-menu-head { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--line-soft); margin-bottom: .35rem; }
.avatar-menu-head strong { display: block; font-size: .92rem; }
.avatar-menu-head span { font-size: .8rem; color: var(--muted); }
.avatar-menu button, .avatar-menu a {
  text-align: left; background: none; border: 0; padding: .58rem .7rem; border-radius: 9px;
  font-size: .9rem; color: var(--ink-soft); cursor: pointer; width: 100%; font-weight: 500;
}
.avatar-menu button:hover, .avatar-menu a:hover { background: var(--green-50); color: var(--green-700); }
.avatar-menu .danger { color: var(--danger); }
.avatar-menu .danger:hover { background: var(--danger-50); color: var(--danger); }
.avatar-menu-sep { height: 1px; background: var(--line-soft); margin: .3rem 0; }

/* Navigation app */
.app-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(20, 40, 25, .06);
}
.nav-item {
  position: relative; border: 0; background: none; cursor: pointer;
  display: grid; justify-items: center; gap: .2rem; padding: .4rem .2rem;
  font-size: .66rem; font-weight: 600; color: var(--muted); border-radius: 10px;
}
.nav-item svg { color: currentColor; }
.nav-item.active { color: var(--green-700); }
.nav-item.active::after {
  content: ''; position: absolute; top: -3px; width: 26px; height: 3px; border-radius: 3px; background: var(--green-600);
}
.nav-item-notif { display: none; }
.nav-badge {
  position: absolute; top: 2px; right: 50%; transform: translateX(18px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: .62rem; font-weight: 700;
  display: grid; place-items: center;
}

/* Vues */
.app-main { max-width: 1240px; margin: 0 auto; padding: 1.2rem 16px 2rem; min-height: 60vh; }
.view { display: none; }
.view.active { display: block; animation: viewIn .24s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem; margin-bottom: 1.3rem; }
.view-head h1 { margin: 0 0 .2rem; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.view-sub { color: var(--muted); font-size: .93rem; margin: 0; }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.3rem; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.mini-stat strong { display: block; font-size: 1.25rem; color: var(--green-700); line-height: 1.1; }
.mini-stat span { font-size: .78rem; color: var(--muted); }

/* Barre de filtres */
.filter-bar {
  display: grid; grid-template-columns: 1fr; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
.filter-search { position: relative; }
.filter-search svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-search input { padding-left: 2.3rem !important; }
.filter-bar select { padding: .62rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .86rem; color: var(--muted); margin-bottom: .9rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1.5rem; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 600; color: var(--ink-soft);
}
.pagination button.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination button:hover:not(.active) { border-color: var(--green-500); color: var(--green-700); }

/* Publication */
.publish-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }

/* Listes */
.list-stack { display: grid; gap: .8rem; }
.list-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem; display: grid; grid-template-columns: 1fr; gap: .8rem; box-shadow: var(--shadow-sm);
}
.list-card-media { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); object-fit: cover; background: var(--green-100); }
.list-card h3 { font-size: 1rem; margin: 0 0 .2rem; }
.list-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.list-card .muted-text { margin: 0; }
.list-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: var(--green-50); color: var(--green-700); border-radius: 999px; padding: .2rem .6rem; font-size: .76rem; font-weight: 600; }
.resa-message { background: var(--green-50); border-left: 3px solid var(--green-500); border-radius: 8px; padding: .55rem .75rem; font-size: .88rem; color: var(--ink-soft); font-style: italic; }

/* Segmented */
.segmented { display: inline-flex; background: var(--green-50); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented button {
  border: 0; background: none; padding: .5rem .95rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.segmented button.active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }

/* Messagerie */
.messaging { display: grid; grid-template-columns: 1fr; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 60vh; }
.conv-list { display: grid; align-content: start; gap: .2rem; padding: .6rem; max-height: 70vh; overflow-y: auto; }
.conv-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  padding: .7rem; border-radius: var(--radius-sm); border: 0; background: none;
  cursor: pointer; text-align: left; width: 100%;
}
.conv-item:hover { background: var(--green-50); }
.conv-item.active { background: var(--green-100); }
.conv-item strong { font-size: .9rem; }
.conv-item p { margin: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.conv-item time { font-size: .72rem; color: var(--muted); }
.conv-item .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.conv-thread { display: none; flex-direction: column; border-left: 1px solid var(--line); min-height: 60vh; }
.messaging.thread-open .conv-list { display: none; }
.messaging.thread-open .conv-thread { display: flex; }
.thread-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.thread-head strong { font-size: .95rem; display: block; }
.thread-head span { font-size: .78rem; color: var(--muted); }
.thread-back { display: grid; }
.thread-body { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .6rem; align-content: start; }
.bubble { max-width: 78%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; background: var(--green-50); color: var(--ink); justify-self: start; }
.bubble.mine { background: var(--green-700); color: #fff; justify-self: end; }
.bubble time { display: block; font-size: .68rem; opacity: .7; margin-top: .25rem; }
.thread-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.thread-form input { flex: 1; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 999px; }
.thread-form input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(67, 160, 71, .13); }

/* Notifications */
.notif-item {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem;
}
.notif-item.unread { background: var(--green-50); border-color: var(--green-200); }
.notif-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); flex: 0 0 auto; }
.notif-item strong { font-size: .92rem; display: block; }
.notif-item p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.notif-item time { font-size: .74rem; color: var(--muted); display: block; margin-top: .3rem; }

/* Profil */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.profile-card { text-align: center; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto .8rem; overflow: hidden; background: var(--green-100); display: grid; place-items: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .avatar-initials { width: 100%; height: 100%; font-size: 2rem; }
.profile-card h2 { font-size: 1.25rem; margin-bottom: .1rem; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1.1rem; }
.profile-stats div { background: var(--green-50); border-radius: var(--radius-sm); padding: .7rem .5rem; }
.profile-stats strong { display: block; font-size: 1.3rem; color: var(--green-700); line-height: 1.1; }
.profile-stats span { font-size: .76rem; color: var(--muted); }

/* =====================================================================
   ADMINISTRATION
   ===================================================================== */
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(160deg, var(--green-50), var(--cream)); }
.admin-login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.6rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.admin-login-card .brand { margin-bottom: 1.4rem; }
.admin-aside, .admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 258px; background: #10231a; color: rgba(255, 255, 255, .8);
  padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1rem; z-index: 100;
  transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
}
.admin-sidebar.open { transform: none; }
.admin-sidebar .brand-text { color: #fff; }
.admin-sidebar .brand-text strong { color: #7dd396; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav button {
  display: flex; align-items: center; gap: .65rem;
  background: none; border: 0; color: rgba(255, 255, 255, .74); font-weight: 600; font-size: .9rem;
  padding: .68rem .75rem; border-radius: 11px; cursor: pointer; text-align: left;
}
.admin-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav button.active { background: var(--green-700); color: #fff; }
.admin-side-foot { margin-top: auto; display: grid; gap: .5rem; }
.admin-user { display: flex; align-items: center; gap: .6rem; padding: .6rem .4rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.admin-user strong { display: block; font-size: .86rem; color: #fff; }
.admin-user span { font-size: .74rem; }
.admin-side-foot .btn { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side-foot .btn:hover { background: rgba(255, 255, 255, .16); }
.admin-side-foot .danger { color: #ff9d9d; }
.admin-overlay { position: fixed; inset: 0; background: rgba(10, 24, 15, .5); z-index: 95; }

.admin-shell { min-height: 100vh; }
.admin-topbar {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: .8rem 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.admin-topbar h1 { font-size: 1.12rem; margin: 0; }
.admin-topbar-date { margin-left: auto; font-size: .82rem; color: var(--muted); }
.admin-burger { display: grid; }
.admin-content { padding: 1.2rem 1rem 3rem; max-width: 1240px; margin: 0 auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: viewIn .24s ease; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.3rem; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.kpi-card strong { display: block; font-size: 1.7rem; line-height: 1.05; color: var(--green-700); }
.kpi-card span { font-size: .8rem; color: var(--muted); }
.kpi-card.accent strong { color: var(--orange); }
.chart-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.chart-card h3 { font-size: 1rem; margin-bottom: .9rem; }
.chart-box { position: relative; height: 260px; }
.panel-toolbar { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1rem; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .88rem; }
.data-table th {
  text-align: left; padding: .8rem .9rem; background: var(--green-50); color: var(--ink-soft);
  font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--green-50); }
.cell-user { display: flex; align-items: center; gap: .6rem; }
.cell-user strong { display: block; }
.cell-user span { font-size: .78rem; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-mini { font-size: .74rem; padding: .16rem .5rem; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 600; white-space: nowrap; }
.tag-mini.off { background: #f1f1f1; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; border-bottom: 1px solid var(--line-soft); padding-bottom: .5rem; }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list strong { text-align: right; }

/* =====================================================================
   RESPONSIVE — passages multi-colonnes a partir de 768px
   ===================================================================== */
@media (min-width: 640px) {
  .mini-stats { grid-template-columns: repeat(4, 1fr); }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .radio-cards { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .list-card { grid-template-columns: 200px 1fr; align-items: start; }
  .list-card-media { aspect-ratio: 4/3; }
  .toast-wrap { bottom: 20px; }
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .band-grid { grid-template-columns: repeat(4, 1fr); }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-toolbar { grid-template-columns: 1fr auto auto; align-items: center; }
  .detail-meta { grid-template-columns: repeat(3, 1fr); }
  .filter-bar { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto auto; align-items: center; }
  .messaging { grid-template-columns: 320px 1fr; }
  .conv-thread { display: flex; }
  .messaging.thread-open .conv-list { display: grid; }
  .thread-back { display: none; }
  .app-main { padding: 1.6rem 20px 2.4rem; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .hero { padding: 3.6rem 0 4.2rem; }
  .hero-collage img:first-child { min-height: 340px; }
  .hero-collage img:not(:first-child) { height: 164px; }
  .food-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-grid { grid-template-columns: 1.05fr 1fr; }
  .cta-box { grid-template-columns: 1fr auto; align-items: center; padding: 3rem 2.6rem; }
  .cta-box .btn { justify-self: end; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .section { padding: 4.6rem 0; }
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions .btn-ghost { display: inline-flex; }
  .publish-grid { grid-template-columns: 1.6fr 1fr; }
  .profile-grid { grid-template-columns: 320px 1fr; }
  .card.profile-card { grid-row: span 2; align-self: start; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }

  /* Admin desktop : sidebar permanente */
  .admin-sidebar { transform: none; }
  .admin-burger { display: none; }
  .admin-shell { margin-left: 258px; }
  .admin-content { padding: 1.6rem 1.6rem 3rem; }
  .admin-topbar { padding: 1rem 1.6rem; }
}

@media (min-width: 1024px) {
  .admin-nav { gap: .25rem; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Grands ecrans : navigation verticale cachee */
@media (min-width: 900px) {
  .nav-item-notif { display: grid; }
}

/* =====================================================================
   APP — Navigation en barre horizontale sur grands ecrans
   ===================================================================== */
@media (min-width: 900px) {
  .app-body { padding-bottom: 0; }
  .app-nav {
    position: sticky; top: var(--header-h); bottom: auto;
    display: flex; justify-content: center; gap: .25rem;
    padding: .45rem 16px; border-top: 0; border-bottom: 1px solid var(--line);
    box-shadow: none; background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
  }
  .app-nav .nav-item {
    grid-auto-flow: column; align-items: center; gap: .5rem;
    padding: .5rem .95rem; font-size: .85rem; border-radius: 999px;
  }
  .app-nav .nav-item.active { background: var(--green-100); }
  .nav-item.active::after { display: none; }
  .nav-badge { position: static; transform: none; }
  .header-search { display: block; }
  .toast-wrap { bottom: 24px; }
}

@media (min-width: 1200px) {
  .app-nav .nav-item { padding: .55rem 1.15rem; }
}

/* =====================================================================
   PETITS ECRANS — ajustements de lisibilite (barre de navigation, entete)
   ===================================================================== */
.app-nav .nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-nav .nav-item { min-width: 0; padding-left: .1rem; padding-right: .1rem; }

@media (max-width: 420px) {
  .app-nav .nav-item { font-size: .6rem; gap: .12rem; }
  .app-nav .nav-item svg { width: 18px; height: 18px; }
  .header-inner { gap: .4rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-text { font-size: 1rem; }
  .header-actions .btn { padding: .48rem .78rem; font-size: .82rem; }
  .container { padding: 0 15px; }
  .app-main { padding-left: 13px; padding-right: 13px; }
  .modal-card { padding: 1.4rem 1.1rem; }
}

@media (max-width: 359px) {
  .header-actions .btn-primary { display: none; }
}

/* Badge de compteur dans la barre laterale d'administration */
.admin-nav .nav-badge { position: static; transform: none; margin-left: auto; }
