/*
Theme Name: LVDE Magazine
Theme URI: https://lavoixdesentreprises.info
Author: Include Technologie
Author URI: https://includetechnologie.com
Description: Thème magazine sur-mesure pour La Voix des Entreprises : en-tête rouge avec bandeau publicitaire, menu à sous-menus, page d'accueil éditoriale (À la Une, sections par catégorie, colonne latérale), articles avec titre encadré, barre de progression de lecture, partage, badge Premium et articles de la même catégorie.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lvde
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* ==========================================================================
   1. Variables et base
   ========================================================================== */
:root {
  --lvde-red: #dd1818;
  --lvde-red-dark: #b50f0f;
  --lvde-topbar: #dd0b0b;
  --lvde-nav: #dd3333;
  --lvde-badge: #e00000;
  --lvde-ink: #1b1b1b;
  --lvde-text: #2b2b2b;
  --lvde-muted: #6b6b6b;
  --lvde-line: #e4e4e4;
  --lvde-soft: #f4f4f4;
  --lvde-paper: #ffffff;
  --lvde-gold: #c9a227;
  --lvde-radius: 3px;
  --lvde-wrap: 1240px;
  --lvde-font-title: "Oswald", "Arial Narrow", Arial, sans-serif;
  --lvde-font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lvde-soft);
  color: var(--lvde-text);
  font-family: var(--lvde-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--lvde-red); }
h1, h2, h3, h4, h5, h6 { font-family: var(--lvde-font-title); color: var(--lvde-ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #000; display: block; height: auto;
  left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; box-shadow: 0 0 4px rgba(0,0,0,.4);
}

.lvde-wrap { width: 100%; max-width: var(--lvde-wrap); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   2. En-tête
   ========================================================================== */
.lvde-topbar { background: var(--lvde-topbar); color: #fff; font-size: 13px; }
.lvde-topbar .lvde-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.lvde-topbar__date { letter-spacing: .02em; text-transform: capitalize; }
.lvde-social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lvde-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14);
}
.lvde-social a:hover { background: #fff; color: var(--lvde-red); }
.lvde-social svg { width: 14px; height: 14px; fill: currentColor; }

.lvde-masthead { background: var(--lvde-paper); }
.lvde-masthead__inner {
  display: grid; grid-template-columns: minmax(220px, 34%) 1fr; align-items: center; gap: 28px; padding: 18px 20px;
}
.lvde-branding { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.lvde-branding .custom-logo-link { display: block; }
.lvde-branding .custom-logo { width: auto; max-height: 76px; max-width: 100%; }
.lvde-site-title { font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 0; line-height: 1.1; }
.lvde-site-title a { color: var(--lvde-ink); }
.lvde-site-title a:hover { color: var(--lvde-red); }
.lvde-tagline { margin: 4px 0 0; color: var(--lvde-muted); font-size: 14px; }
.lvde-branding--logo .lvde-site-title,
.lvde-branding--logo .lvde-tagline { position: absolute; left: -9999px; }

.lvde-promo { display: flex; justify-content: flex-end; min-width: 0; }
.lvde-promo a, .lvde-promo img { display: block; width: 100%; max-width: 728px; }
.lvde-promo img { border-radius: var(--lvde-radius); }

/* Navigation */
.lvde-navbar { background: var(--lvde-nav); position: relative; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.lvde-navbar .lvde-wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; }
.lvde-nav { flex: 1; min-width: 0; }
.lvde-menu, .lvde-menu ul { list-style: none; margin: 0; padding: 0; }
.lvde-menu { display: flex; flex-wrap: wrap; }
.lvde-menu > li { position: relative; }
.lvde-menu a {
  display: block; padding: 14px 15px; color: #fff; font-family: var(--lvde-font-title);
  font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2;
}
.lvde-menu > li > a:hover,
.lvde-menu > li.current-menu-item > a,
.lvde-menu > li.current-menu-ancestor > a,
.lvde-menu > li.current-cat > a { background: var(--lvde-red-dark); color: #fff; }
.lvde-menu .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.lvde-menu .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border-top: 3px solid var(--lvde-red-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 60;
}
.lvde-menu li:hover > .sub-menu,
.lvde-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lvde-menu .sub-menu a { color: var(--lvde-ink); padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--lvde-line); }
.lvde-menu .sub-menu a:hover { background: var(--lvde-soft); color: var(--lvde-red); }
.lvde-menu .sub-menu .sub-menu { left: 100%; top: -3px; }

.lvde-navtools { display: flex; align-items: stretch; }
.lvde-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; border: 0; cursor: pointer;
  background: transparent; color: #fff; padding: 0;
}
.lvde-iconbtn:hover { background: var(--lvde-red-dark); }
.lvde-iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lvde-burger { display: none; }

.lvde-searchpanel { background: #fff; border-bottom: 1px solid var(--lvde-line); display: none; }
.lvde-searchpanel.is-open { display: block; }
.lvde-searchpanel .lvde-wrap { padding-top: 16px; padding-bottom: 16px; }

.lvde-searchform { display: flex; width: 100%; }
.lvde-searchform input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #cfcfcf; border-right: 0; border-radius: var(--lvde-radius) 0 0 var(--lvde-radius);
  background: #fff; color: var(--lvde-ink); outline: none;
}
.lvde-searchform input[type="search"]:focus { border-color: var(--lvde-red); }
.lvde-searchform button {
  padding: 0 20px; border: 0; background: var(--lvde-red); color: #fff; cursor: pointer;
  font-family: var(--lvde-font-title); text-transform: uppercase; letter-spacing: .04em; border-radius: 0 var(--lvde-radius) var(--lvde-radius) 0;
}
.lvde-searchform button:hover { background: var(--lvde-red-dark); }

/* Panneau mobile */
.lvde-drawer {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, 340px); background: #fff; z-index: 1000;
  transform: translateX(-100%); visibility: hidden; transition: transform .28s ease, visibility .28s; overflow-y: auto; padding: 20px;
}
.lvde-drawer.is-open { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
.lvde-drawer__close { position: absolute; right: 8px; top: 8px; background: transparent; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--lvde-ink); width: 40px; height: 40px; }
.lvde-drawer .lvde-menu { display: block; margin-top: 30px; }
.lvde-drawer .lvde-menu a { color: var(--lvde-ink); border-bottom: 1px solid var(--lvde-line); padding: 12px 4px; }
.lvde-drawer .lvde-menu > li > a:hover { background: transparent; color: var(--lvde-red); }
.lvde-drawer .lvde-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; min-width: 0; }
.lvde-drawer .lvde-menu .menu-item-has-children > a::after { display: none; }
.lvde-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 999; }
.lvde-overlay.is-open { opacity: 1; visibility: visible; }

