/*
Theme Name: MarocJobSeek Gov
Theme URI: https://marocjobseek.com
Author: MarocJobSeek
Description: Portail marocain emplois et concours publics — v4.0 Fixed
Version: 4.0.0
Text Domain: marocjobseek
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --green:        #0b3d2e;
  --green-dark:   #071f17;
  --green-mid:    #145c44;
  --green-light:  #1a7a55;
  --green-pale:   #e8f5f0;
  --green-xs:     #f2faf6;
  --gold:         #c9a84c;
  --gold-pale:    #fdf6e3;
  --red:          #dc2626;
  --red-pale:     #fef2f2;

  /* Neutrals — all WCAG AA compliant (4.5:1+) */
  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-600:  #4b5563;  /* body text secondary — 7:1 on white */
  --gray-500:  #6b7280;  /* min for normal text — 4.6:1 on white */
  --gray-400:  #9ca3af;  /* only for decorative / large text 18px+ */
  --gray-200:  #e5e7eb;
  --gray-100:  #f3f4f6;
  --white:     #ffffff;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Spacing scale */
  --s4:  4px;  --s8:  8px;  --s12: 12px; --s16: 16px;
  --s20: 20px; --s24: 24px; --s32: 32px; --s40: 40px;
  --s48: 48px; --s56: 56px; --s64: 64px; --s80: 80px;

  /* Radii */
  --r4: 4px; --r6: 6px; --r8: 8px; --r12: 12px;
  --r16: 16px; --r20: 20px; --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --sh-md: 0 4px 12px rgba(11,61,46,0.10);
  --sh-lg: 0 8px 24px rgba(11,61,46,0.12);
  --sh-xl: 0 16px 48px rgba(11,61,46,0.15);

  /* Layout */
  --max-w: 1280px;
  --sidebar-w: 300px;
  --filters-w: 280px;

  /* Transitions */
  --t: all 0.2s ease;
  --t-slow: all 0.35s ease;

  /* Header height — used for sticky offset */
  --header-h: 98px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
  background: #f8f9fa;
}
body.nav-open { overflow: hidden; } /* Block scroll when mobile nav open */

a { color: var(--green); text-decoration: none; transition: var(--t); }
a:hover { color: var(--green-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }
h1,h2,h3,h4,h5,h6 { color: var(--gray-900); line-height: 1.3; font-weight: 700; }

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

/* Skip link — accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: var(--s16); top: var(--s16); width: auto; height: auto;
  padding: var(--s8) var(--s16); background: var(--green); color: white;
  border-radius: var(--r8); z-index: 9999; font-weight: 600;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* Topbar */
.header-topbar {
  background: var(--green-dark);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s12);
  min-height: 0;
}
.topbar-flag { display: flex; align-items: center; gap: var(--s8); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: var(--s8); flex-shrink: 0; }
.topbar-social { display: flex; gap: var(--s6, 6px); }
.topbar-social a {
  /* Min 44x44 touch target with padding trick */
  width: 32px; height: 32px;
  border-radius: var(--r6);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  transition: var(--t);
  text-decoration: none;
}
.topbar-social a:hover { background: rgba(255,255,255,0.2); color: white; }

/* Header main */
.header-main { padding: var(--s12) 0; }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s20);
  position: relative;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: var(--s10, 10px);
  text-decoration: none; flex-shrink: 0;
  min-width: 0;
}
.site-logo img { height: 42px; width: auto; flex-shrink: 0; }
.logo-fallback {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border-radius: var(--r8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
}
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name { font-size: 17px; font-weight: 800; color: white; letter-spacing: -0.3px; white-space: nowrap; }
.logo-tagline { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

/* Desktop nav */
.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 2px; justify-content: center; }
.main-nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 11px;
  color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 500;
  border-radius: var(--r6);
  transition: var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); color: white; }
