/* ==========================================
   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;
  background-color: #fff2f2;
}

/* --------------------
   NAVIGATION MOBILE
   -------------------- */
.nav {
  position: absolute;
  top: 0;
  left: 50px;
  width: 100%;
  z-index: 4;
}

.nav-links {
  position: fixed;
  top: 0;
  width: max-content;
  min-width: 50vw;
  max-width: 80vw;
  left: -100vw;
  height: 100vh;
  background: #fff5f0;
  list-style: none;
  padding: 0 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: left 0.4s ease;
  z-index: 6;
}

.nav-links a {
  font-family: 'Advent Pro', sans-serif;
  text-decoration: none;
  font-size: 1.6rem;
  color: #7a441d;
  list-style: none;
  padding-left: 20px;
  white-space: nowrap;
  margin: 0;
}

.nav-links.active {
  left: 0;
  z-index: 1000;
}

.nav-links li.nav-mobile-only {
  display: list-item;
}

.no-scroll {
  overflow: hidden;
}

.burger-menu {
  position: fixed;
  margin: 0;
  top: 50px;
  left: 20px;
  width: 40px;
  height: 40px;
  z-index: 100;
  background: #fdf6f2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px;
}

.burger-menu span {
  width: 100%;
  height: 4px;
  background: #8b5e3c;
  border-radius: 2px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------
   HERO
   -------------------- */
.header-home {
  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);
}

/* =========================
   INTRO + BADGE ANIMAL — MOBILE
   ✅ colonne unique : icône centrée puis texte en dessous
   ========================= */

