/* site.css — site public Loomea, d'après le design system « Loomea Design System 2026 ».
   Chargé par layouts/site. Tout est sous .lh (préfixe lh-) : l'espace connecté
   (offres, immeubles, administration) garde loomea.css.
   Règles de code : github.com/googlechrome/modern-web-guidance (voir CLAUDE.md). */

/* --------------------------------------------------------------------------
   Polices auto-hébergées (WOFF2, sous-ensemble latin). Instrument Serif et
   DM Sans sont préchargées par layouts/site ; les autres arrivent en swap.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../../fonts/loomea/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../../fonts/loomea/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../../fonts/loomea/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../../fonts/loomea/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../../fonts/loomea/IBMPlexMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Jetons (tokens.json du design system)
   -------------------------------------------------------------------------- */
.lh {
  /* Matériaux */
  --noir: #000000;
  --bois: #635f5d;
  --ciment: #a39c99;
  --ciel: #bfc6e3;
  --pierre: #e6dedc;
  --sable: #f8f2f1;
  --brique: #e8a894;
  --vegetal: #6f968c;
  --blanc: #ffffff;

  /* Rôles */
  --fond-page: var(--blanc);
  --fond-pierre: var(--pierre);
  --fond-sable: var(--sable);
  --fond-noir: var(--noir);
  --texte: var(--noir);
  --texte-courant: #1f1f1f;
  --texte-secondaire: var(--bois);
  --texte-sur-noir: var(--sable);
  --texte-secondaire-sur-noir: var(--ciment);
  --filet: var(--pierre);
  --filet-sur-noir: rgb(248 242 241 / 0.22);
  --bordure-champ: var(--bois);
  --focus: var(--noir);
  --focus-sur-noir: var(--sable);
  --erreur: #8a2c1a;

  /* Statuts d'opération */
  --statut-a-venir: var(--ciel);
  --sur-statut-a-venir: #2b3357;
  --statut-acquis: var(--pierre);
  --sur-statut-acquis: #1f1f1f;
  --statut-en-chantier: var(--brique);
  --sur-statut-en-chantier: #5c2a1c;
  --statut-livre: var(--noir);
  --sur-statut-livre: var(--blanc);

  /* Familles */
  --font-display: "Instrument Serif", Cambria, Georgia, serif;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Échelle typographique, en rem ; les titres suivent la largeur avec clamp()
     (maximum ≤ 2,5 × minimum pour garder le zoom à 200 %). */
  --titre-xl: clamp(2.75rem, 1.5rem + 5vw, 6rem);
  --titre-lg: clamp(2.25rem, 1.35rem + 3.6vw, 4.5rem);
  --titre-md: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  --titre-sm: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --chapo: 1.25rem;
  --courant: 1.0625rem;
  --petit: 0.9375rem;
  --donnee: 0.8125rem;
  --libelle: 0.8125rem;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(6rem, 4rem + 5vw, 8rem); /* space-24 → space-32 */

  /* Rayons et mesures */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --conteneur: 80rem;
  /* Cadre des blocs de couleur : centrés, jamais bord à bord. */
  --cadre: 88rem;
  --gouttiere: clamp(0.75rem, 2vw, 1.75rem);
  --mesure: 34em;
  --cible-tactile: 2.75rem;

  color-scheme: light;
  background: var(--fond-page);
  color: var(--texte-courant);
  font-family: var(--font-sans);
  font-size: var(--courant);
  line-height: 1.6;
  font-size-adjust: from-font;
}

.lh ::selection {
  background: var(--brique);
  color: var(--noir);
}

/* --------------------------------------------------------------------------
   Bases
   -------------------------------------------------------------------------- */
