/*
Theme Name: Animo Editorial
Description: Habillage editorial d'Animoland, le magazine des animaux de compagnie et de la maison qui va avec.
Author: Animoland
Template: astra
Version: 1.0.0
Text Domain: animo-editorial
*/

:root {
  --animo-page: #fbfaf5;      /* creme chaud */
  --animo-paper: #ffffff;
  --animo-mint: #eef4e0;      /* fond de section vert pale */
  --animo-mint-deep: #e4eecf;
  --animo-ink: #2b2b2b;
  --animo-soft: #6c7064;
  --animo-green: #6f9a3f;     /* vert brand */
  --animo-green-deep: #567a2c;
  --animo-green-soft: #a1bc78;
  --animo-coral: #c75754;     /* accent secondaire unique */
  --animo-coral-deep: #ab4441;
  --animo-line: #e7e6dc;
  --animo-line-mint: #d6e3bd;
  --animo-r: 20px;
  --animo-r-sm: 14px;
}

html { overflow-x: hidden; }
body {
  background: var(--animo-page);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--animo-ink);
  font-size: 17px;
}
.animo-band-paper { background: var(--animo-paper); }

/* Nos gabarits pleine largeur (front-page, category) posent les sections
   directement dans .ast-container, que Astra met en display:flex. On repasse
   en block pour empiler verticalement. */
.home .ast-container,
.blog .ast-container,
.archive .ast-container,
.category .ast-container,
.search .ast-container { display: block; max-width: none; padding: 0; }

h1, h2, h3, h4,
.site-title, .site-title a {
  font-family: 'Baloo 2', system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.main-header-menu, .main-header-menu a { font-family: 'Nunito Sans', system-ui, sans-serif; }

h1, h2, h3 { color: var(--animo-ink); line-height: 1.12; }
p { line-height: 1.62; }
a { color: var(--animo-green-deep); transition: color .18s ease; }
a:hover { color: var(--animo-coral); }

.animo-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------- reveal on scroll ---------- */
/* Etat masque uniquement si JS actif (classe animo-js) : sans JS le contenu
   reste visible (robustesse + pas de contenu cache pour les crawlers). */
.animo-js .animo-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.animo-js .animo-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .animo-js .animo-reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- vagues organiques ---------- */
.animo-wave { display: block; width: 100%; height: 64px; line-height: 0; }
.animo-wave svg { display: block; width: 100%; height: 100%; }

/* ---------- header Astra restyle en pilules ---------- */
.ast-primary-header-bar {
  background: rgba(251, 250, 245, .92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--animo-line);
}
.site-title { font-size: 1.55rem !important; }
.site-title a, .site-title a:hover { color: var(--animo-green-deep); }
.main-header-menu { gap: 4px; }
.main-header-menu .menu-item > a {
  font-weight: 600;
  font-size: .98rem;
  padding: 8px 15px !important;
  border-radius: 999px;
  color: var(--animo-ink);
}
.main-header-menu .menu-item > a:hover { background: var(--animo-mint); color: var(--animo-green-deep); }
.main-header-menu .current-menu-item > a,
.main-header-menu .current-category-ancestor > a {
  background: var(--animo-green);
  color: #fff;
}

/* ---------- boutons ---------- */
.animo-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--animo-green);
  color: #fff !important;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(86,122,44,.7);
}
.animo-btn:hover { background: var(--animo-green-deep); color: #fff !important; transform: translateY(-1px); }
.animo-btn:active { transform: translateY(1px); }
.animo-btn--coral { background: var(--animo-coral); box-shadow: 0 10px 22px -12px rgba(171,68,65,.7); }
.animo-btn--coral:hover { background: var(--animo-coral-deep); }
.animo-btn--ghost {
  background: transparent;
  color: var(--animo-green-deep) !important;
  border: 2px solid var(--animo-line-mint);
  box-shadow: none;
}
.animo-btn--ghost:hover { background: var(--animo-mint); color: var(--animo-green-deep) !important; }

/* ---------- hero ---------- */
.animo-hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 58px 0 30px;
  position: relative;
}
.animo-hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--animo-coral);
  margin-bottom: 14px;
}
.animo-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  margin: 0 0 18px;
}
.animo-hero h1 em { font-style: normal; color: var(--animo-green); }
.animo-hero-lede {
  font-size: 1.14rem;
  color: var(--animo-soft);
  max-width: 32rem;
  margin: 0 0 26px;
}
.animo-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.animo-hero-pic { position: relative; }
.animo-hero-pic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px 32px 120px 32px;
  box-shadow: 0 40px 60px -34px rgba(86,122,44,.55);
}
.animo-hero-pic::after {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 128px; height: 128px;
  background: radial-gradient(circle at 30% 30%, var(--animo-green-soft), var(--animo-green));
  border-radius: 46% 54% 60% 40%;
  z-index: -1;
  opacity: .5;
}
.animo-hero-fallback {
  aspect-ratio: 16/11;
  border-radius: 32px 32px 120px 32px;
  background: linear-gradient(135deg, var(--animo-mint), var(--animo-green-soft));
}

