/* =========================================================
   Le Quartier Blatin — Charte graphique
   ========================================================= */

:root {
  --color-primary: #B0162A;
  --color-primary-dark: #8B0E1F;
  --color-primary-light: #D44757;
  --color-accent: #B0162A;
  --color-accent-dark: #8B0E1F;
  --color-brick: #B0162A;
  --color-bg: #FBF6EC;
  --color-bg-alt: #F2EAD6;
  --color-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-soft: #4A4A4A;
  --color-text-muted: #7A7A7A;
  --color-border: #E8DEC8;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.10), 0 6px 12px rgba(0,0,0,0.06);

  --container: 1200px;
  --header-height: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--color-text-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Top bar + header
   ========================================================= */

/* Site shell — topbar + header flottants au-dessus du hero (accueil)
   ou en flux normal (autres pages, body sans .home) */
.site-shell {
  position: relative;
  z-index: 50;
}
body.home .site-shell {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.topbar {
  background: transparent;
  color: var(--color-text-soft);
  font-size: 13px;
  padding: 14px 0 8px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.topbar .join-us {
  font-weight: 500;
  color: inherit;
}
.topbar .socials { display: flex; gap: 8px; align-items: center; }
.topbar .socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: currentColor;
  transition: all .2s ease;
}
.topbar .socials a:hover { color: var(--color-accent); transform: translateY(-1px); }
.topbar .socials svg { width: 18px; height: 18px; fill: currentColor; }

/* On home, topbar text is white over the photo */
body.home .topbar { color: #FFF; }

/* Header floating pill — réduit à 60% de la largeur, centré */
.site-header {
  background: #FFF;
  border-radius: 60px;
  width: 60%;
  margin: 6px auto 0;
  padding: 0;
  box-shadow: 0 12px 36px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 14px 0 24px;
  gap: 14px;
  max-width: none;
}
.header-search { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--color-accent);
  color: #FFF;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
  white-space: nowrap;
}
.header-cta::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}
.header-cta:hover {
  background: var(--color-accent-dark);
  color: #FFF;
}
.header-cta:hover::after { transform: translateX(3px); }

.header-search {
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  color: #FFF;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-left: 4px;
  transition: all .2s ease;
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
}
.header-search:hover { background: var(--color-accent-dark); transform: scale(1.05); }
.header-search svg { width: 18px; height: 18px; fill: currentColor; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}
.logo img {
  height: 56px;
  width: auto;
  border-radius: var(--radius-sm);
}
.logo small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.main-nav .has-sub > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #FFF;
  list-style: none;
  padding: 8px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  padding: 10px 14px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-primary-dark);
  margin: 6px 0;
  transition: all .3s ease;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: #FFF;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-outline:hover {
  background: var(--color-primary-dark);
  color: #FFF;
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn-ghost:hover { color: var(--color-accent); }

