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

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

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

@font-face {
  font-family: 'Clicker Script';
  src: url('./Font/ClickerScript-Regular.woff2') format('woff2'),
    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'),
    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'),
    url('./Font/VTCGoblinHandBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* --------------------
   HERO
   -------------------- */
.header-home {
  min-height: 40vh;
  z-index: 3;
}

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

.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;
}

.header-logo {
  display: none;
}

.bouton_soutenir {
  position: absolute;
  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);
}

/* --------------------
   PAGE PENSIONNAIRES
   -------------------- */
.nos-pensionnaires-page {
  min-height: 100vh;
}

.pensionnaires-intro {
  padding: 20px 32px 30px;
  margin-top: -120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.soutenir-title {
  text-align: center;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: 2rem;
  color: #8b5a2b;
  margin: 0 auto 40px;
}

.soutenir-intro {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px 24px;
  font-family: 'Pompiere', sans-serif;
  font-size: 1.2rem;
  color: #7a441d;
}

.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 60px;
}

.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;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding: 36px 8px 12px;
  gap: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.animal-card {
  --icon-size: clamp(70px, 20vw, 95px);
  --lift: 0.45;

  flex: 0 0 auto;
  position: relative;
  overflow: visible;
  min-width: clamp(85px, 22vw, 115px);

  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;
}

/* --------------------
   SECTION SOUTENIR
   -------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 189px);
  grid-template-rows: auto 348px;
}

.stack-card {
  display: grid;
  place-items: center;
  width: 189px;
  height: 348px;
  border-radius: 20px;
  text-decoration: none;
  color: #8b5a2b;
  border: 1px solid rgba(139, 90, 43, 0.18);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  outline: none;
}

.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;
}

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

  .animal-grid__list {
    gap: 10px;
    padding: 44px 16px 16px;
    justify-content: center;
  }

  .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);
  }

  .card-grid {
    grid-template-columns: repeat(3, 189px);
    grid-template-rows: auto;
    gap: 10px;
  }

  .soutenir-intro {
    font-size: 1.3rem;
    max-width: 500px;
    margin: 20px auto;
  }

  .stack-card {
    width: 189px;
    height: 348px;
  }
}

/* ==========================================
   DESKTOP >= 1024px
   ========================================== */
@media (min-width: 1024px) {
  .bouton_soutenir {
    top: 15%;
    left: 72%;
    width: 18vw;
  }

  .header-logo {
    display: block;
    z-index: 20;
    pointer-events: auto;
  }

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

  .nos-pensionnaires-page {
    min-height: 120vh;
  }

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

  .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);
  }

  .card-grid {
    grid-template-columns: repeat(3, 305px);
    gap: 10px;
  }

  .stack-card {
    width: 305px;
    height: 580px;
  }

  .stack-icon img {
    width: 78%;
  }

  .stack-label {
    font-size: 2rem;
  }

  .soutenir-intro {
    font-size: 1.4rem;
  }
}
