/* ==========================================================
   Actualités LEP : design de la section
   Couleurs du cabinet : bleu #001d6c, rouge #B90000
   Polices : celles du thème (titres Source Sans Pro, texte Inter)
   ========================================================== */
.lep {
  --lep-blue: #001d6c;
  --lep-red: #B90000;
  --lep-text: #3b4557;
  --lep-muted: #6b7385;
  --lep-line: #e3e7ef;
  --lep-soft: #f3f5fa;
  --lep-radius: 12px;
  color: var(--lep-text);
}

/* Le bandeau du thème est masqué : la section a son propre en-tête */
body.lep-page .entry-banner,
body.lep-page .brand-section { display: none; } /* bandeau du thème + bandeau de logos */
body.lep-page #primary.lep { padding: 56px 0 0; }

.lep *, .lep *::before, .lep *::after { box-sizing: border-box; }
.lep-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.lep-narrow { max-width: 780px; }
.lep a:focus-visible, .lep button:focus-visible, .lep input:focus-visible { outline: 2px solid var(--lep-red); outline-offset: 3px; }

/* ---------- En-tête de liste ---------- */
.lep-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lep .lep-h1 {
  color: var(--lep-blue); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px;
}
.lep-intro { margin: 0; color: var(--lep-muted); font-size: 1.05rem; max-width: 52ch; }

.lep-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 400px; min-width: 260px;
  border: 1px solid var(--lep-line); border-radius: 999px; padding: 5px 5px 5px 16px; background: #fff;
}
.lep-search:focus-within { border-color: var(--lep-blue); }
.lep-search-icon { color: var(--lep-muted); flex: none; }
.lep .lep-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 40px;
  font-size: .98rem; color: var(--lep-text); padding: 0; box-shadow: none;
}
.lep .lep-search button {
  flex: none; border: 0; border-radius: 999px; background: var(--lep-blue); color: #fff;
  font-weight: 600; font-size: .92rem; padding: 0 18px; height: 40px; cursor: pointer; line-height: 40px;
}
.lep .lep-search button:hover { background: var(--lep-red); }

/* Rubriques : onglets soulignés */
.lep-tabs {
  display: flex; gap: 32px; margin-top: 36px; border-bottom: 1px solid var(--lep-line);
  overflow-x: auto; scrollbar-width: none;
}
.lep-tabs::-webkit-scrollbar { display: none; }
.lep .lep-tabs a {
  flex: none; padding: 14px 0; margin-bottom: -1px; text-decoration: none; white-space: nowrap;
  color: var(--lep-muted); font-weight: 500; font-size: 1rem; border-bottom: 3px solid transparent;
}
.lep .lep-tabs a:hover { color: var(--lep-blue); }
.lep .lep-tabs a.is-active { color: var(--lep-blue); border-bottom-color: var(--lep-red); font-weight: 600; }

/* Formats (filtre combinable avec la rubrique) */
.lep-filters { margin-top: 20px; }
.lep .lep-chips a { display: inline-flex; align-items: center; gap: 6px; }
.lep .lep-chips svg { flex: none; }
.lep-count { font-size: .78rem; color: var(--lep-muted); font-variant-numeric: tabular-nums; }
.lep .lep-chips a.is-active .lep-count { color: rgba(255,255,255,.75); }
.lep-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; font-size: .92rem; }
.lep-sectors span { color: var(--lep-muted); }
.lep .lep-sectors a { color: var(--lep-text); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.lep .lep-sectors a:hover { color: var(--lep-blue); }
.lep .lep-sectors a.is-active { color: var(--lep-blue); border-bottom-color: var(--lep-red); font-weight: 600; }

/* Types d'articles */
.lep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lep .lep-chips a {
  text-decoration: none; font-size: .9rem; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--lep-line); color: var(--lep-text); background: #fff;
}
.lep .lep-chips a:hover { border-color: var(--lep-blue); color: var(--lep-blue); }
.lep .lep-chips a.is-active { background: var(--lep-blue); border-color: var(--lep-blue); color: #fff; }

.lep-body { padding-top: 44px; padding-bottom: 96px; }
.lep-search-info { margin: 0 0 32px; color: var(--lep-muted); }
.lep .lep-search-info a { color: var(--lep-red); font-weight: 600; margin-left: 12px; }

/* ---------- Cartes ---------- */
.lep-card { margin: 0; }
.lep-card-media { display: block; overflow: hidden; border-radius: var(--lep-radius); background: var(--lep-soft); aspect-ratio: 16 / 10; }
.lep-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lep-card-media { position: relative; }

/* Badge vidéo / podcast sur l'image */
.lep-badge {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--lep-blue); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 6px 12px 6px 10px; border-radius: 999px;
}
.lep-fmt-videos .lep-badge { background: var(--lep-red); }