.main-nav a i { font-size: 12px; opacity: 0.8; }
/* Active state — more visible */
.main-nav li.current > a {
  background: rgba(255,255,255,0.18);
  color: white;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.5);
}
.main-nav .nav-offres > a  { color: #a7f0cc; }
.main-nav .nav-concours > a { color: #f0d98a; }
.main-nav .nav-offres > a:hover,
.main-nav .nav-concours > a:hover { color: white; }

/* Hamburger — hidden desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: var(--s12);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r8);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: white; border-radius: 2px; transition: var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open {
  display: block;
  max-height: 100vh;
}
.mobile-nav-inner { padding: var(--s8) var(--s20) var(--s20); }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav ul li:last-child { border-bottom: none; }
.mobile-nav ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: var(--t);
  gap: var(--s8);
}
.mobile-nav ul a i:first-child { color: var(--green-light); width: 18px; text-align: center; }
.mobile-nav ul a:hover { color: white; padding-left: var(--s8); }
.mobile-nav ul a.nav-offres-link { color: #a7f0cc; }
.mobile-nav ul a.nav-concours-link { color: #f0d98a; }
.mobile-nav-count {
  margin-left: auto; flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 11px; font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--r-full);
}
.mobile-nav-social {
  display: flex; gap: var(--s8);
  padding-top: var(--s16); margin-top: var(--s8);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.mobile-nav-social a {
  /* 44x44 touch target */
  width: 44px; height: 44px;
  border-radius: var(--r8);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  text-decoration: none;
  transition: var(--t);
}
.mobile-nav-social a:hover { background: rgba(255,255,255,0.2); color: white; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px;
  font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: var(--r8);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
  /* Min touch target 44px */
  min-height: 44px;
}
.btn:focus-visible { outline: 3px solid rgba(11,61,46,0.4); outline-offset: 2px; }
.btn-primary { background: var(--green); color: white; border-color: var(--green); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); color: white; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn-white { background: white; color: var(--green); border-color: white; }
.btn-white:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-gold { background: var(--gold); color: var(--green-dark); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: #b8932f; border-color: #b8932f; color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.4); }
.btn-ghost { background: rgba(255,255,255,0.12); color: white; border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 15px; min-height: 50px; }
.btn-block { width: 100%; justify-content: center; }

/* Social share buttons */
.btn-whatsapp { background: #25D366; color: white; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; color: white; }
.btn-facebook { background: #1877F2; color: white; border-color: #1877F2; }
.btn-facebook:hover { background: #1462cc; border-color: #1462cc; color: white; }
.btn-linkedin { background: #0A66C2; color: white; border-color: #0A66C2; }
.btn-linkedin:hover { background: #084fa3; border-color: #084fa3; color: white; }
.btn-twitter { background: #000; color: white; border-color: #000; }
.btn-twitter:hover { background: #333; border-color: #333; color: white; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--green) 55%, var(--green-mid) 100%);
  padding: var(--s80) 0 var(--s80);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 85% 15%, rgba(201,168,76,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 5% 85%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: var(--s20);
}
.hero h1 {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800; color: white;
  letter-spacing: -1px; line-height: 1.12;
  margin-bottom: var(--s16);
}
.hero h1 span { color: #f0d98a; }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--s32);
  max-width: 600px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* Hero search bar */
.hero-search {
  background: white;
  border-radius: var(--r20);
  padding: var(--s8);
  display: grid;
  grid-template-columns: 1fr 170px 170px auto;
  gap: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  max-width: 860px;
  margin: 0 auto var(--s40);
}
.search-field {
  display: flex; align-items: center; gap: var(--s8);
  padding: 10px 14px;
  border-radius: var(--r12);
  transition: var(--t);
  min-width: 0;
}
.search-field:focus-within { background: var(--gray-100); }
.search-field i { color: var(--gray-400); font-size: 14px; flex-shrink: 0; }
.search-field input,
.search-field select {
  border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--gray-900);
  width: 100%; min-width: 0;
}
.search-field select { cursor: pointer; }
.search-field input::placeholder { color: var(--gray-400); }
.hero-search .btn {
  padding: 14px 24px;
  border-radius: var(--r12);
  font-size: 15px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hero stats */
.hero-stats {
  display: flex; justify-content: center; align-items: center;
  gap: var(--s32); flex-wrap: wrap;
  position: relative; z-index: 2;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800; color: #f0d98a; line-height: 1;
}
.hero-stat-label {
  font-size: 11px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}
.hero-stat-sep {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--s64) 0; }
.section-sm { padding: var(--s40) 0; }
.section-white { background: white; }
.section-gray  { background: #f8f9fa; }
.section-pale  { background: var(--green-xs); }
.section-green { background: var(--green); }

.section-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s16); margin-bottom: var(--s32); flex-wrap: wrap;
}
.section-label {
  display: flex; align-items: center; gap: var(--s6);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--green-light); margin-bottom: var(--s6);
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 2px;
  background: var(--green-light); border-radius: 2px;
}
.section-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800; letter-spacing: -0.5px;
}
.section-desc { color: var(--gray-600); font-size: 15px; margin-top: var(--s6); }
.section-cta { text-align: center; margin-top: var(--s40); }

/* ============================================================
   CARDS GRID — Fixed 3-col desktop, 1-col mobile
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s20);
}

/* Card base */
.card {
  background: white;
  border-radius: var(--r12);
  border: 1px solid var(--gray-200);
  padding: var(--s20);
  display: flex; flex-direction: column; gap: var(--s14, 14px);
  position: relative;
  transition: var(--t-slow);
  cursor: pointer;
}
/* Whole card clickable via pseudo-element */
.card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r12); z-index: 0;
}
.card > * { position: relative; z-index: 1; }

.card:hover {
  border-color: var(--green);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}
/* Subtle hover — no jarring jump */
.card:active { transform: translateY(0) scale(0.99); }
.card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fdf9ec 0%, white 45%);
}

.card-featured-badge {
  position: absolute; top: -1px; right: var(--s16);
  background: var(--gold); color: var(--green-dark);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 0 0 var(--r6) var(--r6);
}

.card-header { display: flex; align-items: flex-start; gap: var(--s12); }
.card-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r8);
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--green);
  overflow: hidden;
  border: 1px solid rgba(11,61,46,0.08);
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-info { flex: 1; min-width: 0; }
.card-title {
  font-size: 15px; font-weight: 700; color: var(--gray-900);
  line-height: 1.35; margin-bottom: 3px;
  /* Truncate long titles at 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: inherit; text-decoration: none; }
.card:hover .card-title { color: var(--green); }
.card-company {
  font-size: 12px; color: var(--gray-600);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag-ville   { background: var(--green-pale); color: var(--green); }
.tag-contrat { background: #dbeafe; color: #1e40af; }
.tag-secteur { background: var(--gold-pale); color: #7a5c10; }

/* Card footer */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s12);
  border-top: 1px solid var(--gray-200);
  margin-top: auto; gap: var(--s8);
}
/* WCAG: date text contrast fixed from gray-300 to gray-500 */
.card-date {
  font-size: 12px; color: var(--gray-500);
  display: flex; align-items: center; gap: 4px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--green);
  padding: 4px 8px; border-radius: var(--r6);
  transition: var(--t); white-space: nowrap;
  /* Extend touch target */
  min-height: 36px;
}
.card-link:hover { color: var(--green-light); gap: 7px; background: var(--green-pale); }