/* ---------- marquee (unique sur la page) ---------- */
.animo-marquee {
  background: var(--animo-coral);
  color: #fff;
  overflow: hidden;
  padding: 13px 0;
  transform: rotate(-1.2deg);
  width: 104%;
  margin: 26px 0 40px -2%;
}
.animo-marquee__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: animo-scroll 34s linear infinite;
}
.animo-marquee__track span {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  padding: 0 26px;
  text-transform: uppercase;
}
.animo-marquee__track span::before { content: "•"; margin-right: 26px; color: rgba(255,255,255,.55); }
@keyframes animo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .animo-marquee__track { animation: none; } }

/* ---------- rubriques (bento asymetrique) ---------- */
.animo-section { padding: 22px 0 30px; }
.animo-section-head { margin-bottom: 26px; max-width: 40rem; }
.animo-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 8px; }
.animo-section-head p { color: var(--animo-soft); margin: 0; }

.animo-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.animo-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--animo-r);
  overflow: hidden;
  text-decoration: none;
  background: var(--animo-mint);
  grid-column: span 2;
}
.animo-tile--feature { grid-column: span 3; grid-row: span 2; }
.animo-tile--wide { grid-column: span 3; }
.animo-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.animo-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,43,43,0) 30%, rgba(43,43,43,.72) 100%);
  z-index: 1;
}
.animo-tile:hover img { transform: scale(1.05); }
.animo-tile-body { position: relative; z-index: 2; padding: 18px 20px; color: #fff; }
.animo-tile-body h3 { color: #fff; font-size: 1.16rem; margin: 0 0 3px; }
.animo-tile--feature .animo-tile-body h3 { font-size: 1.72rem; }
.animo-tile-body p { color: rgba(255,255,255,.9); font-size: .92rem; margin: 0; line-height: 1.45; }
.animo-tile-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--animo-coral);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 4px 11px;
  border-radius: 999px;
  position: absolute;
  top: 15px; left: 15px;
  z-index: 2;
}

