/* ============================================================
   recourscollectifs.ca — Main Stylesheet
   Brand: ABC Avocats navy #105089
   Built: 2026-06 / revised for layout consistency
   ============================================================ */

:root {
  --navy:       #105089;
  --navy-dark:  #0c3d68;
  --navy-light: #e8f0f8;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --text:       #1a1a2e;
  --text-muted: #5a6072;
  --border:     #dde3ec;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 2px 12px rgba(16,80,137,.09);
  --shadow-md:  0 4px 24px rgba(16,80,137,.13);

  /* Status colours */
  --status-active:    #1d7a3a;
  --status-active-bg: #e6f4eb;
  --status-notice:    #b45309;
  --status-notice-bg: #fef3c7;
  --status-settled:   #105089;
  --status-settled-bg:#e8f0f8;
  --status-closed:    #4b5563;
  --status-closed-bg: #f3f4f6;
  --status-lost:      #b91c1c;
  --status-lost-bg:   #fee2e2;
  --status-won:       #166534;
  --status-won-bg:    #dcfce7;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
address { font-style: normal; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow,
.container.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo — fixed height on all pages */
.site-logo,
.logo {
  flex-shrink: 0;
  line-height: 0;
}
.site-logo img,
.logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Nav */
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.main-nav a {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  text-transform: uppercase;
  transition: color .18s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--navy); text-decoration: none; }

/* Lang switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.lang-switch a,
.lang-switch .lang-active { color: var(--text-muted); }
.lang-switch a.active,
.lang-switch .lang-active { color: var(--navy); }
.lang-switch span { color: var(--border); }

/* Mobile toggle */
.nav-toggle,
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  flex-shrink: 0;
}
.nav-toggle span,
.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: .2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1.5rem 1rem;
}
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: .6rem 0;
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav .lang-switch,
.mobile-nav .mobile-lang-switch {
  padding-top: .75rem;
  border-top: none;
}
.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle,
  .mobile-nav-toggle { display: block; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .18s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--off-white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── Homepage hero ──────────────────────────────────────────── */
.home-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.home-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: .75rem;
}
.hero-body {
  font-size: .95rem;
  opacity: .78;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero,
.case-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}
.page-hero .container,
.case-hero .container {
  max-width: 1100px;
}
.page-hero h1,
.case-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .4rem;
}
.page-hero p,
.case-hero p,
.case-hero-subtitle {
  font-size: 1rem;
  opacity: .85;
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  font-size: .8rem;
  opacity: .75;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.breadcrumb ol li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb ol li:not(:last-child)::after {
  content: '›';
  opacity: .6;
  margin-left: .2rem;
}
/* Also support the simple div > a span structure */
.breadcrumb:not(nav) {
  font-size: .8rem;
  opacity: .75;
  margin-bottom: .75rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--white); opacity: .85; }
.breadcrumb span { opacity: .6; }

/* ── Status badges ──────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status--submitted    { background: var(--status-active-bg);  color: var(--status-active);  }
.status--authorized   { background: var(--status-active-bg);  color: var(--status-active);  }
.status--notice       { background: var(--status-notice-bg);  color: var(--status-notice);  }
.status--registration { background: var(--status-notice-bg);  color: var(--status-notice);  }
.status--claims       { background: var(--status-notice-bg);  color: var(--status-notice);  }
.status--distribution { background: var(--status-notice-bg);  color: var(--status-notice);  }
.status--fees-submitted  { background: var(--status-notice-bg); color: var(--status-notice); }
.status--fees-approved   { background: var(--status-active-bg); color: var(--status-active); }
.status--plan-submitted  { background: var(--status-notice-bg); color: var(--status-notice); }
.status--plan-approved   { background: var(--status-active-bg); color: var(--status-active); }
.status--final-report    { background: var(--status-settled-bg); color: var(--status-settled); }
.status--settled      { background: var(--status-settled-bg); color: var(--status-settled); }
.status--won          { background: var(--status-won-bg);     color: var(--status-won);     }
.status--lost         { background: var(--status-lost-bg);    color: var(--status-lost);    }
.status--closed       { background: var(--status-closed-bg);  color: var(--status-closed);  }

.status--submitted::before,
.status--authorized::before   { background: var(--status-active);  }
.status--notice::before,
.status--registration::before,
.status--claims::before,
.status--distribution::before,
.status--fees-submitted::before,
.status--plan-submitted::before { background: var(--status-notice); }
.status--fees-approved::before,
.status--plan-approved::before { background: var(--status-active); }
.status--final-report::before,
.status--settled::before      { background: var(--status-settled); }
.status--won::before          { background: var(--status-won);     }
.status--lost::before         { background: var(--status-lost);    }
.status--closed::before       { background: var(--status-closed);  }

/* ── Status banner (case pages) ─────────────────────────────── */
.case-status-banner {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.case-status-banner .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.case-status-banner .status-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.case-number-full {
  font-family: monospace;
  font-size: .82rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ── Section layout ─────────────────────────────────────────── */
section { padding: 3.5rem 0; }
.section-cases,
.section-news,
.section-cases.bg-off-white { background: var(--off-white); }
.section-cases { padding: 3.5rem 0; }
.section-news { padding: 3.5rem 0; background: var(--white); }

/* Section inner — used by homepage/list pages */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .5rem;
}
.section-inner h2,
.section-header h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
}

