/* =========================================================
   Lionel Fuchs — Expert judiciaire & Médiateur agréé
   Feuille de style unique
   ========================================================= */

:root {
  --paper:      #faf5ed;
  --paper-2:    #ffffff;
  --ink:        #231810;
  --ink-soft:   #57493c;
  --ink-mute:   #8a7e71;
  --line:       #e0d4c2;
  --line-soft:  #eee6d9;
  --accent:     #a05a26;
  --accent-med: #2f5b52;
  --bar:        #2c1c10;
  --btn:        #a05a26;
  --max:        1080px;
  --narrow:     760px;
}

/* Variante chromatique de la section médiation */
body.mediation { --accent: var(--accent-med); --btn: var(--accent-med); }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .serif {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------------- Barre d'identité ---------------- */

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wordmark {
  text-decoration: none;
  display: inline-block;
}

.wordmark .n {
  font-family: 'Spectral', Georgia, serif;
  font-size: 25px;
  letter-spacing: .02em;
  display: block;
  line-height: 1.2;
}

.wordmark .r {
  display: block;
  font-size: 11.5px;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 3px;
}

.topbar .direct {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: right;
}

.topbar .direct a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.topbar .direct a:hover { border-color: var(--ink); }

/* ---------------- Navigation ---------------- */

nav.bar { background: var(--bar); position: sticky; top: 0; z-index: 30; }

nav.bar ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: var(--max);
  display: flex;
  gap: clamp(13px, 2.4vw, 27px);
  flex-wrap: wrap;
}

nav.bar a {
  display: block;
  padding: 15px 2px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .72;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: opacity .18s, border-color .18s;
}

nav.bar a:hover { opacity: 1; }

nav.bar a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--accent);
}

/* Téléphone toujours visible en défilant (écrans larges) */
li.nav-tel { display: none; }

@media (min-width: 1120px) {
  nav.bar ul { flex-wrap: nowrap; }
  li.nav-tel { display: block; margin-left: auto; }
  li.nav-tel a {
    opacity: .9;
    letter-spacing: .06em;
    text-transform: none;
    font-size: 14.5px;
  }
  li.nav-tel a::before {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
    vertical-align: middle;
  }
}

/* Sous 1120 px : une seule ligne, défilement horizontal plutôt que retour à la ligne */
@media (max-width: 1119px) {
  nav.bar { position: sticky; }
  nav.bar ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  nav.bar ul::-webkit-scrollbar { display: none; }
  nav.bar::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 52px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0,0,0,0), var(--bar) 70%);
  }
  nav.bar { position: sticky; }
}

nav.bar { position: sticky; top: 0; }

/* ---------------- Structure ---------------- */

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 20px; }

.wrap-narrow { max-width: var(--narrow); }

/* ---------------- En-tête de page ---------------- */

.lead {
  padding: clamp(46px, 8vw, 84px) 0 clamp(30px, 5vw, 48px);
  max-width: var(--narrow);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

.lead h1.h1-name { font-size: clamp(29px, 4.3vw, 40px); letter-spacing: 0; }

.lead h1 {
  font-size: clamp(33px, 5.6vw, 52px);
  line-height: 1.14;
  margin: 0 0 20px;
}

.lead .sub {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ---------------- En-tête avec portrait ---------------- */

.lead-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: end;
}

@media (min-width: 860px) {
  .lead-split { grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; }
  .lead-split .lead { max-width: none; }
}

.lead-split.no-portrait { grid-template-columns: 1fr; }
.lead-split.no-portrait .lead { max-width: var(--narrow); }

.portrait {
  margin: 0 0 clamp(30px, 5vw, 48px);
  max-width: 280px;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.portrait figcaption {
  font-family: 'Spectral', Georgia, serif;
  font-size: 16.5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--accent);
}

.portrait figcaption span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 3px;
}

/* ---------------- Publics visés ---------------- */

.grid.audiences { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 34px; }

.aud {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.aud strong {
  display: block;
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  font-size: 17.5px;
  margin-bottom: 3px;
}

.aud span { display: block; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------- Raccourcis de contact ---------------- */

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0 0 44px;
}

.quick a, .quick div {
  background: var(--paper-2);
  padding: 22px 24px;
  text-decoration: none;
  transition: background .18s;
}

.quick a:hover { background: var(--paper); }

.quick h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 7px;
}

