/* V589 — Structure éditoriale unifiée sur l'ensemble des pages et fonctions du site */
:root {
  --lme-ed-ink: #25383a;
  --lme-ed-muted: #607072;
  --lme-ed-sand: #f8f4ec;
  --lme-ed-paper: #fffdfa;
  --lme-ed-line: #e6ddd2;
  --lme-ed-accent: #765363;
  --lme-ed-teal: #245659;
  --lme-ed-soft: #f5ecea;
}

.lme-skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: 10px !important;
  z-index: 9999 !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: #25383a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}
.lme-skip-link:focus,
.lme-skip-link:focus-visible {
  left: 14px !important;
  outline: 3px solid #b58c9b !important;
  outline-offset: 2px !important;
}

header.lme-unified-header {
  background: #fffdfa !important;
  border-bottom: 1px solid var(--lme-ed-line) !important;
  padding: 14px 22px !important;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 18px rgba(37, 56, 58, 0.04);
}
header.lme-unified-header .lme-uh-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
header.lme-unified-header .lme-uh-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  color: var(--lme-ed-ink) !important;
  font-weight: 800 !important;
  font-size: 1.04rem !important;
}
header.lme-unified-header .lme-uh-brand img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  border-radius: 10px;
}
header.lme-unified-header .lme-uh-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
header.lme-unified-header .lme-uh-nav a {
  text-decoration: none !important;
  color: var(--lme-ed-ink) !important;
  font-weight: 650 !important;
  font-size: 0.94rem !important;
  padding: 6px 2px;
}
header.lme-unified-header .lme-uh-nav a[aria-current="page"] {
  color: var(--lme-ed-accent) !important;
  border-bottom: 2px solid var(--lme-ed-accent);
}
header.lme-unified-header .lme-uh-nav a.lme-primary-cta {
  padding: 9px 15px !important;
  border-radius: 999px !important;
  background: #f5ecea !important;
  color: #634250 !important;
  border: 1px solid #e3cfd3 !important;
  font-weight: 750 !important;
}
header.lme-unified-header .lme-uh-nav a.lme-primary-cta[aria-current="page"] {
  background: #765363 !important;
  color: #ffffff !important;
  border-color: #765363 !important;
}

/* En-tête éditorial unifié pour les outils, fonctions et pages sans bannière dédiée */
.lme-editorial-hero {
  max-width: 1060px;
  margin: 24px auto 26px;
  padding: clamp(26px, 4.5vw, 44px);
  border-radius: 24px;
  background: linear-gradient(130deg, #1f393c, #2f5b5d 68%, #6e525f);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(25, 45, 47, 0.12);
  text-align: left;
}
.lme-editorial-hero .eyebrow {
  display: inline-block;
  font-size: 0.76rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  color: #e9d8dc !important;
  margin-bottom: 8px;
}
.lme-editorial-hero h1 {
  font: 700 clamp(2rem, 4.5vw, 3.25rem)/1.1 Georgia, serif !important;
  color: #ffffff !important;
  margin: 6px 0 12px !important;
}
.lme-editorial-hero p,
.lme-editorial-hero .intro,
.lme-editorial-hero .lead {
  color: #f3f7f6 !important;
  font-size: clamp(1rem, 1.8vw, 1.12rem) !important;
  line-height: 1.65 !important;
  max-width: 760px !important;
  margin: 0 !important;
}
.lme-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.lme-hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
}

/* Grille de présentation éditoriale (3 repères homogènes en tête de chaque fonction) */
.lme-editorial-guide {
  max-width: 1060px;
  margin: 0 auto 28px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--lme-ed-paper);
  border: 1px solid var(--lme-ed-line);
  box-shadow: 0 8px 24px rgba(37, 56, 58, 0.04);
}
.lme-editorial-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lme-editorial-guide-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--lme-ed-accent);
}
.lme-editorial-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lme-editorial-guide-item {
  background: #faf6f0;
  border: 1px solid #ece3d8;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}
.lme-editorial-guide-item b {
  display: block;
  font-size: 0.92rem;
  color: var(--lme-ed-ink);
  margin-bottom: 4px;
}
.lme-editorial-guide-item span {
  display: block;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--lme-ed-muted);
}

/* Encadré de transparence et bloc d'orientation de fin de page */
.lme-editorial-next {
  max-width: 1060px;
  margin: 36px auto 16px;
  padding: 26px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #faf5ee, #f4ecea);
  border: 1px solid var(--lme-ed-line);
}
.lme-editorial-next .lme-en-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--lme-ed-accent);
  margin-bottom: 6px;
}
.lme-editorial-next h2 {
  font: 700 clamp(1.35rem, 2.6vw, 1.85rem)/1.2 Georgia, serif !important;
  color: var(--lme-ed-ink) !important;
  margin: 0 0 8px !important;
}
.lme-editorial-next p {
  color: var(--lme-ed-muted) !important;
  margin: 0 0 18px !important;
  font-size: 0.96rem !important;
}
.lme-editorial-next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lme-editorial-next-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 15px;
  background: #fffdfa;
  border: 1px solid var(--lme-ed-line);
  text-decoration: none !important;
  color: var(--lme-ed-ink) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lme-editorial-next-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 56, 58, 0.08);
}
.lme-editorial-next-card strong {
  font-size: 0.95rem;
  color: var(--lme-ed-ink);
}
.lme-editorial-next-card small {
  font-size: 0.83rem;
  color: var(--lme-ed-muted);
  line-height: 1.45;
}

footer.lme-unified-footer {
  margin-top: 40px;
  padding: 28px 20px 22px !important;
  background: #f2e8e6 !important;
  border-top: 1px solid var(--lme-ed-line) !important;
  text-align: center !important;
  color: #5c4d53 !important;
  font-size: 0.92rem !important;
}
footer.lme-unified-footer .lme-uf-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer.lme-unified-footer .lme-uf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
footer.lme-unified-footer a {
  color: #6d4858 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
footer.lme-unified-footer a:hover {
  text-decoration: underline !important;
}

.lme-legal-links {
  padding: 14px 5% !important;
  text-align: center !important;
  font-size: 0.85rem !important;
  background: #faf6f1 !important;
  border-top: 1px solid #e7ded6 !important;
  color: #665c58 !important;
}
.lme-legal-links a {
  color: #5d4650 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  margin: 0 4px;
}
.lme-legal-links a:hover {
  text-decoration: underline !important;
}

@media (max-width: 860px) {
  .lme-editorial-guide-grid {
    grid-template-columns: 1fr;
  }
  .lme-editorial-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  header.lme-unified-header {
    position: static;
    padding: 13px 16px !important;
  }
  header.lme-unified-header .lme-uh-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  header.lme-unified-header .lme-uh-nav {
    gap: 10px 14px;
    font-size: 0.88rem !important;
  }
  .lme-editorial-hero {
    margin: 16px auto 20px;
    padding: 24px 18px;
    border-radius: 18px;
  }
  .lme-editorial-next-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  header.lme-unified-header,
  .lme-editorial-next,
  footer.lme-unified-footer,
  .lme-legal-links,
  .lme-skip-link {
    display: none !important;
  }
}

.lme-page-nav-wrap:empty { display: none !important; }
#lme-routebar { max-width: 1160px; margin: 0 auto; }
