/* ==========================================
   1. POLICES
   ========================================== */
@font-face {
  font-family: 'Antonio';
  src: url('./Font/Antonio-Regular.woff2') format('woff2');
  src: url('./Font/Antonio-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Advent Pro';
  src: url('./Font/AdventPro-Regular.woff2') format('woff2');
  src: url('./Font/AdventPro-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Pompiere';
  src: url('./Font/Pompiere-Regular.woff2') format('woff2');
  src: url('./Font/Pompiere-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Clicker Script';
  src: url('./Font/ClickerScript-Regular.woff2') format('woff2');
  src: url('./Font/ClickerScript-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tempus Sans ITC';
  src: url('./Font/TRTempusSansITC.woff2') format('woff2');
  src: url('./Font/TRTempusSansITC.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VTCGoblinHand';
  src: url('./Font/VTCGoblinHandBold.woff2') format('woff2');
  src: url('./Font/VTCGoblinHandBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: #fdf6f2;
  overflow-x: hidden;
}
/* --------------------
   HERO — valeurs identiques au CSS soutenir
   -------------------- */
.header-home {
  position: relative;
  /* pas de z-index : pas de contexte isolé */
}

.hero-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 600;
  overflow: visible;
  /* pas de z-index */
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-cloud {
  position: absolute;
  top: 15%;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2; /* ← 2, pas 3 */
}

.header-logo {
  display: none;
}

main {
  position: relative;
  z-index: 2; /* passe au-dessus du hero-cloud */
}
.bouton_soutenir {
  position: absolute; /* ← absolute, pas relative */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 15%;
  left: 65%;
  width: 25vw;
  min-width: 110px;
  max-width: 300px;
  aspect-ratio: 1.5 / 1;
  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.bouton_soutenir img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
}

.bouton_soutenir span {
  position: relative;
  z-index: 4;
  font-family: 'VTCGoblinHand';
  color: #7a441d;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
  font-size: clamp(0.7rem, 1.4vw, 1.5rem);
  margin-top: 5px;
}

.bouton_soutenir:visited,
.bouton_soutenir:hover,
.bouton_soutenir:active {
  text-decoration: none !important;
  color: #7a441d;
}

.bouton_soutenir:hover {
  transform: scale(1.1);
}

/* --------------------
   TITRE DE PAGE
   -------------------- */
.soutenir-title {
  text-align: center;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: 2rem;
  color: #8b5a2b;
  margin: -40px auto 40px;
  position: relative;
  z-index: 3; /* au-dessus du hero-cloud (2) */
}
.soutenir-title__keyword {
  display: block;
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #8b5a2b;
  opacity: 0.85;
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------
   GRILLE ANIMAUX
   -------------------- */
:root {
  --text: #7a4c35;
  --shadow-soft: 0 6px 14px rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  --radius: 18px;
}

.animal-grid {
  position: relative;
  z-index: 2;
  padding: 10px 8px 24px;
  margin-bottom: 40px;
}

.animal-grid__title {
  margin: 0 0 14px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.animal-grid__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding: 36px 8px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.animal-grid__list::-webkit-scrollbar {
  display: none;
}

.animal-card {
  --icon-size: clamp(62px, 18vw, 85px);
  --lift: 0.45;
  flex: 0 0 auto;
  position: relative;
  overflow: visible;
  min-width: clamp(75px, 20vw, 105px);
  background: var(--card-bg, #f3e2c8);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  padding-top: calc(var(--icon-size) * (1 - var(--lift)));
  padding-right: 6px;
  padding-left: 6px;
  padding-bottom: 10px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-decoration: none;
  color: #7a4c35;
}

.animal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.animal-card:focus-visible {
  outline: 3px solid rgba(122, 76, 53, 0.35);
  outline-offset: 3px;
}

.animal-card__iconWrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, calc(-1 * var(--icon-size) * var(--lift)));
  width: var(--icon-size);
  aspect-ratio: 1 / 1;
  background: transparent;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.animal-card__icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  max-width: none;
}

.animal-card__label {
  font-family: 'Pompiere';
  font-size: clamp(10px, 2.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
}

.stack-icon img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.stack-label {
  margin: 14px 0 0;
  font-family: 'Pompiere';
  line-height: 1.5;
  text-transform: uppercase;
  font-size: 1.3rem;
}

/* ==========================================
   ACTUALITÉS — BASE MOBILE
   ========================================== */
.actu-intro {
  padding: 0 16px 40px;
  text-align: center;
  /* pas de position/z-index */
}

.actu-text {
  font-family: 'Pompiere';
  font-size: 1.2rem;
  line-height: 1.6;
  color: #7a441d;
  max-width: 480px;
  margin: 0 auto 2rem;
  padding: 10px 20px;
  text-align: center;
}

.actu-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  align-items: start;
  justify-items: center;
  width: 100%;
  padding: 0.4rem 0 0;
}

.actu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #8a532c;
  min-width: 0;
}

.actu-item img {
  display: block;
  width: 95%;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.actu-item span {
  font-size: 0.65rem;
  line-height: 1.05;
  text-align: center;
  font-family: 'Pompiere';
}

.actu-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.actu-label {
  margin-bottom: 0.5rem;
}

.actu-label span {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  color: #6f472d;
  font-family: 'Pompiere', sans-serif;
}

.actu-label-events span {
  background: #fff8eb;
}
.actu-label-sales span {
  background: #ffe3b5;
}
.actu-label-works span {
  background: #efc89d;
}
.actu-label-adoption span {
  background: #eecfca;
}
.actu-label-news span {
  background: #c9d3ae;
}

.actu-card {
  background: #f8f3ed;
  border: 1px solid #d8cabb;
  border-radius: 14px;
  overflow: hidden;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.actu-card-image {
  margin: -0.8rem -0.8rem 0 -0.8rem;
  width: calc(100% + 1.6rem);
  flex-shrink: 0;
}

.actu-card-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.actu-card-content {
  padding-top: 0.9rem;
  width: 100%;
}

.actu-card-title {
  margin: 0 0 0.35rem;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: 1.3rem;
  line-height: 1.15;
  color: #6f472d;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.actu-card-date {
  font-family: 'Advent Pro';
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #8a6a52;
}

.actu-card-text {
  margin: 0 0 1rem;
  font-family: 'Advent Pro';
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6f472d;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.actu-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #6f472d;
  background: #fffaf5;
  border: 1px solid #d8cabb;
  border-radius: 999px;
  padding: 0.45rem 0.8rem 0.45rem 0.45rem;
  width: fit-content;
  align-self: flex-start;
}

.actu-card-link img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.actu-card-link span {
  font-family: 'Pompiere', sans-serif;
  font-size: 0.82rem;
  line-height: 1.2;
}

.actu-grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  padding: 40px 16px;
  /* pas de position/z-index */
}

.actu-card-small {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.actu-card-small .actu-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding-top: 0.9rem;
}

.actu-card-small .actu-card-title {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.actu-card-small .actu-card-text {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.actu-card-small .actu-card-link {
  margin-top: auto;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.actu-block-news {
  grid-column: 1 / -1;
}

.actu-card-news {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.actu-card-news .actu-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.9rem;
}

.actu-card-news .actu-card-title {
  margin: 0 0 0.6rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.actu-card-news .actu-card-link {
  margin-top: 1rem;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.actu-card-deco {
  display: none;
}

/* ==========================================
   TABLETTE (768px+)
   ========================================== */
@media (min-width: 768px) {
  .bouton_soutenir {
    top: 10%;
    left: 40%;
    width: 25vw;
  }

  .animal-grid {
    margin-bottom: 50px;
  }

  .animal-grid__list {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    gap: 10px;
    padding: 44px 16px 16px;
  }

  .animal-card {
    --icon-size: clamp(56px, 9vw, 76px);
    min-width: clamp(72px, 12vw, 100px);
    padding-right: 10px;
    padding-left: 10px;
  }

  .animal-card__label {
    font-size: clamp(11px, 1.8vw, 15px);
  }

  .actu-intro {
    padding: 0 24px 40px;
  }

  .actu-text {
    font-size: 1.2rem;
    max-width: 480px;
    margin: 0 auto 2rem;
  }

  .actu-categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    overflow: visible;
  }

  .actu-item {
    flex: 0 0 auto;
    width: 100px;
    min-width: 0;
  }

  .actu-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  .actu-item span {
    font-size: 0.8rem;
  }

  .actu-card {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .actu-card-image {
    margin: -1.5rem -1.5rem 0 -1.5rem;
    width: calc(100% + 3rem);
  }

  .actu-card-image img {
    height: 280px;
  }

  .actu-card-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .actu-card-text {
    padding-bottom: 1rem;
    font-size: 1rem;
  }

  .actu-card-link img {
    width: 38px;
    height: 38px;
  }

  .actu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2rem 3rem;
    align-items: stretch;
  }

  .actu-card-small {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .actu-card-small .actu-card-content {
    flex-grow: 1;
    padding-top: 0.9rem;
  }

  .actu-card-small .actu-card-title {
    text-align: center;
  }

  .actu-card-small .actu-card-text {
    flex-grow: 1;
    text-align: center;
  }

  .actu-card-small .actu-card-link {
    margin-top: auto;
    align-self: flex-start;
  }
}

/* ==========================================
   DESKTOP (1024px+)
   ========================================== */
@media (min-width: 1024px) {
  .header-logo {
    display: block;
    z-index: 20;
    pointer-events: auto;
  }

  .header-logo img {
    height: clamp(55px, 10vw, 80px);
    width: auto;
    display: block;
  }

  .bouton_soutenir {
    top: 15%;
    left: 72%;
    width: 18vw;
  }

  .soutenir-title {
    font-size: 2rem;
    margin: -120px auto 40px;
    position: relative;
    z-index: 4;
  }

  .animal-grid {
    margin-bottom: 60px;
  }

  .animal-grid__list {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: visible;
    gap: 16px;
    padding: 50px 20px 20px;
  }

  .animal-card {
    --icon-size: clamp(66px, 7vw, 90px);
    min-width: clamp(88px, 10vw, 120px);
    padding-right: 14px;
    padding-left: 14px;
  }

  .animal-card__label {
    font-size: clamp(12px, 1.4vw, 16px);
  }

  .actu-intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 40px;
  }

  .actu-text {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
  }

  .actu-categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
  }

  .actu-item {
    flex: 0 0 auto;
    width: 120px;
  }

  .actu-item img {
    width: 110px;
    height: 110px;
  }

  .actu-item span {
    font-size: 0.9rem;
  }

  .actu-block {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
  }

  .actu-card {
    flex-grow: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .actu-card-image {
    margin: -1.8rem -1.8rem 0 -1.8rem;
    width: calc(100% + 3.6rem);
  }

  .actu-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  .actu-card-content {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
  }

  .actu-card-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .actu-card-date {
    font-size: 0.95rem;
  }

  .actu-card-text {
    font-size: 1rem;
    flex-grow: 1;
    text-align: center;
  }

  .actu-card-link {
    margin-top: auto;
  }

  .actu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 2rem 4rem;
    align-items: stretch;
  }

  .actu-grid > .actu-block {
    display: flex;
    flex-direction: column;
  }

  .actu-card-small {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .actu-card-small .actu-card-content {
    flex-grow: 1;
    padding-top: 1.2rem;
  }

  .actu-card-small .actu-card-title {
   font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .actu-card-small .actu-card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
    text-align: center;
  }

  .actu-card-small .actu-card-link {
    margin-top: auto;
    align-self: flex-start;
  }

  .actu-card-news {
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    align-items: stretch;
    gap: 0;
  }

  .actu-card-news .actu-card-image {
    margin: -1.8rem 0 -1.8rem -1.8rem;
    width: auto;
    align-self: stretch;
  }

  .actu-card-news .actu-card-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 10px 0 0 10px;
  }

  .actu-card-news .actu-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.8rem;
  }

  .actu-card-news .actu-card-link {
    margin-top: 1.2rem;
  }

  .actu-card-deco {
    display: flex;
    align-items: flex-end;
    padding: 1rem 1rem 1rem 0;
  }

  .actu-card-deco img {
    width: 70px;
    height: auto;
    display: block;
  }
}