.pensionnaires-intro {
  position: relative;
  z-index: 5;
  /* ✅ passe au-dessus du hero-cloud (z-index: 2) */
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 32px 16px 72px;

  /* ✅ MOBILE : 1 colonne, tout centré */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.animal-badge {
  display: flex;
  justify-content: center;
}

.animal-card {
  --icon-size: clamp(72px, 15vw, 80px);
  --lift: 0.45;

  margin-bottom: 20px;
  position: relative;
  overflow: visible;

  background: var(--card-bg, #f3e2c8);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);

  padding-top: calc(var(--icon-size) * (1 - var(--lift)));
  padding: calc(var(--icon-size) * (1 - var(--lift))) 20px 20px;

  display: grid;
  place-items: center;
  gap: 10px;

  text-decoration: none;
  color: #7a4c35;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.animal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.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(14px, 2.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
}

.animal-page {
  min-height: 120vh;
  position: relative;
  z-index: 2;
}

.animal-content {
  width: 100%;
  max-width: 680px;
  display: grid;
  justify-items: center;
  row-gap: 18px;
  padding: 0;
  box-sizing: border-box;
}

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

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

.animal-intro {
  margin: 0;
  width: min(100%, 340px);
  font-family: 'Pompiere', sans-serif;
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  line-height: 1.35;
  color: #8b5a2b;
  text-align: center;
}

/* ✅ MOBILE : les 3 images rectangulaires sont cachées */
.cochons-desktop {
  display: none;
}

.cochons-visuels__grid {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.cochons-visuels__photo {
  min-width: 0;
  overflow: hidden;
  background-color: #ffffff;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.cochons-visuels__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cochons-visuels__photo--1 {
  aspect-ratio: 3 / 2;
}

.cochons-visuels__photo--2 {
  aspect-ratio: 1 / 1;
}

.cochons-visuels__photo--3 {
  aspect-ratio: 1.45 / 1;
}

.cochons-flow {
  display: block;
}

.note-droite {
  display: none;
}

/* ---- Galerie photos ---- */
.galerie-photos {
  width: 100%;
  padding: 24px 16px;
}

.galerie-photos__container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.galerie-photos__item {
  width: 100%;
}

.galerie-photos__frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
  /* ✅ permet au timbre SVG de s'afficher */
  box-sizing: border-box;
}

.galerie-photos__item--simple .galerie-photos__frame {
  background-color: #ffffff;
  padding: 12px;
  max-width: 220px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  /* ✅ garde le crop uniquement sur les cadres simples */
}

.galerie-photos__item--simple .galerie-photos__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie-photos__frame--svg {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

.galerie-photos__inner-photo {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: auto;
  overflow: hidden;
  z-index: 1;
}

.galerie-photos__img--middle {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ Timbre SVG au-dessus de la photo */
.galerie-photos__decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.galerie-photos__item:nth-child(1) .galerie-photos__frame {
  transform: rotate(3deg);
}

.galerie-photos__item:nth-child(2) .galerie-photos__frame {
  transform: rotate(2deg);
}

.galerie-photos__item:nth-child(3) .galerie-photos__frame {
  transform: rotate(-3deg);
}

/* ---- Vie sanctuaire ---- */
.vie-sanctuaire {
  width: 100%;
  padding: 0 16px 32px;
  margin-top: 56px;
}

.vie-sanctuaire__box {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background-color: #fdf6f2;
  padding: 36px 24px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  z-index: 5;
}

.vie-sanctuaire__title {
  margin: 0 0 28px;
  text-align: center;
  font-family: 'Pompiere';
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5a24;
  position: relative;
  left: 40px;
}

.vie-sanctuaire__text {
  max-width: 260px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Advent Pro', sans-serif;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  line-height: 1.45;
  color: #2f2f2f;
}

.vie-sanctuaire__tape {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: auto;
}

/* ---- Photos superposées ---- */
.photos-superposees {
  width: 100%;
  padding: 40px 16px;
}

.photos-superposees__wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  min-height: 280px;
}

.photos-superposees__card {
  background-color: #ffffff;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.photos-superposees__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photos-superposees__card--verticale {
  width: 200px;
  aspect-ratio: 3 / 4.5;
  transform: rotate(2deg);
}

.photos-superposees__card--horizontale {
  position: absolute;
  right: 15px;
  bottom: -12px;
  width: 170px;
  aspect-ratio: 4 / 3;
  transform: rotate(-3deg);
}

/* ---- Ventes solidaires ---- */
.ventes-solidaires {
  width: 100%;
  padding: 0 16px 32px;
  margin-top: 48px;
}

.ventes-solidaires__box {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background-color: #fdf6f2;
  padding: 36px 24px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.ventes-solidaires__title {
  margin: 0 0 28px;
  text-align: center;
  font-family: 'Pompiere';
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  color: #9a5a24;
}

.ventes-solidaires__title-line {
  display: block;
}

.ventes-solidaires__title-line:first-child {
  margin-bottom: 10px;
}

.ventes-solidaires__text {
  max-width: 250px;
  margin: 0 auto;
  text-align: start;
  font-family: 'Advent Pro', sans-serif;
  font-size: clamp(1rem, 3.7vw, 1.15rem);
  line-height: 1.5;
  color: #2f2f2f;
}

.ventes-solidaires__tape {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: auto;
}

/* ---- Appel final ---- */
.appel-final {
  width: 100%;
  padding: 40px 16px 56px;
}

.appel-final__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
}

.appel-final__text {
  margin: 0;
  text-align: center;
  font-family: 'Pompiere';
  font-size: clamp(2rem, 6vw, 2.4rem);
  color: #9a5a24;
  line-height: 1.2;
}

.appel-final__icon {
  width: 160px;
  height: auto;
  display: block;
  opacity: 0.35;
  position: relative;
  left: 50px;
}

/* ==========================================
   TABLETTE >= 768px
   ✅ même disposition que mobile (icône + texte centrés)
   mais images plus grandes
   ========================================== */
@media (min-width: 768px) {
  .bouton_soutenir {
    top: 10%;
    left: 40%;
    width: 25vw;
  }

  /* ✅ TABLETTE : toujours colonne unique centré */
  .pensionnaires-intro {
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 80px;
  }

  .animal-badge {
    margin-left: 0;
  }

  .animal-card {
    --icon-size: clamp(72px, 18vw, 118px);
    --lift: 0.45;
    border-radius: 20px;
    padding-top: calc(var(--icon-size) * (1 - var(--lift)));
    padding-right: 45px;
    padding-left: 45px;
    padding-bottom: 25px;
  }

  /* ✅ Grille principale */
  .cochons-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px) minmax(0, 1fr);
    grid-template-areas:
      'rect   rect    rect'
      'vie    vie     vie'
      'ventes galerie droite'
      'basg   galerie droite'
      '.      .       note'
      '.      .       final';
    gap: clamp(18px, 3vw, 40px);
    align-items: start;
    padding-inline: 24px;
  }

  /* ✅ Images rectangulaires visibles sur tablette */
  .cochons-desktop {
    grid-area: rect;
    display: block;
    padding: 40px 0 0;
  }

  .vie-sanctuaire {
    grid-area: vie;
  }

  .ventes-solidaires {
    grid-area: ventes;
  }

  .galerie-photos {
    grid-area: galerie;
  }

  .appel-final {
    grid-area: final;
  }

  .galerie-photos {
    display: block;
    padding: 0;
    margin: 0;
  }

  .galerie-photos__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  /* ✅ Images galerie plus grandes sur tablette */
  .galerie-photos__item--simple .galerie-photos__frame {
    max-width: 180px;
    padding: 6px;
  }

  .galerie-photos__frame--svg {
    max-width: 300px;
  }

  .cochons-visuels__grid {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1fr);
    box-sizing: border-box;
    row-gap: 24px;
    column-gap: clamp(28px, 5vw, 70px);
    align-items: start;
    padding-right: 14px;
  }

  .cochons-visuels__photo--1 {
    max-width: 280px;
    margin-top: 220px;
  }

  .cochons-visuels__photo--2 {
    max-width: 180px;
    margin-top: 60px;
    justify-self: start;
    transform: translateX(-70px);
  }

  .cochons-visuels__photo--3 {
    max-width: clamp(190px, 28vw, 250px);
    justify-self: end;
    margin-top: 60px;
  }

  .cochons-visuels__img {
    max-width: 100%;
    height: 100%;
    display: block;
  }

  .vie-sanctuaire {
    margin-top: -250px;
    padding: 0 24px 32px;
  }

  .vie-sanctuaire__box {
    max-width: 360px;
    padding: 20px 18px 20px;
  }

  .vie-sanctuaire__title {
    font-size: clamp(1.4rem, 5vw, 1.5rem);
  }

  .vie-sanctuaire__text {
    max-width: 280px;
    font-size: clamp(0.8rem, 2.6vw, 0.92rem);
    line-height: 1.4;
  }

  .ventes-solidaires {
    padding: 0;
    margin: 0;
  }

  .ventes-solidaires__box {
    margin: 0;
    max-width: 340px;
    margin-left: 35px;
    position: relative;
    z-index: 3;
  }

  .ventes-solidaires__title {
    font-size: clamp(1.4rem, 5vw, 1.5rem);
  }

  .ventes-solidaires__text {
    max-width: 280px;
    font-size: clamp(0.8rem, 2.6vw, 0.92rem);
    line-height: 1.4;
  }

  .photos-superposees,
  .photos-superposees__wrapper {
    display: contents;
  }

  .photos-superposees__card--verticale {
    grid-area: basg;
    width: 100%;
    max-width: 420px;
    justify-self: start;
    margin-top: -80px;
    transform: translateX(35px);
    position: relative;
    z-index: 1;
  }

  .photos-superposees__card--horizontale {
    grid-area: droite;
    width: 100%;
    max-width: 550px;
    justify-self: end;
    position: relative;
    overflow: visible;
    margin-top: 70px;
  }

  .note-droite {
    display: block;
    grid-area: note;
    justify-self: end;
    align-self: start;
    width: min(450px, 100%);
    margin-top: -300px;
    margin-right: 14px;
  }

  .note-droite__box {
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    padding: 14px 18px;
  }

  .note-droite__tape {
    position: absolute;
    top: -25px;
    left: -45px;
    width: 95px;
    height: auto;
    transform: rotate(-6deg);
    pointer-events: none;
  }

  .note-droite__text {
    margin: 0;
    text-align: center;
    font-family: 'Advent Pro', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.35;
    color: #9a5a24;
  }

  .appel-final {
    margin-top: -120px;
    justify-self: end;
  }
}

