/* ============================================================
   pages.css : styles des pages « matières » (droit des étrangers,
   familial, pénal, travail, aide juridique). Reprend la charte de
   l'accueil (index.html garde ses styles en ligne).
   ============================================================ */
:root {
  --navy: #0f1f3a;
  --navy-2: #172a4a;
  --gold: #b08d57;
  --gold-dark: #8a6a3b;
  --gold-light: #f4ede1;
  --ink: #141821;
  --ink-soft: #485063;
  --muted: #7d8494;
  --bg: #ffffff;
  --bg-alt: #f8f6f2;
  --line: #e8e4dc;
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(15, 31, 58, 0.35);
  --shadow-gold: 0 14px 32px -14px rgba(176, 141, 87, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.15; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 6px; cursor: pointer; border: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); background: var(--gold-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -15px rgba(0,0,0,.45); }


/* ---------- Hero matière ---------- */
.m-hero { position: relative; background: var(--navy); color: #fff; padding: 150px 0 90px; overflow: hidden; }
.m-hero::before { content: ""; position: absolute; top: -220px; right: -160px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(176,141,87,.22), transparent 65%); pointer-events: none; }
.m-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: rgba(255,255,255,.35); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.m-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); margin-bottom: 22px; }
.m-hero h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.m-hero .lead { font-size: 1.06rem; color: rgba(255,255,255,.76); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.m-hero-visual { position: relative; width: 100%; max-width: 460px; margin-left: auto; aspect-ratio: 4/3; }
.m-hero-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: 18px; }
.m-hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.7); }

/* ---------- Section base ---------- */
.section-pad { padding: 84px 0; }
.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.kicker { color: var(--gold-dark); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; display: inline-block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.bar { display: block; width: 60px; height: 2px; background: var(--gold); margin-top: 16px; }
.section-head.center .bar { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Situations ---------- */
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.sit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.sit-card .num { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; font-weight: 700; color: var(--gold-dark); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-light); margin-bottom: 16px; }
.sit-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.sit-card p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Article + barre latérale ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 46px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.4rem; margin: 26px 0 8px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.01rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(176,141,87,.45); text-underline-offset: 3px; }
.prose ul { margin: 0 0 16px; display: grid; gap: 9px; }
.prose ul li { color: var(--ink-soft); padding-left: 24px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose figure { margin: 30px 0; }
.prose figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.callout { background: var(--gold-light); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 24px 0; color: var(--ink); font-size: .98rem; }
.callout strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.25rem; margin-bottom: 4px; }

.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.55rem; margin-bottom: 8px; }
.aside-card p { font-size: .92rem; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.aside-card ul { display: grid; gap: 12px; margin-bottom: 22px; }
.aside-card li { display: flex; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.88); }
.aside-card li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-links { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.aside-links h4 { font-size: 1.3rem; margin-bottom: 12px; }
.aside-links ul { display: grid; gap: 4px; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; font-weight: 500; transition: color .2s, padding .2s; }
.aside-links li:last-child a { border-bottom: none; }
.aside-links a:hover { color: var(--gold-dark); padding-left: 4px; }
.aside-links a svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Démarche ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: "Cormorant Garamond", serif; font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Documents ---------- */
.docs-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.docs-layout img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.docs-list { display: grid; gap: 12px; margin-top: 8px; }
.docs-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.docs-list .check { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-light); color: var(--gold-dark); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.docs-list .check svg { width: 13px; height: 13px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--gold-light); color: var(--gold-dark); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .3s; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 22px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Autres domaines ---------- */
.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.other-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.other-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.other-card:hover img { transform: scale(1.06); }
.other-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,31,58,.95), rgba(15,31,58,.25) 70%); }
.other-card span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.other-card span small { display: block; font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 500; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(90deg, rgba(74,51,22,.94), rgba(176,141,87,.82)), url("images/ambiances/palais-justice-bruxelles.webp") center 44%/cover; color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 50px 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cta-inner p { color: rgba(255,255,255,.92); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 10px; }
.contact-info p { color: var(--ink-soft); line-height: 1.65; margin-bottom: 26px; }
.contact-info li { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; font-size: .96rem; color: var(--ink); }
.contact-info li svg { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.contact-info li small { display: block; color: var(--muted); font-size: .85rem; }
.contact-info a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-info a:hover { color: var(--gold-dark); }
.contact-form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 18px 50px rgba(15,31,58,.08); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin-bottom: 16px; }
.check-field input { margin-top: 5px; accent-color: var(--gold-dark); }
.req { color: var(--gold-dark); }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.contact-status { margin-top: 14px; font-size: 14px; line-height: 1.5; min-height: 1px; }
.contact-status.success { color: #0a7c3a; }
.contact-status.error { color: #b3261e; }
.contact-consent { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.contact-consent a { color: var(--gold-dark); }
.disclaimer { font-size: .85rem; color: var(--muted); text-align: center; max-width: 760px; margin: 40px auto 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .other-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .m-hero-grid, .article-layout, .docs-layout { grid-template-columns: 1fr; gap: 44px; }
  .m-hero-visual { max-width: 460px; margin: 0 auto; }
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 30px; } .field-row { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .m-hero { padding: 120px 0 70px; }
  .sit-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 480px) {
  .other-grid { grid-template-columns: 1fr; }
  .m-hero-visual::before { display: none; }
  .btn { white-space: normal; }
}
