:root {
  --container: 1200px;
  --content-padding: clamp(1rem, 5vw, 3rem);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;

  background-image: url("assets/img/nav-shape.svg"),
    url("assets/img/shape-footer.svg");
  background-position: top right, bottom left;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, auto;
}

body:not(.wp-admin) :where(.wp-block-post-title) {
  display: none;
}

body:not(.wp-admin) .spa-hero.alignfull {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Gutter uniquement sur la zone de contenu (pas sur le body) */
body:not(.wp-admin) .entry-content.wp-block-post-content {
  padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
}

/* Le hero alignfull ne doit pas être "paddé" */
body:not(.wp-admin) .entry-content.wp-block-post-content > .alignfull {
  margin-left: calc(clamp(1rem, 5vw, 3rem) * -1);
  margin-right: calc(clamp(1rem, 5vw, 3rem) * -1);
  width: auto;
}

body::selection {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* ========== NAVBAR STYLES ========== */

.site-header {
  font-family: var(--wp--preset--font-family--nunito-sans);
}

/* Top bar */
.top-bar {
  background: var(--wp--preset--color--onyx, #403f4c);
  color: #fff;
  font-size: 0.9rem;
}
.top-bar .container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--content-padding);
  padding-block: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-left: 0.5rem;
}
.top-bar .top-bar-right a:hover {
  opacity: 0.8;
}

p {
  font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1.125rem);
  color: var(--wp--preset--color--onyx);
}

/* Main nav */
.main-nav .container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--content-padding);
  padding-block: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-logo {
  width: 90px;
  height: 80px;
}

.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav .menu a {
  color: var(--wp--preset--color--dark, #2e2e2e);
  font-weight: 600;
  text-decoration: none;
}

.main-nav .menu a:hover {
  color: var(--wp--preset--color--secondary);
  font-weight: 700;
}

.main-nav .menu li {
  height: fit-content;
}

.main-nav .menu .current-menu-item {
  text-decoration: none;
  color: var(--wp--preset--color--dark, #2e2e2e);
  font-weight: 700;
  position: relative;
}

.main-nav .menu li:not(.donation-button).current-menu-item::after {
  content: "";
  position: absolute;
  background-color: var(--wp--preset--color--secondary);
  height: 2px;
  width: 50%;
  left: 25%;
  border-radius: 8px;
  bottom: -10%;
}

/* Cacher les sous-menus par défaut */
.main-nav .menu .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  z-index: 999;
}

.main-nav .menu > .menu-item {
  position: relative;
}

.main-nav .menu > .menu-item:hover > .sub-menu {
  display: block;
}

/* Ajouter un chevron à droite des items parents */
.main-nav .menu .menu-item-has-children > a,
.main-nav .menu .menu-item-has-children > span.menu-item-text {
  position: relative;
  padding-right: 20px; /* laisse de la place au chevron */
}

/* Chevron */
.main-nav .menu .menu-item-has-children > a::after,
.main-nav .menu .menu-item-has-children > span.menu-item-text::after {
  content: "\ea5f";
  font-family: "tabler-icons";
  font-size: 0.9rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* Rotation au hover */
.main-nav .menu .menu-item-has-children:hover > a::after,
.main-nav .menu .menu-item-has-children:hover > span.menu-item-text::after {
  transform: translateY(-50%) rotate(180deg);
}

.main-nav .menu .sub-menu a,
.main-nav .menu .sub-menu span.menu-item-text {
  display: block;
  padding: 8px 16px;
  color: var(--wp--preset--color--dark, #2e2e2e);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav .menu .sub-menu a:hover,
.main-nav .menu .sub-menu span.menu-item-text:hover {
  background: var(--wp--preset--color--light-gray);
}

.main-nav .menu .sub-menu .current-menu-item {
  color: var(--wp--preset--color--secondary) !important;
}

.main-nav .menu .sub-menu .current-menu-item::after {
  display: none;
}

/* ============================
   NAV MOBILE (burger + drawer)
   ============================ */

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--wp--preset--color--secondary);
  outline-offset: 3px;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--wp--preset--color--dark, #2e2e2e);
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 6px;
}

/* Overlay */
.nav-overlay {
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: 998;
  position: fixed;
  top: var(--header-h, 0px);
  left: 0;
  right: 0;
  bottom: 0;
}

.donation-button a,
.donation-button span {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--wp--preset--color--secondary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease-in-out;
  width: fit-content;
}

/* Hover */
.donation-button a:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--onyx) !important;
  transform: translateY(-2px);
  font-weight: 700;
}