/* Agenda : le mois affiché comme une page de calendrier */
.lep-fmt-agenda .lep-card-placeholder { background: #fff; border: 1px solid var(--lep-line); align-items: center; justify-content: center; text-align: center; }
.lep-fmt-agenda .lep-card-placeholder::before { top: 0; left: 0; right: 0; width: auto; height: 18%; transform: none; background: var(--lep-red); }
.lep-fmt-agenda .lep-card-placeholder span { color: var(--lep-blue); max-width: none; font-size: 1.7rem; }

/* Dessins : l'illustration entière, sans recadrage */
.lep-fmt-dessins .lep-card-media { background: #fff; border: 1px solid var(--lep-line); }
.lep-fmt-dessins .lep-card-media img { object-fit: contain; padding: 10px; }
.lep-grid--dessins .lep-card-media { aspect-ratio: 1 / 1; }

/* Article sans visuel (ex. questions-réponses) : bloc bleu du cabinet */
.lep-card-placeholder {
  position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%;
  background: var(--lep-blue); padding: 24px 26px; overflow: hidden;
}
.lep-card-placeholder::before {
  content: ""; position: absolute; top: 0; right: 14%; width: 22%; height: 34%;
  background: var(--lep-red); transform: skewX(-24deg);
}
.lep-card-placeholder span {
  position: relative; color: #fff; font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.01em; max-width: 12ch;
}

.lep-card-rub { margin: 18px 0 8px; font-size: .88rem; font-weight: 600; }
.lep .lep-card-rub a { color: var(--lep-red); text-decoration: none; }
.lep .lep-card-rub a:hover { text-decoration: underline; }
.lep-card-rub span { color: var(--lep-muted); font-weight: 500; }
.lep .lep-card-rub span a { color: var(--lep-muted); }
.lep-card-rub span::before { content: "/"; margin: 0 8px; color: var(--lep-line); }

.lep .lep-card-title { margin: 0 0 10px; color: var(--lep-blue); font-weight: 700; letter-spacing: -0.01em; }
.lep .lep-card-title a { color: inherit; text-decoration: none; }
.lep .lep-card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--lep-red); text-underline-offset: 5px; }
.lep-card-excerpt { margin: 0 0 14px; line-height: 1.6; }
.lep-card-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .86rem; color: var(--lep-muted); }

/* Article à la une */
.lep-feature { margin-bottom: 72px; }
.lep-card--feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.lep-card--feature .lep-card-rub { margin-top: 0; }
.lep .lep-card--feature .lep-card-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; }
.lep-card--feature .lep-card-excerpt { font-size: 1.1rem; max-width: 46ch; }
.lep-card--feature .lep-card-placeholder span { font-size: 2.4rem; }

/* Grille */
.lep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.lep .lep-card--card .lep-card-title { font-size: 1.3rem; line-height: 1.25; }
.lep-card--card .lep-card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Pagination */
.lep-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 72px; }
.lep .lep-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--lep-line); color: var(--lep-blue); text-decoration: none; font-weight: 600;
}
.lep .lep-pagination a.page-numbers:hover { border-color: var(--lep-blue); }
.lep .lep-pagination .current { background: var(--lep-blue); border-color: var(--lep-blue); color: #fff; }
.lep .lep-pagination .dots { border: 0; min-width: auto; }

.lep-empty { max-width: 560px; padding: 32px 0; }
.lep .lep-empty h2 { color: var(--lep-blue); font-size: 1.6rem; margin: 0 0 8px; }
.lep .lep-empty a { color: var(--lep-red); font-weight: 600; }

/* ---------- Article ---------- */
.lep-article-head { padding-bottom: 36px; }
.lep-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 20px; color: var(--lep-line); }
.lep .lep-crumbs a { color: var(--lep-red); text-decoration: none; font-weight: 600; }
.lep .lep-crumbs a:first-child { color: var(--lep-muted); font-weight: 500; }
.lep .lep-crumbs a:hover { text-decoration: underline; }
.lep .lep-article-title, .lep .lep-h1 { border: 0; padding-bottom: 0; }
.lep .lep-article-title::after, .lep .lep-h1::after { display: none; }
.lep .lep-article-title {
  color: var(--lep-blue); font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1;
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px;
}
.lep-lead { font-size: 1.22rem; line-height: 1.55; color: var(--lep-text); margin: 0 0 20px; }
.lep-hero { max-width: 1100px; margin-top: 0; margin-bottom: 48px; }
.lep-hero img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--lep-radius); display: block; }