.lh-wrap {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.lh-section {
  padding-block: var(--space-section);
}

.lh-section--sable { background: var(--fond-sable); }
.lh-section--pierre { background: var(--fond-pierre); }
.lh-section--noir { background: var(--fond-noir); color: var(--texte-sur-noir); }
.lh-section--vegetal { background: var(--vegetal); color: var(--noir); }

/* Les blocs de couleur (bandeau, bandes, pied de page) sont des cartes
   centrées, coins arrondis, avec une marge tout autour. */
.lh-section:is(.lh-section--sable, .lh-section--pierre, .lh-section--noir, .lh-section--vegetal),
.lh-footer {
  box-sizing: border-box;
  inline-size: min(var(--cadre), 100% - 2 * var(--gouttiere));
  margin: var(--gouttiere) auto;
  border-radius: var(--radius-lg);
}

.lh :where(h1, h2, h3) {
  margin: 0;
  color: var(--texte);
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
.lh-section--noir :where(h2, h3) { color: var(--texte-sur-noir); }

.lh :where(p, li, blockquote) { text-wrap: pretty; }

.lh-titre-xl { font-size: var(--titre-xl); line-height: 0.98; letter-spacing: -0.015em; }
.lh-titre-lg { font-size: var(--titre-lg); line-height: 1.02; letter-spacing: -0.01em; }
.lh-titre-md { font-size: var(--titre-md); line-height: 1.05; }

.lh-chapo {
  max-inline-size: var(--mesure);
  margin: var(--space-6) 0 0;
  font-size: var(--chapo);
  line-height: 1.55;
}

.lh-texte {
  max-inline-size: var(--mesure);
  margin: var(--space-5) 0 0;
}

.lh-intertitre {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--petit);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lh-donnee {
  font-family: var(--font-mono);
  font-size: var(--donnee);
  line-height: 1.6;
  color: var(--texte-secondaire);
}

.lh-section-head { margin-block-end: var(--space-10); }

.lh :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.lh-section--noir :focus-visible,
.lh-footer :focus-visible { outline-color: var(--focus-sur-noir); }

.lh-skip {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--noir);
  color: var(--blanc);
  font-weight: 600;
  translate: 0 -200%;
}
.lh-skip:focus-visible { translate: 0 0; outline-color: var(--ciel); }

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
  min-block-size: var(--cible-tactile);
  padding: var(--space-2) var(--space-6);
  border: 2px solid var(--noir);
  border-radius: var(--radius-pill);
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lh-btn:hover { background: var(--texte-courant); border-color: var(--texte-courant); }
.lh-btn--outline { background: transparent; color: var(--noir); }
.lh-btn--outline:hover { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.lh-btn--outlineLight { background: transparent; border-color: var(--sable); color: var(--sable); }
.lh-btn--outlineLight:hover { background: var(--sable); border-color: var(--sable); color: var(--noir); }
.lh-btn--lg { min-block-size: 3.25rem; padding-inline: 2.25rem; font-size: 0.875rem; }
.lh-btn--sm { min-block-size: 2.25rem; padding-inline: 1.125rem; font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   En-tête — navigation responsive (guide « navbar ») : un seul <nav>, la liste
   est un popover tant que la rangée ne tient pas ; le script pose .is-wide
   quand elle tient. Sans script : menu replié à toutes les largeurs.
   -------------------------------------------------------------------------- */
.lh-header {
  background: var(--fond-page);
  color: var(--texte);
}

.lh-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-1) var(--space-8);
  padding-block: var(--space-4);
}
.lh-header__inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.lh-header__logo {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--cible-tactile);
  margin-inline-end: auto;
}
.lh-header__logo img { inline-size: auto; block-size: 26px; }

.lh-nav { display: flex; align-items: center; }

.lh-menu-button {
  anchor-name: --lh-menu-button;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--cible-tactile);
  padding-inline: var(--space-4);
  border: 2px solid var(--noir);
  border-radius: var(--radius-pill);
  color: var(--noir);
  font-size: var(--petit);
  font-weight: 600;
  cursor: pointer;
}
.lh-menu-button svg { inline-size: 1.25rem; block-size: 1.25rem; }

/* Replié : popover ancré sous le bouton. Le premier inset-block-start est le
   repli des navigateurs sans anchor() (guide « navbar », Fallbacks). */
.lh-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 4.75rem;
  inset-block-start: anchor(--lh-menu-button bottom);
  inset-inline-end: var(--space-6);
  box-sizing: border-box;
  inline-size: min(80dvw, 22rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin: var(--space-2) 0 0;
  padding: var(--space-3) var(--space-5);
  overflow: auto;
  border: 1px solid var(--filet);
  border-radius: var(--radius-md);
  background: var(--fond-sable);
  color: var(--texte);
  list-style: none;
}
.lh-menu li + li { border-block-start: 1px solid var(--filet); }

.lh-menu a:not(.lh-btn) {
  display: flex;
  align-items: center;
  min-block-size: var(--cible-tactile);
  padding-block: var(--space-2);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.lh-menu a:not(.lh-btn):hover { color: var(--texte-secondaire); }
.lh-menu__action { padding-block: var(--space-3); }

/* Le menu reste caché avant le chargement éventuel du polyfill. */
@supports not selector(:popover-open) {
  .lh-menu[popover]:not(.\:popover-open) { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .lh-menu[popover] {
    transition: opacity 0.18s ease-out, translate 0.18s ease-out, display 0.18s, overlay 0.18s;
    transition-behavior: allow-discrete;
    opacity: 0;
    translate: 0 -0.25rem;
  }
  .lh-menu[popover]:is(:popover-open, .\:popover-open) {
    opacity: 1;
    translate: 0 0;
  }
  @starting-style {
    .lh-menu[popover]:is(:popover-open, .\:popover-open) {
      opacity: 0;
      translate: 0 -0.25rem;
    }
  }
}

/* Large : la même liste, en ligne. */
.lh-header.is-wide .lh-menu-button { display: none; }
.lh-header.is-wide .lh-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 0 1.5rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  opacity: 1;
  translate: none;
}
.lh-header.is-wide .lh-menu li + li { border: 0; }
.lh-header.is-wide .lh-menu a:not(.lh-btn) { font-size: var(--petit); }
.lh-header.is-wide .lh-menu__action { padding: 0; margin-inline-start: var(--space-2); }
.lh-header.is-wide .lh-menu::backdrop { display: none; }
.lh-header.is-measuring * { transition: none !important; }

/* --------------------------------------------------------------------------
   Ouverture : une carte posée, coins arrondis, en retrait des bords de page.
   Large : la photo couvre la carte, un voile pierre plein sous le texte
   s'efface vers la droite. Étroit : la photo passe sous le texte.
   -------------------------------------------------------------------------- */
.lh-hero {
  container: lh-hero / inline-size;
  padding: 0 var(--gouttiere);
}

.lh-hero__card {
  max-inline-size: var(--cadre);
  margin-inline: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--fond-pierre);
}