/* ---------- derniers articles (grille de cartes) ---------- */
.animo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.animo-card {
  background: var(--animo-paper);
  border: 1px solid var(--animo-line);
  border-radius: var(--animo-r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.animo-card:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(43,43,43,.45); }
.animo-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.animo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.animo-card-body { padding: 17px 19px 21px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.animo-card-cat {
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--animo-coral);
  background: rgba(199,87,84,.09);
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.animo-card-body h3 { font-size: 1.14rem; line-height: 1.28; margin: 0; }
.animo-card-body h3 a { color: var(--animo-ink); text-decoration: none; }
.animo-card-body h3 a:hover { color: var(--animo-green-deep); }
.animo-card-body p { font-size: .93rem; color: var(--animo-soft); margin: 0; }
.animo-card-date { font-size: .8rem; color: var(--animo-soft); margin-top: auto; }
.animo-card--noimg { border-top: 4px solid var(--animo-green-soft); }
.animo-card--noimg .animo-card-body { padding-top: 19px; }
.animo-recents-more { text-align: center; margin-top: 34px; }

/* ---------- bande heritage (grand mot outline) ---------- */
.animo-heritage {
  position: relative;
  background: var(--animo-mint);
  overflow: hidden;
  padding: 60px 0 66px;
}
.animo-heritage-ghost {
  position: absolute;
  bottom: -18px; right: -10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(111,154,63,.22);
  text-stroke: 2px rgba(111,154,63,.22);
  pointer-events: none;
  user-select: none;
  margin: 0;
}
.animo-heritage-copy { position: relative; z-index: 1; max-width: 40rem; }
.animo-heritage-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 14px; }
.animo-heritage-copy p { color: var(--animo-ink); margin: 0 0 22px; }

/* ---------- hubs de rubrique ---------- */
.animo-cat-head { padding: 46px 0 8px; max-width: 44rem; }
.animo-cat-head .animo-hero-eyebrow { color: var(--animo-green); }
.animo-cat-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 12px; }
.animo-cat-desc { color: var(--animo-soft); font-size: 1.08rem; }
.animo-cat-visuel { margin: 26px 0 10px; }
.animo-cat-visuel img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--animo-r); }
.animo-cat-list { padding: 22px 0 40px; }
.animo-empty {
  background: var(--animo-mint);
  border-radius: var(--animo-r);
  padding: 40px 34px;
  color: var(--animo-soft);
}
.animo-pagination { margin-top: 36px; text-align: center; }
.animo-pagination .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  margin: 0 3px;
  border-radius: 999px;
  border: 1px solid var(--animo-line);
  background: var(--animo-paper);
  color: var(--animo-ink);
  text-decoration: none;
  font-weight: 600;
}
.animo-pagination .current { background: var(--animo-green); border-color: var(--animo-green); color: #fff; }

.animo-otherrubs { padding: 8px 0 60px; }
.animo-otherrubs h2 { font-size: 1.35rem; margin: 0 0 14px; }
.animo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.animo-chips a {
  display: inline-block;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--animo-paper);
  border: 1px solid var(--animo-line-mint);
  color: var(--animo-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
}
.animo-chips a:hover { background: var(--animo-green); border-color: var(--animo-green); color: #fff; }

/* ---------- single article (habillage leger) ---------- */
.single-post .entry-content a { color: var(--animo-green-deep); }
.single-post .entry-content a:hover { color: var(--animo-coral); }
.single-post .entry-content blockquote {
  border-left: 4px solid var(--animo-green);
  background: var(--animo-mint);
  border-radius: 0 var(--animo-r-sm) var(--animo-r-sm) 0;
  padding: 4px 22px;
}

/* ---------- footer ---------- */
.animo-footer { background: #232323; color: #cfd0c8; margin-top: 20px; padding: 56px 0 28px; }
.animo-footer a { color: #cfd0c8; text-decoration: none; }
.animo-footer a:hover { color: #fff; }
.animo-footer-cols {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.animo-footer-brand strong { font-family: 'Baloo 2', sans-serif; font-size: 1.4rem; color: #fff; }
.animo-footer-brand p { font-size: .95rem; line-height: 1.6; margin-top: 10px; max-width: 27rem; color: #a9aaa0; }
.animo-footer-cols h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.animo-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.animo-footer-cols li { margin-bottom: 9px; font-size: .93rem; }
.animo-footer-fin {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; font-size: .85rem; color: #8a8b81;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .animo-hero { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 18px; }
  .animo-hero-pic { order: -1; }
  .animo-tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .animo-tile, .animo-tile--feature, .animo-tile--wide { grid-column: span 1; grid-row: span 1; }
  .animo-tile--feature { grid-column: span 2; }
  .animo-cards { grid-template-columns: 1fr; }
  .animo-footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .animo-heritage-ghost { font-size: 5rem; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .animo-tiles { grid-auto-rows: 180px; }
}
