/* ==========================================================================
   Somachir — Mot du Président Widget
   ========================================================================== */

.smch-president {
  padding: var(--space-xl) 0;
}

.smch-president--white { background: var(--color-white); }
.smch-president--light { background: var(--color-bg-light); }
.smch-president--dark  {
  background: var(--color-accent);
  --text-body: rgba(255,255,255,0.8);
  --text-head: #fff;
  --text-muted: rgba(255,255,255,0.5);
  --border-col: rgba(255,255,255,0.15);
}

/* --------------------------------------------------------------------------
   Tokens for light/dark switching
   -------------------------------------------------------------------------- */
.smch-president--white,
.smch-president--light {
  --text-body:  var(--color-black);
  --text-head:  var(--color-black);
  --text-muted: var(--color-text-muted);
  --border-col: var(--color-border);
}

/* --------------------------------------------------------------------------
   Inner grid — photo | content
   -------------------------------------------------------------------------- */
.smch-president__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.smch-president--reverse .smch-president__inner {
  grid-template-columns: 1fr 340px;
}

.smch-president--reverse .smch-president__photo-col {
  order: 2;
}

.smch-president--reverse .smch-president__content {
  order: 1;
}

/* --------------------------------------------------------------------------
   Photo column
   -------------------------------------------------------------------------- */
.smch-president__photo-col {
  position: sticky;
  top: calc(var(--header-height, 140px) + 32px);
}

.smch-president__photo-wrap {
  display: flex;
  flex-direction: column;
}

.smch-president__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%);
}

.smch-president__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
}

.smch-president__photo-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--color-border);
}

/* Identity card */
.smch-president__identity {
  background: var(--color-accent);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smch-president__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.smch-president__role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Content column
   -------------------------------------------------------------------------- */
.smch-president__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

/* Eyebrow */
.smch-president__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.smch-president--dark .smch-president__eyebrow {
  color: rgba(255,255,255,0.7);
}

.smch-president__eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.smch-president--dark .smch-president__eyebrow-line {
  background: rgba(255,255,255,0.5);
}

/* Intro — pull quote style */
.smch-president__intro {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-head);
  line-height: 1.45;
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--color-accent);
}

.smch-president--dark .smch-president__intro {
  border-color: rgba(255,255,255,0.4);
}

/* Body text */
.smch-president__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.smch-president__body p {
  margin: 0 0 16px;
}

.smch-president__body p:last-child {
  margin-bottom: 0;
}

.smch-president__body ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.smch-president__body ul li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

.smch-president__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.smch-president--dark .smch-president__body ul li::before {
  background: rgba(255,255,255,0.6);
}

/* Signature image */
.smch-president__signature {
  padding-top: 8px;
  border-top: var(--border);
}

.smch-president--dark .smch-president__signature {
  border-color: rgba(255,255,255,0.15);
}

.smch-president__signature img {
  height: 56px;
  width: auto;
  opacity: 0.85;
  filter: invert(0);
}

/* Signature text fallback */
.smch-president__signature-text {
  padding-top: 20px;
  border-top: 1px solid var(--border-col);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.smch-president__sig-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-head);
}

.smch-president__sig-role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .smch-president__inner {
    grid-template-columns: 260px 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .smch-president__inner,
  .smch-president--reverse .smch-president__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .smch-president__photo-col {
    position: static;
  }

  .smch-president--reverse .smch-president__photo-col,
  .smch-president--reverse .smch-president__content {
    order: unset;
  }

  .smch-president__photo {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }

  .smch-president__intro {
    font-size: 18px;
  }
}