/* ==========================================
   DESKTOP >= 1024px
   ✅ badge à gauche, texte à droite (2 colonnes)
   ========================================== */
@media (min-width: 1024px) {
  .bouton_soutenir {
    top: 15%;
    left: 72%;
    width: 18vw;
  }

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

  .nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: center;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    gap: 60px;
    background: transparent;
    padding: 24px 0;
    transition: none;
    left: auto;
  }

  .nav-links li.nav-mobile-only {
    display: none;
  }

  .burger-menu {
    display: none;
  }

  .menu-overlay {
    display: none;
  }

  /* ✅ DESKTOP : badge à gauche, titre + paragraphe à droite centrés */
  .pensionnaires-intro {
    flex-direction: row;
    align-items: center;
    margin-top: -80px;
    column-gap: 56px;
    padding: 48px clamp(24px, 5vw, 72px) 96px;
    text-align: center;
    justify-content: center;
  }

  .animal-badge {
    width: 200px;
    flex-shrink: 0;
  }

  .animal-content {
    padding-top: 0;
    justify-items: center;
    max-width: 600px;
  }

  .animal-title {
    font-size: 2rem;
    color: #8b5a2b;
    margin-bottom: 20px;
    text-align: center;
  }

  .animal-intro {
    width: min(100%, 480px);
    text-align: center;
  }

  .animal-card {
    --icon-size: 120px;
    --lift: 0.45;
    border-radius: 18px;
    padding-top: calc(var(--icon-size) * (1 - var(--lift)));
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 30px;
    width: 180px;
  }

  .cochons-desktop {
    display: block;
    padding: 50px 40px 0;
  }

  .cochons-visuels__grid {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    grid-template-areas: 'photo1 photo2 photo3';
    align-items: start;
    gap: clamp(20px, 3vw, 40px);
  }

  .cochons-visuels__photo--1 {
    max-width: 400px;
    margin-top: 290px;
  }

  .cochons-visuels__photo--2 {
    max-width: 240px;
    margin-top: 70px;
    transform: none;
    justify-self: center;
  }

  .cochons-visuels__photo--3 {
    width: 100%;
    max-width: 460px;
    margin-top: 70px;
  }

  .cochons-visuels__photo--3 .cochons-visuels__img {
    width: 100%;
    /* étire l'image dans le conteneur */
    height: auto;
    object-fit: cover;
    display: block;
    /* évite l'espace parasite sous l'image */
  }

  .vie-sanctuaire {
    margin-top: -300px;
    padding: 0 40px 32px;
  }

  .vie-sanctuaire__box {
    max-width: 500px;
    padding: 20px 24px 28px;
  }

  .vie-sanctuaire__text {
    max-width: 320px;
  }

  .cochons-flow {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr);
  }

  .galerie-photos {
    justify-self: center;
    align-self: start;
  }

  .galerie-photos__container {
    gap: 18px;
  }

  .galerie-photos__item--simple .galerie-photos__frame {
    max-width: 210px;
  }

  .galerie-photos__frame--svg {
    max-width: 450px;
  }

  .appel-final {
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
    padding-left: 40px;
  }

  .appel-final__link {
    align-items: center;
    max-width: 400px;
    width: 100%;
  }
}