/* ============================================================
   AutoMania — main.css
   Design tokens → Reset → Layout → Header → Nav → Content
   → Sidebar → Footer → Archive → Single → Responsive
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --color-accent:    #e8a000;   /* jaune/or AutoMania          */
  --color-dark:      #111111;   /* noir texte principal        */
  --color-mid:       #444444;   /* gris foncé                  */
  --color-muted:     #777777;   /* méta, dates                 */
  --color-border:    #e5e5e5;   /* séparateurs                 */
  --color-bg:        #f7f7f7;   /* fond page                   */
  --color-bg-card:   #ffffff;   /* fond cartes                 */
  --color-link:      #111111;
  --color-link-hover:#e8a000;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius:    8px;
  --radius-sm: 4px;
  --gap:       24px;
  --max-w:     1200px;
  --content-w: 780px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; color: var(--color-dark); }
p { margin: 0 0 1em; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding: 32px 0 48px; }

/* Content + sidebar */
.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.content-area.full-width {
  grid-template-columns: 1fr;
}

/* ── Skip link (accessibilité) ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.site-branding .custom-logo {
  height: 40px;
  width: auto;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--color-dark);
}
.site-title a { color: inherit; }

/* Partenaire logo (Aramco…) */
.header-partner { display: flex; align-items: center; }
.header-partner img { height: 36px; width: auto; }

/* ── Navigation principale ────────────────────────────────── */
.main-navigation { display: flex; align-items: center; }

.main-navigation ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-navigation li { position: relative; }

.main-navigation a {
  display: block;
  padding: 6px 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-mid);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--color-accent);
  background: rgba(232,160,0,.08);
}

/* Sous-menus */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  min-width: 200px;
  z-index: 300;
  padding: 6px;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }

.main-navigation .sub-menu a {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

/* Switcher de langue — dropdown compact */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-mid);
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}

.lang-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
.lang-toggle img { width: 18px; height: auto; display: inline; }
.lang-toggle svg { transition: transform .2s; }
.lang-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 160px;
  z-index: 400;
  padding: 6px;
  list-style: none;
  margin: 0;
}

.lang-dropdown.is-open { display: block; }

.lang-dropdown li { margin: 0; }

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-mid);
  border-radius: var(--radius-sm);
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.lang-dropdown a:hover { background: var(--color-bg); color: var(--color-dark); }
.lang-dropdown .current-lang a { color: var(--color-accent); font-weight: 700; }
.lang-dropdown img { width: 18px; height: auto; }

/* Menu mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-dark);
}

.menu-toggle svg { width: 24px; height: 24px; display: block; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: .8rem;
  color: var(--color-muted);
}

.breadcrumb-wrap a { color: var(--color-muted); }
.breadcrumb-wrap a:hover { color: var(--color-accent); }
.breadcrumb-wrap .sep { margin: 0 6px; opacity: .5; }
.breadcrumb-wrap .current { color: var(--color-dark); }

/* ── Cards d'articles ─────────────────────────────────────── */
.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow .2s, transform .2s;
}

.post-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.post-card .card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg);
}

.post-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-card:hover .card-thumb img { transform: scale(1.04); }

.post-card .card-body { padding: 16px; }

.post-card .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.post-card .card-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--color-accent);
  padding: 2px 8px;
  border-radius: 999px;
}

.post-card h2, .post-card h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.post-card h2 a, .post-card h3 a { color: var(--color-dark); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--color-accent); }

.post-card .card-excerpt {
  font-size: .875rem;
  color: var(--color-mid);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Grille archive ───────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* ── Archive header ──────────────────────────────────────── */
.archive-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-accent);
}

.archive-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.archive-description {
  color: var(--color-mid);
  font-size: .95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-mid);
  transition: all .15s;
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.pagination .dots {
  border: none;
  background: none;
  width: auto;
  padding: 0 4px;
}

/* ── Single article ───────────────────────────────────────── */
.entry-header { margin-bottom: 24px; }

.entry-header .entry-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: 10px;
}

.entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .8rem;
  color: var(--color-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.entry-meta a { color: var(--color-muted); }
.entry-meta a:hover { color: var(--color-accent); }
.entry-meta .sep { opacity: .4; }

.entry-featured-image {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-featured-image img { width: 100%; height: auto; }
.entry-featured-image figcaption { font-size: .78rem; color: var(--color-muted); padding: 8px 0; }

/* Contenu article */
.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-mid);
}

.entry-content p { margin-bottom: 1.2em; }

.entry-content h2 {
  font-size: 1.35rem;
  margin: 1.8em 0 .6em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-dark);
}

.entry-content h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; color: var(--color-dark); }

.entry-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover { text-decoration: none; }

.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1em 0;
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-accent);
  background: rgba(232,160,0,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-mid);
  font-style: italic;
}

.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 1em;
  list-style: revert;
}

.entry-content li { margin-bottom: .4em; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: .9rem;
}

.entry-content th, .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-dark);
}

/* Tags */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.entry-tags a {
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-mid);
  transition: all .15s;
}

.entry-tags a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(232,160,0,.06);
}

/* Articles similaires */
.related-posts { margin-top: 48px; }
.related-posts h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.widget-area { display: flex; flex-direction: column; gap: 32px; }

.widget {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 20px;
}

.widget-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

/* Widget recent posts */
.widget .recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.widget .recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.widget .recent-post-item .thumb {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
}

.widget .recent-post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget .recent-post-item h4 {
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 4px;
}

.widget .recent-post-item h4 a { color: var(--color-dark); }
.widget .recent-post-item h4 a:hover { color: var(--color-accent); }

.widget .recent-post-item .date {
  font-size: .72rem;
  color: var(--color-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: .875rem;
  color: #999;
  transition: color .15s;
}
.footer-col ul a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #666;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr 260px; gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gap: 16px; }

  .header-partner { display: none; }
  .menu-toggle { display: flex; align-items: center; }

  .main-navigation {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--color-border);
    z-index: 199;
  }

  .main-navigation.is-open { display: flex; }

  .main-navigation ul {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .main-navigation a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .main-navigation .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    padding: 4px 0;
  }

  .content-area { grid-template-columns: 1fr; }
  .widget-area { order: -1; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

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

  .entry-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
}

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

.text-muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }




/* ============================================================
   HOMEPAGE — front-page.php
   ============================================================ */

.fp-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Hero ─────────────────────────────────────────────────── */
.fp-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3px;
  height: 460px;
  margin: 20px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.fp-hero__main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #1a1a1a center/cover no-repeat;
  min-height: 0;
}

.fp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}

.fp-hero__body { position: relative; padding: 28px; }

.fp-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: var(--color-accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-decoration: none;
}

.fp-badge--sec { background: var(--sec-color, var(--color-accent)); }

.fp-hero__title {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
}