/*--------------- FOOTER ----------------*/

/* Main nav */
.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--content-padding);
  padding-block: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
  margin-top: 10vh;
}

.container-left {
  display: flex;
  gap: 8vw;
}

.container-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.container-right nav {
  text-align: end;
}

.footer-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.site-footer #menu-footer,
.site-footer #menu-legal-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.site-footer #menu-footer .current-menu-item,
#menu-legal-menu .current-menu-item {
  font-weight: 800;
  color: var(--wp--preset--color--secondary);
}

.site-footer #menu-footer .menu-item a,
#menu-legal-menu .menu-item a {
  transition: all 0.2s ease;
}

.site-footer #menu-footer .menu-item:hover a,
#menu-legal-menu .menu-item:hover a {
  font-weight: 800;
  color: var(--wp--preset--color--primary);
}

.site-footer .footer-menu a {
  color: var(--wp--preset--color--dark, #2e2e2e);
  font-weight: 600;
  text-decoration: none;
}

p.credits {
  font-size: 0.85rem;
  color: var(--wp--preset--color--onyx);
  font-family: var(--wp--preset--font-family--titan-one);
}

/* Styles globaux */
h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  line-height: 1.2;
  position: relative;
  margin-top: 0;
}

h2::before {
  content: "";
  background-image: url("/wp-content/uploads/2025/11/Title-decor.svg");
  width: 80px;
  height: 60px;
  display: block;
  position: absolute;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  top: -58%;
  left: -50px;
}

/* Boutons Gutenberg & custom */
.wp-block-button.is-style-primary-button a {
  display: inline-block;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text);
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s ease-in-out;
  text-wrap: nowrap;
}

.wp-block-button.is-style-primary-button a i {
  margin-left: 5px;
  font-weight: 800;
}

.wp-block-button.is-style-primary-button a:hover {
  background: var(--wp--preset--color--secondary);
  color: #fff;
}

.btn-primary {
  display: inline-block;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text);
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  width: fit-content !important;
  text-wrap: nowrap;
}

.btn-primary i {
  margin-left: 5px;
  font-weight: 800;
}

.btn-primary:hover {
  background: var(--wp--preset--color--secondary);
  color: #fff;
}

.cta-contact {
  margin-top: 20px;
}

