/* ===== Barreau du Kasaï-Central — Feuille de style ===== */
:root {
  --navy: #142a52;
  --navy-deep: #0b1a36;
  --gold: #c9a14a;
  --gold-light: #e2c47e;
  --ink: #1d2433;
  --muted: #5d6677;
  --line: #e4e1d9;
  --cream: #f7f4ee;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Éléments communs ----- */
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .9em; }
.eyebrow--light { color: var(--gold-light); }
.rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: 18px auto 0; }
.rule--left { margin: 18px 0 28px; }
.title-center { text-align: center; }
.section { padding: 110px 0; }
.section--tint { background: var(--cream); }
.section__head { text-align: center; margin-bottom: 64px; }
.section__head .eyebrow { margin-bottom: .6em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--sm { padding: 11px 18px; font-size: .7rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); padding-bottom: 4px; border-bottom: 1px solid var(--gold); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--sm { font-size: .68rem; }

/* ----- En-tête ----- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.topbar { background: rgba(11, 26, 54, .85); color: rgba(255,255,255,.75); font-size: .78rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a:hover { color: var(--gold-light); }

.nav { transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.header.is-stuck { position: fixed; }
.header.is-stuck .topbar { display: none; }
.header.is-stuck .nav { background: var(--navy-deep); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.header.is-stuck .nav__inner { min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand__logo { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px var(--gold); }
.brand__logo img { width: 92%; height: auto; transform: translateY(2px); }
.brand__text { font-family: var(--serif); font-size: 1rem; line-height: 1.1; letter-spacing: .02em; }
.brand__text strong { font-size: 1.35rem; font-weight: 700; }

.menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 10px 9px; color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; position: relative; }
.menu > li > a:not(.btn)::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu > li > a:hover::after, .menu > li > a.is-active::after { transform: scaleX(1); }
.menu__cta { margin-left: 10px; }
.menu__cta a.btn { color: var(--navy-deep); }

.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-top: 2px solid var(--gold); box-shadow: 0 18px 40px rgba(11,26,54,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 22px; font-size: .86rem; color: var(--ink); }
.sub a:hover { color: var(--navy); background: var(--cream); }

.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Héros ----- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 920px; color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay { background: linear-gradient(180deg, rgba(11,26,54,.75) 0%, rgba(11,26,54,.45) 45%, rgba(11,26,54,.85) 100%); }
.hero__content { position: relative; z-index: 2; text-align: center; padding-top: 110px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 6rem); font-weight: 600; letter-spacing: .01em; margin-bottom: .25em; }
.hero__motto { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--gold-light); margin-bottom: .8em; }
.hero__motto i { font-style: normal; margin: 0 .35em; }
.hero__lead { max-width: 540px; margin: 0 auto 2.2em; color: rgba(255,255,255,.85); font-weight: 300; font-size: 1.05rem; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__arrow { position: absolute; top: 50%; z-index: 3; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.35); background: rgba(11,26,54,.25); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .25s, border-color .25s; }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.hero__arrow--prev { left: 28px; }
.hero__arrow--next { right: 28px; }
.hero__dots { position: absolute; bottom: 120px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero__dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s, width .3s var(--ease); }
.hero__dots button.is-active { background: var(--gold); width: 46px; }

/* ----- Accès rapide ----- */
.quick { position: relative; z-index: 5; margin-top: -80px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 24px 60px rgba(11,26,54,.14); padding: 0; }
.quick__item { display: flex; gap: 16px; align-items: flex-start; padding: 32px 28px; border-right: 1px solid var(--line); transition: background .25s var(--ease); }
.quick__item:last-child { border-right: 0; }
.quick__item:hover { background: var(--cream); }
.quick__item svg { width: 34px; height: 34px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quick__item span { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.quick__item strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 2px; }

/* ----- Bâtonnier ----- */
.batonnier { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.batonnier__photo { position: relative; margin: 0; padding: 0 0 0 0; }
.batonnier__frame { position: absolute; top: -28px; left: -28px; width: 70%; height: 70%; background: var(--navy); z-index: 0; }
.batonnier__frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,161,74,.5); }
.batonnier__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.batonnier__photo figcaption { position: relative; z-index: 2; margin: -48px 24px 0 auto; width: 80%; background: #fff; padding: 20px 26px; box-shadow: 0 16px 40px rgba(11,26,54,.12); border-left: 3px solid var(--gold); font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.batonnier__photo figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); letter-spacing: 0; }
.batonnier__text h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .8em; }
.batonnier__text p { color: var(--muted); }
.batonnier__text em { color: var(--navy); font-style: italic; }
.signature { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .86rem; }
.signature span { display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--navy); }