.lh-hero__text {
  position: relative;
  box-sizing: border-box;
  max-inline-size: 44rem;
  padding: clamp(2rem, 1rem + 4vw, 5rem);
}

.lh-hero__lead {
  margin: 0 0 var(--space-5);
  color: var(--texte-secondaire);
}

.lh-address {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  max-inline-size: 40rem;
  margin: var(--space-10) 0 0;
}
.lh-field {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  gap: 0.375rem;
  min-inline-size: 0;
}
.lh-label {
  font-size: var(--libelle);
  font-weight: 600;
  line-height: 1.3;
  color: var(--texte-courant);
}
.lh-control {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 3.25rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--bordure-champ);
  border-radius: var(--radius-sm);
  background: var(--blanc);
  color: var(--texte);
  font-size: var(--petit);
  line-height: 1.4;
}
.lh-control::placeholder { color: var(--texte-secondaire); opacity: 1; }
.lh-control:focus-visible { outline-offset: 2px; }
/* Erreur affichée seulement après interaction (guide « validate input after interaction »). */
.lh-control:user-invalid { border: 2px solid var(--erreur); padding: 0.5625rem 0.8125rem; }
.lh-hint {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--libelle);
  line-height: 1.4;
  color: var(--texte-secondaire);
}
.lh-hint a { color: var(--texte); font-weight: 600; text-underline-offset: 0.22em; }

.lh-hero__media { margin: 0; }
.lh-hero__media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 50%; /* garde l'échafaudage et la grue dans le cadre étroit */
}

/* Le seul mouvement de la page : la photo d'ouverture se découvre de bas en haut. */
@media (prefers-reduced-motion: no-preference) {
  .lh-hero__media img { animation: lh-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
}
@keyframes lh-reveal {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@container lh-hero (min-width: 64rem) {
  .lh-hero__card {
    display: grid;
    align-items: center;
    min-block-size: min(calc(100dvh - 7rem), 46rem);
  }
  .lh-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
  }
  .lh-hero__media img {
    block-size: 100%;
    aspect-ratio: auto;
  }
  /* Voile plein jusqu'à 40rem : le texte (44rem padding compris) reste sur
     fond pierre uni, quelle que soit la largeur — contrastes du design system. */
  .lh-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      var(--pierre) 0 40rem,
      rgb(230 222 220 / 0.7) 48rem,
      rgb(230 222 220 / 0) 62rem
    );
  }
}

/* --------------------------------------------------------------------------
   Métiers (MetierRow)
   -------------------------------------------------------------------------- */
.lh-metiers { margin: 0; padding: 0; list-style: none; }
.lh-metier {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-12);
  padding-block: var(--space-8);
  border-block-start: 1px solid var(--ciment);
}
.lh-metier:last-child { border-block-end: 1px solid var(--ciment); }
.lh-metier__name { flex: 1 1 15rem; font-size: var(--titre-md); line-height: 1.05; }
.lh-metier__text { flex: 2 1 21rem; min-inline-size: 0; max-inline-size: var(--mesure); margin: 0; }
.lh-metier__example { flex: 1 1 15rem; min-inline-size: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Registre des opérations (OperationList + OperationPreview)
   -------------------------------------------------------------------------- */
.lh-ops-wrap { container: lh-ops / inline-size; }

.lh-ops { display: grid; gap: var(--space-12); }

.lh-ops__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-end: 1px solid var(--filet);
}
.lh-ops__list li { border-block-start: 1px solid var(--filet); }

.lh-op {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4) var(--space-3);
  color: var(--texte);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.lh-op:hover,
.lh-op.is-active { background: var(--fond-sable); }
.lh-op:focus-visible { outline-offset: -2px; }

