/* us-car-57.fr — homepage. Source de vérité : DESIGN.md du projet.
   Direction « Deux tons, grand chrome » : crème papier + vert épinéa sombre,
   rouge feu-arrière en dose courte, cinq/six couleurs de rubrique en aplat,
   Saira Condensed 800 / Spectral / IBM Plex Mono.
   Zéro CSS inline dans page-home.php. Tout est scopé sous .usc-home. */

/* ---------- neutraliser l'habillage Blocksy sur ce template ---------- */
.page-template-page-home .entry-header,
.page-template-page-home .page-header,
.page-template-page-home .ct-page-title,
.page-template-page-home .ct-breadcrumbs { display: none !important; }
.page-template-page-home .site-main,
.page-template-page-home .entry-content,
.page-template-page-home .ct-container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.page-template-page-home #main-container { padding: 0 !important; }

/* ---------- canevas ---------- */
.usc-home {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.usc-home * { box-sizing: border-box; }
.usc-home p { margin: 0; }
.usc-home img { display: block; max-width: 100%; }
.usc-home a { color: var(--accent); text-decoration: none; }
.usc-home :where(h1, h2, h3) { margin: 0; } /* reset spécificité 0 : chaque composant peut poser sa marge */
.usc-home h1, .usc-home h2, .usc-home h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: inherit; /* la couleur vient du contexte de section (hero/bande sombre = bone, sinon encre) */
  line-height: 1.02;
  text-wrap: balance;
}

.usc-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1040px) { .usc-wrap { padding-inline: 40px; } }

.usc-home .usc-kicker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.usc-home .usc-kicker--light { color: rgba(247, 241, 228, 0.6); }

/* étiquette rubrique */
.usc-home .usc-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone);
  background: var(--r-divers);
  padding: 3px 9px;
  border-radius: var(--radius);
}
.usc-tag--modeles        { background: var(--r-modeles); }
.usc-tag--histoire       { background: var(--r-histoire); }
.usc-tag--restauration   { background: var(--r-restauration); }
.usc-tag--achat          { background: var(--r-achat); }
.usc-tag--rassemblements { background: var(--r-rassemblements); }
.usc-tag--divers         { background: var(--r-divers); }

/* bouton */
.usc-home .usc-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone);
  background: var(--accent);
  padding: 12px 22px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  transition: background 120ms var(--ease), transform 120ms var(--ease);
}
.usc-home .usc-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.usc-home .usc-btn:active { transform: translateY(1px); }
.usc-home .usc-btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.usc-home .usc-btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(247, 241, 228, 0.55);
}
.usc-home .usc-btn--ghost:hover { background: rgba(247, 241, 228, 0.1); border-color: var(--bone); }

.usc-home .usc-readmore {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.usc-home .usc-readmore:hover { color: var(--accent-hover); }

/* ============ 1. HERO « plaque » ============ */
.usc-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--dark);
  color: var(--bone);
}
.usc-hero__panel {
  padding: 56px 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.usc-hero__rule {
  display: block;
  width: 92px;
  height: 4px;
  border-top: 1px solid rgba(247, 241, 228, 0.7);
  border-bottom: 1px solid rgba(247, 241, 228, 0.7);
}
.usc-hero__title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bone);
  letter-spacing: 0.005em;
}
.usc-hero__title a { color: inherit; }
.usc-hero__title a:hover { color: var(--accent); }
.usc-hero__standfirst {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  color: rgba(247, 241, 228, 0.86);
  max-width: 46ch;
}
.usc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.usc-hero__media {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}
@media (min-width: 900px) {
  .usc-hero { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .usc-hero__panel { padding: 72px 56px 64px; gap: 22px; justify-content: center; }
  .usc-hero__media { min-height: 520px; border-left: 2px solid var(--ink); }
}

/* ============ 2. DERNIERS ARTICLES (grille asymétrique) ============ */
.usc-une { max-width: var(--wrap); margin-inline: auto; padding: 64px 24px; }
@media (min-width: 1040px) { .usc-une { padding-inline: 40px; } }
.usc-une__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 28px;
}
.usc-une__head .usc-kicker { display: block; }
.usc-une__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) {
  .usc-une__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; }
}
.usc-lead__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-bottom: 16px;
}
.usc-lead .usc-tag { margin-bottom: 10px; }
.usc-lead__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.usc-lead__title a { color: var(--ink); }
.usc-lead__title a:hover { color: var(--accent); }
.usc-lead__deck { font-size: 16px; color: var(--ink-soft); line-height: 1.55; }
.usc-stack { display: flex; flex-direction: column; }
.usc-stack__soon { font-size: 15px; color: var(--ink-soft); font-style: italic; }

