/* =========================================================
   ALLO NATUREL — PAGES CONSEILS
   CSS réservé à /conseils et aux fiches articles
   ========================================================= */

.an-advice-page,
.an-article-page {
  --an-article-green: #07574f;
  --an-article-orange: #ff9b43;
  --an-article-line: #ded8ce;
  --an-article-soft: #f5f2ec;
  width: 100%;
  background: #fff;
  color: var(--an-article-green);
  font-family: "Geist", Arial, sans-serif;
}

.an-advice-page__container,
.an-article-page__container {
  width: min(1580px, calc(100% - 70px));
  margin: 0 auto;
}

.an-advice-page {
  padding: 70px 0 100px;
}

.an-advice-page__header {
  max-width: 850px;
  margin-bottom: 56px;
}

.an-advice-page__eyebrow,
.an-article-page__eyebrow,
.an-article-products__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--an-article-green);
}

.an-advice-page__eyebrow span,
.an-article-page__eyebrow span,
.an-article-products__eyebrow span {
  width: 20px;
  height: 1px;
  background: #86aaa5;
}

.an-advice-page__header h1,
.an-article-page__header h1,
.an-article-products h2 {
  margin: 0;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--an-article-green);
}

.an-advice-page__header h1 {
  max-width: 850px;
  font-size: clamp(58px, 5vw, 82px);
  line-height: .95;
}

.an-advice-page__header > p {
  max-width: 720px;
  margin: 25px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: #58716d;
}

.an-advice-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 28px;
}

.an-advice-list-card {
  min-width: 0;
}

.an-advice-list-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--an-article-soft);
}

.an-advice-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.an-advice-list-card:hover .an-advice-list-card__media img {
  transform: scale(1.025);
}

.an-advice-list-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f2ec, #e7efed);
}

.an-advice-list-card__badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--an-article-green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
}

.an-advice-list-card__body {
  padding-top: 17px;
}

.an-advice-list-card h2 {
  min-height: 52px;
  margin: 0 0 14px;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.03;
}

.an-advice-list-card h2 a,
.an-advice-list-card__footer a {
  color: var(--an-article-green) !important;
  text-decoration: none !important;
}

.an-advice-list-card__body > p {
  min-height: 64px;
  margin: 0 0 21px;
  font-size: 13px;
  line-height: 1.6;
  color: #58716d;
}

.an-advice-list-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--an-article-line);
  font-size: 11px;
}

.an-advice-list-card__footer > span {
  color: #829793;
}

.an-advice-list-card__footer a {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.an-advice-page__empty {
  padding: 50px 0;
  color: #78918d;
}

/* ARTICLE */

.an-article-page {
  padding: 45px 0 100px;
}

.an-article-page__container {
  max-width: 1280px;
}

.an-article-page__back,
.an-article-page__footer a {
  display: inline-flex;
  margin-bottom: 50px;
  color: var(--an-article-green) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
}

.an-article-page__header {
  max-width: 980px;
  margin: 0 auto 45px;
  text-align: center;
}

.an-article-page__eyebrow {
  justify-content: center;
}

.an-article-page__header h1 {
  font-size: clamp(56px, 5.5vw, 92px);
  line-height: .93;
}

.an-article-page__lead {
  max-width: 770px;
  margin: 28px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: #58716d;
}

.an-article-page__read {
  margin-top: 19px;
  font-size: 12px;
  color: #829793;
}

.an-article-page__hero {
  width: 100%;
  margin: 0 0 55px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--an-article-soft);
}

.an-article-page__hero img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.an-article-page__content {
  width: min(820px, 100%);
  margin: 0 auto;
  font-family: "Geist", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #244d48;
}

.an-article-page__content h2,
.an-article-page__content h3 {
  margin: 45px 0 18px;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--an-article-green);
}

.an-article-page__content h2 { font-size: 40px; line-height: 1; }
.an-article-page__content h3 { font-size: 30px; line-height: 1.05; }
.an-article-page__content a { color: var(--an-article-green); text-decoration: underline; }
.an-article-page__content img { max-width: 100%; height: auto; border-radius: 12px; }

.an-article-products {
  margin-top: 80px;
  padding-top: 52px;
  border-top: 1px solid var(--an-article-line);
}

.an-article-products h2 {
  margin-bottom: 35px;
  font-size: 48px;
  line-height: .95;
}

.an-article-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.an-article-product {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--an-article-line);
  border-radius: 16px;
}

.an-article-product__image {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-article-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.an-article-product h3 {
  margin: 15px 0 9px;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
}

.an-article-product h3 a,
.an-article-product__link {
  color: var(--an-article-green) !important;
  text-decoration: none !important;
}

.an-article-product p {
  min-height: 42px;
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #78918d;
}

.an-article-product strong {
  display: block;
  margin-bottom: 15px;
  font-size: 15px;
  color: var(--an-article-green);
}

.an-article-product__link {
  font-size: 12px;
  font-weight: 600;
}

.an-article-page__footer {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--an-article-line);
}

.an-article-page__footer a {
  margin: 0;
}

@media (max-width: 1199px) {
  .an-advice-page__container,
  .an-article-page__container {
    width: calc(100% - 50px);
  }

  .an-advice-page__grid,
  .an-article-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .an-advice-page,
  .an-article-page {
    padding: 48px 0 70px;
  }

  .an-advice-page__container,
  .an-article-page__container {
    width: calc(100% - 36px);
  }

  .an-advice-page__header h1,
  .an-article-page__header h1 {
    font-size: 50px;
  }

  .an-advice-page__grid,
  .an-article-products__grid {
    grid-template-columns: 1fr;
  }

  .an-advice-list-card__body > p,
  .an-advice-list-card h2 {
    min-height: 0;
  }

  .an-article-page__header {
    text-align: left;
  }

  .an-article-page__eyebrow {
    justify-content: flex-start;
  }

  .an-article-page__lead {
    font-size: 16px;
  }

  .an-article-page__content {
    font-size: 16px;
    line-height: 1.72;
  }

  .an-article-page__content h2 { font-size: 34px; }
  .an-article-page__content h3 { font-size: 27px; }

  .an-article-products h2 {
    font-size: 39px;
  }
}

/* ACCESSIBILITÉ */

.an-advice-list-card h2 a:focus-visible,
.an-advice-list-card__footer a:focus-visible,
.an-article-page__back:focus-visible,
.an-article-page__content a:focus-visible,
.an-article-product h3 a:focus-visible,
.an-article-product__link:focus-visible,
.an-article-page__footer a:focus-visible {
  outline: 2px solid var(--an-article-orange);
  outline-offset: 3px;
}