/* ── Case cards ─────────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--navy-light);
}
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body {
  padding: 1.25rem 1.25rem .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.case-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.case-number {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: .02em;
}
.case-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.case-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.case-card-footer {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}
.card-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.card-link:hover { text-decoration: none; opacity: .75; }

/* ── News feed ───────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--navy);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.news-item-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.case-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-light);
  padding: .15rem .5rem;
  border-radius: 3px;
}
.news-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.news-item p { font-size: .875rem; color: var(--text-muted); }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: .5rem;
}

/* ── Content block (case pages) ─────────────────────────────── */
.content-block { padding: 2.5rem 0; }
.content-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--navy-light);
}
.content-block h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.content-block p { margin-bottom: .85rem; }
.content-block ul { margin: .5rem 0 1rem 1.4rem; }
.content-block ul li { margin-bottom: .35rem; }

/* Update log */
.updates-log { display: flex; flex-direction: column; gap: .6rem; }
.update-entry {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .8rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.update-date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  min-width: 95px;
  padding-top: .1rem;
}
.update-text { font-size: .875rem; color: var(--text); line-height: 1.5; }

/* Document list */
.doc-list { display: flex; flex-direction: column; gap: .5rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none !important;
  color: var(--text);
}
.doc-item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--navy-light);
  color: var(--navy);
  flex-shrink: 0;
}
.doc-icon svg { width: 17px; height: 17px; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: .875rem; font-weight: 600; color: var(--text); }
.doc-lang { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.doc-download {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  white-space: nowrap;
}
.doc-download svg { width: 14px; height: 14px; }

/* External links */
.ext-link-list { display: flex; flex-direction: column; gap: .5rem; }
.ext-link-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color .15s;
  text-decoration: none !important;
}
.ext-link-item:hover { border-color: var(--navy); }
.ext-link-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); }

/* CTA box */
.content-cta {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--navy-light);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}
.content-cta p { margin: 0 0 1rem; font-weight: 600; color: var(--navy); }

/* ── About / Contact ─────────────────────────────────────────── */
.about-block p { margin-bottom: .9rem; }
.about-block ul { margin: .5rem 0 1rem 1.4rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-block h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--navy); }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .8rem;
  font-size: .9rem;
}
.contact-row svg { width: 17px; height: 17px; color: var(--navy); flex-shrink: 0; margin-top: .15rem; }
.contact-note h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--navy); }
.contact-note p { font-size: .875rem; color: var(--text-muted); margin-bottom: .6rem; }

@media (max-width: 680px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Footer brand block */
.footer-brand .site-logo img,
.footer-brand .logo img {
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: .85rem;
}
.footer-brand address,
.footer-brand p {
  font-size: .82rem;
  opacity: .78;
  line-height: 1.7;
}
.footer-brand a { color: rgba(255,255,255,.75); }
.footer-brand a:hover { color: var(--white); text-decoration: none; }

/* Footer nav columns — supports both .footer-col div and .footer-nav nav */
.footer-col h4,
.footer-nav h3 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .85rem;
}
.footer-col a,
.footer-nav ul { list-style: none; }
.footer-col a,
.footer-nav a {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  margin-bottom: .4rem;
  transition: color .15s;
}
.footer-col a:hover,
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-nav li { margin-bottom: 0; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  font-size: .78rem;
  opacity: .6;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: calc(100% - 2rem);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
#cookie-banner.visible { display: flex; }
#cookie-banner p { font-size: .85rem; flex: 1; }
#cookie-banner a { color: rgba(255,255,255,.75); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; }
#btn-cookie-accept,
.btn-cookie-accept {
  background: var(--navy); color: var(--white);
  border: none; padding: .4rem .9rem;
  border-radius: var(--radius); font-size: .82rem; font-weight: 600; cursor: pointer;
}
#btn-cookie-decline,
.btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.3); padding: .4rem .9rem;
  border-radius: var(--radius); font-size: .82rem; cursor: pointer;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  section { padding: 2.5rem 0; }
}
