/*
Theme Name: Cabinet Julien Hédon
Theme URI: https://preprod.vosges-avocat.fr/
Author: Cabinet Julien Hédon
Description: Thème sur mesure du cabinet Julien Hédon, avocat à Épinal.
Version: 1.1.0
Text Domain: hedon-cabinet
*/

:root {
  --navy: #071d35;
  --navy-soft: #102e4e;
  --gold: #c69b43;
  --gold-light: #e4c784;
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --ink: #172435;
  --muted: #66717d;
  --line: rgba(7, 29, 53, 0.12);
  --shadow: 0 18px 48px rgba(7, 29, 53, 0.10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
}
.section-lead { max-width: 720px; margin: 20px auto 0; color: var(--muted); }
.gold-rule { width: 54px; height: 2px; margin: 26px 0; background: var(--gold); }
.center { text-align: center; }
.center .gold-rule { margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255,253,249,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 34px; }
.brand { flex: 0 0 auto; text-decoration: none; line-height: 1; }
.brand-name { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.5rem; letter-spacing: .025em; }
.brand-subtitle { display: block; margin-top: 8px; color: var(--gold); font-family: var(--serif); font-size: .83rem; letter-spacing: .09em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; color: var(--navy); font-size: .9rem; font-weight: 650; text-decoration: none; }
.site-nav a.button { color: #fff; }
.site-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--gold); transition: right .22s ease; }
.site-nav a:not(.button):hover::after, .site-nav a:not(.button):focus::after { right: 0; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: var(--navy); font-size: 1.7rem; cursor: pointer; }

