:root {
  --ink: #151c31;
  --muted: #68748b;
  --slate: #71809d;
  --dark: #263858;
  --pale: #e9edf4;
  --accent: #4c638c;
  --cream: #f7f7fa;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 24, 45, .14)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

img {
  display: block;
  width: 100%;
  object-fit: cover
}

.site-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 90px);
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21, 28, 49, .08)
}

.brand {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -.04em
}

.brand span {
  color: var(--accent)
}

nav {
  display: flex;
  gap: 22px;
  align-items: center
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  cursor: pointer
}

.button--small {
  padding: 9px 15px
}

.button--ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark)
}

.button--danger {
  background: #7b4651
}

.hero {
  position: relative;
  min-height: 620px;
  padding: 90px clamp(24px, 8vw, 130px);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(76, 99, 140, .22), transparent 30%), linear-gradient(135deg, var(--slate), #fff)
}

.hero-back {
  position: absolute;
  top: 24px;
  left: clamp(24px, 8vw, 130px);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-back:hover,
.hero-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero h1, .admin-intro h1, .form-shell h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: .2em 0
}

.hero p {
  max-width: 720px;
  font-size: 1.12rem
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: .78rem;
  color: var(--dark)
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, #0b1226, #1d2949);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(121, 151, 176, .16);
  content: "";
}

.hero-card__eyebrow {
  margin: 0 0 6px;
  color: #b8ccd7;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase
}

.hero-card h2 {
  position: relative;
  margin: 0;
  max-width: 420px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.035em
}

.session-limits {
  position: relative;
  display: grid;
  gap: 0;
  margin: 25px 0 22px;
  padding: 0;
  list-style: none
}

.session-limits li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.session-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(197, 216, 228, .12);
  color: #c3d5df;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em
}

.session-limits li > span:last-child {
  display: grid;
  gap: 2px
}

.session-limits strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.3
}

.session-limits small {
  color: #c4d1d7;
  font-size: .84rem;
  line-height: 1.45
}

.session-note {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: #c4d1d7;
  font-size: .76rem;
  line-height: 1.4
}

.session-note > span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91acbb;
  box-shadow: 0 0 0 4px rgba(145, 172, 187, .14)
}

.session-note + .session-note {
  margin-top: 8px
}

.section {
   padding: 40px clamp(24px, 3vw, 40px);
}

.section--soft {
  background: var(--slate);

}


.section--dark {
  background-color: #111a35;
  background-image: linear-gradient(90deg, rgba(7, 12, 27, .9), rgba(28, 40, 73, .58)), url("../img/bg-bleu.png");
  background-position: center;
  background-size: cover;
  color: #fff
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  letter-spacing: -.05em
}

.section-head>a {
  font-weight: 500;
  color: var(--accent)
}

.section--dark .section-head {
  color: #f7f8fc
}

.section--dark .section-head .eyebrow {
  color: #b9c5dc
}

.section--dark .section-head a,
.section--soft .section-head a {
 color: #fff;
}

.grid {
  display: grid;
  gap: 24px
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 480px));
  justify-content: center
}

.card, .product, .post {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 38%
}

.card img[src$=".svg"] {
  padding: 34px;
  object-fit: contain;
  background: var(--pale)
}

.card-body, .product>div, .post {
  padding: 24px
}

.card h3, .product h3, .post h3 {
  font-size: 1.4rem;
  margin: .3rem 0
}

.meta {
  color: var(--muted);
  font-weight: 700
}

.demo-badge, .status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  background: #e5edf3;
  color: #405f73
}

.status {
  background: var(--pale);
  color: var(--dark);
  margin-left: 6px
}

.products {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))
}

.product img {
  height: 220px
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0
}

.price-row strong {
  font-size: 1.35rem;
  color: var(--dark)
}

.product button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 999px
}

.posts {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.post {
  color: var(--ink)
}

footer {
  padding: 30px clamp(24px, 8vw, 130px);
  display: flex;
  justify-content: space-between;
  background: #0c1428;
  color: #fff
}

.flash {
  margin: 24px auto;
  max-width: 1000px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #e5ece7;
  color: #3f5f52
}

.flash.error {
  background: #f1e5e7;
  color: #7b4651
}

.admin-page {
  background: #f0f3f4
}

.admin-shell, .form-shell {
  max-width: 1100px;
  margin: auto;
  padding: 60px 24px
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin: 40px 0
}

.admin-card {
  position: relative;
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: .2s
}

.admin-card:hover {
  transform: translateY(-4px)
}

.admin-card.is-full {
  background: #edf3f2;
  box-shadow: none
}

.admin-card__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--pale);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 900
}

.admin-card__status {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2f5ea;
  color: #286540;
  font-size: .68rem;
  font-weight: 900
}

.admin-card.is-full .admin-card__status {
  background: #e5e8e7;
  color: var(--muted)
}

.admin-card h2 {
  margin: .4rem 0
}

.admin-card p {
  min-height: 50px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem
}