.fp-hero__title a { color: #fff; }
.fp-hero__title a:hover { color: var(--color-accent); }
.fp-hero__exc { font-size: .88rem; color: rgba(255,255,255,.75); margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-hero__date { font-size: .75rem; color: rgba(255,255,255,.55); }

/* Articles secondaires hero */
.fp-hero__aside { display: flex; flex-direction: column; gap: 2px; background: #111; }

.fp-hero__item {
  flex: 1;
  display: flex;
  background: #181818;
  overflow: hidden;
  transition: background .15s;
  min-height: 0;
}

.fp-hero__item:hover { background: #222; }

.fp-hero__item-thumb { flex-shrink: 0; width: 100px; overflow: hidden; }
.fp-hero__item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fp-hero__item:hover .fp-hero__item-thumb img { transform: scale(1.06); }

.fp-hero__item-body { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.fp-hero__item-cat { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-accent); text-decoration: none; white-space: nowrap; }
.fp-hero__item-title { font-size: .82rem; line-height: 1.3; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fp-hero__item-title a { color: #e0e0e0; }
.fp-hero__item-title a:hover { color: var(--color-accent); }
.fp-hero__item-body time { font-size: .68rem; color: #555; }

/* ── Barre Actualités ─────────────────────────────────────── */
.fp-actu-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}

.fp-actu-bar__label {
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  white-space: nowrap;
  text-decoration: none;
}

.fp-actu-bar__item {
  flex: 1;
  min-width: 0;
  font-size: .78rem;
  color: #ccc;
  padding: 10px 14px;
  border-left: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .12s, background .12s;
  text-decoration: none;
}

.fp-actu-bar__item:hover { color: #fff; background: rgba(255,255,255,.06); }

.fp-actu-bar__more {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-accent);
  padding: 10px 14px;
  border-left: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  text-decoration: none;
}

.fp-actu-bar__more:hover { color: #fff; }

/* ── Body : sections + sidebar ───────────────────────────── */
.fp-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.fp-sections { display: flex; flex-direction: column; gap: 44px; }

/* ── Section rubrique ─────────────────────────────────────── */
.fp-section__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--sec-color, var(--color-accent));
  margin-bottom: 18px;
}

.fp-section__icon { font-size: 1.1rem; }

.fp-section__title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0;
  flex: 1;
}

.fp-section__title a { color: var(--color-dark); }
.fp-section__title a:hover { color: var(--sec-color, var(--color-accent)); }

.fp-section__more {
  font-size: .72rem;
  font-weight: 700;
  color: var(--sec-color, var(--color-accent));
  border: 1px solid var(--sec-color, var(--color-accent));
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.fp-section__more:hover { background: var(--sec-color, var(--color-accent)); color: #fff; }

.fp-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Article vedette */
.fp-feat { display: flex; flex-direction: column; }

.fp-feat__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg);
  margin-bottom: 12px;
}

.fp-feat__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.fp-feat:hover .fp-feat__thumb img { transform: scale(1.04); }

.fp-feat__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fp-feat__meta time { font-size: .72rem; color: var(--color-muted); }

.fp-feat__title { font-size: .95rem; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
.fp-feat__title a { color: var(--color-dark); }
.fp-feat__title a:hover { color: var(--color-accent); }

.fp-feat__exc { font-size: .83rem; color: var(--color-mid); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* Liste secondaire */
.fp-list { display: flex; flex-direction: column; border-left: 2px solid var(--sec-color, var(--color-border)); padding-left: 18px; }

.fp-list__item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.fp-list__item:first-child { padding-top: 0; }
.fp-list__item:last-child { border-bottom: none; padding-bottom: 0; }

.fp-list__thumb { flex-shrink: 0; width: 76px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-bg); }
.fp-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fp-list__item:hover .fp-list__thumb img { transform: scale(1.06); }

.fp-list__body { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.fp-list__title { font-size: .8rem; line-height: 1.3; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fp-list__title a { color: var(--color-dark); }
.fp-list__title a:hover { color: var(--color-accent); }
.fp-list__body time { font-size: .68rem; color: var(--color-muted); }

/* Sidebar */
.fp-sidebar .widget-area { display: flex; flex-direction: column; gap: 24px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fp-hero { grid-template-columns: 1fr 260px; }
  .fp-body { grid-template-columns: 1fr 250px; gap: 24px; }
  .fp-actu-bar__item:nth-child(n+5) { display: none; }
}

@media (max-width: 768px) {
  .fp-hero { grid-template-columns: 1fr; height: auto; }
  .fp-hero__aside { flex-direction: row; flex-wrap: wrap; }
  .fp-hero__item { flex: 0 0 calc(50% - 1px); flex-direction: column; }
  .fp-hero__item-thumb { width: 100%; height: 90px; }
  .fp-body { grid-template-columns: 1fr; }
  .fp-section__grid { grid-template-columns: 1fr; }
  .fp-list { border-left: none; padding-left: 0; border-top: 1px solid var(--color-border); padding-top: 12px; }
  .fp-actu-bar { display: none; }
  .fp-sidebar { order: -1; }
}

@media (max-width: 480px) {
  .fp-hero { margin: 8px 0 0; border-radius: var(--radius-sm); }
  .fp-hero__aside { display: none; }
  .fp-hero { grid-template-columns: 1fr; height: 300px; }
}


/* ── Homepage escape du .container si header non mis à jour ── */
.fp-main { padding: 0 !important; }

.fp-main .container,
main.fp-main > .container { 
  max-width: none !important; 
  padding: 0 !important; 
}

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

.fp-hero {
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  gap: 3px;
  height: 460px;
  margin: 20px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.fp-body {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.fp-section__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px;
}