/* primitif « ligne d'article » */
.usc-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.usc-row:first-child { padding-top: 0; }
.usc-row__thumb img { width: 84px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.usc-row__body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.usc-row__meta time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.usc-row__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.12;
  text-transform: uppercase;
  transition: transform 120ms var(--ease);
}
.usc-row__title a { color: var(--ink); }
.usc-row:hover .usc-row__title { transform: translateX(4px); }
.usc-row:hover .usc-row__title a { color: var(--accent); }
.usc-row__deck { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

@media (max-width: 560px) {
  .usc-row { grid-template-columns: 1fr; }
  .usc-row__thumb { display: none; }
}

/* ============ 3. UNE SECTION PAR CATÉGORIE (panneau couleur alterné) ============ */
.usc-cat {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .usc-cat { grid-template-columns: minmax(340px, 0.92fr) 1.4fr; align-items: stretch; }
  .usc-cat--even .usc-cat__panel { order: 2; }
}
/* pas d'article publié : la section = le panneau couleur seul, pleine largeur */
.usc-cat--empty { grid-template-columns: 1fr; }
/* panneau couleur */
.usc-cat__panel {
  position: relative;
  overflow: hidden;
  padding: 48px 28px 44px;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
@media (min-width: 900px) {
  .usc-cat__panel { padding: 64px 44px; justify-content: center; min-height: 340px; }
  .usc-cat--empty .usc-cat__panel { min-height: 300px; }
}
.usc-cat--modeles        .usc-cat__panel { background: var(--r-modeles); }
.usc-cat--histoire       .usc-cat__panel { background: var(--r-histoire); }
.usc-cat--restauration   .usc-cat__panel { background: var(--r-restauration); }
.usc-cat--achat          .usc-cat__panel { background: var(--r-achat); }
.usc-cat--rassemblements .usc-cat__panel { background: var(--r-rassemblements); }
.usc-cat__index {
  position: absolute;
  top: 4px;
  right: 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: 0.8;
  color: rgba(247, 241, 228, 0.16);
  pointer-events: none;
}
.usc-cat__title {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--bone);
}
.usc-cat__desc {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(247, 241, 228, 0.9);
  max-width: 44ch;
}
.usc-cat__link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone);
  border-bottom: 2px solid rgba(247, 241, 228, 0.5);
  padding-bottom: 2px;
  transition: border-color 120ms var(--ease);
}
.usc-cat__link:hover { border-bottom-color: var(--bone); }
/* colonne articles */
.usc-cat__posts {
  background: var(--surface);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) { .usc-cat__posts { padding: 48px 44px; } }
.usc-cat__post {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.usc-cat__post:first-child { padding-top: 0; }
.usc-cat__post:last-child { border-bottom: 0; padding-bottom: 0; }
.usc-cat__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-bottom: 12px;
}
.usc-cat__meta time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.usc-cat__posttitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.12;
  text-transform: uppercase;
  margin-top: 4px;
  transition: transform 120ms var(--ease);
}
.usc-cat__post--lead .usc-cat__posttitle { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.usc-cat__posttitle a { color: var(--ink); }
.usc-cat__post:hover .usc-cat__posttitle { transform: translateX(4px); }
.usc-cat__post:hover .usc-cat__posttitle a { color: var(--accent); }
.usc-cat__postdeck {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 6px;
}
.usc-cat__soon {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 241, 228, 0.7);
  margin-top: 2px;
}

/* ============ 4. À PROPOS DU BLOG (panneau sombre, marque « 57 ») ============ */
.usc-about { background: var(--dark); color: var(--bone); }
.usc-about__inner {
  position: relative;
  overflow: hidden;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 72px 24px 80px;
}
@media (min-width: 1040px) { .usc-about__inner { padding-inline: 40px; } }
.usc-about__mark {
  position: absolute;
  right: 8px;
  top: -24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(9rem, 24vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgba(216, 65, 42, 0.16);
  pointer-events: none;
}
.usc-about__title {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  color: var(--bone);
  max-width: 22ch;
  margin-bottom: 20px;
}
.usc-about__body {
  position: relative;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(247, 241, 228, 0.82);
  max-width: 56ch;
}

/* (le pied de page maison .usc-footer est stylé dans header.css — chargé sur tout le site) */

/* ============ MOTION REDUITE ============ */
@media (prefers-reduced-motion: reduce) {
  .usc-home * { transition: none !important; }
}
