/* =========================================================
   WOLFPACT — INDEX CSS
   Styles spécifiques à la page d'accueil
   ========================================================= */

/* =========================================================
   HERO INDEX
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-combined {
  padding: 2rem;
  margin-bottom: 3rem;
}

.hero-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-inner .hero-text {
  flex: 2;
}

.hero-inner .hero-logo {
  flex: 1;
  max-width: 260px;
}

.hero-inner .hero-logo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: contain;
}

/* =========================================================
   GRILLE INDEX DES MEMBRES
   ========================================================= */
.grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.card-member {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 12px;
  min-width: 0;
}

.card-member .thumb {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ring);
  display: block;
  transition: transform var(--transition);
}

.card-member .thumb:hover {
  transform: scale(1.02);
}

.card-member .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  flex-grow: 1;
}

.badge.shearling {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  margin-top: 8px;
  text-align: justify;
  min-height: auto;
  font-style: italic;
}

.accent-kind {
  font-size: 0.75em;
  padding: 2px 6px;
  margin-left: 5px;
}

.day-night {
  font-size: 0.85em;
  color: #ccc;
  margin: 5px 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

/* =========================================================
   SWATCHES / PALETTES
   ========================================================= */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #3a3a3a;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--swatch-color);
  transition: transform var(--transition), box-shadow var(--transition);
}

.swatch:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.swatch.accent {
  margin-bottom: 8px;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 1px solid rgba(255,255,255,0.1);
}

.swatch code {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.swatch small {
  font-weight: 600;
  letter-spacing: .03em;
  color: #e5e5e5;
  text-transform: uppercase;
  font-size: 12px;
}

.swatch .btn {
  font-size: 11px;
  padding: 4px 8px;
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
  transition: background var(--transition);
}

.swatch .btn:hover {
  background: rgba(255,255,255,0.08);
}

.info {
  flex: 1;
}

.info code {
  color: white;
  font-size: 0.9em;
}

.info small {
  color: #ccc;
  font-size: 0.7em;
}

/* Pastilles de couleur pour palettes */
.palette-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.palette-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.palette-group .label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}

.palette-group .chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.palette-line .palette-group:nth-child(2) .chip {
  filter: saturate(.9) brightness(.92);
}

.palette-line .palette-group:nth-child(3) .chip {
  filter: saturate(1.06) brightness(1.08);
}

/* Swatches par membre */
.swatches-by-member {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 16px;
  background: #1a1a1a;
  border-radius: 8px;
}

.member-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
}

.member-column h4 {
  margin: 0 0 10px 0;
  text-align: center;
  color: white;
  font-size: 0.9em;
}

.swatch-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-label {
  color: #aaa;
  font-size: 0.7em;
  text-align: center;
  margin-bottom: 4px;
}

.swatch-colors {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.swatch-small {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-small {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-swatch-portrait {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
  background: #111;
  margin-bottom: 6px;
}

.member-swatch-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   ARCHÉTYPES INDEX (section manifeste)
   ========================================================= */
.arch-member {
  position: relative;
  margin: 18px 0;
  overflow: hidden;
}

.arch-member-portrait {
  width: 260px;
  float: right;
  margin-left: 18px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ring);
  background: #0b0b0b;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.arch-member-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   RESPONSIVE INDEX
   ========================================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }

  .swatches-by-member {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .palette-line {
    gap: 12px;
  }

  .palette-group {
    flex-shrink: 0;
  }

  .arch-member-portrait {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-inner .hero-logo {
    max-width: 180px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .swatches-by-member {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .palette-line {
    gap: 10px;
  }

  .palette-group .label {
    font-size: 12px;
  }

  .palette-group .chip {
    width: 16px;
    height: 16px;
  }

  .arch-member-portrait {
    float: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 16px;
  }

  .card-member {
    padding: 1rem;
  }

  .member-name {
    font-size: 1.1rem;
  }
}
