/* ==========================================================================
   Jetecherche — feuille de style commune
   Approche mobile-first : tout est lisible a 390px, puis on elargit.
   ========================================================================== */

:root {
  --brand: #14496B;
  --brand-700: #0F3A56;
  --brand-100: #E3EDF4;
  --brand-50: #F1F6F9;
  --accent: #E4703A;
  --accent-600: #CE5F2C;
  --accent-100: #FBE9DF;
  --gold: #E9A83C;
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-2: #FBF9F6;
  --ink: #17242E;
  --muted: #6B7A85;
  --line: #E6E0D6;
  --success: #2E8B6B;
  --success-100: #E4F3ED;
  --danger: #C8442F;
  --danger-100: #FBE6E1;
  --warn: #B8721E;
  --warn-100: #FBF0DC;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(23, 36, 46, .06), 0 2px 8px rgba(23, 36, 46, .04);
  --shadow: 0 6px 24px rgba(23, 36, 46, .09);
  --font-title: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}

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

[hidden] { display: none !important; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: .98rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.link-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.link-more svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Layout -- */

.page {
  padding: 1rem 1rem calc(var(--nav-h) + 3.5rem + env(safe-area-inset-bottom));
  max-width: 1180px;
  margin: 0 auto;
}
.public-page { padding-top: 0; }
.section { margin: 2.25rem 0; }
.section-flat { margin: 1.75rem 0; }
.section-alt { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem 1.15rem; }
.section-warm { background: var(--accent-100); border-radius: var(--radius-lg); padding: 1.5rem 1.15rem; }

.section-head {
  display: flex; flex-direction: column; gap: .6rem;
  margin-bottom: 1.15rem;
}
.section-head h2 { margin-bottom: .15rem; }
.section-head p { margin: 0; font-size: .92rem; }
.section-head-center { text-align: center; align-items: center; }

.page-intro { padding: 1.25rem 0 1.5rem; }
.page-intro h1 { max-width: 22ch; }
.page-intro .lead { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.page-intro-compact { padding-bottom: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-100);
  padding: .4rem .7rem; border-radius: 999px; margin-bottom: .85rem;
}
.eyebrow svg { width: 15px; height: 15px; }
.eyebrow-light { background: rgba(255,255,255,.18); color: #fff; }

.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600; margin-bottom: 1rem;
}
.back-link svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Topbar -- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: calc(env(safe-area-inset-top) + .7rem) 1rem .7rem;
  background: rgba(247, 244, 239, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-title); font-size: 1.12rem; font-weight: 700; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .01em; }
.brand-footer { margin-bottom: .6rem; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 11px; flex: 0 0 auto;
}
.topbar-actions { display: flex; align-items: center; gap: .45rem; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; color: var(--ink);
  cursor: pointer; transition: .18s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--brand-100); color: var(--brand);
  font-weight: 700; font-size: .85rem; flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; font-size: .75rem; }
.avatar-lg { width: 58px; height: 58px; font-size: 1.1rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; }

/* --------------------------------------------------------------- Buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .94rem; cursor: pointer; transition: .18s;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost.danger { color: var(--danger); }
.btn-ghost.danger:hover { border-color: var(--danger); }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-round { width: 46px; height: 46px; padding: 0; border-radius: 50%; }

.btn-install {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 1rem);
  z-index: 45; box-shadow: var(--shadow);
}

/* ------------------------------------------------------------- Bottom nav -- */

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.nav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .45rem .1rem; border-radius: 14px;
  color: var(--muted); font-size: .66rem; font-weight: 600;
  text-decoration: none;
}
.nav-item:hover { text-decoration: none; color: var(--brand); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.is-active { color: var(--brand); background: var(--brand-50); }
.nav-badge {
  position: absolute; top: 2px; right: 50%; transform: translateX(1.35rem);
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .62rem; font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------------ Hero -- */

.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 55%, #0B2C41 100%);
  color: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.75rem 1.15rem 2.25rem;
  margin: 0 -1rem 1.5rem;
}
.hero-inner { max-width: 1180px; margin: 0 auto; }
.hero-copy h1 { font-size: 2rem; margin-bottom: .7rem; }
.hero-text { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 54ch; }
.hero-search {
  display: flex; flex-direction: column; gap: .55rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: .6rem; margin: 1.35rem 0 1.1rem;
}
.hero-search > svg { display: none; }
.hero-search input {
  border: 0; background: rgba(255,255,255,.95); border-radius: 12px;
  padding: .8rem .95rem; width: 100%; color: var(--ink);
}
.hero-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem .95rem; font-size: .82rem; color: rgba(255,255,255,.85); }
.hero-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-trust svg { width: 17px; height: 17px; }

