/* Cabinet MLCL — feuille de styles unique, sans dépendance externe.
   Layout : bandeau institutionnel, en-tête logo + navigation, colonne de lecture ~68ch, pied de page sombre. */

@font-face { font-family: "Michroma"; src: url("fonts/michroma-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Couleurs reprises du site actuel : prune-anthracite, rouge du logo, gris clairs */
  --plum: #3f3941;      /* barres du logo, bandeaux */
  --plum-deep: #2e2a30;
  --red: #bd0927;       /* barre rouge du logo, accent */
  --paper: #ffffff;
  --mist: #f2f0f1;      /* fonds de blocs (ancien #ededed, légèrement teinté) */
  --line: #dcd6d9;
  --ink: #2b272d;
  --muted: #6e6970;
  --on-band: #f4f1f2;
  --on-band-muted: #c4bcc0;
  --btn: #bd0927; --btn-hover: #960720;
  --logo-dark: #36323b; --logo-grey: #59555b; --logo-red: #bf1a2c;
  --display: "Michroma", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-dark: #d9d3d7; --logo-grey: #8f8892; --logo-red: #e2394f; --paper: #1c191d; --mist: #252126; --line: #3a343b; --ink: #ece7ea; --muted: #a9a1a6;
    --red: #e8455f; --plum-deep: #141215; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --logo-dark: #d9d3d7; --logo-grey: #8f8892; --logo-red: #e2394f; --paper: #1c191d; --mist: #252126; --line: #3a343b; --ink: #ece7ea; --muted: #a9a1a6;
  --red: #e8455f; --plum-deep: #141215; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Bandeau institutionnel */
.strip { background: var(--plum-deep); color: var(--on-band-muted); font-size: .8125rem; letter-spacing: .02em; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.strip a { color: var(--on-band); text-decoration: none; }
.strip a:hover { color: #fff; text-decoration: underline; }

/* En-tête */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand svg { height: 3.6rem; width: auto; display: block; }
.logo .lg-d { fill: var(--logo-dark); }
.logo .lg-g { fill: var(--logo-grey); }
.logo .lg-r { fill: var(--logo-red); }
.logo .lg-l { stroke: var(--logo-red); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.nav a {
  font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding-block: .35rem; border-bottom: 2px solid transparent; display: inline-block;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* Bandeau de page (photo du port en fond si présente) */
.hero {
  position: relative;
  background-color: var(--plum);
  background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/port-du-havre.jpg");
  background-size: cover; background-position: center 60%;
  color: var(--on-band);
}
.hero.bg-cabinet { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/cabinet.jpg"); background-position: center; }
.hero.bg-avocats { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/avocats.jpg"); background-position: center 70%; }
.hero h1, .hero .eyebrow, .hero p, .hero .coords { text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 18px rgba(0,0,0,.55); }
.hero .eyebrow, .hero p, .hero .coords { color: var(--on-band) !important; }
.hero.bg-ressources { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/ressources.jpg"); background-position: center; }
.hero.bg-honoraires { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/honoraires.jpg"); background-position: center 18%; }
.hero.bg-contact { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/contact.jpg"); background-position: center 46%; }
.hero.bg-mentions-legales { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/mentions-legales.jpg"); background-position: center; }
.hero.bg-confidentialite { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/confidentialite.jpg"); background-position: center; }
.hero.bg-404 { background-image: linear-gradient(rgba(36,32,38,.48), rgba(36,32,38,.48)), url("images/bandeaux/404.jpg"); background-position: center; }
.hero .credit { position: absolute; right: .6rem; bottom: .4rem; font-size: .68rem; letter-spacing: .03em; color: rgba(255,255,255,.82); text-shadow: 0 0 3px rgba(0,0,0,.6); }
.hero .wrap { padding-block: clamp(2.5rem, 7vw, 4.75rem); display: grid; gap: 1rem; }
.hero .eyebrow { font-family: var(--display); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--on-band-muted); display: flex; align-items: center; gap: .75rem; }
.hero .eyebrow::before { content: ""; width: 2rem; height: 3px; background: var(--red); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 3.6vw, 2.5rem); line-height: 1.25; letter-spacing: .02em; margin: 0; max-width: 24ch; text-wrap: balance; }
.hero p { margin: 0; max-width: 60ch; color: var(--on-band-muted); font-size: 1.05rem; }
.hero .coords { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--on-band-muted); margin-top: .5rem; }
.hero.slim .wrap { padding-block: clamp(1.75rem, 4.5vw, 2.75rem); }

/* Contenu */
.section { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--mist); border-top: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; margin: 0 0 1.25rem; text-wrap: balance; }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.125rem; line-height: 1.35; margin: 0 0 .35rem; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
:where(.prose) :where(p, ul, ol, dl, h2, h3) { margin-block: 0; }
.prose > h2:not(:first-child) { margin-top: 2.5rem; }
.prose > h2 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--red); }
.lede { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.welcome-img { margin: 0 0 1.75rem; }
.welcome-img img { width: 100%; max-width: 370px; height: auto; }
.split { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; } }

/* Domaines d'intervention */
.fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fields li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .75rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.fields li::before { content: ""; width: .5rem; height: 1.1rem; background: var(--plum); margin-top: .25rem; }
.fields li.lead::before { background: var(--red); }
.fields b { display: block; font-weight: 500; }
.fields span { color: var(--muted); font-size: .92rem; }

/* Actualités */
.news { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.news article { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.section:not(.tint) .news article { background: var(--mist); border-color: transparent; }
.news time { font-size: .8rem; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.news p { margin: 0; }
.more { font-weight: 500; text-decoration: none; color: var(--red); }
.more::after { content: " →"; }
.btn-profile { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.2rem; background: var(--btn); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .15s; }
.btn-profile::after { content: "↗"; }
.btn-profile:hover { background: var(--btn-hover); color: #fff; }
.prose > .cta { margin-top: 1.4rem; }

.entry { display: grid; gap: 1.25rem; padding-block: 2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.docs a { display: inline-flex; gap: .6rem; align-items: baseline; text-decoration: none; font-weight: 500; }
.docs a::before { content: "PDF"; font-family: var(--display); font-size: .6rem; letter-spacing: .1em; color: #fff; background: var(--red); padding: .2rem .4rem; position: relative; top: -.1rem; }
.docs a:hover span { text-decoration: underline; }
.note { border-left: 3px solid var(--red); background: var(--mist); padding: .9rem 1.1rem; font-size: .95rem; }

/* Avocats */
.team { display: grid; gap: 0; }
.lawyer { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 2.25rem; border-bottom: 1px solid var(--line); }
.lawyer:first-child { padding-top: 0; }
.lawyer:last-child { border-bottom: 0; }
@media (min-width: 46rem) { .lawyer { grid-template-columns: 11rem minmax(0, 1fr); } }
.portrait { position: relative; width: 11rem; max-width: 100%; aspect-ratio: 2 / 3; background: var(--plum); color: var(--on-band); display: grid; place-items: center; font-family: var(--display); font-size: 1.8rem; letter-spacing: .08em; overflow: hidden; }
.portrait.photo { background: #fff; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1); }
.portrait::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--red); }
.lawyer h2 { margin-bottom: .2rem; }
.role { color: var(--red); font-weight: 500; font-size: .95rem; margin: 0 0 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.1rem; font-size: .92rem; color: var(--muted); }
.facts a { color: var(--ink); }

/* Contact */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { background: var(--mist); padding: 1.5rem; display: grid; gap: .35rem; align-content: start; }
.card .label { font-family: var(--display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card .value { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }

dl.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 2rem; margin: 0; }
@media (min-width: 40rem) { dl.legal { grid-template-columns: 14rem minmax(0, 1fr); } }
dl.legal dt { color: var(--muted); font-size: .92rem; padding-top: .55rem; }
dl.legal dd { margin: 0; padding-block: .5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { dl.legal dt { border-bottom: 1px solid var(--line); padding-block: .5rem; } }
.todo { background: #fff3c4; color: #5a4300; padding: 0 .3rem; font-size: .9em; }

/* Pied de page */
.foot { background: var(--plum-deep); color: var(--on-band-muted); font-size: .9rem; }
.foot .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-block: 2.75rem 1.5rem; }
.foot h2 { color: var(--on-band); font-size: .72rem; letter-spacing: .2em; margin-bottom: .8rem; }
.foot p, .foot ul { margin: 0; }
.foot ul { list-style: none; padding: 0; display: grid; gap: .3rem; }
.foot a { color: var(--on-band); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot .base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .8rem; }

@media (max-width: 40rem) {
  .nav ul { gap: .1rem 1.1rem; }
  .masthead .wrap { padding-block: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .strip, .nav, .foot, .skip { display: none; }
  .hero { background: none; color: #000; }
  .hero p, .hero .eyebrow { color: #333; }
}

.spaced { margin-top: 2.5rem !important; }

/* Texte justifié (césure automatique en français pour éviter les blancs) */
@media (min-width: 40rem) {
  .prose > p:not(.role):not(.cta), .prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}

/* Hauteur uniforme de tous les bandeaux */
.hero .wrap, .hero.slim .wrap { min-height: clamp(15rem, 30vw, 25rem); padding-block: 2.5rem; align-content: center; }

/* Encart lien partenaire (Ressources) */
.partners { display: grid; gap: 1.25rem; max-width: 52rem; margin-bottom: 2.5rem; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center; background: var(--mist); padding: 1.75rem; border-left: 3px solid var(--red); }
#attestation { scroll-margin-top: 1rem; }
.doc-icon { width: 4.5rem; height: auto; justify-self: center; }
.doc-icon .doc-sheet { fill: var(--paper); stroke: var(--muted); stroke-width: 3; }
.doc-icon .doc-fold { fill: none; stroke: var(--muted); stroke-width: 3; }
.doc-icon .doc-tag { fill: var(--btn); }
.doc-icon text { fill: #fff; font: 700 17px var(--body); letter-spacing: 1px; }
@media (min-width: 40rem) { .partner { grid-template-columns: 11rem minmax(0, 1fr); } }
.partner img { width: 7.5rem; height: auto; justify-self: center; }
.partner.wide-logo img { width: 11rem; background: #fff; padding: .6rem; }
.partner.dark-logo img { background: #2e2a30; }
.partner.tall-logo img { width: auto; height: 8.5rem; }
.partner.plain-logo img { background: none; padding: 0; }
.partner .label { font-family: var(--display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.partner .prose > h2 { margin: .35rem 0 .8rem !important; }
.partner .prose > .label { margin: 0; }
