/* ================================================================
   TOULOUSE CAPITOLE — site.css v2
   Design system complet. Toutes les pages linkent ce fichier.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── Variables ── */
:root {
  --violet:        #5B2C9F;
  --violet-dark:   #3D1A7A;
  --violet-light:  #7E4FCE;
  --violet-soft:   #F0EBFF;
  --violet-mid:    #EDE0FF;
  --gold:          #FFD93D;
  --gold-dark:     #E6C200;
  --dark:          #0F0A1E;
  --ink:           #111827;
  --text:          #374151;
  --muted:         #6B7280;
  --quiet:         #9CA3AF;
  --border:        #E5E7EB;
  --border-soft:   #F3F4F6;
  --bg:            #FFFFFF;
  --bg-2:          #F9FAFB;
  --bg-3:          #F3F4F6;
  --green:         #10B981;
  --green-soft:    #ECFDF5;
  --orange:        #F59E0B;
  --orange-soft:   #FFFBEB;
  --red:           #EF4444;
  --red-soft:      #FEF2F2;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow-xs:     0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 4px 20px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);
  --shadow-violet: 0 8px 32px rgba(91,44,159,.25);
  /* BD hard shadows — signature de l'ancienne DA */
  --shadow-bd:     4px 4px 0 #111827;
  --shadow-bd-sm:  2px 2px 0 #111827;
  --shadow-bd-lg:  6px 6px 0 #111827;
  --shadow-bd-v:   4px 4px 0 var(--violet-dark);
  --font-display:  'Outfit', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'Space Mono', monospace;
  --max-w:         1100px;
  --max-w-text:    760px;
  --header-h:      68px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4em; }
p  { margin: 0 0 1em; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }

/* ── Layout utils ── */
.wrap      { max-width: var(--max-w);      margin: 0 auto; padding: 0 24px; }
.wrap-text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 24px; max-width: var(--max-w); margin: 0 auto; }
.bg-alt    { background: var(--bg-2); }
.bg-dark   { background: var(--dark); color: #fff; }

/* ── HEADER ── */
.site-header {
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.brand img { height: 38px; width: auto; display: block; }
/* Fallback texte si logo absent */
.brand-dot   { color: var(--violet); }
.brand-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--violet);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-left: 4px;
  font-family: var(--font-mono);
  border: 1.5px solid var(--violet-dark);
  box-shadow: 1px 1px 0 var(--violet-dark);
}
/* Logo dans le footer (version claire sur fond sombre) */
.footer-brand .brand img { filter: brightness(0) invert(1); opacity: .9; height: 36px; }
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav a:hover  { color: var(--violet); background: var(--violet-soft); }
.main-nav a.active { color: var(--violet); font-weight: 600; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-header {
  background: var(--violet);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .12s;
  border: 2px solid var(--violet-dark);
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: var(--shadow-bd-sm);
}
.btn-header:hover { background: var(--violet-dark); transform: translate(-2px,-2px); box-shadow: var(--shadow-bd); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:last-child { border: none; }
.mobile-menu .btn-header { display: block; text-align: center; margin-top: 16px; width: 100%; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); font-size: 14px; border-top: 3px solid var(--ink); }
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .brand { color: #fff; font-size: 20px; margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.5); margin: 0 0 20px; max-width: 260px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  margin-bottom: 11px;
  font-size: 14px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}
.footer-bottom-inner a { color: rgba(255,255,255,.35); }
.footer-bottom-inner a:hover { color: rgba(255,255,255,.7); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 12px;
  color: var(--quiet);
  padding: 12px 24px;
  max-width: var(--max-w-text);
  margin: 0 auto;
  font-family: var(--font-mono);
}
.breadcrumb a           { color: var(--quiet); transition: color .15s; }
.breadcrumb a:hover     { color: var(--violet); }
.breadcrumb span        { color: var(--text); font-weight: 600; }
.breadcrumb .sep        { margin: 0 8px; color: var(--border); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: all .12s;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  text-decoration: none;
  justify-content: center;
  box-shadow: var(--shadow-bd-sm);
}
.btn:hover             { transform: translate(-2px,-2px); box-shadow: var(--shadow-bd); }
.btn:active            { transform: translate(0,0); box-shadow: var(--shadow-bd-sm); }
.btn-primary           { background: var(--violet); color: #fff; border-color: var(--violet-dark); }
.btn-primary:hover     { background: var(--violet-dark); color: #fff; }
.btn-dark              { background: var(--ink); color: #fff; }
.btn-dark:hover        { background: #000; color: #fff; }
.btn-gold              { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.btn-gold:hover        { background: var(--gold-dark); color: var(--ink); }
.btn-ghost             { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover       { background: var(--bg-2); }
.btn-outline           { background: transparent; color: var(--violet); border-color: var(--violet); box-shadow: 2px 2px 0 var(--violet); }
.btn-outline:hover     { background: var(--violet-soft); box-shadow: 4px 4px 0 var(--violet); }
.btn-sm                { padding: 7px 14px; font-size: 12px; box-shadow: var(--shadow-bd-sm); }
.btn-lg                { padding: 14px 32px; font-size: 16px; }
.btn-full              { width: 100%; }

/* ── Typography utils ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--violet);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  background: var(--violet-soft);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px solid rgba(91,44,159,.2);
}
.lead   { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }
.accent { color: var(--violet); }
.small  { font-size: 13px; }
.mono   { font-family: 'Menlo', 'Consolas', monospace; font-size: .9em; }

/* ── Cards ── */
.card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-bd-sm);
}
.card:hover    { box-shadow: var(--shadow-bd); transform: translate(-2px,-2px); }
.card-body     { padding: 24px; }

/* ── Residence cards ── */
.res-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-bd-sm);
}
.res-card:hover     { box-shadow: var(--shadow-bd); transform: translate(-2px,-2px); }
.res-cover          { height: 190px; overflow: hidden; position: relative; background: var(--bg-3); }
.res-cover img      { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.res-card:hover .res-cover img { transform: scale(1.04); }
.res-cover-ph       { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 28px; letter-spacing: -.02em; }
.res-body           { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.res-quartier       { font-size: 11px; color: var(--violet); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; font-weight: 700; }
.res-name           { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.res-tagline        { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.res-tags           { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.res-footer         { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-soft); padding-top: 12px; margin-top: auto; }
.res-rating         { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.res-stars          { color: var(--orange); font-size: 13px; }
.res-price          { text-align: right; }
.res-price strong   { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.res-price span     { font-size: 12px; color: var(--quiet); }
.res-actions        { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* Rank badges */
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .04em;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-bd-sm);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.rank-coup   { background: var(--gold); color: var(--ink); }
.rank-normal { background: #fff; color: var(--ink); }

/* ── Blog cards ── */
.blog-card { background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; box-shadow: var(--shadow-bd-sm); }
.blog-card:hover     { box-shadow: var(--shadow-bd); transform: translate(-2px,-2px); }
.blog-cover          { height: 200px; overflow: hidden; background: var(--bg-3); position: relative; }
.blog-cover img      { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-cover img { transform: scale(1.04); }
.blog-cover-ph       { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 40px; }
.blog-body           { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta           { font-size: 12px; color: var(--quiet); margin-bottom: 8px; }
.blog-body h2        { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.blog-body p         { color: var(--muted); font-size: 14px; margin: 0 0 18px; flex: 1; line-height: 1.6; }
.blog-read           { font-size: 13px; font-weight: 600; color: var(--violet); margin-top: auto; display: inline-flex; align-items: center; gap: 4px; }

/* ── Quartier cards ── */
.quartier-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-bd-sm);
}
.quartier-card:hover { box-shadow: var(--shadow-bd); transform: translate(-2px,-2px); }
.quartier-icon       { width: 44px; height: 44px; border-radius: 10px; background: var(--violet-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.quartier-card h3    { font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.quartier-card .mood { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.quartier-count      { font-size: 12px; font-weight: 600; color: var(--violet); background: var(--violet-soft); padding: 3px 10px; border-radius: 20px; display: inline-block; }

/* ── Pills & Tags ── */
.pill {
  display: inline-block;
  background: var(--bg-3);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tag-green  { background: var(--green-soft); color: #065f46; }
.tag-orange { background: var(--orange-soft); color: #92400e; }
.tag-violet { background: var(--violet-soft); color: var(--violet-dark); }
.tag-gold   { background: #fffbeb; color: #92400e; }
.tag-red    { background: var(--red-soft); color: #991b1b; }
.tag-blue   { background: #eff6ff; color: #1e40af; }

/* DPE badges */
.dpe   { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.dpe-a { background: #00a86b; color: #fff; }
.dpe-b { background: #6ab04c; color: #fff; }
.dpe-c { background: #f9ca24; color: #111; }
.dpe-d { background: #f0932b; color: #fff; }
.dpe-e { background: #e55039; color: #fff; }
.dpe-f { background: #c0392b; color: #fff; }

/* ── Info boxes ── */
.keybox {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.keybox h4   { margin: 0 0 12px; color: var(--ink); }
.keybox ul   { margin: 0; padding-left: 20px; }
.keybox li   { margin-bottom: 7px; font-size: 14.5px; color: var(--text); }
.keybox p    { margin: 8px 0 0; font-size: 13.5px; color: var(--quiet); }
.keybox a    { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

.alert {
  display: flex;
  gap: 12px;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.alert-info   { background: var(--violet-soft); border-left: 4px solid var(--violet); color: var(--ink); }
.alert-warn   { background: var(--orange-soft); border-left: 4px solid var(--orange); color: #78350f; }
.alert-green  { background: var(--green-soft); border-left: 4px solid var(--green); color: #064e3b; }
.alert-red    { background: var(--red-soft); border-left: 4px solid var(--red); color: #7f1d1d; }
.alert a      { color: inherit; font-weight: 600; text-decoration: underline; }

blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--violet);
  background: var(--violet-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.7;
}
blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--muted); }
blockquote a    { color: var(--violet); text-decoration: underline; }

/* ── Tables ── */
.table-wrap   { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table         { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead         { background: var(--bg-2); }
th            { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 13px; border-bottom: 2px solid var(--border); white-space: nowrap; }
td            { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-2); }

/* ── Article layout ── */
.article-hero   { padding: 48px 24px 36px; max-width: var(--max-w-text); margin: 0 auto; }
.article-dek    { font-size: 1.1rem; color: var(--muted); line-height: 1.75; font-weight: 400; margin: 0 0 28px; }
.article-meta   { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--quiet); flex-wrap: wrap; }
.article-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.article-meta-name { font-weight: 600; font-size: 14px; color: var(--ink); }

.article-body { max-width: var(--max-w-text); margin: 0 auto; padding: 48px 24px 80px; }
.article-body p    { font-size: 16.5px; margin: 0 0 22px; line-height: 1.8; }
.article-body h2   { font-size: 1.45rem; margin: 52px 0 16px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.article-body h3   { font-size: 1.1rem; margin: 32px 0 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 22px; }
.article-body li   { margin-bottom: 9px; font-size: 16px; line-height: 1.7; }
.article-body strong { color: var(--ink); }
.article-body a    { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.article-body a:hover { color: var(--violet-dark); }
.article-body blockquote { font-size: 16.5px; }

/* ── FAQ accordion ── */
details.faq-item { border-bottom: 1px solid var(--border); }
details.faq-item:first-of-type { border-top: 1px solid var(--border); }
details.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
  transition: color .15s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { color: var(--violet); }
details.faq-item summary::after {
  content: "+";
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: all .2s;
}
details.faq-item[open] summary::after {
  background: var(--violet);
  color: #fff;
  content: "−";
  border-color: var(--violet);
  transform: rotate(0deg);
}
.faq-answer {
  padding: 0 0 24px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-answer a { color: var(--violet); text-decoration: underline; }
.faq-answer p { margin: 0 0 12px; }

/* ── Stats ── */
.stats-row  { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-item  { }
.stat-val   { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-val sup { font-size: 1rem; vertical-align: top; margin-top: 4px; display: inline-block; }
.stat-lbl   { font-size: 13px; color: var(--quiet); margin-top: 4px; }

/* ── Trust strip ── */
.trust-strip { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }
.trust-list  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-around; }
.trust-item  { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.trust-check { color: var(--green); font-weight: 700; font-size: 14px; }

/* ── Section headers ── */
.section-header        { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center h2 { max-width: 680px; margin-left: auto; margin-right: auto; }
.section-header p      { font-size: 16px; color: var(--muted); margin: 12px 0 0; line-height: 1.7; max-width: 580px; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ── Grids ── */
.grid-auto    { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.grid-2       { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3       { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4       { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-1-2     { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.grid-2-1     { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }

/* ── CTA block ── */
.cta-block {
  background: var(--ink);
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  padding: 64px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-bd-lg);
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: var(--violet);
  border-radius: 50%;
  opacity: .35;
  pointer-events: none;
}
.cta-block::after {
  content: "";
  position: absolute;
  bottom: -60px; left: 10%;
  width: 160px; height: 160px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .15;
  pointer-events: none;
}
.cta-block h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-block p  { color: rgba(255,255,255,.75); font-size: 16px; max-width: 480px; margin: 0 0 28px; position: relative; z-index: 1; line-height: 1.7; }
.cta-actions  { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Hero ── */
.page-hero { padding: 80px 24px 64px; max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lead { max-width: 600px; margin-bottom: 36px; }

/* ── Transport cards ── */
.transport-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .15s;
}
.transport-card:hover { border-color: var(--violet); }
.transport-badge {
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.metro-a { background: #e74c3c; }
.metro-b { background: #3498db; }
.tram    { background: #27ae60; }
.bus     { background: #555; }
.velo    { background: #2980b9; }

/* ── Pros/cons ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pros-block { background: var(--green-soft); border: 1px solid rgba(16,185,129,.2); border-radius: var(--radius); padding: 20px; }
.cons-block { background: var(--orange-soft); border: 1px solid rgba(245,158,11,.2); border-radius: var(--radius); padding: 20px; }
.pros-block h3 { font-size: .9rem; color: #065f46; margin: 0 0 12px; }
.cons-block h3 { font-size: .9rem; color: #92400e; margin: 0 0 12px; }
.pros-block li, .cons-block li { font-size: 14px; margin-bottom: 6px; line-height: 1.5; color: var(--text); }

/* ── Author card ── */
.author-card { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.author-photo img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.author-body { padding: 40px 44px; }
.author-body h1, .author-body h2 { margin-bottom: 6px; }
.author-job { font-size: 14px; color: var(--quiet); margin-bottom: 20px; }
.author-bio { font-size: 15.5px; color: var(--muted); line-height: 1.75; }
.author-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tl-item  { display: grid; grid-template-columns: 100px 1fr; }
.tl-month {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--violet);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  line-height: 1.3;
}
.tl-month.ok   { background: var(--green); }
.tl-month.warn { background: var(--orange); }
.tl-month.late { background: var(--quiet); }
.tl-content    { padding: 16px 20px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--bg); }
.tl-item:last-child .tl-content { border-bottom: none; }
.tl-content h3 { font-size: .9rem; margin: 0 0 8px; color: var(--ink); }
.tl-content ul { margin: 0; padding-left: 16px; }
.tl-content li { font-size: 13.5px; margin-bottom: 4px; color: var(--text); }

/* ── Glossary ── */
.glossary-term { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s; }
.glossary-term:hover { border-color: var(--violet); }
.glossary-term h3 { margin: 0 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.glossary-term p  { margin: 0; font-size: 15px; color: var(--text); line-height: 1.75; }
.term-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; background: var(--bg-3); color: var(--quiet); }

/* ── Aide cards ── */
.aide-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin: 0 0 16px;
  transition: border-color .15s;
}
.aide-card:hover { border-left-color: var(--violet-dark); }
.aide-card h3 { margin: 0 0 8px; font-size: 1rem; }
.aide-card p  { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text); }
.aide-meta    { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── Compare grid (Visale) ── */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.compare-col  { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.compare-col.best { border-color: var(--green); background: var(--green-soft); }
.compare-col h3   { font-size: .95rem; margin: 0 0 10px; }
.compare-col .col-score { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--quiet); line-height: 1; }
.compare-col.best .col-score { color: var(--green); }
.compare-col ul   { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.compare-col li   { font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border-soft); display: flex; gap: 6px; line-height: 1.4; }
.compare-col li:last-child { border: none; }
.icon-ok  { color: var(--green); flex-shrink: 0; }
.icon-no  { color: var(--red); flex-shrink: 0; }
.icon-meh { color: var(--orange); flex-shrink: 0; }

/* ── Steps (process) ── */
.steps      { display: flex; flex-direction: column; gap: 20px; }
.step       { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.step-num   { width: 52px; height: 52px; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-violet); }
.step-content h3 { margin: 8px 0 6px; font-size: 1rem; }
.step-content p  { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ── Methodology criteria ── */
.crit-card    { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.crit-pct     { width: 62px; height: 62px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; font-weight: 800; flex-shrink: 0; }
.crit-content h3 { margin: 0 0 4px; font-size: .95rem; }
.crit-content p  { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Contact form ── */
.contact-form {
  margin-top: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
}
.form-label span {
  color: var(--violet);
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.form-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(91,44,159,.12);
}
.form-input::placeholder { color: var(--quiet); }
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.form-note {
  font-size: 13px;
  color: var(--quiet);
  margin: 0;
  line-height: 1.55;
}
.form-note strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  .section { padding: 56px 20px; }
  .page-hero { padding: 56px 20px 44px; }
  .article-hero, .article-body, .wrap-text { padding-left: 20px; padding-right: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .wrap { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr !important; gap: 16px; }
  .pros-cons { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 1fr !important; }
  .author-photo img { min-height: 220px; max-height: 280px; }
  .author-body { padding: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 44px 20px 32px; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-block { padding: 44px 32px; border-radius: var(--radius-lg); }
  .tl-item { grid-template-columns: 72px 1fr; }
  .tl-month { font-size: 11px; padding: 6px 8px; }
}
@media (max-width: 480px) {
  .stats-row { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-block { padding: 36px 24px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .table-wrap { font-size: 13px; }
  .res-actions { grid-template-columns: 1fr 1fr; }
}