.hero-visual { margin-top: 1.75rem; display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.hero-photo-b { grid-column: span 1; }
.hero-bubble {
  grid-column: span 2;
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius); padding: .7rem .9rem; box-shadow: var(--shadow);
}
.hero-bubble strong { display: block; font-family: var(--font-title); font-size: 1.2rem; }
.hero-bubble small { color: var(--muted); font-size: .78rem; }
.bubble-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-100); color: var(--accent); flex: 0 0 auto;
}

/* -------------------------------------------------------------- Stat band -- */

.statband {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1rem .9rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.statband-inner { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem .5rem; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-title); font-size: 1.55rem; color: var(--brand); }
.stat span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ----------------------------------------------------------------- Cards -- */

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-100); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.card:hover .card-photo img { transform: scale(1.04); }
.card-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; }
.card-body h3 a { color: var(--ink); }
.card-text {
  margin: 0; color: var(--muted); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; font-size: .78rem; color: var(--muted); }
.card-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: .15rem; }
.card-author { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.card-compact .card-photo { aspect-ratio: 16 / 11; }

.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--line);
}
.tag-cat { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.tag-live { background: var(--warn-100); color: var(--warn); border-color: #F0DDB9; }
.tag-success { background: var(--success-100); color: var(--success); border-color: #CBE7DC; }
.tag-danger { background: var(--danger-100); color: var(--danger); border-color: #F3D3CB; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem .9rem; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: .87rem; font-weight: 600; color: var(--ink);
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ----------------------------------------------------------------- Steps -- */

.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.15rem; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: .7rem;
  background: var(--brand); color: #fff; font-family: var(--font-title); font-weight: 700;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ----------------------------------------------------------------- Trust -- */

.trust-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.trust-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
}
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand); margin-bottom: .7rem;
}
.trust-card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.trust-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------------------- CTA final -- */

.cta-final {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 1.85rem 1.15rem; margin: 2rem 0;
  text-align: center;
}
.cta-soft { background: linear-gradient(140deg, var(--accent) 0%, #C25B2A 100%); }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.1rem; }
.cta-actions .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------- Footer -- */

.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 2rem 1.15rem calc(var(--nav-h) + 2.5rem + env(safe-area-inset-bottom));
  margin-top: 2rem;
}
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; max-width: 1180px; margin: 0 auto; }
.footer-grid h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.footer-list li { margin-bottom: .4rem; font-size: .9rem; }
.footer-list a { color: var(--ink); }
.footer-list a:hover { color: var(--brand); }
.footer-bottom {
  max-width: 1180px; margin: 1.6rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .45rem;
  font-size: .8rem; color: var(--muted);
}
.footer-pwa { display: inline-flex; align-items: center; gap: .5rem; }

/* ------------------------------------------------------------------ Auth -- */

.auth-page { padding-top: 1.25rem; }
.auth-split { display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 1180px; margin: 0 auto; }
.auth-aside {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.2rem;
}
.auth-aside-warm { background: linear-gradient(150deg, var(--accent) 0%, #B85128 100%); }
.auth-aside h2 { color: #fff; font-size: 1.35rem; }
.auth-aside p { color: rgba(255,255,255,.86); font-size: .94rem; }
.auth-photo { margin: 1.1rem 0; border-radius: var(--radius); overflow: hidden; }
.auth-photo img { width: 100%; height: 190px; object-fit: cover; }
.auth-points li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .45rem; color: rgba(255,255,255,.92); }
.auth-points svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }

.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.15rem; box-shadow: var(--shadow-sm);
}
.auth-card h1 { margin-bottom: .3rem; }
.auth-alt { margin: 1.1rem 0 0; font-size: .92rem; text-align: center; }
.auth-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; margin-top: .7rem; }

/* ---------------------------------------------------------------- Fields -- */