/* ----- Présentation ----- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__text > p { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 32px 0 36px; }
.values li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values span { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1.2; }
.values strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.about__media { position: relative; padding-bottom: 90px; }
.about__img--main { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--cream); }

/* ----- Organes ----- */
.organs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.organ { padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .3s var(--ease), color .3s; }
.organ::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--gold); transition: width .35s var(--ease); }
.organ strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; transition: color .3s; }
.organ span { font-size: .85rem; color: var(--muted); transition: color .3s; }
.organ:hover { background: var(--navy); }
.organ:hover::before { width: 100%; }
.organ:hover strong { color: #fff; }
.organ:hover span { color: rgba(255,255,255,.7); }

/* ----- Actualités ----- */
.news { display: grid; grid-template-columns: 260px 1fr; gap: 60px; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { box-shadow: 0 20px 44px rgba(11,26,54,.12); transform: translateY(-4px); }
.card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.tag { position: absolute; left: 16px; top: 16px; background: var(--navy); color: #fff; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card time { font-size: .74rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.card h3 { font-size: 1.32rem; margin: .4em 0 .6em; }
.card h3 a:hover { color: var(--gold); }
.card p { font-size: .88rem; color: var(--muted); flex: 1; }
.card .link-arrow { align-self: flex-start; }

/* ----- Communiqués + annuaire ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.notices__list { list-style: none; padding: 0; margin: 0 0 32px; }
.notices__list li { display: flex; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notices__date { flex-shrink: 0; width: 64px; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-right: 1px solid var(--line); padding-right: 16px; }
.notices__date strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--navy); letter-spacing: 0; }
.notices__type { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.notices__list a { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.notices__list a:hover { color: var(--gold); }

.directory { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 52px; position: relative; overflow: hidden; }
.directory::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border: 1px solid rgba(201,161,74,.25); border-radius: 50%; box-shadow: 0 0 0 30px rgba(201,161,74,.05); }
.directory h2 { color: #fff; }
.directory__form { display: grid; gap: 12px; margin: 28px 0 18px; position: relative; z-index: 1; }
.directory__form input, .directory__form select, .newsletter input { width: 100%; padding: 15px 18px; font: 400 .92rem var(--sans); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; border-radius: 2px; outline: none; transition: border-color .2s; }
.directory__form select option { color: var(--ink); }
.directory__form input::placeholder { color: rgba(255,255,255,.55); }
.directory__form input:focus, .directory__form select:focus { border-color: var(--gold); }
.directory__note { font-size: .78rem; color: rgba(255,255,255,.55); margin: 0; position: relative; z-index: 1; }

/* ----- Justiciables ----- */
.justice { position: relative; padding: 110px 0; background: var(--navy-deep); color: #fff; overflow: hidden; }
.justice__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.justice__inner { position: relative; }
.justice__head { margin-bottom: 56px; }
.justice h2 { color: #fff; }
.justice__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.jcard { background: rgba(11,26,54,.82); padding: 36px 30px 40px; font-size: .88rem; color: rgba(255,255,255,.72); transition: background .3s var(--ease); }
.jcard span { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-bottom: 18px; }
.jcard strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 10px; line-height: 1.2; }
.jcard:hover { background: rgba(20,42,82,.95); }

/* ----- Formation ----- */
.events { max-width: 880px; margin: 0 auto; }
.event { display: flex; gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.event:first-child { border-top: 1px solid var(--line); }
.event__date { flex-shrink: 0; width: 110px; text-align: center; background: var(--cream); padding: 14px 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.event__date strong { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--navy); }
.event h3 { margin: 0 0 .2em; }
.event p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ----- CTA ----- */
.cta { background: var(--cream); padding: 70px 0; border-top: 1px solid var(--line); }
.cta__inner { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; text-align: center; }
.cta p { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--navy); }
.cta p a { color: var(--navy); background: linear-gradient(transparent 62%, rgba(201,161,74,.45) 62%); }

/* ----- Pied de page ----- */
.footer { background: #fff; padding-top: 80px; font-size: .86rem; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer__brand img { width: 220px; margin-bottom: 18px; }
.footer h4 { font-size: 1.25rem; margin-bottom: .8em; }
.footer h4.mt { margin-top: 1.6em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a:hover { color: var(--gold); }
.small { font-size: .8rem; }
.newsletter { display: flex; gap: 0; }
.newsletter input { border-color: var(--line); background: #fff; color: var(--ink); padding: 12px 14px; }
.newsletter input:focus { border-color: var(--gold); }
.newsletter .btn { flex-shrink: 0; }
.footer__bottom { background: var(--navy-deep); color: rgba(255,255,255,.6); font-size: .78rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; min-height: 56px; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }

/* ----- Apparition au défilement ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 1260px) {
  .nav__toggle { display: block; }
  .menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); padding: 100px 28px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); z-index: -1; }
  .menu.is-open { transform: none; }
  .menu > li > a { padding: 14px 0; font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu > li > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 8px 14px; display: none; min-width: 0; }
  .has-sub.is-open .sub { display: block; }
  .sub a { color: rgba(255,255,255,.7); padding: 6px 0; }
  .sub a:hover { background: transparent; color: var(--gold-light); }
  .has-sub > a { display: flex !important; justify-content: space-between; }
  .has-sub > a::before { content: "+"; order: 2; color: var(--gold); }
  .has-sub.is-open > a::before { content: "–"; }
  .menu__cta { margin: 24px 0 0; }
  .menu__cta a.btn { width: 100%; border: 0; padding: 15px; }
  .nav__toggle { position: relative; z-index: 2; }
}
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .quick__item:nth-child(2) { border-right: 0; }
  .quick__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .batonnier, .about, .split, .news { grid-template-columns: 1fr; gap: 56px; }
  .batonnier__photo { max-width: 460px; margin: 28px auto 0; }
  .organs { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .justice__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .brand__logo { width: 48px; height: 48px; }
  .brand__text { font-size: .85rem; }
  .brand__text strong { font-size: 1.15rem; }
  .hero { min-height: 600px; }
  .hero__content { padding-top: 60px; }
  .hero__arrow { display: none; }
  .hero__dots { bottom: 100px; }
  .quick__grid { grid-template-columns: 1fr; }
  .quick__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .quick__item:last-child { border-bottom: 0; }
  .batonnier__frame { top: -16px; left: -12px; }
  .batonnier__photo figcaption { width: 90%; margin-right: 5%; }
  .organs, .news__grid, .justice__grid, .footer__grid { grid-template-columns: 1fr; }
  .directory { padding: 40px 24px; }
  .event { gap: 18px; align-items: flex-start; }
  .event__date { width: 84px; }
  .event__date strong { font-size: 1.8rem; }
  .newsletter { flex-direction: column; gap: 8px; }
  .about__media { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