/* Concours card */
.card-concours { border-left: 3px solid var(--gold); }
.card-concours:hover { border-left-color: var(--green); }
.concours-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green); color: white;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: var(--r-full); width: fit-content;
}
.concours-org {
  font-size: 12px; font-weight: 600; color: var(--green);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deadline {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.deadline-normal { background: var(--gold-pale); color: #7a5c10; }
.deadline-urgent { background: var(--red-pale); color: #991b1b; }

/* ============================================================
   HOMEPAGE — 3 SPACES GRID
   ============================================================ */
.spaces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s20); }
.space-card {
  border-radius: var(--r16);
  padding: var(--s32) var(--s28, 28px);
  text-decoration: none;
  display: flex; flex-direction: column; gap: var(--s12);
  transition: var(--t-slow); position: relative; overflow: hidden;
  min-height: 200px;
}
.space-card::before {
  content: ''; position: absolute;
  bottom: -30px; right: -30px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.space-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.18); }
.space-offres   { background: linear-gradient(140deg, var(--green) 0%, var(--green-light) 100%); }
.space-concours { background: linear-gradient(140deg, #1e3a5f 0%, #2563eb 100%); }
.space-conseils { background: linear-gradient(140deg, #312e81 0%, #6d28d9 100%); }
.space-icon { font-size: 32px; line-height: 1; }
.space-title { font-size: 20px; font-weight: 800; color: white; }
.space-desc { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.65; }
.space-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.88);
  margin-top: auto; transition: var(--t);
}
.space-card:hover .space-link { gap: 10px; color: white; }

/* ============================================================
   CITIES SECTION
   ============================================================ */
.cities-wrap { display: flex; flex-wrap: wrap; gap: var(--s8); }
.city-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  transition: var(--t); text-decoration: none;
  /* Min touch target */
  min-height: 38px;
}
.city-tag:hover {
  background: var(--green); border-color: var(--green);
  color: white; transform: translateY(-2px); box-shadow: var(--sh-sm);
}
.city-tag i { font-size: 10px; color: var(--gray-400); transition: var(--t); }
.city-tag:hover i { color: rgba(255,255,255,0.7); }
.city-count { font-size: 11px; color: var(--gray-500); }

/* ============================================================
   ALERT / NEWSLETTER SECTION
   ============================================================ */
.alert-section { background: var(--green); padding: var(--s64) 0; position: relative; overflow: hidden; }
.alert-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.12), transparent 55%);
}
.alert-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s64); align-items: center;
  position: relative; z-index: 2;
}
.alert-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800; color: white;
  letter-spacing: -0.5px; margin-bottom: var(--s12);
}
/* WCAG: improved contrast from 0.72 to 0.82 */
.alert-text p { color: rgba(255,255,255,0.82); font-size: 15px; margin-bottom: var(--s20); }
.alert-benefits { display: flex; flex-direction: column; gap: var(--s8); }
.alert-benefits li {
  display: flex; align-items: center; gap: var(--s8);
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.alert-benefits li i { color: #f0d98a; font-size: 13px; flex-shrink: 0; }

.alert-form-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r16); padding: var(--s32);
  backdrop-filter: blur(8px);
}
.alert-form-box h3 {
  font-size: 17px; font-weight: 700; color: white; margin-bottom: var(--s20);
  display: flex; align-items: center; gap: var(--s8);
}
.alert-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s10, 10px); margin-bottom: var(--s10); }

