/* MJB Avocat — version moderne, sobre, fond blanc */
:root {
  --ink: #14181d;
  --muted: #6f7681;
  --line: #e9e9e7;
  --copper: #a8704b;
  --bg: #ffffff;
  --sans: 'Avenir Next', 'Avenir', 'Montserrat', 'Segoe UI', sans-serif;
  --serif: 'EB Garamond', Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.muted { color: var(--muted); }

/* ===== LOGO ===== */
.mono { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; color: #04415c; }
.mono-j { font-weight: 600; color: var(--copper); }
.mono-sub { font-size: .58rem; letter-spacing: .42em; text-transform: uppercase; color: var(--copper); }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: .85rem 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 2px; align-items: center; transition: opacity .2s ease; }
.mono-sub { text-align: center; }
.brand:hover { opacity: .75; }
.brand .mono { font-size: 1.45rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .82rem; }
.nav-links a { color: var(--muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { border: 1px solid var(--ink); padding: .5rem 1.1rem; border-radius: 999px; color: var(--ink) !important; transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: var(--ink); color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; max-width: none; margin: 0 auto; padding: 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,29,.32), rgba(20,24,29,.52) 55%, rgba(20,24,29,.86)); }



.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px 3.2rem; }
.type-caret { display: inline-block; width: 2px; height: .95em; background: #fff; margin-left: .1em; vertical-align: -.12em; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 15ch; color: #fff; }
.lead { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 480px; margin-top: 1.6rem; }
.hero-cta { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.6rem; }
.js .hero .lead, .js .hero .hero-cta { opacity: 0; transition: opacity .9s ease; }
.js .hero.typed .lead, .js .hero.typed .hero-cta { opacity: 1; }
.btn-primary { display: inline-block; background: var(--ink); color: #fff; padding: .8rem 1.7rem; border-radius: 999px; font-size: .85rem; transition: background .2s ease, transform .2s ease; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: #f2f2f2; }
.link-arrow { font-size: .9rem; color: var(--muted); transition: color .2s ease; }
.hero .link-arrow { color: rgba(255,255,255,.8); }
.hero .link-arrow:hover { color: #fff; }
.link-arrow span { display: inline-block; transition: transform .25s ease; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover span { transform: translateX(4px); }

/* ===== SECTIONS ===== */
.sec { padding: 5.5rem 24px 6rem; border-top: 1px solid var(--line); }
.wrap { max-width: 1080px; margin: 0 auto; }
.sec-soft { background: #f6f6f4; }
.sec-dark { background: #04415c; border-top: 0; color: rgba(255,255,255,.85); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .muted { color: rgba(255,255,255,.7); }
.sec-dark .info-row { border-top: 1px solid rgba(255,255,255,.15); }
.sec-dark .form label { color: rgba(255,255,255,.6); }
.sec-dark input, .sec-dark textarea { color: #fff; border-bottom: 1px solid rgba(255,255,255,.25); }
.sec-dark input:focus, .sec-dark textarea:focus { border-color: #fff; }
.sec-dark .btn-primary { background: #fff; color: var(--ink); }
.sec-dark .btn-primary:hover { background: #f2f2f2; }
.sec-dark a { color: #fff; }
.sec-label { font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); font-weight: 600; margin-bottom: 1rem; }
.sec-intro { color: var(--muted); max-width: 620px; margin-top: 1.2rem; margin-bottom: 3.5rem; }
.sec > h2 + .grid-3, .sec .grid-3:first-of-type { margin-top: 0; }
.sec h2 + .grid-2 { margin-top: 3rem; }

/* ===== GRILLES ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.sec .grid-3 { margin-top: 1rem; }
.item .num { font-size: .78rem; color: var(--copper); margin-bottom: .8rem; letter-spacing: .08em; }
.item h3 { margin-bottom: .6rem; }
.item p { font-size: .95rem; }

/* ===== LISTES ===== */
.list { list-style: none; margin: 1.2rem 0 1.6rem; }
.list li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.list li:last-child { border-bottom: 0; }
.sub-head { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 1.4rem 0 .2rem; }
.grid-2 > div > p:first-of-type { margin-top: .6rem; }

/* ===== CABINET ===== */
.cabinet-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4.5rem; align-items: center; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.cabinet-text .big { font-size: 1.02rem; color: var(--ink); margin-top: 1.4rem; max-width: 56ch; }
.cabinet-text .big strong { font-weight: 500; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.8rem; }
.value h3 { font-size: 1rem; margin-bottom: .3rem; }
.value p { font-size: .88rem; color: var(--muted); }
.value { border-top: 1px solid var(--ink); padding-top: .9rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.contact-info { text-align: center; align-self: start; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
.info-rows { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.6rem; }
.info-row { border-top: 1px solid var(--line); padding-top: 1rem; }
.info-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin-bottom: .25rem; }
.info-note { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 1.6rem; }
.form label { display: flex; flex-direction: column; gap: .45rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
input, textarea {
  font-family: var(--sans); font-size: .95rem; font-weight: 400;
  padding: .65rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); outline: none; border-radius: 0;
  transition: border-color .2s ease;
}
input:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }
.form .btn-primary { align-self: center; cursor: pointer; margin-top: .4rem; padding: .9rem 2.4rem; }

/* ===== FOOTER ===== */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.footer-brand { margin-bottom: 1.4rem; }
.footer-brand { align-items: flex-start; }
.footer-brand .mono-sub { text-align: left; }

.footer-info .muted { margin-top: .5rem; }
.footer-info a { color: var(--muted); }
.footer-info a:hover { color: var(--ink); }
.footer-info .brand .mono { font-size: 1.45rem; }

.footer-info { text-align: left; }
.footer-map iframe { width: 100%; height: 240px; border: 0; border-radius: 12px; display: block; }

.footer { border-top: 1px solid var(--line); padding: 3rem 24px 3.5rem; text-align: center; }
.footer-mono { font-size: 1.5rem; color: var(--ink); }
.footer-mono .mono-j { color: var(--copper); }
.footer p { margin-top: .5rem; }
.footer .small { font-size: .84rem; }
.footer a { border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
.footer a:hover { border-color: var(--ink); }


/* ===== TICKER ===== */
.ticker { position: relative; z-index: 2; margin-top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: .95rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.ticker-group span { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-group i { font-style: normal; color: var(--copper); font-size: .9rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }


/* ===== EXPERTISES : deux grandes colonnes ===== */
.exp-txt { color: var(--muted); font-size: .95rem; margin-top: 1.6rem; }
.sub-head { margin-top: 2rem; }

#expertises .sec-intro { max-width: none; }


.exp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3.5rem; }
.exp-col { padding: 0 3.5rem 0 0; }
.exp-col + .exp-col { border-left: 1px solid var(--line); padding: 0 0 0 3.5rem; }
.exp-num { font-size: 3.2rem; line-height: 1; color: #e8e8e4; font-weight: 500; letter-spacing: -.02em; }
.exp-col h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1rem; line-height: 1.15; }
.exp-col .muted { margin-top: .8rem; max-width: 42ch; font-size: .95rem; }
.exp-list { list-style: none; margin-top: 1.6rem; }
.exp-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color .2s ease, padding-left .25s ease; }
.exp-list li:last-child { border-bottom: 0; }
.exp-list li::after { content: →; color: var(--copper); font-size: .85rem; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.exp-list li:hover { color: var(--copper); padding-left: .4rem; }
.exp-list li:hover::after { opacity: 1; transform: translateX(0); }

/* ===== HONORAIRES : chiffres fantomes ===== */
#honoraires .sec-intro { max-width: none; }
#honoraires .sec-intro + .sec-intro { margin-top: -2.6rem; }

.fees { margin-top: 3rem; }
.fees .num { font-size: 2.9rem; line-height: 1; color: #e4e4e0; font-weight: 500; letter-spacing: 0; margin-bottom: 1.1rem; }
.fees h3 { font-size: 1.15rem; margin-bottom: .5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; background: #fff; border-bottom: 1px solid var(--line); padding: 1.4rem 24px; display: none; }
  body.nav-open .nav-links { display: flex; }
  .hero { min-height: 80vh; }
  .grid-2, .grid-3, .cabinet-grid, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .exp-cols { grid-template-columns: 1fr; margin-top: 2rem; }
  .exp-col { padding: 0; }
  .exp-col + .exp-col { border-left: 0; border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 2.5rem 0 0; }
  .exp-num { font-size: 2.4rem; }
  .values { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-info { text-align: center; }
}

/* ===== CONTACT FUSIONNE ===== */
.contact-addr { line-height: 2.1; font-size: .95rem; padding-top: 1.4rem; padding-bottom: .4rem; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); display: inline-block; }
.contact-addr strong { color: #fff; }
.contact-map { margin-top: 2rem; }
.contact-map iframe { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 380px; border: 0; border-radius: 14px; display: block; filter: saturate(.85); }
.footer { padding: 2.2rem 24px; }
.footer .brand-mini .mono { font-size: 1.3rem; }
.footer .brand-mini { margin-bottom: .6rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 640px) {
  .contact-map iframe { max-height: 300px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .form .btn-primary { width: 100%; justify-content: center; text-align: center; }
}


/* ===== SURVOLS DOUX ===== */
/* Bannière : très léger zoom au survol */
.hero-media img { transition: transform 1.4s ease, filter 1.4s ease; }
.hero:hover .hero-media img { transform: scale(1.045); filter: brightness(1.03) saturate(1.02); }
.portrait { overflow: hidden; }
.portrait img { transition: transform .7s ease; }
.portrait:hover img { transform: scale(1.04); }
.btn-primary { transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn-primary:hover { background: #000; transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 22px rgba(20,24,29,.18); }
.nav-links a { position: relative; transition: color .25s ease; }


/* ===== CONTACT : harmonisation typographique ===== */
#contact .sec-intro,
#contact .contact-addr,
#contact .contact-addr a {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.6);
}
#contact .contact-addr strong { color: rgba(255,255,255,.6); font-weight: 600; }
#contact .contact-addr a { border-bottom: 1px solid rgba(255,255,255,.25); }
#contact .contact-addr a:hover { color: #fff; }


/* ===== FORMULAIRE : note et confirmation ===== */
.form-note { font-size: .74rem; color: rgba(255,255,255,.45); margin-top: .2rem; text-align: center; }
.form-success { text-align: center; padding: 2.5rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; }
.form-success h3 { color: #fff; margin-bottom: .8rem; }
.form-success p { color: rgba(255,255,255,.8); }
html { scroll-padding-top: 90px; }


/* ===== LINKEDIN DU PORTRAIT ===== */
.portrait { position: relative; }
.portrait-linkedin { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(20,24,29,.18); transition: transform .25s ease, background .25s ease, color .25s ease; }
.portrait-linkedin:hover { transform: translateY(-2px); background: #0a66c2; color: #fff; }


/* ===== ENVOI DU FORMULAIRE : indicateur ===== */
.form .btn-primary.is-sending { opacity: .75; cursor: wait; }
.form .btn-primary.is-sending::before { content: ""; display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(20,24,29,.25); border-top-color: var(--ink); border-radius: 50%; margin-right: .55rem; vertical-align: -2px; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.sending-note { color: rgba(255,255,255,.55); margin-top: .6rem; }

/* ===== CORRECTIF : respecter l attribut hidden partout ===== */
[hidden] { display: none !important; }