.quick .v {
  font-family: 'Spectral', Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
  display: block;
}

.quick .h { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------------- Bandeau de références ---------------- */

.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 8px 0 54px;
}

.credentials div {
  background: var(--paper-2);
  padding: 20px 22px;
}

.credentials strong {
  color: var(--accent);
  display: block;
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  font-size: 16.5px;
  margin-bottom: 4px;
}

.credentials span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------------- Sections ---------------- */

section {
  padding: clamp(34px, 5vw, 52px) 0;
  border-top: 1px solid var(--line);
}

section > h2 {
  font-size: clamp(24px, 3.4vw, 31px);
  margin: 0 0 8px;
  padding-top: 14px;
  position: relative;
}

section > h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--accent);
}

section > .intro {
  color: var(--ink-soft);
  max-width: var(--narrow);
  margin: 0 0 30px;
}

section p, section li { max-width: var(--narrow); }

/* ---------------- Grille de cartes ---------------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin-top: 26px;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 24px 24px 26px;
}

.card h3 {
  font-size: 19.5px;
  margin: 0 0 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.card p {
  margin: 0;
  font-size: 15.3px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 15.3px;
  color: var(--ink-soft);
}

.card ul li { margin-bottom: 4px; }

@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

a.card {
  display: block;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
}

a.card .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------------- Liste numérotée (déroulement) ---------------- */

ol.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 26px 0 0;
  max-width: var(--narrow);
}

ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 58px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}

ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  font-family: 'Spectral', Georgia, serif;
}

ol.steps strong {
  display: block;
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  font-size: 17.5px;
  margin-bottom: 2px;
}

ol.steps span { color: var(--ink-soft); font-size: 15.4px; }

/* ---------------- Listes à puces sobres ---------------- */

ul.plain { list-style: none; padding: 0; margin: 22px 0 0; }

ul.plain li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 16px;
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

/* ---------------- Étiquettes ---------------- */

.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.tags li {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 5px 13px;
  font-size: 13.8px;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

/* ---------------- Encadré déontologie / avertissement ---------------- */

.note {
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  padding: 22px 26px;
  margin: 30px 0 0;
  max-width: var(--narrow);
}

.note h3 { margin: 0 0 8px; font-size: 18.5px; }
.note p { margin: 0 0 10px; font-size: 15.6px; color: var(--ink-soft); }
.note p:last-child { margin-bottom: 0; }

/* ---------------- Appel à l'action ---------------- */

.cta {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 52px) 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  justify-content: space-between;
}

.cta .txt { max-width: 500px; }
.cta .txt h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.cta .txt p { margin: 0; color: var(--ink-soft); font-size: 15.6px; }

.btn, button {
  display: inline-block;
  font: inherit;
  font-size: 14px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--btn);
  color: #fff;
  border: 1px solid var(--btn);
  padding: 14px 32px;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.btn:hover, button:hover { background: transparent; color: var(--btn); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bar); color: #fff; border-color: var(--bar); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Formulaire ---------------- */

form.mission { display: grid; gap: 18px; max-width: var(--narrow); margin: 26px 0 0; }

.row2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

label {
  display: block;
  font-size: 12.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 7px;
}

input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 0;
}

select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

textarea { min-height: 165px; resize: vertical; }

.hp { position: absolute; left: -9999px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.3px; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 4px; }
.consent label { text-transform: none; letter-spacing: 0; font-size: 14.3px; color: var(--ink-soft); margin: 0; }

form.mission button { justify-self: start; }

/* ---------------- Coordonnées ---------------- */

.coords { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 24px; }
.coords h3 { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 8px; }
.coords p { margin: 0; font-size: 16px; }
.coords a { text-decoration: none; border-bottom: 1px solid var(--line); }
.coords a:hover { border-color: var(--ink); }

/* ---------------- Pied de page ---------------- */