/* FORM CONTROLS — all with proper labels */
.form-group { margin-bottom: var(--s16); }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.form-label.white { color: rgba(255,255,255,0.8); }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r8); outline: none;
  font-size: 14px; color: var(--gray-900); background: white;
  transition: var(--t); min-height: 44px;
}
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,61,46,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Alert form inputs (dark bg) */
.alert-input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r8); outline: none;
  font-size: 14px; color: white;
  transition: var(--t); min-height: 44px;
}
.alert-input::placeholder { color: rgba(255,255,255,0.5); }
.alert-input:focus { border-color: #f0d98a; background: rgba(255,255,255,0.18); }
.alert-input option { background: var(--green-dark); color: white; }
.alert-note {
  font-size: 11px; color: rgba(255,255,255,0.5);
  text-align: center; margin-top: var(--s10);
}
.alert-note a { color: rgba(255,255,255,0.65); }
.alert-msg { margin-top: var(--s12); }
.form-msg {
  padding: 11px 14px; border-radius: var(--r8);
  font-size: 13px; font-weight: 500;
}
.form-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error   { background: var(--red-pale); color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
   FOOTER NEWSLETTER STRIP
   ============================================================ */
.footer-strip {
  background: var(--green-xs);
  border-top: 1px solid var(--green-pale);
  padding: var(--s20) 0;
}
.footer-strip-inner {
  display: flex; align-items: center; gap: var(--s24); flex-wrap: wrap;
}
.strip-icon { font-size: 28px; flex-shrink: 0; color: var(--green); }
.strip-text { flex-shrink: 0; }
.strip-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900); }
.strip-text span   { font-size: 13px; color: var(--gray-600); }
.strip-form {
  display: flex; gap: var(--s8); flex: 1; align-items: center; flex-wrap: wrap;
}
.strip-form label { position: absolute; left: -9999px; } /* visually hidden but accessible */
.strip-input {
  flex: 1; min-width: 160px;
  padding: 10px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--r8); font-size: 14px; background: white;
  outline: none; min-height: 44px; transition: var(--t);
}
.strip-input:focus { border-color: var(--green); }
.strip-msg { width: 100%; font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0d1f14; color: rgba(255,255,255,0.6); }
.footer-main { padding: var(--s64) 0 var(--s40); }
/* PC: 4-col with better proportions */
.footer-grid { display: grid; grid-template-columns: 280px repeat(3, 1fr); gap: var(--s48); }