/* Barre de progression de lecture */
.lvde-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--lvde-red); z-index: 1100; transition: width .08s linear; }
.admin-bar .lvde-progress { top: 32px; }

/* ==========================================================================
   3. Mise en page générale
   ========================================================================== */
.lvde-main { padding: 26px 0 50px; }
.lvde-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.lvde-layout--full { grid-template-columns: minmax(0, 1fr); }
.lvde-content { min-width: 0; }
.lvde-sidebar { min-width: 0; }
.lvde-sidebar--sticky { position: sticky; top: 74px; }

.lvde-secthead {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--lvde-ink);
}
.lvde-secthead__title {
  margin: 0; position: relative; padding: 6px 14px; background: var(--lvde-red); color: #fff;
  font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2;
}
.lvde-secthead__title::after {
  content: ""; position: absolute; left: 100%; top: 0; border: 17px solid transparent; border-left-color: var(--lvde-red); border-right: 0;
  height: 0; width: 0; border-top-width: 17px; border-bottom-width: 17px; display: none;
}
.lvde-secthead__more { margin-left: auto; font-size: 13px; text-transform: uppercase; color: var(--lvde-muted); font-family: var(--lvde-font-title); letter-spacing: .04em; }
.lvde-secthead__more:hover { color: var(--lvde-red); }
.lvde-section { margin-bottom: 38px; background: var(--lvde-paper); padding: 22px; border-radius: var(--lvde-radius); }

