@font-face {
  font-family: 'DoctorGlitch';
  src: url('../fonts/Doctor_Glitch.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #f5f5f5;
  --red: #cc0000;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  cursor: default;
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: 'DoctorGlitch', sans-serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 0.95;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.4s;
  position: relative;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  margin-top: 28px;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.35);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}

/* ─── DIVIDER ─── */
.divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
  margin: 0 auto;
}

/* ─── GRID SECTION ─── */
.grid-section {
  background-color: var(--white);
  padding: 80px 40px;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.35);
  text-align: center;
  margin-bottom: 48px;
}

.animals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── ANIMAL CARD (homepage + suggestions) ─── */
.animal-card,
.suggestion-card {
  aspect-ratio: 1;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.animal-card::after,
.suggestion-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.animal-card:hover,
.suggestion-card:hover {
  background-color: var(--white);
  transform: scale(0.98);
}

.animal-card:hover::after,
.suggestion-card:hover::after {
  border-color: var(--black);
}

.animal-card:hover .animal-icon,
.suggestion-card:hover .suggestion-icon {
  filter: invert(1);
}

.animal-icon,
.suggestion-icon {
  width: 55%;
  height: 55%;
  object-fit: contain;
  filter: invert(0);
  transition: filter 0.25s ease;
}

/* ─── SUGGESTIONS GRID ─── */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

/* ─── CTA SECTION (homepage) ─── */
.cta-section {
  background-color: var(--black);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-line {
  width: 40px;
  height: 1px;
  background-color: rgba(255,255,255,0.2);
}

.cta-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.3);
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  cursor: pointer;
  background: transparent;
}

.cta-button:hover {
  background-color: var(--white);
  color: var(--black);
}

/* ─── FOOTER ─── */
footer,
.site-footer {
  background-color: var(--black);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.3);
  text-align: center;
}

.footer-text a {
  color: rgba(245,245,245,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,245,245,0.2);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 0.9; transform: translateY(0); }
}

/* ─── HEADER ─── */
    .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, transparent 100%);
    }

    .header-logo {
    font-family: 'DoctorGlitch', sans-serif;
    font-size: 1rem;
    color: rgba(245,245,245,0.7);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    }

    .header-logo:hover {
    color: var(--white);
    }

/* ─── ANIMAL HERO ─── */
.animal-hero {
  min-height: 40vh;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  gap: 16px;
  
}

.animal-hero-icon {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: invert(0);
  opacity: 0;
  animation: fadeDown 0.8s ease forwards 0.3s;
}

.animal-title {
  font-family: 'DoctorGlitch', sans-serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.1;
  text-align: center;
  color: var(--white);
  text-transform: uppercase;
  max-width: 800px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.animal-title::before,
.animal-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0; right: 0; top: 0;
  opacity: 0;
  font-family: 'DoctorGlitch', sans-serif;
  text-transform: uppercase;
}

.animal-title::before {
  animation: glitch-top 6s ease-in-out 1.2s 1;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}

.animal-title::after {
  animation: glitch-bottom 6s ease-in-out 1.2s 1;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

/* ─── SECTIONS CONTENU ─── */
.content-section {
  padding: 72px 40px;
}

.content-white {
  background-color: var(--white);
  color: var(--black);
}

.content-black {
  background-color: var(--black);
  color: var(--white);
}

.content-inner {
  max-width: 680px;
  margin: 0 auto;
}

.content-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 24px;
}

.content-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  font-weight: 300;
}

/* ─── CTA DISCRET (pages animal) ─── */
.cta-animal {
  display: flex;
  justify-content: center;
  padding: 48px 40px;
}

.cta-button-discreet {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.6);
  border-bottom: 1px solid rgba(245,245,245,0.3);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.cta-button-discreet:hover {
  color: rgba(245, 245, 245, 0.822);
  border-color: rgba(245,245,245,0.3);
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .animals-grid,
  .suggestions-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    min-height: 50vh;
    padding: 100px 24px 60px;
  }

  .grid-section {
    padding: 60px 24px;
  }

  .cta-section {
    padding: 60px 24px;
  }

  .content-section {
    padding: 48px 24px;
  }
}


/* ─── ALL-CARD — page toutes-les-questions ─── */

.all-card {
  aspect-ratio: 1;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.all-card img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  filter: invert(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.all-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.all-card-overlay span {
  font-family: 'DoctorGlitch', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  line-height: 1.4;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.all-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.all-card:hover img {
  opacity: 0.08;
  transform: scale(0.88);
}

.all-card:hover .all-card-overlay {
  opacity: 1;
}

.all-card:hover::after {
  border-color: rgba(255,255,255,0.12);
}

.all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.all-section {
  background-color: var(--white);
  padding: 72px 40px;
}

.all-hero {
  min-height: 40vh;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  gap: 16px;
}

.all-hero-title {
  font-family: 'DoctorGlitch', sans-serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  text-align: center;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.3s;
}

.final-section {
  background-color: var(--black);
  padding: 100px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-question {
  max-width: 640px;
  text-align: center;
  font-family: 'DoctorGlitch', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.2s;
}

/* Mobile toutes-questions */
@media (max-width: 600px) {
  .all-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }

  .all-card {
    aspect-ratio: unset;
    flex-direction: column;
    padding: 28px 16px;
    overflow: visible;
  }

  .all-card img {
    width: 80px;
    height: 80px;
    opacity: 1 !important;
    transform: none !important;
  }

  .all-card-overlay {
    position: static;
    opacity: 1 !important;
    background: transparent;
    padding: 12px 0 0;
  }

  .all-card-overlay span {
    color: rgba(245,245,245,0.6);
  }

  .all-card::after {
    display: none;
  }

  .all-section {
    padding: 48px 24px;
  }

  .final-section {
    padding: 72px 24px;
  }

  .all-hero {
    padding: 80px 24px 40px;
  }
}