.footer-logo-wrap { display: flex; align-items: center; gap: var(--s10); margin-bottom: var(--s16); }
.footer-logo-icon {
  width: 40px; height: 40px; border-radius: var(--r8);
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white; flex-shrink: 0;
}
.footer-logo-name { font-weight: 800; font-size: 17px; color: white; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-bottom: var(--s16); }

.footer-email {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-bottom: var(--s16); transition: var(--t);
  text-decoration: none;
}
.footer-email:hover { color: white; }

.footer-social { display: flex; gap: var(--s8); flex-wrap: wrap; }
.footer-social a {
  /* 40x40 touch target */
  width: 40px; height: 40px;
  border-radius: var(--r8);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px;
  transition: var(--t); text-decoration: none;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); color: white; }

/* WCAG: footer col headings contrast fixed */
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s16);
}
.footer-col ul li { margin-bottom: var(--s8); }
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 5px;
  transition: var(--t); text-decoration: none;
  padding: 2px 0;
}
.footer-col a:hover { color: white; padding-left: 4px; }
.footer-col a i { font-size: 9px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--s16) 0;
}
.footer-bottom .container {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s16); flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,0.3); max-width: 580px; line-height: 1.6; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb-bar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--gray-400); font-size: 11px; }
/* WCAG: breadcrumb current — truncate long titles */
.breadcrumb .bc-current {
  color: var(--gray-700); font-weight: 500;
  max-width: 400px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-bar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: var(--s24) 0;
  margin-bottom: var(--s32);
}
.archive-bar-inner {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--s12); flex-wrap: wrap;
}
.archive-h1 { font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; letter-spacing: -0.3px; }
.archive-desc { color: var(--gray-600); font-size: 14px; margin-top: 4px; max-width: 600px; }
.archive-count { font-size: 13px; color: var(--gray-600); }
.archive-count strong { color: var(--green); }

/* Archive layout */
.archive-layout { display: grid; grid-template-columns: var(--filters-w) 1fr; gap: var(--s32); align-items: start; }

/* Filters sidebar — PC */
.filters-box {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r12);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters-head {
  background: var(--green); padding: 14px 20px;
  font-size: 13px; font-weight: 700; color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.filters-reset {
  font-size: 11px; color: rgba(255,255,255,0.7);
  text-decoration: none; transition: var(--t); font-weight: 400;
}
.filters-reset:hover { color: white; }
.filters-body { padding: 18px 20px; }
.filter-group { margin-bottom: var(--s20); }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--gray-600); margin-bottom: var(--s8);
  display: flex; align-items: center; gap: 5px;
}
.filter-select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--gray-200); border-radius: var(--r8);
  font-size: 13px; color: var(--gray-700); background: white;
  outline: none; cursor: pointer; transition: var(--t); min-height: 40px;
}
.filter-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,61,46,0.08); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--s8); }
.filter-chip {
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500; cursor: pointer;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid transparent; transition: var(--t);
  text-decoration: none;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--green-pale); color: var(--green); border-color: var(--green);
}
.filters-mobile-btn { display: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--s32); align-items: start;
  padding: var(--s32) 0 var(--s64);
}

.post-box {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r12);
  padding: var(--s32); margin-bottom: var(--s20);
}
.post-type-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: var(--s16);
}
.post-type-tag.offre    { background: var(--green-pale); color: var(--green); }
.post-type-tag.concours { background: var(--gold-pale); color: #7a5c10; }
.post-type-tag.conseil  { background: #ede9fe; color: #5b21b6; }

.post-h1 {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800; letter-spacing: -0.3px; margin-bottom: var(--s16); line-height: 1.25;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: var(--s16);
  padding: var(--s16) 0;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--s16);
}
.post-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gray-600); }
.post-meta-item i { color: var(--green); font-size: 12px; }
.post-tax-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s16); }

/* Info table — fix PC line length + responsive */
.info-box {
  background: var(--green-xs); border: 1px solid var(--green-pale);
  border-radius: var(--r12); padding: var(--s20); margin-bottom: var(--s20);
}
.info-box-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--green); margin-bottom: var(--s16);
  display: flex; align-items: center; gap: 6px;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--green-pale); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 9px 0; font-size: 13px; vertical-align: top; }
/* Fixed: was 42% which was too narrow for long labels */
.info-key {
  color: var(--gray-600); width: 38%;
  display: flex; align-items: flex-start; gap: 6px;
  padding-right: var(--s8);
}
.info-key i { color: var(--green); font-size: 11px; margin-top: 2px; flex-shrink: 0; }
.info-val { color: var(--gray-900); font-weight: 600; }