/* =========================================================
   Hero — immersif style cam-arche
   ========================================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #FFF;
  padding: 240px 0 140px;
  overflow: hidden;
  margin-top: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.10) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 110px;
  background: var(--color-bg);
  clip-path: ellipse(80% 100% at 50% 100%);
  z-index: 2;
}
.hero-badge { display: none; }
.hero .container { position: relative; z-index: 3; }
.hero-content {
  max-width: 780px;
  text-align: left;
}
.hero .eyebrow-line {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: #FFF;
  letter-spacing: 0;
  margin-bottom: 18px;
  line-height: 1.4;
  max-width: 580px;
}
.hero h1 {
  color: #FFF;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.95;
}
.hero p.lead {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 24px 0 0;
}

/* Decorative floating badges on hero */
.hero-badge {
  position: absolute;
  background: var(--color-accent);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 4;
  padding: 12px;
}
.hero-badge.badge-1 {
  top: 38%;
  right: 22%;
  width: 130px;
  height: 130px;
  font-size: 13px;
}
.hero-badge.badge-2 {
  bottom: 14%;
  right: 8%;
  width: 160px;
  height: 160px;
  font-size: 14px;
  background: var(--color-accent-dark);
}
.hero-badge .big {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-badge .small { font-size: 11px; font-weight: 500; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================================================
   Sections
   ========================================================= */

section { padding: 80px 0; }
section.alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* Intro / pitch */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.intro-grid h2 { margin-bottom: 20px; }

/* =========================================================
   Stats
   ========================================================= */

.stats {
  background: var(--color-primary-dark);
  color: #FFF;
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   Categories
   ========================================================= */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  border: 1px solid var(--color-border);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.cat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
}
.cat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.cat-card .count {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* =========================================================
   News cards
   ========================================================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card .img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-card .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--color-accent);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}
.news-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .date {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.news-card .excerpt {
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
}
.news-card a.more {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 14px;
}
.news-card a.more::after { content: " →"; }

/* =========================================================
   Practical info
   ========================================================= */

.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.practical-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.practical-card .icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.practical-card h3 { margin-bottom: 12px; }

/* =========================================================
   Members directory
   ========================================================= */

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 10px 22px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active {
  background: var(--color-primary);
  color: #FFF;
  border-color: var(--color-primary);
}

.search-bar {
  max-width: 420px;
  margin: 0 auto 32px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 15px;
  background: var(--color-card);
  font-family: inherit;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}
.search-bar::before {
  content: "🔍";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.member-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-card .cat-tag {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.member-card h3 { font-size: 1.15rem; }
.member-card .address {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.member-card .contact-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.member-card .contact-row a { color: var(--color-text-soft); }
.member-card .contact-row a:hover { color: var(--color-accent); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

/* =========================================================
   Team (bureau)
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.member-photo {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.member-photo .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
}
.member-photo h4 { margin-bottom: 4px; }
.member-photo .role {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   Articles - text content
   ========================================================= */

.page-header {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #FFF;
  text-align: center;
}
.page-header h1 { color: #FFF; margin-bottom: 12px; }
.page-header .breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.95); }

.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { font-size: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; color: var(--color-text-soft); }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 12px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--color-text-soft);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Commissions */
.commission-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.commission-card .head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.commission-card .icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.commission-card h3 { margin: 0; }
.commission-card .lead {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* =========================================================
   Forms
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #FFF;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field .hint { font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-soft);
}
.checkbox-row input { width: auto; margin-top: 4px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.contact-info { background: var(--color-card); padding: 32px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-info .label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 2px; }
.contact-info .value { font-weight: 500; color: var(--color-text); }

/* =========================================================
   CTA banner
   ========================================================= */

.cta-banner {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  margin: 60px 0;
}
.cta-banner h2 { color: #FFF; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.95); margin-bottom: 24px; }
.cta-banner .btn-primary {
  background: #FFF;
  color: var(--color-accent-dark);
}
.cta-banner .btn-primary:hover { background: var(--color-primary-dark); color: #FFF; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color .2s ease;
}
.site-footer a:hover { color: var(--color-accent); }
.site-footer .brand p { color: rgba(255,255,255,0.75); font-size: 14px; }
.site-footer .brand .logo { color: #FFF; }
.site-footer .brand .logo small { color: rgba(255,255,255,0.7); }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
}
.footer-socials a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFF;
}
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { font-size: 13px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
  .site-header { width: 80%; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid, .practical-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-header { width: 92%; }
  .site-header .container { padding: 0 10px 0 18px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-cta, .header-search { display: none; }
  .site-header { margin: 6px 12px 0; border-radius: 40px; }
  .site-header .container { height: 64px; padding: 0 8px 0 16px; }
  .hero { min-height: 80vh; padding: 200px 0 40px; }
  .hero-badge { display: none; }
  .main-nav {
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    background: #FFF;
    border-radius: 24px;
    max-height: calc(100vh - 100px);
    transform: translateX(120%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 4px; width: 100%; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { padding-left: 16px; }

  section { padding: 56px 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .practical-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .topbar .container { font-size: 12px; }
  .logo span.full { display: none; }
}