footer { background: var(--bar); color: rgba(255,255,255,.74); margin-top: 56px; }
footer .foot-name { color: #fff; }
footer h4 { color: rgba(255,255,255,.5) !important; }
footer p, footer li { color: rgba(255,255,255,.74) !important; }
footer a:hover { border-bottom-color: rgba(255,255,255,.6) !important; }
footer .social a { border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.8); }
footer .social a:hover { background: #fff; color: var(--bar); border-color: #fff; }

.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 34px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.foot-in h4 { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.foot-in p, .foot-in li { font-size: 15px; color: var(--ink-soft); margin: 0 0 4px; line-height: 1.65; }
.foot-in ul { list-style: none; padding: 0; margin: 0; }
.foot-in a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot-in a:hover { border-bottom-color: var(--ink-soft); }
.foot-name { font-family: 'Spectral', Georgia, serif; font-size: 20px; color: var(--ink); margin-bottom: 6px; }

.social { display: flex; gap: 12px; margin-top: 12px; }
.social a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); transition: background .18s, color .18s, border-color .18s; }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 16px 24px 26px;
  text-align: center;
  font-size: 12.8px;
  color: rgba(255,255,255,.45);
  letter-spacing: .03em;
}

/* ---------------- Écrans étroits ---------------- */

@media (max-width: 620px) {
  .row2 { grid-template-columns: 1fr; }
  .topbar-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar .direct { text-align: left; }
  nav.bar a { font-size: 12.5px; padding: 13px 0; }
}


/* ================= Mouvement ================= */

/* Apparition au défilement — 14 px, une seule fois, jamais de rebond. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.seen { opacity: 1; transform: none; }

/* Entrée de l'en-tête au chargement */
.lead > * { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
.lead > *:nth-child(1) { animation-delay: .05s; }
.lead > *:nth-child(2) { animation-delay: .14s; }
.lead > *:nth-child(3) { animation-delay: .23s; }
.lead > *:nth-child(4) { animation-delay: .32s; }
.portrait { animation: rise .8s .2s cubic-bezier(.22,.61,.36,1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Le filet d'accent se trace sous le titre de section */
section > h2::before { transform-origin: left; transition: width .5s .1s cubic-bezier(.22,.61,.36,1); }
section.reveal > h2::before { width: 0; }
section.reveal.seen > h2::before { width: 46px; }

/* Survol des cartes : léger, jamais spectaculaire */
a.card .go { transition: letter-spacing .25s; }
a.card:hover .go { letter-spacing: .18em; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.seen { opacity: 1; transform: none; transition: none; }
  .lead > *, .portrait { animation: none; }
  section > h2::before { transition: none; }
  section.reveal > h2::before { width: 46px; }
  html { scroll-behavior: auto; }
}

/* ================= Bande de citation pleine largeur ================= */

.statement {
  background: var(--bar);
  color: #fff;
  padding: clamp(38px, 6vw, 64px) clamp(26px, 5vw, 60px);
  margin: clamp(30px, 5vw, 46px) 0;
  position: relative;
  overflow: hidden;
}

/* Trame tissée, très discrète : la matière sans photo */
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image:
    repeating-linear-gradient(45deg,  #fff 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.statement > * { position: relative; }

.statement p {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(21px, 3.1vw, 30px);
  line-height: 1.38;
  margin: 0;
  max-width: 22em;
  text-wrap: balance;
}

.statement .who {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 22px;
  display: block;
}

/* ================= Bande de chiffres ================= */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: clamp(28px, 4vw, 40px) 0;
}

.figures div { background: var(--paper-2); padding: 26px 24px 24px; }

.figures b {
  display: block;
  font-family: 'Spectral', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.figures span {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ================= Emplacements photo ================= */

figure.shot { margin: clamp(26px, 4vw, 38px) 0; }

figure.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

figure.shot.wide img { aspect-ratio: 21 / 9; object-fit: cover; }
figure.shot.four img { aspect-ratio: 4 / 3;  object-fit: cover; }

figure.shot figcaption {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.shots {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: clamp(26px, 4vw, 38px) 0;
}
.shots figure.shot { margin: 0; }

/* ---------------- Impression ---------------- */


@media print {
  nav.bar, form.mission, .cta .btn, .social { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  section { page-break-inside: avoid; border-top: 1px solid #ccc; }
  a { text-decoration: none; }
  .card, .credentials div { background: #fff; }
  footer, footer p, footer li, footer .foot-name, footer h4, .legal { background: #fff !important; color: #000 !important; }
}
