/* Cabinet Sénéchal — feuille de style commune.
   Polices système uniquement : aucun appel à Google Fonts (RGPD, vitesse). */

:root {
  --ink: #13233F;
  --ink-dark: #0A1426;
  --text: #2D3748;
  --muted: #4A5568;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --line: #E3E6EB;
  --field: #8E99AB;
  --accent: #9C4A1A;
  --placeholder: #DDE2EA;
  --on-dark: #D5DCE8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(21px, 2.4vw, 26px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* Bandeau d'urgence */
.urgence {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
}
.urgence a { color: #fff; font-weight: 700; white-space: nowrap; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 16px; padding-bottom: 16px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.logo-nom { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.logo-sous { font-size: 13px; color: var(--muted); }

.nav-toggle {
  display: none;
  font: inherit; font-weight: 600; font-size: 15px;
  background: none; border: 2px solid var(--ink); color: var(--ink);
  border-radius: 6px; padding: 8px 14px; min-height: 44px; cursor: pointer;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  font-size: 15px;
}
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; display: inline-block; padding: 6px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border-radius: 6px; padding: 14px 24px; min-height: 48px;
  cursor: pointer; border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-dark); border-color: var(--ink-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.site-nav .btn { padding: 10px 18px; min-height: 44px; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.lead { font-size: 19px; color: var(--text); max-width: 680px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--text); }

/* Bloc d'accueil */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero-photo { flex: 1 1 300px; max-width: 400px; }
.photo-placeholder {
  aspect-ratio: 4 / 5; background: var(--placeholder); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 15px; padding: 24px;
}
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }

.checks {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px;
  font-size: 15px;
}
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.checks svg { flex: none; margin-top: 4px; }

/* Cartes domaines */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; background: var(--bg);
}
.card h3 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile {
  text-decoration: none; background: var(--bg-soft); border-radius: 6px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent;
}
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile strong { font-weight: 600; }
.tile span { font-size: 14px; color: var(--muted); }
.more { font-weight: 600; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: #C9D3E3; }
.steps strong { font-size: 19px; }
.steps span { color: var(--on-dark); }

/* Deux colonnes texte */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 340px; min-width: 0; }
.split .split-wide { flex: 2 1 480px; }

/* Tableau d'honoraires */
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table caption { text-align: left; padding-bottom: 12px; color: var(--muted); font-size: 14px; }
.price-table th, .price-table td { border-top: 1px solid var(--line); padding: 16px 0; vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 1px solid var(--line); }
.price-table th { text-align: left; font-weight: 500; padding-right: 16px; }
.price-table td { text-align: right; font-weight: 600; white-space: nowrap; }

/* Articles */
.post-card {
  text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; background: var(--bg);
}
.post-card:hover { border-color: var(--ink); color: var(--ink); }
.post-meta { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; }
.post-excerpt { color: var(--text); font-size: 15px; }

/* Pages intérieures */
.page-hero { background: var(--bg-soft); padding: 56px 0 48px; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.callout {
  background: var(--bg-soft); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-alert { background: #FBEFE8; }
.placeholder-block {
  border: 2px dashed var(--field); border-radius: var(--radius); padding: 24px; color: var(--muted);
  margin: 24px 0;
}

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.map-placeholder {
  min-height: 220px; background: var(--placeholder); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px;
  text-align: center; padding: 16px;
}
.map-frame { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }
.form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  padding: 12px; border: 1px solid var(--field); border-radius: 6px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hidden { position: absolute; left: -9999px; }
.form .btn { align-self: flex-start; }

/* Pied de page */
.site-footer { background: var(--ink-dark); color: var(--on-dark); font-size: 14px; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 40px;
}
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links li { margin: 0; }

/* Menu mobile (le menu reste visible si JavaScript est désactivé) */
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; }
  .site-nav a { padding: 10px 0; }
  .section { padding: 56px 0; }
  body { font-size: 16px; }
}
