/* =========================================================
   PORTÉES.CSS
   1) ROOT / COMMUN
   2) INDEX DES PORTÉES
   3) PAGE DÉTAIL D'UNE PORTÉE
   ========================================================= */


/* =========================================================
   1) ROOT / COMMUN
   ========================================================= */

.portees-page.portees-article-layout {
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.portees-page .portees-article {
  order: 1;
  min-width: 0;
}

.portees-page .side-panel,
.portees-page .portees-aside {
  order: 2;
  flex: 0 0 250px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;

  position: sticky;
  top: 160px;
  align-self: flex-start;
}



 .portees-article-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
}

.portees-article-layout .side-panel {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.portees-article {
  flex: 1 1 840px;
  min-width: 0;
  max-width: 840px;
}

.portees-article-header {
  margin-bottom: 36px;
}

.portees-article h1,
.portees-article h2,
.portees-article h3,
.portees-article h4 
 {
 font-family: var(--font-title); 
}


.portees-article h1 {
  margin-bottom: .8rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.portees-article h2 {
  margin-bottom: .4em;
  color: var(--corail);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.25;
}

.portees-article h3 {
  margin-bottom: .4em;
  color: var(--corail);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.portees-article h4 {
  margin-bottom: .35em;
  color: var(--corail);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.05;
}







.parent-photo {
  position: relative;
  display: block;
  width: 150px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.parent-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.parent-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  margin: 0;
  padding: .45rem .35rem;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .55),
    rgba(0, 0, 0, 0)
  );

  color: #fff;
  text-align: center;
  font-size: .95rem;
  font-style: italic;
  line-height: 1.1;
}


.portee-read-more {
  font-size: .95rem;
  font-weight: 300;
  text-decoration: underline;
  color: var(--copper);
  margin-left: 12px;
}

.portee-read-more:hover {
  text-decoration: underline;
  color: var(--copper-light);
  background-color: var(--turquoise-pale);
}

@media (max-width: 760px) {
  .portees-page .portees-article,
  .portees-page .side-panel,
  .portees-page .portees-aside {
    width: 100%;
  }
}


/* =========================================================
   2) INDEX DES PORTÉES
   ========================================================= */

.litter-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
}

.litter-card .blog-card-content,
.portee-content {
  min-width: 0;
  text-align: center;
}

.litter-card .blog-card-content h2,
.portee-content h2 {
  margin-top: 0;
}

.portees-menu {
  background: #fff;
  border: 1px solid rgba(44, 190, 195, .35);
  border-left: 6px solid var(--turquoise);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.portees-menu h2,
.portees-menu h2 a {
  margin: 0 0 1rem;
  font-size: 2rem;
  color: var(--corail);
}

.portees-menu h3,
.portees-menu h3 a {
  margin: 1.2rem 0 .5rem;
  font-size: 1.25rem;
  color: var(--corail);
}

.portees-menu h2 a:hover,
.portees-menu h3 a:hover {
 background: var(--turquoise-pale);
  color: var(--copper);
   transition: color .2s ease, background .2s ease, transform .2s ease;
    padding: .35rem .75rem;
  border-radius: 999px;
  font-weight: 500;
}





.portees-menu.is-active {
  background: var(--blog-mint);
  color: var(--blog-copper);
}







.portees-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portees-menu li {
  padding-left: 24px;
  margin: .45rem 0;
  background: url("/assets/img/logo/patte-corail.svg") no-repeat left .3em;
  background-size: 14px 14px;
}

.portees-menu li + li {
  margin-top: .35rem;
}



.portees-menu a {
  color: var(--turquoise-dark);
  text-decoration: none;
}

.portees-menu a:hover,
.portees-menu a.is-active {
 
  background: var(--turquoise-pale);
  color: var(--copper);
   transition: color .2s ease, background .2s ease, transform .2s ease;
    padding: .35rem .75rem;
  border-radius: 999px;
  font-weight: 500;

}

@media (max-width: 760px) {
  .litter-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .litter-card .blog-card-content,
  .portee-content {
    order: 2;
  }

  .litter-card .parent-photo:first-child {
    order: 1;
  }

  .litter-card .parent-photo:last-child {
    order: 3;
  }

  .parent-photo img {
    width: 100%;
    max-width: 240px;
    max-height: 260px;
  }
}


/* =========================================================
   3) PAGE DÉTAIL D'UNE PORTÉE
   ========================================================= */

.litter-content-section {
  max-width: 96%;
  margin: 0 auto;
}

.litter-header {
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 20px;
  border: 2px solid var(--turquoise);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.litter-framed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border: 1px solid #15898e;
  border-radius: 22px;
  padding: 12px;
  background: var(--turquoise-pale);
}

.litter-parents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.litter-parents-grid h2 {
  color: var(--corail);
}

.litter-split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-entry {
  display: grid;
  grid-template-rows: auto minmax(120px, auto) auto auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: var(--white);
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.litter-split-grid .parent-entry {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.litter-split-grid .parent-entry h4,
.litter-split-grid .parent-entry > p,
.litter-split-grid .parent-entry > .btn,
.litter-split-grid .parent-entry .photo-wrapper {
  grid-column: 1;
  grid-row: auto;
}

.litter-split-grid .parent-entry h4 {
  text-align: center;
}

.litter-split-grid .parent-entry .photo-wrapper {
  position: relative;
  width: 80%;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}

.litter-split-grid .parent-entry .photo-wrapper .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: .45rem .35rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .55),
    rgba(0, 0, 0, 0)
  );
  color: #fff;
  text-align: center;
  font-size: .95rem;
  font-style: italic;
  line-height: 1.1;
}