.lh-op__thumb {
  flex: 0 0 4.5rem;
  inline-size: 4.5rem;
  block-size: 4.5rem;
  border-radius: var(--radius-sm);
  background: var(--pierre);
  object-fit: cover;
}
.lh-op__id {
  display: flex;
  flex: 1 1 calc(100% - 5.75rem);
  align-items: baseline;
  gap: 0.875rem;
  min-inline-size: 0;
}
.lh-op__num {
  flex: 0 0 2.1em;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.lh-op__names { min-inline-size: 0; }
.lh-op__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--titre-sm);
  line-height: 1.1;
}
.lh-op__place { display: block; margin-block-start: var(--space-1); }
.lh-op__summary {
  flex: 1 1 14rem;
  min-inline-size: 0;
  font-size: var(--petit);
  line-height: 1.45;
  color: var(--texte-courant);
}
.lh-op__status { display: flex; flex: 0 0 auto; justify-content: flex-end; }

.lh-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem var(--space-3);
  border: 1px solid transparent; /* visible en mode contraste forcé */
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lh-badge--a-venir { background: var(--statut-a-venir); color: var(--sur-statut-a-venir); }
.lh-badge--acquis { background: var(--statut-acquis); color: var(--sur-statut-acquis); }
.lh-badge--en-chantier { background: var(--statut-en-chantier); color: var(--sur-statut-en-chantier); }
.lh-badge--livre { background: var(--statut-livre); color: var(--sur-statut-livre); }

.lh-preview { display: none; }

.lh-ops__more { margin-block-start: var(--space-10); }

@container lh-ops (min-width: 54rem) {
  .lh-ops { grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); align-items: start; }
  .lh-op__thumb { display: none; }
  .lh-op__id { flex: 0 1 47%; }
  .lh-op__status { flex-basis: 7.25rem; }
  .lh-preview {
    position: sticky;
    inset-block-start: var(--space-6);
    display: block;
  }
  .lh-preview__img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background: var(--pierre);
    object-fit: cover;
  }
  .lh-preview__place { margin: 1.125rem 0 0; }
  .lh-preview__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--space-3);
    margin-block-start: var(--space-1);
    font-family: var(--font-display);
    font-size: var(--titre-sm);
    line-height: 1.1;
    color: var(--texte);
  }
  .lh-preview__num { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 500; }
  .lh-preview__text { margin: var(--space-3) 0 0; font-size: 1rem; line-height: 1.55; }
}

/* --------------------------------------------------------------------------
   Critères d'acquisition (CriteriaList, ton noir)
   -------------------------------------------------------------------------- */
.lh-criteria-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12) var(--space-16);
}
.lh-criteria { flex: 1 1 22rem; min-inline-size: 0; }
.lh-criteria__note {
  margin: 0.375rem 0 1.375rem;
  font-family: var(--font-mono);
  font-size: var(--donnee);
  color: var(--texte-secondaire-sur-noir);
}
.lh-criteria dl { margin: 0; }
.lh-criteria__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-6);
  padding-block: 1.125rem;
  border-block-start: 1px solid var(--filet-sur-noir);
}
.lh-criteria dt {
  flex: 0 0 9.5em;
  font-family: var(--font-mono);
  font-size: var(--donnee);
  line-height: 1.6;
  color: var(--texte-secondaire-sur-noir);
}
.lh-criteria dd { flex: 1 1 15rem; margin: 0; line-height: 1.6; }
.lh-criteria__strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
}
.lh-criteria__detail {
  display: block;
  margin-block-start: var(--space-1);
  font-size: var(--petit);
  line-height: 1.45;
  color: var(--pierre);
}
.lh-criteria-cta { margin-block-start: var(--space-12); }

/* --------------------------------------------------------------------------
   Étapes (Steps)
   -------------------------------------------------------------------------- */
.lh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lh-steps li {
  padding-block-start: var(--space-3);
  border-block-start: 2px solid var(--noir);
  color: var(--texte);
  font-size: 1rem;
  line-height: 1.4;
}
.lh-steps__n { display: block; margin-block-end: 0.375rem; }

/* --------------------------------------------------------------------------
   Témoignage (Quote) et partenaires
   -------------------------------------------------------------------------- */
.lh-split {
  display: grid;
  gap: var(--space-16);
}
@media (min-width: 60rem) {
  .lh-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

.lh-quote { max-inline-size: 45rem; margin: var(--space-10) 0 0; }
.lh-quote blockquote { margin: 0; }
.lh-quote p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--courant);
  font-style: italic;
  line-height: 1.7;
}
.lh-quote figcaption {
  margin-block-start: var(--space-5);
  color: var(--texte);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.lh-quote__role { font-weight: 400; color: var(--texte-secondaire); }

.lh-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.lh-partners li {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  border: 1px solid var(--filet);
  border-radius: var(--radius-md);
  background: var(--blanc);
}
.lh-partners img { inline-size: 100%; max-inline-size: 10rem; block-size: auto; }

/* --------------------------------------------------------------------------
   Démarche RSE (aplat végétal, texte noir : 6,3:1)
   -------------------------------------------------------------------------- */
.lh-rse {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8) var(--space-16);
}
.lh-rse__text { flex: 1 1 26rem; }
.lh-rse ul {
  max-inline-size: var(--mesure);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.lh-rse li { padding-block: var(--space-2); border-block-start: 1px solid rgb(0 0 0 / 0.25); }

/* --------------------------------------------------------------------------
   Appel à l'action
   -------------------------------------------------------------------------- */
.lh-cta {
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--fond-pierre);
}
.lh-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  margin-block-start: var(--space-8);
}
.lh-cta__phone {
  padding-block: var(--space-3);
  color: var(--texte);
  font-weight: 600;
  text-underline-offset: 0.22em;
}
.lh-cta__phone:hover { color: var(--texte-secondaire); }