/* Catégories et méta */
.lvde-cats { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; }
.lvde-cat {
  display: inline-block; padding: 2px 9px; background: var(--lvde-red); color: #fff; font-family: var(--lvde-font-title);
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.6; border-radius: 2px;
}
.lvde-cat:hover { background: var(--lvde-ink); color: #fff; }
.lvde-cat--premium, .lvde-badge-premium {
  background: linear-gradient(135deg, #f0cf5a, var(--lvde-gold)); color: #1b1b1b;
}
.lvde-cat--premium:hover { background: var(--lvde-ink); color: var(--lvde-gold); }
.lvde-badge-premium {
  position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 10px; font-family: var(--lvde-font-title);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.lvde-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--lvde-muted); font-size: 12.5px; }
.lvde-meta a { color: var(--lvde-muted); }
.lvde-meta a:hover { color: var(--lvde-red); }
.lvde-meta__item { display: inline-flex; align-items: center; gap: 5px; }
.lvde-meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.lvde-thumb { position: relative; display: block; overflow: hidden; background: #ddd; border-radius: var(--lvde-radius); }
.lvde-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lvde-thumb:hover img { transform: scale(1.05); }
.lvde-thumb--empty { background: linear-gradient(135deg, #ececec, #d9d9d9); }

/* Cartes */
.lvde-title-link { color: var(--lvde-ink); }
.lvde-title-link:hover { color: var(--lvde-red); }

.lvde-list { display: grid; gap: 0; }
.lvde-card-list {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--lvde-line);
}
.lvde-card-list:first-child { padding-top: 0; }
.lvde-card-list:last-child { border-bottom: 0; padding-bottom: 0; }
.lvde-card-list .lvde-thumb { aspect-ratio: 3 / 2; }
.lvde-card-list__title { font-size: 21px; margin: 0 0 8px; font-weight: 600; }
.lvde-card-list__excerpt { color: #555; font-size: 14.5px; margin: 8px 0 0; }

.lvde-grid { display: grid; gap: 22px; }
.lvde-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lvde-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lvde-card-grid .lvde-thumb { aspect-ratio: 16 / 10; margin-bottom: 12px; }
.lvde-card-grid__title { font-size: 19px; margin: 0 0 8px; font-weight: 600; }

.lvde-card-mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--lvde-line); align-items: start; }
.lvde-card-mini:last-child { border-bottom: 0; }
.lvde-card-mini .lvde-thumb { aspect-ratio: 1 / 1; }
.lvde-card-mini__title { font-size: 15.5px; font-weight: 500; margin: 0 0 4px; line-height: 1.3; }
.lvde-card-mini__rank {
  position: absolute; left: 0; top: 0; z-index: 2; background: var(--lvde-red); color: #fff; font-family: var(--lvde-font-title);
  font-size: 13px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   4. Accueil
   ========================================================================== */
.lvde-flash { background: var(--lvde-paper); border-bottom: 1px solid var(--lvde-line); }
.lvde-flash .lvde-wrap { display: flex; align-items: stretch; gap: 0; min-height: 44px; }
.lvde-flash__label {
  display: flex; align-items: center; padding: 0 18px; background: var(--lvde-ink); color: #fff; font-family: var(--lvde-font-title);
  text-transform: uppercase; letter-spacing: .05em; font-size: 14px; white-space: nowrap;
}
.lvde-flash__label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lvde-red); margin-right: 9px; animation: lvde-pulse 1.4s infinite; }
@keyframes lvde-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }
.lvde-flash__track { flex: 1; min-width: 0; overflow: hidden; position: relative; display: flex; align-items: center; }
.lvde-flash__list { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0 22px; white-space: nowrap; animation: lvde-marquee 70s linear infinite; }
.lvde-flash__track:hover .lvde-flash__list { animation-play-state: paused; }
.lvde-flash__list a { font-size: 14px; font-weight: 600; color: var(--lvde-ink); }
.lvde-flash__list a:hover { color: var(--lvde-red); }
@keyframes lvde-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.lvde-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 4px; margin-bottom: 38px; }
.lvde-hero__main, .lvde-hero__item { position: relative; display: block; overflow: hidden; background: #222; color: #fff; border-radius: var(--lvde-radius); }
.lvde-hero__main { min-height: 480px; }
.lvde-hero__side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.lvde-hero__main img, .lvde-hero__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lvde-hero__main:hover img, .lvde-hero__item:hover img { transform: scale(1.05); }
.lvde-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 6%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%); }
.lvde-hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.lvde-hero__title { color: #fff; margin: 8px 0 8px; font-size: 30px; font-weight: 600; line-height: 1.2; }
.lvde-hero__item .lvde-hero__body { padding: 14px; }
.lvde-hero__item .lvde-hero__title { font-size: 16px; margin: 6px 0 0; }
.lvde-hero__main:hover .lvde-hero__title, .lvde-hero__item:hover .lvde-hero__title { color: #fff; text-decoration: underline; text-decoration-color: var(--lvde-red); text-underline-offset: 4px; }
.lvde-hero .lvde-meta, .lvde-hero .lvde-meta a { color: rgba(255,255,255,.82); }
.lvde-hero__item { min-height: 238px; }

.lvde-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 20px; }
.lvde-feature .lvde-thumb { aspect-ratio: 16 / 10; }
.lvde-feature__title { font-size: 25px; margin: 0 0 10px; }

/* ==========================================================================
   5. Articles
   ========================================================================== */
.lvde-article { background: var(--lvde-paper); padding: 28px 34px 34px; border-radius: var(--lvde-radius); }
.lvde-article__head { margin-bottom: 22px; }
.lvde-article__title {
  font-size: 38px; font-weight: 600; margin: 8px 0 14px; padding: 18px 22px; border: 2px solid var(--lvde-ink);
  border-left: 8px solid var(--lvde-red); line-height: 1.2;
}
.lvde-article__sub { font-size: 19px; color: #444; font-weight: 400; margin: 0 0 16px; line-height: 1.5; }
.lvde-article__meta { padding: 10px 0; border-top: 1px solid var(--lvde-line); border-bottom: 1px solid var(--lvde-line); }
.lvde-article__meta .lvde-meta { font-size: 13.5px; }
.lvde-author-avatar img { width: 28px; height: 28px; border-radius: 50%; }
.lvde-figure { margin: 0 0 24px; position: relative; }
.lvde-figure img { width: 100%; border-radius: var(--lvde-radius); }
.lvde-figure figcaption { font-size: 13px; color: var(--lvde-muted); padding: 8px 2px 0; font-style: italic; }

.lvde-entry { font-size: 17.5px; line-height: 1.8; color: #222; }
.lvde-entry > * { max-width: 100%; }
.lvde-entry h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.lvde-entry h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.lvde-entry a { color: var(--lvde-red); text-decoration: underline; text-underline-offset: 3px; }
.lvde-entry a:hover { color: var(--lvde-red-dark); }
.lvde-entry blockquote {
  margin: 1.8em 0; padding: 12px 24px; border-left: 5px solid var(--lvde-red); background: var(--lvde-soft);
  font-family: var(--lvde-font-title); font-size: 23px; line-height: 1.4; color: var(--lvde-ink);
}
.lvde-entry blockquote p:last-child { margin-bottom: 0; }
.lvde-entry img { border-radius: var(--lvde-radius); }
.lvde-entry table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 15px; }
.lvde-entry th, .lvde-entry td { border: 1px solid var(--lvde-line); padding: 8px 12px; text-align: left; }
.lvde-entry th { background: var(--lvde-soft); }
.lvde-entry .wp-block-image figcaption, .lvde-entry .wp-caption-text { font-size: 13px; color: var(--lvde-muted); text-align: center; }
.alignwide { max-width: 100%; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.lvde-pagelinks { margin: 24px 0; font-weight: 600; }
.lvde-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--lvde-line); }
.lvde-tags a { padding: 4px 12px; border: 1px solid var(--lvde-line); border-radius: 30px; font-size: 13px; color: var(--lvde-muted); }
.lvde-tags a:hover { background: var(--lvde-red); border-color: var(--lvde-red); color: #fff; }

.lvde-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.lvde-share__label { font-family: var(--lvde-font-title); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; margin-right: 4px; }
.lvde-share a, .lvde-share button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 30px; cursor: pointer;
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1;
}
.lvde-share svg { width: 15px; height: 15px; fill: currentColor; }
.lvde-share .is-whatsapp { background: #25d366; }
.lvde-share .is-linkedin { background: #0a66c2; }
.lvde-share .is-facebook { background: #1877f2; }
.lvde-share .is-x { background: #111; }
.lvde-share .is-copy { background: var(--lvde-muted); }
.lvde-share a:hover, .lvde-share button:hover { color: #fff; filter: brightness(1.1); }

.lvde-related { margin-top: 36px; }
.lvde-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.lvde-postnav a { display: block; padding: 14px 16px; background: var(--lvde-soft); border-left: 4px solid var(--lvde-red); border-radius: var(--lvde-radius); font-weight: 600; font-size: 14.5px; }
.lvde-postnav a:hover { background: #eaeaea; }
.lvde-postnav small { display: block; color: var(--lvde-muted); text-transform: uppercase; letter-spacing: .05em; font-family: var(--lvde-font-title); font-weight: 400; margin-bottom: 4px; }
.lvde-postnav .is-next { text-align: right; border-left: 0; border-right: 4px solid var(--lvde-red); }

/* ==========================================================================
   6. Archives, recherche, 404, pages
   ========================================================================== */
.lvde-archive-head { background: var(--lvde-paper); padding: 22px 26px; margin-bottom: 22px; border-left: 8px solid var(--lvde-red); border-radius: var(--lvde-radius); }
.lvde-archive-head h1 { margin: 0; font-size: 30px; text-transform: uppercase; }
.lvde-archive-head p { margin: 6px 0 0; color: var(--lvde-muted); }
.lvde-archive-body { background: var(--lvde-paper); padding: 22px; border-radius: var(--lvde-radius); }
.lvde-page { background: var(--lvde-paper); padding: 30px 34px; border-radius: var(--lvde-radius); }
.lvde-page__title { font-size: 36px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid var(--lvde-red); }

.lvde-pagination { margin-top: 28px; }
.lvde-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lvde-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--lvde-line); border-radius: var(--lvde-radius); font-weight: 600; color: var(--lvde-ink);
}
.lvde-pagination .page-numbers.current, .lvde-pagination .page-numbers:hover { background: var(--lvde-red); border-color: var(--lvde-red); color: #fff; }

.lvde-404 { text-align: center; padding: 60px 20px; background: var(--lvde-paper); border-radius: var(--lvde-radius); }
.lvde-404__code { font-family: var(--lvde-font-title); font-size: 120px; line-height: 1; color: var(--lvde-red); margin: 0; font-weight: 700; }
.lvde-404 .lvde-searchform { max-width: 480px; margin: 22px auto; }
.lvde-btn {
  display: inline-block; padding: 12px 26px; background: var(--lvde-red); color: #fff; border: 0; border-radius: var(--lvde-radius);
  font-family: var(--lvde-font-title); text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
}
.lvde-btn:hover { background: var(--lvde-red-dark); color: #fff; }

/* Commentaires */
.lvde-comments { margin-top: 36px; background: var(--lvde-paper); padding: 26px 34px; border-radius: var(--lvde-radius); }
.lvde-comments__title { font-size: 22px; text-transform: uppercase; border-bottom: 2px solid var(--lvde-ink); padding-bottom: 8px; }
.lvde-comments ol { list-style: none; padding: 0; margin: 0; }
.lvde-comments .children { padding-left: 28px; list-style: none; }
.lvde-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--lvde-line); }
.lvde-comments .comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.lvde-comments .comment-meta { font-size: 12.5px; color: var(--lvde-muted); margin-bottom: 8px; }
.lvde-comments .reply a { font-size: 13px; font-weight: 600; color: var(--lvde-red); }
.lvde-comments input[type="text"], .lvde-comments input[type="email"], .lvde-comments input[type="url"], .lvde-comments textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: var(--lvde-radius); background: #fff;
}
.lvde-comments input:focus, .lvde-comments textarea:focus { outline: 0; border-color: var(--lvde-red); }
.lvde-comments .submit { background: var(--lvde-red); color: #fff; border: 0; padding: 12px 26px; cursor: pointer; text-transform: uppercase; font-family: var(--lvde-font-title); letter-spacing: .05em; border-radius: var(--lvde-radius); }
.lvde-comments .submit:hover { background: var(--lvde-red-dark); }

/* ==========================================================================
   7. Widgets et colonne latérale
   ========================================================================== */
.widget { background: var(--lvde-paper); padding: 20px; margin-bottom: 26px; border-radius: var(--lvde-radius); overflow: hidden; }
.widget-title, .widget .wp-block-heading, .widget h2.wp-block-heading {
  font-size: 17px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 16px; padding: 0 0 8px; border-bottom: 2px solid var(--lvde-red); position: relative;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--lvde-line); }
.widget li:last-child { border-bottom: 0; }
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget .tagcloud a { font-size: 13px !important; padding: 3px 11px; border: 1px solid var(--lvde-line); border-radius: 30px; }
.widget .tagcloud a:hover { background: var(--lvde-red); color: #fff; border-color: var(--lvde-red); }
.widget img { border-radius: var(--lvde-radius); }
.widget--ad { padding: 0; background: transparent; }

/* ==========================================================================
   8. Pied de page
   ========================================================================== */
.lvde-footer { background: #151515; color: #cfcfcf; margin-top: 10px; border-top: 5px solid var(--lvde-red); }
.lvde-footer a { color: #e9e9e9; }
.lvde-footer a:hover { color: #fff; text-decoration: underline; }
.lvde-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 46px 20px 34px; }
.lvde-footer .widget { background: transparent; padding: 0; margin: 0 0 22px; border-radius: 0; color: #cfcfcf; }
.lvde-footer .widget-title, .lvde-footer .widget .wp-block-heading { color: #fff; border-bottom-color: #3a3a3a; }
.lvde-footer .widget li { border-bottom-color: #2c2c2c; }
.lvde-footer h1, .lvde-footer h2, .lvde-footer h3, .lvde-footer h4 { color: #fff; }
.lvde-footer__brand .custom-logo-link { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--lvde-radius); margin-bottom: 14px; }
.lvde-footer__brand img { max-width: 250px; }
.lvde-footer__brand p { font-size: 14.5px; }
.lvde-footer__contact { font-weight: 700; color: #fff; }
.lvde-footer .lvde-social a { background: rgba(255,255,255,.12); }
.lvde-footer form input[type="email"], .lvde-footer form input[type="text"] {
  width: 100%; padding: 11px 12px; border: 1px solid #3a3a3a; background: #202020; color: #fff; border-radius: var(--lvde-radius); margin-bottom: 8px;
}
.lvde-footer form input[type="submit"], .lvde-footer form button[type="submit"] {
  background: var(--lvde-red); border: 0; color: #fff; padding: 11px 22px; cursor: pointer; text-transform: uppercase; font-family: var(--lvde-font-title); letter-spacing: .05em; border-radius: var(--lvde-radius);
}
.lvde-footer__bar { border-top: 1px solid #2a2a2a; font-size: 13px; color: #9b9b9b; }
.lvde-footer__bar .lvde-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.lvde-footer__menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

.lvde-totop {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lvde-red); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s; z-index: 90; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.lvde-totop.is-visible { opacity: 1; visibility: visible; }
.lvde-totop:hover { background: var(--lvde-red-dark); transform: translateY(-3px); }
.lvde-totop svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .lvde-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
  .lvde-menu a { padding: 14px 11px; font-size: 14px; }
}

@media (max-width: 900px) {
  .lvde-masthead__inner { grid-template-columns: 1fr; gap: 14px; text-align: center; padding: 14px 20px; }
  .lvde-branding { align-items: center; }
  .lvde-promo { justify-content: center; }
  .lvde-nav { display: none; }
  .lvde-burger { display: inline-flex; }
  .lvde-navbar .lvde-wrap { justify-content: space-between; }
  .lvde-layout { grid-template-columns: minmax(0, 1fr); }
  .lvde-sidebar--sticky { position: static; }
  .lvde-hero { grid-template-columns: 1fr; }
  .lvde-hero__main { min-height: 380px; }
  .lvde-hero__item { min-height: 200px; }
  .lvde-feature { grid-template-columns: 1fr; }
  .lvde-footer__cols { grid-template-columns: 1fr; gap: 14px; padding-top: 34px; }
  .lvde-article { padding: 22px 20px 28px; }
  .lvde-article__title { font-size: 28px; padding: 14px 16px; }
}

@media (max-width: 640px) {
  .lvde-topbar__date { font-size: 12px; }
  .lvde-card-list { grid-template-columns: 112px 1fr; gap: 12px; }
  .lvde-card-list__title { font-size: 16.5px; }
  .lvde-card-list__excerpt { display: none; }
  .lvde-grid--2, .lvde-grid--3 { grid-template-columns: 1fr; }
  .lvde-hero__side { grid-template-columns: 1fr; grid-template-rows: none; }
  .lvde-hero__title { font-size: 23px; }
  .lvde-hero__main { min-height: 320px; }
  .lvde-section { padding: 16px; }
  .lvde-site-title { font-size: 26px; }
  .lvde-entry { font-size: 16.5px; }
  .lvde-entry blockquote { font-size: 19px; padding: 10px 16px; }
  .lvde-postnav { grid-template-columns: 1fr; }
  .lvde-page, .lvde-comments { padding: 20px; }
  .admin-bar .lvde-progress { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .lvde-topbar, .lvde-navbar, .lvde-sidebar, .lvde-footer, .lvde-share, .lvde-related, .lvde-comments, .lvde-promo, .lvde-progress, .lvde-totop { display: none !important; }
  .lvde-layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* Formulaire de recherche dans les colonnes latérales */
.widget .lvde-searchform button { padding: 0 14px; font-size: 13px; }