/* PC: post content max-width for readability (65-75 chars per line) */
.post-content-wrap { max-width: 720px; }
.post-content {
  font-size: 15px; line-height: 1.8; color: var(--gray-700);
}
.post-content h2 { font-size: 20px; font-weight: 700; margin: var(--s28, 28px) 0 var(--s12); color: var(--gray-900); }
.post-content h3 { font-size: 17px; font-weight: 700; margin: var(--s20) 0 var(--s8); color: var(--gray-900); }
.post-content p { margin-bottom: var(--s16); }
.post-content ul, .post-content ol { padding-left: var(--s20); margin-bottom: var(--s16); }
.post-content li { margin-bottom: 5px; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content a { color: var(--green); text-decoration: underline; }
.post-content strong { color: var(--gray-900); font-weight: 600; }
.post-content blockquote {
  border-left: 3px solid var(--gold); padding: var(--s16) var(--s20);
  background: var(--gold-pale); border-radius: 0 var(--r8) var(--r8) 0;
  margin: var(--s20) 0; font-style: italic;
}

.disclaimer-box {
  background: #fffbeb; border: 1px solid #fde68a;
  border-left: 3px solid var(--gold); border-radius: var(--r8);
  padding: var(--s12) var(--s16); font-size: 13px; color: #7a5c10;
  display: flex; gap: var(--s8); align-items: flex-start; margin-bottom: var(--s20);
}
.disclaimer-box i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.nav-links-box {
  background: var(--green-xs); border-radius: var(--r8);
  padding: var(--s14, 14px) var(--s20); display: flex; flex-direction: column;
  gap: var(--s8); margin-top: var(--s20);
}
.nav-links-box a { font-size: 13px; font-weight: 500; color: var(--green); }
.nav-links-box a:hover { color: var(--green-light); }

/* Mobile apply button — hidden on PC */
.mobile-apply { display: none; margin-bottom: var(--s20); }

/* Sidebar */
.single-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

/* Apply box — always shown even without URL */
.apply-box {
  background: linear-gradient(140deg, var(--green) 0%, var(--green-mid) 100%);
  border-radius: var(--r12); padding: var(--s24);
  text-align: center; margin-bottom: var(--s20);
}
.apply-box h3 { font-size: 16px; color: white; margin-bottom: var(--s8); font-weight: 700; }
.apply-box p { font-size: 12px; color: rgba(255,255,255,0.72); margin-bottom: var(--s20); line-height: 1.6; }
.apply-box .btn { width: 100%; margin-bottom: var(--s8); }
.apply-note { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: var(--s12); line-height: 1.5; }
.apply-box-empty { text-align: center; padding: var(--s20) 0; }
.apply-box-empty p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: var(--s16); }

.share-box {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--r12); padding: var(--s20); margin-bottom: var(--s20);
}
.share-box h4 {
  font-size: 13px; font-weight: 700; color: var(--gray-700);
  margin-bottom: var(--s14, 14px); display: flex; align-items: center; gap: 6px;
}
.share-btns { display: flex; flex-direction: column; gap: 7px; }
.share-btns .btn { justify-content: flex-start; font-size: 13px; }

.sidebar-recent {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--r12); padding: var(--s20);
}
.sidebar-recent h4 {
  font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: var(--s14, 14px);
}
.sidebar-list li { border-bottom: 1px solid var(--gray-100); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; text-decoration: none; }
.sidebar-list a:hover .sidebar-list-title { color: var(--green); }
.sidebar-list-title {
  font-size: 13px; font-weight: 600; color: var(--gray-900); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-list-date { font-size: 11px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: var(--s40) 0 var(--s8); flex-wrap: wrap;
}
/* Touch target 44px */
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r8);
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  background: white; border: 1px solid var(--gray-200);
  transition: var(--t); text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .current { background: var(--green); border-color: var(--green); color: white; }
.pagination .dots { background: transparent; border-color: transparent; pointer-events: none; color: var(--gray-400); }

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
  text-align: center; padding: var(--s64) var(--s24);
  background: white; border-radius: var(--r12); border: 1px solid var(--gray-200);
}
.no-results i { font-size: 48px; color: var(--gray-400); margin-bottom: var(--s20); }
.no-results h3 { font-size: 20px; margin-bottom: var(--s8); }
.no-results p { color: var(--gray-600); }

