/* ── Layout page ─────────────────────────────────────────────────────── */
.page-taichi {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10vh 0 6vh;
  position: relative;
  z-index: 2;
}

/* ── Bouton retour ───────────────────────────────────────────────────── */
.btn-retour {
  position: fixed;
  top: 3vh;
  left: 3vw;
  color: rgba(0, 255, 255, 0.9);
  text-decoration: none;
  font-size: var(--text-size-1);
  padding: 1.2vh 2.5vw;
  border-radius: 1.2vh;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.btn-retour:hover {
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3),
              0 0 48px rgba(0, 255, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ── En-tête ─────────────────────────────────────────────────────────── */
.taichi-titre {
  font-size: var(--text-size-3);
  color: var(--White);
  text-align: center;
  margin-bottom: 0.8vh;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.15),
               0 0 16px rgba(0, 255, 255, 0.1);
}
.taichi-sous-titre {
  font-size: var(--text-size-1);
  color: var(--LightGrey);
  text-align: center;
  margin-bottom: 5vh;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.taichi-sous-titre:hover {
  color: rgba(0, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.4),
               0 0 20px rgba(0, 255, 255, 0.2);
}

/* ── Carrousel — conteneur externe (boutons positionnés ici) ────────── */
.coverflow-outer {
  position: relative;
  width: 100vw;
  height: 82vh;
  margin-bottom: 3vh;
}

/* ── Carrousel — conteneur interne (clip images) ────────────────────── */
.coverflow-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── Slides ──────────────────────────────────────────────────────────── */
.coverflow-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  cursor: pointer;
}
.coverflow-slide img {
  height: 74vh;
  max-height: 860px;
  width: auto;
  max-width: 55vw;
  border-radius: 1.5vh;
  border: 1px solid rgba(0, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  display: block;
  user-select: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}
.coverflow-slide.actif img {
  border-color: rgba(0, 255, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8),
              0 0 48px rgba(0, 255, 255, 0.15);
}

/* ── Dégradés sur les bords ──────────────────────────────────────────── */
.coverflow-fade {
  position: absolute;
  top: 0;
  width: 14vw;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.coverflow-fade-left  {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}
.coverflow-fade-right {
  right: 0;
  background: linear-gradient(to left,  rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

/* ── Indicateurs — même style que les nav-dot du portfolio principal ── */
.indicateurs-carrousel .point-indicateur {
  width: clamp(8px, 1.5vw, 12px);
  height: clamp(8px, 1.5vw, 12px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.8), rgba(58, 156, 242, 0.8));
  opacity: 0.3;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 rgba(0, 255, 255, 0);
  transform: scale(1);
}
.indicateurs-carrousel .point-indicateur:hover {
  opacity: 0.8;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4),
              0 0 18px rgba(0, 255, 255, 0.2);
  transform: scale(1.2);
}
.indicateurs-carrousel .point-indicateur.actif {
  opacity: 1;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.6),
              0 0 24px rgba(0, 255, 255, 0.3);
  transform: scale(1);
}

/* ── Compteur ────────────────────────────────────────────────────────── */
.compteur {
  font-size: var(--text-size-0);
  color: var(--LightGrey);
  text-align: center;
  margin-bottom: 2.5vh;
  letter-spacing: 0.15em;
}
.compteur-actuel { color: rgba(0, 255, 255, 0.85); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .coverflow-outer       { height: 68vh; }
  .coverflow-slide img   { height: 58vh; }
  .btn-retour            { font-size: 0.85rem; padding: 1vh 3vw; }
  .coverflow-fade        { width: 8vw; }
}
@media (max-width: 480px) {
  .coverflow-outer       { height: 58vh; }
  .coverflow-slide img   { height: 50vh; max-width: 75vw; }
}