.litter-split-grid .parent-entry .full-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--linen);
  border: 1px solid var(--line);
}

.litter-split-grid .parent-entry .btn {
  justify-self: center;
}

.litter-band-title {
  margin: 12px 0;
  padding: 8px 18px;
  color: var(--ink);
  background: var(--coral-soft);
  text-align: center;
}

.litter-band-title.i {
  background: var(--corail);
}

.kittens-stack {
  display: grid;
  gap: 1.4rem;
  margin: 2rem 1rem;
  
}

.kitten-card{
    display:grid;
    grid-template-columns:82px 1fr;
    gap:1.4rem;
    align-items:start;

    padding:1.5rem;
    background:var(--white);
    border:1px solid rgba(44,190,195,.35);
    border-radius:22px;
    box-shadow:var(--shadow);
}

.kitten-card.no-thumbs {
    grid-template-columns: 1fr;
}

.kitten-info h4{
    margin:0 0 .4rem;
}

.kitten-intro{
    margin:0;
}

.kitten-description{
    margin:0;
    line-height:1.75;
}


.kitten-thumbs-wrap {
  --thumb-size: 64px;
  --thumb-gap: 10px;

  width: 72px;
  align-self: start;
}

.kitten-thumbs {
  height: calc((var(--thumb-size) * 5) + (var(--thumb-gap) * 4));
  overflow-y: hidden;

  display: flex;
  flex-direction: column;
  gap: var(--thumb-gap);
}
.kitten-thumbs button {
  flex: 0 0 var(--thumb-size);
  width: 72px;
  height: var(--thumb-size);
  padding: 0;
  overflow: hidden;
}

.kitten-thumbs img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}

.thumb-arrow {
  width: 100%;
  border: 1px solid rgba(44,190,195,.35);
  border-radius: 999px;
  background: var(--white);
  color: var(--corail);
  cursor: pointer;
  line-height: 1;
  padding: .25rem 0;
}

.thumb-arrow:hover {
  background: var(--turquoise-pale);
}



.kitten-gallery {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: start;
}




.kitten-main-photo,
.kitten-description {
    margin: 0;
}

.kitten-main-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
}

.kitten-main-photo video{
    display:block;
    width:100%;
    max-height:420px;
    border-radius:18px;
    object-fit:cover;
}

.kittens-litter-grid {
  margin-top: 22px;
  align-items: start;
}

.kitten-block {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 18px 14px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.kitten-block + .kitten-block {
  margin-top: 0;
}

.kitten-block h2,
.kitten-block h4 {
  margin: 0;
  color: var(--corail);
  text-align: left;
}
.kitten-content {
  display: grid;
  gap: 1rem;
  align-content: start;
}


.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mosaic.two {
  grid-template-columns: repeat(2, 1fr);
}

.mosaic .tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4.6;
}

.kitten-slider {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 44px 38px;
}

.slider-viewport {
  overflow: hidden;
  border: 2px solid var(--turquoise);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--linen);
}

.slider-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}

@media (max-width: 840px) {
  .litter-content-section {
    max-width: 100%;
  }

  .litter-framed-grid,
  .litter-split-grid {
    grid-template-columns: 1fr;
  }

  .litter-split-grid .parent-entry .photo-wrapper {
  position: relative;
  width: 80%;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}
}

.portees-aside-toggle {
  display: none;
}

.portees-aside-toggle .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 840px) {
  .portees-article-layout {
    position: relative;
    width: min(calc(100% - 24px), 760px);
    margin-inline: auto;
    flex-direction: column;
    gap: 1rem;
  }

  .portees-article {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }

  .portees-page .side-panel,
  .portees-page .portees-aside {
    display: none;
    position: static;
    width: 100%;
    flex: 0 1 auto;
    order: 3;
  }

  .portees-page .portees-aside.is-open {
    display: block;
  }

  .portees-aside-toggle {
    display: inline-flex;
    position: fixed;
    top: 92px;
    right: 16px;
    z-index: 50;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--turquoise);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .portees-aside-toggle span[aria-hidden="true"] {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--turquoise-dark);
  }

  .portees-menu {
    width: 100%;
  }
}