/* ============================================================
   WORDPRESS COMPAT
   ============================================================ */
.alignleft  { float: left; margin: 0 var(--s24) var(--s16) 0; }
.alignright { float: right; margin: 0 0 var(--s16) var(--s24); }
.aligncenter { display: block; margin: 0 auto var(--s16); }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ============================================================
   RESPONSIVE — TABLET 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --header-h: 88px; }

  /* Nav: tighter on tablet */
  .main-nav a { padding: 7px 8px; font-size: 12.5px; }

  /* Cards: 2 cols on tablet */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .spaces-grid { grid-template-columns: 1fr; gap: var(--s16); }
  .space-card { min-height: 160px; }

  /* Archive: stack on tablet */
  .archive-layout { grid-template-columns: 1fr; }
  .filters-box { position: static; display: none; }
  .filters-box.open { display: block; margin-bottom: var(--s20); }
  .filters-mobile-btn { display: flex !important; }

  /* Single: stack on tablet */
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .apply-box { position: static; }
  .mobile-apply { display: block; }
  .single-sidebar .apply-box { display: none; }
  .single-sidebar .sidebar-recent { display: none; }

  /* Alert */
  .alert-grid { grid-template-columns: 1fr; gap: var(--s40); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s32); }

  /* Post content full width */
  .post-content-wrap { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* === HEADER === */
  .header-topbar { display: none; } /* Hide on mobile */
  .main-nav { display: none; }     /* Desktop nav hidden */
  .nav-toggle { display: flex; }   /* Show hamburger */

  /* === HERO === */
  .hero { padding: var(--s48) 0 var(--s56); min-height: 0; }
  .hero h1 { font-size: clamp(22px, 6vw, 30px); letter-spacing: -0.5px; }
  .hero-sub { font-size: 14px; margin-bottom: var(--s24); }
  .hero-badge { font-size: 11px; padding: 5px 13px; }

  /* Search bar: 1 column on mobile — keyword + button only */
  .hero-search {
    grid-template-columns: 1fr;
    gap: var(--s8); border-radius: var(--r12); padding: var(--s12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  }
  /* Hide selects on mobile — keep only keyword + button */
  .hero-search .search-field-ville,
  .hero-search .search-field-type { display: none; }
  .hero-search .btn {
    width: 100%; padding: 14px; font-size: 15px; border-radius: var(--r8);
  }
  /* Mobile search filters below */
  .hero-search-mobile-filters {
    display: flex; gap: var(--s8); margin-top: var(--s8); flex-wrap: wrap;
  }
  .hero-search-mobile-filters select {
    flex: 1; min-width: 130px; padding: 10px 12px;
    border: 1px solid var(--gray-200); border-radius: var(--r8);
    font-size: 14px; background: white; outline: none;
  }

  /* Hero stats */
  .hero-stats { gap: var(--s20); }
  .hero-stat-num { font-size: 24px; }
  .hero-stat-sep { display: none; }
  .hero-stat-label { font-size: 10px; }

  /* === SECTIONS === */
  .section { padding: var(--s40) 0; }
  .section-top { flex-direction: column; align-items: flex-start; gap: var(--s8); }
  .section-cta { margin-top: var(--s24); }

  /* === CARDS === */
  .cards-grid { grid-template-columns: 1fr; gap: var(--s16); }
  .spaces-grid { grid-template-columns: 1fr; gap: var(--s12); }
  .space-card { min-height: 140px; padding: var(--s20); }
  .space-title { font-size: 18px; }
  .space-icon { font-size: 26px; }

  /* Active state for touch */
  .card:active { transform: scale(0.98); box-shadow: none; }

  /* === ARCHIVE === */
  .archive-bar { padding: var(--s16) 0; margin-bottom: var(--s20); }
  .archive-bar-inner { gap: var(--s8); }
  .archive-h1 { font-size: 20px; }

  /* === SINGLE === */
  .single-layout { padding: var(--s16) 0 var(--s32); }
  .post-box { padding: var(--s16); margin-bottom: var(--s16); }
  .post-h1 { font-size: 20px; }
  .post-meta { gap: var(--s8); padding: var(--s12) 0; }

  /* Info table: stack on mobile */
  .info-table, .info-table tbody, .info-table tr, .info-table td {
    display: block; width: 100%;
  }
  .info-table tr { padding: var(--s8) 0; border-bottom: 1px solid var(--green-pale); }
  .info-table tr:last-child { border-bottom: none; }
  .info-key { width: 100%; color: var(--gray-500); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; padding-right: 0; }
  .info-val { font-size: 14px; padding-left: 0; }

  /* Share buttons: horizontal wrap */
  .share-btns { flex-direction: row; flex-wrap: wrap; }
  .share-btns .btn { flex: 1 1 calc(50% - 4px); min-width: 100px; justify-content: center; font-size: 12px; }

  /* Sidebar hidden on mobile — apply button shown inline */
  .single-sidebar { display: none; }
  .mobile-apply { display: block !important; }

  /* === CITIES === */
  .city-tag { font-size: 12px; padding: 7px 12px; }

  /* === ALERT SECTION === */
  .alert-grid { grid-template-columns: 1fr; gap: var(--s32); }
  .alert-row { grid-template-columns: 1fr; gap: var(--s8); }
  .alert-form-box { padding: var(--s20); }

  /* === FOOTER STRIP === */
  .footer-strip-inner { flex-direction: column; align-items: stretch; gap: var(--s16); }
  .strip-form { flex-direction: column; gap: var(--s8); }
  .strip-input { width: 100%; min-width: unset; }
  .strip-form .btn { width: 100%; justify-content: center; }

  /* === FOOTER === */
  .footer-grid { grid-template-columns: 1fr; gap: var(--s24); }
  .footer-main { padding: var(--s40) 0 var(--s24); }
  .footer-bottom .container { flex-direction: column; gap: var(--s8); }
  .footer-disclaimer { text-align: center; max-width: 100%; }

  /* === BREADCRUMB === */
  .breadcrumb .bc-current { max-width: 180px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE 420px
   ============================================================ */
@media (max-width: 420px) {
  .container { padding: 0 var(--s16); }
  .hero h1 { font-size: 22px; }
  .hero-stat-num { font-size: 22px; }
  .card { padding: var(--s16); }
  .post-box { padding: var(--s14, 14px); }
  .btn-lg { padding: 13px 22px; font-size: 14px; }
  .info-box { padding: var(--s16); }
  .share-btns .btn { flex: 1 1 100%; }
  .city-tag { font-size: 11px; padding: 6px 10px; }
  .footer-social { gap: 6px; }
}

/* ============================================================
   CARD OVERLAY LINK — whole card clickable
   ============================================================ */
.card { position: relative; }
.card-overlay-link {
  position: absolute;
  inset: 0;
  border-radius: var(--r12);
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}
.card-overlay-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
/* Keep inner links above overlay but visually hidden from tab order */
.card > * { position: relative; z-index: 2; }
.card .card-title a,
.card .card-link { z-index: 3; }

/* ============================================================
   HERO SEARCH MOBILE FILTERS
   ============================================================ */
.hero-search-mobile-filters {
  display: none; /* Hidden on desktop */
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.hero-search-mobile-filters select {
  flex: 1; min-width: 130px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--r8);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px; outline: none;
  backdrop-filter: blur(4px);
}
.hero-search-mobile-filters select option { background: var(--green-dark); color: white; }

@media (max-width: 768px) {
  .hero-search-mobile-filters { display: flex; }
}

/* ============================================================
   ARCHIVE LAYOUT RESPONSIVE FIX
   ============================================================ */
@media (max-width: 768px) {
  .archive-layout { display: block; }
  .filters-box { margin-bottom: 16px; }
  .archive-h1 { font-size: 18px; }
  .archive-desc { font-size: 13px; }
}

/* ============================================================
   FORM SCREEN READER LABELS
   ============================================================ */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ============================================================
   FOOTER SOCIAL HOVER COLORS
   ============================================================ */
.footer-social a.fb:hover  { background: #1877F2 !important; }
.footer-social a.tw:hover  { background: #000 !important; }
.footer-social a.li:hover  { background: #0A66C2 !important; }
.footer-social a.ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) !important; }
.footer-social a.wa:hover  { background: #25D366 !important; }

/* ============================================================
   MOBILE NAV BODY LOCK
   ============================================================ */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
