/* ==========================================================================
   KORA FAQ — Direction Artistique & Craft Editorial
   Source de vérité : design.md (Section 3, 4, 5, 6)
   ========================================================================== */

.kora-faq-section {
  background-color: var(--pearl, #FAFAFA);
  padding: clamp(80px, 9vw, 130px) 0;
  position: relative;
  border-top: 1px solid rgba(7, 7, 10, 0.06);
}

.kora-faq-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

/* --- Colonne de cadrage éditoriale (Sticky à gauche) --- */
.kora-faq-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
}

.kora-faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted, #6E6878);
  margin-bottom: 16px;
}

.kora-faq-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue, #2563EB);
}

.kora-faq-title {
  font-family: "Polysans", Inter, system-ui, sans-serif;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink, #07070A);
  margin: 0 0 18px 0;
}

.kora-faq-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted, #6E6878);
  margin: 0 0 36px 0;
  max-width: 330px;
}

/* Carte de contact direct intégrée */
.kora-faq-card {
  background: var(--paper, #FFFFFF);
  border: 1px solid rgba(7, 7, 10, 0.08);
  border-radius: 16px;
  padding: 24px 24px 22px 24px;
  box-shadow: 0 4px 20px -8px rgba(7, 7, 10, 0.03);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.kora-faq-card:hover {
  border-color: rgba(7, 7, 10, 0.14);
  box-shadow: 0 10px 28px -10px rgba(7, 7, 10, 0.06);
}

.kora-faq-card-tag {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue, #2563EB);
  margin-bottom: 8px;
}

.kora-faq-card h4,
.kora-faq-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #07070A);
  line-height: 1.35;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
}

.kora-faq-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #6E6878);
  margin: 0 0 18px 0;
}

.kora-faq-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--ink, #07070A);
  color: #FFFFFF;
  font-family: "Polysans", Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(7, 7, 10, .5);
  transition: transform .3s var(--ease, cubic-bezier(.22, 1, .36, 1)), box-shadow .35s var(--ease, cubic-bezier(.22, 1, .36, 1)), border-color .35s var(--ease, cubic-bezier(.22, 1, .36, 1));
}

.kora-faq-card-link span {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  transition: color .55s var(--ease, cubic-bezier(.22, 1, .36, 1));
}

.kora-faq-card-link svg {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 2;
  stroke: #FFFFFF;
  transition: transform .35s var(--ease, cubic-bezier(.22, 1, .36, 1)), stroke .45s var(--ease, cubic-bezier(.22, 1, .36, 1));
}

.kora-faq-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 7, 10, .14);
  box-shadow: 0 16px 32px -12px rgba(7, 7, 10, .28);
}

.kora-faq-card-link:active {
  transform: scale(0.98) translateY(-1px);
}

.kora-faq-card-link:hover svg {
  transform: translateX(4px);
  stroke: var(--ink, #07070A);
}

.kora-faq-card-link::after {
  content: "";
  position: absolute;
  left: -24%;
  bottom: -78%;
  width: 148%;
  height: 190%;
  border-radius: 50% 50% 0 0 / 32px 32px 0 0;
  transform: translateY(104%);
  transition: transform .86s var(--ease, cubic-bezier(.22, 1, .36, 1));
  z-index: 1;
  background: #FFFFFF;
  pointer-events: none;
}

.kora-faq-card-link:hover::after {
  transform: translateY(-18%);
}

.kora-faq-card-link:hover span {
  color: var(--ink, #07070A);
}

/* --- Liste des questions (Droite) --- */
.kora-faq-list {
  display: flex;
  flex-direction: column;
}

.kora-faq-item {
  border-bottom: 1px solid rgba(7, 7, 10, 0.09);
  transition: background-color 200ms ease, border-color 200ms ease;
  position: relative;
}

.kora-faq-item:first-child {
  border-top: 1px solid rgba(7, 7, 10, 0.09);
}

.kora-faq-item.is-open {
  border-bottom-color: rgba(7, 7, 10, 0.16);
}

/* Bouton Déclencheur */
.kora-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 8px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: padding-left 180ms ease;
}

.kora-faq-trigger:focus-visible {
  outline: 2px solid var(--blue, #2563EB);
  outline-offset: 4px;
  border-radius: 6px;
}

.kora-faq-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.kora-faq-num {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-2, #928C9B);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 22px;
  transition: color 180ms ease;
}

.kora-faq-question {
  font-family: "Polysans", Inter, system-ui, sans-serif;
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink, #07070A);
  margin: 0;
  transition: color 180ms ease;
}

.kora-faq-trigger:hover .kora-faq-question {
  color: var(--blue, #2563EB);
}

.kora-faq-trigger:hover .kora-faq-num {
  color: var(--ink, #07070A);
}

.kora-faq-item.is-open .kora-faq-question {
  color: var(--ink, #07070A);
}

/* Pastille Icône épurée (Plus / Chevron fluide) */
.kora-faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(7, 7, 10, 0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink, #07070A);
  flex-shrink: 0;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease;
}

.kora-faq-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kora-faq-trigger:hover .kora-faq-icon {
  border-color: rgba(7, 7, 10, 0.28);
  background: rgba(7, 7, 10, 0.04);
}

.kora-faq-item.is-open .kora-faq-icon {
  background: var(--ink, #07070A);
  border-color: var(--ink, #07070A);
  color: #FFFFFF;
}

.kora-faq-item.is-open .kora-faq-icon svg {
  transform: rotate(180deg);
}

/* Panneau de réponse avec animation de hauteur CSS Grid (0fr -> 1fr) */
.kora-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kora-faq-item.is-open .kora-faq-panel {
  grid-template-rows: 1fr;
}

.kora-faq-panel-inner {
  overflow: hidden;
}

.kora-faq-answer {
  padding: 0 24px 28px 48px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #4a4a52;
  max-width: none;
}

.kora-faq-answer p {
  margin: 0 0 12px 0;
}

.kora-faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .kora-faq-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .kora-faq-aside {
    position: static;
  }

  .kora-faq-lead {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .kora-faq-card {
    max-width: 440px;
  }

  .kora-faq-answer {
    padding: 0 8px 24px 38px;
    font-size: 16.5px;
  }
}

@media (max-width: 640px) {
  .kora-faq-section {
    padding: 64px 0;
  }

  .kora-faq-trigger {
    padding: 20px 4px;
    gap: 12px;
  }

  .kora-faq-meta {
    gap: 12px;
  }

  .kora-faq-num {
    font-size: 11.5px;
    width: 18px;
  }

  .kora-faq-answer {
    padding-left: 30px;
    padding-right: 4px;
    padding-bottom: 20px;
    font-size: 16px;
  }

  .kora-faq-icon {
    width: 28px;
    height: 28px;
  }

  .kora-faq-icon svg {
    width: 12px;
    height: 12px;
  }
}