.lep-content { font-size: 1.08rem; line-height: 1.75; padding-bottom: 72px; }
.lep-content p { margin: 0 0 1.15em; }
.lep-content img { max-width: 100%; height: auto; border-radius: var(--lep-radius); }
.lep .lep-content .lep-section-title {
  color: var(--lep-blue); font-size: 1.45rem; line-height: 1.25; font-weight: 700;
  margin: 2em 0 .6em; padding: 0; border: 0;
}
.lep .lep-content .lep-section-title:first-child { margin-top: 0; }
.lep .lep-content h3 { color: var(--lep-blue); font-size: 1.2rem; margin: 1.6em 0 .5em; }
.lep-content .lep-annotation-title { color: var(--lep-blue); }

/* Agenda : chaque date d'échéance en repère rouge */
.lep-fmt-page-agenda .lep-content .lep-section-title {
  font-size: 1.15rem; padding: 10px 0 10px 16px; border-left: 4px solid var(--lep-red); background: var(--lep-soft); border-radius: 0 6px 6px 0;
}

/* Tableaux LEP (chiffres utiles, calendriers...) */
.lep-content .lep-table { overflow-x: auto; margin: 24px 0 32px; }
.lep-content .lep-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.lep-content .lep-table td, .lep-content .lep-table th { border: 1px solid var(--lep-line); padding: 10px 12px; vertical-align: top; }
.lep-content .lep-table .TABLEAU-Titre { background: var(--lep-blue); color: #fff; font-weight: 700; text-align: center; }
.lep-content .lep-table .TABLEAU-Titre-colonne { background: var(--lep-soft); color: var(--lep-blue); font-weight: 600; }
.lep-content .lep-table .TABLEAU-legende { font-size: .85rem; color: var(--lep-muted); background: #fff; }
.lep-content .lep-table tr:nth-child(even) .TABLEAU-Texte { background: #fafbfd; }

.lep-content .lep-annotation {
  background: var(--lep-soft); border-left: 3px solid var(--lep-red);
  padding: 18px 22px; margin: 28px 0; border-radius: 0 8px 8px 0;
}
.lep .lep-content a { color: var(--lep-blue); text-decoration-color: var(--lep-red); text-underline-offset: 3px; }
.lep-content .lep-dessin, .lep-content .lep-video, .lep-content .lep-audio { margin: 0 0 32px; }
.lep-content .lep-audio { background: var(--lep-soft); padding: 12px; border-radius: var(--lep-radius); }
.lep-content .lep-audio iframe { display: block; border-radius: 8px; background: #fff; }
.lep-content .lep-video video { width: 100%; border-radius: var(--lep-radius); background: #000; }
.lep-content .lep-legal { font-size: .86rem; color: var(--lep-muted); border-top: 1px solid var(--lep-line); padding-top: 18px; margin-top: 44px; }
.lep-content .lep-related { margin-top: 32px; padding: 22px 24px; background: var(--lep-soft); border-radius: var(--lep-radius); }
.lep .lep-content .lep-related h3 { font-size: 1.05rem; color: var(--lep-blue); margin: 0 0 10px; }
.lep-content .lep-related ul { margin: 0; padding-left: 18px; }

.lep-more { background: var(--lep-soft); padding: 72px 0 96px; }
.lep-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.lep .lep-more-head h2 { color: var(--lep-blue); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.lep .lep-more-head a { color: var(--lep-red); font-weight: 600; text-decoration: none; }
.lep .lep-more-head a:hover { text-decoration: underline; }

/* ---------- Écrans moyens et mobiles ---------- */
@media (max-width: 1024px) {
  .lep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lep-card--feature { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  body.lep-page #primary.lep { padding-top: 32px; }
  .lep-wrap { padding-left: 18px; padding-right: 18px; }
  .lep-search { flex-basis: 100%; }
  .lep-tabs { gap: 24px; margin-top: 28px; }
  .lep-grid { grid-template-columns: 1fr; gap: 44px; }
  .lep-feature { margin-bottom: 48px; }
  .lep-more { padding: 48px 0 64px; }
}

/* ==========================================================
   Outils pratiques (simulateurs)
   ========================================================== */
.lep-tools { max-width: 1140px; margin: 0 auto; padding: 0 0 40px; }
.lep-ico { display: block; flex: none; }
.lep-ico .a { stroke: var(--lep-red); }

/* En-tête illustré */
.lep-tools-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #f6f8fc 0%, #eef2f9 100%);
  border-radius: 20px; padding: 48px 48px 40px; margin-bottom: 36px; overflow: hidden; position: relative;
}
.lep-tools-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 160px; height: 70px;
  background: var(--lep-red); transform: skewX(-24deg); opacity: .08;
}
.lep-tools-kicker { margin: 0 0 10px; color: var(--lep-red); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.lep .lep-tools-h1 { color: var(--lep-blue); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; padding: 0; border: 0; }
.lep-tools-lead { font-size: 1.12rem; line-height: 1.6; margin: 0 0 22px; max-width: 46ch; }
.lep-tools-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lep-tools-facts li { background: #fff; border: 1px solid var(--lep-line); border-radius: 999px; padding: 8px 14px; font-size: .9rem; margin: 0; }
.lep-tools-facts strong { color: var(--lep-blue); }
.lep-tools-hero-media { display: flex; justify-content: center; }
.lep-tools-hero-art { width: 100%; max-width: 420px; height: auto; }

/* Navigation par catégorie */
.lep-tools-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.lep .lep-tools-nav a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid var(--lep-line); color: var(--lep-blue); background: #fff;
}
.lep-tools-nav .lep-ico { width: 20px; height: 20px; }
.lep .lep-tools-nav a:hover { border-color: var(--lep-blue); background: #f6f8fc; }

/* Catégories */
.lep-tools-cat { margin-bottom: 52px; scroll-margin-top: 120px; }
.lep-tools-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.lep-tools-cat-ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--lep-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.lep-tools-cat-ico .lep-ico { width: 30px; height: 30px; }
.lep-tools-cat-ico .lep-ico .a { stroke: #ff9b9b; }
.lep .lep-tools-cat-title { color: var(--lep-blue); font-size: 1.6rem; font-weight: 700; margin: 0; padding: 0; border: 0; line-height: 1.2; }
.lep-tools-cat-desc { margin: 2px 0 0; color: var(--lep-muted); }
.lep-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

/* Cartes outils */
.lep-tool { border: 1px solid var(--lep-line); border-radius: var(--lep-radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.lep-tool:hover { border-color: #c3cde3; box-shadow: 0 6px 20px rgba(0, 29, 108, .06); }
.lep-tool[open] { border-color: var(--lep-blue); grid-column: 1 / -1; box-shadow: 0 10px 30px rgba(0, 29, 108, .08); }
.lep-tool summary { list-style: none; cursor: pointer; padding: 18px 58px 18px 18px; position: relative; display: flex; align-items: center; gap: 16px; }
.lep-tool summary::-webkit-details-marker { display: none; }
.lep-tool summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--lep-soft); color: var(--lep-blue);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.lep-tool[open] summary::after { content: "−"; background: var(--lep-red); color: #fff; }
.lep-tool summary:focus-visible { outline: 2px solid var(--lep-red); outline-offset: -2px; border-radius: var(--lep-radius); }
.lep-tool-ico {
  width: 52px; height: 52px; border-radius: 14px; background: #eef2f9; color: var(--lep-blue);
  display: flex; align-items: center; justify-content: center; flex: none; transition: background .15s;
}
.lep-tool-ico .lep-ico { width: 28px; height: 28px; }
.lep-tool[open] .lep-tool-ico, .lep-tool:hover .lep-tool-ico { background: #e3e9f6; }
.lep-tool-txt { display: block; min-width: 0; }
.lep-tool-title { display: block; color: var(--lep-blue); font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.lep-tool-intro { display: block; color: var(--lep-muted); font-size: .92rem; margin-top: 3px; line-height: 1.45; }

/* Formulaire */
.lep-tool-form { padding: 6px 22px 24px 86px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.lep-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--lep-text); margin-bottom: 6px; }
.lep-input { display: flex; align-items: center; border: 1px solid var(--lep-line); border-radius: 10px; background: #fff; }
.lep-input:focus-within, .lep .lep-field select:focus { border-color: var(--lep-blue); box-shadow: 0 0 0 3px rgba(0, 29, 108, .08); }
.lep .lep-input input { flex: 1; min-width: 0; border: 0; outline: 0; height: 46px; padding: 0 12px; font-size: 1rem; background: transparent; box-shadow: none; }
.lep .lep-input input[aria-invalid="true"] { background: #fff5f5; }
.lep-input span { padding: 0 12px; color: var(--lep-muted); font-weight: 600; }
.lep .lep-field select { width: 100%; height: 48px; border: 1px solid var(--lep-line); border-radius: 10px; padding: 0 10px; font-size: 1rem; background: #fff; color: var(--lep-text); }
.lep-tool-actions { grid-column: 1 / -1; }
.lep .lep-tool-actions button {
  border: 0; border-radius: 999px; background: var(--lep-blue); color: #fff; font-weight: 600;
  padding: 13px 30px; cursor: pointer; font-size: 1rem;
}
.lep .lep-tool-actions button:hover { background: var(--lep-red); }
.lep .lep-tool-actions button:disabled { opacity: .6; cursor: wait; }
.lep-tool-result {
  grid-column: 1 / -1; background: linear-gradient(135deg, #f6f8fc, #eef2f9); border-left: 4px solid var(--lep-blue);
  border-radius: 0 10px 10px 0; padding: 18px 22px; color: var(--lep-blue); font-size: 1.08rem; line-height: 1.6;
}
.lep-tool-result.is-error { border-left-color: var(--lep-red); color: var(--lep-red); background: #fff6f6; }
.lep-tool-result-label { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lep-red); font-weight: 700; }

/* Encart contact */
.lep-tools-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--lep-blue); color: #fff; border-radius: 20px; padding: 32px 36px; margin: 12px 0 18px; position: relative; overflow: hidden;
}
.lep-tools-cta::before { content: ""; position: absolute; left: 60%; top: 0; width: 90px; height: 100%; background: var(--lep-red); transform: skewX(-24deg); opacity: .9; }
.lep-tools-cta > * { position: relative; }
.lep .lep-tools-cta h2 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; padding: 0; border: 0; }
.lep-tools-cta p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 52ch; }
.lep .lep-tools-cta-btn { background: #fff; color: var(--lep-blue); text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; white-space: nowrap; }
.lep .lep-tools-cta-btn:hover { background: #ffe9e9; color: var(--lep-red); }
.lep-tools-note { color: var(--lep-muted); font-size: .86rem; margin-top: 8px; }

@media (max-width: 900px) {
  .lep-tools-hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .lep-tools-hero-media { order: -1; }
  .lep-tools-hero-art { max-width: 320px; }
  .lep-tools-cta::before { display: none; }
}
@media (max-width: 760px) {
  .lep-tools-grid, .lep-tool-form { grid-template-columns: 1fr; }
  .lep-tool-form { padding: 4px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .lep-tool, .lep-tool-ico { transition: none; } }

/* ==========================================================
   v6 : expérience utilisateur (Actualités + Outils)
   ========================================================== */

/* ---------- Badge « Nouveau » ---------- */
.lep-new {
  display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--lep-red); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; vertical-align: 1px;
}

/* ---------- Barre de lecture ---------- */
.lep-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 100000; pointer-events: none; }
.admin-bar .lep-progress { top: 32px; }
.lep-progress span { display: block; height: 100%; background: var(--lep-red); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Méta + partage ---------- */
.lep-article-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lep-share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lep .lep-share a, .lep .lep-share button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center;
  border: 1px solid var(--lep-line); border-radius: 999px; background: #fff; color: var(--lep-blue);
  font-size: .85rem; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1;
}
.lep .lep-share a:hover, .lep .lep-share button:hover { border-color: var(--lep-blue); background: #f6f8fc; }

/* ---------- Sommaire ---------- */
.lep-toc { background: var(--lep-soft); border-radius: var(--lep-radius); padding: 18px 22px; margin: 0 0 36px; }
.lep-toc summary { cursor: pointer; font-weight: 700; color: var(--lep-blue); list-style: none; }
.lep-toc summary::-webkit-details-marker { display: none; }
.lep-toc summary::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--lep-red); transition: transform .15s; }
.lep-toc[open] summary::before { transform: rotate(90deg); }
.lep-toc summary span { color: var(--lep-muted); font-weight: 500; font-size: .9rem; }
.lep-toc ol { margin: 12px 0 0; padding-left: 22px; }
.lep-toc li { margin: 6px 0; line-height: 1.4; }
.lep .lep-toc a { color: var(--lep-text); text-decoration: none; }
.lep .lep-toc a:hover { color: var(--lep-blue); text-decoration: underline; text-decoration-color: var(--lep-red); }
.lep-content .lep-section-title { scroll-margin-top: 120px; }

/* ---------- Bas d'article ---------- */
.lep-after { padding-bottom: 72px; display: grid; gap: 18px; }
.lep-content { padding-bottom: 32px; }

/* Simulateur lié */
.lep-tool-promo {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--lep-line);
  border-radius: var(--lep-radius); background: #fff;
}
.lep-tool-promo-ico { width: 56px; height: 56px; border-radius: 14px; background: #eef2f9; color: var(--lep-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.lep-tool-promo-ico .lep-ico { width: 30px; height: 30px; }
.lep-tool-promo > div { flex: 1; min-width: 0; }
.lep-tool-promo-kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lep-red); }
.lep-tool-promo strong { display: block; color: var(--lep-blue); font-size: 1.05rem; line-height: 1.3; }
.lep-tool-promo span { display: block; color: var(--lep-muted); font-size: .92rem; }
.lep .lep-tool-promo > a {
  flex: none; background: var(--lep-blue); color: #fff; text-decoration: none; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
}
.lep .lep-tool-promo > a:hover { background: var(--lep-red); }

/* Appel au contact */
.lep-contact-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--lep-blue); color: #fff; border-radius: var(--lep-radius); padding: 24px 26px; position: relative; overflow: hidden;
}
.lep-contact-cta::before { content: ""; position: absolute; right: 180px; top: 0; width: 60px; height: 100%; background: var(--lep-red); transform: skewX(-24deg); opacity: .9; }
.lep-contact-cta > * { position: relative; }
.lep .lep-contact-cta h2 { color: #fff; font-size: 1.25rem; margin: 0 0 4px; padding: 0; border: 0; }
.lep-contact-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.lep .lep-contact-cta-btn { background: #fff; color: var(--lep-blue); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; white-space: nowrap; }
.lep .lep-contact-cta-btn:hover { background: #ffe9e9; color: var(--lep-red); }

/* Encart newsletter */
.lep-nl-banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--lep-radius);
  background: linear-gradient(135deg, #f6f8fc, #eef2f9); border: 1px solid var(--lep-line);
}
.lep-nl-banner--archive { margin-top: 56px; }
.lep-nl-banner-ico { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--lep-red); display: flex; align-items: center; justify-content: center; flex: none; }
.lep-nl-banner-txt { flex: 1; min-width: 0; }
.lep-nl-banner-txt strong { display: block; color: var(--lep-blue); font-size: 1.05rem; }
.lep-nl-banner-txt span { color: var(--lep-muted); font-size: .93rem; }
.lep .lep-nl-open {
  flex: none; border: 0; border-radius: 999px; background: var(--lep-red); color: #fff; font-weight: 700;
  padding: 11px 22px; cursor: pointer; font-size: .95rem;
}
.lep .lep-nl-open:hover { background: var(--lep-blue); }
.lep-admin-hint { font-size: .85rem; color: var(--lep-muted); border: 1px dashed var(--lep-line); padding: 10px 14px; border-radius: 8px; }

/* ---------- Fenêtre newsletter ---------- */
.lep-nl-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  border: 0; border-radius: 20px; padding: 36px 34px 30px; color: var(--lep-text);
  box-shadow: 0 30px 80px rgba(0, 15, 60, .35);
}
.lep-nl-dialog::backdrop { background: rgba(0, 18, 60, .55); }
.lep-nl-dialog[open] { animation: lep-pop .22s ease-out; }
@keyframes lep-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.lep .lep-nl-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--lep-soft); color: var(--lep-blue); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lep .lep-nl-close:hover { background: var(--lep-red); color: #fff; }
.lep-nl-art { margin-bottom: 10px; }
.lep-nl-kicker { margin: 0 0 6px; color: var(--lep-red); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.lep .lep-nl-title { color: var(--lep-blue); font-size: 1.55rem; line-height: 1.2; margin: 0 0 10px; padding: 0; border: 0; }
.lep-nl-text { margin: 0 0 20px; color: var(--lep-muted); }
.lep-nl-form input[type="email"], .lep-nl-form input[type="text"] { width: 100%; }

/* ---------- Prochaines échéances ---------- */
.lep-deadlines { margin: 0 0 56px; padding: 22px 24px; border-radius: var(--lep-radius); border: 1px solid var(--lep-line); background: #fff; }
.lep-deadlines-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lep .lep-deadlines-head h2 { color: var(--lep-blue); font-size: 1.25rem; margin: 0; padding: 0; border: 0; }
.lep .lep-deadlines-head a { color: var(--lep-red); font-weight: 600; text-decoration: none; font-size: .92rem; }
.lep-deadlines-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lep-deadlines-list li { margin: 0; }
.lep .lep-deadlines-list a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 10px; border-radius: 10px; color: var(--lep-text); }
.lep .lep-deadlines-list a:hover { background: var(--lep-soft); }
.lep-deadline-date {
  width: 58px; height: 62px; border-radius: 10px; overflow: hidden; flex: none; display: flex; flex-direction: column;
  text-align: center; border: 1px solid var(--lep-line); background: #fff;
}
.lep-deadline-month { order: -1; background: var(--lep-red); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 3px 0; letter-spacing: .04em; }
.lep-deadline-day { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--lep-blue); font-size: 1.5rem; font-weight: 700; }
.lep-deadline-label { font-size: .92rem; line-height: 1.4; }

/* ---------- Afficher plus ---------- */
.lep .lep-more-btn {
  display: block; margin: 56px auto 0; border: 1px solid var(--lep-blue); background: #fff; color: var(--lep-blue);
  font-weight: 600; padding: 13px 30px; border-radius: 999px; cursor: pointer; font-size: 1rem;
}
.lep .lep-more-btn:hover { background: var(--lep-blue); color: #fff; }
.lep .lep-more-btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Outils : plus utilisés, exemple, aide ---------- */
.lep-tools-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.lep-tools-popular > span { color: var(--lep-muted); font-size: .9rem; margin-right: 4px; }
.lep .lep-tools-popular a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .88rem; font-weight: 600;
  color: var(--lep-blue); background: #fff; border: 1px solid var(--lep-line); padding: 6px 12px 6px 8px; border-radius: 999px;
}
.lep-tools-popular .lep-ico { width: 18px; height: 18px; }
.lep .lep-tools-popular a:hover { border-color: var(--lep-blue); }
.lep-tool-example { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--lep-muted); }
.lep .lep-tool-example button {
  border: 1px dashed var(--lep-blue); background: #f6f8fc; color: var(--lep-blue); border-radius: 999px;
  padding: 6px 14px; font-weight: 600; cursor: pointer; margin-right: 6px; font-size: .88rem;
}
.lep .lep-tool-example button:hover { border-style: solid; }
.lep-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lep-label-row label { margin: 0 !important; }
.lep .lep-help-btn {
  width: 20px; height: 20px; border-radius: 50%; border: 0; background: #e3e9f6; color: var(--lep-blue);
  font-size: .75rem; font-weight: 700; font-style: italic; font-family: Georgia, serif; cursor: pointer; padding: 0; line-height: 20px; flex: none;
}
.lep .lep-help-btn[aria-expanded="true"] { background: var(--lep-blue); color: #fff; }
.lep-help { margin: 0 0 8px; font-size: .86rem; line-height: 1.5; color: var(--lep-text); background: #f6f8fc; border-radius: 8px; padding: 8px 12px; }

/* ---------- Outils : détail, graphique, tableau ---------- */
.lep-tool-extra { grid-column: 1 / -1; border: 1px solid var(--lep-line); border-radius: 10px; padding: 18px 20px; }
.lep-detail-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 16px; }
.lep-kpi { background: var(--lep-soft); border-radius: 10px; padding: 12px 14px; }
.lep-kpi span { display: block; font-size: .8rem; color: var(--lep-muted); }
.lep-kpi strong { display: block; color: var(--lep-blue); font-size: 1.15rem; margin-top: 2px; }
.lep-chart { margin: 0 0 12px; }
.lep-chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 600; color: var(--lep-blue); font-size: .92rem; margin-bottom: 6px; }
.lep-chart svg { width: 100%; height: auto; display: block; }
.lep-legend { font-weight: 500; color: var(--lep-muted); font-size: .82rem; }
.lep-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.lep-amort summary { cursor: pointer; color: var(--lep-blue); font-weight: 600; margin: 4px 0; }
.lep-amort .lep-table { max-height: 360px; overflow: auto; margin-top: 10px; }
.lep-amort table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.lep-amort th { position: sticky; top: 0; background: var(--lep-blue); color: #fff; text-align: right; padding: 8px 10px; font-weight: 600; }
.lep-amort td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--lep-line); }
.lep-amort th:first-child, .lep-amort td:first-child { text-align: center; }
.lep-detail-note { margin: 10px 0 0; font-size: .8rem; color: var(--lep-muted); }

/* ---------- Outils : suite du résultat ---------- */
.lep-tool-next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lep .lep-tool-contact { background: var(--lep-red); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.lep .lep-tool-contact:hover { background: var(--lep-blue); color: #fff; }
.lep .lep-tool-print { border: 1px solid var(--lep-line); background: #fff; color: var(--lep-blue); font-weight: 600; padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.lep .lep-tool-print:hover { border-color: var(--lep-blue); }
.lep-tool-related { grid-column: 1 / -1; border-top: 1px solid var(--lep-line); padding-top: 14px; }
.lep-tool-related p { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lep-muted); }
.lep-tool-related ul { margin: 0; padding-left: 18px; }
.lep .lep-tool-related a { color: var(--lep-blue); }
.lep-print-head { display: none; }

@media (max-width: 900px) {
  .lep-deadlines-list { grid-template-columns: 1fr; }
  .lep-contact-cta::before { display: none; }
}
@media (max-width: 680px) {
  .lep-tool-promo, .lep-nl-banner { flex-direction: column; align-items: flex-start; }
  .lep-detail-kpis { grid-template-columns: 1fr; }
  .lep-nl-dialog { padding: 30px 22px 24px; }
  .lep-share .lep-copy-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lep-nl-dialog[open] { animation: none; }
  .lep-toc summary::before { transition: none; }
}

/* ---------- Impression ---------- */
@media print {
  #wpadminbar, #masthead, .site-header, .site-footer, #colophon, .header-area, .header-menu, .topbar-area, .footer-area, .brand-section,
  .lep-progress, .lep-share, .lep-toc, .lep-after, .lep-more, .lep-nl-dialog, .lep-tools-cta { display: none !important; }
  .lep-content { font-size: 11pt; }
  body.lep-printing * { visibility: hidden; }
  body.lep-printing .lep-tool.is-print, body.lep-printing .lep-tool.is-print * { visibility: visible; }
  body.lep-printing .lep-tool.is-print { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; }
  body.lep-printing .lep-tool.is-print summary::after,
  body.lep-printing .lep-tool-example, body.lep-printing .lep-tool-actions, body.lep-printing .lep-tool-next,
  body.lep-printing .lep-help-btn, body.lep-printing .lep-tool-related { display: none !important; }
  body.lep-printing .lep-print-head { display: flex; flex-direction: column; grid-column: 1 / -1; border-bottom: 2px solid #001d6c; padding-bottom: 8px; margin-bottom: 8px; }
  body.lep-printing .lep-amort[open] .lep-table, body.lep-printing .lep-amort .lep-table { max-height: none; overflow: visible; }
}
