:root {
  --forest: #123c33;
  --forest-deep: #082b25;
  --forest-soft: #27594d;
  --ivory: #f4f0e7;
  --paper: #fbf8f1;
  --sage: #d8e3d9;
  --sage-deep: #aebfac;
  --terracotta: #ad4a31;
  --ochre: #d6aa54;
  --ink: #1e2825;
  --muted: #5c655f;
  --line: rgba(18, 60, 51, 0.2);
  --white-line: rgba(255, 255, 255, 0.2);
  --display: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
  --shadow: 0 24px 70px rgba(8, 43, 37, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.dossier-symbol {
  position: absolute;
  right: 2rem;
  bottom: 1.5rem;
  width: 110px;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.84;
}

.publications-section {
  background: var(--paper);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.publication-grid article {
  min-height: 260px;
  padding: 2rem;
  background: var(--paper);
}

.publication-grid h3 {
  font-size: 1.8rem;
  line-height: 1.08;
}

/* Cette respiration éditoriale referme le propos du cabinet avant la prise de contact. */
.conviction-banner {
  color: var(--paper);
  background: var(--forest-deep);
}

.conviction-banner-inner {
  display: grid;
  justify-items: center;
  padding-block: clamp(4.75rem, 7vw, 6.5rem);
  text-align: center;
}

.conviction-label,
.conviction-region {
  margin-bottom: 0;
  color: #53c9a7;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.conviction-label {
  text-transform: uppercase;
}

.conviction-banner blockquote {
  max-width: 1060px;
  margin: 1.55rem auto 1.25rem;
  color: rgba(251, 248, 241, 0.94);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  font-style: italic;
  line-height: 1.5;
}

.conviction-region {
  letter-spacing: 0.08em;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

[x-cloak] {
  display: none !important;
}

/* Le chatbot reste une surcouche compacte afin de ne jamais masquer le contenu juridique principal. */
.chat-widget {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 30;
}

.chat-launcher {
  padding: 0.9rem 1.2rem;
  color: var(--paper);
  background: var(--terracotta);
  border: 0;
  box-shadow: 0 12px 35px rgba(8, 43, 37, 0.22);
  cursor: pointer;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(390px, calc(100vw - 2rem));
  max-height: min(660px, calc(100vh - 7rem));
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  color: var(--paper);
  background: var(--forest-deep);
}

.chat-panel > header button {
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
}

.chat-warning,
.chat-panel > .button,
.chat-messages,
.chat-panel > form {
  margin: 1rem;
}

.chat-warning {
  padding: 0.8rem;
  color: #6c311f;
  background: #f2e3d8;
  font-size: 0.82rem;
}

.chat-messages p {
  width: fit-content;
  max-width: 90%;
  padding: 0.7rem 0.8rem;
  background: var(--sage);
  font-size: 0.88rem;
}

.chat-messages .user {
  margin-left: auto;
  color: var(--paper);
  background: var(--forest-soft);
}

.chat-panel form textarea {
  width: 100%;
  min-height: 76px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  resize: vertical;
}

.chat-panel form button {
  width: 100%;
  padding: 0.7rem;
  color: var(--paper);
  background: var(--forest);
  border: 0;
}

.error-page {
  width: min(720px, calc(100vw - 3rem));
  margin: 12vh auto;
}

.error-page h1,
.admin-main h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.admin-body {
  background: #eef1ec;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem clamp(1.2rem, 5vw, 4rem);
  color: var(--paper);
  background: var(--forest-deep);
}

.admin-header > a {
  font-family: var(--display);
  font-size: 1.35rem;
}

.admin-header > a span {
  color: var(--sage-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.admin-header form,
.admin-header button {
  margin: 0;
}

.admin-header button,
.admin-filters button,
.admin-list button {
  padding: 0.55rem 0.8rem;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.admin-main {
  width: min(1180px, calc(100vw - 3rem));
  margin: 0 auto;
  padding-block: 4rem;
}

.login-card {
  max-width: 520px;
  margin: 4vh auto;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-card label {
  display: block;
  margin: 1.2rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.login-card input,
.admin-filters input,
.admin-filters select,
.admin-list textarea,
.admin-list select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: white;
}

.admin-alert {
  padding: 0.75rem;
  color: #7b241c;
  background: #f7ded8;
}

.admin-stats,
.admin-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.admin-stats a,
.admin-columns section,
.admin-list > article {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(18, 60, 51, 0.12);
}

.admin-stats strong {
  display: block;
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 3.5rem;
}

.admin-columns article {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.admin-columns article span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-filters {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 0.8rem;
  margin-block: 2rem;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-list article > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}

.admin-list article h2 {
  margin-block: 0.35rem;
  font-size: 1.7rem;
}

@media (max-width: 800px) {
  .publication-grid,
  .admin-stats,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .admin-header nav,
  .admin-list article > header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

svg {
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
  scroll-margin-top: 5.5rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--forest-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--forest-deep);
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--terracotta);
  font-weight: 400;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 4.7vw, 4.25rem);
  letter-spacing: -0.045em;
}

/* Le header à deux niveaux reprend la hiérarchie institutionnelle de la référence. */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  border-bottom: 5px solid var(--forest);
  background: var(--paper);
}

.header-shell {
  width: min(1820px, calc(100vw - 64px));
}

.header-topbar {
  color: var(--paper);
  background: var(--forest-deep);
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.header-site-label {
  color: #49c7a1;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.language-switch a {
  display: grid;
  min-width: 38px;
  min-height: 28px;
  padding: 0.15rem 0.55rem;
  place-items: center;
  color: #53c9a7;
  border: 1px solid rgba(83, 201, 167, 0.62);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a[aria-current="page"] {
  color: var(--paper);
  border-color: #1ea77d;
  background: #1ea77d;
}

.header-main {
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.nav-logo svg {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.nav-name {
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1;
}

/* Le footer conserve le même tracé, inversé pour rester lisible sur le fond sombre. */
.footer-brand .nav-name {
  color: var(--paper);
}

.footer-brand svg path {
  stroke: var(--paper);
}

.footer-brand svg line {
  stroke: #53c9a7;
}

.footer-brand svg circle {
  fill: #53c9a7;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  margin-left: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.8rem);
  font-size: 0.93rem;
}

.desktop-nav > a {
  position: relative;
  color: #4f5652;
}

.desktop-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a:focus-visible::after,
.desktop-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  color: var(--forest-deep);
  border: 1px solid rgba(8, 43, 37, 0.32);
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.login-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.login-link:hover,
.login-link:focus-visible {
  color: var(--paper);
  border-color: var(--forest);
  background: var(--forest);
}

.nav-cta {
  padding: 0.78rem 1.4rem;
  color: var(--paper);
  border: 1px solid var(--forest-deep);
  border-radius: 7px;
  background: var(--forest-deep);
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--forest-deep);
  background: transparent;
}

/* Le sélecteur reprend les codes du header tout en conservant le comportement natif. */
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--paper);
}

.language-picker select {
  width: 116px;
  min-height: 44px;
  padding: 0.55rem 1.7rem 0.55rem 2.35rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  outline: none;
  appearance: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.language-picker select:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.58);
}

.language-picker option {
  color: var(--forest-deep);
  background: var(--paper);
}

.language-flag {
  position: absolute;
  left: 0.7rem;
  z-index: 1;
  width: 18px;
  height: 12px;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(8, 43, 37, 0.25);
}

.language-flag svg {
  display: none;
  width: 100%;
  height: 100%;
}

.language-picker[data-language="fr"] .flag-fr,
.language-picker[data-language="en"] .flag-en {
  display: block;
}

.language-chevron {
  position: absolute;
  right: 0.65rem;
  width: 10px;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.mobile-nav {
  display: none;
}

/* Hero : la grande masse sombre et le dossier décentré créent une entrée éditoriale forte. */
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 18%, rgba(51, 112, 91, 0.55), transparent 25%),
    linear-gradient(120deg, var(--forest-deep), var(--forest));
}

.hero::before {
  position: absolute;
  top: 96px;
  bottom: 0;
  /* Le retrait de 32 px sépare le repère décoratif du bord gauche de la colonne éditoriale. */
  left: max(12px, calc((100vw - 1180px) / 2 - 32px));
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.1);
}

.hero-orbit {
  position: absolute;
  top: -24vw;
  right: -10vw;
  width: 70vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: inherit;
  border-radius: inherit;
}

.hero-orbit::after {
  inset: 26%;
  border-color: rgba(255, 255, 255, 0.07);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 6rem);
  min-height: min(820px, calc(100svh - 64px));
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 770px;
}

.hero .eyebrow {
  color: var(--ochre);
}

.hero-kicker span {
  display: inline-flex;
  max-width: 100%;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(214, 170, 84, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.35;
  text-align: center;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 2rem;
  color: var(--paper);
  font-size: clamp(3.2rem, 5.6vw, 5.25rem);
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: block;
  font-style: italic;
}

.hero-intro {
  max-width: 660px;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.65;
}

/* Ces repères géographiques restent lisibles sans concurrencer les actions principales. */
.hero-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.hero-regions li {
  padding: 0.35rem 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(214, 170, 84, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.button span {
  font-size: 1.15em;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--paper);
  background: var(--terracotta);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8f3824;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-block: 0.4rem;
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-dossier-hover {
  align-self: end;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-dossier {
  position: relative;
  min-height: 510px;
  padding: 1.8rem;
  color: var(--ink);
  background: var(--sage);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition:
    background-color 320ms cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-dossier::before {
  position: absolute;
  inset: -12px 12px 12px -12px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(214, 170, 84, 0.72);
  transition:
    opacity 320ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.dossier-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(18, 60, 51, 0.35);
  color: var(--forest-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dossier-topline span:first-child {
  color: var(--terracotta);
}

.hero-dossier blockquote {
  position: absolute;
  inset: 4.75rem 1.8rem 6.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: center;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* L’espace réservé sous la citation empêche le sceau de recouvrir le texte. */
.dossier-seal {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 88px;
  color: var(--terracotta);
  opacity: 0.82;
  transition:
    opacity 320ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.dossier-seal svg {
  display: block;
  overflow: visible;
}

/* Le sceau combine un anneau institutionnel et un monogramme éditorial compact. */
.seal-ring,
.seal-mark {
  fill: none;
  stroke: currentColor;
}

.seal-ring-outer {
  stroke-width: 1.4;
  stroke-dasharray: 2 4;
}

.seal-ring-inner {
  opacity: 0.55;
  stroke-width: 0.9;
}

.seal-copy {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 7.6px;
  font-weight: 600;
  letter-spacing: 1.55px;
}

.seal-monogram {
  fill: currentColor;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
}

.seal-mark {
  opacity: 0.68;
  stroke-linecap: round;
  stroke-width: 1.2;
}

/* L’élévation, le décalage du cadre et la rotation du sceau composent un survol discret. */
@media (hover: hover) and (pointer: fine) {
  .hero-dossier-hover:hover {
    transform: translateY(-7px);
  }

  .hero-dossier-hover:hover .hero-dossier {
    background: #dfe8de;
    box-shadow: 0 34px 80px rgba(8, 43, 37, 0.2);
  }

  .hero-dossier-hover:hover .hero-dossier::before {
    opacity: 0.9;
    transform: translate(-3px, 3px);
  }

  .hero-dossier-hover:hover blockquote {
    transform: translateY(-3px);
  }

  .hero-dossier-hover:hover .dossier-seal {
    opacity: 0.9;
    transform: rotate(6deg) scale(1.04);
  }
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 1.3rem;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Une seule animation orchestrée donne du relief au chargement sans disperser l’attention. */
.reveal {
  opacity: 0;
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-1 {
  animation-delay: 120ms;
}

.reveal-2 {
  animation-delay: 340ms;
}

/* Le dossier conserve sa légère rotation pendant l’animation d’entrée. */
.hero-dossier.reveal {
  animation-name: reveal-dossier;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-dossier {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
  }
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading > p {
  max-width: 470px;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

/* La grille brisée évite l’effet catalogue tout en gardant quatre expertises lisibles. */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.expertise-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 260ms ease, background-color 260ms ease;
}

.expertise-card::after {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 13rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 300ms ease, transform 300ms ease;
}

.expertise-card:hover,
.expertise-card:focus-within {
  color: var(--paper);
  background: var(--forest);
}

.expertise-card:hover::after,
.expertise-card:focus-within::after {
  opacity: 0.14;
  transform: scale(1);
}

.expertise-card:hover h3,
.expertise-card:focus-within h3 {
  color: var(--paper);
}

.card-featured {
  background: var(--sage);
}

.card-accent {
  background: #eee0cc;
}

.card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--terracotta);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.card-icon {
  width: 52px;
  margin-bottom: auto;
  color: var(--terracotta);
}

.card-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.expertise-card h3 {
  max-width: 470px;
  margin: 2rem 0 1rem;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  line-height: 1.04;
  transition: color 260ms ease;
}

.expertise-card p {
  max-width: 510px;
  color: currentColor;
  opacity: 0.76;
}

.card-tag {
  align-self: flex-start;
  margin-top: 1rem;
  padding-top: 0.45rem;
  border-top: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}


/* La nouvelle composition du Cabinet privilégie la lecture éditoriale et les preuves concrètes. */
.cabinet-section {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.cabinet-section::before {
  position: absolute;
  top: clamp(5rem, 9vw, 8rem);
  right: -9rem;
  width: 22rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(18, 60, 51, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(18, 60, 51, 0.025), 0 0 0 8rem rgba(18, 60, 51, 0.018);
  pointer-events: none;
}

.cabinet-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(4rem, 8vw, 7.5rem);
  align-items: start;
}

.cabinet-story h2 {
  max-width: 760px;
  margin-bottom: 1.8rem;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.cabinet-story > p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.9;
}

.cabinet-values {
  padding-top: clamp(4rem, 7vw, 6.5rem);
}

.cabinet-values-label {
  margin-bottom: 1.45rem;
  color: #1d9e75;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cabinet-values ul {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cabinet-value {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 0.85rem;
}

.cabinet-value-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--forest-soft);
}

.cabinet-value:nth-child(2n) .cabinet-value-icon {
  color: var(--terracotta);
}

.cabinet-value-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cabinet-value p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cabinet-value strong {
  color: var(--ink);
  font-weight: 600;
}

.cabinet-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(4.5rem, 8vw, 7rem);
}

.cabinet-stat {
  position: relative;
  min-height: 235px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f3ea;
  transition:
    transform 320ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color 220ms ease,
    box-shadow 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.cabinet-stat::after {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  color: rgba(18, 60, 51, 0.3);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.cabinet-stat:nth-child(1)::after { content: "LM—01"; }
.cabinet-stat:nth-child(2)::after { content: "LM—02"; }
.cabinet-stat:nth-child(3)::after { content: "LM—03"; }

.cabinet-stat-number {
  display: block;
  margin-bottom: 0.3rem;
  color: #1d9e75;
  font-family: var(--display);
  font-size: clamp(3rem, 4vw, 4rem);
  line-height: 1;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.cabinet-stat h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cabinet-stat p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Les contenus restent visibles si JavaScript ou IntersectionObserver ne sont pas disponibles. */
.cabinet-section.cabinet-motion-ready [data-cabinet-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cabinet-section.cabinet-motion-ready [data-cabinet-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .cabinet-stat:hover {
    z-index: 1;
    border-color: rgba(18, 60, 51, 0.42);
    box-shadow: 0 24px 48px rgba(8, 43, 37, 0.12);
    transform: translateY(-8px);
  }

  .cabinet-stat:hover .cabinet-stat-number {
    transform: translateY(-3px);
  }
}

.publics-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--forest-deep);
}

.publics-section::before {
  position: absolute;
  top: -250px;
  left: -180px;
  width: 620px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
}

.publics-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(4rem, 10vw, 10rem);
}

.publics-intro {
  align-self: start;
  position: sticky;
  top: 3rem;
}

.eyebrow-light {
  color: var(--ochre);
}

.publics-intro h2 {
  margin-bottom: 2rem;
  color: var(--paper);
}

.publics-intro > p:not(.eyebrow) {
  max-width: 450px;
  margin-bottom: 2.3rem;
  color: rgba(255, 255, 255, 0.64);
}

.button-light {
  color: var(--forest-deep);
  background: var(--paper);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--ochre);
}

.public-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: publics;
}

.public-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--white-line);
}

.public-list li:last-child {
  border-bottom: 1px solid var(--white-line);
}

.public-number {
  padding-top: 0.35rem;
  color: var(--ochre);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.public-list h3 {
  margin-bottom: 0.55rem;
  color: var(--paper);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.08;
}

.public-list p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.61);
}

.contact-section {
  background: var(--paper);
}

.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 1.25rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

.contact-heading .eyebrow {
  margin-bottom: 0;
}

.contact-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding-top: 4rem;
}

.contact-note {
  margin-bottom: 2rem;
  color: var(--terracotta);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-details address {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-style: normal;
}

.contact-details address a {
  color: var(--forest-deep);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-details address a span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details address a:hover,
.contact-details address a:focus-visible {
  color: var(--terracotta);
}

.office-hours {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.office-hours > span[aria-hidden="true"] {
  flex: 0 0 auto;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(198, 94, 63, 0.13);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  color: var(--forest-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 0.2rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(18, 60, 51, 0.36);
  border-radius: 0;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 140px;
  padding-inline: 0.8rem;
  border: 1px solid rgba(18, 60, 51, 0.36);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 2px 0 var(--terracotta);
}

.field textarea:focus {
  box-shadow: inset 0 0 0 1px var(--terracotta);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.7rem;
}

.form-footer p {
  max-width: 290px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.privacy-note {
  max-width: 930px;
  margin: 4rem 0 0 auto;
  padding-top: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.65;
}

.privacy-note a {
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Blog : une scène éditoriale dense, inspirée de la presse mais ancrée dans les codes Lexmenta. */
.blog-page,
.article-page {
  background: var(--paper);
}

.blog-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--forest-deep);
  background-image:
    linear-gradient(30deg, rgba(255, 255, 255, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.035) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.035) 87.5%),
    linear-gradient(30deg, rgba(255, 255, 255, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.035) 87.5%);
  background-position: 0 0, 0 0, 32px 56px;
  background-size: 64px 112px;
}

.blog-hero::after {
  position: absolute;
  top: -12rem;
  right: -5rem;
  width: 34rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(83, 201, 167, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(83, 201, 167, 0.025), 0 0 0 10rem rgba(83, 201, 167, 0.018);
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  align-content: center;
  align-items: end;
  gap: 1rem 4rem;
  min-height: 430px;
  padding-block: 4.5rem;
}

.blog-hero-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: #53c9a7;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  letter-spacing: -0.055em;
}

.blog-hero-inner > p:not(.blog-hero-kicker) {
  grid-column: 1;
  max-width: 660px;
  margin: 0;
  color: rgba(251, 248, 241, 0.7);
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-newsletter-link {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 290px;
  padding: 1rem 1.25rem;
  color: var(--paper);
  border: 1px solid rgba(251, 248, 241, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-newsletter-link:hover,
.blog-newsletter-link:focus-visible {
  color: var(--forest-deep);
  background: var(--paper);
  transform: translateY(-3px);
}

.blog-shell {
  width: min(1520px, calc(100vw - 48px));
  margin-inline: auto;
}

.blog-filter {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.blog-filter > label {
  color: var(--forest-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-filter-control {
  display: flex;
  align-items: stretch;
}

.blog-filter select,
.blog-filter button {
  min-height: 48px;
  font: inherit;
}

.blog-filter select {
  min-width: 270px;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  color: var(--forest-deep);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.blog-filter button {
  padding: 0.65rem 1rem;
  color: var(--paper);
  border: 1px solid var(--forest-deep);
  background: var(--forest-deep);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #f7f3ea;
  box-shadow: 0 18px 42px rgba(8, 43, 37, 0.09);
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card > a {
  display: grid;
  grid-template-rows: 245px 1fr;
  min-height: 590px;
  color: inherit;
}

.blog-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--sage);
}

.blog-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.blog-card-category,
.blog-card-overlay > span {
  align-self: flex-start;
  padding: 0.25rem 0.55rem;
  color: var(--forest-soft);
  border: 1px solid rgba(18, 60, 51, 0.22);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 1.15rem 0 0.8rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.blog-card time {
  color: var(--muted);
  font-size: 0.72rem;
}

.blog-card-arrow {
  margin-top: auto;
  color: var(--terracotta);
  font-size: 1.5rem;
}

.blog-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: var(--paper);
  background: var(--forest-soft);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 300ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-overlay > span {
  color: #b7e4d5;
  border-color: rgba(183, 228, 213, 0.45);
}

.blog-card-overlay h3 {
  margin: 1.4rem 0 0.65rem;
  color: var(--paper);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.05;
}

.blog-card-overlay time {
  color: rgba(251, 248, 241, 0.62);
}

.blog-card-overlay p {
  margin: 1.5rem 0 0;
  color: rgba(251, 248, 241, 0.8);
  line-height: 1.65;
}

.blog-card-overlay strong {
  margin-top: auto;
  font-size: 0.82rem;
}

.blog-card-overlay i {
  margin-left: 0.45rem;
  font-style: normal;
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover,
  .blog-card:focus-within {
    z-index: 2;
    box-shadow: 0 30px 64px rgba(8, 43, 37, 0.17);
    transform: translateY(-8px);
  }

  .blog-card:hover figure img,
  .blog-card:focus-within figure img {
    transform: scale(1.04);
  }

  .blog-card:hover .blog-card-overlay,
  .blog-card:focus-within .blog-card-overlay {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.blog-empty {
  min-height: 280px;
  padding: 3rem;
  color: var(--muted);
  border: 1px solid var(--line);
}

.blog-empty span {
  color: var(--terracotta);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.blog-empty p {
  max-width: 560px;
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.2;
}

.article-hero {
  padding-block: clamp(5rem, 9vw, 8rem);
  color: var(--paper);
  background: var(--forest-deep);
}

.article-heading {
  display: grid;
  justify-items: start;
}

.article-back,
.article-category {
  color: #53c9a7;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-category {
  margin: 3.5rem 0 1rem;
}

.article-heading h1 {
  max-width: 980px;
  margin-bottom: 1.5rem;
  color: var(--paper);
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.98;
}

.article-heading time {
  color: rgba(251, 248, 241, 0.58);
  font-size: 0.78rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.article-cover {
  position: sticky;
  top: 2rem;
  align-self: start;
  margin: 0;
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-content {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.article-lead {
  color: var(--forest-deep);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.35;
}

.site-footer {
  padding-block: 3rem;
  color: var(--paper);
  background: var(--forest-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 2rem;
}

.footer-inner > p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 4px;
}

/* Tablette : les compositions respirent encore, mais les colonnes secondaires se resserrent. */
@media (max-width: 64rem) {
  .blog-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .blog-newsletter-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-cover {
    position: static;
  }

  .desktop-nav {
    display: none;
  }

  .header-controls {
    gap: 1rem;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    list-style: none;
    color: var(--forest-deep);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary i,
  .mobile-nav summary i::before,
  .mobile-nav summary i::after {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .mobile-nav summary i {
    position: relative;
  }

  .mobile-nav summary i::before,
  .mobile-nav summary i::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .mobile-nav summary i::before {
    top: -6px;
  }

  .mobile-nav summary i::after {
    top: 6px;
  }

  .mobile-nav[open] summary i {
    background: transparent;
  }

  .mobile-nav[open] summary i::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-nav[open] summary i::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .mobile-nav nav {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(300px, calc(100vw - 48px));
    padding: 0.8rem;
    color: var(--forest-deep);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .mobile-nav nav a {
    padding: 0.85rem 0.7rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav nav a:last-child {
    color: var(--paper);
    background: var(--forest-deep);
    border-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1.2fr minmax(300px, 0.8fr);
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 6.8vw, 4.4rem);
  }

  .hero-dossier {
    min-height: 470px;
  }

  .section-heading,
  .publics-layout {
    gap: 4rem;
  }

  .expertise-card {
    min-height: 430px;
  }

  .contact-heading {
    gap: 1.25rem;
  }
}

/* Mobile : les ruptures deviennent verticales et les surfaces tactiles restent généreuses. */
@media (max-width: 48rem) {
  :root {
    --shell: min(100% - 32px, 700px);
  }

  .header-shell {
    width: min(100% - 32px, 700px);
  }

  .blog-shell {
    width: min(100% - 32px, 700px);
  }

  .blog-hero,
  .blog-hero-inner {
    min-height: 390px;
  }

  .blog-hero-inner {
    padding-block: 4rem;
  }

  .blog-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .blog-newsletter-link {
    width: 100%;
    min-width: 0;
  }

  .blog-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-filter-control,
  .blog-filter select {
    width: 100%;
    min-width: 0;
  }

  .blog-filter select {
    flex: 1;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .blog-card > a {
    min-height: 520px;
  }

  .blog-card > a {
    grid-template-rows: 220px 1fr;
  }

  .article-category {
    margin-top: 2.5rem;
  }

  .article-heading h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .article-layout {
    gap: 2.5rem;
  }

  .section {
    padding-block: 5rem;
  }

  .cabinet-overview {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .cabinet-values {
    padding-top: 0;
  }

  .cabinet-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 4rem;
  }

  .cabinet-stat {
    min-height: 210px;
  }

  .conviction-banner-inner {
    padding-block: 4rem;
  }

  .conviction-banner blockquote {
    margin-block: 1.35rem 1.15rem;
    font-size: clamp(1.35rem, 6.5vw, 1.7rem);
    line-height: 1.45;
  }

  .header-inner {
    min-height: 76px;
    gap: 1rem;
  }

  .header-controls {
    gap: 0.75rem;
  }

  .header-nav-actions .nav-cta {
    display: none;
  }

  .language-picker select {
    width: 116px;
  }

  .brand {
    gap: 0.6rem;
  }

  .nav-logo svg {
    width: 32px;
    height: 32px;
  }

  .nav-name {
    font-size: 1.3rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    top: 82px;
    left: 8px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 6.5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 11vw, 3.7rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-dossier {
    width: calc(100% - 0.7rem);
    min-height: 410px;
    margin: 0.8rem 0.7rem 0 0;
  }

  .hero-index {
    display: none;
  }

  h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.6rem);
  }

  .section-heading,
  .publics-layout,
  .contact-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.8rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 390px;
  }

  .publics-intro {
    position: static;
  }

  .public-list li {
    grid-template-columns: 42px 1fr;
  }

  .contact-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .contact-grid {
    padding-top: 3rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }
}

@media (max-width: 24rem) {
  .login-link {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .login-link span {
    display: none;
  }

  .mobile-nav summary > span {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .text-link {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
