/* Scerutti — styles globaux */

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

html {
  scroll-behavior: auto; /* Lenis gère le scroll doux */
  scrollbar-color: var(--wp--preset--color--rouge, #da5241) var(--wp--preset--color--arriere-plan, #f9f8ea);
  scrollbar-width: auto;
}

/* Barre de défilement — rouge corpo sur fond jaune clair corpo */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--wp--preset--color--arriere-plan, #f9f8ea);
}

::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--rouge, #da5241);
  border: 2px solid var(--wp--preset--color--arriere-plan, #f9f8ea);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wp--preset--color--noir, #260e0c);
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

p {
  text-wrap: balance;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Blog — bandeau journal */
body.scerutti-blog-page {
  background-color: var(--wp--preset--color--arriere-plan, #f9f8ea) !important;
  background-image: url("/wp-content/themes/scerutti/assets/fond-journal.png") !important;
  background-repeat: no-repeat !important;
  background-position: center 120px !important;
  background-size: 100% auto !important;
}

.blog-hero {
  --blog-hero-gris: #828282;
  --blog-hero-creme: #f6f2e8;

  position: relative;
  width: 100%;
  background: transparent;
  font-family: "PPMonumentCondensed", sans-serif;
  font-weight: 400;
  font-size: clamp(6px, 1.05vw, 18px);
  color: var(--blog-hero-gris);
  padding: clamp(3rem, 9%, 9rem) 0 1.5%;
  overflow: hidden;
}

.blog-hero *,
.blog-hero *::before,
.blog-hero *::after { font-weight: 400; }

.blog-hero__inner {
  position: relative;
  margin: 0 5%;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.blog-hero__rule {
  width: 100%;
  height: 0.25em;
  background: var(--blog-hero-gris);
}

.blog-hero__inner > .blog-hero__rule:first-child {
  height: 0.5em;
}

.blog-hero__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  margin: 0.05em 0;
}

.blog-hero__side {
  font-size: 4em;
  letter-spacing: 0.02em;
  line-height: 1;
}

.blog-hero__side--left  { text-align: left;  padding-left: 0.4em;  }
.blog-hero__side--right { text-align: right; padding-right: 0.4em; }

.blog-hero__pill {
  display: block;
  line-height: 0;
}

.blog-hero__pill img {
  display: block;
  height: 4.4em;
  width: auto;
  transform: translateY(0.12em); /* compense l'espace vide en bas du viewBox SVG */
}

.blog-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.25em;
  letter-spacing: 0.04em;
  padding: 0 0.6em;
}

.blog-hero__strap {
  margin-top: 0.1em;
  background: var(--blog-hero-gris);
  color: var(--blog-hero-creme);
  text-align: center;
  font-size: 1.25em;
  letter-spacing: 0.55em;
  padding: 0.15em 0 0.12em;
  text-indent: 0.55em;
}

/* Blog — articles (mise en page magazine) */
.blog-articles {
  --blog-articles-rouge: var(--wp--preset--color--rouge, #da5241);
  --blog-articles-noir: var(--wp--preset--color--noir, #260e0c);
  --blog-articles-gris: #828282;

  background: transparent;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.blog-articles__inner {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-articles__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.blog-articles__featured {
  display: contents;
}

.blog-articles__featured-body {
  display: flex;
  flex-direction: column;
}

.blog-articles__second {
  display: flex;
  flex-direction: column;
}

.blog-articles__thumb {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
}

.blog-articles__thumb--hero {
  aspect-ratio: 4 / 5;
  margin: 0;
}

.blog-articles__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-articles__img--placeholder {
  background: var(--blog-articles-gris);
  aspect-ratio: 4 / 3;
}

.blog-articles__thumb--hero .blog-articles__img--placeholder {
  aspect-ratio: 4 / 5;
}

.blog-articles__title {
  font-family: "PPMonumentCondensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blog-articles-rouge);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2vw, 1.875rem);
}

.blog-articles__title--lg {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}

.blog-articles__title a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.blog-articles__title a:hover {
  color: var(--blog-articles-noir);
}

.blog-articles__excerpt {
  color: var(--blog-articles-noir);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.blog-articles__divider {
  height: 4px;
  background: var(--blog-articles-gris);
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.blog-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.blog-articles__card {
  display: flex;
  flex-direction: column;
}

.blog-articles__card .blog-articles__thumb {
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .blog-articles__top {
    grid-template-columns: 1fr;
  }
  .blog-articles__featured {
    display: flex;
    flex-direction: column;
  }
  .blog-articles__grid {
    grid-template-columns: 1fr;
  }
}
