/* ============================================================
   LUMINEYES — / 02 Services Accordion
   Palette : #080807 fond · #CD9847 doré · #F5F0E8 crème
   ============================================================ */

.svc-section {
  position: relative;
  padding: 7rem 2.5rem 5rem;
  background: var(--bg-dark, #080807);
}

/* ── En-tête ── */
.svc-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.svc-head .section-code {
  color: var(--gold, #CD9847);
  margin-bottom: 1.2rem;
}

.svc-head h2 {
  font-family: var(--display, 'Playfair Display', serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  color: var(--paper, #F5F0E8);
}

.svc-head h2 span {
  color: var(--gold, #CD9847);
}

.svc-head .svc-sub {
  margin: 0 auto;
  max-width: 52ch;
  color: rgba(245, 240, 232, 0.65);
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Accordéon ── */
.svc-accordion {
  display: flex;
  gap: 10px;
  height: 450px;
  max-width: 1300px;
  margin: 0 auto;
}

.svc-panel {
  position: relative;
  flex: 0 0 60px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 700ms cubic-bezier(.4, 0, .2, 1);
  background-color: #100d08;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(205, 152, 71, 0.18);
  transition: flex 700ms cubic-bezier(.4, 0, .2, 1),
              border-color 400ms ease;
}

/* Dégradé de fallback : caché par défaut, visible si image manquante */
.svc-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c0a07 0%, #1f1508 60%, #2a1c06 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}

.svc-panel.no-img::after {
  opacity: 1;
}

/* Overlay sombre sur l'image */
.svc-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.42);
  transition: background 700ms ease;
}

.svc-panel.is-active {
  flex: 0 0 400px;
  border-color: rgba(205, 152, 71, 0.5);
}

.svc-panel.is-active::before {
  background: rgba(0, 0, 0, 0.28);
}

/* Contenu intérieur */
.svc-panel-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
}

/* Label VERTICAL (volet inactif) */
.svc-label-v {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center center;
  white-space: nowrap;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.82);
  pointer-events: none;
  transition: opacity 200ms ease;
}

.svc-panel.is-active .svc-label-v {
  opacity: 0;
  transition: opacity 100ms ease;
}

/* Label HORIZONTAL + phrase (volet actif) */
.svc-label-h {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0ms, transform 0ms;
}

.svc-panel.is-active .svc-label-h {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 380ms ease 320ms, transform 380ms ease 320ms;
}

.svc-label-h strong {
  display: block;
  font-family: var(--display, 'Playfair Display', serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  color: var(--paper, #F5F0E8);
  margin-bottom: 0.55rem;
}

.svc-label-h p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.78);
  max-width: 28ch;
}

/* ── Footer ── */
.svc-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ──────────────────────────────────────
   MOBILE (<768px) : accordéon vertical
   ────────────────────────────────────── */
@media (max-width: 768px) {
  .svc-section {
    padding: 5rem 1.1rem 4rem;
  }

  .svc-head h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .svc-accordion {
    flex-direction: column;
    height: auto;
    gap: 7px;
  }

  .svc-panel {
    flex: none !important;
    height: 58px;
    border-radius: 12px;
    transition: height 600ms cubic-bezier(.4, 0, .2, 1),
                border-color 300ms ease;
  }

  .svc-panel.is-active {
    height: 220px;
    flex: none !important;
  }

  .svc-label-v {
    transform: none;
    left: 1.2rem;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.58rem;
  }

  .svc-panel.is-active .svc-label-v {
    opacity: 0;
  }

  .svc-panel-inner {
    padding: 1.1rem;
  }

  .svc-label-h strong {
    font-size: 1.3rem;
  }
}