/* --------------------------------------------------------------------------
   Pied de page (SiteFooter)
   -------------------------------------------------------------------------- */
.lh-footer {
  padding-block: var(--space-16) var(--space-8);
  background: var(--fond-noir);
  color: var(--texte-sur-noir);
}
.lh-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10) var(--space-16);
}
.lh-footer__brand { flex: 2 1 17.5rem; min-inline-size: 0; }
.lh-footer__brand img { inline-size: auto; block-size: 30px; }
.lh-footer__tagline {
  max-inline-size: 24em;
  margin: var(--space-5) 0 0;
  font-family: var(--font-mono);
  font-size: var(--donnee);
  color: var(--texte-secondaire-sur-noir);
}
.lh-footer__col { flex: 1 1 10.5rem; min-inline-size: 0; }
.lh-footer__label {
  margin: 0 0 var(--space-2);
  color: var(--texte-secondaire-sur-noir);
  font-family: var(--font-sans);
  font-size: var(--libelle);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lh-footer__col ul { margin: 0; padding: 0; list-style: none; }
.lh-footer a {
  display: inline-block;
  padding-block: 0.6875rem;
  color: inherit;
  font-size: var(--petit);
  text-decoration: none;
}
.lh-footer a:hover { color: var(--ciel); }
.lh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  margin-block-start: var(--space-12);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--filet-sur-noir);
  font-size: var(--libelle);
  color: var(--texte-secondaire-sur-noir);
}
.lh-footer__legal p { margin: 0; }
.lh-footer__legal ul { display: flex; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.lh-footer__legal a { font-size: var(--libelle); text-decoration: underline; text-underline-offset: 0.22em; }

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Ouverture de page : carte posée, coins arrondis, texte et photo côte à côte.
   Même mouvement que l'accueil : la photo se découvre de bas en haut.
   -------------------------------------------------------------------------- */
.lh-page-hero {
  container: lh-page-hero / inline-size;
  padding: 0 var(--gouttiere);
}
.lh-page-hero__card {
  display: grid;
  gap: var(--space-10);
  max-inline-size: var(--cadre);
  margin-inline: auto;
  padding: clamp(2rem, 1rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--fond-pierre);
}
.lh-page-hero--vegetal .lh-page-hero__card { background: var(--vegetal); }
.lh-page-hero--vegetal .lh-hero__lead,
.lh-page-hero--vegetal .lh-chapo { color: var(--noir); }
.lh-page-hero__text { max-inline-size: 44rem; }
.lh-page-hero__media { margin: 0; }
.lh-page-hero__media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .lh-page-hero__media img { animation: lh-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
}
.lh-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  margin-block-start: var(--space-8);
}
@container lh-page-hero (min-width: 56rem) {
  .lh-page-hero__card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-16);
  }
  .lh-page-hero__card:not(:has(.lh-page-hero__media)) { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Texte courant, listes à filets, photo et texte côte à côte
   -------------------------------------------------------------------------- */
.lh-prose { max-inline-size: var(--mesure); }
.lh-prose > * { margin: 0; }
.lh-prose > * + * { margin-block-start: var(--space-5); }
.lh-prose strong { color: var(--texte); font-weight: 600; }
.lh-prose .lh-btn { margin-block-start: var(--space-8); }
.lh-section--noir .lh-prose strong { color: var(--texte-sur-noir); }

.lh-lead {
  max-inline-size: 40em;
  margin: 0;
  color: var(--texte);
  font-family: var(--font-display);
  font-size: var(--titre-sm);
  line-height: 1.25;
  text-wrap: pretty;
}

.lh-list {
  max-inline-size: var(--mesure);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  border-block-end: 1px solid var(--filet);
}
.lh-list li {
  padding-block: var(--space-3);
  border-block-start: 1px solid var(--filet);
}
.lh-list--wide { max-inline-size: none; }
.lh-section--sable .lh-list,
.lh-section--sable .lh-list li { border-color: var(--pierre); }
.lh-section--vegetal .lh-list,
.lh-section--vegetal .lh-list li { border-color: rgb(0 0 0 / 0.25); }

.lh-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0 var(--space-12);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lh-values li {
  padding-block: var(--space-6);
  border-block-start: 1px solid var(--ciment);
  color: var(--texte);
  font-family: var(--font-display);
  font-size: var(--titre-md);
  line-height: 1.05;
}

.lh-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-12) var(--space-16);
}