.button, .wp-block-button__link, input[type="submit"], button[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font: 700 .78rem/1 var(--sans);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus, input[type="submit"]:hover { transform: translateY(-2px); background: var(--navy-soft); }
.button-gold { border-color: var(--gold); background: var(--gold); color: #101b27; }
.button-gold:hover, .button-gold:focus { border-color: var(--gold-light); background: var(--gold-light); }
.button-outline { border-color: rgba(255,255,255,.65); background: transparent; color: #fff; }
.button-outline:hover, .button-outline:focus { background: #fff; color: var(--navy); }

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 88px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy) url("../../uploads/2021/10/cropped-DSCF0064-scaled-1.jpg") center 48% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,25,.94) 0%, rgba(2,13,25,.75) 45%, rgba(2,13,25,.23) 78%, rgba(2,13,25,.12) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 780px; padding: 90px 0; }
.hero h1 { max-width: 760px; margin: 10px 0 22px; font-family: var(--serif); font-size: clamp(3.5rem, 7.4vw, 6.6rem); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.hero-text { max-width: 680px; margin: 0; font-size: clamp(1.08rem, 2vw, 1.38rem); line-height: 1.55; color: rgba(255,255,255,.9); }
.hero-areas { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 34px; color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.hero-areas span::before { content: "◆"; margin-right: 9px; color: var(--gold); font-size: .52rem; vertical-align: middle; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.practice-section { background: var(--ivory); }
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.practice-card { min-height: 340px; padding: 38px 28px 30px; background: var(--paper); border: 1px solid rgba(7,29,53,.06); box-shadow: var(--shadow); text-align: center; }
.practice-icon { width: 64px; height: 64px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ivory); color: var(--navy); font-family: var(--serif); font-size: 1.7rem; }
.practice-card h3 { min-height: 48px; margin: 0 0 16px; color: var(--navy); font-size: 1rem; letter-spacing: .06em; line-height: 1.45; text-transform: uppercase; }
.practice-card p { margin: 0 0 20px; color: var(--muted); font-size: .94rem; }
.text-link { color: #9a7122; font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.cabinet-section { padding: 0; background: var(--paper); }
.cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 610px; }
.cabinet-copy { display: flex; flex-direction: column; justify-content: center; padding: 88px max(48px, calc((100vw - 1180px)/2)); padding-right: 72px; }
.cabinet-copy p { max-width: 590px; color: var(--muted); }
.cabinet-photo { min-height: 540px; background: url("../../uploads/2021/10/DSCF7532-Copie-scaled.jpg") center / cover no-repeat; }

.fees-section { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.fees-section::after { content: "§"; position: absolute; right: 3%; bottom: -160px; color: rgba(255,255,255,.035); font-family: var(--serif); font-size: 480px; line-height: 1; }
.fees-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.fees-section .section-title { color: #fff; }
.fees-content { color: rgba(255,255,255,.78); }
.fees-points { display: grid; gap: 18px; }
.fees-point { padding: 20px 22px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.05); }
.fees-point strong { display: block; margin-bottom: 4px; color: #fff; }

.access-section { background: var(--ivory); }
.access-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin-top: 52px; }
.access-card { padding-top: 24px; border-top: 1px solid var(--line); }
.access-symbol { display: block; margin-bottom: 16px; color: var(--navy); font-size: 1.65rem; }
.access-card h3 { margin: 0 0 10px; color: var(--navy); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.access-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.access-card a { color: #916a1d; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.access-map-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 34px; margin-top: 58px; align-items: stretch; }
.access-map-frame { position: relative; min-height: 520px; overflow: hidden; background: #e8e5de; box-shadow: var(--shadow); }
.access-map-frame iframe { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; }
.map-overlay-marker { position: absolute; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--gold); color: var(--navy); box-shadow: 0 4px 12px rgba(7,29,53,.35); font-size: .7rem; font-weight: 850; line-height: 1; pointer-events: none; transform: translate(-50%,-50%); }
.map-overlay-office { left: 61.8%; top: 50.8%; background: var(--navy); color: #fff; }
.map-overlay-champ { left: 22.6%; top: 83.1%; }
.map-overlay-louviere { left: 76.1%; top: 14.6%; }
.map-expand-link { position: absolute; right: 16px; bottom: 16px; padding: 9px 13px; background: rgba(255,253,249,.96); color: var(--navy); box-shadow: 0 5px 18px rgba(7,29,53,.2); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.parking-panel { padding: 38px 34px; background: #fff; box-shadow: var(--shadow); }
.parking-panel h3 { margin: 0 0 25px; color: var(--navy); font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.15; }
.parking-list { display: grid; gap: 12px; }
.parking-point { display: grid; grid-template-columns: 36px 1fr; gap: 13px; align-items: start; padding: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.parking-point:hover, .parking-point:focus { transform: translateY(-2px); border-color: var(--gold); }
.map-pin { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 800; }
.parking-point > span:last-child { display: grid; }
.parking-point strong { color: var(--navy); font-size: .87rem; line-height: 1.35; }
.parking-point small { margin-top: 4px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.parking-point-office { background: var(--ivory); }
.parking-note { margin-top: 22px; padding: 18px 18px 16px; border-left: 3px solid var(--gold); background: var(--ivory); }
.parking-note strong { color: var(--navy); font-size: .86rem; }
.parking-note p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.contact-band { margin-top: 54px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; box-shadow: var(--shadow); }
.contact-band h3 { margin: 0 0 4px; color: var(--navy); font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.contact-band p { margin: 0; color: var(--muted); }

.site-footer { padding: 68px 0 30px; background: var(--navy); color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 48px; }
.site-footer .brand-name { color: #fff; }
.footer-heading { margin: 0 0 18px; color: #fff; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-copy { max-width: 330px; font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; }

.page-hero { padding: 86px 0 74px; background: var(--navy); color: #fff; }
.page-hero h1 { max-width: 900px; margin: 8px 0 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 500; line-height: 1.04; }
.page-main { padding: 78px 0 100px; }
.content-shell { width: min(860px, 100%); }
.entry-content h2, .entry-content h3 { color: var(--navy); font-family: var(--serif); font-weight: 500; line-height: 1.2; }
.entry-content h2 { margin-top: 2em; font-size: 2.25rem; }
.entry-content h3 { font-size: 1.6rem; }
.entry-content p, .entry-content li { color: #3c4753; }
.entry-content a { color: #8c661b; text-underline-offset: 3px; }
.entry-content > *:first-child { margin-top: 0; }
.wpforms-container input, .wpforms-container textarea, .wpforms-container select,
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 14px 16px !important; border: 1px solid #cdd3d9 !important; border-radius: 2px !important; background: #fff !important; color: var(--ink) !important; font: inherit !important;
}
.wpforms-container label { color: var(--navy) !important; font-weight: 700 !important; }
.post-list { display: grid; gap: 22px; }
.post-card { padding: 32px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px rgba(7,29,53,.06); }
.post-card h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; }
.post-meta { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: .82rem; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 76px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 24px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 1rem; }
  .hero { min-height: 650px; background-position: 58% center; }
  .hero::before { background: rgba(2,13,25,.76); }
  .cabinet-grid, .fees-grid { grid-template-columns: 1fr; }
  .cabinet-copy { padding: 72px 32px; }
  .cabinet-photo { min-height: 420px; }
  .fees-grid { gap: 46px; }
  .access-map-layout { grid-template-columns: 1fr; }
  .access-map-frame, .access-map-frame iframe { min-height: 440px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1180px); }
  .section { padding: 72px 0; }
  .brand-name { font-size: 1.22rem; }
  .brand-subtitle { font-size: .7rem; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .hero-areas { display: grid; gap: 8px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .practice-grid, .access-grid, .footer-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: auto; }
  .contact-band, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .access-map-frame, .access-map-frame iframe { min-height: 360px; }
  .parking-panel { padding: 30px 22px; }
  .cabinet-copy { padding-inline: 24px; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
