/* ============================================================
   COVERFLOW CAROUSEL — composant réutilisable
   Classes toutes préfixées .cfc- pour ne jamais entrer en
   collision avec le reste du design system.
   ============================================================ */
.cfc {
  position: relative;
}

.cfc-glow {
  position: absolute;
  inset: -40px 0;
  pointer-events: none;
  opacity: 0.3;
  filter: blur(90px);
  transition: background 0.7s;
}

.cfc-stage {
  position: relative;
  height: 460px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

@media (min-width: 1100px) {
  .cfc-stage { height: 540px; }
}

.cfc-stage:active { cursor: grabbing; }

.cfc-stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c-accent);
  border-radius: var(--radius-md);
}

.cfc-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 400px;
  margin: -200px 0 0 -150px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-text);
  will-change: transform;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Carte au centre : mise en valeur avec l'accent du site */
.cfc-card.cfc-active {
  border-color: rgba(217, 112, 58, 0.45);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(217, 112, 58, 0.18), 0 0 40px -6px rgba(217, 112, 58, 0.35);
}

/* Focus clavier : anneau accent propre, plus de contour jaune du navigateur */
.cfc-card:focus-visible {
  box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 6px var(--c-accent), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* Desktop large : cartes plus grandes pour mieux occuper l'espace */
@media (min-width: 1100px) {
  .cfc:not(.cfc-profile) .cfc-card {
    width: 360px;
    height: 460px;
    margin: -230px 0 0 -180px;
  }

  .cfc-profile .cfc-card {
    width: 340px;
  }
}

.cfc-im {
  height: 190px;
  position: relative;
  flex: none;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .cfc:not(.cfc-profile) .cfc-im { height: 230px; }
}

.cfc-im img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logos / illustrations : jamais recadrés, affichés en entier */
.cfc-contain .cfc-im {
  background: var(--c-surface-2);
}

.cfc-contain .cfc-im img {
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
}

.cfc-im::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--c-surface));
}

.cfc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 19, 15, 0.75);
  backdrop-filter: blur(6px);
  color: var(--c-text);
}

.cfc-tx {
  padding: 6px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cfc-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.cfc-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-top: 8px;
}

.cfc-more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ============================================================
   VARIANTE "PROFIL" — fiches personnes (photo ronde, texte centré)
   ============================================================ */
.cfc-profile .cfc-card {
  height: 340px;
  margin-top: -170px;
  align-items: center;
}

.cfc-profile .cfc-im {
  position: static;
  height: auto;
  flex: none;
  padding: 32px 0 8px;
  display: flex;
  justify-content: center;
}

.cfc-profile .cfc-im::after {
  content: none;
}

.cfc-profile .cfc-im img {
  position: static;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-surface-2);
  box-shadow: var(--shadow-sm);
}

.cfc-profile .cfc-tx {
  align-items: center;
  text-align: center;
  padding: 6px 20px 24px;
}

.cfc-profile .cfc-card h3 {
  font-size: 1.25rem;
}

.cfc-profile .cfc-card p {
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.cfc-profile .cfc-more {
  margin-top: 18px;
  padding-top: 0;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .cfc-profile .cfc-card {
    width: 190px;
    height: 300px;
    margin: -150px 0 0 -95px;
  }

  .cfc-profile .cfc-im img {
    width: 84px;
    height: 84px;
  }
}

.cfc-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.cfc-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cfc-btn:hover {
  background: var(--c-surface);
  border-color: var(--c-accent);
}

.cfc-i {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cfc-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 220px;
}

.cfc-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: var(--c-border);
  transition: 0.3s;
  cursor: pointer;
}

.cfc-dot.cfc-on {
  width: 24px;
  background: var(--c-accent);
}

@media (prefers-reduced-motion: reduce) {
  .cfc-card { transition: none !important; }
}

@media (max-width: 600px) {
  .cfc:not(.cfc-profile) .cfc-card {
    width: 190px;
    height: 300px;
    margin: -150px 0 0 -95px;
  }
  .cfc:not(.cfc-profile) .cfc-im { height: 125px; }
  .cfc-stage { height: 340px; }
}
