/* ============================================
   REFONTE - ÉLÉMENTS COMMUNS DES SECTIONS
   En-têtes, étiquettes, dépliants, liens, boutons icône.
   ============================================ */

.m-section {
  width: min(100% - 2 * var(--m-gutter), var(--m-container));
  margin: var(--m-section-gap) auto 0;
}

.m-section__header {
  max-width: var(--m-container-narrow);
  margin-bottom: var(--m-space-8);
}

.m-section__title {
  font-family: var(--m-font-display);
  font-size: var(--m-text-section);
  font-weight: var(--m-weight-bold);
  line-height: var(--m-leading-tight);
  letter-spacing: var(--m-tracking-display);
}

.m-section__intro {
  margin-top: var(--m-space-4);
  color: var(--m-color-text-secondary);
  font-size: var(--m-text-lg);
  line-height: var(--m-leading-snug);
  letter-spacing: var(--m-tracking-heading);
}

.m-empty {
  color: var(--m-color-text-secondary);
}

/* Étiquettes */
.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--m-space-2);
  padding: 0;
  list-style: none;
}

.m-tag {
  padding: var(--m-space-1) var(--m-space-3);
  border-radius: var(--m-radius-control);
  background: var(--m-color-surface);
  color: var(--m-color-text-secondary);
  font-size: var(--m-text-sm);
}

/* Métadonnées sur une ligne (dates, lieu...) */
.m-role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--m-space-1) var(--m-space-4);
  color: var(--m-color-text-secondary);
  font-size: var(--m-text-sm);
}

/* Dépliant "En savoir plus" */
.m-disclosure {
  margin-top: var(--m-space-3);
}

.m-disclosure__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--m-space-2);
  color: var(--m-color-accent);
  font-size: var(--m-text-sm);
  font-weight: var(--m-weight-medium);
  cursor: pointer;
  list-style: none;
}

.m-disclosure__toggle::-webkit-details-marker {
  display: none;
}

.m-disclosure__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--m-duration-base) var(--m-ease-out);
}

.m-disclosure[open] > .m-disclosure__toggle::after {
  transform: translateY(2px) rotate(-135deg);
}

.m-disclosure__less,
.m-disclosure[open] .m-disclosure__more {
  display: none;
}

.m-disclosure[open] .m-disclosure__less {
  display: inline;
}

.m-disclosure__body {
  display: grid;
  gap: var(--m-space-3);
  padding-top: var(--m-space-4);
  max-width: var(--m-measure);
  color: var(--m-color-text-secondary);
}

.m-disclosure[open] .m-disclosure__body {
  animation: m-rise var(--m-duration-base) var(--m-ease-out);
}

/* Lien avec flèche */
.m-link {
  display: inline-flex;
  align-items: center;
  gap: var(--m-space-1);
  font-size: var(--m-text-sm);
  font-weight: var(--m-weight-medium);
}

/* Bouton rond à icône */
.m-icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--m-color-surface);
  color: var(--m-color-text);
  cursor: pointer;
  transition: background-color var(--m-duration-fast) var(--m-ease-standard),
              transform var(--m-duration-fast) var(--m-ease-standard);
}

.m-icon-button:hover {
  background: var(--m-color-border);
}

.m-icon-button:active {
  transform: scale(0.94);
}

.m-icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Logo d'entreprise ou d'école */
.m-company__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--m-radius-sm);
  background: var(--m-color-logo-bg);
  box-shadow: var(--m-shadow-raised);
  color: var(--m-color-accent);
  font-weight: var(--m-weight-semibold);
}

.m-company__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--m-space-2);
}

/* Mode nuit : un liseré argenté très fin détache les cartes du fond (en plus de leur teinte) */
[data-theme="dark"] :is(.m-role, .m-school, .m-skill, .m-bento__card:not(.m-ink), .m-segmented, .m-tag, .m-company__brand) {
  box-shadow: inset 0 0 0 1px var(--m-color-card-edge);
}

[data-theme="dark"] :is(.m-role, .m-school, .m-skill, .m-bento__card:not(.m-ink)):hover {
  box-shadow: inset 0 0 0 1px var(--m-color-hairline), var(--m-shadow-raised);
}

/*# sourceMappingURL=section.css-368f97d8ba5618d9cdabf2d828937ae2108ead675d1535e3812dd0d2f60c1407.map */