/* Image blob-mask */
.wp-block-image.is-style-blob-mask {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.wp-block-image.is-style-blob-mask img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url("/wp-content/themes/spa53-theme/assets/img/mask-img-shape.svg");
  mask-image: url("/wp-content/themes/spa53-theme/assets/img/mask-img-shape.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}
.wp-block-image.is-style-blob-mask::before {
  content: "";
  position: absolute;
  inset: -3%;
  background: var(--wp--preset--color--light-gray);
  z-index: -1;
  -webkit-mask-image: url("/wp-content/themes/spa53-theme/assets/img/shape-img.svg");
  mask-image: url("/wp-content/themes/spa53-theme/assets/img/shape-img.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  transform: translate(0, -5%);
}

/* --------------------------------------- SINGLE ANIMAL ------------------------------------------------ */
.animal-info-header {
  display: flex;
  gap: 50px;
  margin-top: 5vh;
}

.animal-media {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.animal-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: clamp(260px, 60vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.animal-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  padding: 0;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  background: #f5f5f5;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.animal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
  display: block;
  transition: transform 0.3s ease;
}
.animal-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.animal-thumb:hover::after {
  opacity: 0;
}
.animal-thumb:hover img {
  transform: scale(1.03);
}
.animal-thumb.is-active {
  border-color: var(--wp--preset--color--secondary, #4e878c);
  box-shadow: 0 0 0 2px rgba(78, 135, 140, 0.15);
}
.animal-thumb.is-active::after {
  background: none;
}
.animal-thumb:hover {
  transform: translateY(-1px);
}
.animal-thumb:focus-visible {
  outline: 2px solid var(--wp--preset--color--secondary, #4e878c);
  outline-offset: 2px;
}

.animal-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.animal-header h1 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  line-height: 1.2;
  position: relative;
  left: 2%;
  color: var(--wp--preset--color--text);
  margin: 0 !important;
}

.animal-meta {
  max-width: 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.animal-meta p {
  margin: 0;
}

.animal-meta p#breadcrumbs {
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1rem);
  margin: 0 !important;
}

.animal-details {
  display: flex;
  gap: 50px;
  margin-top: 10vh;
}

.animal-intro p {
  margin-block-end: 1em;
  font-size: medium;
}

.info-recap {
  background-color: var(--wp--preset--color--secondary);
  color: white;
  border-radius: 10px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 45vh;
}

.info-recap p {
  color: white !important;
  font-size: medium;
  margin: 0 !important;
}

.info-recap p strong {
  font-weight: 300;
  font-size: normal;
  font-family: var(--wp--preset--font-family--titan-one);
}
.info-recap h3 {
  color: white;
  text-align: center;
  font-size: 1.1rem;
  position: relative;
  margin-top: 0;
}
.info-recap h3::after {
  position: absolute;
  content: "";
  background-color: white;
  height: 3px;
  width: 40%;
  left: 30%;
  bottom: -50%;
}

.animal-story {
  width: 100%;
  margin-bottom: 15vh;
}
.animal-story p {
  margin-block-end: 1em;
}

.animal-header h1::before {
  content: "";
  background-image: url("/wp-content/uploads/2025/11/decor-animal-title.svg");
  width: 60px;
  height: 40px;
  display: block;
  position: absolute;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  top: -20%;
  left: -35px;
}

.animal-main {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.animal-main img {
  width: 33vw;
  height: 33vw;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
}

.chien-cat-section {
  background-color: var(--wp--preset--color--light-orange);
  border-radius: 10px;
  padding: 20px;
}
.chien-cat-section p {
  font-weight: bold;
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1rem);
}
.chien-cat-section i {
  font-weight: bold;
  font-size: clamp(1rem, 0.75vw + 0.8rem, 1.25rem);
  padding-right: 0.5rem;
  font-weight: normal;
}

.animal-compat {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  text-align: center;
  position: relative;
}

.compat-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.compat-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.compat-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.compat-icon:hover img {
  transform: scale(1.1);
}

.compat-status {
  position: absolute;
  display: block;
  z-index: 9;
  right: -5px;
  top: -5px;
  font-size: clamp(1rem, 0.75vw + 0.8rem, 1.25rem);
}
.compat-status i {
  font-weight: 800;
}
.compat-status i.ti-question-mark {
  color: var(--wp--preset--color--orange);
}
.compat-status i.ti-check {
  color: var(--wp--preset--color--secondary);
}
.compat-status i.ti-x {
  color: var(--wp--preset--color--red);
}

.info-container {
  display: flex;
  gap: 10px;
  font-weight: bold;
}

.icon-info .ti {
  font-weight: 600 !important;
  font-size: 24px;
}

.icon-info {
  position: relative;
}
.icon-info::before {
  content: "";
  position: absolute;
  left: -3px;
  z-index: -1;
  width: 20px;
  height: 20px;
  background-color: var(--wp--preset--color--light-green);
  border-radius: 50%;
}
.sex-male.icon-info::before {
  background-color: var(--wp--preset--color--light-cyan);
}
.sex-female.icon-info::before {
  background-color: var(--wp--preset--color--light-pink);
}

/* ============================
     PAGE DONATION
============================ */
.button-donation-link {
  transition: transform 0.2s ease;
}

.button-donation-link:hover {
  transform: translateY(-2%);
}

/* ============================
   RESPONSIVE GLOBAL
   ============================ */

/* 📱 Mobile / tablette (<= 900px) */
@media (max-width: 900px) {
  .wp-block-post-content {
    padding: 0 1em;
  }

  .wp-block-group-is-layout-flex {
    flex-direction: column;
  }

  /* Top bar : passer en colonne, éviter que ça se serre trop */
  .top-bar .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.8rem;
  }

  /* Nav principale : logo + menu qui respire et peut revenir à la ligne */
  .main-nav .container {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding-inline: 1.25rem;
    position: relative;
  }

  .main-nav .menu {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav .menu a {
    font-size: 0.9rem;
  }

  .custom-logo {
    width: 4em;
    height: auto;
  }

  /* Drawer navbar */
  .nav-toggle {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Cache le menu desktop */

  .main-nav .primary-menu {
    position: fixed;
    top: var(--header-h, 0px);
    left: 0;
    right: 0;
    width: 100vw;

    background: #fff;
    z-index: 999;

    /* état fermé */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;

    /* joli */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 200ms ease;

    padding: 0;
  }

  .main-nav .menu li.current-menu-item::after {
    display: none;
  }
  /* Menu en colonne */
  .main-nav .primary-menu .menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
  }

  .main-nav .primary-menu .menu > li:not(.donation-button) > a {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
  }

  .main-nav .primary-menu .menu > li > a:hover {
    background: var(--wp--preset--color--light-gray);
  }

  /* Sous-menus : en mobile on les affiche en flux (pas en absolute hover) */
  .main-nav .menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    padding: 0.25rem 0 0.75rem 0.75rem;
    margin: 0;
    min-width: unset;
  }

  .main-nav .menu > .menu-item:hover > .sub-menu {
    display: block;
  }

  .main-nav .menu .sub-menu a,
  .main-nav .menu .sub-menu span.menu-item-text {
    padding: 8px 12px;
    white-space: normal;
    border-radius: 8px;
  }

  /* Etat ouvert */
  body.nav-open .main-nav .primary-menu {
    max-height: fit-content;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    padding: 2rem 1rem;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
  }

  body.nav-open .nav-overlay[hidden] {
    display: block; /* on force l’affichage quand hidden est retiré côté JS */
  }

  /* Burger -> croix */
  body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Bloque le scroll quand menu ouvert */
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  /* FOOTER */

  .site-footer {
    align-items: stretch;
    gap: 2rem;
    padding-block: 1.25rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .site-footer .container-left {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .site-footer .container-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .site-footer .container-right nav {
    order: 1;
  }

  .site-footer .container-right .btn-primary {
    align-self: flex-end;
    order: 2;
  }

  .site-footer .footer-menu {
    width: 100%;
  }

  .site-footer #menu-footer,
  .site-footer #menu-legal-menu {
    gap: 0.5rem;
    padding: 0;
  }

  p.credits {
    text-align: center;
  }

  .wp-block-heading {
    margin-top: 0;
    padding-top: 0 !important;
  }

  h2 {
    padding-left: 0.8em !important;
  }

  /* h2 décorés : éviter que le décor parte trop à gauche */
  h2::before {
    left: -20px;
    top: -0.8em;
    width: 60px;
    height: 45px;
  }

  /* ---- Single animal ---- */

  .animal-info-header {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3vh;
  }

  .animal-header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .animal-header h1 {
    left: 2vw;
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    padding-left: 0.2rem;
    padding-top: 0.2rem;
  }

  .animal-header h1::before {
    width: 48px;
    height: 32px;
    left: -24px;
    top: -30%;
  }

  .animal-meta {
    max-width: 100%;
  }

  .animal-details {
    flex-direction: column;
    gap: 4rem;
    margin-top: 0;
    margin-bottom: 5vh;
  }

  .animal-intro p {
    font-size: 0.95rem;
  }

  .info-recap {
    height: auto;
    margin-top: 1rem;
  }

  .animal-story {
    margin-bottom: 2vh;
    order: 2;
  }

  /* Média : vignettes sous l'image (ta règle d'avant, améliorée) */
  .animal-media {
    grid-template-columns: 1fr;
  }

  .animal-main img {
    width: 100%;
    height: auto;
    max-height: 380px;
  }

  .animal-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    margin-top: 0.75rem;
  }

  .animal-thumb {
    flex: 0 0 72px;
    width: 72px;
  }

  /* Compat / recap etc. mieux adaptés */
  .chien-cat-section {
    padding: 16px;
  }

  .info-recap {
    padding: 20px 16px;
    order: 1;
  }

  .info-recap h3 {
    font-size: 1.1rem;
  }

  /* DONATION */

  .donation-block.wp-block-group.is-layout-flex {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem;
  }

  .donation-block .wp-block-group {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem;
  }

  /* optionnel : padding moins gros sur mobile */
  .donation-block.wp-block-group {
    padding-left: var(--wp--preset--spacing--l) !important;
    padding-right: var(--wp--preset--spacing--l) !important;
  }

  /* page contact */
  .maps-spa-iframe {
    width: 100%;
  }

  .frise-adoption {
    grid: initial;
  }
}

/* 🖥️ Desktop standard (>= 900px) */
@media (min-width: 901px) {
  .nav-overlay {
    display: none !important;
  }

  .animal-info-header {
    align-items: flex-start;
  }

  .animal-main img {
    width: clamp(320px, 28vw, 420px);
    height: clamp(320px, 28vw, 420px);
  }

  .animal-details {
    align-items: flex-start;
  }
}

/* 🖥️ Grands écrans (>= 1400px) */
@media (min-width: 1400px) {
  .animal-main img {
    width: clamp(360px, 24vw, 520px);
    height: clamp(360px, 24vw, 520px);
  }

  .animal-info-header {
    gap: 64px;
  }

  .animal-details {
    gap: 64px;
  }
}
