*,
*::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;
}


 .img_icons{
  width: 50px;
  height: 50px;
  padding-right: 20px;
 }


.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;
  }
}


/* Indication discrète sur les titres (cliquer pour figer) */
.head h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.head .hint {
  font-size: 0.7rem;
  opacity: 0;
  color: #cfcfcf;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.head:hover .hint {
  opacity: 0.7;
}

/* Scrollbar ultra fine (uniquement dans les panneaux) */
.panel::-webkit-scrollbar {
  width: 4px;
}

.panel::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

.panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.45);
}

/* Firefox */
.panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

/* Catégories déroulantes (Professionnel) */
.category {
  background: rgba(0,0,0,0.15);
  border-radius: 14px;
  padding: 0.4rem;
}

.category summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  list-style: none;
}

.category summary::-webkit-details-marker {
  display: none;
}

.category summary::after {
  content: "▸";
  float: right;
  transition: transform 0.25s ease;
}

.category[open] summary::after {
  transform: rotate(90deg);
}

.category a {
  margin-top: 0.4rem;
}

.category a {
  display: flex;
  width: 100%;
  justify-content: center;
}