.admin-card > strong {
  color: var(--dark);
  font-size: 1.25rem
}

.quota-line {
  display: inline-flex;
  gap: 7px;
  margin: 0 0 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--dark);
  font-size: .85rem
}

.quota-blocked {
  max-width: 760px;
  padding: 28px;
  border: 1px solid #d4dfde;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow)
}

.quota-blocked > strong {
  font-size: 1.4rem
}

.reset-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 18px
}

.editor-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  background: #fff;
  padding: 30px;
  border-radius: 22px;
  box-shadow: var(--shadow)
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bed1d2;
  border-radius: 12px;
  font: inherit;
  background: #fff
}

textarea {
  resize: vertical
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

small {
  color: var(--muted)
}

@media(max-width:850px) {
  nav>a:not(.button) {
    display: none
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto
  }

  .admin-grid {
    grid-template-columns: 1fr 1fr
  }

  .section-head, footer, .reset-box {
    align-items: flex-start;
    flex-direction: column
  }

  .two-cols {
    grid-template-columns: 1fr
  }

}

@media(max-width:520px) {
  .admin-grid {
    grid-template-columns: 1fr
  }

  .site-header, .admin-header {
    padding: 14px 18px
  }

  .button--small {
    font-size: .8rem
  }

  .hero, .section {
    padding: 55px 20px
  }

}

.section-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.section-links a {
  font-weight: 800;
  color: var(--accent)
}

.litters-list {
  display: grid;
  gap: 32px
}

.litter-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.litter-heading {
  padding: 28px 32px 22px;
  text-align: center
}

.litter-heading h3 {
  margin: .35rem 0 .2rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem)
}

.litter-heading>p {
  max-width: 720px;
  margin: 10px auto
}

.litter-dates {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap
}

.litter-dates span, .facts span {
  display: flex;
  flex-direction: column
}

.litter-dates span {
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--pale)
}

.litter-dates strong, .facts strong {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dark)
}

.litter-family {
  padding: 8px 28px 32px
}

.litter-family>h4 {
  text-align: center;
  margin: 0 0 20px;
  font-size: 1.25rem
}

.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: auto
}

.parent-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border: 1px solid rgba(21, 28, 49, .1);
  border-radius: 18px;
  background: var(--cream)
}

.parent-card img {
  height: 100%;
  min-height: 220px
}

.parent-card>div {
  padding: 22px
}

.parent-card h5 {
  font-size: 1.5rem;
  margin: .2rem 0
}

.parent-role {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent)
}

.facts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted)
}

.litter-kittens {
  padding: 0;
  border-top: 1px solid rgba(76, 99, 140, .08);
  background: #f2f4f8
}

.litter-kittens summary {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 20px 28px;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none
}

.litter-kittens summary::-webkit-details-marker {
  display: none
}

.litter-kittens summary::after {
  color: var(--accent);
  content: "⇊";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1
}

.litter-kittens[open] summary::after {
  content: "⇈"
}

.litter-kittens[open] summary {
  border-bottom: 1px solid rgba(76, 99, 140, .08)
}

.litter-kittens>.grid {
  padding: 24px 28px 28px
}

.kitten-card {
  border: 1px solid rgba(76, 99, 140, .08);
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 57, 87, .07)
}

.kitten-card img {
  height: 210px
}

.empty-kittens {
  margin: 0;
  padding: 22px 28px;
  border-top: 1px solid rgba(21, 28, 49, .1);
  color: var(--muted);
  font-style: italic
}

.litter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid rgba(21, 28, 49, .07);
  background: linear-gradient(90deg, #fff, #f2f4f8)
}

.litter-actions .button {
  padding: 9px 15px;
  font-size: .82rem
}

.module-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 28, 49, .12)
}

.blog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 28, 49, .12)
}

.blog-actions--dark {
  border-color: rgba(255, 255, 255, .14)
}

.blog-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer
}

.blog-actions--dark .blog-button {
  background: #f7f8fc;
  color: #1d2949
}

.blog-actions--dark .blog-button--ghost {
  background: #fff;
  color: #000;
  border-color: rgba(255, 255, 255, .7)
}

.blog-actions--dark .blog-button.is-disabled {
  background: rgba(247, 248, 252, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18)
}

.blog-button.is-disabled {
  background: #cfdbda;
  color: #667978;
  cursor: not-allowed
}

.button.is-disabled {
  background: #cfdbda;
  color: #667978;
  cursor: not-allowed
}

@media(max-width:850px) {
  .parents-grid {
    grid-template-columns: 1fr
  }

}

@media(max-width:520px) {
  .parent-card {
    grid-template-columns: 1fr
  }

  .parent-card img {
    height: 220px
  }

  .litter-heading, .litter-family {
    padding-left: 18px;
    padding-right: 18px
  }

  .litter-kittens summary {
    padding: 17px 18px
  }

  .litter-kittens>.grid {
    padding: 18px
  }

  .litter-actions, .module-actions, .blog-actions {
    align-items: stretch;
    flex-direction: column
  }

}