.lh-cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); }

.lh-media-split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.lh-media-split + .lh-media-split { margin-block-start: var(--space-section); }
.lh-media-split__media { margin: 0; }
.lh-media-split__media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
}
@media (min-width: 60rem) {
  .lh-media-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); }
  .lh-media-split--reverse .lh-media-split__media { order: -1; }
}

.lh-texte--after { margin-block-start: var(--space-10); }

.lh-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: var(--space-12);
}

/* --------------------------------------------------------------------------
   Formulaires (Input, Textarea) et messages
   -------------------------------------------------------------------------- */
.lh-form { display: grid; gap: var(--space-5); }
.lh-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-5);
}
.lh-form .lh-field { flex: none; }
textarea.lh-control { min-block-size: 9rem; resize: vertical; }
.lh-req { margin-inline-start: 0.125rem; color: var(--erreur); }
.lh-field-error { margin: 0; color: var(--erreur); font-size: var(--libelle); line-height: 1.4; }
.lh-form .lh-btn { justify-self: start; }
.lh-form__note { margin: 0; color: var(--texte-secondaire); font-size: var(--libelle); }

.lh-status {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  background: var(--blanc);
  font-size: var(--petit);
}
.lh-status--ok { color: var(--texte); }
.lh-status--err { color: var(--erreur); }

.lh-form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--fond-pierre);
}
.lh-form-card > * + * { margin-block-start: var(--space-6); }

/* Contact : coordonnées puis formulaire, côte à côte quand la place le permet. */
.lh-contact {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 60rem) {
  .lh-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-16); }
}
.lh-contact__block + .lh-contact__block {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-8);
  border-block-start: 1px solid var(--filet);
}
.lh-contact__value {
  display: inline-block;
  margin-block-start: var(--space-2);
  padding-block: var(--space-2);
  color: var(--texte);
  font-size: 1.25rem;
  font-weight: 600;
  text-underline-offset: 0.22em;
}
.lh-contact__value:hover { color: var(--texte-secondaire); }

/* --------------------------------------------------------------------------
   Onglets de filtre (FilterTabs) — de simples liens, la page courante porte
   aria-current="page".
   -------------------------------------------------------------------------- */
.lh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-10);
  padding: 0;
  list-style: none;
}
.lh-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--cible-tactile);
  padding: var(--space-2) 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--pierre);
  color: var(--texte-courant);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lh-tab:hover { border-color: var(--noir); }
.lh-tab[aria-current="page"] { background: var(--noir); color: var(--blanc); }
.lh-tab svg { inline-size: 1rem; block-size: 1rem; }

/* Étiquette neutre (tags des programmes) : le mot porte le sens, pas la couleur. */
.lh-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--filet);
  border-radius: var(--radius-pill);
  background: var(--blanc);
  color: var(--texte-courant);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.lh-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   Registre des programmes : une ligne par programme, vignette, nom, lieu,
   description, étiquettes ; la nature de l'offre à droite.
   -------------------------------------------------------------------------- */
.lh-progs-wrap { container: lh-progs / inline-size; }
.lh-progs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-end: 1px solid var(--filet);
}
.lh-progs > li { border-block-start: 1px solid var(--filet); }
.lh-prog {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  align-items: start;
  padding: var(--space-5) var(--space-3);
  color: var(--texte);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.lh-prog:hover { background: var(--fond-sable); }
.lh-prog:focus-visible { outline-offset: -2px; }
.lh-prog__img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--pierre);
  object-fit: cover;
}
.lh-prog__body { display: grid; gap: var(--space-2); min-inline-size: 0; }
.lh-prog__name { font-family: var(--font-display); font-size: var(--titre-sm); line-height: 1.1; }
.lh-prog__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-inline-size: 44em;
  color: var(--texte-courant);
  font-size: var(--petit);
  line-height: 1.45;
}
.lh-prog__aside {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}
.lh-prog__count { font-family: var(--font-mono); font-size: var(--donnee); color: var(--texte-secondaire); }
@container lh-progs (min-width: 48rem) {
  .lh-prog {
    grid-template-columns: 10rem minmax(0, 1fr) 11rem;
    align-items: center;
    gap: var(--space-8);
    padding-block: var(--space-6);
  }
  .lh-prog__img { aspect-ratio: 4 / 3; }
  .lh-prog__aside { grid-column: auto; flex-direction: column; align-items: flex-end; }
}

.lh-empty {
  padding: var(--space-12) var(--space-6);
  border: 1px solid var(--filet);
  border-radius: var(--radius-md);
  color: var(--texte-secondaire);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Fiche programme et regroupement
   -------------------------------------------------------------------------- */
.lh-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--cible-tactile);
  color: var(--texte);
  font-size: var(--petit);
  font-weight: 600;
  text-decoration: none;
}
.lh-back:hover { color: var(--texte-secondaire); }
.lh-back svg { inline-size: 1.125rem; block-size: 1.125rem; }
.lh-fiche-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-end: var(--space-6);
}