.field { display: block; margin-bottom: .95rem; }
.field > span { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; }
.field small { display: block; font-size: .76rem; color: var(--muted); margin-top: .3rem; }
.field input, .field select, .field textarea, .search-field input, .select-field input, .select-field select {
  width: 100%; padding: .78rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); transition: .18s;
}
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 73, 107, .12);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 .9rem; }
.select-field { display: block; }
.select-field > span { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.switch-field { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; margin-bottom: 1rem; }
.switch-field input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); }
.form-error {
  background: var(--danger-100); color: var(--danger); border-radius: var(--radius-sm);
  padding: .7rem .85rem; font-size: .87rem; margin: 0 0 1rem;
}
.form-legal { font-size: .76rem; color: var(--muted); margin: .8rem 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.form-grid { display: block; }

.search-field {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .4rem .35rem .9rem;
}
.search-field svg { color: var(--muted); flex: 0 0 auto; }
.search-field input { border: 0; background: transparent; padding: .45rem 0; }
.search-field input:focus { box-shadow: none; background: transparent; }
.search-field.small { padding: .2rem .3rem .2rem .7rem; }
.search-field.small input { font-size: .88rem; }

.photo-suggestions { margin-bottom: 1rem; }
.photo-suggestion-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.photo-chip {
  width: 52px; height: 52px; border-radius: 12px; border: 2px solid transparent;
  background-size: cover; background-position: center; cursor: pointer; padding: 0;
}
.photo-chip.wide { width: 72px; height: 48px; }
.photo-chip:hover { border-color: var(--brand); }

/* ------------------------------------------------------------- App pages -- */

.dash-hero {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.15rem 1.1rem; margin-bottom: 1.15rem;
}
.dash-hero-inner { display: flex; flex-direction: column; gap: 1rem; }
.dash-hello { display: flex; align-items: center; gap: .85rem; }
.dash-hello h1 { font-size: 1.28rem; margin-bottom: .1rem; }
.dash-eyebrow { margin: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
.dash-hello p.muted { margin: 0; font-size: .85rem; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.dash-hero-actions .btn { flex: 1 1 auto; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.25rem; }
.kpi-grid-4 { grid-template-columns: 1fr 1fr; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem .85rem; display: flex; flex-direction: column; gap: .1rem;
}
.kpi-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi strong { font-family: var(--font-title); font-size: 1.6rem; line-height: 1.1; }
.kpi small { font-size: .74rem; color: var(--muted); }
.kpi-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpi-brand .kpi-label, .kpi-brand small { color: rgba(255,255,255,.78); }
.kpi-accent { background: var(--accent-100); border-color: #F2D3C4; }
.kpi-warn { background: var(--warn-100); border-color: #F0DDB9; }
.kpi-alert strong { color: var(--danger); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1rem; margin-bottom: 1rem;
}
.panel:last-child { margin-bottom: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.panel-head h2 { font-size: 1.12rem; margin-bottom: .15rem; }
.panel-head p { margin: 0; font-size: .84rem; }
.panel-sub { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .35rem; }
.panel-sub h3 { font-size: 1rem; margin-bottom: .15rem; }
.panel-warning { background: var(--warn-100); border-color: #F0DDB9; }
.panel-domain { background: var(--brand-50); border-color: var(--brand-100); }
.panel-domain .btn { margin-top: .5rem; }

.chart-box { position: relative; height: 220px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-brand { background: var(--brand); }
.dot-accent { background: var(--accent); }
.dot-muted { background: #B9C2C9; }

.bars { display: grid; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 1fr 84px; align-items: center; gap: .5rem; font-size: .84rem; }
.bar-row .bar-track { grid-column: 1 / -1; order: 3; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-row .bar-track i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar-row strong { text-align: right; font-family: var(--font-title); }

.thread-mini { display: grid; gap: .55rem; }
.thread-mini-item {
  display: flex; align-items: center; gap: .6rem; padding: .6rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink);
}
.thread-mini-item:hover { border-color: var(--brand); text-decoration: none; }
.thread-mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread-mini-body strong { font-size: .88rem; }
.thread-mini-body small { color: var(--muted); font-size: .78rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-mini-time { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .68rem; font-style: normal; font-weight: 700;
}

.mini-search {
  display: flex; flex-direction: column; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem; margin-bottom: .8rem;
}
.mini-photo { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-body h3 { font-size: 1.02rem; margin: .4rem 0 .3rem; }
.mini-body h3 a { color: var(--ink); }
.mini-body .card-text { margin-bottom: .4rem; }
.mini-actions { display: flex; flex-wrap: wrap; gap: .45rem; }

.skeleton-card, .skeleton-line {
  background: linear-gradient(90deg, #EFEBE4 25%, #F7F4EF 50%, #EFEBE4 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--radius); min-height: 120px;
}
.skeleton-line { min-height: 46px; margin-bottom: .6rem; border-radius: var(--radius-sm); }
.skeleton-line.tall { min-height: 150px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty {
  text-align: center; padding: 2rem 1rem; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: .5rem; justify-items: center;
}
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand-50); color: var(--brand);
}
.empty h3 { margin: .3rem 0 0; font-size: 1.05rem; }
.empty p { margin: 0; max-width: 42ch; font-size: .9rem; }

/* -------------------------------------------------------------- Explorer -- */

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 1.25rem; }
.filter-form { display: grid; gap: .8rem; }
.filter-row { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.results-count { margin: 0; font-size: .88rem; color: var(--muted); }
.results-view { display: flex; gap: .35rem; }
.cards-list .search-card { flex-direction: column; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.page-indicator { font-size: .85rem; color: var(--muted); }

/* ----------------------------------------------------------------- Fiche -- */

.fiche { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fiche-media { position: relative; }
.fiche-media img { width: 100%; height: 230px; object-fit: cover; }
.fiche-tags { position: absolute; left: .8rem; top: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.fiche-body { padding: 1.1rem 1rem 1.3rem; }
.fiche-body h1 { font-size: 1.45rem; }
.fiche-lead { color: var(--ink); font-size: .98rem; }
.fiche-details { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1.1rem 0; }
.detail { border-top: 1px solid var(--line); padding-top: .5rem; }
.detail span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.detail strong { font-size: .94rem; }
.fiche-resolved { display: flex; align-items: center; gap: .5rem; background: var(--success-100); color: var(--success); padding: .7rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.fiche-author { display: flex; align-items: center; gap: .65rem; padding: .8rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.fiche-author strong { display: block; font-size: .92rem; }
.fiche-author small { color: var(--muted); font-size: .8rem; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fiche-actions .btn { flex: 1 1 auto; }
.fiche-contact-count { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }

/* -------------------------------------------------------------- Messages -- */

.msg-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.msg-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; }
.msg-list-head { margin-bottom: .6rem; }
.thread-item {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: .55rem; cursor: pointer; margin-bottom: .35rem;
}
.thread-item:hover { background: var(--surface-2); }
.thread-item.is-active { background: var(--brand-50); border-color: var(--brand-100); }
.thread-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread-item-body strong { font-size: .9rem; }
.thread-context { font-size: .74rem; color: var(--brand); font-weight: 600; }
.thread-last { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item-time { font-size: .7rem; color: var(--muted); }
.msg-none { padding: .8rem; font-size: .88rem; }

.msg-thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; }
.msg-empty { padding: 2rem 1.2rem; text-align: center; display: grid; gap: .5rem; justify-items: center; margin: auto; }
.msg-open { display: flex; flex-direction: column; flex: 1; }
.msg-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.msg-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-head-text strong { font-size: .95rem; }
.msg-head-text small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-back { display: inline-flex; }
.msg-body { flex: 1; padding: 1rem .85rem; display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; max-height: 62vh; }
.msg-welcome { margin: auto; text-align: center; }
.bubble {
  max-width: 88%; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px; padding: .6rem .8rem;
}
.bubble p { margin: 0; font-size: .92rem; }
.bubble time { font-size: .68rem; color: var(--muted); }
.bubble.from-me {
  align-self: flex-end; background: var(--brand); border-color: var(--brand); color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.bubble.from-me time { color: rgba(255,255,255,.75); }
.msg-form {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
}
.msg-form textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 130px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .85rem; background: var(--surface-2);
}
.msg-form textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }

/* --------------------------------------------------------------- Profile -- */

.profile-head {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.1rem; margin-bottom: 1.25rem;
}
.profile-head h1 { font-size: 1.35rem; margin-bottom: .15rem; }
.profile-head-text p { margin: 0 0 .5rem; font-size: .88rem; }
.profile-bio { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .6rem; }
.profile-cols { align-items: start; }
.mini-stats-inline { display: flex; gap: 1rem; justify-content: center; margin-top: .7rem; font-size: .84rem; color: var(--muted); }
.mini-stats-inline strong { font-family: var(--font-title); color: var(--brand); font-size: 1.05rem; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-bottom: .7rem; }
.mini-stat { text-align: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .3rem; }
.mini-stat strong { display: block; font-family: var(--font-title); font-size: 1.3rem; color: var(--brand); }
.mini-stat span { font-size: .7rem; color: var(--muted); }
.check-list { display: grid; gap: .45rem; margin-bottom: .9rem; }
.check-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: var(--muted); }
.check-list svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; margin-top: .15rem; }

/* -------------------------------------------------------------- Publier --- */

.welcome-banner {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--success-100); border: 1px solid #CBE7DC;
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1.1rem;
}
.welcome-banner strong { display: block; }
.welcome-banner p { margin: .2rem 0 0; font-size: .88rem; color: #276452; }
.welcome-icon { color: var(--success); flex: 0 0 auto; }
.publish-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.publish-actions .btn-primary { flex: 1 1 240px; }

/* ----------------------------------------------------------------- Admin -- */

.admin-page { padding-top: .75rem; }
.admin-lock, .admin-password { display: grid; place-items: center; padding: 1.5rem .25rem; }
.lock-card {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.15rem; box-shadow: var(--shadow);
}
.lock-card h1 { font-size: 1.35rem; }
.lock-mark { display: inline-flex; margin-bottom: .9rem; }
.lock-mark-warn {
  width: 58px; height: 58px; border-radius: 16px; align-items: center; justify-content: center;
  background: var(--warn-100); color: var(--warn);
}
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: 1.1rem; }
.admin-head h1 { font-size: 1.45rem; margin-bottom: .1rem; }
.admin-head p { margin: 0; font-size: .88rem; }
.badge-alert {
  background: var(--danger); color: #fff; font-size: .76rem; font-weight: 700;
  padding: .35rem .7rem; border-radius: 999px;
}
.admin-toolbar { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-bottom: .9rem; }
.segmented {
  display: flex; gap: .3rem; overflow-x: auto; padding: .25rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.segmented button {
  flex: 1 0 auto; padding: .45rem .85rem; border: 0; background: transparent;
  border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer;
  white-space: nowrap;
}
.segmented button.is-active { background: var(--brand); color: #fff; }
.segmented-wide { margin-bottom: 1rem; }

.admin-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.admin-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); font-size: .88rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.cell-member { display: flex; align-items: center; gap: .55rem; }
.cell-member small { display: block; font-size: .76rem; }
.cell-actions { display: flex; flex-wrap: wrap; gap: .3rem; }

.report-list { display: grid; gap: .8rem; }
.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.report-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.report-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.report-head small { font-size: .76rem; }
.report-target { font-size: .88rem; margin: 0 0 .4rem; }
.report-reason { background: var(--surface-2); border-left: 3px solid var(--accent); padding: .6rem .8rem; border-radius: 6px; font-size: .9rem; margin: 0 0 .8rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: .45rem; }

.admin-quick { display: grid; gap: .7rem; }
.quick-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.quick-list { display: grid; gap: .5rem; }
.quick-list li { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.quick-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.quick-list a { font-weight: 600; }
.quick-alert {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  background: var(--danger-100); border: 1px solid #F3D3CB; border-radius: var(--radius-sm);
  padding: .75rem .85rem; font-size: .88rem; color: #8E3122;
}
.quick-alert svg { color: var(--danger); flex: 0 0 auto; }
.quick-alert span { flex: 1 1 200px; }

.detail-member h4 { margin: 1rem 0 .5rem; }
.detail-head { display: flex; gap: .65rem; align-items: center; margin-bottom: .8rem; }
.detail-head strong { display: block; }
.detail-head small { display: block; font-size: .8rem; }
.detail-stats { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--muted); }
.detail-stats strong { font-family: var(--font-title); color: var(--brand); }
.detail-list { display: grid; gap: .45rem; }
.detail-list li { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: .4rem; font-size: .9rem; }
.detail-list small { font-size: .78rem; }

/* --------------------------------------------------------------- Legal ---- */

.legal-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.05rem; }
.legal-card h2 { font-size: 1.1rem; }
.legal-card p { font-size: .92rem; color: #3C4A54; }
.legal-list { display: grid; gap: .45rem; margin: .6rem 0 0; }
.legal-list li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: #3C4A54; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --------------------------------------------------------------- Modals --- */

.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 30, 40, .55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-card {
  background: var(--surface); width: 100%; max-width: 560px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.15rem 1.1rem calc(1.15rem + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto;
  animation: slide-up .22s ease-out;
}
@keyframes slide-up { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.modal-head h3 { margin: 0; font-size: 1.15rem; }
.install-block { background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem .9rem; margin-bottom: .7rem; }
.install-os { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.install-steps { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .87rem; color: #3C4A54; }

/* --------------------------------------------------------------- Toasts --- */

.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 4.6rem);
  z-index: 95; display: grid; gap: .5rem; width: min(92vw, 460px); pointer-events: none;
}
.toast {
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  padding: .75rem .95rem; font-size: .89rem; box-shadow: var(--shadow);
  animation: toast-in .2s ease-out;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================================================
   Ecrans plus larges
   ========================================================================== */

@media (min-width: 560px) {
  .hero-search { flex-direction: row; align-items: center; }
  .hero-search > svg { display: block; color: #fff; margin-left: .5rem; }
  .hero-search input { flex: 1; }
  .hero-search .btn { flex: 0 0 auto; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.65rem; }
  .page { padding: 1.5rem 1.5rem calc(var(--nav-h) + 4rem + env(safe-area-inset-bottom)); }
  .hero { padding: 3rem 1.5rem 3.25rem; margin: 0 0 2rem; border-radius: var(--radius-lg); }
  .hero-copy h1 { font-size: 2.6rem; }
  .hero-visual { margin-top: 0; }
  .hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
  .statband-inner { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
  .auth-card { padding: 2rem 1.75rem; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head-center { flex-direction: column; align-items: center; }
  .dash-hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .dash-hero-actions { flex: 0 0 auto; }
  .dash-hero-actions .btn { flex: 0 0 auto; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1.2fr 1fr; }
  .profile-cols { grid-template-columns: 1.4fr 1fr; }
  .admin-toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { align-items: center; padding: 1.5rem; }
  .modal-card { border-radius: var(--radius-lg); }
  .segmented button { flex: 0 0 auto; }
  .filters .filter-row { grid-template-columns: repeat(4, 1fr); }
  .filter-form { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto; align-items: end; }
  .filter-form .search-field { grid-column: span 1; }
  .filter-actions { grid-column: 1 / -1; }
  .mini-search { flex-direction: row; align-items: stretch; }
  .mini-photo { flex: 0 0 180px; aspect-ratio: 4 / 3; }
  .mini-body { flex: 1; }
  .mini-actions { flex-direction: column; flex: 0 0 auto; }
  .mini-actions .btn { width: 100%; }
  .thread-item { margin-bottom: .25rem; }
  .profile-head { flex-direction: row; text-align: left; align-items: center; }
  .profile-head-text { flex: 1; }
  .mini-stats-inline { justify-content: flex-start; }
  .admin-toolbar .segmented { justify-self: end; }
  .msg-layout { grid-template-columns: 340px 1fr; align-items: start; }
  .msg-back { display: none; }
  .cards-list .search-card { flex-direction: row; }
  .cards-list .card-photo { flex: 0 0 280px; aspect-ratio: 4 / 3; }
  .cards-list { grid-template-columns: 1fr !important; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .msg-layout { grid-template-columns: 370px 1fr; }
  .two-col { grid-template-columns: 1.3fr 1fr; }
  .legal-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-copy h1 { font-size: 3rem; }
}

/* Petites protections : ne jamais laisser deux blocs denses cote a cote sur mobile */
@media (max-width: 767px) {
  .two-col, .profile-cols, .msg-layout, .auth-split, .footer-grid, .trust-grid, .legal-grid,
  .chart-legend, .field-row, .filter-row, .photo-suggestion-row { grid-template-columns: 1fr; }
  .msg-layout, .two-col, .profile-cols { display: grid; }
  .kpi-grid, .kpi-grid-4, .statband-inner, .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .container-narrow { max-width: 100%; }
  .profile-stats .mini-stat:last-child { grid-column: span 2; }
}
