/* Maître Emmanuel BUJEAU — Avocat à Loches */
:root {
  --navy: #1c2b3a;
  --navy-2: #26394c;
  --gold: #a8874f;
  --gold-light: #c9ad7d;
  --ink: #2a2a2a;
  --muted: #5f6670;
  --bg: #ffffff;
  --bg-soft: #f6f3ee;
  --line: #e4ded3;
  --radius: 4px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: 2.6rem; margin: 0 0 .5rem; }
h2 { font-size: 2rem; margin: 0 0 1rem; }
h3 { font-size: 1.5rem; margin: 2rem 0 .75rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand { color: #fff; text-decoration: none; line-height: 1.15; }
.brand strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand span { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.brand:hover { color: #fff; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 10px 12px;
  color: #e9edf1;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .85rem;
  letter-spacing: .1em;
  cursor: pointer;
}

/* Hero (accueil) */
.hero {
  background:
    linear-gradient(rgba(28,43,58,.82), rgba(28,43,58,.82)),
    var(--navy-2);
  color: #fff;
  text-align: center;
  padding: 120px 20px 110px;
}
.hero h1 { color: #fff; font-size: 3.2rem; }
.hero .subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin: 0 0 2rem;
}
.hero .rule { width: 70px; height: 2px; background: var(--gold); margin: 0 auto 1.5rem; border: 0; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; border: 1px solid #fff; margin-left: 10px; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* Page title band */
.page-title {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 50px 0 40px;
  text-align: center;
}
.page-title .kicker {
  display: block;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.page-title h1 { margin: 0; }

main section { padding: 60px 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 28px;
  border-radius: var(--radius);
}
.card h3 { margin-top: 0; }
.card p { margin: 0 0 .4rem; }

.info-block {
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  margin: 1.5rem 0;
}
.info-block p { margin: .2rem 0; }

/* Domains (prestations) */
.domain { margin-bottom: 40px; }
.domain > h2 {
  font-size: 1.8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
}
summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 1px solid var(--line); }
details ul { margin: 0; padding: 14px 18px 16px 40px; }
details li { margin-bottom: 4px; }

/* Honoraires */
.fee-block { padding: 30px 0; border-bottom: 1px solid var(--line); }
.fee-block:last-child { border-bottom: 0; }
.fee-block h2 { font-size: 1.7rem; }

/* Avocat */
.portrait img { border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.12); }

/* Contact */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours li span:first-child { font-weight: 600; color: var(--navy); }

.widget-box {
  margin: 1.5rem 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--navy); }
form input, form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfc8bb;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
form input:focus, form textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.consent { font-size: .85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-ok { background: #e8f3ea; border: 1px solid #b8d9be; color: #24562e; }
.alert-err { background: #fbeaea; border: 1px solid #e8bcbc; color: #7a2323; }

.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Page contact */
/* La page tient sur un écran : le contenu remplit l'espace entre menu et pied de page */
.page-contact { min-height: 100vh; display: flex; flex-direction: column; }
.page-contact main { flex: 1; display: flex; flex-direction: column; }
.page-contact .footer-grid { display: none; }
.page-contact .site-footer { padding: 0 0 14px; }
.page-contact .footer-bottom { border-top: 0; margin-top: 0; }

main section.contact-hero {
  background:
    radial-gradient(ellipse at 75% 30%, rgba(168,135,79,.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 30px 0 28px;
}
.contact-hero h1 { color: #fff; margin: 0; font-size: 2.3rem; }
.contact-hero .rule { width: 50px; height: 2px; background: var(--gold); border: 0; margin: 10px auto 12px; }
.contact-hero p { max-width: 780px; margin: 0 auto; font-style: italic; color: #dfe5eb; font-size: .95rem; }

main section.contact-main { flex: 1; display: flex; align-items: center; padding: 24px 0; }
.contact-main > .container { width: 100%; }

.consult-list { list-style: none; margin: 22px 0 0; padding: 0; }
.consult-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  padding: 4px 4px 4px 14px;
  margin-bottom: 6px;
}
.consult-type { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: .9rem; }
.consult-type svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius);
}
.consult-btn span { color: var(--gold-light); font-size: 1.2rem; line-height: 1; }
.consult-btn:hover { background: var(--gold); color: #fff; }
.consult-btn:hover span { color: #fff; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-grid h2 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.7rem; margin-bottom: .6rem; }
.coords { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 12px; font-size: .92rem; }
.coords dt { font-weight: 600; color: var(--navy); }
.coords dd { margin: 0; }
.contact-grid .hours { font-size: .88rem; }
.contact-grid .hours li { padding: 4px 0; }

.form-line .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-line .field { margin-bottom: 16px; }
.form-line .consent { font-size: .8rem; line-height: 1.45; }
.form-line label { font-weight: 400; font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.form-line input, .form-line textarea {
  border: 0;
  border-bottom: 1px solid #cfc8bb;
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
}
.form-line input:focus, .form-line textarea:focus { outline: 0; border-bottom: 2px solid var(--gold); }
.form-line textarea { min-height: 80px; }
.btn-send {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 10px 46px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-send:hover { background: var(--navy); color: #fff; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d1d9; padding: 50px 0 20px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin: 0 0 .8rem; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 35px;
  padding-top: 18px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-grid p { margin: .2rem 0; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .hero { padding: 80px 20px; }
  h1 { font-size: 2.1rem; }
  .btn-outline { margin: 12px 0 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* Petits écrans d'ordinateur portable (ex. 1366×768) : on resserre encore */
@media (min-width: 901px) and (max-height: 760px) {
  main section.contact-hero { padding: 16px 0 14px; }
  .contact-hero h1 { font-size: 1.9rem; }
  .contact-hero .rule { margin: 6px auto 8px; }
  main section.contact-main { padding: 14px 0; }
  .contact-grid h2 { font-size: 1.45rem; margin-bottom: .4rem; }
  .contact-grid .hours li { padding: 2px 0; }
  .consult-list { margin-top: 12px; }
  .consult-list li { margin-bottom: 4px; padding: 2px 2px 2px 12px; }
  .consult-btn { padding: 5px 12px; }
  .form-line .field { margin-bottom: 10px; }
  .form-line textarea { min-height: 60px; }
  .page-contact .site-footer { padding-bottom: 8px; }
  .page-contact .footer-bottom { padding-top: 10px; }
}
@media (max-width: 600px) {
  .consult-list li { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .consult-btn { min-width: 0; }
  .form-line .field-row { grid-template-columns: 1fr; gap: 0; }
}