.lh-fiche { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 64rem) {
  .lh-fiche { grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr); gap: var(--space-16); }
}
@media (min-width: 64rem) and (min-height: 62rem) {
  .lh-fiche__aside { position: sticky; inset-block-start: var(--space-6); }
}

.lh-gallery { display: grid; gap: var(--space-3); }
.lh-gallery__main {
  position: relative;
  display: block;
  inline-size: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--pierre);
  cursor: zoom-in;
}
.lh-gallery__main img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.lh-gallery__empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--pierre);
  color: var(--texte-secondaire);
}
.lh-gallery__badge { position: absolute; inset-block-start: var(--space-3); inset-inline-start: var(--space-3); }
.lh-gallery__nav {
  position: absolute;
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  inline-size: var(--cible-tactile);
  block-size: var(--cible-tactile);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blanc);
  color: var(--noir);
  cursor: pointer;
  translate: 0 -50%;
}
.lh-gallery__nav--prev { inset-inline-start: var(--space-3); }
.lh-gallery__nav--next { inset-inline-end: var(--space-3); }
.lh-gallery__nav svg { inline-size: 1.25rem; block-size: 1.25rem; }
.lh-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: var(--space-3);
}
.lh-thumb {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--pierre);
  cursor: pointer;
}
.lh-thumb img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.lh-thumb.is-active,
.lh-thumb:hover { border-color: var(--noir); }

.lh-fiche__title { margin-block: var(--space-3) var(--space-2); font-size: var(--titre-lg); line-height: 1.02; }
.lh-fiche__block + .lh-fiche__block { margin-block-start: var(--space-12); }
.lh-gallery + .lh-fiche__block { margin-block-start: var(--space-8); }
.lh-fiche__tags { margin-block-start: var(--space-4); }
.lh-form-card > .lh-facts:first-child { margin-block-start: 0; }
.lh-fiche__h2 { margin-block-end: var(--space-5); font-size: var(--titre-md); line-height: 1.05; }
.lh-fiche__desc { max-inline-size: var(--mesure); margin: 0; white-space: pre-line; }

/* Fiche technique : CriteriaList sur fond clair. */
.lh-facts { margin: var(--space-8) 0 0; }
.lh-facts__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-6);
  padding-block: var(--space-4);
  border-block-start: 1px solid var(--filet);
}
.lh-facts__row:last-child { border-block-end: 1px solid var(--filet); }
.lh-facts dt {
  flex: 0 0 9.5em;
  color: var(--texte-secondaire);
  font-family: var(--font-mono);
  font-size: var(--donnee);
}
.lh-facts dd { flex: 1 1 12rem; margin: 0; color: var(--texte); }

/* Tableau des lots : défile horizontalement dans son cadre sur petit écran. */
.lh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--filet);
  border-radius: var(--radius-md);
}
.lh-table-wrap:focus-visible { outline-offset: 2px; }
.lh-table {
  inline-size: 100%;
  min-inline-size: 48rem;
  border-collapse: collapse;
  font-size: var(--petit);
}
.lh-table th {
  padding: var(--space-3) var(--space-4);
  background: var(--fond-sable);
  color: var(--texte-secondaire);
  font-family: var(--font-mono);
  font-size: var(--donnee);
  font-weight: 400;
  text-align: start;
  white-space: nowrap;
}
.lh-table td {
  padding: var(--space-3) var(--space-4);
  border-block-start: 1px solid var(--filet);
  color: var(--texte);
  vertical-align: middle;
}
.lh-table .is-center { text-align: center; }
.lh-icon-btn {
  display: inline-grid;
  place-items: center;
  inline-size: var(--cible-tactile);
  block-size: var(--cible-tactile);
  padding: 0;
  border: 1px solid var(--filet);
  border-radius: var(--radius-pill);
  background: var(--blanc);
  color: var(--noir);
  cursor: pointer;
}
.lh-icon-btn:hover { border-color: var(--noir); }
.lh-icon-btn svg { inline-size: 1.125rem; block-size: 1.125rem; }

