/* Wrapper */
.organigram-wrapper {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dbe3f3;
  border-radius: 10px;
  background: #f9fbff;
}
.hidden { display: none; }

/* Toggle Button */
.organigram-toggle-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.1rem;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.organigram-toggle-btn .arrow {
  transition: transform .3s ease;
}

/* Levels */
.org-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 35px 0;
  flex-wrap: wrap;
}

/* Cards */
.org-card {
  border-radius: 10px;
  padding: 18px;
  min-width: 210px;
  max-width: 240px;
  text-align: center;
  border: 1px solid #d0def5;
  box-shadow: 0 3px 7px rgba(0,0,0,.06);
  transition: transform .2s;
}
.org-card:hover { transform: translateY(-4px); }

/* Title and Subtitle */
.org-card h3, .org-card h4 {
  margin-bottom: 8px;
  font-weight: 600;
}
.org-card p {
  margin: 0;
  font-weight: 400;
}

/* Niveau 1: Assemblée Générale */
.org-card.main {
  background: #1a73e8; /* Blue */
  border: none;
  color: white;        /* default text white */
}
.org-card.main h3 { color: #fff; }   /* Title white */
.org-card.main p { color: #e0e0e0; } /* Subtitle lighter white */

/* Conseil d'Administration */
.org-card.board {
  background-color: #28a745; /* Green */
  border: 2px solid #218838;
  color: white;
}
.org-card.board h4 { color: #fff; }     /* Title white */
.org-card.board p { color: #dcdcdc; }  /* Subtitle light grey */

/* Direction Exécutive */
.org-card.executive {
  background-color: orangered;
  border: 2px solid #ff4500;
  color: white;
}
.org-card.executive h4 { color: #fff; }   /* Title white */
.org-card.executive p { color: #fbe3d9; }/* Subtitle light cream */

/* Level 3 Departments */
.org-card.department {
  background-color: #20c997; /* Teal */
  border: 2px solid #17a2b8;
  color: white;
}
.org-card.department h4 { color: #fff; }    /* Title white */
.org-card.department p { color: #dff6f0; } /* Subtitle light teal */

/* Connectors */
.org-connector.vertical {
  width: 2px;
  height: 40px;
  background: #1a73e8;
  margin: 0 auto;
}
.org-connector.horizontal {
  width: 80%;
  height: 2px;
  background: #1a73e8;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .org-connector.horizontal { display: none; }
  .org-level { flex-direction: column; }
}



/* Toggle bouton */
/* .organigram-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.organigram-toggle-btn:hover {
  background: #145dba;
}

.organigram-toggle-btn .arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
} */

/* Wrapper toggle */
/* .organigram-wrapper.hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.5s ease;
}

.organigram-wrapper.show {
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.8s ease, opacity 0.6s ease;
} */

/* Conteneur par niveau */
/* .org-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  margin: 2rem 0;
} */

/* Flèches verticales entre niveaux */
/* .org-level:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 2rem;
  background: #1a73e8;
} */

/* Cartes */
/* .org-card {
  background: #fff;
  border: 2px solid #1a73e8;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  width: 180px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-card.main {
  width: 220px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
} */

/* Lignes horizontales pour plusieurs cartes */
/* .org-multi-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.org-multi-level::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #1a73e8;
}

.org-card::after {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 2px;
  height: 2rem;
  background: #1a73e8;
}

.org-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.org-card.small {
  width: 150px;
} */

/* Responsive */
/* @media (max-width: 768px) {
  .org-level,
  .org-multi-level {
    flex-direction: column;
    align-items: center;
  }
  .org-card,
  .org-card.small {
    width: 80%;
  }
  .org-level::after,
  .org-card::after,
  .org-multi-level::before {
    display: none;
  }
} */
