*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #555, #111 50%, #000 100%);
  color: #f5f5f5;
}

.wrapper {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex;
}

.accordion {
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

/* ORIENTATION :
   - paysage : volets horizontaux (colonnes)
   - portrait : volets verticaux (lignes)
*/
@media (orientation: landscape) {
  .accordion {
    flex-direction: row;
  }
}

@media (orientation: portrait) {
  .accordion {
    flex-direction: column;
  }
}

/* VOLETS */
.item {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #4f4f4f, #393939);
  margin: 6px;
  border-radius: 20px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  min-height: 0;
  box-shadow: 16px 16px 30px #161616, -12px -12px 24px #575757;
  transition: flex 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Volet agrandi (survol ou actif) */
.item.hover,
.item.active {
  flex: 4;
  transform: translateZ(0);
  box-shadow: 24px 24px 40px #111, -18px -18px 34px #5b5b5b;
}

/* HEADER */
.head {
  padding: 1rem 1.4rem;
  background: radial-gradient(circle at top left, #5a5a5a, #3f3f3f);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
}

.head h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.head p {
  font-size: 0.8rem;
  color: #c0c0c0;
}

/* PANNEAU CONTENU */
.panel {
  flex: 1;
  padding: 1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: auto;
  transition: opacity 0.3s ease;
}

/* Les panneaux des volets non actifs / non survolés sont masqués visuellement */
.item:not(.active):not(.hover) .panel {
  opacity: 0;
  pointer-events: none;
}

/* Liens */
.panel a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #515151, #333);
  text-decoration: none;
  color: #f5f5f5;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 12px 12px 24px #262626, -8px -8px 18px #595959;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel a:hover {
  transform: translateY(-1px);
  box-shadow: 16px 16px 30px #262626, -10px -10px 22px #5f5f5f;
}

.panel a:active {
  transform: translateY(0);
  box-shadow: inset 6px 6px 12px #2d2d2d, inset -6px -6px 12px #555;
}

/* Petites résolutions */
@media (max-width: 600px) {
  .head h2 {
    font-size: 0.95rem;
  }

  .head p {
    font-size: 0.75rem;
  }

  .panel a {
    font-size: 0.85rem;
  }
}