/* Lots d'un regroupement : accordéon par typologie (<details> natif). */
.lh-typos { border-block-end: 1px solid var(--filet); }
.lh-typo { border-block-start: 1px solid var(--filet); }
.lh-typo > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  list-style: none;
}
.lh-typo > summary::-webkit-details-marker { display: none; }
.lh-typo > summary:hover { background: var(--fond-sable); }
.lh-typo > summary:focus-visible { outline-offset: -2px; }
.lh-num {
  font-family: var(--font-mono);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.lh-typo__name { font-family: var(--font-display); font-size: var(--titre-sm); line-height: 1.1; }
.lh-typo__meta { color: var(--texte-secondaire); font-family: var(--font-mono); font-size: var(--donnee); }
.lh-typo__price { font-weight: 600; white-space: nowrap; }
.lh-typo__chevron { inline-size: 1.125rem; block-size: 1.125rem; transition: rotate 0.2s ease; }
.lh-typo[open] .lh-typo__chevron { rotate: 180deg; }
.lh-typo__lots { margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.lh-typo__lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1) var(--space-6);
  padding: var(--space-3);
  border-block-start: 1px dashed var(--filet);
  font-size: var(--petit);
}
.lh-typo__lot-name { color: var(--texte); font-weight: 600; line-height: 1.4; }
.lh-typo__lot > .lh-typo__meta { grid-column: 1; }
.lh-typo__lot > :is(.lh-typo__price, .lh-price-cta) { grid-column: 2; grid-row: 1 / span 2; }
.lh-price-cta { color: var(--texte); font-weight: 600; text-underline-offset: 0.22em; white-space: nowrap; }
@container lh-fiche-main (max-width: 36rem) {
  .lh-typo > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .lh-typo > summary > .lh-typo__meta { grid-column: 1; }
  .lh-typo__lot { grid-template-columns: minmax(0, 1fr); }
  .lh-typo__lot > :is(.lh-typo__price, .lh-price-cta) { grid-column: 1; grid-row: auto; justify-self: start; }
}
.lh-fiche__main { container: lh-fiche-main / inline-size; min-inline-size: 0; }

.lh-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--noir);
}
.lh-video iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }

.lh-section--fiche { padding-block-start: var(--space-6); }
.lh-fiche__wide { margin-block-start: var(--space-section); }
.lh-gallery__frame { position: relative; }
.lh-table tbody th {
  padding: var(--space-3) var(--space-4);
  border-block-start: 1px solid var(--filet);
  background: none;
  color: var(--texte);
  font-family: var(--font-sans);
  font-size: var(--petit);
  font-weight: 600;
}

/* Fenêtre « demande d'informations » d'un lot : <dialog> modal. */
.lh-modal-card {
  box-sizing: border-box;
  inline-size: min(34rem, 100% - 2rem);
  max-block-size: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--fond-page);
  color: var(--texte-courant);
}
.lh-modal-card::backdrop { background: rgb(0 0 0 / 0.5); }
.lh-modal-card > * + * { margin-block-start: var(--space-5); }
.lh-modal-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

/* --------------------------------------------------------------------------
   Boîtes de dialogue natives (guide modern-web-guidance « dialog ») :
   le défilement de la page est bloqué en CSS, jamais en verrouillant <body>.
   -------------------------------------------------------------------------- */
.lh dialog:modal { overscroll-behavior: contain; }
.lh dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }

/* Visionneuse : la boîte épouse la photo ; fermer, flèches et légende sont
   posés sur l'écran (position fixe), si bien qu'un clic sur le fond sombre est
   bien « à l'extérieur » (closedby="any"). */
.lh-lightbox {
  inline-size: fit-content;
  max-inline-size: min(92vw, 90rem);
  max-block-size: 82dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--sable);
}
.lh-lightbox::backdrop { background: rgb(0 0 0 / 0.88); }
.lh-lightbox__img {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: min(92vw, 90rem);
  max-block-size: 82dvh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lh-lightbox__close button,
.lh-lightbox__nav {
  position: fixed;
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  padding: 0;
  border: 1px solid rgb(248 242 241 / 0.4);
  border-radius: var(--radius-pill);
  background: rgb(0 0 0 / 0.55);
  color: var(--sable);
  cursor: pointer;
}
.lh-lightbox__close button:hover,
.lh-lightbox__nav:hover { background: var(--sable); color: var(--noir); }
.lh-lightbox__close button { inset-block-start: var(--space-4); inset-inline-end: var(--space-4); }
.lh-lightbox__nav { inset-block-start: 50%; translate: 0 -50%; }
.lh-lightbox__nav--prev { inset-inline-start: var(--space-4); }
.lh-lightbox__nav--next { inset-inline-end: var(--space-4); }
.lh-lightbox__nav[hidden] { display: none; }
.lh-lightbox :focus-visible { outline-color: var(--focus-sur-noir); }
.lh-lightbox__caption {
  position: fixed;
  inset-block-end: var(--space-4);
  inset-inline: 0;
  margin: 0;
  color: var(--sable);
  text-align: center;
}
.lh-lightbox__caption:empty { display: none; }

.lh-toast {
  position: fixed;
  inset-block-end: var(--space-6);
  inset-inline: var(--space-6);
  z-index: 50;
  max-inline-size: 30rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--noir);
  color: var(--sable);
  font-size: var(--petit);
}

/* --------------------------------------------------------------------------
   Contraste forcé : les fonds disparaissent, on garde des repères.
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .lh-op.is-active { outline: 2px solid CanvasText; outline-offset: -2px; }
  .lh-badge { border-color: CanvasText; }
  .lh-menu { border-color: CanvasText; }
}
